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

 Copyright Google LLC All Rights Reserved.

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

 Copyright Google LLC All Rights Reserved.

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

 Copyright Google LLC All Rights Reserved.

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

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

 The MIT License

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

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

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

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


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

 Copyright 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald
 SPDX-License-Identifier: MIT
*/
/*
 @license
 Copyright Google LLC All Rights Reserved.

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var h,aaa=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var g=b[f]=b[d];b[d]=function(k,l,r){l&&l.prototype&&e.forEach(function(w){var x=c+"."+d+"::"+w,C=l.prototype;try{if(C.hasOwnProperty(w)){var H=a.ObjectGetOwnPropertyDescriptor(C,w);H&&H.value?(H.value=a.wrapWithCurrentZone(H.value,x),a._redefineProperty(l.prototype,w,H)):C[w]&&(C[w]=a.wrapWithCurrentZone(C[w],x))}else C[w]&&(C[w]=a.wrapWithCurrentZone(C[w],x))}catch(J){}});return g.call(b,k,l,r)};a.attachOriginToPatched(b[d],g)}},ba=
function(a){return(aa.__Zone_symbol_prefix||"__zone_symbol__")+a},baa=function(){function a(ja){g&&g.mark&&g.mark(ja)}function b(ja,ta){g&&g.measure&&g.measure(ja,ta)}function c(ja){R||aa[C]&&(R=aa[C].resolve(0));if(R){var ta=R[H];ta||(ta=R.then);ta.call(R,ja)}else aa[x](ja,0)}function d(ja){Ga===0&&J.length===0&&c(e);ja&&J.push(ja)}function e(){if(!O){for(O=!0;J.length;){var ja=J;J=[];for(var ta=0;ta<ja.length;ta++){var xa=ja[ta];try{xa.zone.runTask(xa,null,null)}catch(Sa){oa.onUnhandledError(Sa)}}}oa.microtaskDrainDone();
O=!1}}function f(){}var g=aa.performance;a("Zone");var k=function(ja,ta){this._parent=ja;this._name=ta?ta.name||"unnamed":"<root>";this._properties=ta&&ta.properties||{};this._zoneDelegate=new r(this,this._parent&&this._parent._zoneDelegate,ta)};k.assertZonePatched=function(){if(aa.Promise!==ca.ZoneAwarePromise)throw Error("C");};k.__load_patch=function(ja,ta,xa){xa=xa===void 0?!1:xa;if(ca.hasOwnProperty(ja)){if(ta=aa[ba("forceDuplicateZoneCheck")]===!0,!xa&&ta)throw Error("D`"+ja);}else aa["__Zone_disable_"+
ja]||(xa="Zone:"+ja,a(xa),ca[ja]=ta(aa,k,oa),b(xa,xa))};k.prototype.get=function(ja){var ta=this.getZoneWith(ja);if(ta)return ta._properties[ja]};k.prototype.getZoneWith=function(ja){for(var ta=this;ta;){if(ta._properties.hasOwnProperty(ja))return ta;ta=ta._parent}return null};k.prototype.fork=function(ja){if(!ja)throw Error("E");return this._zoneDelegate.fork(this,ja)};k.prototype.wrap=function(ja,ta){if(typeof ja!=="function")throw Error("F`"+ja);var xa=this._zoneDelegate.intercept(this,ja,ta),
Sa=this;return function(){return Sa.runGuarded(xa,this,arguments,ta)}};k.prototype.run=function(ja,ta,xa,Sa){ua={parent:ua,zone:this};try{return this._zoneDelegate.invoke(this,ja,ta,xa,Sa)}finally{ua=ua.parent}};k.prototype.runGuarded=function(ja,ta,xa,Sa){ua={parent:ua,zone:this};try{try{return this._zoneDelegate.invoke(this,ja,ta===void 0?null:ta,xa,Sa)}catch($a){if(this._zoneDelegate.handleError(this,$a))throw $a;}}finally{ua=ua.parent}};k.prototype.runTask=function(ja,ta,xa){if(ja.zone!=this)throw Error("G`"+
(ja.zone||V).name+"`"+this.name);var Sa=ja.type,$a=ja.data===void 0?{}:ja.data,pb=$a.isPeriodic===void 0?!1:$a.isPeriodic;$a=$a.isRefreshable===void 0?!1:$a.isRefreshable;if(ja.state!=="notScheduled"||Sa!=="eventTask"&&Sa!=="macroTask"){var Xb=ja.state!="running";Xb&&ja._transitionTo("running","scheduled");var lc=ka;ka=ja;ua={parent:ua,zone:this};try{Sa!="macroTask"||!ja.data||pb||$a||(ja.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ja,ta,xa)}catch(ec){if(this._zoneDelegate.handleError(this,
ec))throw ec;}}finally{ta=ja.state,ta!=="notScheduled"&&ta!=="unknown"&&(Sa=="eventTask"||pb||$a&&ta==="scheduling"?Xb&&ja._transitionTo("scheduled","running","scheduling"):(Sa=ja._zoneDelegates,this._updateTaskCount(ja,-1),Xb&&ja._transitionTo("notScheduled","running","notScheduled"),$a&&(ja._zoneDelegates=Sa))),ua=ua.parent,ka=lc}}};k.prototype.scheduleTask=function(ja){if(ja.zone&&ja.zone!==this)for(var ta=this;ta;){if(ta===ja.zone)throw Error("H`"+this.name+"`"+ja.zone.name);ta=ta.parent}ja._transitionTo("scheduling",
"notScheduled");ta=[];ja._zoneDelegates=ta;ja._zone=this;try{ja=this._zoneDelegate.scheduleTask(this,ja)}catch(xa){throw ja._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,xa),xa;}ja._zoneDelegates===ta&&this._updateTaskCount(ja,1);ja.state=="scheduling"&&ja._transitionTo("scheduled","scheduling");return ja};k.prototype.scheduleMicroTask=function(ja,ta,xa,Sa){return this.scheduleTask(new w("microTask",ja,ta,xa,Sa,void 0))};k.prototype.scheduleMacroTask=function(ja,
ta,xa,Sa,$a){return this.scheduleTask(new w("macroTask",ja,ta,xa,Sa,$a))};k.prototype.scheduleEventTask=function(ja,ta,xa,Sa,$a){return this.scheduleTask(new w("eventTask",ja,ta,xa,Sa,$a))};k.prototype.cancelTask=function(ja){if(ja.zone!=this)throw Error("I`"+(ja.zone||V).name+"`"+this.name);if(ja.state==="scheduled"||ja.state==="running"){ja._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,ja)}catch(ta){throw ja._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,
ta),ta;}this._updateTaskCount(ja,-1);ja._transitionTo("notScheduled","canceling");ja.runCount=-1;return ja}};k.prototype._updateTaskCount=function(ja,ta){var xa=ja._zoneDelegates;ta==-1&&(ja._zoneDelegates=null);for(var Sa=0;Sa<xa.length;Sa++)xa[Sa]._updateTaskCount(ja.type,ta)};da.Object.defineProperties(k.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});da.Object.defineProperties(k,{root:{configurable:!0,
enumerable:!0,get:function(){for(var ja=k.current;ja.parent;)ja=ja.parent;return ja}},current:{configurable:!0,enumerable:!0,get:function(){return ua.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return ka}}});k.__symbol__=ba;var l={name:"",onHasTask:function(ja,ta,xa,Sa){return ja.hasTask(xa,Sa)},onScheduleTask:function(ja,ta,xa,Sa){return ja.scheduleTask(xa,Sa)},onInvokeTask:function(ja,ta,xa,Sa,$a,pb){return ja.invokeTask(xa,Sa,$a,pb)},onCancelTask:function(ja,ta,xa,Sa){return ja.cancelTask(xa,
Sa)}},r=function(ja,ta,xa){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this._zone=ja;this._parentDelegate=ta;this._forkZS=xa&&(xa&&xa.onFork?xa:ta._forkZS);this._forkDlgt=xa&&(xa.onFork?ta:ta._forkDlgt);this._forkCurrZone=xa&&(xa.onFork?this._zone:ta._forkCurrZone);this._interceptZS=xa&&(xa.onIntercept?xa:ta._interceptZS);this._interceptDlgt=xa&&(xa.onIntercept?ta:ta._interceptDlgt);this._interceptCurrZone=xa&&(xa.onIntercept?this._zone:ta._interceptCurrZone);this._invokeZS=xa&&(xa.onInvoke?
xa:ta._invokeZS);this._invokeDlgt=xa&&(xa.onInvoke?ta:ta._invokeDlgt);this._invokeCurrZone=xa&&(xa.onInvoke?this._zone:ta._invokeCurrZone);this._handleErrorZS=xa&&(xa.onHandleError?xa:ta._handleErrorZS);this._handleErrorDlgt=xa&&(xa.onHandleError?ta:ta._handleErrorDlgt);this._handleErrorCurrZone=xa&&(xa.onHandleError?this._zone:ta._handleErrorCurrZone);this._scheduleTaskZS=xa&&(xa.onScheduleTask?xa:ta._scheduleTaskZS);this._scheduleTaskDlgt=xa&&(xa.onScheduleTask?ta:ta._scheduleTaskDlgt);this._scheduleTaskCurrZone=
xa&&(xa.onScheduleTask?this._zone:ta._scheduleTaskCurrZone);this._invokeTaskZS=xa&&(xa.onInvokeTask?xa:ta._invokeTaskZS);this._invokeTaskDlgt=xa&&(xa.onInvokeTask?ta:ta._invokeTaskDlgt);this._invokeTaskCurrZone=xa&&(xa.onInvokeTask?this._zone:ta._invokeTaskCurrZone);this._cancelTaskZS=xa&&(xa.onCancelTask?xa:ta._cancelTaskZS);this._cancelTaskDlgt=xa&&(xa.onCancelTask?ta:ta._cancelTaskDlgt);this._cancelTaskCurrZone=xa&&(xa.onCancelTask?this._zone:ta._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=
this._hasTaskDlgt=this._hasTaskZS=null;ja=xa&&xa.onHasTask;var Sa=ta&&ta._hasTaskZS;if(ja||Sa)this._hasTaskZS=ja?xa:l,this._hasTaskDlgt=ta,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,xa.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=ta,this._scheduleTaskCurrZone=this._zone),xa.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=ta,this._invokeTaskCurrZone=this._zone),xa.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=ta,this._cancelTaskCurrZone=this._zone)};
r.prototype.fork=function(ja,ta){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ja,ta):new k(ja,ta)};r.prototype.intercept=function(ja,ta,xa){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ja,ta,xa):ta};r.prototype.invoke=function(ja,ta,xa,Sa,$a){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ja,ta,xa,Sa,$a):ta.apply(xa,Sa)};r.prototype.handleError=function(ja,ta){return this._handleErrorZS?
this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,ja,ta):!0};r.prototype.scheduleTask=function(ja,ta){var xa=ta;if(this._scheduleTaskZS)this._hasTaskZS&&xa._zoneDelegates.push(this._hasTaskDlgtOwner),(xa=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ja,ta))||(xa=ta);else if(ta.scheduleFn)ta.scheduleFn(ta);else if(ta.type=="microTask")d(ta);else throw Error("J");return xa};r.prototype.invokeTask=function(ja,ta,xa,Sa){return this._invokeTaskZS?
this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,ja,ta,xa,Sa):ta.callback.apply(xa,Sa)};r.prototype.cancelTask=function(ja,ta){if(this._cancelTaskZS)ja=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ja,ta);else{if(!ta.cancelFn)throw Error("K");ja=ta.cancelFn(ta)}return ja};r.prototype.hasTask=function(ja,ta){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ja,ta)}catch(xa){this.handleError(ja,xa)}};r.prototype._updateTaskCount=
function(ja,ta){var xa=this._taskCounts,Sa=xa[ja];ta=xa[ja]=Sa+ta;if(ta<0)throw Error("L");Sa!=0&&ta!=0||this.hasTask(this._zone,{microTask:xa.microTask>0,macroTask:xa.macroTask>0,eventTask:xa.eventTask>0,change:ja})};da.Object.defineProperties(r.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}}});var w=function(ja,ta,xa,Sa,$a,pb){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ja;this.source=ta;this.data=Sa;this.scheduleFn=
$a;this.cancelFn=pb;if(!xa)throw Error("M");this.callback=xa;var Xb=this;this.invoke=ja==="eventTask"&&Sa&&Sa.useG?w.invokeTask:function(){return w.invokeTask.call(aa,Xb,this,arguments)}};w.invokeTask=function(ja,ta,xa){ja||(ja=this);Ga++;try{return ja.runCount++,ja.zone.runTask(ja,ta,xa)}finally{Ga==1&&e(),Ga--}};w.prototype.cancelScheduleRequest=function(){this._transitionTo("notScheduled","scheduling")};w.prototype._transitionTo=function(ja,ta,xa){if(this._state===ta||this._state===xa)this._state=
ja,ja=="notScheduled"&&(this._zoneDelegates=null);else throw Error("N`"+this.type+"`"+this.source+"`"+ja+"`"+ta+"`"+(xa?" or '"+xa+"'":"")+"`"+this._state);};w.prototype.toString=function(){return this.data&&typeof this.data.handleId!=="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)};w.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};da.Object.defineProperties(w.prototype,{zone:{configurable:!0,
enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var x=ba("setTimeout"),C=ba("Promise"),H=ba("then"),J=[],O=!1,R,V={name:"NO ZONE"},ca={},oa={symbol:ba,currentZoneFrame:function(){return ua},onUnhandledError:f,microtaskDrainDone:f,scheduleMicroTask:d,showUncaughtError:function(){return!k[ba("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:f,patchMethod:function(){return f},bindArguments:function(){return[]},
patchThen:function(){return f},patchMacroTask:function(){return f},patchEventPrototype:function(){return f},getGlobalObjects:function(){},ObjectDefineProperty:function(){return f},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return f},wrapWithCurrentZone:function(){return f},filterProperties:function(){return[]},attachOriginToPatched:function(){return f},_redefineProperty:function(){return f},patchCallbacks:function(){return f},
nativeScheduleMicroTask:c},ua={parent:null,zone:new k(null,null)},ka=null,Ga=0;b("Zone","Zone");return k},caa=function(a,b){return Zone.current.wrap(a,b)},daa=function(a,b){for(var c=a.length-1;c>=0;c--)typeof a[c]==="function"&&(a[c]=caa(a[c],b+"_"+c));return a},gaa=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={name$jscomp$127:void 0},e++){d.name$jscomp$127=b[e];var f=a[d.name$jscomp$127];if(f){var g=eaa(a,d.name$jscomp$127);faa(g)&&(a[d.name$jscomp$127]=
function(k){return function(l){var r=function(){return l.apply(this,daa(arguments,c+"."+k.name$jscomp$127))};ea(r,l);return r}}(d)(f))}}},faa=function(a){return a?a.writable===!1?!1:!(typeof a.get==="function"&&typeof a.set==="undefined"):!0},kaa=function(a,b,c){var d=eaa(a,b);!d&&c&&eaa(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=ba("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,g=b.slice(2),k=haa[g];k||(k=haa[g]=ba("ON_PROPERTY"+
g));d.set=function(l){var r=this;r||a!==fa||(r=fa);r&&(typeof r[k]==="function"&&r.removeEventListener(g,iaa),f==null||f.call(r,null),r[k]=l,typeof l==="function"&&r.addEventListener(g,iaa,!1))};d.get=function(){var l=this;l||a!==fa||(l=fa);if(!l)return null;var r=l[k];return r?r:e&&(r=e.call(this))?(d.set.call(this,r),typeof l.removeAttribute==="function"&&l.removeAttribute(b),r):null};jaa(a,b,d);a[c]=!0}},laa=function(a,b,c){if(b)for(var d=0;d<b.length;d++)kaa(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++)kaa(a,b[d],c)}},maa=function(a){var b=fa[a];if(b){fa[ba(a)]=b;fa[a]=function(){var e=daa(arguments,a);switch(e.length){case 0:this[ha]=new b;break;case 1:this[ha]=new b(e[0]);break;case 2:this[ha]=new b(e[0],e[1]);break;case 3:this[ha]=new b(e[0],e[1],e[2]);break;case 4:this[ha]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("O");}};ea(fa[a],b);var c=new b(function(){}),d;for(d in c)a==="XMLHttpRequest"&&d==="responseBlob"||function(e){typeof c[e]===
"function"?fa[a].prototype[e]=function(){return this[ha][e].apply(this[ha],arguments)}:jaa(fa[a].prototype,e,{set:function(f){typeof f==="function"?(this[ha][e]=caa(f,a+"."+e),ea(this[ha][e],f)):this[ha][e]=f},get:function(){return this[ha][e]}})}(d);for(d in b)d!=="prototype"&&b.hasOwnProperty(d)&&(fa[a][d]=b[d])}},ia=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=naa(d);!d&&a[b]&&(d=a);a=ba(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&eaa(d,b);if(faa(f)){var g=
c(e,a,b);d[b]=function(){return g(this,arguments)};ea(d[b],e)}}return e},oaa=function(a,b,c){function d(f){var g=f.data;g.args[g.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(g.target,g.args);return f}var e=null;e=ia(a,b,function(f){return function(g,k){var l=c(g,k);return l.cbIdx>=0&&typeof k[l.cbIdx]==="function"?Zone.current.scheduleMacroTask(l.name,k[l.cbIdx],l,d,void 0):f.apply(g,k)}})},ea=function(a,b){a[ba("OriginalDelegate")]=b},paa=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})},qaa=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&b.length>2}).map(function(b){return b.substring(2)})},saa=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=raa+c;b=raa+b;la[a]={};la[a]["false"]=c;la[a]["true"]=b},zaa=function(a,b,c,d){function e(V,ca,oa){if(ca=ca||a.event){V=V||ca.target||
a;var ua=V[la[ca.type][oa?"true":"false"]];if(ua){oa=[];if(ua.length===1)(ca=C(ua[0],V,ca))&&oa.push(ca);else{ua=ua.slice();for(var ka=0;ka<ua.length&&(!ca||ca[taa]!==!0);ka++){var Ga=C(ua[ka],V,ca);Ga&&oa.push(Ga)}}if(oa.length===1)throw oa[0];ca={};for(V=0;V<oa.length;ca={err$jscomp$16:void 0},V++)ca.err$jscomp$16=oa[V],b.nativeScheduleMicroTask(function(ja){return function(){throw ja.err$jscomp$16;}}(ca))}}}function f(V,ca){function oa(Rb,Cc){return Cc?typeof Rb==="boolean"?{capture:Rb,passive:!0}:
Rb?typeof Rb==="object"&&Rb.passive!==!1?Object.assign({},Rb,{passive:!0}):Rb:{passive:!0}:Rb}function ua(Rb){if(typeof Rb==="object"&&Rb!==null){var Cc=Object.assign({},Rb);Rb.signal&&(Cc.signal=Rb.signal);return Cc}return Rb}if(!V)return!1;var ka=!0;ca&&ca.useG!==void 0&&(ka=ca.useG);var Ga=ca&&ca.vh,ja=!0;ca&&ca.chkDup!==void 0&&(ja=ca.chkDup);var ta=!1;ca&&ca.rt!==void 0&&(ta=ca.rt);for(var xa=V;xa&&!xa.hasOwnProperty(g);)xa=naa(xa);!xa&&V[g]&&(xa=V);if(!xa||xa[w])return!1;var Sa=ca&&ca.eventNameToString,
$a={},pb=xa[w]=xa[g],Xb=xa[ba(k)]=xa[k];V=xa[ba(l)]=xa[l];var lc=xa[ba(r)]=xa[r],ec;ca&&ca.prepend&&(ec=xa[ba(ca.prepend)]=xa[ca.prepend]);var pc=function(Rb){if(!Rb.isRemoved){var Cc=la[Rb.eventName],Sc;Cc&&(Sc=Cc[Rb.capture?"true":"false"]);if(Cc=Sc&&Rb.target[Sc])for(var Bd=0;Bd<Cc.length;Bd++)if(Cc[Bd]===Rb){Cc.splice(Bd,1);Rb.isRemoved=!0;Rb.removeAbortListener&&(Rb.removeAbortListener(),Rb.removeAbortListener=null);Cc.length===0&&(Rb.allRemoved=!0,Rb.target[Sc]=null);break}}if(Rb.allRemoved)return Xb.call(Rb.target,
Rb.eventName,Rb.capture?J:H,Rb.options)},sb=function(Rb){return pb.call($a.target,$a.eventName,Rb.invoke,$a.options)},Ob=function(Rb){return ec.call($a.target,$a.eventName,Rb.invoke,$a.options)},ib=function(Rb){return Xb.call(Rb.target,Rb.eventName,Rb.invoke,Rb.options)};pc=ka?pc:ib;ib=function(Rb,Cc){var Sc=typeof Cc;return Sc==="function"&&Rb.callback===Cc||Sc==="object"&&Rb.originalDelegate===Cc};var Yb=(ca==null?void 0:ca.diff)||ib,rc=Zone[ba("UNPATCHED_EVENTS")],Gc=a[ba("PASSIVE_EVENTS")];ib=
function(Rb,Cc,Sc,Bd,Nc,fe){Nc=Nc===void 0?!1:Nc;fe=fe===void 0?!1:fe;return function(){var Xe=this||a,Ve=arguments[0];ca&&ca.transferEventName&&(Ve=ca.transferEventName(Ve));var Hh=arguments[1];if(!Hh||uaa&&Ve==="uncaughtException")return Rb.apply(this,arguments);var Gw=!1;if(typeof Hh!=="function"){if(!Hh.handleEvent)return Rb.apply(this,arguments);Gw=!0}if(!Ga||Ga(Rb,Hh,Xe,arguments)){var dp=!!Gc&&Gc.indexOf(Ve)!==-1,Ej=ua(oa(arguments[2],dp)),Rm=Ej==null?void 0:Ej.signal;if(Rm==null||!Rm.aborted){if(rc)for(var Hq=
0;Hq<rc.length;Hq++)if(Ve===rc[Hq])return dp?Rb.call(Xe,Ve,Hh,Ej):Rb.apply(this,arguments);dp=Ej?typeof Ej==="boolean"?!0:Ej.capture:!1;Hq=Ej&&typeof Ej==="object"?Ej.once:!1;var Hw=Zone.current,fk=la[Ve];fk||(saa(Ve,Sa),fk=la[Ve]);var Bl=fk[dp?"true":"false"];fk=Xe[Bl];var ep=!1;if(fk){if(ep=!0,ja)for(Bl=0;Bl<fk.length;Bl++)if(Yb(fk[Bl],Hh))return}else fk=Xe[Bl]=[];var Iw;Bl=Xe.constructor.name;var XK=vaa[Bl];XK&&(Iw=XK[Ve]);Iw||(Iw=Bl+Cc+(Sa?Sa(Ve):Ve));$a.options=Ej;Hq&&($a.options.once=!1);$a.target=
Xe;$a.capture=dp;$a.eventName=Ve;$a.isExisting=ep;if(ep=ka?waa:void 0)ep.taskData=$a;Rm&&($a.options.signal=void 0);var Cl=Hw.scheduleEventTask(Iw,Hh,ep,Sc,Bd);if(Rm){$a.options.signal=Rm;var Xz=function(){return Cl.zone.cancelTask(Cl)};Rb.call(Rm,"abort",Xz,{once:!0});Cl.removeAbortListener=function(){return Rm.removeEventListener("abort",Xz)}}$a.target=null;ep&&(ep.taskData=null);Hq&&($a.options.once=!0);typeof Cl.options!=="boolean"&&(Cl.options=Ej);Cl.target=Xe;Cl.capture=dp;Cl.eventName=Ve;Gw&&
(Cl.originalDelegate=Hh);fe?fk.unshift(Cl):fk.push(Cl);if(Nc)return Xe}}}};xa[g]=ib(pb,x,ka?function(){if(!$a.isExisting)return pb.call($a.target,$a.eventName,$a.capture?J:H,$a.options)}:sb,pc,ta);ec&&(xa.prependListener=ib(ec,".prependListener:",Ob,pc,ta,!0));xa[k]=function(){var Rb=this||a,Cc=arguments[0];ca&&ca.transferEventName&&(Cc=ca.transferEventName(Cc));var Sc=arguments[2];Sc=Sc?typeof Sc==="boolean"?!0:Sc.capture:!1;var Bd=arguments[1];if(!Bd)return Xb.apply(this,arguments);if(!Ga||Ga(Xb,
Bd,Rb,arguments)){var Nc=la[Cc],fe;Nc&&(fe=Nc[Sc?"true":"false"]);if(Nc=fe&&Rb[fe])for(var Xe=0;Xe<Nc.length;Xe++){var Ve=Nc[Xe];if(Yb(Ve,Bd)){Nc.splice(Xe,1);Ve.isRemoved=!0;Nc.length===0&&(Ve.allRemoved=!0,Rb[fe]=null,Sc||typeof Cc!=="string"||(Rb[raa+"ON_PROPERTY"+Cc]=null));Ve.zone.cancelTask(Ve);if(ta)return Rb;return}}return Xb.apply(this,arguments)}};xa[l]=function(){var Rb=this||a,Cc=arguments[0];ca&&ca.transferEventName&&(Cc=ca.transferEventName(Cc));var Sc=[];Rb=xaa(Rb,Sa?Sa(Cc):Cc);for(Cc=
0;Cc<Rb.length;Cc++){var Bd=Rb[Cc];Sc.push(Bd.originalDelegate?Bd.originalDelegate:Bd.callback)}return Sc};xa[r]=function(){var Rb=this||a,Cc=arguments[0];if(Cc){ca&&ca.transferEventName&&(Cc=ca.transferEventName(Cc));var Sc=la[Cc];if(Sc){var Bd=Rb[Sc["false"]];Rb=Rb[Sc["true"]];if(Bd)for(Bd=Bd.slice(),Sc=0;Sc<Bd.length;Sc++){var Nc=Bd[Sc];this[k].call(this,Cc,Nc.originalDelegate?Nc.originalDelegate:Nc.callback,Nc.options)}if(Rb)for(Rb=Rb.slice(),Bd=0;Bd<Rb.length;Bd++)Sc=Rb[Bd],this[k].call(this,
Cc,Sc.originalDelegate?Sc.originalDelegate:Sc.callback,Sc.options)}}else{Cc=Object.keys(Rb);for(Rb=0;Rb<Cc.length;Rb++)(Bd=(Bd=yaa.exec(Cc[Rb]))&&Bd[1])&&Bd!=="removeListener"&&this[r].call(this,Bd);this[r].call(this,"removeListener")}if(ta)return this};ea(xa[g],pb);ea(xa[k],Xb);lc&&ea(xa[r],lc);V&&ea(xa[l],V);return!0}for(var g=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",l=d&&d.listeners||"eventListeners",r=d&&d.rmAll||"removeAllListeners",w=ba(g),x="."+g+":",C=function(V,ca,oa){if(!V.isRemoved){var ua=
V.callback;typeof ua==="object"&&ua.handleEvent&&(V.callback=function(ja){return ua.handleEvent(ja)},V.originalDelegate=ua);try{V.invoke(V,ca,[oa])}catch(ja){var ka=ja}var Ga=V.options;Ga&&typeof Ga==="object"&&Ga.once&&ca[k].call(ca,oa.type,V.originalDelegate?V.originalDelegate:V.callback,Ga);return ka}},H=function(V){return e(this,V,!1)},J=function(V){return e(this,V,!0)},O=[],R=0;R<c.length;R++)O[R]=f(c[R],d);return O},xaa=function(a,b){if(!b){var c=[],d;for(d in a){var e=yaa.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=la[b];c||(saa(b),c=la[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Aaa=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[taa]=!0;c&&c.apply(d,e)}})},Faa=function(){ma.__load_patch("util",function(a,b,c){var d=qaa(a);c.patchOnProperties=laa;c.patchMethod=ia;c.bindArguments=daa;c.patchMacroTask=oaa;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=Aaa;c.patchEventTarget=zaa;c.ObjectDefineProperty=jaa;c.ObjectGetOwnPropertyDescriptor=eaa;c.ObjectCreate=Baa;c.ArraySlice=Caa;c.patchClass=maa;c.wrapWithCurrentZone=caa;c.filterProperties=paa;c.attachOriginToPatched=ea;c._redefineProperty=Object.defineProperty;c.patchCallbacks=aaa;c.getGlobalObjects=function(){return{globalSources:vaa,zoneSymbolEventNames:la,eventNames:d,
isBrowser:Daa,isMix:Eaa,isNode:uaa,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:raa,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})},Gaa=function(a,b){b.patchMethod(a,"queueMicrotask",function(){return function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])}})},na=function(a,b,c,d){function e(r){var w=r.data;w.args[0]=function(){return r.invoke.apply(this,arguments)};var x=g.apply(a,w.args);typeof x==="number"?w.handleId=x:(w.handle=
x,w.isRefreshable=typeof x.refresh==="function");return r}function f(r){r=r.data;var w=r.handleId,x;return k.call(a,(x=r.handle)!=null?x:w)}var g=null,k=null;b+=d;c+=d;var l={};g=ia(a,b,function(r){return function(w,x){if(typeof x[0]==="function"){var C={isRefreshable:!1,isPeriodic:d==="Interval",delay:d==="Timeout"||d==="Interval"?x[1]||0:void 0,args:x},H=x[0];x[0]=function(){try{return H.apply(this,arguments)}finally{var oa=C.handle,ua=C.handleId,ka=C.isRefreshable;C.isPeriodic||ka||(ua?delete l[ua]:
oa&&(oa[Haa]=null))}};var J=Zone.current.scheduleMacroTask(b,x[0],C,e,f);if(!J)return J;var O=J.data;w=O.handleId;x=O.handle;var R=O.isRefreshable;O=O.isPeriodic;if(w)l[w]=J;else if(x&&(x[Haa]=J,R&&!O)){var V=x.refresh;x.refresh=function(){var oa=J.zone,ua=J.state;ua==="notScheduled"?(J._state="scheduled",oa._updateTaskCount(J,1)):ua==="running"&&(J._state="scheduling");return V.call(this)}}var ca;return(ca=x!=null?x:w)!=null?ca:J}return r.apply(a,x)}});k=ia(a,c,function(r){return function(w,x){w=
x[0];if(typeof w==="number"){var C=l[w];delete l[w]}else(C=w==null?void 0:w[Haa])?w[Haa]=null:C=w;var H;((H=C)==null?0:H.type)?C.cancelFn&&C.zone.cancelTask(C):r.apply(a,x)}})},Kaa=function(){var a=ma;a.__load_patch("timers",function(b){na(b,"set","clear","Timeout");na(b,"set","clear","Interval");na(b,"set","clear","Immediate")});a.__load_patch("requestAnimationFrame",function(b){na(b,"request","cancel","AnimationFrame");na(b,"mozRequest","mozCancel","AnimationFrame");na(b,"webkitRequest","webkitCancel",
"AnimationFrame")});a.__load_patch("blocking",function(b,c){for(var d=["alert","prompt","confirm"],e=0;e<d.length;e++)ia(b,d[e],function(f,g,k){return function(l,r){return c.current.run(f,b,r,k)}})});a.__load_patch("EventTarget",function(b,c,d){d.patchEventPrototype(b,d);if(!Zone[d.symbol("patchEventTarget")]){var e=d.getGlobalObjects();c=e.eventNames;var f=e.zoneSymbolEventNames,g=e.TRUE_STR,k=e.FALSE_STR;e=e.ZONE_SYMBOL_PREFIX;for(var l=0;l<c.length;l++){var r=c[l],w=e+(r+k),x=e+(r+g);f[r]={};f[r][k]=
w;f[r][g]=x}(c=b.EventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c&&c.prototype])}(c=b.XMLHttpRequestEventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c.prototype])});a.__load_patch("MutationObserver",function(){maa("MutationObserver");maa("WebKitMutationObserver")});a.__load_patch("IntersectionObserver",function(){maa("IntersectionObserver")});a.__load_patch("FileReader",function(){maa("FileReader")});a.__load_patch("on_property",function(b,c,d){if((!uaa||Eaa)&&!Zone[d.symbol("patchEvents")]){c=
b.__Zone_ignore_on_properties;d=[];if(Daa){var e=window;d=d.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));var f=qaa(e),g=naa(e);e&&(f=paa(e,f,c),laa(e,f,g))}d=d.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));for(e=0;e<d.length;e++)if(f=b[d[e]],g=void 0,(g=f)==null?0:g.prototype)g=
f.prototype,f=qaa(f.prototype),g&&(f=paa(g,f,c),laa(g,f,void 0))}});a.__load_patch("customElements",function(b,c,d){c=d.getGlobalObjects();var e=c.isMix;(c.isBrowser||e)&&b.customElements&&"customElements"in b&&d.patchCallbacks(d,b.customElements,"customElements","define","connectedCallback disconnectedCallback adoptedCallback attributeChangedCallback formAssociatedCallback formDisabledCallback formResetCallback formStateRestoreCallback".split(" "))});a.__load_patch("XHR",function(b,c){(function(r){function w(ka){var Ga=
ka.data,ja=Ga.target;ja[g]=!1;ja[l]=!1;var ta=ja[f];J||(J=ja[Iaa],O=ja[Jaa]);ta&&O.call(ja,"readystatechange",ta);ta=ja[f]=function(){if(ja.readyState===ja.DONE)if(!Ga.aborted&&ja[g]&&ka.state==="scheduled"){var xa=ja[c.__symbol__("loadfalse")];if(ja.status!==0&&xa&&xa.length>0){var Sa=ka.invoke;ka.invoke=function(){for(var $a=ja[c.__symbol__("loadfalse")],pb=0;pb<$a.length;pb++)$a[pb]===ka&&$a.splice(pb,1);Ga.aborted||ka.state!=="scheduled"||Sa.call(ka)};xa.push(ka)}else ka.invoke()}else Ga.aborted||
ja[g]!==!1||(ja[l]=!0)};J.call(ja,"readystatechange",ta);ja[d]||(ja[d]=ka);oa.apply(ja,Ga.args);ja[g]=!0;return ka}function x(){}function C(ka){ka=ka.data;ka.aborted=!0;return ua.apply(ka.target,ka.args)}var H=r.XMLHttpRequest;if(H){H=H.prototype;var J=H[Iaa],O=H[Jaa];!J&&(r=r.XMLHttpRequestEventTarget)&&(r=r.prototype,J=r[Iaa],O=r[Jaa]);var R=ia(H,"open",function(){return function(ka,Ga){ka[e]=Ga[2]==0;ka[k]=Ga[1];return R.apply(ka,Ga)}}),V=ba("fetchTaskAborting"),ca=ba("fetchTaskScheduling"),oa=
ia(H,"send",function(){return function(ka,Ga){if(c.current[ca]===!0||ka[e])return oa.apply(ka,Ga);Ga={target:ka,url:ka[k],isPeriodic:!1,args:Ga,aborted:!1};var ja=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,Ga,w,C);ka&&ka[l]===!0&&!Ga.aborted&&ja.state==="scheduled"&&ja.invoke()}}),ua=ia(H,"abort",function(){return function(ka,Ga){var ja=ka[d];if(ja&&typeof ja.type=="string")ja.cancelFn==null||ja.data&&ja.data.aborted||ja.zone.cancelTask(ja);else if(c.current[V]===!0)return ua.apply(ka,
Ga)}})}})(b);var d=ba("xhrTask"),e=ba("xhrSync"),f=ba("xhrListener"),g=ba("xhrScheduled"),k=ba("xhrURL"),l=ba("xhrErrorBeforeScheduled")});a.__load_patch("geolocation",function(b){b.navigator&&b.navigator.geolocation&&gaa(b.navigator.geolocation)});a.__load_patch("PromiseRejectionEvent",function(b,c){function d(e){return function(f){xaa(b,e).forEach(function(g){var k=b.PromiseRejectionEvent;k&&(k=new k(e,{promise:f.promise,reason:f.rejection}),g.invoke(k))})}}b.PromiseRejectionEvent&&(c[ba("unhandledPromiseRejectionHandler")]=
d("unhandledrejection"),c[ba("rejectionHandledHandler")]=d("rejectionhandled"))});a.__load_patch("queueMicrotask",function(b,c,d){Gaa(b,d)})},Laa=function(){ma.__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}})})},pa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,pa);else{var c=Error().stack;c&&
(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b);this.reportErrorToServer=!0},Maa=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");pa.call(this,c+a[d])},qa=function(a,b){if(a)throw Error("P");b.push(65533)},Naa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b},Oaa=function(a,b,c,d){c=b+c;for(var e=[],f=null,g,k,l,r;b<c;)g=a[b++],g<128?e.push(g):g<224?b>=c?qa(d,e):(k=a[b++],g<194||(k&192)!==128?(b--,qa(d,e)):
e.push((g&31)<<6|k&63)):g<240?b>=c-1?qa(d,e):(k=a[b++],(k&192)!==128||g===224&&k<160||g===237&&k>=160||((l=a[b++])&192)!==128?(b--,qa(d,e)):e.push((g&15)<<12|(k&63)<<6|l&63)):g<=244?b>=c-2?qa(d,e):(k=a[b++],(k&192)!==128||(g<<28)+(k-144)>>30!==0||((l=a[b++])&192)!==128||((r=a[b++])&192)!==128?(b--,qa(d,e)):(g=(g&7)<<18|(k&63)<<12|(l&63)<<6|r&63,g-=65536,e.push((g>>10&1023)+55296,(g&1023)+56320))):qa(d,e),e.length>=8192&&(f=Naa(f,e),e.length=0);return Naa(f,e)},Saa=function(a,b,c,d){var e;d?(e=Paa)||
(e=Paa=new TextDecoder("utf-8",{fatal:!0})):(e=Qaa)||(e=Qaa=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(Raa===void 0){try{e.decode(new Uint8Array([128]))}catch(g){}try{e.decode(new Uint8Array([97])),Raa=!0}catch(g){Raa=!1}}b=!Raa}b&&(Paa=void 0);throw f;}},Waa=function(a,b){b=b===void 0?!1:b;if(Taa){if(b&&(Uaa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Q");
a=(Vaa||(Vaa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(f<128)d[c++]=f;else{if(f<2048)d[c++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e<a.length){var g=a.charCodeAt(++e);if(g>=56320&&g<=57343){f=(f-55296)*1024+g-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Q");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,
c)}return a},sa=function(a){ra.setTimeout(function(){throw a;},0)},va=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},Xaa=function(a){return wa("@ldap.google.com",a.slice(a.length-16))==0},ya=function(a){return/^[\s\xa0]*$/.test(a)},wa=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},za=function(a,b){return a.indexOf(b)!=-1},Yaa=function(a,b){return za(a.toLowerCase(),b.toLowerCase())},$aa=function(a,b){var c=0;a=Aa(String(a)).split(".");
b=Aa(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(f[0].length==0&&g[0].length==0)break;c=Zaa(f[1].length==0?0:parseInt(f[1],10),g[1].length==0?0:parseInt(g[1],10))||Zaa(f[2].length==0,g[2].length==0)||Zaa(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c},Zaa=function(a,b){return a<b?-1:a>b?1:0},Ba=function(){var a=ra.navigator;return a&&(a=a.userAgent)?
a:""},bba=function(a){if(!aba||!Ca)return!1;for(var b=0;b<Ca.brands.length;b++){var c=Ca.brands[b].brand;if(c&&za(c,a))return!0}return!1},Da=function(a){return za(Ba(),a)},Ea=function(){return aba?!!Ca&&Ca.brands.length>0:!1},cba=function(){return Ea()?!1:Da("Opera")},dba=function(){return Ea()?!1:Da("Trident")||Da("MSIE")},eba=function(){return Da("Firefox")||Da("FxiOS")},gba=function(){return Da("Safari")&&!(fba()||(Ea()?0:Da("Coast"))||cba()||(Ea()?0:Da("Edge"))||(Ea()?bba("Microsoft Edge"):Da("Edg/"))||
(Ea()?bba("Opera"):Da("OPR"))||eba()||Da("Silk")||Da("Android"))},fba=function(){return Ea()?bba("Chromium"):(Da("Chrome")||Da("CriOS"))&&!(Ea()?0:Da("Edge"))||Da("Silk")},hba=function(){return Da("Android")&&!(fba()||eba()||cba()||Da("Silk"))},iba=function(){var a=Ba();if(dba()){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},jba=function(){if(Ea()){var a=Ca.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=iba();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])},kba=function(){return aba?!!Ca&&!!Ca.platform:!1},lba=function(){return kba()?Ca.platform==="Android":Da("Android")},mba=function(){return Da("iPhone")&&!Da("iPod")&&!Da("iPad")},
Fa=function(){return mba()||Da("iPad")||Da("iPod")},Ha=function(){return kba()?Ca.platform==="macOS":Da("Macintosh")},nba=function(){return kba()?Ca.platform==="Windows":Da("Windows")},oba=function(){return kba()?Ca.platform==="Chrome OS":Da("CrOS")},pba=function(){var a=Ba(),b="";nba()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Fa()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Ha()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,
"."):"10"):Yaa(Ba(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):lba()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):oba()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""},Ia=function(a){return a[a.length-1]},qba=function(a,b){var c=0;Ja(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},sba=function(a,b){b=rba(a,b);return b<0?null:typeof a==="string"?a.charAt(b):a[b]},rba=function(a,b){for(var c=typeof a==="string"?a.split(""):a,d=a.length-
1;d>=0;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},Ka=function(a,b){return tba(a,b)>=0},uba=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},La=function(a,b){b=tba(a,b);var c;(c=b>=0)&&vba(a,b);return c},vba=function(a,b){Array.prototype.splice.call(a,b,1)},wba=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&&vba(a,b)},Ma=function(a){var b=a.length;if(b>
0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},xba=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},zba=function(a,b,c,d){return Array.prototype.splice.apply(a,yba(arguments,1))},yba=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Bba=function(a,b,c){b=b||a;var d=function(l){return Oa(l)?"o"+Aba(l):
(typeof l).charAt(0)+l};c=c||d;for(var e=d=0,f={};e<a.length;){var g=a[e++],k=c(g);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=g)}b.length=d},Dba=function(a,b){a.sort(b||Cba)},Eba=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||Cba;Dba(c,function(f,g){return e(f.value,g.value)||f.index-g.index});for(b=0;b<a.length;b++)a[b]=c[b].value},Gba=function(a,b){if(!Na(a)||!Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=Fba,e=0;e<c;e++)if(!d(a[e],
b[e]))return!1;return!0},Cba=function(a,b){return a>b?1:a<b?-1:0},Fba=function(a,b){return a===b},Hba=function(a,b){for(var c=new Map,d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);if(f!==void 0){var g=c.get(f);g||(g=[],c.set(f,g));g.push(e)}}return c},Iba=function(){for(var a=[],b=0;b<5;b+=1)a.push(b);return a},Jba=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},Lba=function(a){return Kba[a]||""},Pba=function(a){if(!Mba)return Nba(a);a=Oba.test(a)?a.replace(Oba,
Lba):a;a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b},Pa=function(a){return Qba&&a!=null&&a instanceof Uint8Array},Rba=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},Qa=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){Ra||Ta in a||Sba(a,Tba);a[Ta]|=b},Va=function(a,b){Ra||
Ta in a||Sba(a,Tba);a[Ta]=b},Uba=function(a){if(4&a)return 512&a?512:1024&a?1024:0},Wa=function(a){Ua(a,34);return a},Vba=function(a){Ua(a,8192);return a},Wba=function(a){Ua(a,32);return a},Xa=function(){return typeof BigInt==="function"},Xba=function(a){return a.length==0?Ya():new Za(a,ab)},db=function(a){return a!=null&&a[bb]===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=Yba(a);else if(a.constructor!==Za)if(Pa(a))a=a.length?new Za(new Uint8Array(a),ab):Ya();else{if(!b)throw Error();a=void 0}return a},Zba=function(a){return!Array.isArray(a)||a.length?!1:(a[Ta]|0)&1?!0:!1},hb=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();},$ba=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();},aca=function(a,b,c){var d=b&128?0:-1,e=a.length,f;if(f=!!e)f=a[e-1],f=f!=null&&typeof f===
"object"&&f.constructor===Object;var g=e+(f?-1:0);for(b=b&128?1:0;b<g;b++)c(b-d,a[b]);if(f){a=a[e-1];for(var k in a)!isNaN(k)&&c(+k,a[k])}},kb=function(a){return a&128?jb:void 0},bca=function(a){return a},lb=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a},dca=function(){var a=cca;return lb(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})},fca=function(a){return lb(function(b){return eca(b)?b.every(function(c){return a(c)}):!1})},mb=function(a){var b=
a;if(gca(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(hca(b)&&!Number.isSafeInteger(b))throw Error(String(b));return ica?BigInt(a):a=jca(a)?a?"1":"0":gca(a)?a.trim()||"0":String(a)},kca=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}},lca=function(a){var b=a>>>0;nb=b;ob=(a-b)/4294967296>>>0},qb=function(a){if(a<0){lca(-a);var b=m(mca(nb,ob));a=b.next().value;
b=b.next().value;nb=a>>>0;ob=b>>>0}else lca(a)},nca=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:rb(a,b)},oca=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=nca(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a},qca=function(a,b){return Xa()?mb(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(b))<<BigInt(32))+BigInt.asUintN(32,BigInt(a)))):mb(pca(a,b))},rb=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+rca(c)+rca(a));return c},rca=function(a){a=String(a);return"0000000".slice(a.length)+a},pca=function(a,b){b&2147483648?Xa()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=m(mca(a,b)),a=b.next().value,b=b.next().value,a="-"+rb(a,b)):a=rb(a,b);return a},sca=function(a){if(a.length<16)qb(Number(a));else if(Xa())a=BigInt(a),
nb=Number(a&BigInt(4294967295))>>>0,ob=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");ob=nb=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)),ob*=1E6,nb=nb*1E6+d,nb>=4294967296&&(ob+=Math.trunc(nb/4294967296),ob>>>=0,nb>>>=0);b&&(b=m(mca(nb,ob)),a=b.next().value,b=b.next().value,nb=a,ob=b)}},mca=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},tca=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=
b},uca=function(){var a=Error();tca(a,"incident");sa(a)},tb=function(a){a=Error(a);tca(a,"warning");return a},ub=function(a,b){if(a!=null){var c;var d=(c=vca)!=null?c:vca={};c=d[a]||0;c>=b||(d[a]=c+1,uca())}},vb=function(a){return Array.prototype.slice.call(a)},wb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);},wca=function(a){if(typeof a!=="number")throw Error("V`"+typeof a+"`"+a);return a},xb=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||
a==="-Infinity")return Number(a)},yb=function(a){if(typeof a!=="boolean")throw Error("W`"+xca(a)+"`"+a);return a},zb=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a},Bb=function(a){switch(typeof a){case "bigint":return!0;case "number":return Ab(a);case "string":return yca.test(a);default:return!1}},Cb=function(a){if(!Ab(a))throw tb("enum");return a|0},zca=function(a){return a==null?a:Cb(a)},Db=function(a){return a==null?a:Ab(a)?a|0:void 0},Eb=function(a){if(typeof a!==
"number")throw tb("int32");if(!Ab(a))throw tb("int32");return a|0},Fb=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ab(a)?a|0:void 0},Aca=function(){if(!Ab(0))throw tb("uint32");return 0},Bca=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Ab(a)?a>>>0:void 0},Hb=function(a,b){b=b===void 0?0:b;if(!Bb(a))throw tb("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Cca(a);
case "bigint":return String(Gb(64,a));default:return Dca(a)}case 1024:switch(c){case "string":return Eca(a);case "bigint":return mb(Gb(64,a));default:return Fca(a)}case 0:switch(c){case "string":return Cca(a);case "bigint":return mb(Gb(64,a));default:return Gca(a)}default:return wb(b,"Unknown format requested type for int64")}},Ib=function(a,b){return a==null?a:Hb(a,b===void 0?0:b)},Hca=function(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&a<="9223372036854775807")return a;
sca(a);return pca(nb,ob)},Ica=function(a){if(a[0]==="-")var b=!1;else b=a.length,b=b<20?!0:b===20&&a<="18446744073709551615";if(b)return a;sca(a);return rb(nb,ob)},Gca=function(a){a=Jb(a);Kb(a)||(qb(a),a=oca(nb,ob));return a},Jca=function(a){a=Jb(a);a>=0&&Kb(a)||(qb(a),a=nca(nb,ob));return a},Dca=function(a){a=Jb(a);Kb(a)?a=String(a):(qb(a),a=pca(nb,ob));return a},Kca=function(a){a=Jb(a);a>=0&&Kb(a)?a=String(a):(qb(a),a=rb(nb,ob));return a},Cca=function(a){var b=Jb(Number(a));if(Kb(b))return String(b);
b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Hca(a)},Eca=function(a){var b=Jb(Number(a));if(Kb(b))return mb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Xa()?mb(Gb(64,BigInt(a))):mb(Hca(a))},Fca=function(a){return Kb(a)?mb(Gca(a)):mb(Dca(a))},Lca=function(a){return Kb(a)?mb(Jca(a)):mb(Kca(a))},Mca=function(a){var b=Jb(Number(a));if(Kb(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Ica(a)},Nca=function(a){var b=Jb(Number(a));if(Kb(b)&&b>=0)return mb(b);
b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Xa()?mb(Lb(64,BigInt(a))):mb(Ica(a))},Nb=function(a){if(a==null)return a;if(typeof a==="bigint")return Mb(a)?a=Number(a):(a=Gb(64,a),a=Mb(a)?Number(a):String(a)),a;if(Bb(a))return typeof a==="number"?Gca(a):Cca(a)},Pb=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Gb(64,a));if(Bb(a))return c==="string"?Cca(a):b?Dca(a):Gca(a)},Qb=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return mb(Gb(64,
a));if(Bb(a))return b==="string"?Eca(a):Fca(a)},Oca=function(a){var b=0;b=b===void 0?0:b;if(!Bb(a))throw tb("uint64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Mca(a);case "bigint":return String(Lb(64,a));default:return Kca(a)}case 1024:switch(c){case "string":return Nca(a);case "bigint":return mb(Lb(64,a));default:return Lca(a)}case 0:switch(c){case "string":return Mca(a);case "bigint":return mb(Lb(64,a));default:return Jca(a)}default:return wb(b,"Unknown format requested type for int64")}},
Pca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Gb(64,a));if(Bb(a)){if(b==="string")return Cca(a);if(b==="number")return Gca(a)}},Qca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Lb(64,a));if(Bb(a)){if(b==="string")return Mca(a);if(b==="number")return Jca(a)}},Sb=function(a){if(typeof a!=="string")throw Error();return a},Rca=function(a){if(a!=null&&typeof a!=="string")throw Error();return a},Tb=function(a){return a==null||typeof a===
"string"?a:void 0},Uca=function(a,b,c,d){if(db(a))return a;if(!Array.isArray(a))return c?d&2?b[Sca]||(b[Sca]=Tca(b)):new b:void 0;c=a[Ta]|0;d=c|d&32|d&2;d!==c&&Va(a,d);return new b(a)},Tca=function(a){a=new a;Wa(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Vca=function(a,b,c){if(b)return yb(a);var d;return(d=zb(a))!=null?d:c?!1:void 0},Ub=function(a,b,c){a=b?Hb(a,1024):Qb(a);return a==null?c?Wca:void 0:a},Vb=function(a,b,c){if(b)return Sb(a);var d;return(d=Tb(a))!=null?d:c?
"":void 0},Xca=function(a,b,c){a=b?Cb(a):Db(a);return a==null?c?0:void 0:a},Yca=function(a,b){if(typeof b==="string")try{b=Pba(b)}catch(c){return!1}return Pa(b)&&Rba(a,b)},Zca=function(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}},ada=function(a,b){if(a[bb]===cb)a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(a))return!1;if(b[bb]===cb)b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(b))return!1;
return $ca(a,b,void 0,2)},Wb=function(a,b,c){return $ca(a,b,c,0)},$ca=function(a,b,c,d){if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return bda(a,b,c);if(b instanceof Map)return bda(b,a,c);if(a==null||b==null)return!1;if(a instanceof Za)return cda(a,b);if(b instanceof Za)return cda(b,a);if(Pa(a))return Yca(a,b);if(Pa(b))return Yca(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):Zca(e)&&Zca(f)?""+a===""+b:e==="boolean"&&
f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(a[bb]===cb||b[bb]===cb)return ada(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){f=a[Ta]|0;var g=b[Ta]|0,k=a.length,l=b.length,r=Math.max(k,l);e=(f|g|64)&128?0:-1;if(d===1||(f|g)&1)d=1;else if((f|g)&8192)return dda(a,b);f=k&&a[k-1];g=l&&b[l-1];f!=null&&typeof f==="object"&&f.constructor===Object||(f=null);g!=null&&typeof g==="object"&&g.constructor===Object||(g=null);k=k-e-+!!f;l=l-e-+!!g;for(var w=0;w<r;w++)if(!eda(w-
e,a,f,k,b,g,l,e,c,d))return!1;if(f)for(var x in f){d=a;r=f;w=k;var C=b,H=g,J=l,O=e,R=c,V=+x;if(!(!Number.isFinite(V)||V<w||V<J||eda(V,d,r,w,C,H,J,O,R,2)))return!1}if(g)for(var ca in g)if((x=f&&ca in f)||(x=a,d=f,r=k,w=b,C=g,H=l,J=e,O=c,R=+ca,x=!Number.isFinite(R)||R<r||R<H?!0:eda(R,x,d,r,w,C,H,J,O,2)),!x)return!1;return!0}if(a.constructor===Object)return Wb([a],[b]);throw Error();},eda=function(a,b,c,d,e,f,g,k,l,r){b=fda(a,b,c,d,k);e=fda(a,e,f,g,k);r=r===1;if(e==null&&Zba(b)||b==null&&Zba(e))return!0;
a=r?l:l==null?void 0:l.getFieldComparisonTypeInfo(a);return $ca(b,e,a,0)},fda=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]},gda=function(a){return a},hda=function(a,b,c,d,e,f){a=Uca(a,d,c,f);e&&(a=Zb(a));return a},ida=function(a,b,c){if(a.size!=b.size)return!1;var d=!0;a.forEach(function(e,f){Wb(e,b.get(f),c==null?void 0:c.getFieldComparisonTypeInfo(2))||(d=!1)});return d},jda=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},kda=function(a,b,c){if(b==null)return a.size===0;if(!Array.isArray(b)||a.size>b.length)return!1;b=vb(b);Array.prototype.sort.call(b,jda);for(var d=0,e=void 0,f=b.length-1;f>=0;f--){var g=b[f];if(!g||!Array.isArray(g)||g.length!==2)return!1;var k=g[0];if(k!==e){e=void 0;if(!Wb(a.get(k),g[1],(e=c)==null?void 0:e.getFieldComparisonTypeInfo(2)))return!1;e=k;d++}}return d===a.size},dda=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return!1;a=vb(a);b=vb(b);Array.prototype.sort.call(a,
jda);Array.prototype.sort.call(b,jda);var c=a.length,d=b.length;if(c===0&&d===0)return!0;for(var e=0,f=0;e<c&&f<d;){var g=void 0,k=a[e];if(!Array.isArray(k))return!1;for(var l=k[0];e<c-1&&Wb((g=a[e+1])[0],l);)e++,k=g;var r=void 0;g=b[f];if(!Array.isArray(g))return!1;for(var w=g[0];f<d-1&&Wb((r=b[f+1])[0],w);)f++,g=r;if(!Wb(l,w))return!1;l=void 0;if(!Wb(k[1],g[1],(l=void 0)==null?void 0:l.getFieldComparisonTypeInfo(2)))return!1;e++;f++}return e>=c&&f>=d},lda=function(a){return[a,this.get(a)]},oda=
function(){return mda||(mda=new $b(Wa([]),void 0,void 0,void 0,nda))},pda=function(a){var b=ac(bc);return b?a[b]:void 0},qda=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=ac(bc);c&&c in a&&(a=a[c])&&delete a[b]},tda=function(a,b){var c=c===void 0?!1:c;if(ac(rda)&&ac(bc)&&void 0===rda){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[bc];if(!e)return;if(e=e.reviveUnknownFields)try{e(d,b,sda);return}catch(f){sa(f)}}c&&qda(a,b)},vda=function(a,b){var c=
ac(bc),d;Ra&&c&&((d=a[c])==null?void 0:d[b])!=null&&ub(uda,3)},xda=function(a,b){b<100||ub(wda,1)},Cda=function(a,b,c,d){var e=d!==void 0;d=!!d;var f=ac(bc),g;!e&&Ra&&f&&(g=a[f])&&yda(g,xda);f=[];var k=a.length;g=4294967295;var l=!1,r=!!(b&64),w=r?b&128?0:-1:void 0;if(!(b&1)){var x=k&&a[k-1];x!=null&&typeof x==="object"&&x.constructor===Object?(k--,g=k):x=void 0;if(r&&!(b&128)&&!e){l=!0;var C;g=((C=zda)!=null?C:bca)(g-w,w,a,x,void 0)+w}}b=void 0;for(C=0;C<k;C++){var H=a[C];if(H!=null&&(H=c(H,d))!=
null)if(r&&C>=g){var J=C-w,O=void 0;((O=b)!=null?O:b={})[J]=H}else f[C]=H}if(x)for(var R in x)k=x[R],k!=null&&(k=c(k,d))!=null&&(C=+R,H=void 0,r&&!Number.isNaN(C)&&(H=C+w)<g?f[H]=k:(C=void 0,((C=b)!=null?C:b={})[R]=k));b&&(l?f.push(b):f[g]=b);e&&ac(bc)&&(a=pda(a))&&a instanceof Ada&&(f[bc]=Bda(a));return f},Dda=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 Mb(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:Cda(a,b,cc)}if(db(a))return Eda(a);if(a instanceof Za)return Fda(a);if(a instanceof $b)return a=a.size!==0?Gda(a,Dda):void 0,a;return}return a},Jda=function(a,b){if(b){zda=b==null||b===bca||b[Hda]!==Ida?bca:b;try{return Eda(a)}finally{zda=void 0}}return Eda(a)},Eda=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Cda(a,a[Ta]|0,cc)},Mda=function(a){switch(typeof a){case "boolean":return Kda||
(Kda=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Lda||(Lda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},Oda=function(a,b){return Nda(a,b[0],b[1])},n=function(a,b,c){return Nda(a,b,c,2048)},Nda=function(a,b,c,d){d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("Y");e=a[Ta]|0;if(Pda&&1&e)throw Error("Z");2048&e&&!(2&e)&&Qda();if(e&256)throw Error("$");if(e&64)return(e|d)!==e&&Va(a,
e|d),a;if(c&&(e|=128,c!==a[0]))throw Error("aa");a:{c=a;e|=64;var f=c.length;if(f){var g=f-1,k=c[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=e&128?0:-1;g-=b;if(g>=1024)throw Error("ca");for(var l in k)f=+l,f<g&&(c[f+b]=k[l],delete k[l]);e=e&-16760833|(g&1023)<<14;break a}}if(b){l=Math.max(b,f-(e&128?0:-1));if(l>1024)throw Error("da");e=e&-16760833|(l&1023)<<14}}}Va(a,e|64|d);return a},Qda=function(){if(Pda)throw Error("ba");ub(Rda,5)},Sda=function(a,b){if(typeof a==="string")return new dc(Pba(a),
b);if(Array.isArray(a))return new dc(new Uint8Array(a),b);if(a.constructor===Uint8Array)return new dc(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new dc(a,!1);if(a.constructor===Za)return b=fc(a)||new Uint8Array(0),new dc(b,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new dc(a,!1);throw Error();},Vda=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:Tda(a,c,b)}if(db(a))return Uda(a);if(a instanceof $b){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=Wa(Gda(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=Uda(e):Array.isArray(e)?e=Tda(e,e[Ta]|0,!!(b&32)):e=void 0;d[1]=e}return c}if(a instanceof Za)return a},Tda=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},Wda=function(a,b,c){a=new a.constructor(b);c&&(a.copyOnWrite=
eb);a.noLegacyNull=eb;return a},Uda=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?a:Xda(a,b,c)?Wda(a,b):hc(b,c)},hc=function(a,b,c,d){d!=null||(d=!!(34&b));a=Cda(a,b,Vda,d);d=32;c&&(d|=2);b=b&16769217|d;Va(a,b);return a},Zb=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?Xda(a,b,c)?Wda(a,b,!0):new a.constructor(hc(b,c,!1)):a},Yda=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
c=b[Ta]|0;return fb(a,c)?a:Xda(a,b,c)?Wda(a,b):new a.constructor(hc(b,c,!0))},ic=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},jc=function(a){if(!ic(a)&&fb(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ta]|0))throw Error();},kc=function(a,b){b===void 0&&(b=a[Ta]|0);b&32&&!(b&4096)&&Va(a,b|
4096)},Xda=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),g=a.length-1;if(g>=1+(e?0:-1)&&f>=g){var k=a[g];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var l;g=((l=b)!=null?l:b=a[Ta]|0)>>14&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b},qc=function(a,b,c,d,e,f,g){var k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=
k[Ta]|0;d=fb(a,l)?1:d;e=!!e||d===3;d===2&&ic(a)&&(k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=k[Ta]|0);var r=Zda(k,b,g),w=r===nc?7:r[Ta]|0,x=$da(w,l);var C=x;4&C?f==null?a=!1:(!e&&f===0&&(512&C||1024&C)&&(a.constructor[aea]=(a.constructor[aea]|0)+1)<5&&uca(),a=f===0?!1:!(f&C)):a=!0;if(a){4&x&&(r=vb(r),w=0,x=oc(x,l),l=mc(k,l,b,r,g));for(var H=C=0;C<r.length;C++){var J=c(r[C]);J!=null&&(r[H++]=J)}H<C&&(r.length=H);c=(x|4)&-513;x=c&=-1025;f&&(x|=f);x&=-4097}x!==w&&(Va(r,x),2&x&&Object.freeze(r));
return r=bea(r,x,k,l,b,g,d,a,e)},bea=function(a,b,c,d,e,f,g,k,l){var r=b;g===1||(g!==4?0:2&b||!(16&b)&&32&d)?sc(b)||(b|=!a.length||k&&!(4096&b)||32&d&&!(4096&b||16&b)?2:256,b!==r&&Va(a,b),Object.freeze(a)):(g===2&&sc(b)&&(a=vb(a),r=0,b=oc(b,d),d=mc(c,d,e,a,f)),sc(b)||(l||(b|=16),b!==r&&Va(a,b)));2&b||!(4096&b||16&b)||kc(c,d);return a},Zda=function(a,b,c){a=tc(a,b,c);return Array.isArray(a)?a:nc},$da=function(a,b){2&b&&(a|=2);return a|1},sc=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)},uc=function(a){return gb(a,
!0,!0)},cea=function(a,b,c,d,e,f){var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ta]|0;var l=fb(a,k);a:{!l&&ic(a)&&(g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ta]|0);var r=tc(g,b,f);a=!1;if(r==null){if(l){b=oda();break a}r=[]}else if(r.constructor===$b)if(r.arrayState&2&&!l)r=Gda(r);else{b=r;break a}else Array.isArray(r)?a=!!((r[Ta]|0)&2):r=[];if(l){if(!r.length){b=oda();break a}a||(a=!0,Wa(r))}else if(a){a=!1;Vba(r);r=vb(r);for(var w=0;w<r.length;w++){var x=
r[w]=vb(r[w]);Array.isArray(x[1])&&(x[1]=Wa(x[1]))}r=Vba(r)}!a&&k&32&&Wba(r);d=new $b(r,c,d,e);k=mc(g,k,b,d,f);a||kc(g,k);b=d}!l&&c&&(b.callToMutableOnAccess=!0);return b},vc=function(a,b,c,d){return cea(a,b,void 0,Vb,c,d)},wc=function(a,b,c,d,e){return cea(a,b,c,d,void 0,e)},xc=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=f[Ta]|0;if(c==null)return mc(f,g,b,void 0,e),a;var k=c===nc?7:c[Ta]|0,l=k,r=sc(k),w=r||Object.isFrozen(c);r||(k=0);w||(c=vb(c),l=0,
k=oc(k,g),w=!1);k|=5;var x;r=(x=Uba(k))!=null?x:0;for(x=0;x<c.length;x++){var C=c[x],H=d(C,r);Object.is(C,H)||(w&&(c=vb(c),l=0,k=oc(k,g),w=!1),c[x]=H)}k!==l&&(w&&(c=vb(c),k=oc(k,g)),Va(c,k));mc(f,g,b,c,e);return a},yc=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;mc(f,f[Ta]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a},Ac=function(a,b,c,d,e,f){return zc(a,b,c,d,void 0,e,f,void 0,!0)},dea=function(a,b,c){if(b&2)throw Error();var d=kb(b),e=Zda(a,
c,d),f=e===nc?7:e[Ta]|0,g=$da(f,b);if(2&g||sc(g)||16&g)g===f||sc(g)||Va(e,g),e=vb(e),f=0,g=oc(g,b),mc(a,b,c,e,d);g&=-13;g!==f&&Va(e,g);return e},fea=function(a){if(Ra){var b;return(b=a[eea])!=null?b:a[eea]=new Map}if(eea in a)return a[eea];b=new Map;Object.defineProperty(a,eea,{value:b});return b},hea=function(a,b,c,d,e){var f=fea(a),g=gea(f,a,b,c,e);g!==d&&(g&&(b=mc(a,b,g,void 0,e)),f.set(c,d));return b},gea=function(a,b,c,d,e){var f=a.get(d);if(f!=null)return f;for(var g=f=0;g<d.length;g++){var k=
d[g];tc(b,k,e)!=null&&(f!==0&&(c=mc(b,c,f,void 0,e)),f=k)}a.set(d,f);return f},iea=function(a,b,c,d,e){var f=!1;d=tc(a,d,e,function(g){var k=Uca(g,c,!1,b);f=k!==g&&k!=null;return k});if(d!=null)return f&&!fb(d)&&kc(a,b),d},jea=function(a,b,c,d,e,f,g,k,l){var r=fb(a,c);f=r?1:f;k=!!k||f===3;r=l&&!r;(f===2||r)&&ic(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0);a=Zda(b,e,g);var w=a===nc?7:a[Ta]|0,x=$da(w,c);if(l=!(4&x)){var C=a,H=c,J=!!(2&x);J&&(H|=2);for(var O=!J,R=!0,V=0,
ca=0;V<C.length;V++){var oa=Uca(C[V],d,!1,H);if(oa instanceof d){if(!J){var ua=fb(oa);O&&(O=!ua);R&&(R=ua)}C[ca++]=oa}}ca<V&&(C.length=ca);x|=4;x=R?x&-4097:x|4096;x=O?x|8:x&-9}x!==w&&(Va(a,x),2&x&&Object.freeze(a));if(r&&!(8&x||!a.length&&(f===1||(f!==4?0:2&x||!(16&x)&&32&c)))){sc(x)&&(a=vb(a),x=oc(x,c),c=mc(b,c,e,a,g));d=a;r=x;for(w=0;w<d.length;w++)C=d[w],x=Zb(C),C!==x&&(d[w]=x);r|=8;x=r=d.length?r|4096:r&-4097;Va(a,x)}return a=bea(a,x,b,c,e,g,f,l,k)},kea=function(a){a==null&&(a=void 0);return a},
oc=function(a,b){return a=(2&b?a|2:a&-3)&-273},zc=function(a,b,c,d,e,f,g,k,l,r){jc(a);b=qc(a,b,f,2,!0,void 0,g);var w;f=(w=Uba(b===nc?7:b[Ta]|0))!=null?w:0;if(l)if(Array.isArray(d))for(e=d.length,k=0;k<e;k++)b.push(c(d[k],f));else for(d=m(d),e=d.next();!e.done;e=d.next())b.push(c(e.value,f));else k&&r?(e!=null||(e=b.length-1),hb(b,e),b.splice(e,k)):(k&&$ba(b,e),e!=void 0?b.splice(e,k,c(d,f)):b.push(c(d,f)));return a},Bc=function(a,b,c,d,e,f,g,k){jc(a);var l=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
a=jea(a,l,l[Ta]|0,c,b,2,d,!0);if(g&&k)f!=null||(f=a.length-1),hb(a,f),a.splice(f,g),a.length||(a[Ta]&=-4097);else return g?$ba(a,f):e=e!=null?e:new c,f!=void 0?a.splice(f,g,e):a.push(e),f=c=a===nc?7:a[Ta]|0,(g=fb(e))?(c&=-9,a.length===1&&(c&=-4097)):c|=4096,c!==f&&Va(a,c),g||kc(l),e},lea=function(a){return Pb(a,!0)},mea=function(a){return gb(a,!1,!1)},nea=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(Wba(b))},oea=function(a,b){b=b===void 0?window:b;b=b===void 0?window:b;return(b=b.WIZ_global_data)&&a in b?b[a]:null},pea=function(a){var b=b===void 0?window:b;return new Dc(a,oea(a,b))},qea=function(){ma.__load_patch("Error",function(a,b,c){function d(oa){for(var ua={zoneName:oa.zone.name},ka=ua;oa.parent;){oa=oa.parent;var Ga={zoneName:oa.zone.name};ua=ua.parent=Ga}return ka}function e(oa,ua,ka){ka=ka===void 0?!0:ka;oa=oa.split("\n");for(var Ga=0;oa[Ga]!==w&&oa[Ga]!==x&&oa[Ga]!==C&&
oa[Ga]!==H&&oa[Ga]!==J&&Ga<oa.length;)Ga++;for(;Ga<oa.length&&ua;Ga++){var ja=oa[Ga];if(ja.trim())switch(r[ja]){case g.zoneJsInternal:oa.splice(Ga,1);Ga--;break;case g.transition:ua.parent?ua=ua.parent:ua=null;oa.splice(Ga,1);Ga--;break;default:oa[Ga]+=ka?" ["+ua.zone.name+"]":" ["+ua.zoneName+"]"}}return oa.join("\n")}function f(){var oa=this,ua=l.apply(this,arguments),ka=ua.originalStack=ua.stack;if(f.stackRewrite&&ka){var Ga=c.currentZoneFrame();if(O==="lazy")ua[c.symbol("zoneFrameNames")]=d(Ga);
else if(O==="default")try{ua.stack=ua.zoneAwareStack=e(ka,Ga)}catch(ja){}}return this instanceof l&&this.constructor!=l?(Object.keys(ua).concat("stack","message","cause").forEach(function(ja){var ta=ua[ja];if(ta!==void 0)try{oa[ja]=ta}catch(xa){}}),this):ua}var g={zoneJsInternal:0,transition:1},k=c.symbol("zoneJsInternalStackFrames"),l=a[c.symbol("Error")]=a.Error,r={},w,x,C,H,J;a.Error=f;var O=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";
f.prototype=l.prototype;f[k]=r;f.stackRewrite=!1;var R=c.symbol("zoneAwareStack");O==="lazy"&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[R]||(this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[R]},set:function(oa){this.originalStack=oa;this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var V=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(l))&&a.forEach(function(oa){V.filter(function(ua){return ua===
oa}).length===0&&Object.defineProperty(f,oa,{get:function(){return l[oa]},set:function(ua){l[oa]=ua}})});l.hasOwnProperty("stackTraceLimit")&&(l.stackTraceLimit=Math.max(l.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return l.stackTraceLimit},set:function(oa){return l.stackTraceLimit=oa}}));l.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(oa,ua){l.captureStackTrace(oa,ua)}});Object.defineProperty(f,"prepareStackTrace",
{get:function(){return l.prepareStackTrace},set:function(oa){return oa&&typeof oa==="function"?l.prepareStackTrace=function(ua,ka){if(ka)for(var Ga=0;Ga<ka.length;Ga++)if(ka[Ga].getFunctionName()==="zoneCaptureStackTrace"){ka.splice(Ga,1);break}return oa.call(this,ua,ka)}:l.prepareStackTrace=oa}});if(O!=="disable"){var ca=b.current.fork({name:"detect",onHandleError:function(oa,ua,ka,Ga){if(Ga.originalStack&&Error===f)for(oa=Ga.originalStack.split(/\n/),Ga=ka=ua=!1;oa.length;){var ja=oa.shift();if(/:\d+:\d+/.test(ja)||
ja==="ZoneAwareError"){var ta=ja.split("(")[0].split("@")[0],xa=g.transition;ta.indexOf("ZoneAwareError")!==-1&&(ta.indexOf("new ZoneAwareError")!==-1?(w=ja,x=ja.replace("new ZoneAwareError","new Error.ZoneAwareError")):(C=ja,H=ja.replace("Error.",""),ja.indexOf("Error.ZoneAwareError")===-1&&(J=ja.replace("ZoneAwareError","Error.ZoneAwareError"))),r[x]=g.zoneJsInternal);ta.indexOf("runGuarded")!==-1?ka=!0:ta.indexOf("runTask")!==-1?Ga=!0:ta.indexOf("run")!==-1?ua=!0:xa=g.zoneJsInternal;r[ja]=xa;if(ua&&
ka&&Ga){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(oa,ua,ka,Ga){return oa.scheduleTask(ka,Ga)},onInvokeTask:function(oa,ua,ka,Ga,ja,ta){return oa.invokeTask(ka,Ga,ja,ta)},onCancelTask:function(oa,ua,ka,Ga){return oa.cancelTask(ka,Ga)},onInvoke:function(oa,ua,ka,Ga,ja,ta,xa){return oa.invoke(ka,Ga,ja,ta,xa)}});b=Error.stackTraceLimit;Error.stackTraceLimit=100;ca.run(function(){ca.runGuarded(function(){var oa=function(){};ca.scheduleEventTask(k,function(){ca.scheduleMacroTask(k,
function(){ca.scheduleMicroTask(k,function(){throw Error();},void 0,function(ua){ua._transitionTo=oa;ua.invoke()});ca.scheduleMicroTask(k,function(){throw Error();},void 0,function(ua){ua._transitionTo=oa;ua.invoke()})},void 0,function(ua){ua._transitionTo=oa;ua.invoke()},function(){})},void 0,function(ua){ua._transitionTo=oa;ua.invoke()},function(){})})});Error.stackTraceLimit=b}})},rea=function(){ma.__load_patch("ZoneAwarePromise",function(a,b,c){function d(sb){if(sb&&sb.toString===Object.prototype.toString){var Ob=
sb.constructor&&sb.constructor.name;return(Ob?Ob:"")+": "+JSON.stringify(sb)}return sb?sb.toString():Object.prototype.toString.call(sb)}function e(sb){c.onUnhandledError(sb);try{var Ob=b[ua];typeof Ob==="function"&&Ob.call(this,sb)}catch(ib){}}function f(sb){return sb}function g(sb){return ec.reject(sb)}function k(sb,Ob){return function(ib){try{l(sb,Ob,ib)}catch(Yb){l(sb,!1,Yb)}}}function l(sb,Ob,ib){var Yb=Sa();if(sb===ib)throw new TypeError("ja");if(sb[ka]===null){var rc=null;try{if(typeof ib===
"object"||typeof ib==="function")rc=ib&&ib.then}catch(Gc){return Yb(function(){l(sb,!1,Gc)})(),sb}if(Ob!==!1&&ib instanceof ec&&ib.hasOwnProperty(ka)&&ib.hasOwnProperty(Ga)&&ib[ka]!==null)r(ib),l(sb,ib[ka],ib[Ga]);else if(Ob!==!1&&typeof rc==="function")try{rc.call(ib,Yb(k(sb,Ob)),Yb(k(sb,!1)))}catch(Gc){Yb(function(){l(sb,!1,Gc)})()}else{sb[ka]=Ob;Yb=sb[Ga];sb[Ga]=ib;sb[ja]===ja&&Ob===!0&&(sb[ka]=sb[xa],sb[Ga]=sb[ta]);Ob===!1&&ib instanceof Error&&(rc=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&
J(ib,$a,{configurable:!0,enumerable:!1,writable:!0,value:rc});for(rc=0;rc<Yb.length;)w(sb,Yb[rc++],Yb[rc++],Yb[rc++],Yb[rc++]);if(Yb.length==0&&Ob==0){sb[ka]=0;Ob=ib;try{throw Error("ka`"+d(ib)+"`"+(ib&&ib.stack?"\n"+ib.stack:""));}catch(Gc){Ob=Gc}V&&(Ob.throwOriginal=!0);Ob.rejection=ib;Ob.promise=sb;Ob.zone=b.current;Ob.task=b.currentTask;R.push(Ob);c.scheduleMicroTask()}}}return sb}function r(sb){if(sb[ka]===0){try{var Ob=b[pb];Ob&&typeof Ob==="function"&&Ob.call(this,{rejection:sb[Ga],promise:sb})}catch(ib){}sb[ka]=
!1;for(Ob=0;Ob<R.length;Ob++)sb===R[Ob].promise&&R.splice(Ob,1)}}function w(sb,Ob,ib,Yb,rc){r(sb);var Gc=sb[ka],Rb=Gc?typeof Yb==="function"?Yb:f:typeof rc==="function"?rc:g;Ob.scheduleMicroTask("Promise.then",function(){try{var Cc=sb[Ga],Sc=!!ib&&ja===ib[ja];Sc&&(ib[ta]=Cc,ib[xa]=Gc);var Bd=Ob.run(Rb,void 0,Sc&&Rb!==g&&Rb!==f?[]:[Cc]);l(ib,!0,Bd)}catch(Nc){l(ib,!1,Nc)}},ib)}function x(sb){var Ob=sb.prototype,ib=H(Ob,"then");if(!ib||ib.writable!==!1&&ib.configurable){var Yb=Ob.then;Ob[oa]=Yb;sb.prototype.then=
function(rc,Gc){var Rb=this;return(new ec(function(Cc,Sc){Yb.call(Rb,Cc,Sc)})).then(rc,Gc)};sb[pc]=!0}}function C(sb){return function(Ob,ib){Ob=sb.apply(Ob,ib);if(Ob instanceof ec)return Ob;ib=Ob.constructor;ib[pc]||x(ib);return Ob}}var H=Object.getOwnPropertyDescriptor,J=Object.defineProperty,O=c.symbol,R=[],V=a[O("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ca=O("Promise"),oa=O("then");c.onUnhandledError=function(sb){if(c.showUncaughtError()){var Ob=sb&&sb.rejection;Ob?console.error("Unhandled Promise rejection:",
Ob instanceof Error?Ob.message:Ob,"; Zone:",sb.zone.name,"; Task:",sb.task&&sb.task.source,"; Value:",Ob,Ob instanceof Error?Ob.stack:void 0):console.error(sb)}};c.microtaskDrainDone=function(){for(var sb={};R.length;sb={uncaughtPromiseError$jscomp$1:void 0}){sb.uncaughtPromiseError$jscomp$1=R.shift();try{sb.uncaughtPromiseError$jscomp$1.zone.runGuarded(function(Ob){return function(){if(Ob.uncaughtPromiseError$jscomp$1.throwOriginal)throw Ob.uncaughtPromiseError$jscomp$1.rejection;throw Ob.uncaughtPromiseError$jscomp$1;
}}(sb))}catch(Ob){e(Ob)}}};var ua=O("unhandledPromiseRejectionHandler"),ka=O("state"),Ga=O("value"),ja=O("finally"),ta=O("parentPromiseValue"),xa=O("parentPromiseState"),Sa=function(){var sb=!1;return function(Ob){return function(){sb||(sb=!0,Ob.apply(null,arguments))}}},$a=O("currentTaskTrace"),pb=O("rejectionHandledHandler"),Xb=function(){},lc=a.AggregateError,ec=function(sb){if(!(this instanceof ec))throw Error("la");this[ka]=null;this[Ga]=[];try{var Ob=Sa();sb&&sb(Ob(k(this,!0)),Ob(k(this,!1)))}catch(ib){l(this,
!1,ib)}};ec.toString=function(){return"function ZoneAwarePromise() { [native code] }"};ec.resolve=function(sb){return sb instanceof ec?sb:l(new this(null),!0,sb)};ec.reject=function(sb){return l(new this(null),!1,sb)};ec.withResolvers=function(){var sb={};sb.promise=new ec(function(Ob,ib){sb.resolve=Ob;sb.reject=ib});return sb};ec.any=function(sb){if(!sb||typeof sb[Symbol.iterator]!=="function")return Promise.reject(new lc([],"All promises were rejected"));var Ob=[],ib=0;try{for(var Yb=m(sb),rc=Yb.next();!rc.done;rc=
Yb.next()){var Gc=rc.value;ib++;Ob.push(ec.resolve(Gc))}}catch(Sc){return Promise.reject(new lc([],"All promises were rejected"))}if(ib===0)return Promise.reject(new lc([],"All promises were rejected"));var Rb=!1,Cc=[];return new ec(function(Sc,Bd){for(var Nc=0;Nc<Ob.length;Nc++)Ob[Nc].then(function(fe){Rb||(Rb=!0,Sc(fe))},function(fe){Cc.push(fe);ib--;ib===0&&(Rb=!0,Bd(new lc(Cc,"All promises were rejected")))})})};ec.race=function(sb){function Ob(Cc){Yb(Cc)}function ib(Cc){rc(Cc)}var Yb,rc,Gc=new this(function(Cc,
Sc){Yb=Cc;rc=Sc});sb=m(sb);for(var Rb=sb.next();!Rb.done;Rb=sb.next())(Rb=Rb.value)&&typeof Rb.then==="function"||(Rb=this.resolve(Rb)),Rb.then(Ob,ib);return Gc};ec.all=function(sb){return ec.allWithCallback(sb)};ec.allSettled=function(sb){return(this&&this.prototype instanceof ec?this:ec).allWithCallback(sb,{thenCallback:function(Ob){return{status:"fulfilled",value:Ob}},errorCallback:function(Ob){return{status:"rejected",reason:Ob}}})};ec.allWithCallback=function(sb,Ob){var ib,Yb,rc=new this(function(Nc,
fe){ib=Nc;Yb=fe}),Gc=2,Rb=0,Cc=[];sb=m(sb);for(var Sc=sb.next(),Bd={};!Sc.done;Bd={curValueIndex:void 0},Sc=sb.next()){(Sc=Sc.value)&&typeof Sc.then==="function"||(Sc=this.resolve(Sc));Bd.curValueIndex=Rb;try{Sc.then(function(Nc){return function(fe){Cc[Nc.curValueIndex]=Ob?Ob.thenCallback(fe):fe;Gc--;Gc===0&&ib(Cc)}}(Bd),function(Nc){return function(fe){Ob?(Cc[Nc.curValueIndex]=Ob.errorCallback(fe),Gc--,Gc===0&&ib(Cc)):Yb(fe)}}(Bd))}catch(Nc){Yb(Nc)}Gc++;Rb++}Gc-=2;Gc===0&&ib(Cc);return rc};da.Object.defineProperty(ec.prototype,
Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});da.Object.defineProperty(ec.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return ec}});ec.prototype.then=function(sb,Ob){var ib,Yb=(ib=this.constructor)==null?void 0:ib[Symbol.species];Yb&&typeof Yb==="function"||(Yb=this.constructor||ec);ib=new Yb(Xb);Yb=b.current;this[ka]==null?this[Ga].push(Yb,ib,sb,Ob):w(this,Yb,ib,sb,Ob);return ib};ec.prototype.catch=function(sb){return this.then(null,
sb)};ec.prototype.finally=function(sb){var Ob,ib=(Ob=this.constructor)==null?void 0:Ob[Symbol.species];ib&&typeof ib==="function"||(ib=ec);Ob=new ib(Xb);Ob[ja]=ja;ib=b.current;this[ka]==null?this[Ga].push(ib,Ob,sb,sb):w(this,ib,Ob,sb,sb);return Ob};ec.resolve=ec.resolve;ec.reject=ec.reject;ec.race=ec.race;ec.all=ec.all;ca=a[ca]=a.Promise;a.Promise=ec;var pc=O("thenPatched");c.patchThen=x;ca&&(x(ca),ia(a,"fetch",function(sb){return C(sb)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=R;return ec})},
sea=function(){ma.__load_patch("toString",function(a){var b=Function.prototype.toString,c=ba("OriginalDelegate"),d=ba("Promise"),e=ba("Error"),f=function(){if(typeof this==="function"){var k=this[c];if(k)return typeof k==="function"?b.call(k):Object.prototype.toString.call(k);if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var g=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==="function"&&
this instanceof Promise?"[object Promise]":g.call(this)}})},Ec=function(a){for(var b in a)if(a[b]===Ec)return b;throw Error("na");},Fc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},Hc=function(a){return{providers:a.providers||[],imports:a.imports||[]}},uea=function(a){var b=tea;return a.hasOwnProperty(b)&&a[b]||null},vea=function(a){var b;return(a=(b=a==null?void 0:a[tea])!=null?b:null)?a:null},xea=function(a){return a&&a.hasOwnProperty(wea)?a[wea]:
null},yea=function(a,b){return Object.is(a,b)},Jc=function(a){var b=Ic;Ic=a;return b},Lc=function(a){if(zea)throw Error("na");if(Ic!==null){Ic.consumerOnSignalRead(a);var b=Ic.producersTail;if(b===void 0||b.producer!==a){var c=void 0,d=Ic.recomputing;if(d&&(c=b!==void 0?b.nextProducer:Ic.producers,c!==void 0&&c.producer===a)){Ic.producersTail=c;c.lastReadVersion=a.version;return}var e=a.consumersTail,f;if(!(f=e===void 0||e.consumer!==Ic)){if(d){a:{f=Ic;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=Kc(Ic),c={producer:a,consumer:Ic,nextProducer:c,prevConsumer:e,lastReadVersion:a.version,nextConsumer:void 0},Ic.producersTail=c,b!==void 0?b.nextProducer=c:Ic.producers=c,d&&Aea(a,c))}}},Dea=function(a){if(!Kc(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Bea)(a.producerMustRecompute(a)||Cea(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Bea},Eea=function(a){if(a.consumers!==void 0){var b=zea;
zea=!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,Eea(d),(a=d.consumerMarkedDirty)==null||a.call(d,d))}}finally{zea=b}}},Fea=function(){var a;return((a=Ic)==null?void 0:a.consumerAllowSignalWrites)!==!1},Mc=function(a){a&&(a.producersTail=void 0,a.recomputing=!0);return Jc(a)},Hea=function(a,b){Jc(b);if(a){a.recomputing=!1;b=a.producersTail;var c=b!==void 0?b.nextProducer:a.producers;if(c!==void 0){if(Kc(a)){do c=Gea(c);while(c!==void 0)}b!==
void 0?b.nextProducer=void 0:a.producers=void 0}}},Cea=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;Dea(b);if(c!==b.version)return!0}return!1},Iea=function(a){if(Kc(a))for(var b=a.producers;b!==void 0;)b=Gea(b);a.producers=void 0;a.producersTail=void 0;a.consumers=void 0;a.consumersTail=void 0},Aea=function(a,b){var c=a.consumersTail,d=Kc(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)Aea(a.producer,a)},Gea=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,!Kc(b))for(a=b.producers;a!==void 0;)a=Gea(a);return c},Kc=function(a){return a.consumerIsAlwaysLive||a.consumers!==void 0},Kea=function(a,b){var c=Object.create(Jea);
c.computation=a;b!==void 0&&(c.equal=b);a=function(){Dea(c);Lc(c);if(c.value===Oc)throw c.error;return c.value};a[Pc]=c;return a},Nea=function(a,b){var c=Object.create(Lea);c.value=a;b!==void 0&&(c.equal=b);a=function(){Lc(c);return c.value};a[Pc]=c;return[a,function(d){return Qc(c,d)},function(d){Fea()||Mea();Qc(c,d(c.value))}]},Qc=function(a,b){Fea()||Mea();a.equal(a.value,b)||(a.value=b,a.version++,Bea++,Eea(a))},Pea=function(a,b,c){var d=Object.create(Oea);d.source=a;d.computation=b;c!=void 0&&
(d.equal=c);a=function(){Dea(d);Lc(d);if(d.value===Oc)throw d.error;return d.value};a[Pc]=d;return a},Rc=function(a){var b=Jc(null);try{return a()}finally{Jc(b)}},Tc=function(a){if(typeof a==="string")return a;if(Array.isArray(a))return"["+a.map(Tc).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},Qea=function(a,b){return a?b?a+" "+b:a:b||""},Rea=function(a,b){return"NG0"+Math.abs(a)+
(b?": "+b:"")},Uc=function(a){return typeof a==="string"?a:a==null?"":String(a)},Sea=function(){throw new Vc(-201,!1);},Vea=function(a){var b=new Vc(a,"");b[Tea]=a;b[Uea]="";return b},Wc=function(a){var b=Wea;Wea=a;return b},Xea=function(a,b,c){if((a=uea(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;Sea()},Xc=function(a){var b=Yea;Yea=a;return b},$ea=function(a){return a===Zea||(a==null?void 0:a.name)==="\u0275NotFound"},Yc=
function(a){a.__forward_ref__=Yc;a.toString=function(){return Tc(this())};return a},Zc=function(a){return afa(a)?a():a},afa=function(a){return typeof a==="function"&&a.hasOwnProperty(bfa)&&a.__forward_ref__===Yc},cfa=function(a,b){b=b===void 0?0:b;var c=Yea;if(c===void 0)throw new Vc(-203,!1);if(c===null)return Xea(a,void 0,b);b={optional:!!(b&8),host:!!(b&1),self:!!(b&2),skipSelf:!!(b&4)};a=c.retrieve(a,b);if($ea(a)){if(b.optional)return null;throw a;}return a},$c=function(a,b){b=b===void 0?0:b;
return(Wea||cfa)(Zc(a),b)},p=function(a,b){return $c(a,dfa(b))},dfa=function(a){return typeof a==="undefined"||typeof a==="number"?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},efa=function(a){for(var b=[],c=0;c<a.length;c++){var d=Zc(a[c]);if(Array.isArray(d)){if(d.length===0)throw new Vc(900,!1);for(var e=void 0,f=0,g=0;g<d.length;g++){var k=d[g],l=k.__NG_DI_FLAG__;typeof l==="number"?l===-1?e=k.token:f|=l:e=k}b.push($c(e,f))}else b.push($c(d))}return b},ffa=function(a,b){a.__NG_DI_FLAG__=
b;a.prototype.__NG_DI_FLAG__=b;return a},hfa=function(a){return a[gfa]||null},ad=function(a){return a.hasOwnProperty(ifa)?a[ifa]:null},jfa=function(a,b){a.forEach(function(c){return Array.isArray(c)?jfa(c,b):b(c)})},kfa=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},mfa=function(a,b,c){var d=lfa(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}}},nfa=function(a,
b){b=lfa(a,b);if(b>=0)return a[b|1]},lfa=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)},pfa=function(){return{"\u0275providers":ofa(!0,bd.apply(0,arguments)),"\u0275fromNgModule":!0}},ofa=function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};jfa(bd.apply(1,arguments),function(f){qfa(f,e,[],c)&&(d||(d=[]),d.push(f))});d!==void 0&&rfa(d,e);return b},rfa=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;sfa(c.providers$jscomp$2,function(f){return function(g){b(g,f.ngModule)}}(c))}},qfa=function(a,b,c,d){a=Zc(a);if(!a)return!1;var e=null,f=xea(a),g=!f&&(a[cd]||null);if(f||g){if(g&&!g.standalone)return!1;e=a}else{var k=a.ngModule;if(f=xea(k))e=k;else return!1}k=d.has(e);if(g){if(k)return!1;d.add(e);if(g.dependencies)for(f=typeof g.dependencies==="function"?g.dependencies():g.dependencies,f=m(f),k=f.next();!k.done;k=
f.next())qfa(k.value,b,c,d)}else if(f){if(f.imports!=null&&!k){d.add(e);var l;jfa(f.imports,function(w){qfa(w,b,c,d)&&(l||(l=[]),l.push(w))});l!==void 0&&rfa(l,b)}k||(g=ad(e)||function(){return new e},b({provide:e,useFactory:g,deps:dd},e),b({provide:tfa,useValue:e,multi:!0},e),b({provide:ufa,useValue:function(){return $c(e)},multi:!0},e));f=f.providers;if(f!=null&&!k){var r=a;sfa(f,function(w){b(w,r)})}}else return!1;return e!==a&&a.providers!==void 0},sfa=function(a,b){a=m(a);for(var c=a.next();!c.done;c=
a.next())(c=c.value)&&c.\u0275providers&&(c=c.\u0275providers),Array.isArray(c)?sfa(c,b):b(c)},wfa=function(a){return a!==null&&typeof a=="object"&&vfa in a},ed=function(a){return typeof a==="function"},zfa=function(){xfa===void 0&&(xfa=new yfa);return xfa},Bfa=function(a){var b=uea(a);b=b!==null?b.factory:ad(a);if(b!==null)return b;if(a instanceof fd)throw new Vc(204,!1);if(a instanceof Function)return Afa(a);throw new Vc(204,!1);},Afa=function(a){if(a.length>0)throw new Vc(204,!1);var b=vea(a);
return b!==null?function(){return b.factory(a)}:function(){return new a}},Efa=function(a){if(wfa(a))return gd(void 0,a.useValue);a=Cfa(a);return gd(a,Dfa)},Cfa=function(a){var b=void 0;if(ed(a))return b=Zc(a),ad(b)||Bfa(b);if(wfa(a))b=function(){return Zc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,q(efa(a.deps||[])))};else if(a&&a.useExisting)b=function(d,e){return $c(Zc(a.useExisting),e!==void 0&&e&8?8:void 0)};else{var c=Zc(a&&(a.useClass||a.provide));if(a.deps)b=
function(){return new (Function.prototype.bind.apply(c,[null].concat(q(efa(a.deps)))))};else return ad(c)||Bfa(c)}return b},Ffa=function(a){if(a.destroyed)throw new Vc(205,!1);},gd=function(a,b,c){return{factory:a,value:b,multi:(c===void 0?0:c)?[]:void 0}},Gfa=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?Gfa(c,b):c&&c&&c.\u0275providers?Gfa(c.\u0275providers,b):b(c)},id=function(a,b){a instanceof hd?Ffa(a):a=new Hfa(a);a=Xc(a);var c=Wc();try{return b()}finally{Xc(a),
Wc(c)}},jd=function(a){return Array.isArray(a)&&typeof a[1]==="object"},kd=function(a){return Array.isArray(a)&&a[1]===!0},Kfa=function(a){a.type.prototype.ngOnChanges&&(a.setInput=Ifa);return Jfa},Jfa=function(){var a=this.__ngSimpleChanges__||null,b=a==null?void 0:a.current;if(b){var c=a.previous;if(c===ld)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},Ifa=function(a,b,c,d,e){d=this.declaredInputs[d];var f;(f=a.__ngSimpleChanges__||null)||(f=a.__ngSimpleChanges__=
{previous:ld,current:null});var g=f;f=g.current||(g.current={});g=g.previous;var k=g[d];f[d]=new Lfa(k&&k.currentValue,c,g===ld);b!==null?b.applyValueToInputSignal(b,c):a[e]=c},md=function(a){for(;Array.isArray(a);)a=a[0];return a},nd=function(a,b){return md(b[a.index])},Mfa=function(a,b,c,d){c>=a.data.length&&(a.data[c]=null,a.blueprint[c]=null);b[c]=d},od=function(a,b){a=b[a];return jd(a)?a:a[0]},pd=function(a,b){return b===null||b===void 0?null:a[b]},Nfa=function(a){a[2]&1024||(a[2]|=1024,(a[2]&
128)===128&&qd(a))},Ofa=function(a){var b;return!!(a[2]&9216||((b=a[24])==null?0:b.dirty))},Pfa=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(8);a[2]&64&&(a[2]|=1024);Ofa(a)&&qd(a)},qd=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(0);for(a=rd(a);a!==null&&!(a[2]&8192);){a[2]|=8192;if((a[2]&128)!==128)break;a=rd(a)}},Qfa=function(a,b){if((a[2]&256)===256)throw new Vc(911,!1);a[21]===null&&(a[21]=[]);a[21].push(b)},rd=function(a){a=a[3];return kd(a)?a[3]:
a},Rfa=function(a){var b;return(b=a[7])!=null?b:a[7]=[]},Sfa=function(a){var b;return(b=a.cleanup)!=null?b:a.cleanup=[]},t=function(){return td.lView},ud=function(){return td.tView},u=function(a){td.contextLView=a;return a[8]},v=function(a){td.contextLView=null;return a},vd=function(){for(var a=td.currentTNode;a!==null&&a.type===64;)a=a.parent;return a},Tfa=function(){var a=td,b=a.currentTNode;return a.isParent?b:b.parent},wd=function(a,b){var c=td;c.currentTNode=a;c.isParent=b},Vfa=function(a){var b=
Ufa;Ufa=a;return b},xd=function(){var a=td,b=a.bindingRootIndex;b===-1&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},yd=function(){return td.bindingIndex++},Wfa=function(a){var b=td,c=b.bindingIndex;b.bindingIndex+=a;return c},Xfa=function(a){var b=td.currentDirectiveIndex;return b===-1?null:a[b]},Zfa=function(a,b,c){if(c&4){for(;!(b=b.parent,b!==null||c&1);){b=a[1];b=b.type===2?b.declTNode:b.type===1?a[5]:null;if(b===null)break;a=a[14];if(b.type&10)break}if(b===null)return!1}c=td=Yfa();
c.currentTNode=b;c.lView=a;return!0},$fa=function(a){var b=Yfa(),c=a[1];td=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},Yfa=function(){var a=td,b=a===null?null:a.child;return b===null?aga(a):b},aga=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},bga=function(){var a=td;td=a.parent;a.currentTNode=null;a.lView=null;return a},cga=function(){var a=bga();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},zd=function(){var a=td;return a.tView.data[a.selectedIndex]},Ad=function(){td.currentNamespace="svg"},Cd=function(){td.currentNamespace=null},
dga=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,f=d.ngAfterContentChecked,g=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;if(e){var l=void 0,r=void 0;((r=(l=a).contentHooks)!=null?r:l.contentHooks=[]).push(-c,e)}f&&(l=e=void 0,((l=(e=a).contentHooks)!=null?l:e.contentHooks=[]).push(c,f),l=e=void 0,((l=(e=a).contentCheckHooks)!=null?l:e.contentCheckHooks=[]).push(c,f));g&&(e=f=void 0,((e=(f=a).viewHooks)!=null?
e:f.viewHooks=[]).push(-c,g));k&&(f=g=void 0,((f=(g=a).viewHooks)!=null?f:g.viewHooks=[]).push(c,k),f=g=void 0,((f=(g=a).viewCheckHooks)!=null?f:g.viewCheckHooks=[]).push(c,k));d!=null&&(g=k=void 0,((g=(k=a).destroyHooks)!=null?g:k.destroyHooks=[]).push(c,d))}},fga=function(a,b,c,d){(a[2]&3)===c&&ega(a,b,c,d)},gga=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&16383)+1)},ega=function(a,b,c,d){for(var e=d!=null?d:-1,f=b.length-1,g=0,k=d!==void 0?a[17]&65535:0;k<f;k++)if(typeof b[k+1]==="number"){if(g=
b[k],d!=null&&g>=d)break}else{b[k]<0&&(a[17]+=65536);if(g<e||e==-1){var l=b[k]<0,r=b[k+1],w=a[l?-b[k]:b[k]];l?a[2]>>14<a[17]>>16&&(a[2]&3)===c&&(a[2]+=16384,hga(w,r)):hga(w,r);a[17]=(a[17]&4294901760)+k+2}k++}},hga=function(a,b){Dd(4,a,b);var c=Jc(null);try{b.call(a)}finally{Jc(c),Dd(5,a,b)}},iga=function(a){return a===3||a===4||a===6},Ed=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?jga(a,c,e,b[++d]):jga(a,c,e,null))}return a},jga=function(a,b,c,d){var e=0,f=a.length;if(b===-1)f=-1;else for(;e<a.length;){var g=a[e++];if(typeof g==="number")if(g===b){f=-1;break}else if(g>b){f=e-1;break}}for(;e<a.length;){g=a[e];if(typeof g==="number")break;else if(g===c){d!==null&&(a[e+1]=d);return}e++;d!==null&&e++}f!==-1&&(a.splice(f,0,b),e=f+1);a.splice(e++,0,c);d!==null&&a.splice(e++,0,d)},kga=function(a,b){for(a>>=16;a>0;)b=b[14],a--;return b},lga=function(a){return{toString:a}.toString()},
nga=function(a){var b=mga;mga=a;return b},qga=function(a,b,c){var d;typeof c==="string"?d=c.charCodeAt(0)||0:c.hasOwnProperty(oga)&&(d=c[oga]);d==null&&(d=c[oga]=pga++);c=d&255;b.data[a+(c>>5)]|=1<<c},uga=function(a,b){var c=rga(a,b);if(c!==-1)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,sga(c.data,a),sga(b,null),sga(c.blueprint,null));c=tga(a,b);a=a.injectorIndex;if(c!==-1)for(var d=c&32767,e=kga(c,b),f=e[1].data,g=0;g<8;g++)b[a+g]=e[d+g]|f[d+g];b[a+8]=c;return a},sga=function(a,
b){a.push(0,0,0,0,0,0,0,0,b)},rga=function(a,b){return a.injectorIndex===-1||a.parent&&a.parent.injectorIndex===a.injectorIndex||b[a.injectorIndex+8]===null?-1:a.injectorIndex},tga=function(a,b){if(a.parent&&a.parent.injectorIndex!==-1)return a.parent.injectorIndex;a=0;for(var c=b;c!==null;){b=vga(c);if(b===null)break;a++;c=c[14];if(b.injectorIndex!==-1)return b.injectorIndex|a<<16}return-1},wga=function(a){var b=vd();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(iga(e))break;if(e===0)d+=2;else if(typeof e==="number")for(d++;d<c&&typeof b[d]==="string";)d++;else{if(e===a)return b[d+1];d+=2}}return null},xga=function(a,b,c,d){c&8&&d===void 0&&(d=null);if((c&3)===0){a=a[9];var e=Wc();try{return a?a.get(b,d,c&8):Xea(b,d,c&8)}finally{Wc(e)}}c&8||d!==void 0?b=d:(Sea(),b=void 0);return b},zga=function(a,b,c,d,e){d=d===void 0?0:d;if(a!==null){if(b[2]&2048&&!(d&2)){a:{var f=d;for(var g=Fd,k=a,l=b;k!==null&&l!==null&&l[2]&2048&&(l[2]&
512)===0;){var r=yga(k,l,c,f|2);if(r!==Fd){f=r;break a}k=k.parent;if(!k){if(k=l[20])if(k=k.get(c,Fd,f),k!==Fd){f=k;break a}k=vga(l);l=l[14]}}f=g}if(f!==Fd)return f}a=yga(a,b,c,d);if(a!==Fd)return a}return xga(b,c,d,e)},yga=function(a,b,c,d){var e=Fd;if(typeof c==="string")var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(oga)?c[oga]:void 0,f=typeof f==="number"?f>=0?f&255:Aga:f;if(typeof f==="function"){if(!Zfa(b,a,d))return d&1?d&8||e!==void 0?b=e:(Sea(),b=void 0):b=xga(b,c,d,e),b;try{var g=f(d);
if(g!=null||d&8)return g;Sea()}finally{bga()}}else if(typeof f==="number"){g=null;var k=rga(a,b),l=d&1?b[15][5]:null;if(k===-1||d&4){var r=k===-1?tga(a,b):b[k+8];r===-1||d&2?k=-1:(g=b[1],k=r&32767,b=kga(r,b))}for(;k!==-1;){a=b[1];if(a.data[k+(f>>5)]&1<<f){r=b[1];var w=r.data[k+8],x=Bga(w,r,c,g==null?w.componentOffset>-1&&mga:g!=r&&(w.type&3)!==0,d&1&&l===w);r=x!==null?Cga(b,r,x,w,d):Fd;if(r!==Fd)return r}r=b[k+8];r!==-1&&!(d&2||d&1&&b[1].data[k+8]===l)&&b[k+(f>>5)]&1<<f?(g=a,k=r&32767,b=kga(r,b)):
k=-1}}return e},Bga=function(a,b,c,d,e){var f=a.providerIndexes,g=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var l=f>>20;f=e?k+l:a;for(d=d?k:k+l;d<f;d++)if(k=g[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=g[b])&&e.template&&e.type===c?b:null},Cga=function(a,b,c,d,e){var f=a[c],g=b.data;if(f instanceof Dga){var k=f;if(k.resolving)throw Vea(-200);var l=nga(k.canSeeViewProviders);k.resolving=!0;var r=k.injectImpl?Wc(k.injectImpl):null;Zfa(a,d,0);try{if(f=a[c]=k.factory(void 0,e,
g,a,d),b.firstCreatePass&&c>=d.directiveStart){var w=g[c],x=w.type.prototype,C=x.ngOnInit,H=x.ngDoCheck;if(x.ngOnChanges){var J=Kfa(w),O;((O=b.preOrderHooks)!=null?O:b.preOrderHooks=[]).push(c,J);var R;((R=b.preOrderCheckHooks)!=null?R:b.preOrderCheckHooks=[]).push(c,J)}if(C){var V;((V=b.preOrderHooks)!=null?V:b.preOrderHooks=[]).push(-c,C)}if(H){var ca;((ca=b.preOrderHooks)!=null?ca:b.preOrderHooks=[]).push(c,H);var oa;((oa=b.preOrderCheckHooks)!=null?oa:b.preOrderCheckHooks=[]).push(c,H)}}}finally{r!==
null&&Wc(r),nga(l),k.resolving=!1,bga()}}return f},Aga=function(){return new Gd(vd(),t())},Hd=function(a){return lga(function(){var b=a.prototype.constructor;b=b[ifa]||Ega(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[ifa]||Ega(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Ega=function(a){return afa(a)?function(){var b=Ega(Zc(a));return b&&b()}:ad(a)},vga=function(a){var b=a[1],c=b.type;return c===2?b.declTNode:
c===1?a[5]:null},Fga=function(a){return function(){var b=bd.apply(0,arguments);if(a){b=a.apply(null,q(b));for(var c in b)this[c]=b[c]}}},Gga=function(a,b){return lga(function(){function c(){function e(k,l,r){for(l=k.hasOwnProperty("__parameters__")?k.__parameters__:Object.defineProperty(k,"__parameters__",{value:[]}).__parameters__;l.length<=r;)l.push(null);(l[r]=l[r]||[]).push(g);return k}var f=bd.apply(0,arguments);if(this instanceof c)return d.apply(this,f),this;var g=new (Function.prototype.bind.apply(c,
[null].concat(q(f))));e.annotation=g;return e}var d=Fga(b);c.prototype.ngMetadataName=a;return c})},Iga=function(a,b,c,d){a=Hga(a,b===void 0?null:b,c===void 0?null:c,d);a.resolveInjectorInitializers();return a},Hga=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)||dd,pfa(a)];d=d||(typeof a==="object"?void 0:Tc(a));return new hd(c,b||zfa(),d||null,e)},Jga=function(a){return a.type===4&&a.value!=="ng-template"},Kga=function(a,b,c){var d=4,e=a.attrs,f;if(e!==null)a:{for(f=
0;f<e.length;f++)if(iga(e[f]))break a;f=e.length}else f=0;for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(typeof l==="number"){if(!g&&(d&1)!==0&&(l&1)!==0)return!1;g&&(l&1)===0||(g=!1,d=l|d&1)}else if(!g)if(d&4){if(d=2|d&1,l!==""&&l!==(a.type!==4||c?a.value:"ng-template")||l===""&&b.length===1){if((d&1)===0)return!1;g=!0}}else if(d&8){var r;if(!(r=e===null)){a:{r=void 0;var w=a,x=0;if(c)for(;x<e.length&&typeof e[x]==="string";x+=2){if(w=e[x]==="class"){b:{w=e[x+1].toLowerCase();for(var C=0,H=w.length;;){C=
w.indexOf(l,C);if(C===-1){w=C;break b}if(C===0||w.charCodeAt(C-1)<=32){var J=l.length;if(C+J===H||w.charCodeAt(C+J)<=32){w=C;break b}}C+=1}w=void 0}w=w!==-1}if(w){l=!0;break a}}else if(Jga(w)){l=!1;break a}x=e.indexOf(1,x);if(x>-1)for(;++x<e.length&&typeof(r=e[x])==="string";)if(r.toLowerCase()===l){l=!0;break a}l=!1}r=!l}if(r){if((d&1)===0)return!1;g=!0}}else{r=b[++k];a:if(e===null)l=-1;else if(x=0,c||!Jga(a)){for(w=!1;x<e.length;){H=e[x];if(H===l){l=x;break a}if(H===3||H===6)w=!0;else if(H===1||
H===2){for(H=e[++x];typeof H==="string";)H=e[++x];continue}else if(H===4)break;else if(H===0){x+=4;continue}x+=w?1:2}l=-1}else b:{x=e.indexOf(4);if(x>-1)for(x++;x<e.length;){w=e[x];if(typeof w==="number")break;if(w===l){l=x;break b}x++}l=-1}if(l===-1){if((d&1)===0)return!1;g=!0}else if(r!==""&&(l=l>f?"":e[l+1].toLowerCase(),d&2&&r!==l)){if((d&1)===0)return!1;g=!0}}}return(d&1)===0||g},Lga=function(a,b,c){c=c===void 0?!1:c;for(var d=0;d<b.length;d++)if(Kga(a,b[d],c))return!0;return!1},Mga=function(a){for(var b=
a[0],c=1,d=2,e="",f=!1;c<a.length;){var g=a[c];if(typeof g==="string")if(d&2){var k=a[++c];e+="["+g+(k.length>0?'="'+k+'"':"")+"]"}else d&8?e+="."+g:d&4&&(e+=" "+g);else e!==""&&(g&1)!==0&&(b+=f?":not("+e.trim()+")":e,e=""),d=g,f=f||(d&1)!==0;c++}e!==""&&(b+=f?":not("+e.trim()+")":e);return b},Oga=function(){if(Nga!==void 0)return Nga;if(typeof document!=="undefined")return document;throw new Vc(210,!1);},Id=function(a,b){jd(b)?(a.__ngContext__=b[19],Pga.set(b[19],b)):a.__ngContext__=b},Qga=function(a){for(;a!==
null&&!kd(a);)a=a[4];return a},Kd=function(a,b){return new Jd(nd(a,b))},Rga=function(a){return a instanceof Jd?a.nativeElement:a},Ld=function(a){return a.ownerDocument.defaultView},Sga=function(a){return a.ownerDocument},Vga=function(a){return a.replace(Tga,function(b){return b.replace(Uga,"\u200b$1\u200b")})},Wga=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;if(d!==null)for(var f=0;f<d.length;){var g=d[f];if(typeof g==="number"){if(g!==0)break;f++;g=d[f++];var k=d[f++],l=d[f++];a.setAttribute(b,
k,l,g)}else k=d[++f],g.charCodeAt(0)===64?a.setProperty(b,g,k):a.setAttribute(b,g,k),f++}e!==null&&(e===""?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));c!==null&&a.setAttribute(b,"style",c)},Yga=function(a){return Xga(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},Zga=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)},Xga=function(a){return a!==null&&(typeof a==="function"||typeof a===
"object")},$ga=function(a,b,c){return a[b]=c},Nd=function(a,b,c){if(c===Md||Object.is(a[b],c))return!1;a[b]=c;return!0},Od=function(a,b,c,d){c=Nd(a,b,c);return Nd(a,b+1,d)||c},aha=function(a,b){var c=Ufa?64:1088,d;for((d=a[10].changeDetectionScheduler)==null||d.notify(b);a;){a[2]|=c;b=rd(a);if((a[2]&512)!==0&&!b)break;a=b}},bha=function(){return new Pd(t())},cha=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,1))},Qd=function(a){return typeof a==="function"},dha=function(a){return a instanceof Rd||
a&&"closed"in a&&Qd(a.remove)&&Qd(a.add)&&Qd(a.unsubscribe)},Sd=function(){},fha=function(a){eha(function(){throw a;})},Td=function(a){return a},Ud=function(){return gha(bd.apply(0,arguments))},gha=function(a){return a.length===0?Td:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},hha=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise},iha=function(a,b){return new Vd(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||
this.schedule())})})},jha=function(a,b){if(!a)throw Error("ua");return new Vd(function(c){var d=new Rd;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(g){g.done?c.complete():(c.next(g.value),f.schedule())})}))}));return d})},kha=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},mha=function(a,b){return new Vd(function(c){var d;c.add(b.schedule(function(){d=a[lha]();
kha(c,b,function(){var e=d.next(),f=e.value;e.done?c.complete():(c.next(f),this.schedule())})}));return function(){var e;return Qd((e=d)==null?void 0:e.return)&&d.return()}})},oha=function(a,b){return new Vd(function(c){var d=new Rd;d.add(b.schedule(function(){var e=a[nha]();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})},pha=function(a,b){return new Vd(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)}))})})})},qha=function(a){return new TypeError("va`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))},sha=function(a,b){if(a!=null){if(Qd(a[nha]))return oha(a,b);if(rha(a))return iha(a,b);if(Qd(a==null?void 0:a.then))return pha(a,
b);if(Symbol.asyncIterator&&Qd(a==null?void 0:a[Symbol.asyncIterator]))return jha(a,b);if(Qd(a==null?void 0:a[lha]))return mha(a,b)}throw qha(a);},Xd=function(a,b){return b?sha(a,b):Wd(a)},Wd=function(a){if(a instanceof Vd)return a;if(a!=null){if(Qd(a[nha]))return tha(a);if(rha(a))return uha(a);if(Qd(a==null?void 0:a.then))return vha(a);if(Symbol.asyncIterator&&Qd(a==null?void 0:a[Symbol.asyncIterator]))return wha(a);if(Qd(a==null?void 0:a[lha]))return xha(a)}throw qha(a);},tha=function(a){return new Vd(function(b){var c=
a[nha]();if(Qd(c.subscribe))return c.subscribe(b);throw new TypeError("wa");})},uha=function(a){return new Vd(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})},vha=function(a){return new Vd(function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,fha)})},xha=function(a){return new Vd(function(b){for(var c=a[lha]();!b.closed;){var d=c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return Qd(c==null?void 0:
c.return)&&c.return()}})},wha=function(a){return new Vd(function(b){yha(a,b).catch(function(c){return b.error(c)})})},yha=function(a,b){var c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:Yd(l,2,3);var r=a[Symbol.asyncIterator];f=r!==void 0?r.call(a):new zha(m(a));case 5:return z(l,f.next(),8);case 8:d=l.yieldResult;if(d.done){l.jumpTo(3);break}g=d.value;b.next(g);l.jumpTo(5);break;case 3:Zd(l);$d(l,9);if(!d||d.done||!(e=f.return)){l.jumpTo(9);break}return z(l,e.call(f),9);case 9:Zd(l,
0,0,1);if(c)throw c.error;ae(l,10,1);break;case 10:ae(l,4);break;case 2:k=be(l);c={error:k};l.jumpTo(3);break;case 4:b.complete(),ce(l)}})},Aha=function(a,b){return b?iha(a,b):uha(a)},Bha=function(a){return Qd(a[a.length-1])?a.pop():void 0},de=function(a){var b=a[a.length-1];return b&&Qd(b.schedule)?a.pop():void 0},ee=function(){var a=bd.apply(0,arguments),b=de(a);return b?iha(a,b):Aha(a)},ge=function(a){var b=Qd(a)?a:function(){return a};return new Vd(function(c){return c.error(b())})},Cha=function(a,
b){var c=a.kind,d=a.value;a=a.error;if(typeof c!=="string")throw new TypeError("xa");var e,f,g;c==="N"?(e=b.next)==null||e.call(b,d):c==="E"?(f=b.error)==null||f.call(b,a):(g=b.complete)==null||g.call(b)},ie=function(a){return new Promise(function(b,c){var d=new he({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Dha)}});a.subscribe(d)})},je=function(a){return function(b){if(Qd(b==null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});
throw new TypeError("ya");}},Eha=function(){return je(function(a,b){var c=null;a._refCount++;var d=new ke(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())})},Gha=function(){function a(d,e){var f={sync:!1,subscription:null};f.subscription=b.schedule(function(g){e();var k=g.subscription;g.subscription=null;k?(k.unsubscribe(),d.remove(k)):g.sync=
!0},c,f);f.sync?f.subscription.unsubscribe():d.add(f.subscription)}var b=Fha;var c=c===void 0?0:c;return je(function(d,e){d.subscribe(new ke(e,function(f){return a(e,function(){return e.next(f)})},function(f){return a(e,function(){return e.error(f)})},function(){return a(e,function(){return e.complete()})}))})},A=function(a){return je(function(b,c){var d=0;b.subscribe(new ke(c,function(e){c.next(a.call(void 0,e,d++))}))})},Iha=function(a){return A(function(b){return Hha(b)?a.apply(null,q(b)):a(b)})},
Nha=function(a){if(a.length===1){var b=a[0];if(Jha(b))return{args:b,keys:null};if(b&&typeof b==="object"&&Kha(b)===Lha)return a=Mha(b),{args:a.map(function(c){return b[c]}),keys:a}}return{args:a,keys:null}},le=function(){var a=bd.apply(0,arguments),b=de(a),c=Bha(a);a=Nha(a);var d=a.args,e=a.keys;if(d.length===0)return Xd([],b);b=new Vd(Oha(d,b,e?function(f){for(var g={},k=0;k<f.length;k++)g[e[k]]=f[k];return g}:Td));return c?b.pipe(Iha(c)):b},Oha=function(a,b,c){c=c===void 0?Td:c;return function(d){Pha(b,
function(){for(var e=a.length,f=Array(e),g=e,k=a.map(function(){return!1}),l=!0,r={i$jscomp$210:0};r.i$jscomp$210<e;r={i$jscomp$210:r.i$jscomp$210},r.i$jscomp$210++)Pha(b,function(w){return function(){Xd(a[w.i$jscomp$210],b).subscribe(new Qha(d,function(x){f[w.i$jscomp$210]=x;l&&(k[w.i$jscomp$210]=!0,l=!k.every(Td));l||d.next(c(f.slice()))},function(){return--g===0}))}}(r),d)},d)}},Pha=function(a,b,c){a?c.add(a.schedule(b)):b()},Rha=function(a,b,c,d,e,f){var g=[],k=0,l=0,r=!1,w=function(C){return k<
d?x(C):g.push(C)},x=function(C){f&&b.next(C);k++;Wd(c(C,l++)).subscribe(new ke(b,function(H){e==null||e(H);f?w(H):b.next(H)},void 0,function(){k--;for(var H={};g.length&&k<d;H={bufferedValue:void 0})H.bufferedValue=g.shift(),x(H.bufferedValue);!r||g.length||k||b.complete()}))};a.subscribe(new ke(b,w,void 0,function(){r=!0;!r||g.length||k||b.complete()}));return function(){g=null}},me=function(a,b,c){c=c===void 0?Infinity:c;if(Qd(b))return me(function(d,e){return A(function(f,g){return b(d,f,e,g)})(Wd(a(d,
e)))},c);typeof b==="number"&&(c=b);return je(function(d,e){return Rha(d,e,a,c)})},ne=function(a){a=a===void 0?Infinity:a;return me(Td,a)},oe=function(){var a=bd.apply(0,arguments);return ne(1)(Aha(a,de(a)))},pe=function(a){return new Vd(function(b){Wd(a()).subscribe(b)})},qe=function(){var a=bd.apply(0,arguments),b=Bha(a),c=Nha(a);a=c.args;c=c.keys;return b?Sha(a,c).pipe(A(function(d){return b.apply(null,q(d))})):Sha(a,c)},Sha=function(a,b){return new Vd(function(c){var d=a.length;if(d===0)c.complete();
else for(var e=Array(d),f=0,g=0,k={sourceIndex:0};k.sourceIndex<d;k={hasValue$jscomp$2:void 0,sourceIndex:k.sourceIndex},k.sourceIndex++){var l=Wd(a[k.sourceIndex]);k.hasValue$jscomp$2=!1;c.add(l.subscribe({next:function(r){return function(w){r.hasValue$jscomp$2||(r.hasValue$jscomp$2=!0,g++);e[r.sourceIndex]=w}}(k),error:function(r){return c.error(r)},complete:function(r){return function(){f++;f!==d&&r.hasValue$jscomp$2||(g===d&&c.next(b?b.reduce(function(w,x,C){return w[x]=e[C],w},{}):e),c.complete())}}(k)}))}})},
re=function(a,b,c){if(Qd(c)){var d=c;c=void 0}if(d)return re(a,b,c).pipe(Iha(d));d=m(Qd(a.addEventListener)&&Qd(a.removeEventListener)?Tha.map(function(g){return function(k){return a[g](b,k,c)}}):Qd(a.addListener)&&Qd(a.removeListener)?Uha.map(Vha(a,b)):Qd(a.on)&&Qd(a.off)?Wha.map(Vha(a,b)):[]);var e=d.next().value,f=d.next().value;return!e&&rha(a)?me(function(g){return re(g,b,c)})(Aha(a)):new Vd(function(g){if(!e)throw new TypeError("za");var k=function(){var l=bd.apply(0,arguments);return g.next(1<
l.length?l:l[0])};e(k);return function(){return f(k)}})},Vha=function(a,b){return function(c){return function(d){return a[c](b,d)}}},Xha=function(a,b){return new Vd(function(c){var d=function(){var f=bd.apply(0,arguments);return c.next(f.length===1?f[0]:f)},e=a(d);return Qd(b)?function(){return b(d,e)}:void 0})},Yha=function(a,b,c){return pe(function(){return a()?b:c})},te=function(a,b,c){a=a===void 0?0:a;c=c===void 0?se:c;var d=-1;b!=null&&(b&&Qd(b.schedule)?c=b:d=b);return new Vd(function(e){var f=
a instanceof Date&&!isNaN(a)?+a-c.now():a;f<0&&(f=0);var g=0;return c.schedule(function(){e.closed||(e.next(g++),0<=d?this.schedule(void 0,d):e.complete())},f)})},Zha=function(a,b){a=a===void 0?0:a;b=b===void 0?se:b;a<0&&(a=0);return te(a,a,b)},ve=function(){var a=bd.apply(0,arguments),b=de(a);var c=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?Wd(a[0]):ne(c)(Aha(a,b)):ue},we=function(a){return je(function(b,c){var d=0;b.subscribe(new ke(c,function(e){return a.call(void 0,
e,d++)&&c.next(e)}))})},bia=function(){var a=bd.apply(0,arguments);a=a.length===1&&$ha(a[0])?a[0]:a;return a.length===1?Wd(a[0]):new Vd(aia(a))},aia=function(a){return function(b){for(var c=[],d={i$jscomp$213:0};c&&!b.closed&&d.i$jscomp$213<a.length;d={i$jscomp$213:d.i$jscomp$213},d.i$jscomp$213++)c.push(Wd(a[d.i$jscomp$213]).subscribe(new ke(b,function(e){return function(f){if(c){for(var g=0;g<c.length;g++)g!==e.i$jscomp$213&&c[g].unsubscribe();c=null}b.next(f)}}(d))))}},cia=function(a,b){return new Vd(function(c){var d=
a(),e=b(d);(e?Wd(e):ue).subscribe(c);return function(){d&&d.unsubscribe()}})},xe=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?dia:a.with,e=a.scheduler===void 0?se:a.scheduler,f=a.meta===void 0?null:a.meta;if(b==null&&c==null)throw new TypeError("Ba");return je(function(g,k){var l,r=null,w=0,x=function(H){l=kha(k,e,function(){C.unsubscribe();Wd(d({meta:f,lastValue:r,seen:w})).subscribe(k)},H)};var C=g.subscribe(new ke(k,
function(H){var J;(J=l)==null||J.unsubscribe();w++;k.next(r=H);c>0&&x(c)},void 0,void 0,function(){var H;if((H=l)==null||!H.closed){var J;(J=l)==null||J.unsubscribe()}r=null}));x(b!=null?typeof b==="number"?b:+b-e.now():c)})},dia=function(a){throw new eia(a);},gia=function(a){return a in fia?(delete fia[a],!0):!1},ye=function(a){return!!a&&(a instanceof Vd||Qd(a.lift)&&Qd(a.subscribe))},hia=function(){},iia=function(a){function b(){a=hia;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()}},jia=function(a){queueMicrotask(function(){return a()});return function(){a=hia}},kia=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}}},mia=function(a){function b(){iia(function(){a.callbackScheduled=!1;lia(a);a.isCheckStableRunning=!0;kia(a);a.isCheckStableRunning=!1})}a.isCheckStableRunning||a.callbackScheduled||(a.callbackScheduled=!0,a.scheduleInRootZone?Zone.root.run(function(){b()}):a._outer.run(function(){b()}),lia(a))},qia=function(a){var b=nia++,c={};a._inner=a._inner.fork({name:"angular",properties:(c.isAngularZone=!0,c.isAngularZone_ID=b,c["isAngularZone_ID"+b]=!0,c),onInvokeTask:function(d,e,f,g,k,l){if(oia(l,"__ignore_ng_zone__"))return d.invokeTask(f,
g,k,l);try{return pia(a),d.invokeTask(f,g,k,l)}finally{(a.shouldCoalesceEventChangeDetection&&g.type==="eventTask"||a.shouldCoalesceRunChangeDetection)&&mia(a),a._nesting--,kia(a)}},onInvoke:function(d,e,f,g,k,l,r){try{return pia(a),d.invoke(f,g,k,l,r)}finally{!a.shouldCoalesceRunChangeDetection||a.callbackScheduled||oia(l,"__scheduler_tick__")||mia(a),a._nesting--,kia(a)}},onHasTask:function(d,e,f,g){d.hasTask(f,g);e===f&&(g.change=="microTask"?(a._hasPendingMicrotasks=g.microTask,lia(a),kia(a)):
g.change=="macroTask"&&(a.hasPendingMacrotasks=g.macroTask))},onHandleError:function(d,e,f,g){d.handleError(f,g);a.runOutsideAngular(function(){return a.onError.emit(g)});return!1}})},lia=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&a.callbackScheduled===!0?!0:!1},pia=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},oia=function(a,b){if(!Array.isArray(a)||a.length!==1)return!1;var c,
d;return((c=a[0])==null?void 0:(d=c.data)==null?void 0:d[b])===!0},B=function(a){ria(ud(),t(),td.selectedIndex+(a===void 0?1:a))},ria=function(a,b,c){(b[2]&3)===3?(a=a.preOrderCheckHooks,a!==null&&ega(b,a,3,c)):(a=a.preOrderHooks,a!==null&&fga(b,a,0,c));td.selectedIndex=c},sia=function(a,b,c,d){var e=Jc(null);try{var f=m(a.inputs[c]),g=f.next().value,k=f.next().value,l=f.next().value;f=null;(k&1)!==0&&(f=b[g][Pc]);f!==null&&f.transformFn!==void 0?d=f.transformFn(d):l!==null&&(d=l.call(b,d));a.setInput!==
null?a.setInput(b,f,d,c,g):(a=f,a!==null?a.applyValueToInputSignal(a,d):b[g]=d)}finally{Jc(e)}},uia=function(){return new tia(t(),vd())},ze=function(a){if(!via.has(a)){via.add(a);var b,c;(b=performance)==null||(c=b.mark)==null||c.call(b,"mark_feature_usage",{detail:{feature:a}})}},Ge=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:p(Ae);ze("NgAfterNextRender");c=d.get(Be);c.impl!=null||(c.impl=d.get(Ce));var e=d.get(De,null,{optional:!0});b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Ee):
null;d=d.get(tia,null,{optional:!0});a=new Fe(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},xia=function(a,b,c){var d=a.get(wia);if(Array.isArray(b)){b=m(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;d.queue.add(e);var f=void 0,g=void 0;(f=c)==null||(g=f.detachedLeaveAnimationFns)==null||g.push(e)}}else d.queue.add(b),c==null||(e=c.detachedLeaveAnimationFns)==
null||e.push(b);d.scheduler&&d.scheduler(a)},yia=function(a,b,c,d){var e;a=a==null?void 0:(e=a[26])==null?void 0:e.enter;if(b!==null&&a&&a.has(c.index))for(b=m(a),c=b.next();!c.done;c=b.next())c=m(c.value),c.next(),c=c.next().value,xia(d,c.animateFns)},He=function(a,b,c,d,e,f,g,k){if(e!=null){var l=!1;if(kd(e))var r=e;else jd(e)&&(l=!0,e=e[0]);var w=md(e);a===0&&d!==null?(yia(k,d,f,c),g==null?b.appendChild(d,w):b.insertBefore(d,w,g||null,!0)):a===1&&d!==null?(yia(k,d,f,c),b.insertBefore(d,w,g||null,
!0)):a===2?zia(k,f,c,function(x){b.removeChild(null,w,l,x)}):a===3&&zia(k,f,c,function(){b.destroyNode(w)});r!=null&&Aia(b,a,c,r,f,d,g)}},Bia=function(a,b){var c;(c=b[10].changeDetectionScheduler)==null||c.notify(9);Ie(b[11],2,a.firstChild,b,null,null,!1)},Cia=function(a,b){a=a[9];b=a.indexOf(b);a.splice(b,1)},Eia=function(a,b){if((b[2]&256)!==256){var c=b[11];c.destroyNode&&Ie(c,3,a.firstChild,b,null,null,!1);if(a=b[12])for(;a;){c=null;if(jd(a))c=a[12];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&
a!==b;)jd(a)&&Dia(a[1],a),a=a[3];a===null&&(a=b);jd(a)&&Dia(a[1],a);c=a&&a[4]}a=c}else Dia(b[1],b)}},Dia=function(a,b){if((b[2]&256)!==256){var c=Jc(null);try{b[2]&=-129;b[2]|=256;b[24]&&Iea(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 Dga)){var g=d[e+1];if(Array.isArray(g))for(var k=0;k<g.length;k+=2){var l=f[g[k]],r=g[k+1];Dd(4,l,r);try{r.call(l)}finally{Dd(5,l,r)}}else{Dd(4,f,g);try{g.call(f)}finally{Dd(5,f,g)}}}}var w=a.cleanup,
x=b[7];if(w!==null)for(d=0;d<w.length-1;d+=2)if(typeof w[d]==="string"){var C=w[d+3];if(C>=0)x[C]();else x[-C].unsubscribe();d+=2}else w[d].call(x[w[d+1]]);x!==null&&(b[7]=null);var H=b[21];if(H!==null)for(b[21]=null,w=0;w<H.length;w++)(0,H[w])();var J=b[23];if(J!==null){b[23]=null;for(var O=m(J),R=O.next();!R.done;R=O.next())R.value.destroy()}b[1].type===1&&b[11].destroy();var V=b[16];if(V!==null&&kd(b[3])){V!==b[3]&&Cia(V,b);var ca=b[18];ca!==null&&ca.detachView(a)}Pga.delete(b[19])}finally{Jc(c)}}},
zia=function(a,b,c,d){var e=a==null?void 0:a[26];e!=null&&e.leave!=void 0&&e.leave.has(b.index)?(a&&Fia.add(a),xia(c,function(){if(e.leave&&e.leave.has(b.index)){var f=e.leave.get(b.index),g=[];if(f){for(var k=0;k<f.animateFns.length;k++){var l=(0,f.animateFns[k])().promise;g.push(l)}e.detachedLeaveAnimationFns=void 0}e.running=Promise.allSettled(g);Gia(a,d)}else a&&Fia.delete(a),d(!1)},e)):d(!1)},Gia=function(a,b){var c,d=(c=a[26])==null?void 0:c.running;d?d.then(function(){a[26].running=void 0;
Fia.delete(a);b(!0)}):b(!1)},Hia=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:nd(b,c)},Iia=function(a,b,c){return a.type&40?nd(a,c):null},Lia=function(a,b,c,d){a=Hia(a,d.parent,b);var e=b[11],f=Jia(d.parent||b[5],d,b);if(a!=null)if(Array.isArray(c))for(var g=0;g<c.length;g++){var k=e,l=a,r=c[g];f!==null?k.insertBefore(l,r,f,!1):k.appendChild(l,r)}else f!==null?e.insertBefore(a,
c,f,!1):e.appendChild(a,c);Kia!==void 0&&Kia(e,d,b,c,a)},Nia=function(a,b){if(b!==null){var c=b.type;if(c&3)return nd(b,a);if(c&4)return Mia(-1,a[b.index]);if(c&8){c=b.child;if(c!==null)return Nia(a,c);a=a[b.index];return kd(a)?Mia(-1,a):md(a)}if(c&128)return Nia(a,b.next);if(c&32)return Oia(b,a)()||md(a[b.index]);c=b!==null?a[15][5].projection[b.projection]:null;if(c!==null){if(Array.isArray(c))return c[0];a=rd(a[15]);return Nia(a,c)}return Nia(a,b.next)}return null},Mia=function(a,b){a=10+a+1;if(a<
b.length){a=b[a];var c=a[1].firstChild;if(c!==null)return Nia(a,c)}return b[7]},Ie=function(a,b,c,d,e,f,g){for(;c!=null;){var k=d[9];if(c.type===128)c=c.next;else{var l=d[c.index],r=c.type;g&&b===0&&(l&&Id(md(l),d),c.flags|=2);if((c.flags&32)!==32)if(r&8)Ie(a,b,c.child,d,e,f,!1),He(b,a,k,e,l,c,f,d);else if(r&32){r=Oia(c,d);for(var w;w=r();)He(b,a,k,e,w,c,f,d);He(b,a,k,e,l,c,f,d)}else r&16?Pia(a,b,d,c,e,f):He(b,a,k,e,l,c,f,d);c=g?c.projectionNext:c.next}}},Pia=function(a,b,c,d,e,f){var g=c[15],k=g[5].projection[d.projection];
if(Array.isArray(k))for(g=0;g<k.length;g++)He(b,a,c[9],e,k[g],d,f,c);else c=g[3],(d.flags&128)===128&&(k.flags|=128),Ie(a,b,k,c,e,f,!0)},Aia=function(a,b,c,d,e,f,g){var k=d[7];k!==md(d)&&He(b,a,c,f,k,e,g);for(c=10;c<d.length;c++)e=d[c],Ie(a,b,e[1].firstChild,e,f,k,!1)},Qia=function(a,b,c,d,e,f,g,k,l,r,w){d=27+d;e=d+e;for(var x=[],C=0;C<e;C++)x.push(C<d?null:Md);r=typeof r==="function"?r():r;return x[1]={type:a,blueprint:x,template:c,queries:null,viewQuery:k,declTNode:b,data:x.slice().fill(null,d),
bindingStartIndex:d,expandoStartIndex:e,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof f==="function"?f():f,pipeRegistry:typeof g==="function"?g():g,firstChild:null,schemas:l,consts:r,incompleteFirstPass:!1,ssrId:w}},Sia=function(a,
b,c,d,e,f,g,k,l,r,w){var x=b.blueprint.slice();x[0]=e;x[2]=d|1228;if(r!==null||a&&a[2]&2048)x[2]|=2048;x[17]=0;x[3]=x[14]=a;x[8]=c;x[10]=g||a&&a[10];x[11]=k||a&&a[11];x[9]=l||a&&a[9]||null;x[5]=f;x[19]=Ria++;x[6]=w;x[20]=r;x[15]=b.type==2?a[15]:x;return x},Tia=function(a){var b=16;a.signals?b=4096:a.onPush&&(b=64);return b},Uia=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},Via=function(a,b){a[12]?a[13][4]=b:a[12]=b;return a[13]=
b},Ke=function(a){return a instanceof Je?a.changingThisBreaksApplicationSecurity:a},Le=function(a,b){a=a instanceof Je&&a.getTypeName()||null;if(a!=null&&a!==b){if(a==="ResourceURL"&&b==="URL")return!0;throw Error("Ca`"+b+"`"+a);}return a===b},Xia=function(){if(Wia===void 0&&(Wia=null,Me.trustedTypes))try{Wia=Me.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Wia},Yia=function(a){var b;
return((b=Xia())==null?void 0:b.createHTML(a))||a},aja=function(a){a=new Zia(a);try{var b=!!(new window.DOMParser).parseFromString(Yia(""),"text/html")}catch(c){b=!1}return b?new $ia(a):a},cja=function(a){a=String(a);return a.match(bja)?a:"unsafe:"+a},Ne=function(a){var b={};a=m(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},dja=function(){for(var a={},b=m(bd.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},
eja=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"},hja=function(a){return a.replace(/&/g,"&amp;").replace(fja,function(b){return"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";"}).replace(gja,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},pja=function(a,b){var c=null;try{ija=ija||aja(a);var d=b?String(b):"";c=ija.getInertBodyElement(d);a=5;b=d;do{if(a===0)throw Error("Ea");a--;d=b;b=c.innerHTML;c=ija.getInertBodyElement(d)}while(d!==
b);var e=new jja,f=(kja(c)||c).firstChild;d=!0;for(a=[];f;){if(f.nodeType===Node.ELEMENT_NODE){b=e;var g=f,k=eja(g).toLowerCase();if(lja.hasOwnProperty(k)){b.buf.push("<");b.buf.push(k);var l=g.attributes;for(g=0;g<l.length;g++){var r=l.item(g),w=r.name,x=w.toLowerCase();if(mja.hasOwnProperty(x)){var C=r.value;nja[x]&&(C=cja(C));b.buf.push(" ",w,'="',hja(C),'"')}}b.buf.push(">");d=!0}else d=!oja.hasOwnProperty(k)}else f.nodeType===Node.TEXT_NODE&&e.buf.push(hja(f.nodeValue));if(d&&f.firstChild){a.push(f);
var H=f.firstChild;if(H&&(f.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("Da`"+H.outerHTML);f=H}else for(;f;){f.nodeType===Node.ELEMENT_NODE&&e.endElement(f);var J,O=f.nextSibling;if(O&&f!==O.previousSibling)throw Error("Da`"+O.outerHTML);if(J=O){f=J;break}f=a.pop()}}return Yia(e.buf.join(""))}finally{if(c)for(c=kja(c)||c;c.firstChild;)c.firstChild.remove()}},kja=function(a){return"content"in a&&a.nodeType===Node.ELEMENT_NODE&&a.nodeName===
"TEMPLATE"?a.content:null},rja=function(){if(qja===void 0&&(qja=null,Me.trustedTypes))try{qja=Me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return qja},sja=function(a){var b;return((b=rja())==null?void 0:b.createHTML(a))||a},tja=function(a){var b;return((b=rja())==null?void 0:b.createScriptURL(a))||a},Oe=function(a){var b=uja();return b?sja(b.sanitize(1,a)||""):Le(a,"HTML")?
sja(Ke(a)):pja(Oga(),Uc(a))},vja=function(a){var b=uja();return b?b.sanitize(2,a)||"":Le(a,"Style")?Ke(a):Uc(a)},Pe=function(a){var b=uja();return b?b.sanitize(4,a)||"":Le(a,"URL")?Ke(a):cja(Uc(a))},wja=function(a){var b=uja();if(b)return tja(b.sanitize(5,a)||"");if(Le(a,"ResourceURL"))return tja(Ke(a));throw new Vc(904,!1);},xja=function(a,b,c){return(c==="src"&&(b==="embed"||b==="frame"||b==="iframe"||b==="media"||b==="script")||c==="href"&&(b==="base"||b==="link")?wja:Pe)(a)},uja=function(){var a=
t();return a&&a[10].sanitizer},yja=function(a,b,c,d,e){var f=td.selectedIndex,g=d&2;try{td.selectedIndex=-1,g&&b.length>27&&ria(a,b,27),Dd(g?2:0,e,c),c(d,e)}finally{td.selectedIndex=f,Dd(g?3:1,e,c)}},zja=function(a,b,c){var d=c.directiveStart,e=c.directiveEnd;if(c.componentOffset>-1){var f=a.data[d+c.componentOffset],g=nd(c,b);var k=f.tView;k=k===null||k.incompleteFirstPass?f.tView=Qia(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts,f.id):k;f=Via(b,Sia(b,
k,null,Tia(f),g,c,null,b[10].rendererFactory.createRenderer(g,f),null,null,null));b[c.index]=f}a.firstCreatePass||uga(c,b);f=c.initialInputs;for(g=d;g<e;g++){k=a.data[g];var l=Cga(b,a,g,c);Id(l,b);if(f!==null){var r=f[g-d];if(r!==null)for(var w=0;w<r.length;w+=2)sia(k,l,r[w],r[w+1])}k.template&&(od(c.index,b)[8]=Cga(b,a,g,c))}if((c.flags&64)===64){e=c.directiveStart;d=c.directiveEnd;f=c.index;c=td.currentDirectiveIndex;try{for(td.selectedIndex=f;e<d;e++){var x=a.data[e],C=b[e];td.currentDirectiveIndex=
e;x.hostBindings===null&&x.hostVars===0&&x.hostAttrs===null||x.hostBindings===null||x.hostBindings(1,C)}}finally{td.selectedIndex=-1,td.currentDirectiveIndex=c}}},Aja=function(a,b,c){c=c===void 0?nd:c;var d=b.localNames;if(d!==null)for(var e=b.index+1,f=0;f<d.length;f+=2){var g=d[f+1];g=g===-1?c(b,a):a[g];a[e++]=g}},Cja=function(a,b,c,d){c=d.get(Bja,!1)||c===3||c===4;return a.selectRootElement(b,c)},Fja=function(a,b,c,d,e,f){Qe(a,b[1],b,c,d)?a.componentOffset>-1&&Dja(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),Eja(a,b,c,d,e,f))},Eja=function(a,b,c,d,e,f){a.type&3&&(b=nd(a,b),d=f!=null?f(d,a.value||"",c):d,e.setProperty(b,c,d))},Dja=function(a,b){a=od(b,a);a[2]&16||(a[2]|=64)},Gja=function(a,b){a=a.directiveRegistry;var c=null;if(a)for(var d=0;d<a.length;d++){var e=a[d];Lga(b,e.selectors,!1)&&(c!=null||(c=[]),e.template?c.unshift(e):c.push(e))}return c},
Hja=function(a,b,c,d,e,f,g){f==null?a.removeAttribute(b,e,c):(d=g==null?Uc(f):g(f,d||"",e),a.setAttribute(b,e,d,c))},Ija=function(a,b,c,d,e){var f=27+c,g=b[1];c=e(g,b,a,d,c);b[f]=c;wd(a,!0);(f=a.type===2)?(Wga(b[11],c,a),td.elementDepthCount!==0&&(a.flags&1)!==1||Id(c,b),td.elementDepthCount++):Id(c,b);!Re||f&&(a.flags&32)===32||Lia(g,b,c,a)},Jja=function(){var a=vd();td.isParent?td.isParent=!1:(a=a.parent,wd(a,!1));return a},Kja=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]},Qe=function(a,b,c,d,e){var f,g=(f=a.inputs)==null?void 0:f[d],k;a=(k=a.hostDirectiveInputs)==null?void 0:k[d];k=!1;if(a)for(f=0;f<a.length;f+=2)k=a[f],sia(b.data[k],c[k],a[f+1],e),k=!0;if(g)for(g=m(g),a=g.next();!a.done;a=g.next())a=a.value,sia(b.data[a],c[a],d,e),k=!0;return k},Se=function(a,b,c){return function f(e){var g=a.componentOffset>-1?od(a.index,b):b;aha(g,5);g=b[8];for(var k=Lja(b,g,c,e),l=f.__ngNextListenerFn__;l;)k=Lja(b,g,l,e)&&k,l=l.__ngNextListenerFn__;
return k}},Lja=function(a,b,c,d){var e=Jc(null);try{return Dd(6,b,c),c(d)!==!1}catch(l){d=l;var f=a[9];if(f){try{var g=f.get(Te,null)}catch(r){g=null}var k;(k=g)==null||k(d)}return!1}finally{Dd(7,b,c),Jc(e)}},Oja=function(a,b,c,d,e,f,g,k){var l=(a.flags&1)===1,r=!1,w=null;!d&&l&&(w=Mja(b,c,f,a.index));w!==null?((w.__ngLastListenerFn__||w).__ngNextListenerFn__=g,w.__ngLastListenerFn__=g,r=!0):(g=nd(a,c),g=d?d(g):g,e=e.listen(g,f,k),f.startsWith("animation")||f.startsWith("transition")||Nja(d?function(x){return d(md(x[a.index]))}:
a.index,b,c,f,k,e,!1));return r},Mja=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},Nja=function(a,b,c,d,e,f,g){b=b.firstCreatePass?Sfa(b):null;c=Rfa(c);var k=c.length;c.push(e,f);b&&b.push(d,a,k,(k+1)*(g?-1:1))},Pja=function(a,b,c,d,e,f){var g=b[1];c=b[c][g.data[c].outputs[d]].subscribe(f);Nja(a.index,g,b,e,f,c,!0)},Qja=function(a,b){var c=a.contentQueries;
if(c!==null){var d=Jc(null);try{for(var e=0;e<c.length;e+=2){var f=c[e],g=c[e+1];if(g!==-1){var k=a.data[g];td.currentQueryIndex=f;k.contentQueries(2,b[g],g)}}}finally{Jc(d)}}},Rja=function(a,b,c){td.currentQueryIndex=0;var d=Jc(null);try{b(a,c)}finally{Jc(d)}},Sja=function(a,b,c){if((b.flags&4)!==0){var d=Jc(null);try{for(var e=b.directiveEnd,f=b.directiveStart;f<e;f++){var g=a.data[f];g.contentQueries&&g.contentQueries(1,c[f],f)}}finally{Jc(d)}}},Uja=function(a,b,c){$fa(b);try{var d=a.viewQuery;
d!==null&&Rja(1,d,c);var e=a.template;e!==null&&yja(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);var f;(f=b[18])!=null&&Tja(f,a);a.staticContentQueries&&Qja(a,b);a.staticViewQueries&&Rja(2,a.viewQuery,c);var g=a.components;if(g!==null)for(c=0;c<g.length;c++){var k=od(g[c],b),l=k[1];d=l;e=k;for(var r=e.length;r<d.blueprint.length;r++)e.push(d.blueprint[r]);k[0]!==null&&k[6]===null&&(k[6]=null);Dd(18);Uja(l,k,k[8]);Dd(19,k[8])}}catch(w){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=
!1),w;}finally{b[2]&=-5,cga()}},Vja=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:null,f=0;if(b!==null)for(var g=0;g<b.length;g++){var k=b[g];if(typeof k==="number")f=k;else if(f==1)e=Qea(e,k);else if(f==2){var l=b[++g];d=Qea(d,k+": "+l+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Ue=function(a,b,c,d,e){var f=a.data[b];f===null?(f=Wja(a,b,c,d,e),td.inI18n&&(f.flags|=32)):f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=Tfa(),f.injectorIndex=a===null?-1:a.injectorIndex);
wd(f,!0);return f},Wja=function(a,b,c,d,e){var f=td.currentTNode,g=td.isParent,k=a.data,l=g?f:f&&f.parent,r=l?l.injectorIndex:-1,w=0;We!==null&&(w|=128);b=k[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:w,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,
tView:null,next:null,prev:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};a.firstChild===null&&(a.firstChild=b);f!==null&&(g?f.child==null&&b.parent!==null&&(f.child=b):f.next===null&&(f.next=b,b.prev=f));return b},Ye=function(a,b){b=b===void 0?0:b;var c=t();return c===null?$c(a,b):zga(vd(),c,Zc(a),b)},Ze=function(){throw Error("Ga");},
$ja=function(a,b,c,d,e){var f=d===null?null:{"":-1},g=e(a,c);if(g!==null){for(var k=g,l=e=null,r=m(g),w=r.next();!w.done;w=r.next())if(w=w.value,w.resolveHostDirectives!==null){l=m(w.resolveHostDirectives(g));k=l.next().value;e=l.next().value;l=l.next().value;break}g=k.length;r=!1;for(w=0;w<g;w++){var x=k[w];if(!r&&x.template){r=!0;var C=void 0,H=a,J=c;J.componentOffset=w;((C=H.components)!=null?C:H.components=[]).push(J.index)}C=uga(c,b);qga(C,a,x.type)}r=a.data.length;c.flags|=1;c.directiveStart=
r;c.directiveEnd=r+g;c.providerIndexes=r;for(r=0;r<g;r++)w=k[r],w.providersResolver&&w.providersResolver(w);C=x=!1;r=Uia(a,b,g,null);g>0&&(c.directiveToIndex=new Map);for(w=0;w<g;w++){H=k[w];c.mergedAttrs=Ed(c.mergedAttrs,H.hostAttrs);var O=a,R=c,V=b;J=r;O.data[J]=H;var ca=H.factory||(H.factory=ad(H.type));ca=new Dga(ca,!!H.template);O.blueprint[J]=ca;V[J]=ca;V=Uia(O,V,H.hostVars,Md);if(ca=H.hostBindings){var oa=O.hostBindingOpCodes;oa===null&&(oa=O.hostBindingOpCodes=[]);O=~R.index;a:{for(R=oa.length;R>
0;){var ua=oa[--R];if(typeof ua==="number"&&ua<0){R=ua;break a}}R=0}R!=O&&oa.push(O);oa.push(J,V,ca)}J=r;if(f){if(H.exportAs)for(V=0;V<H.exportAs.length;V++)f[H.exportAs[V]]=J;H.template&&(f[""]=J)}l!==null&&l.has(H)?(V=m(l.get(H)),J=V.next().value,V=V.next().value,c.directiveToIndex.set(H.type,[r,J+c.directiveStart,V+c.directiveStart])):e!==null&&e.has(H)||c.directiveToIndex.set(H.type,r);H.contentQueries!==null&&(c.flags|=4);if(H.hostBindings!==null||H.hostAttrs!==null||H.hostVars!==0)c.flags|=
64;H=H.type.prototype;!x&&(H.ngOnChanges||H.ngOnInit||H.ngDoCheck)&&(J=x=void 0,((J=(x=a).preOrderHooks)!=null?J:x.preOrderHooks=[]).push(c.index),x=!0);C||!H.ngOnChanges&&!H.ngDoCheck||(H=C=void 0,((H=(C=a).preOrderCheckHooks)!=null?H:C.preOrderCheckHooks=[]).push(c.index),C=!0);r++}for(b=c.directiveStart;b<c.directiveEnd;b++)k=a.data[b],e!==null&&e.has(k)?(k=e.get(k),Xja(0,c,k,b),Xja(1,c,k,b),Yja(c,b,!0)):(Zja(0,c,k,b),Zja(1,c,k,b),Yja(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 Vc(-301,!1);a.push(d[c],b)}},Zja=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){if(a===0){var f=void 0,g=void 0;var k=(g=(f=b).inputs)!=null?g:f.inputs={}}else g=f=void 0,k=(g=(f=b).outputs)!=null?g:f.outputs={};g=f=void 0;(f=k)[g=e]!=null||(f[g]=[]);k[e].push(d);aka(b,e)}},Xja=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){var f=c[e];if(a===0){var g=void 0,k=void 0;var l=(k=(g=
b).hostDirectiveInputs)!=null?k:g.hostDirectiveInputs={}}else k=g=void 0,l=(k=(g=b).hostDirectiveOutputs)!=null?k:g.hostDirectiveOutputs={};k=g=void 0;(g=l)[k=f]!=null||(g[k]=[]);l[f].push(d,e);aka(b,f)}},aka=function(a,b){b==="class"?a.flags|=8:b==="style"&&(a.flags|=16)},Yja=function(a,b,c){var d=a.attrs,e=a.inputs,f=a.hostDirectiveInputs;if(d===null||!c&&e===null||c&&f===null||Jga(a))a.initialInputs!=null||(a.initialInputs=[]),a.initialInputs.push(null);else{for(var g=null,k=0;k<d.length;){var l=
d[k];if(l===0)k+=4;else{if(l!==5){if(typeof l==="number")break;if(!c&&e.hasOwnProperty(l))for(var r=m(e[l]),w=r.next();!w.done;w=r.next()){if(w.value===b){g!=null||(g=[]);g.push(l,d[k+1]);break}}else if(c&&f.hasOwnProperty(l))for(l=f[l],r=0;r<l.length;r+=2)if(l[r]===b){g!=null||(g=[]);g.push(l[r+1],d[k+1]);break}}k+=2}}a.initialInputs!=null||(a.initialInputs=[]);a.initialInputs.push(g)}},bka=function(a,b,c,d,e,f,g){var k=b[1],l=k.consts;f=pd(l,f);a=Ue(k,a,c,d,f);$ja(k,b,a,pd(l,g),e);a.mergedAttrs=
Ed(a.mergedAttrs,a.attrs);a.attrs!==null&&Vja(a,a.attrs,!1);a.mergedAttrs!==null&&Vja(a,a.mergedAttrs,!0);k.queries!==null&&k.queries.elementStart(k,a);return a},cka=function(a,b){dga(a,b);(b.flags&4)!==0&&a.queries.elementEnd(b)},dka=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(md(f));if(kd(f)){for(var g=d,k=10;k<f.length;k++){var l=f[k],r=l[1].firstChild;r!==null&&dka(l[1],l,r,g)}f[7]!==f[0]&&g.push(f[7])}f=c.type;if(f&8)dka(a,b,c.child,
d);else if(f&32)for(f=Oia(c,b);g=f();)d.push(g);else f&16&&(f=c!==null?b[15][5].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,q(f)):(g=rd(b[15]),dka(g[1],g,f,d,!0)))}c=e?c.projectionNext:c.next}return d},eka=function(a){if(a[25]!==null){for(var b=m(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}},fka=function(a){if(a[23]!==null)for(var b=!0;b;){b=!1;for(var c=m(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)}},hka=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=Ufa;try{for(Vfa(!0),gka(a,d),d=0;Ofa(a);){if(d===100)throw new Vc(103,!1);d++;gka(a,1)}}finally{Vfa(b)}}finally{var e;(e=
c.end)==null||e.call(c)}},ika=function(a,b){for(a=Qga(a[12]);a!==null;a=Qga(a[4]))for(var c=10;c<a.length;c++){var d=a[c];(d[2]&128)===128&&gka(d,b)}},gka=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)&&Cea(e)));f||(f=!1);e&&(e.dirty=!1);a[2]&=-9217;if(f){f=c.template;var g=a[8];if((a[2]&256)!==256){var k=a[2];$fa(a);b=!0;e=d=null;if(c.type!==2){var l;if((l=a[24])!=null)var r=l;else l=(r=jka.pop())!=null?r:Object.create(kka),
l.lView=a,r=l;e=r;d=Mc(e)}else Ic===null?(b=!1,r=(l=a[24])!=null?l:Object.create(lka),r.lView=a,e=r,d=Mc(e)):a[24]&&(Iea(a[24]),a[24]=null);try{a[17]=0;td.bindingIndex=c.bindingStartIndex;f!==null&&yja(c,a,f,2,g);if(r=(k&3)===3){var w=c.preOrderCheckHooks;w!==null&&ega(a,w,3,null)}else{var x=c.preOrderHooks;x!==null&&fga(a,x,0,null);gga(a,0)}for(var C=Qga(a[12]);C!==null;C=Qga(C[4]))if(C[2]&2){var H=C[9];for(w=0;w<H.length;w++)Nfa(H[w])}fka(a);ika(a,0);c.contentQueries!==null&&Qja(c,a);if(r){var J=
c.contentCheckHooks;J!==null&&ega(a,J,3)}else{var O=c.contentHooks;O!==null&&fga(a,O,1);gga(a,1)}var R=c.hostBindingOpCodes;if(R!==null)try{for(C=0;C<R.length;C++){var V=R[C];if(V<0)td.selectedIndex=~V;else{H=V;var ca=R[++C],oa=R[++C];J=td;J.bindingIndex=J.bindingRootIndex=ca;td.currentDirectiveIndex=H;var ua=a[H];Dd(24,ua);oa(2,ua);Dd(25,ua)}}}finally{td.selectedIndex=-1}var ka=c.components;ka!==null&&mka(a,ka,0);var Ga=c.viewQuery;Ga!==null&&Rja(2,Ga,g);if(r){var ja=c.viewCheckHooks;ja!==null&&
ega(a,ja,3)}else{var ta=c.viewHooks;ta!==null&&fga(a,ta,2);gga(a,2)}c.firstUpdatePass===!0&&(c.firstUpdatePass=!1);if(a[22]){for(var xa=m(a[22]),Sa=xa.next();!Sa.done;Sa=xa.next()){var $a=Sa.value;$a()}a[22]=null}eka(a);a[2]&=-73}catch(pb){throw qd(a),pb;}finally{e!==null&&(Hea(e,d),b&&(a=e,a.lView[24]!==a&&(a.lView=null,jka.push(a)))),cga()}}}else if(d&8192){R=Jc(null);try{fka(a),ika(a,1),g=c.components,g!==null&&mka(a,g,1),eka(a)}finally{Jc(R)}}},mka=function(a,b,c){for(var d=0;d<b.length;d++){var e=
a,f=b[d],g=c;Dd(18);e=od(f,e);(e[2]&128)===128&&gka(e,g);Dd(19,e[8])}},nka=function(a,b){b=10+b;if(b<a.length)return a[b]},pka=function(a,b,c,d){d=d===void 0?!0:d;var e=b[1],f=10+c,g=a.length;c>0&&(a[f-1][4]=b);c<g-10?(b[4]=a[f],f=10+c,f>=a.length?a.push(b):a.splice(f,0,b)):(a.push(b),b[4]=null);b[3]=a;f=b[16];f!==null&&a!==f&&oka(f,b);f=b[18];f!==null&&Tja(f,e);Pfa(b);b[2]|=128;d&&(c=Mia(c,a),d=b[11],f=d.parentNode(a[7]),f!==null&&(a=a[5],b[0]=f,b[5]=a,Ie(d,1,e.firstChild,b,f,c,!1)));b=b[6];b!==
null&&b.firstChild!==null&&(b.firstChild=null)},rka=function(a){a=qka(a,0);a!==void 0&&Eia(a[1],a)},qka=function(a,b){if(!(a.length<=10)){var c=10+b,d=a[c];if(d){var e=d[16];e!==null&&e!==a&&Cia(e,d);b>0&&(a[c-1][4]=d[4]);a=kfa(a,10+b);Bia(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}},oka=function(a,b){var c=a[9],d=b[3];jd(d)?a[2]|=2:b[15]!==d[3][15]&&(a[2]|=2);c===null?a[9]=[b]:c.push(b)},ska=function(a){return Object.keys(a).map(function(b){var c=
m(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})},tka=function(a){return Object.keys(a).map(function(b){return{propName:a[b],templateName:b}})},vka=function(a,b,c){(b=b instanceof $e?b:b==null?void 0:b.injector)&&a.getStandaloneInjector!==null&&(b=a.getStandaloneInjector(b)||b);return b?new uka(c,b):c},xka=function(a){var b=a.get(af,null);if(b===null)throw new Vc(407,!1);var c=a.get(wka,null);a=a.get(bf,null);
return{rendererFactory:b,sanitizer:c,changeDetectionScheduler:a,ngReflect:!1}},yka=function(a,b){a=(a.selectors[0][0]||"div").toLowerCase();return b.createElement(a,a==="svg"?"svg":a==="math"?"math":null)},Cka=function(a,b,c,d){if(a)a=["ng-version","0.0.0-PLACEHOLDER"];else{a=b.selectors[0];for(var e=[],f=[],g=1,k=2;g<a.length;){var l=a[g];if(typeof l==="string")k===2?l!==""&&e.push(l,a[++g]):k===8&&f.push(l);else{if((k&1)!==0)break;k=l}g++}f.length&&e.push.apply(e,[1].concat(q(f)));a=e}f=e=null;
g=0;if(c)for(c=m(c),k=c.next();!k.done;k=c.next())k=k.value,g+=k[zka].requiredVars,k.create&&(k.targetIdx=0,l=void 0,((l=e)!=null?l:e=[]).push(k)),k.update&&(k.targetIdx=0,l=void 0,((l=f)!=null?l:f=[]).push(k));if(d)for(c=0;c<d.length;c++)if(k=d[c],typeof k!=="function")for(k=m(k.bindings),l=k.next();!l.done;l=k.next()){l=l.value;g+=l[zka].requiredVars;var r=c+1;if(l.create){l.targetIdx=r;var w=void 0;((w=e)!=null?w:e=[]).push(l)}l.update&&(l.targetIdx=r,r=void 0,((r=f)!=null?r:f=[]).push(l))}b=[b];
if(d)for(d=m(d),c=d.next();!c.done;c=d.next())c=c.value,b.push((typeof c==="function"?c:c.type)[Aka]||null);return Qia(0,null,Bka(e,f),1,g,b,null,null,null,[a],null)},Bka=function(a,b){return a||b?function(c){if(c&1&&a)for(var d=m(a),e=d.next();!e.done;e=d.next())e.value.create();if(c&2&&b)for(c=m(b),d=c.next();!d.done;d=c.next())d.value.update()}:null},Dka=function(a){a=a[zka].kind;return a==="input"||a==="twoWay"},Eka=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)}},Gka=function(a,b,c){return(new Fka({providers:a,parent:b,debugName:c===void 0?null:c,runEnvironmentInitializers:!0})).injector},D=function(a){return lga(function(){var b=Hka(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(Ika);if(d.standalone){if(!e.cachedInjectors.has(d)){var f=ofa(!1,d.type);f=f.length>0?Gka([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||dd,_:null,schemas:a.schemas||null,tView:null,id:""});b.standalone&&ze("NgStandalone");Jka(d);b=a.dependencies;d.directiveDefs=Kka(b,Lka);d.pipeDefs=Kka(b,
hfa);d.id=Mka(d);return d})},Lka=function(a){return a[cd]||a[Aka]||null},cf=function(a){return lga(function(){return{type:a.type,bootstrap:a.bootstrap||dd,declarations:a.declarations||dd,imports:a.imports||dd,exports:a.exports||dd,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},df=function(a){return lga(function(){var b=Hka(a);Jka(b);return b})},ef=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}},Hka=function(a){var b={},c,d=a.type,e=a.hostBindings||null,f=a.hostVars||0,g=a.hostAttrs||null,k=a.contentQueries||null,l=a.inputs||ld,r=a.exportAs||null,w=(c=a.standalone)!=null?c:!0;c=a.signals===!0;var x=a.selectors||dd,C=a.viewQuery||null,H=a.features||null;var J=a.inputs;if(J==null)var O=ld;else{var R={};for(O in J)if(J.hasOwnProperty(O)){var V=J[O];if(Array.isArray(V)){var ca=V[0];var oa=V[1];var ua=void 0;var ka=(ua=V[2])!=null?ua:oa;V=V[3]||null}else ka=oa=V,ca=0,V=null;R[oa]=[O,ca,
V];b[oa]=ka}O=R}a=a.outputs;if(a==null)var Ga=ld;else{J={};for(Ga in a)a.hasOwnProperty(Ga)&&(J[a[Ga]]=Ga);Ga=J}return{type:d,providersResolver:null,factory:null,hostBindings:e,hostVars:f,hostAttrs:g,contentQueries:k,declaredInputs:b,inputConfig:l,exportAs:r,standalone:w,signals:c,selectors:x,viewQuery:C,features:H,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:O,outputs:Ga,debugInfo:null}},Jka=function(a){var b;(b=a.features)==null||b.forEach(function(c){return c(a)})},Kka=function(a,
b){return a?function(){var c=typeof a==="function"?a():a,d=[];c=m(c);for(var e=c.next();!e.done;e=c.next())e=b(e.value),e!==null&&d.push(e);return d}:null},Mka=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=m(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)},Nka=function(a){return!!a&&typeof a.then==="function"},Oka=function(a){return!!a&&typeof a.subscribe==="function"},Qka=function(a){return{"\u0275providers":[{provide:Pka,multi:!0,useValue:a}]}},ff=function(a){return typeof a==="function"&&a[Pc]!==void 0},gf=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:p(Ae);b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Ee):null;c=d.get(tia,null,{optional:!0});
var e=d.get(bf);if(c!==null){var f=Rka(c.view,e,a);b instanceof Pd&&b._lView===c.view&&(b=null)}else f=Ska(a,d.get(Tka),e);f.injector=d;b!==null&&(f.onDestroyFn=b.onDestroy(function(){return f.destroy()}));return new Uka(f)},Rka=function(a,b,c){var d=Object.create(Vka);d.view=a;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.notifier=b;d.fn=Wka(d,c);a[23]!=null||(a[23]=new Set);a[23].add(d);d.consumerMarkedDirty(d);return d},Ska=function(a,b,c){var d=Object.create(Xka);d.fn=Wka(d,a);d.scheduler=
b;d.notifier=c;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.scheduler.add(d);d.notifier.notify(12);return d},Wka=function(a,b){return function(){var c;b(function(d){var e;return((e=(c=a).cleanupFns)!=null?e:c.cleanupFns=[]).push(d)})}},Yka=function(a){return je(function(b,c){var d=!1,e=null,f=null,g=!1,k=function(){var r;(r=f)==null||r.unsubscribe();f=null;d&&(d=!1,r=e,e=null,c.next(r));g&&c.complete()},l=function(){f=null;g&&c.complete()};b.subscribe(new ke(c,function(r){d=!0;e=r;f||Wd(a(r)).subscribe(f=
new ke(c,k,void 0,l))},void 0,function(){g=!0;d&&f&&!f.closed||c.complete()}))})},hf=function(a,b){b=b===void 0?se:b;return Yka(function(){return te(a,b)})},Zka=function(a){return je(function(b,c){var d=[];b.subscribe(new ke(c,function(e){return d.push(e)},void 0,function(){c.next(d);c.complete()}));a.subscribe(new ke(c,function(){var e=d;d=[];c.next(e)},void 0,Sd));return function(){d=null}})},jf=function(a){return je(function(b,c){var d=null,e=!1,f;d=b.subscribe(new ke(c,void 0,function(g){f=Wd(a(g,
jf(a)(b)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0}));e&&(d.unsubscribe(),d=null,f.subscribe(c))})},$ka=function(a,b,c){return function(d,e){var f=c,g=b,k=0;d.subscribe(new ke(e,function(l){var r=k++;g=f?a(g,l,r):(f=!0,l);e.next(g)},void 0,void 0))}},ala=function(){var a=bd.apply(0,arguments),b=Bha(a);return b?Ud(ala.apply(null,q(a)),Iha(b)):je(function(c,d){Oha([c].concat(q(a.length===1&&$ha(a[0])?a[0]:a)))(d)})},kf=function(){return ala.apply(null,q(bd.apply(0,arguments)))},bla=function(a){return Qd()?
me(a,void 0,1):me(a,1)},dla=function(){return cla.apply(null,q(bd.apply(0,arguments)))},cla=function(){var a=bd.apply(0,arguments),b=de(a);return je(function(c,d){ne(1)(Aha([c].concat(q(a)),b)).subscribe(d)})},ela=function(a){return je(function(b,c){var d=!1,e=null,f=null,g=function(){var k;(k=f)==null||k.unsubscribe();f=null;d&&(d=!1,k=e,e=null,c.next(k))};b.subscribe(new ke(c,function(k){var l;(l=f)==null||l.unsubscribe();d=!0;e=k;f=new ke(c,g,void 0,Sd);Wd(a(k)).subscribe(f)},void 0,function(){g();
c.complete()},function(){e=f=null}))})},lf=function(a,b){b=b===void 0?se:b;var c=te(a,b);return ela(function(){return c})},fla=function(a){a=a===void 0?null:a;return je(function(b,c){var d=!1;b.subscribe(new ke(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);c.complete()}))})},gla=function(){return je(function(a,b){a.subscribe(new ke(b,Sd))})},mf=function(a){return je(function(b,c){b.subscribe(new ke(c,function(){return c.next(a)}))})},nf=function(a){return a<=0?function(){return ue}:
je(function(b,c){var d=0;b.subscribe(new ke(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})},hla=function(a){return me(function(b,c){return a(b,c).pipe(nf(1),mf(b))})},of=function(a,b){b=b===void 0?se:b;var c=te(a,b);return hla(function(){return c})},ila=function(){return je(function(a,b){a.subscribe(new ke(b,function(c){return Cha(c,b)}))})},pf=function(a){var b=b===void 0?Td:b;var c;a=(c=a)!=null?c:jla;return je(function(d,e){var f,g=!0;d.subscribe(new ke(e,function(k){var l=b(k);if(g||
!a(f,l))g=!1,f=l,e.next(k)}))})},jla=function(a,b){return a===b},lla=function(a){a=a===void 0?kla:a;return je(function(b,c){var d=!1;b.subscribe(new ke(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})},kla=function(){return new Dha},mla=function(a){return je(function(b,c){var d=0,e=null,f=!1;b.subscribe(new ke(c,function(g){e||(e=new ke(c,void 0,void 0,function(){e=null;f&&c.complete()}),Wd(a(g,d++)).subscribe(e))},void 0,function(){f=!0;!e&&c.complete()}))})},
nla=function(a){var b=b===void 0?Infinity:b;b=(b||0)<1?Infinity:b;return je(function(c,d){return Rha(c,d,a,b,void 0,!0)})},qf=function(a){return je(function(b,c){b.subscribe(c);c.add(a)})},rf=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?we(function(e,f){return a(e,f,d)}):Td,nf(1),c?fla(b):lla(function(){return new Dha}))}},pla=function(a){return je(function(b,c){function d(l,r){var w=new Vd(function(x){k.activeGroups++;var C=r.subscribe(x);return function(){C.unsubscribe();
--k.activeGroups===0&&k.teardownAttempted&&k.unsubscribe()}});w.key=l;return w}var e=new Map,f=function(l){e.forEach(l);l(c)},g=function(l){return f(function(r){return r.error(l)})},k=new ola(c,function(l){try{var r=a(l),w=e.get(r);if(!w){e.set(r,w=new sf);var x=d(r,w);c.next(x)}w.next(l)}catch(C){g(C)}},g,function(){return f(function(l){return l.complete()})},function(){return e.clear()});b.subscribe(k)})},qla=function(){return je(function(a,b){var c=[];a.subscribe(new ke(b,function(d){c.push(d);
1<c.length&&c.shift()},void 0,function(){for(var d=m(c),e=d.next();!e.done;e=d.next())b.next(e.value);b.complete()},function(){c=null}))})},sla=function(){return je(function(a,b){a.subscribe(new ke(b,function(c){b.next(new tf("N",c))},function(c){b.next(tf.createError(c));b.complete()},function(){b.next(rla);b.complete()}))})},tla=function(a){var b=Qd(a)?a:function(){return a};return Qd()?je(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new uf(c,b);Qd(c==
null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}},vf=function(){return je(function(a,b){var c,d=!1;a.subscribe(new ke(b,function(e){var f=c;c=e;d&&b.next([f,e]);d=!0}))})},ula=function(){var a=bd.apply(0,arguments),b=a.length;if(b===0)throw Error("Ia");return A(function(c){var d=c;for(c=0;c<b;c++){var e=void 0;d=(e=d)==null?void 0:e[a[c]];if(typeof d==="undefined")return}return d})},vla=function(){var a=new wf(1,void 0,void 0);return function(b){return tla(function(){return a})(b)}},
wla=function(){var a=bd.apply(0,arguments);return a.length?je(function(b,c){aia([b].concat(q(a)))(c)}):Td},xla=function(a){return je(function(b,c){var d,e=!1,f,g=function(){d=b.subscribe(new ke(c,void 0,function(k){f||(f=new sf,a(f).subscribe(new ke(c,function(){return d?g():e=!0})));f&&f.next(k)}));e&&(d.unsubscribe(),d=null,e=!1,g())};g()})},yla=function(a,b){return je($ka(a,b,arguments.length>=2))},zla=function(){var a=a||{};var b=a.connector===void 0?function(){return new sf}:a.connector,c=a.resetOnComplete===
void 0?!0:a.resetOnComplete,d=a.resetOnError===void 0?!0:a.resetOnError,e=a.resetOnRefCountZero===void 0?!0:a.resetOnRefCountZero;return function(f){var g=null,k=null,l=0,r=!1,w=!1,x=function(){g=k=null;r=w=!1};return je(function(C,H){l++;var J;k=(J=k)!=null?J:b();H.add(function(){l--;if(e&&!l&&!w&&!r){var O=g;x();O==null||O.unsubscribe()}});k.subscribe(H);!g&&l>0&&(g=new he({next:function(O){return k.next(O)},error:function(O){w=!0;var R=k;d&&x();R.error(O)},complete:function(){r=!0;var O=k;c&&x();
O.complete()}}),Xd(C).subscribe(g))})(f)}},xf=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 je(Ala(b))(c)}},Ala=function(a){var b=a.bufferSize===void 0?Infinity:a.bufferSize;var c=a.windowTime===void 0?Infinity:a.windowTime;var d=a.refCount;var e=a.scheduler;var f,g=0,k;return function(l,r){g++;if(f)var w=f.subscribe(r);else f=new wf(b,c,e),w=f.subscribe(r),k=l.subscribe({next:function(x){f.next(x)},error:function(x){var C=
f;f=k=void 0;C.error(x)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);r.add(function(){g--;w.unsubscribe();d&&g===0&&k&&(k.unsubscribe(),f=k=void 0)})}},yf=function(a){return we(function(b,c){return a<=c})},zf=function(){var a=bd.apply(0,arguments),b=de(a);return je(function(c,d){(b?oe(a,c,b):oe(a,c)).subscribe(d)})},Af=function(a){return je(function(b,c){var d=null,e=0,f=!1;b.subscribe(new ke(c,function(g){var k;(k=d)==null||k.unsubscribe();k=e++;Wd(a(g,k)).subscribe(d=new ke(c,
function(l){return c.next(l)},void 0,function(){d=null;f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})},Bla=function(a){return Af(function(){return a})},Bf=function(a){return je(function(b,c){Wd(a).subscribe(new ke(c,function(){return c.complete()},void 0,Sd));!c.closed&&b.subscribe(c)})},Cla=function(a){var b=b===void 0?!1:b;return je(function(c,d){var e=0;c.subscribe(new ke(d,function(f){var g=a(f,e++);(g||b)&&d.next(f);!g&&d.complete()}))})},Cf=function(a,b){var c=Qd(a)||
b?{next:a,error:b,complete:void 0}:a;return c?je(function(d,e){d.subscribe(new ke(e,function(f){var g;(g=c.next)==null||g.call(c,f);e.next(f)},function(f){var g;(g=c.error)==null||g.call(c,f);e.error(f)},function(){var f;(f=c.complete)==null||f.call(c);e.complete()}))}):Td},Ela=function(a,b){b=b===void 0?Dla:b;var c=b.leading;var d=b.trailing;return je(function(e,f){var g=!1,k=null,l=null,r=!1,w=function(){var J;(J=l)==null||J.unsubscribe();l=null;d&&(H(),r&&f.complete())},x=function(){l=null;r&&
f.complete()},C=function(J){return l=Wd(a(J)).subscribe(new ke(f,w,void 0,x))},H=function(){g&&(f.next(k),!r&&C(k));g=!1;k=null};e.subscribe(new ke(f,function(J){g=!0;k=J;(!l||l.closed)&&(c?H():C(J))},void 0,function(){r=!0;d&&g&&l&&!l.closed||f.complete()}))})},Df=function(a){var b=se,c={leading:!0,trailing:!0};b=b===void 0?se:b;c=c===void 0?Dla:c;var d=te(a,b);return Ela(function(){return d},c)},Ef=function(){var a=bd.apply(0,arguments),b=Bha(a);return je(function(c,d){for(var e=a.length,f=Array(e),
g=a.map(function(){return!1}),k=!1,l={i$jscomp$265:0};l.i$jscomp$265<e;l={i$jscomp$265:l.i$jscomp$265},l.i$jscomp$265++)Wd(a[l.i$jscomp$265]).subscribe(new ke(d,function(r){return function(w){f[r.i$jscomp$265]=w;k||g[r.i$jscomp$265]||(g[r.i$jscomp$265]=!0,(k=g.every(Td))&&(g=null))}}(l),void 0,Sd));c.subscribe(new ke(d,function(r){k&&(r=[r].concat(q(f)),d.next(b?b.apply(null,q(r)):r))}))})},Fla=function(){Mea=function(){throw new Vc(600,"");}},Gla=function(a,b){return Array.isArray(b)?b.reduce(Gla,
a):Object.assign({},a,b)},Hla=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)},Ila=function(a,b,c,d){var e=Jc(null);try{var f=b.tView,g,k,l,r=Sia(a,f,c,a[2]&4096?4096:16,null,b,null,null,(g=d==null?void 0:d.injector)!=null?g:null,(k=d==null?void 0:d.embeddedViewInjector)!=null?k:null,(l=d==null?void 0:d.dehydratedView)!=null?l:null);r[16]=a[b.index];var w=a[18];w!==null&&(r[18]=w.createEmbeddedView(f));Uja(f,r,c);return r}finally{Jc(e)}},Ff=function(a,b){return!b||b.firstChild===null||(a.flags&128)===
128},Gf=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 Vc(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 g=e.contentQueries;f&&Lla(a,f);g&&Mla(a,g);f=void 0;g=a;var k=e;for(f in k.inputs)if(k.inputs.hasOwnProperty(f)&&!g.inputs.hasOwnProperty(f)){var l=
k.inputs[f];l!==void 0&&(g.inputs[f]=l,g.declaredInputs[f]=k.declaredInputs[f])}f=void 0;g=a.outputs;k=e.outputs;for(f in k)k.hasOwnProperty(f)&&!g.hasOwnProperty(f)&&(g[f]=k[f]);e.template&&e.data.animation&&(f=a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=e.features)for(f=0;f<e.length;f++)(g=e[f])&&g.ngInherit&&g(a),g===Gf&&(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=Ed(e.hostAttrs,b=Ed(b,e.hostAttrs))},
Jla=function(a){return a===ld?{}:a===dd?[]: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 g=a[f];if(g.hostDirectives!==null){var k=b.length;d!=null||(d=new Map);e!=null||(e=new Map);Nla(g,b,d);e.set(g,[k,b.length-
1])}f===0&&g.template&&(c=!0,b.push(g))}for(c=c?1:0;c<a.length;c++)b.push(a[c]);return[b,d,e]},Nla=function(a,b,c){if(a.hostDirectives!==null){a=m(a.hostDirectives);for(var d=a.next();!d.done;d=a.next())if(d=d.value,typeof d==="function"){d=d();d=m(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[Aka]||null,e=d.declaredInputs,f=a.inputs,g;for(g in f)f.hasOwnProperty(g)&&(e[f[g]]=e[g]);Nla(d,b,c);c.set(d,a);b.push(d)},Qla=function(a){return typeof a===
"function"?{directive:Zc(a),inputs:ld,outputs:ld}:{directive:Zc(a.directive),inputs:Rla(a.inputs),outputs:Rla(a.outputs)}},Rla=function(a){if(a===void 0||a.length===0)return ld;for(var b={},c=0;c<a.length;c+=2)b[a[c]]=a[c+1];return b},Sla=function(a,b,c){var d=b.insertBeforeIndex;d=Array.isArray(d)?d[0]:d;return d===null?Iia(a,b,c):md(c[d])},Tla=function(a,b,c,d,e){var f=b.insertBeforeIndex;if(Array.isArray(f)){var g=null;b.type&3||(g=d,d=e);if(d!==null&&b.componentOffset===-1)for(b=1;b<f.length;b++)a.insertBefore(d,
c[f[b]],g,!1)}},Ula=function(a,b){a.push(b);if(a.length>1)for(var c=a.length-2;c>=0;c--){var d=a[c];if(d.type&64){var e;if(e=!(b.type&64)||d.index>b.index)e=d.insertBeforeIndex,e=(Array.isArray(e)?e[0]:e)===null;if(e){e=b.index;var f=d.insertBeforeIndex;Array.isArray(f)?f[0]=e:(f=Tla,Jia=Sla,Kia=f,d.insertBeforeIndex=e)}}}},Vla=function(a,b){a=a.data[b];return a===null||typeof a==="string"?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value},Wla=function(a,b){a=b[a.currentCaseLViewIndex];return a===
null?a:a<0?~a:a},Xla=function(a,b,c){a.index=0;c=Wla(b,c);c!==null?a.removes=b.remove[c]:a.removes=dd},Yla=function(a){if(a.index<a.removes.length){var b=a.removes[a.index++];if(b>0)return a.lView[b];a.stack.push(a.index,a.removes);Xla(a,a.lView[1].data[~b],a.lView);return Yla(a)}if(a.stack.length===0)return a.lView=void 0,null;a.removes=a.stack.pop();a.index=a.stack.pop();return Yla(a)},Zla=function(){var a={stack:[],index:-1};return function(b,c){for(a.lView=c;a.stack.length;)a.stack.pop();Xla(a,
b.value,c);return Yla.bind(null,a)}},ama=function(){return $la(vd(),t())},bma=function(a){return a[8]||(a[8]=[])},$la=function(a,b){var c=b[a.index];if(kd(c))var d=c;else d=[c,!0,0,b,null,a,null,null,null,null],b[a.index]=d,Via(b,d);cma(d,b,a,c);return new Hf(d,a,b)},dma=function(a,b,c,d){if(!a[7]){if(c.type&8)d=md(d);else{d=b[11];var e=d.createComment("");c=nd(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);d=e}a[7]=d}},fma=function(a,b,c,d,e,f,g,k){c.firstCreatePass&&(a.mergedAttrs=
Ed(a.mergedAttrs,a.attrs),e=a.tView=Qia(2,a,e,f,g,c.directiveRegistry,c.pipeRegistry,null,c.schemas,c.consts,null),c.queries!==null&&(c.queries.template(c,a),e.queries=c.queries.embeddedTView(a)));k&&(a.flags|=k);wd(a,!1);k=ema(c,b,a,d);Re&&Lia(c,b,k,a);Id(k,b);a=[k,!0,0,b,null,a,null,k,null,null];b[d+27]=a;Via(b,a)},gma=function(a,b,c,d,e,f,g,k,l,r,w){var x=c+27;if(b.firstCreatePass){if(g=Ue(b,x,4,g||null,k||null),r!=null)for(k=pd(b.consts,r),g.localNames=[],x=0;x<k.length;x+=2)g.localNames.push(k[x],
-1)}else g=b.data[x];fma(g,a,b,c,d,e,f,l);r!=null&&Aja(a,g,w)},E=function(a,b,c,d,e,f,g,k){var l=t(),r=ud();f=pd(r.consts,f);var w=a+27;r.firstCreatePass?(e=Ue(r,w,4,e||null,f||null),$ja(r,l,e,pd(r.consts,g),Gja),dga(r,e)):e=r.data[w];fma(e,l,r,a,b,c,d);(e.flags&1)===1&&zja(r,l,e);g!=null&&Aja(l,e,k);return E},If=function(a,b,c,d,e,f,g,k){var l=t(),r=ud();f=pd(r.consts,f);gma(l,r,a,b,c,d,e,f,void 0,g,k);return If},hma=function(a,b){Re=!0;return b[11].createComment("")},Jf=function(a,b){var c=t(),
d=yd();if(Nd(c,d,b)){var e=ud();d=zd();Qe(d,e,c,a,b)?d.componentOffset>-1&&Dja(c,d.index):(e=nd(d,c),Hja(c[11],e,null,d.value,a,b,null))}return Jf},Kf=function(a,b,c,d){var e=t(),f=yd();if(Nd(e,f,b)){f=zd();var g=nd(f,e);Hja(e[11],g,d,f.value,a,b,c)}return Kf},mma=function(){var a=t(),b=ud(),c=vd();if(b=b.firstCreatePass?ima(b,c,a):c.flags&1024?jma(a,c.inputs.field):void 0)c.flags&2048?kma(a,c,b,"value"):c.flags&4096?kma(a,c,b,"checked"):c.flags&8192?b.\u0275interopControlCreate():lma(a,c,b),b.\u0275register()},
Cma=function(a){var b=t(),c=zd(),d=yd();Nd(b,d,a)&&Fja(c,b,"field",a,b[11]);var e=c.flags&1024?jma(b,c.inputs.field):void 0;if(e)if(c.flags&2048)nma(c,b,e,"value");else if(c.flags&4096)nma(c,b,e,"checked");else if(c.flags&8192)e.\u0275interopControlUpdate();else{a=nd(c,b);d=b[11];e=e.state();b=oma(b);var f=e.value();pma(b,qma,f)&&rma(a,f);f=e.name();pma(b,sma,f)&&d.setAttribute(a,"name",f);tma(d,a,b,e,uma);tma(d,a,b,e,vma);tma(d,a,b,e,wma);c.flags&16384&&(xma(d,a,b,e,yma),xma(d,a,b,e,zma));c.flags&
32768&&(xma(d,a,b,e,Ama),xma(d,a,b,e,Bma))}yd()},ima=function(a,b,c){var d,e=(d=b.inputs)==null?void 0:d.field;if(e){if(b.componentOffset>-1){var f=b.directiveStart+b.componentOffset;if(e.includes(f))return}if(c=jma(c,e)){b.flags|=1024;if(b.componentOffset>-1){a=a.data[f];if(Dma(a,"value"))return b.flags|=2048,c;if(Dma(a,"checked"))return b.flags|=4096,c}if(c.\u0275hasInteropControl)return b.flags|=8192,c;b.type!==2?a=!1:(a=b.value,a=a==="input"||a==="textarea"||a==="select");if(a){a:{if(b.attrs&&
b.value==="input")for(a=0;a<b.attrs.length;a+=2){f=b.attrs[a];if(iga(f))break;if(f==="type"){a=b.attrs[a+1];a=a==="date"||a==="datetime-local"||a==="month"||a==="number"||a==="range"||a==="time"||a==="week";break a}}a=!1}a&&(b.flags|=16384);b.value!=="select"&&(b.flags|=32768);return c}throw new Vc(318,"'<"+b.value+">' is an invalid [field] directive host. The host must be a native form control (such as <input>', '<select>', or '<textarea>') or a custom form control component with a 'value' or 'checked' model.");
}}},jma=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=a[c.value],Ema in c)return c},Dma=function(a,b){var c=a.inputs[b];return c&&(c[1]&1)!==0&&b+"Change"in a.outputs},kma=function(a,b,c,d){var e=b.directiveStart+b.componentOffset;d+="Change";Pja(b,a,e,d,d,Se(b,a,function(f){var g=c.state();g.value.set(f);Fma(g)}));"touchedChange"in ud().data[e].outputs&&Pja(b,a,e,"touchedChange","touchedChange",Se(b,a,function(){Gma(c.state())}))},lma=function(a,b,c){var d=ud(),e=a[11],f=function(){var g=
nd(b,a),k=c.state();k.value.set(Hma(g,k.value));Fma(k)};Oja(b,d,a,void 0,e,"input",f,Se(b,a,f));f=function(){Gma(c.state())};Oja(b,d,a,void 0,e,"blur",f,Se(b,a,f))},nma=function(a,b,c,d){var e=a.directiveStart+a.componentOffset;a=b[e];e=ud().data[e];c=c.state();b=oma(b);Ima(e,a,b,c,qma,d);d=m(Jma);for(var f=d.next();!f.done;f=d.next())f=f.value,Ima(e,a,b,c,f,Kma[f])},Ima=function(a,b,c,d,e,f){if(f in a.inputs){var g,k=(g=d[e])==null?void 0:g.call(d);pma(c,e,k)&&sia(a,b,f,k)}},tma=function(a,b,c,d,
e){d=d[e]();pma(c,e,d)&&(c=Kma[e],d?a.setAttribute(b,c,""):a.removeAttribute(b,c))},xma=function(a,b,c,d,e){var f,g=(f=d[e])==null?void 0:f.call(d);pma(c,e,g)&&(c=Kma[e],g!==void 0?a.setAttribute(b,c,g.toString()):a.removeAttribute(b,c))},Hma=function(a,b){switch(a.type){case "checkbox":return a.checked;case "number":case "range":case "datetime-local":if(typeof b()==="number")return a.valueAsNumber;break;case "date":case "month":case "time":case "week":b=b();if(b===null||b instanceof Date)return a.valueAsDate;
if(typeof b==="number")return a.valueAsNumber}return a.value},rma=function(a,b){switch(a.type){case "checkbox":a.checked=b;return;case "radio":a.checked=b===a.value;return;case "number":case "range":case "datetime-local":if(typeof b==="number"){a.valueAsNumber=b;return}break;case "date":case "month":case "time":case "week":if(b===null||b instanceof Date){a.valueAsDate=b;return}if(typeof b==="number"){a.valueAsNumber=b;return}}a.value=b},oma=function(a){var b=td.bindingIndex,c=a[b];c===Md&&(c=a[b]=
{});return c},pma=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},Lma=function(a,b,c,d,e){return a===c&&Object.is(b,d)?1:Object.is(e(a,b),e(c,d))?-1:0},Rma=function(a,b,c,d){var e=void 0,f=void 0,g=0,k=a.length-1;if(Array.isArray(b)){Jc(d);d=b.length-1;for(Jc(null);g<=k&&g<=d;){var l=a.at(g),r=b[g],w=Lma(g,l,g,r,c);if(w!==0)w<0&&a.updateValue(g,r),g++;else{var x=a.at(k);w=b[d];var C=Lma(k,x,d,w,c);C!==0?(C<0&&a.updateValue(k,w),k--,d--):(l=c(g,l),x=c(k,x),C=c(g,r),Object.is(C,x)?(x=
c(d,w),Object.is(x,l)?(Mma(a,g,k),a.updateValue(k,w),d--,k--):a.move(k,g),a.updateValue(g,r),g++):(e!=null||(e=new Nma),f!=null||(f=Oma(a,g,k,c)),Pma(a,e,g,C)?(a.updateValue(g,r),g++,k++):f.has(C)?(e.set(l,a.detach(g)),k--):(r=a.create(g,b[g]),a.attach(g,r),g++,k++)))}}for(;g<=d;)Qma(a,e,c,g,b[g]),g++}else if(b!=null){Jc(d);b=b[Symbol.iterator]();Jc(null);for(d=b.next();!d.done&&g<=k;)r=a.at(g),w=d.value,l=Lma(g,r,g,w,c),l!==0?(l<0&&a.updateValue(g,w),g++,d=b.next()):(e!=null||(e=new Nma),f!=null||
(f=Oma(a,g,k,c)),l=c(g,w),Pma(a,e,g,l)?(a.updateValue(g,w),g++,k++,d=b.next()):f.has(l)?(r=c(g,r),e.set(r,a.detach(g)),k--):(a.attach(g,a.create(g,w)),g++,k++,d=b.next()));for(;!d.done;)Qma(a,e,c,a.length,d.value),d=b.next()}for(;g<=k;)a.destroy(a.detach(k--));var H;(H=e)==null||H.forEach(function(J){a.destroy(J)})},Pma=function(a,b,c,d){return b!==void 0&&b.has(d)?(a.attach(c,b.get(d)),b.delete(d),!0):!1},Qma=function(a,b,c,d,e){Pma(a,b,d,c(d,e))?a.updateValue(d,e):(b=a.create(d,e),a.attach(d,b))},
Oma=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){ze("NgControlFlow");var g=t(),k=ud();f=pd(k.consts,f);gma(g,k,a,b,c,d,e,f,256);return Lf},Lf=function(a,b,c,d,e,f,g,k){ze("NgControlFlow");var l=t(),r=ud();f=pd(r.consts,f);gma(l,r,a,b,c,d,e,f,512,g,k);return Lf},G=function(a,b){ze("NgControlFlow");var c=t(),d=yd(),e=c[d]!==Md?c[d]:-1;e=e!==-1?c[27+e]:void 0;if(Nd(c,d,a)){d=Jc(null);try{if(e!==void 0&&rka(e),a!==-1){a=27+a;var f=c[a],g=c[1].data[a],
k=Ila(c,g,b,{dehydratedView:null});pka(f,k,0,Ff(g,null))}}finally{Jc(d)}}else e!==void 0&&(c=nka(e,0),c!==void 0&&(c[8]=b))},Mf=function(a){return a},Nf=function(a,b){return b},Of=function(a,b,c,d,e,f,g,k){ze("NgControlFlow");var l=t(),r=ud(),w=t();g=k?g.bind(w[15][8]):g;w[27+a]=new Sma(g);gma(l,r,a+1,b,c,d,e,pd(r.consts,f),256)},Pf=function(a){var b=Jc(null),c=td.selectedIndex;try{var d=t(),e=d[1],f=d[c],g=c+1,k=d[g];f.liveCollection===void 0?f.liveCollection=new Tma(k,d,e.data[g]):f.liveCollection.reset();
var l=f.liveCollection;Rma(l,a,f.trackByFn,b);if(l.needsIndexUpdate)for(a=0;a<l.length;a++)nka(l.lContainer,a)[8].$index=a;if(f.hasEmptyBlock){var r=yd(),w=l.length===0;if(Nd(d,r,w)){c+=2;var x=d[c];if(w){var C=e.data[c],H=Ila(d,C,void 0,{dehydratedView:null});pka(x,H,0,Ff(C,null))}else{if(e.firstUpdatePass){var J,O=(J=x[6])!=null?J:[],R=x[3][11];d=[];for(var V=m(O),ca=V.next();!ca.done;ca=V.next()){var oa=ca.value;if(oa.data.di!==void 0)d.push(oa);else{O=0;var ua=oa.firstChild;if(ua)for(var ka=oa.data.r;O<
ka;){var Ga=ua.nextSibling;R.removeChild(null,ua,!1,void 0);ua=Ga;O++}}}x[6]=d}rka(x)}}}}finally{Jc(b)}},Qf=function(a,b,c){var d=t(),e=yd();Nd(d,e,b)&&(e=zd(),Eja(e,d,a,b,d[11],c));return Qf},Uma=function(a,b,c){var d=t(),e=yd();if(Nd(d,e,b)){e=ud();var f=zd();Eja(f,d,a,b,Kja(Xfa(e.data),f,d),c)}return Uma},I=function(a,b,c){var d=t(),e=yd();Nd(d,e,b)&&(e=zd(),Fja(e,d,a,b,d[11],c));return I},K=function(a,b,c,d){var e=t(),f=e[1],g=a+27;c=f.firstCreatePass?bka(g,e,2,b,Gja,c,d):f.data[g];Ija(c,e,a,
b,Vma);(c.flags&1)===1&&(a=e[1],zja(a,e,c),Sja(a,c,e));d!=null&&Aja(e,c);return K},L=function(){var a=ud(),b=Jja();a.firstCreatePass&&cka(a,b);We===b&&(We=null);td.elementDepthCount--;b.classesWithoutHost!=null&&(b.flags&8)!==0&&Qe(b,a,t(),"class",b.classesWithoutHost);b.stylesWithoutHost!=null&&(b.flags&16)!==0&&Qe(b,a,t(),"style",b.stylesWithoutHost);return L},M=function(a,b,c,d){K(a,b,c,d);L();return M},Rf=function(a,b,c,d){var e=t(),f=e[1],g=a+27;if(f.firstCreatePass){var k=f.consts;c=pd(k,c);
g=Ue(f,g,2,b,c);g.mergedAttrs=Ed(g.mergedAttrs,g.attrs);if(d!=null)for(k=pd(k,d),g.localNames=[],c=0;c<k.length;c+=2)g.localNames.push(k[c],-1);g.attrs!==null&&Vja(g,g.attrs,!1);g.mergedAttrs!==null&&Vja(g,g.mergedAttrs,!0);f.queries!==null&&f.queries.elementStart(f,g);f=g}else f=f.data[g];Ija(f,e,a,b,Vma);d!=null&&Aja(e,f);return Rf},Sf=function(){var a=Jja();We===a&&(We=null);td.elementDepthCount--;return Sf},Tf=function(a,b,c,d){Rf(a,b,c,d);Sf();return Tf},Uf=function(a,b,c){var d=t(),e=d[1],f=
a+27;b=e.firstCreatePass?bka(f,d,8,"ng-container",Gja,b,c):e.data[f];Ija(b,d,a,"ng-container",Wma);(b.flags&1)===1&&(a=d[1],zja(a,d,b),Sja(a,b,d));c!=null&&Aja(d,b);return Uf},Vf=function(){var a=ud(),b=Jja();a.firstCreatePass&&cka(a,b);return Vf},Wf=function(a,b,c){Uf(a,b,c);Vf();return Wf},Xf=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=Xma(b))return a;b=b.split("-")[0];if(a=Xma(b))return a;if(b==="en")return Yma;throw new Vc(701,!1);},Xma=function(a){a in Zma||(Zma[a]=Me.ng&&Me.ng.common&&
Me.ng.common.locales&&Me.ng.common.locales[a]);return Zma[a]},cna=function(a){var b=ud(),c=t();$ma>0&&(a=b.data[a],ana(b,c,Array.isArray(a)?a:a.update,td.bindingIndex-$ma-1,bna));$ma=bna=0},ena=function(a,b,c,d){for(var e=c[11],f=null,g,k=0;k<b.length;k++){var l=b[k];if(typeof l=="string"){var r=b[++k];c[r]===null&&(c[r]=dna(c,l,Node.TEXT_NODE))}else if(typeof l=="number")switch(l&1){case 0:var w=l>>>17;f===null&&(f=w,g=e.parentNode(d));w===f?(r=d,w=g):(r=null,w=md(c[w]));w!==null&&(l=(l&131070)>>>
1,e.insertBefore(w,c[l],r,!1),l=Vla(a,l),l!==null&&typeof l==="object"&&(r=Wla(l,c),r!==null&&ena(a,l.create[r],c,c[l.anchorIdx])));break;case 1:l>>>=1,r=b[++k],w=b[++k],Hja(e,md(c[l]),null,null,r,w,null)}else switch(l){case fna:l=b[++k];r=b[++k];c[r]===null&&(l=c[r]=dna(c,l,Node.COMMENT_NODE),Id(l,c));break;case gna:l=b[++k],r=b[++k],c[r]===null&&(l=c[r]=dna(c,l,Node.ELEMENT_NODE),Id(l,c))}}},ana=function(a,b,c,d,e){for(var f=0;f<c.length;f++){var g=c[f],k=c[++f];if(g&e){g="";for(var l=f+1;l<=f+
k;l++){var r=c[l];if(typeof r=="string")g+=r;else if(typeof r=="number")if(r<0)g+=Uc(b[d-r]);else{var w=r>>>2;switch(r&3){case 1:r=c[++l];var x=c[++l],C=a.data[w];typeof C==="string"?Hja(b[11],b[w],null,C,r,g,x):Fja(C,b,r,g,b[11],x);break;case 0:r=b[w];r!==null&&b[11].setValue(r,g);break;case 2:r=a;w=Vla(a,w);x=b;C=w;var H=g;var J=C.cases.indexOf(H);if(J===-1)switch(C.type){case 1:J=(0,Xf(hna)[20])(parseInt(H,10));J=ina[J];H=J!==void 0?J:"other";J=C.cases.indexOf(H);J===-1&&H!=="other"&&(J=C.cases.indexOf("other"));
break;case 0:J=C.cases.indexOf("other")}C=J===-1?null:J;Wla(w,x)!==C&&(jna(r,w,x),x[w.currentCaseLViewIndex]=C===null?null:~C,C!==null&&(J=x[w.anchorIdx])&&ena(r,w.create[C],x,J));break;case 3:kna(a,Vla(a,w),d,b)}}}}else g=c[f+1],g>0&&(g&3)===3&&(g=Vla(a,g>>>2),b[g.currentCaseLViewIndex]<0&&kna(a,g,d,b));f+=k}},kna=function(a,b,c,d){var e=d[b.currentCaseLViewIndex];if(e!==null){var f=bna;e<0&&(e=d[b.currentCaseLViewIndex]=~e,f=-1);ana(a,d,b.update[e],c,f)}},jna=function(a,b,c){var d=Wla(b,c);if(d!==
null)for(b=b.remove[d],d=0;d<b.length;d++){var e=b[d];e>0?(e=md(c[e]),e!==null&&c[11].removeChild(null,e,void 0,void 0)):jna(a,Vla(a,~e),c)}},lna=function(a,b,c,d,e,f,g){var k=Uia(a,d,1,null),l=k<<2;d=Tfa();b===d&&(d=null);d===null&&(l|=1);g&&(l|=2,Oia===void 0&&(Oia=Zla()));e.push(l,f===null?"":f);a=Wja(a,k,g?32:1,f===null?"":f,null);Ula(c,a);c=a.index;wd(a,!1);if(d!==null&&b!==d)if(b=d.insertBeforeIndex,b===null)Jia=Sla,Kia=Tla,d.insertBeforeIndex=[null,c];else{d=Array.isArray(b);if(d!=1)throw Error("sa`Expecting array here` [Expected=> true == "+
(d+" <=Actual]"));b.push(c)}return a},nna=function(a,b,c,d,e){var f=a.length,g=f+1;a.push(null,null);var k=f+2;b=b.split(mna);for(var l=0,r=0;r<b.length;r++){var w=b[r];r&1?(w=parseInt(w,10),a.push(-1-w),l|=1<<Math.min(w,31)):w!==""&&a.push(w)}a.push(c<<2|(d?1:0));d&&a.push(d,e);a[f]=l;a[g]=a.length-k;return l},pna=function(a){for(var b,c="",d=0,e=!1,f;(b=ona.exec(a))!==null;)e?b[0]==="\ufffd/*"+f+"\ufffd"&&(d=b.index,e=!1):(c+=a.substring(d,b.index+b[0].length),f=b[1],e=!0);return c+=a.slice(d)},
rna=function(a,b,c,d,e,f,g){var k=0,l={type:f.type,currentCaseLViewIndex:Uia(b,c,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};d.push(1<<Math.min(f.mainBinding,31),2,-1-f.mainBinding,g<<2|2);var r=b.data[g];r===null?b.data[g]=l:r.value=l;r=f.values;for(var w=[],x=0;x<r.length;x++){for(var C=r[x],H=[],J=0;J<C.length;J++){var O=C[J];typeof O!=="string"&&(O=H.push(O)-1,C[J]="\x3c!--\ufffd"+O+"\ufffd--\x3e")}J=[];w.push(J);O=b;var R=l,V=c,ca=d,oa=e,ua=C.join("");C=[];var ka=[],Ga=[];R.cases.push(f.cases[x]);
R.create.push(C);R.remove.push(ka);R.update.push(Ga);ua=aja(Oga()).getInertBodyElement(ua);ua=kja(ua)||ua;k|=ua?qna(J,O,R,V,ca,C,ka,Ga,ua,oa,H,0):0}k&&d.push(k,1,g<<2|3);a.push({kind:3,index:g,cases:w,currentCaseLViewIndex:l.currentCaseLViewIndex})},una=function(a){var b=[],c=[],d=1,e=0;a=a.replace(sna,function(k,l,r){d=r==="select"?0:1;e=parseInt(l.slice(1),10);return""});a=tna(a);for(var f=0;f<a.length;){var g=a[f++].trim();d===1&&(g=g.replace(/\s*(?:=)?(\w+)\s*/,"$1"));g.length&&b.push(g);g=tna(a[f++]);
b.length>c.length&&c.push(g)}return{type:d,mainBinding:e,cases:b,values:c}},tna=function(a){if(!a)return[];var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var g=f.index;f[0]=="}"?(c.pop(),c.length==0&&(b=a.substring(b,g),sna.test(b)?d.push(una(b)):d.push(b),b=g+1)):(c.length==0&&(d.push(a.substring(b,g)),b=g+1),c.push("{"))}d.push(a.substring(b));return d},qna=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=0;for(l=l.firstChild;l;){var H=Uia(b,d,1,null);switch(l.nodeType){case Node.ELEMENT_NODE:var J=
l,O=J.tagName.toLowerCase();if(lja.hasOwnProperty(O)){var R=f,V=gna,ca=O,oa=r;V!==null&&R.push(V);R.push(ca,H,0|oa<<17|H<<1);b.data[H]=O;J=J.attributes;for(O=0;O<J.length;O++)R=J.item(O),V=R.name.toLowerCase(),R.value.match(mna)?mja.hasOwnProperty(V)&&(nja[V]?nna(k,R.value,H,R.name,cja):nna(k,R.value,H,R.name,null)):f.push(H<<1|1,R.name,R.value);J={kind:1,index:H,children:[]};a.push(J);C|=qna(J.children,b,c,d,e,f,g,k,l,H,w,x+1);x===0&&g.push(H)}break;case Node.TEXT_NODE:J=l.textContent||"";O=J.match(mna);
f.push(O?"":J,H,0|r<<17|H<<1);x===0&&g.push(H);O&&(C|=nna(k,J,H,null,null));a.push({kind:0,index:H});break;case Node.COMMENT_NODE:if(J=vna.exec(l.textContent||""))J=w[parseInt(J[1],10)],O=f,R=fna,V=r,R!==null&&O.push(R),O.push("",H,0|V<<17|H<<1),rna(a,b,d,e,r,J,H),J=g,x===0&&(J.push(~H),J.push(H))}l=l.nextSibling}return C},yna=function(a,b){var c=c===void 0?-1:c;var d=ud(),e=t();a=27+a;var f=pd(d.consts,b);b=Tfa();if(d.firstCreatePass){var g=b===null?0:b.index,k=Tfa(),l=[],r=[],w=[[]],x=[[]];if(c===
-1)c=pna(f);else{var C=f.indexOf(":"+c+"\ufffd")+2+c.toString().length;c=f.search(new RegExp("\ufffd\\/\\*\\d+:"+c+"\ufffd"));c=pna(f.substring(C,c))}f=c.replace(wna," ").split(xna);for(C=0;C<f.length;C++){var H=f[C];if((C&1)===0){var J=tna(H);for(H=0;H<J.length;H++){var O=J[H];if((H&1)===0){if(O!==""){var R=x[0],V=d,ca=k,oa=w[0],ua=O.match(mna);V=lna(V,ca,oa,e,l,ua?null:O,!1).index;ua&&nna(r,O,V,null,null);R.push({kind:0,index:V})}}else{if(typeof O!=="object")throw Error("La`"+c);R=lna(d,k,w[0],
e,l,"",!0).index;rna(x[0],d,e,r,g,O,R)}}}else O=H.charCodeAt(0)===47,J=H.charCodeAt(O?1:0),H=27+Number.parseInt(H.substring(O?2:1)),O?(w.shift(),x.shift(),wd(Tfa(),!1)):(O=w[0],R=Wja(d,H,64,null,null),Ula(O,R),O=R,w.unshift([]),wd(O,!0),J={kind:2,index:H,children:[],type:J===35?0:1},x[0].push(J),x.unshift(J.children))}d.data[a]={create:l,update:r,ast:x[0],parentTNodeIndex:g}}d.type===2?e[15][2]|=32:e[2]|=32;a=d.data[a];d=Hia(d,b===e[5]?null:b,e);a=a.create;b=b&&b.type&8?e[b.index]:null;g=e[11];for(k=
0;k<a.length;k++)x=a[k++],l=a[k],r=(x&2)===2,w=(x&1)===1,x>>>=2,c=e[x],f=!1,c===null&&(c=e[x]=dna(e,l,r?Node.COMMENT_NODE:Node.TEXT_NODE),f=Re),w&&d!==null&&f&&g.insertBefore(d,c,b,!1);td.inI18n=!0},Yf=function(a,b){yna(a,b);td.inI18n=!1},Zf=function(a){Nd(t(),yd(),a)&&(bna|=1<<Math.min($ma,31));$ma++;return Zf},$f=function(a){var b=ud(),c=t();a+=27;var d=Ue(b,a,128,null,null);wd(d,!1);Mfa(b,c,a,zna);return $f},ag=function(a){ze("NgLet");Mfa(ud(),t(),td.selectedIndex,a);return a},bg=function(a){a=
td.contextLView[27+a];if(a===zna)throw new Vc(314,!1);return a},N=function(a,b,c){var d=t();Ana(ud(),d,d[11],vd(),a,b,c);return N},Bna=function(a,b){var c=vd(),d=t(),e=ud();Ana(e,d,Kja(Xfa(e.data),c,d),c,a,b);return Bna},Cna=function(a,b,c){var d=t(),e=ud(),f=vd();(f.type&3||c)&&Oja(f,e,d,c,d[11],a,b,Se(f,d,b));return Cna},Ana=function(a,b,c,d,e,f,g){var k=!0,l=null;if(d.type&3||g)l!=null||(l=Se(d,b,f)),Oja(d,a,b,g,c,e,f,l)&&(k=!1);if(k){var r;a=(r=d.outputs)==null?void 0:r[e];var w;if((r=(w=d.hostDirectiveOutputs)==
null?void 0:w[e])&&r.length)for(w=0;w<r.length;w+=2)c=r[w],g=r[w+1],l!=null||(l=Se(d,b,f)),Pja(d,b,c,g,e,l);if(a&&a.length)for(w=m(a),r=w.next();!r.done;r=w.next())r=r.value,l!=null||(l=Se(d,b,f)),Pja(d,b,r,e,e,l)}},P=function(a){a=a===void 0?1:a;for(var b=td.contextLView;a>0;)b=b[14],a--;return(td.contextLView=b)[8]},cg=function(a){var b=t()[15][5];if(!b.projection){for(var c=a?a.length:1,d=[],e=0;e<c;e++)d.push(null);c=b.projection=d;d=c.slice();for(b=b.child;b!==null;){if(b.type!==128){if(a)a:{e=
b;var f=a,g=null;b:{var k=e.attrs;if(k!=null){var l=k.indexOf(5);if((l&1)===0){k=k[l+1];break b}}k=null}for(l=0;l<f.length;l++){var r=f[l];if(r==="*")g=l;else{if(k===null)r=Lga(e,r,!0);else b:{var w=0;c:for(;w<r.length;w++){var x=r[w];if(k.length===x.length){for(var C=0;C<k.length;C++)if(k[C]!==x[C])continue c;r=!0;break b}}r=!1}if(r){e=l;break a}}}e=g}else e=0;e!==null&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b)}b=b.next}}},dg=function(a,b,c,d,e,f){b=b===void 0?0:b;var g=t(),k=ud(),l=d?a+1:null;
l!==null&&gma(g,k,l,d,e,f,null,c);a=Ue(k,27+a,16,null,c||null);a.projection===null&&(a.projection=b);td.isParent=!1;b=!g[6]||We!==null;g[15][5].projection[a.projection]===null&&l!==null?(l=27+l,k=k.data[l],l=g[l],g=Ila(g,k,void 0,{dehydratedView:null}),pka(l,g,0,Ff(k,null))):b&&(a.flags&32)!==32&&(l=g[11],k=Hia(k,a.parent,g),b=Jia(a.parent||g[5],a,g),Pia(l,0,g,a,k,b))},Dna=function(){return this._results[Symbol.iterator]()},Fna=function(){return Ena(vd(),t())},Ena=function(a,b){return a.type&4?new eg(b,
a,Kd(a,b)):null},Gna=function(a,b,c,d){d=b[18].queries[d];if(d.matches===null){a=a.data;for(var e=c.matches,f=[],g=0;e!==null&&g<e.length;g+=2){var k=e[g];if(k<0)f.push(null);else{var l=f,r=l.push,w=b,x=a[k],C=e[g+1];k=c.metadata.read;C===-1?(k=x,w=k.type&11?Kd(k,w):k.type&4?Ena(k,w):null):C===-2?w=k===Jd?Kd(x,w):k===eg?Ena(x,w):k===fg?$la(x,w):void 0:w=Cga(w,w[1],C,x);r.call(l,w)}}d.matches=f}return d.matches},Hna=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(f!==null)for(a=Gna(a,b,
e,c),c=0;c<f.length;c+=2){var g=f[c];if(g>0)d.push(a[c/2]);else{e=f[c+1];g=b[-g];for(var k=10;k<g.length;k++){var l=g[k];l[16]===l[3]&&Hna(l[1],l,e,d)}if(g[9]!==null)for(g=g[9],k=0;k<g.length;k++)l=g[k],Hna(l[1],l,e,d)}}return d},Kna=function(a,b){var c=t();b=new gg((b&4)===4);var d=b.destroy,e=Rfa(c);e.push(b);a.firstCreatePass&&Sfa(a).push(d,e.length-1);var f;return((f=c[18])!=null?f:c[18]=new Ina).queries.push(new Jna(b))-1},hg=function(a,b,c){var d=ud();d.firstCreatePass&&(Lna(d,new Mna(a,b,c),
-1),(b&2)===2&&(d.staticViewQueries=!0));return Kna(d,b)},ig=function(a,b,c,d){var e=ud();if(e.firstCreatePass){var f=vd();Lna(e,new Mna(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 Kna(e,c)},Nna=function(a){return a.split(",").map(function(b){return b.trim()})},Lna=function(a,b,c){a.queries===null&&(a.queries=new Ona);a.queries.track(new jg(b,c))},Pna=function(a,b){var c=a[1],
d=c.queries.queries[b];return d.crossesNgTemplate?Hna(c,a,b,[]):Gna(c,a,d,b)},lg=function(a){var b=t(),c=ud(),d=td.currentQueryIndex;td.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=Pna(b,d),a.reset(b,Rga),kg(a)),!0):!1},mg=function(){return t()[18].queries[td.currentQueryIndex].queryList},ng=function(a,b){var c=m(Nea(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=Qna.bind(a);return a},Qna=function(){var a=this,b=this[Pc];if(b.readonlyFn===void 0){var c=function(){return a()};c[Pc]=b;b.readonlyFn=c}return b.readonlyFn},Rna=function(a,b){var c=Kea(function(){d._dirtyCounter();var e=d;var f=e._lView,g=e._queryIndex;if(f===void 0||g===void 0||f[2]&4)e=a?void 0:dd;else{var k=f[18].queries[g].queryList;f=Pna(f,g);k.reset(f,Rga);e=a?k.first:k._changesDetected||e._flatValue===void 0?e._flatValue=k.toArray():e._flatValue}if(b&&e===void 0)throw new Vc(-951,
!1);return e});var d=c[Pc];d._dirtyCounter=ng(0);d._flatValue=void 0;return c},Tna=function(a,b){var c=a[Pc];c._lView=t();c._queryIndex=b;c._queryList=c._lView[18].queries[b].queryList;Sna(c._queryList,function(){return c._dirtyCounter.update(function(d){return d+1})})},og=function(a,b,c){Tna(a,hg(b,5,c))},pg=function(a){td.currentQueryIndex+=a===void 0?1:a},qg=function(a){return td.contextLView[27+a]},Una=function(a,b,c,d){for(var e=a[c+1],f=b===null,g=d?e>>17&32767:(e&131068)>>2,k=!1;g!==0&&(k===
!1||f);){var l=a[g+1],r=a[g];if(r===null||b==null||(Array.isArray(r)?r[1]:r)===b||Array.isArray(r)&&typeof b==="string"&&lfa(r,b)>=0)k=!0,a[g+1]=d?l|1:l|2;g=d?l>>17&32767:(l&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},Vna=function(a,b){var c=rg;if(c===b)return-1;for(b=sg=b;b<c&&a.charCodeAt(b)>32;)b++;b=tg=b;return ug(a,b,c)},$na=function(a,b){var c=rg;b=sg=ug(a,b,c);if(c===b)return-1;for(var d;b<c&&((d=a.charCodeAt(b))===45||d===95||(d&-33)>=65&&(d&-33)<=90||d>=48&&d<=57);)b++;b=tg=b;b=Wna(a,b,c);d=b=Xna=
ug(a,b,c);for(var e=b=-1,f=-1,g=d,k=g;g<c;){var l=a.charCodeAt(g++);if(l===59)break;else l===34||l===39?k=g=Yna(a,l,g,c):d===g-4&&f===85&&e===82&&b===76&&l===40?k=g=Yna(a,41,g,c):l>32&&(k=g);f=e;e=b;b=l&-33}b=Zna=k;return Wna(a,b,c)},ug=function(a,b,c){for(;b<c&&a.charCodeAt(b)<=32;)b++;return b},Wna=function(a,b,c){b=ug(a,b,c);b<c&&b++;return b},Yna=function(a,b,c,d){for(var e=-1;c<d;){var f=a.charCodeAt(c++);if(f==b&&e!==92)return c;e=f==92&&e===92?0:f}throw Error();},vg=function(a,b,c){aoa(a,b,
c,!1);return vg},wg=function(a,b){aoa(a,b,null,!0);return wg},coa=function(a,b){var c;Zna=Xna=tg=sg=0;rg=b.length;for(c=$na(b,ug(b,0,rg));c>=0;c=$na(b,c))boa(a,b.substring(sg,tg),b.substring(Xna,Zna))},xg=function(a){doa(eoa,foa,a,!0)},foa=function(a,b){var c;Zna=Xna=tg=sg=0;rg=b.length;for(c=Vna(b,ug(b,0,rg));c>=0;c=Vna(b,c))mfa(a,b.substring(sg,tg),!0)},aoa=function(a,b,c,d){var e=t(),f=ud(),g=Wfa(2);f.firstUpdatePass&&goa(f,a,g,d);if(b!==Md&&Nd(e,g,b)){var k=f.data[td.selectedIndex],l=e[11];b!=
null&&b!==""&&(typeof c==="string"?b+=c:typeof b==="object"&&(b=Tc(Ke(b))));hoa(f,k,e,l,a,e[g+1]=b,d,g)}},doa=function(a,b,c,d){var e=ud(),f=Wfa(2);e.firstUpdatePass&&goa(e,null,f,d);var g=t();if(c!==Md&&Nd(g,f,c)){var k=e.data[td.selectedIndex];if((k.flags&(d?8:16))===0||f>=e.expandoStartIndex){var l=g[11],r=g[f+1];if(c==null||c==="")a=dd;else{var w=[];c=Ke(c);if(Array.isArray(c))for(b=0;b<c.length;b++)a(w,c[b],!0);else if(typeof c==="object")for(var x in c)c.hasOwnProperty(x)&&a(w,x,c[x]);else typeof c===
"string"&&b(w,c);a=w}a=g[f+1]=a;r===Md&&(r=dd);b=w=0;c=0<r.length?r[0]:null;for(x=0<a.length?a[0]:null;c!==null||x!==null;){var C=w<r.length?r[w+1]:void 0,H=b<a.length?a[b+1]:void 0,J=null,O=void 0;c===x?(w+=2,b+=2,C!==H&&(J=x,O=H)):x===null||c!==null&&c<x?(w+=2,J=c):(b+=2,J=x,O=H);J!==null&&hoa(e,k,g,l,J,O,d,f);c=w<r.length?r[w]:null;x=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,f!==null&&(c=Qea(f,c?c:"")),Qe(k,e,g,d?"class":"style",c)}},goa=function(a,b,c,d){var e=a.data;
if(e[c+1]===null){var f=e[td.selectedIndex];a=c>=a.expandoStartIndex;(f.flags&(d?8:16))!==0&&b===null&&!a&&(b=!1);var g=Xfa(e),k=d?f.residualClasses:f.residualStyles;if(g===null)(d?f.classBindings:f.styleBindings)===0&&(b=ioa(null,e,f,b,d),b=joa(b,f.attrs,d),k=null);else{var l=f.directiveStylingLast;if(l===-1||e[l]!==g)if(b=ioa(g,e,f,b,d),k===null)g=d?f.classBindings:f.styleBindings,g=(g&131068)>>2!==0?e[g>>17&32767]:void 0,g!==void 0&&Array.isArray(g)&&(g=ioa(null,e,f,g[1],d),g=joa(g,f.attrs,d),
e[(d?f.classBindings:f.styleBindings)>>17&32767]=g);else{k=void 0;g=f.directiveEnd;for(l=1+f.directiveStylingLast;l<g;l++)k=joa(k,e[l].hostAttrs,d);k=joa(k,f.attrs,d)}}k!==void 0&&(d?f.residualClasses=k:f.residualStyles=k);g=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=g;l=!1;if(Array.isArray(g)){var r=g[1];if(r===null||lfa(g,r)>0)l=!0}else r=g;a?k!==0?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,a!==0&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,
b!==0&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,b===0?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);l&&(e[c+1]|=2);Una(e,r,c,!0);Una(e,r,c,!1);a=r;g=d?f.residualClasses:f.residualStyles;g!=null&&typeof a=="string"&&lfa(g,a)>=0&&(e[c+1]|=1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},ioa=function(a,b,c,d,e){var f=c.directiveEnd,g=c.directiveStylingLast;for(g===-1?g=c.directiveStart:g++;g<f;){var k=b[g];d=joa(d,k.hostAttrs,e);if(k===a)break;g++}a!==null&&(c.directiveStylingLast=g);return d},
joa=function(a,b,c){var d=c?1:2,e=-1;if(b!==null)for(var f=0;f<b.length;f++){var g=b[f];typeof g==="number"?e=g:e===d&&(Array.isArray(a)||(a=a===void 0?[]:["",a]),mfa(a,g,c?!0:b[++f]))}return a===void 0?null:a},boa=function(a,b,c){mfa(a,b,Ke(c))},eoa=function(a,b,c){b=String(b);b===""||b.includes(" ")||mfa(a,b,c)},hoa=function(a,b,c,d,e,f,g,k){if(b.type&3){a=a.data;var l=a[k+1];((l&1)===1?koa(a,b,c,e,(l&131068)>>2,g):void 0)===void 0&&(f!==void 0||(l&2)==2&&(f=koa(a,null,c,e,k,g)),b=md(c[td.selectedIndex]),
g?f?d.addClass(b,e):d.removeClass(b,e):(g=e.indexOf("-")===-1?void 0:2,f==null?d.removeStyle(b,e,g):(typeof f==="string"&&f.endsWith("!important")&&(f=f.slice(0,-10),g|=1),d.setStyle(b,e,f,g))))}},koa=function(a,b,c,d,e,f){for(var g=b===null,k=void 0;e>0;){var l=a[e],r=Array.isArray(l),w=r?l[1]:l,x=w===null,C=c[e+1];C===Md&&(C=x?dd:void 0);w=x?nfa(C,d):w===d?C:void 0;r&&w===void 0&&(w=nfa(l,d));if(w!==void 0&&(k=w,g))return k;e=a[e+1];e=g?e>>17&32767:(e&131068)>>2}b!==null&&(a=f?b.residualClasses:
b.residualStyles,a!=null&&(k=nfa(a,d)));return k},Q=function(a,b){b=b===void 0?"":b;var c=t(),d=ud();a+=27;var e=d.firstCreatePass?Ue(d,a,1,b,null):d.data[a];Re=!0;b=c[11].createText(b);c[a]=b;Re&&Lia(d,c,b,e);wd(e,!1)},loa=function(a,b,c,d){d=d===void 0?"":d;return Nd(a,yd(),c)?b+Uc(c)+d:Md},moa=function(a,b,c,d,e,f){f=f===void 0?"":f;a=Od(a,td.bindingIndex,c,e);Wfa(2);return a?b+Uc(c)+d+Uc(e)+f:Md},yg=function(a){S("",a);return yg},S=function(a,b,c){var d=t();a=loa(d,a,b,c);a!==Md&&noa(d,a);return S},
zg=function(a,b,c,d,e){var f=t();a=moa(f,a,b,c,d,e);a!==Md&&noa(f,a);return zg},ooa=function(a,b,c,d,e,f,g,k,l){var r=t();l=l===void 0?"":l;var w=td.bindingIndex;var x=Od(r,w,b,d);w=Od(r,w+2,f,k)||x;Wfa(4);a=w?a+Uc(b)+c+Uc(d)+e+Uc(f)+g+Uc(k)+l:Md;a!==Md&&noa(r,a);return ooa},noa=function(a,b){a[11].setValue(md(a[td.selectedIndex]),b)},Ag=function(a,b,c){ff(b)&&typeof b.set==="function"&&(b=b());var d=t(),e=yd();Nd(d,e,b)&&(e=zd(),Fja(e,d,a,b,d[11],c));return Ag},Bg=function(a,b){var c=ff(a)&&typeof a.set===
"function";c&&a.set(b);return c},Cg=function(a,b){var c=t();Ana(ud(),c,c[11],vd(),a,b);return Cg},Dg=function(a){return Nd(t(),yd(),a)?Uc(a):Md},Eg=function(a,b,c){return loa(t(),a,b,c===void 0?"":c)},Fg=function(a,b,c,d,e){return moa(t(),a,b,c,d,e===void 0?"":e)},poa=function(a,b,c,d,e,f){var g="",k=t();g=g===void 0?"":g;var l=td.bindingIndex,r=Od(k,l,b,d);k=Nd(k,l+2,f)||r;Wfa(3);return k?a+Uc(b)+c+Uc(d)+e+Uc(f)+g:Md},qoa=function(a,b,c,d,e){a=Zc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)qoa(a[f],
b,c,d,e);else{f=ud();var g=t(),k=vd(),l=ed(a)?a:Zc(a.provide),r=Cfa(a),w=k.providerIndexes&1048575,x=k.directiveStart,C=k.providerIndexes>>20;if(ed(a)||!a.multi)d=new Dga(r,e),r=roa(l,b,e?w:w+C,x),r===-1?(r=uga(k,g),qga(r,f,l),soa(f,a,b.length),b.push(l),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(d),g.push(d)):(c[r]=d,g[r]=d);else{x=roa(l,b,w+C,x);w=roa(l,b,w,w+C);var H=x>=0&&c[x];C=w>=0&&c[w];e&&!C||!e&&!H?(x=uga(k,g),qga(x,f,l),x=c.length,H=new Dga(e?toa:uoa,e),H.multi=
[],H.index=x,H.componentProviders=0,d&&!e&&H.componentProviders++,H.multi.push(r),!e&&C&&(c[w].providerFactory=H),soa(f,a,b.length,0),b.push(l),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(H),g.push(H)):(b=c[e?w:x],!e&&d&&b.componentProviders++,b=b.multi.push(r)-1,soa(f,a,x>-1?x:w,b));!e&&d&&C&&c[w].componentProviders++}}},soa=function(a,b,c,d){var e=ed(b),f=!!b.useClass;if(e||f)if(f=(f?Zc(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)},roa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},uoa=function(){return voa(this.multi,[])},toa=function(a,b,c,d,e){var f=this.multi;if(this.providerFactory){var g=this.providerFactory.componentProviders;e=Cga(d,d[1],this.providerFactory.index,e);d=e.slice(0,g);voa(f,d);for(f=g;f<e.length;f++)d.push(e[f])}else d=[],voa(f,d);return d},voa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},
Gg=function(a){var b=b===void 0?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=ud();f.firstCreatePass&&(d=!!d.template,qoa(b,f.data,f.blueprint,d,!0),qoa(e,f.data,f.blueprint,d,!1))}}},Hg=function(a,b){a=xd()+a;var c=t();return c[a]===Md?$ga(c,a,b()):c[a]},Ig=function(a,b,c){return woa(t(),xd(),a,b,c)},Jg=function(a,b,c,d){return xoa(t(),xd(),a,b,c,d)},Kg=function(a,b,c,d,e){return yoa(t(),xd(),a,b,c,d,e)},Boa=function(a,b,c,d){var e=zoa,f=t(),g=xd()+6,k=Od(f,g,a,b);return Od(f,
g+2,c,d)||k?$ga(f,g+4,e(a,b,c,d)):Aoa(f,g+4)},Aoa=function(a,b){a=a[b];return a===Md?void 0:a},woa=function(a,b,c,d,e,f){b+=c;return Nd(a,b,e)?$ga(a,b+1,f?d.call(f,e):d(e)):Aoa(a,b+1)},xoa=function(a,b,c,d,e,f,g){b+=c;return Od(a,b,e,f)?$ga(a,b+2,g?d.call(g,e,f):d(e,f)):Aoa(a,b+2)},yoa=function(a,b,c,d,e,f,g,k){b+=c;c=Od(a,b,e,f);return Nd(a,b+2,g)||c?$ga(a,b+3,k?d.call(k,e,f,g):d(e,f,g)):Aoa(a,b+3)},T=function(a,b){var c=ud();a+=27;if(c.firstCreatePass){a:{var d=c.pipeRegistry;if(d)for(var e=d.length-
1;e>=0;e--){var f=d[e];if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;if(b.onDestroy){var g;((g=c.destroyHooks)!=null?g:c.destroyHooks=[]).push(a,b.onDestroy)}}else b=c.data[a];g=b.factory||(b.factory=ad(b.type));b=Wc(Ye);try{var k=nga(!1),l=g();nga(k);Mfa(c,t(),a,l)}finally{Wc(b)}},U=function(a,b,c){a+=27;var d=t(),e=d[a];return d[1].data[a].pure?woa(d,xd(),b,e.transform,c,e):e.transform(c)},Lg=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?xoa(e,xd(),b,f.transform,c,d,f):f.transform(c,
d)},Coa=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?yoa(e,xd(),b,f.transform,c,0,d,f):f.transform(c,0,d)},Doa=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=Kka(b,Lka);a.pipeDefs=Kka(c,hfa)},Mg=function(a,b){return Ena(a,b)},Goa=function(a,b){function c(){Lc(d);if(d.value===Eoa)throw new Vc(-950,null);return d.value}var d=Object.create(Foa);d.value=a;d.transformFn=b==null?void 0:b.transform;c[Pc]=d;return c},Ng=function(){return new Hoa},Og=function(a,b){return Goa(a,b)},Ioa=
function(a){function b(){Lc(c);if(c.value===Eoa)throw new Vc(952,!1);return c.value}var c=Object.create(Foa),d=new Hoa;c.value=a;b[Pc]=c;b.asReadonly=Qna.bind(b);b.set=function(e){c.equal(c.value,e)||(Qc(c,e),d.emit(e))};b.update=function(e){if(c.value===Eoa)throw new Vc(952,!1);b.set(e(c.value))};b.subscribe=d.subscribe.bind(d);b.destroyRef=d.destroyRef;return b},Joa=function(a){return Ioa(a)},Pg=function(){return Rna(!0,!1)},Koa=function(){return Rna(!1,!1)},Loa=function(){return Rna(!0,!1)},Moa=
function(a){var b=vd(),c=t();b.componentOffset>-1&&(a&16)!==16?(a=od(b.index,c),a=new Qg(a,a)):a=b.type&175?new Qg(c[15],c):null;return a},Noa=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},Roa=function(a){var b=a.ngZoneFactory;var c=a.scheduleInRootZone;b!=null||(b=function(){return new Rg(Object.assign({},Ooa(),{scheduleInRootZone:c}))});return[{provide:Poa,useValue:!1},{provide:Rg,useFactory:b},{provide:ufa,multi:!0,useFactory:function(){var d=
p(Sg,{optional:!0});return function(){return d.initialize()}}},{provide:ufa,multi:!0,useFactory:function(){var d=p(Tg);return function(){d.initialize()}}},{provide:Qoa,useValue:c!=null?c:!1}]},Toa=function(){return{"\u0275providers":[{provide:Soa,useValue:!0},Roa({ngZoneFactory:function(){var a=Ooa();a.scheduleInRootZone=void 0;a.shouldCoalesceEventChangeDetection&&ze("NgZone_CoalesceEvent");return new Rg(a)},scheduleInRootZone:void 0})]}},Ooa=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}},$oa=function(a){var b=a.moduleRef?a.moduleRef.injector:a.r3Injector,c=b.get(Rg);return c.run(function(){a.moduleRef?a.moduleRef.resolveInjectorInitializers():a.r3Injector.resolveInjectorInitializers();var d=b.get(Te),e;c.runOutsideAngular(function(){e=c.onError.subscribe({next:d})});if(a.moduleRef){var f=function(){return a.moduleRef.destroy()},g=a.platformInjector.get(Uoa);
g.add(f);a.moduleRef.onDestroy(function(){Hla(a.allPlatformModules,a.moduleRef);e.unsubscribe();g.delete(f)})}else{var k=function(){return b.destroy()},l=a.platformInjector.get(Uoa);l.add(k);b.onDestroy(function(){e.unsubscribe();l.delete(k)})}return Voa(d,c,function(){var r=b.get(Ug),w=r.add(),x=b.get(Vg);Woa(x);return x.donePromise.then(function(){var C=b.get(Xoa,"en-US")||"en-US";typeof C==="string"&&(hna=C.toLowerCase().replace(/_/g,"-"));if(!b.get(Yoa,!0)){if(!a.moduleRef)return b.get(Wg);a.allPlatformModules.push(a.moduleRef);
return a.moduleRef}if(!a.moduleRef)return C=b.get(Wg),a.rootComponent!==void 0&&C.bootstrap(a.rootComponent),C;var H;(H=Zoa)==null||H(a.moduleRef,a.allPlatformModules);return a.moduleRef}).finally(function(){return void r.remove(w)})})})},apa=function(a,b){var c=a.injector.get(Wg);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 Vc(-403,!1);b.push(a)},Voa=function(a,b,c){try{var d=
c();return Nka(d)?d.catch(function(e){b.runOutsideAngular(function(){return a(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a(e)}),e;}},fpa=function(a,b,c){c=c===void 0?[]:c;var d="Platform: "+b,e=new fd(d);return function(f){f=f===void 0?[]:f;if(!bpa()&&(f=[].concat(q(c),q(f),[{provide:e,useValue:!0}]),(a==null?void 0:a(f))==null)){f=cpa(f,d);if(bpa())throw new Vc(400,!1);Fla();dpa=f;f.get(Xg);epa(f)}f=bpa();if(!f)throw new Vc(-401,!1);return f}},cpa=function(a,b){a=a===
void 0?[]:a;return Yg({name:b,providers:[{provide:gpa,useValue:"platform"},{provide:Uoa,useValue:new Set([function(){return dpa=null}])}].concat(q(a))})},bpa=function(){var a,b;return(b=(a=dpa)==null?void 0:a.get(Xg))!=null?b:null},epa=function(a){var b=a.get(hpa,null);id(a,function(){b==null||b.forEach(function(c){return c()})})},Zg=function(a,b){return Kea(a,b==null?void 0:b.equal)},kpa=function(a,b){if(typeof a==="function")return a=Pea(a,ipa,b==null?void 0:b.equal),jpa(a);a=Pea(a.source,a.computation,
a.equal);return jpa(a)},jpa=function(a){var b=a[Pc];a.set=function(c){Dea(b);Qc(b,c);b.dirty=!1;b.lastCleanEpoch=Bea};a.update=function(c){Dea(b);Fea()||Mea();Qc(b,c(b.value));b.dirty=!1;b.lastCleanEpoch=Bea};a.asReadonly=Qna.bind(a);return a},lpa=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}},$g=function(a){return typeof a==="boolean"?a:a!=null&&a!=="false"},
ah=function(a,b){b=b===void 0?NaN:b;return isNaN(parseFloat(a))||isNaN(Number(a))?b:Number(a)},npa=function(a){var b=p(Ae),c=b.get(bf),d=b.get(Be),e=b.get(De,null,{optional:!0});d.impl!=null||(d.impl=b.get(Ce));var f=a;typeof f==="function"&&(f={mixedReadWrite:a});a=b.get(tia,null,{optional:!0});b=new mpa(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)},opa=function(a,b){a=a[cd]||null;var c=b.elementInjector||zfa();
return(new bh(a)).create(c,b.projectableNodes,b.hostElement,b.environmentInjector,b.directives,b.bindings)},ppa=function(a){var b=a[cd]||null;if(!b)return null;var c=new bh(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}}},qpa=function(a){if(a&&!a.createEmbeddedView)throw new Vc(2020,
!1);},rpa=function(a,b,c){a=Xf(a);b=ch([a[1],a[2]],b);return ch(b,c)},spa=function(a,b,c){a=Xf(a);b=ch([a[3],a[4]],b);return ch(b,c)},tpa=function(a,b,c){a=Xf(a);b=ch([a[5],a[6]],b);return ch(b,c)},upa=function(a,b){a=Xf(a)[7];return ch(a,b)},vpa=function(a,b){a=Xf(a);return ch(a[10],b)},wpa=function(a,b){a=Xf(a);return ch(a[11],b)},xpa=function(a,b){a=Xf(a)[12];return ch(a,b)},dh=function(a,b){a=Xf(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},
zpa=function(a){a=Xf(a);if(!a[21])throw new Vc(2303,!1);return(a[21][2]||[]).map(function(b){return typeof b==="string"?ypa(b):[ypa(b[0]),ypa(b[1])]})},Apa=function(a,b,c){a=Xf(a);if(!a[21])throw new Vc(2303,!1);b=ch([a[21][0],a[21][1]],b)||[];return ch(b,c)||[]},ch=function(a,b){for(;b>-1;b--)if(typeof a[b]!=="undefined")return a[b];throw new Vc(2304,!1);},ypa=function(a){var b=m(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},eh=function(){return new Vc(2100,!1)},Jpa=
function(a,b,c,d){var e=Bpa(a);b=fh(c,b)||b;a=[];for(var f;b;)if(f=Cpa.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var g=e.getTimezoneOffset();d&&(g=Dpa(d,g),e=Epa(e,d));var k="";a.forEach(function(l){a:if(Fpa[l])var r=Fpa[l];else{switch(l){case "G":case "GG":case "GGG":r=gh(3,1);break;case "GGGG":r=gh(3,2);break;case "GGGGG":r=gh(3,0);break;case "y":r=hh(0,1,0,!1,!0);break;case "yy":r=hh(0,2,0,!0,!0);break;case "yyy":r=hh(0,3,0,!1,!0);break;case "yyyy":r=hh(0,4,0,!1,
!0);break;case "Y":r=Gpa(1);break;case "YY":r=Gpa(2,!0);break;case "YYY":r=Gpa(3);break;case "YYYY":r=Gpa(4);break;case "M":case "L":r=hh(1,1,1);break;case "MM":case "LL":r=hh(1,2,1);break;case "MMM":r=gh(2,1);break;case "MMMM":r=gh(2,2);break;case "MMMMM":r=gh(2,0);break;case "LLL":r=gh(2,1,1);break;case "LLLL":r=gh(2,2,1);break;case "LLLLL":r=gh(2,0,1);break;case "w":r=Hpa(1);break;case "ww":r=Hpa(2);break;case "W":r=Hpa(1,!0);break;case "d":r=hh(2,1);break;case "dd":r=hh(2,2);break;case "c":case "cc":r=
hh(7,1);break;case "ccc":r=gh(1,1,1);break;case "cccc":r=gh(1,2,1);break;case "ccccc":r=gh(1,0,1);break;case "cccccc":r=gh(1,3,1);break;case "E":case "EE":case "EEE":r=gh(1,1);break;case "EEEE":r=gh(1,2);break;case "EEEEE":r=gh(1,0);break;case "EEEEEE":r=gh(1,3);break;case "a":case "aa":case "aaa":r=gh(0,1);break;case "aaaa":r=gh(0,2);break;case "aaaaa":r=gh(0,0);break;case "b":case "bb":case "bbb":r=gh(0,1,1,!0);break;case "bbbb":r=gh(0,2,1,!0);break;case "bbbbb":r=gh(0,0,1,!0);break;case "B":case "BB":case "BBB":r=
gh(0,1,0,!0);break;case "BBBB":r=gh(0,2,0,!0);break;case "BBBBB":r=gh(0,0,0,!0);break;case "h":r=hh(3,1,-12);break;case "hh":r=hh(3,2,-12);break;case "H":r=hh(3,1);break;case "HH":r=hh(3,2);break;case "m":r=hh(4,1);break;case "mm":r=hh(4,2);break;case "s":r=hh(5,1);break;case "ss":r=hh(5,2);break;case "S":r=hh(6,1);break;case "SS":r=hh(6,2);break;case "SSS":r=hh(6,3);break;case "Z":case "ZZ":case "ZZZ":r=Ipa(0);break;case "ZZZZZ":r=Ipa(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":r=
Ipa(1);break;case "OOOO":case "ZZZZ":case "zzzz":r=Ipa(2);break;default:r=null;break a}Fpa[l]=r}k+=r?r(e,c,g):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},Kpa=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},fh=function(a,b){var c=Xf(a)[0];Lpa[c]!=null||(Lpa[c]={});if(Lpa[c][b])return Lpa[c][b];var d="";switch(b){case "shortDate":d=vpa(a,0);break;case "mediumDate":d=vpa(a,1);break;case "longDate":d=vpa(a,2);break;case "fullDate":d=vpa(a,3);
break;case "shortTime":d=wpa(a,0);break;case "mediumTime":d=wpa(a,1);break;case "longTime":d=wpa(a,2);break;case "fullTime":d=wpa(a,3);break;case "short":d=fh(a,"shortTime");var e=fh(a,"shortDate");d=Mpa(xpa(a,0),[d,e]);break;case "medium":d=fh(a,"mediumTime");e=fh(a,"mediumDate");d=Mpa(xpa(a,1),[d,e]);break;case "long":d=fh(a,"longTime");e=fh(a,"longDate");d=Mpa(xpa(a,2),[d,e]);break;case "full":d=fh(a,"fullTime"),e=fh(a,"fullDate"),d=Mpa(xpa(a,3),[d,e])}d&&(Lpa[c][b]=d);return d},Mpa=function(a,
b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return b!=null&&d in b?b[d]:c}));return a},ih=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},hh=function(a,b,c,d,e){c=c===void 0?0:c;d=d===void 0?!1:d;e=e===void 0?!1:e;return function(f,g){f=Npa(a,f);if(c>0||f>-c)f+=c;if(a===3)f===0&&c===-12&&(f=12);else if(a===6)return ih(f,3).substring(0,b);g=dh(g,5);return ih(f,b,g,d,e)}},Npa=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 Vc(2301,!1);}},gh=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?!1:d;return function(e,f){return Opa(e,f,a,b,c,d)}},Opa=function(a,b,c,d,e,f){switch(c){case 2:return tpa(b,e,d)[a.getMonth()];case 1:return spa(b,e,d)[a.getDay()];case 0:var g=a.getHours(),k=a.getMinutes();return f&&(c=
zpa(b),a=Apa(b,e,d),c=c.findIndex(function(l){if(Array.isArray(l)){var r=m(l);l=r.next().value;r=r.next().value;var w=g>=l.hours&&k>=l.minutes,x=g<r.hours||g===r.hours&&k<r.minutes;if(l.hours<r.hours){if(w&&x)return!0}else if(w||x)return!0}else if(l.hours===g&&l.minutes===k)return!0;return!1}),c!==-1)?a[c]:rpa(b,e,d)[g<12?0:1];case 3:return upa(b,d)[a.getFullYear()<=0?0:1];default:throw new Vc(2302,!1);}},Ipa=function(a){return function(b,c,d){b=-1*d;c=dh(c,5);var e=b>0?Math.floor(b/60):Math.ceil(b/
60);switch(a){case 0:return(b>=0?"+":"")+ih(e,2,c)+ih(Math.abs(b%60),2,c);case 1:return"GMT"+(b>=0?"+":"")+ih(e,1,c);case 2:return"GMT"+(b>=0?"+":"")+ih(e,2,c)+":"+ih(Math.abs(b%60),2,c);case 3:return d===0?"Z":(b>=0?"+":"")+ih(e,2,c)+":"+ih(Math.abs(b%60),2,c);default:throw new Vc(2310,!1);}}},Ppa=function(a){var b=a.getDay();b=b===0?-3:4-b;return Kpa(a.getFullYear(),a.getMonth(),a.getDate()+b)},Hpa=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=Ppa(c);e=c.getFullYear();var f=Kpa(e,0,1).getDay();e=Kpa(e,0,1+(f<=4?4:11)-f);c=1+Math.round((c.getTime()-e.getTime())/6048E5)}return ih(c,a,dh(d,5))}},Gpa=function(a,b){b=b===void 0?!1:b;return function(c,d){c=Ppa(c).getFullYear();return ih(c,a,dh(d,5),b)}},Dpa=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Epa=function(a,b){var c=a.getTimezoneOffset();b=Dpa(b,c);a=new Date(a.getTime());
a.setMinutes(a.getMinutes()+-1*(b-c));return a},Bpa=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=m(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 Kpa(a,c-1,b===void 0?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(Qpa))return Rpa(b)}a=new Date(a);if(!(a instanceof
Date)||isNaN(a.valueOf()))throw new Vc(2311,!1);return a},Rpa=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},Spa=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},Ypa=function(a,b,c,d){var e=e===void 0?!1:e;var f="",g=!1;if(isFinite(a)){g=Tpa(a);e&&(g=Upa(g));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var l=d.match(Vpa);if(l===null)throw new Vc(2306,!1);d=l[1];var r=l[3];l=l[5];d!=null&&(f=Wpa(d));r!=null&&(e=Wpa(r));l!=null?k=Wpa(l):r!=null&&e>k&&(k=e)}Xpa(g,e,
k);e=g.digits;r=g.integerLen;k=g.exponent;d=[];for(g=e.every(function(w){return!w});r<f;r++)e.unshift(0);for(;r<0;r++)e.unshift(0);r>0?d=e.splice(r,e.length):(d=e,e=[0]);f=[];for(e.length>=b.lgSize&&f.unshift(e.splice(-b.lgSize,e.length).join(""));e.length>b.gSize;)f.unshift(e.splice(-b.gSize,e.length).join(""));e.length&&f.unshift(e.join(""));f=f.join(dh(c,1));d.length&&(f+=dh(c,0)+d.join(""));k&&(f+=dh(c,6)+"+"+k)}else f=dh(c,9);return f=a<0&&!g?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},Upa=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},Tpa=function(a){a=Math.abs(a)+"";var b=0,c,d,e,f;(c=a.indexOf("."))>-1&&(a=a.replace(".",""));(d=a.search(/e/i))>0?(c<0&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):c<0&&(c=a.length);for(d=0;a.charAt(d)==="0";d++);if(d===(f=a.length)){var g=[0];c=1}else{for(f--;a.charAt(f)==="0";)f--;c-=d;g=[];for(e=0;d<=f;d++,e++)g[e]=Number(a.charAt(d))}c>22&&(g=g.splice(0,
21),b=c-1,c=1);return{digits:g,exponent:b,integerLen:c}},Xpa=function(a,b,c){if(b>c)throw new Vc(2307,!1);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,g=d[f];if(f>0){d.splice(Math.max(a.integerLen,f));for(var k=f;k<d.length;k++)d[k]=0}else for(e=Math.max(0,e),a.integerLen=1,d.length=Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(g>=5)if(f-1<0){for(g=0;g>f;g--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);
var l=c!==0,r=b+a.integerLen;if(b=d.reduceRight(function(w,x,C,H){x+=w;H[C]=x<10?x:x-10;l&&(H[C]===0&&C>=r?H.pop():l=!1);return x>=10?1:0},0))d.unshift(b),a.integerLen++},Wpa=function(a){a=parseInt(a);if(isNaN(a))throw new Vc(2305,!1);return a},Zpa=function(a,b){return a?b?a.endsWith("/")?b.startsWith("/")?a+b.slice(1):a+b:b.startsWith("/")?a+b:a+"/"+b:a:b},$pa=function(a){var b=a.search(/#|\?|$/);return a[b-1]==="/"?a.slice(0,b-1)+a.slice(b):a},jh=function(a){return a&&a[0]!=="?"?"?"+a:a},aqa=function(a){return RegExp("^(https?:)?//").test(a)?
(a=m(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):a},bqa=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b.value.remove()},cqa=function(a,b){b=b.createElement("style");b.textContent=a;return b},dqa=function(a,b){b=b.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);return b},fqa=function(a,b){return b.map(function(c){return c.replace(eqa,a)})},gqa=function(a){var b=new Map;a.length>0&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");
d=m(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},jqa=function(a){return encodeURIComponent(a).replace(hqa,function(b,c){var d;return(d=iqa[c])!=null?d:b})},kqa=function(a){return""+a},lqa=function(a){return typeof ArrayBuffer!=="undefined"&&a instanceof ArrayBuffer},mqa=function(a){return typeof Blob!=="undefined"&&a instanceof Blob},nqa=function(a){return typeof FormData!==
"undefined"&&a instanceof FormData},oqa=function(a,b){return b(a)},pqa=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,d)}})}},qqa=function(a,b,c){return function(d,e){return id(c,function(){return b(d,function(f){return a(f,e)})})}},rqa=function(a,b){return{body:b,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials,credentials:a.credentials,transferCache:a.transferCache,
timeout:a.timeout,keepalive:a.keepalive,priority:a.priority,cache:a.cache,mode:a.mode,redirect:a.redirect,integrity:a.integrity,referrer:a.referrer,referrerPolicy:a.referrerPolicy}},uqa=function(a,b){var c=a.url.toLowerCase();if(!p(sqa)||a.method==="GET"||a.method==="HEAD"||c.startsWith("http://")||c.startsWith("https://"))return b(a);c=p(kh).getToken();var d=p(tqa);c==null||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},Hqa=function(a){return function(b,c){var d,e=(d=c==
null?void 0:c.injector)!=null?d:p(Ae);return new Gqa(e,function(){var f=typeof b==="function"?b():b;if(f!==void 0){typeof f==="string"&&(f={url:f});var g=f.headers instanceof lh?f.headers:new lh(f.headers),k=f.params instanceof mh?f.params:new mh({fromObject:f.params}),l,r;var w=new nh((l=f.method)!=null?l:"GET",f.url,(r=f.body)!=null?r:null,{headers:g,params:k,reportProgress:f.reportProgress,withCredentials:f.withCredentials,keepalive:f.keepalive,cache:f.cache,priority:f.priority,mode:f.mode,redirect:f.redirect,
responseType:a,context:f.context,transferCache:f.transferCache,credentials:f.credentials,referrer:f.referrer,referrerPolicy:f.referrerPolicy,integrity:f.integrity,timeout:f.timeout})}else w=void 0;return w},c==null?void 0:c.defaultValue,c==null?void 0:c.parse,c==null?void 0:c.equal)}},Iqa=function(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)},Jqa=function(a){return a.toString().indexOf("`")===-1},Lqa=function(){var a=null;if(!Kqa)return a;try{var b=function(c){return c};a=Kqa.createPolicy("goog#html",
{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a},Nqa=function(){Mqa===void 0&&(Mqa=Lqa());return Mqa},ph=function(a){var b=Nqa();a=b?b.createHTML(a):a;return new oh(a)},qh=function(a){return a instanceof oh},rh=function(a){if(qh(a))return a.privateDoNotAccessOrElseWrappedHtml;throw Error("na");},sh=function(a){return document.createRange().createContextualFragment(rh(ph(a[0])))},uh=function(a){var b=Nqa();a=b?b.createScriptURL(a):a;return new th(a)},vh=function(a){if(a instanceof
th)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("na");},xh=function(a){return a instanceof wh},Oqa=function(a){if(xh(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("na");},Qqa=function(a){return new Pqa(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},Sqa=function(a,b){b=b===void 0?Rqa:b;if(xh(a))return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Pqa&&d.isValid(a))return new wh(a)}},yh=function(a){var b=b===void 0?Rqa:b;return Sqa(a,b)||
Tqa},Vqa=function(a){if(Uqa.test(a))return a},Ah=function(a){return a instanceof wh?Oqa(a):Vqa(a)},Bh=function(a,b){if(qh(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 ph(a)},
Dh=function(a){return Ch(a)},Ch=function(a){var b=Bh("");return ph(a.map(function(c){return rh(Bh(c))}).join(rh(b).toString()))},Yqa=function(a){if(!Wqa.test(a))throw Error("na");if(Xqa.indexOf(a.toUpperCase())!==-1)throw Error("na");},Eh=function(a,b,c){Yqa(a);var d="<"+a;b&&(d+=Zqa(b));Array.isArray(c)||(c=c===void 0?[]:[c]);$qa.indexOf(a.toUpperCase())!==-1?d+=">":(b=Dh(c.map(function(e){return qh(e)?e:Bh(String(e))})),d+=">"+b.toString()+"</"+a+">");return ph(d)},Zqa=function(a){for(var b="",
c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!Wqa.test(e))throw Error("na");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("na");ara.indexOf(e.toLowerCase())!==-1&&(f=xh(f)?f.toString():Vqa(String(f))||"about:invalid#zClosurez");f=e+'="'+Bh(String(f))+'"';b+=" "+f}}return b},Fh=function(a){var b=bd.apply(1,arguments);if(b.length===0)return uh(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return uh(c)},cra=function(a,b){a=vh(a).toString();var c=a.split(/[?#]/),
d=/[?]/.test(a)?"?"+c[1]:"";return bra(c[0],d,/[#]/.test(a)?"#"+(d?c[2]:c[1]):"",b)},bra=function(a,b,c,d){function e(g,k){g!=null&&(Array.isArray(g)?g.forEach(function(l){return e(l,k)}):(b+=f+encodeURIComponent(k)+"="+encodeURIComponent(g),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(g){return e(g[1],g[0])}):d.forEach(e);return uh(a+b+c)},era=function(){if(dra===void 0&&(dra=null,typeof window!=="undefined")){var a=window;a.trustedTypes!==
void 0&&(dra=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return dra},fra=function(a){var b;return((b=era())==null?void 0:b.createHTML(a))||a},gra=function(a){return a.buttons===0||a.detail===0},hra=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)},Gh=function(a){var b=bd.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):
a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},kra=function(){if(ira)return ira;if(typeof document!=="object"||!document)return ira=new Set(jra);var a=document.createElement("input");return ira=new Set(jra.filter(function(b){a.setAttribute("type",b);return a.type===b}))},mra=function(){if(lra==null&&typeof window!=="undefined")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return lra=!0}}))}finally{lra=lra||!1}return lra},Ih=function(a){return mra()?a:!!a.capture},
ora=function(){if(nra==null){if(typeof document!=="object"||!document||typeof Element!=="function"||!Element)return nra=!1;var a;nra=((a=document.documentElement)==null?0:a.style)&&"scrollBehavior"in document.documentElement.style?!0:(a=Element.prototype.scrollTo)?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}return nra},qra=function(){if(typeof document!=="object"||!document)return 0;if(pra==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);pra=0;a.scrollLeft===0&&(a.scrollLeft=1,pra=a.scrollLeft===0?1:2);a.remove()}return pra},sra=function(a){if(rra==null){var b=typeof document!=="undefined"?document.head:null;rra=!(!b||!b.createShadowRoot&&!b.attachShadow)}return rra&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof
ShadowRoot)?a:null},Jh=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},Kh=function(a){return a.composedPath?a.composedPath()[0]:a.target},tra=function(){return typeof __karma__!=="undefined"&&!!__karma__||typeof jasmine!=="undefined"&&!!jasmine||typeof jest!=="undefined"&&!!jest||typeof Mocha!=="undefined"&&!!Mocha},Lh=function(a){return Array.isArray(a)?a:[a]},Mh=function(a){return a!=
null&&""+a!=="false"},Nh=function(a){return a==null?"":typeof a==="string"?a:a+"px"},Oh=function(a){return a instanceof Jd?a.nativeElement:a},Ph=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?arguments.length===2?b===void 0?0:b:0:Number(a)},ura=function(a){if(!a.hasAttribute("tabindex")||a.tabIndex===void 0)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},vra=function(a){if(!ura(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},
wra=function(a){return{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}},xra=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},yra=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},Ara=function(a,b,c){var d=zra(a,b);c=c.trim();d.some(function(e){return e.trim()===c})||(d.push(c),a.setAttribute(b,d.join(" ")))},Qh=function(a,b,c){var d=zra(a,b);c=c.trim();d=d.filter(function(e){return e!==c});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},zra=function(a,b){var c,d;return(d=(c=a.getAttribute(b))==null?void 0:c.match(/\S+/g))!=null?d:[]},Bra=function(a,b){return typeof a==="string"?(b||"")+"/"+a:a},Dra=function(a,b){a.id||(a.id=
"cdk-describedby-message-"+b+"-"+Cra++)},Era=function(a){return ye(a)?a:ee(a)},Fra=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},Gra=function(a){return a&&typeof a.connect==="function"&&!(a instanceof uf)},Hra=function(a,b){return a.start==b.start&&a.end==b.end},Jra=function(a){return new Ira(a.get(Rh),a.get(Sh))},Kra=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})},Lra=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})},Uh=function(a,b){return new Mra(a.get(Th),a.get(Rh),a.get(Rg),b)},Yh=function(a,b){return new Vh(b,a.get(Rh),a.get(Sh),a.get(Wh),a.get(Xh))},Zh=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Ora=function(a){if(typeof a!=="number"&&a!=null){var b=m(a.split(Nra));a=b.next().value;return(b=b.next().value)&&
b!=="px"?null:parseFloat(a)}return a||null},Pra=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)}},li=function(a,b){a.get($h).load(ai);var c=a.get(Xh),d=a.get(Sh),e=a.get(bi),f=a.get(Wg),g=a.get(ci),k=a.get(di,null,{optional:!0})||a.get(af).createRenderer(null,null),l=new ei(b);l.direction=l.direction||g.value;l.usePopover=!(l==null||!l.usePopover)&&"showPopover"in d.body;g=
d.createElement("div");var r=d.createElement("div");g.id=e.getId("cdk-overlay-");g.classList.add("cdk-overlay-pane");r.appendChild(g);l.usePopover&&(r.setAttribute("popover","manual"),r.classList.add("cdk-overlay-popover"));var w,x;(e=l.usePopover?(w=l.positionStrategy)==null?void 0:(x=w.getPopoverInsertionPoint)==null?void 0:x.call(w):null)?e.after(r):Qra(c).appendChild(r);var C;return new fi(new gi(g,f,a),r,g,l,a.get(Rg),a.get(hi),d,a.get(ii),a.get(ji),(C=b==null?void 0:b.disableAnimations)!=null?
C:a.get(ki,null,{optional:!0})==="NoopAnimations",a.get($e),k)},Tra=function(){var a;if(((a=p(Rra,{optional:!0}))==null?0:a.animationsDisabled)||p(ki,{optional:!0})==="NoopAnimations")return"di-disabled";Sra!=null||(Sra=p(mi).matchMedia("(prefers-reduced-motion)").matches);return Sra?"reduced-motion":"enabled"},ni=function(){return Tra()!=="enabled"},Ura=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)},
Vra=function(a){a&1&&M(0,"mat-pseudo-checkbox",1);a&2&&(a=P(),I("disabled",a.disabled)("state",a.selected?"checked":"unchecked"))},Wra=function(a){a&1&&M(0,"mat-pseudo-checkbox",3);a&2&&(a=P(),I("disabled",a.disabled))},Xra=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(),B(),S("(",a.group.label,")"))},Yra=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},Zra=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,
a-d+b):c},$ra=function(a,b){b=Ah(b);b!==void 0&&(a.href=b)},asa=function(a,b){a.src=vh(b).toString()},csa=function(a,b){a.removeAttribute("srcdoc");if(!(b instanceof th))throw new bsa(typeof b,1);var c="allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" ");a.setAttribute("sandbox","");for(var d=0;d<c.length;d++)a.sandbox.supports&&!a.sandbox.supports(c[d])||a.sandbox.add(c[d]);asa(a,b)},oi=function(a,b,c,d){b=Ah(b);
return b!==void 0?a.open(b,c,d):null},dsa=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")||""},pi=function(a,b){a.src=vh(b);(b=dsa(a.ownerDocument))&&a.setAttribute("nonce",b)},esa=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("na");a.innerHTML=rh(b)},gsa=function(a,b,c,d){if(a.length===0)throw Error("na");a=a.map(function(f){if(f instanceof fsa)f=f.privateDoNotAccessOrElseWrappedAttributePrefix;
else throw Error("na");return f});var e=c.toLowerCase();if(a.every(function(f){return e.indexOf(f)!==0}))throw Error("Za`"+c);b.setAttribute(c,d)},hsa=function(a){a&1&&M(0,"img",3);a&2&&(a=P(),I("src",a.iconUrl(),Pe))},isa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();c.removeContextSource.emit(c.linkUrl());return v()});K(1,"mat-icon",7);Q(2,"close");L()()}},qi=function(){var a=function(){throw Error();};Object.setPrototypeOf(a,a.prototype);return a},ksa=function(a,
b){var c=c===void 0?jsa:c;return new ri(a,b,c)},osa=function(a,b,c,d,e){b=lsa(b,d);b!=null&&(c=msa(a,c),e(b,a),nsa(a,c))},ssa=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=Mda(d[0]);var f=d[1],g=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++g],typeof f==="function"&&(e.isMessageSet=!0,psa!=null||(psa=f),qsa!=null||(qsa=d[g+1]),f=d[g+=2]));for(var k={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var l=0;l<f.length;l++)k[f[l]]=f;f=d[++g]}for(l=
1;f!==void 0;){typeof f==="number"&&(l+=f,f=d[++g]);var r=void 0;if(f instanceof ri)var w=f;else w=rsa,g--;f=void 0;if((f=w)==null?0:f.$$isMsg){f=d[++g];r=d;var x=g;typeof f==="function"&&(f=f(),r[x]=f);r=f}f=d[++g];x=l+1;typeof f==="number"&&f<0&&(x-=f,f=d[++g]);for(;l<x;l++){var C=k[l];r?c(e,l,w,r,C):b(e,l,w,C)}}return d[a]=e},usa=function(a){return Array.isArray(a)?a[0]instanceof ri?a:[tsa,a]:[a,void 0]},lsa=function(a,b){if(a instanceof W)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
if(Array.isArray(a))return Oda(a,b)},vsa=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(f,g,k){return e(f,g,k,d)}:e},xsa=function(a,b,c,d,e){var f=c.$$binaryReaderFn,g,k;a[b]=function(l,r,w){return f(l,r,w,k||(k=ssa(wsa,vsa,xsa,d).messageMetadata),g||(g=ysa(d)),e)}},ysa=function(a){var b=a[zsa];if(b!=null)return b;var c=ssa(wsa,vsa,xsa,a);b=c.isMessageSet?function(d,e){return psa(d,e,c)}:function(d,e){for(;Asa(e)&&e.nextWireType_!=4;){var f=e.nextField_,g=c[f];if(g==null){var k=c.extensions;
k&&(k=k[f])&&(k=Bsa(k),k!=null&&(g=c[f]=k))}if(g==null||!g(e,d,f)){k=e;g=k.fieldCursor_;Csa(k);if(k.discardUnknownFields)var l=void 0;else{var r=k.decoder_.getCursor()-g;k.decoder_.cursor_=g;l=k.decoder_.readByteString(r)}r=k=g=void 0;var w=d;l&&((g=(k=(r=w[bc])!=null?r:w[bc]=new Ada)[f])!=null?g:k[f]=[]).push(l)}}if(d=pda(d))d.reviveUnknownFields=c.binaryFields[Dsa];return!0};a[zsa]=b;a[Dsa]=Esa.bind(a);return b},Esa=function(a,b,c,d){var e=this[wsa],f=this[zsa],g=Oda(void 0,e.messageMetadata),k=
pda(a);if(k){var l=!1,r=e.extensions;if(r){e=function(J,O,R){if(R.length!==0)if(r[O])for(J=m(R),O=J.next();!O.done;O=J.next()){O=Fsa(O.value);try{l=!0,f(g,O)}finally{O.free()}}else d==null||d(a,O,R)};if(b==null)yda(k,e);else if(k!=null){var w=k[b];w&&e(k,b,w)}if(l){var x=a[Ta]|0;if(x&2&&x&2048&&(c==null||!c.reviveIntoImmutable))throw Error();var C=kb(x),H=function(J,O){if(tc(a,J,C)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;default:throw Error();}O!=null&&(x=mc(a,x,J,O,C));delete k[J]};
b==null?aca(g,g[Ta]|0,function(J,O){H(J,O)}):H(b,tc(g,b,C))}}}},Bsa=function(a){a=usa(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=ysa(a),d=ssa(wsa,vsa,xsa,a).messageMetadata;return function(e,f,g){return b(e,f,g,d,c)}}return b},Jsa=function(a){return ssa(Gsa,Hsa,Isa,a)},Hsa=function(a,b,c){a[b]=c.$$binaryWriterFn},Isa=function(a,b,c,d){var e,f,g=c.$$binaryWriterFn;a[b]=function(k,l,r){return g(k,l,r,f||(f=Jsa(d).messageMetadata),e||(e=Ksa(d)))}},Ksa=function(a){var b=a[Lsa];if(!b){var c=Jsa(a);
b=function(d,e){return Msa(d,e,c)};a[Lsa]=b}return b},Msa=function(a,b,c){aca(a,a[Ta]|0,function(d,e){if(e!=null){var f=Nsa(c,d);f?f(b,e,d):d<500||ub(Osa,3)}});(a=pda(a))&&yda(a,function(d,e,f){si(b,b.encoder_.end());for(d=0;d<f.length;d++)si(b,fc(f[d])||new Uint8Array(0))})},Nsa=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=usa(c);var d=c[0].$$binaryWriterFn;if(c=c[1]){var e=Ksa(c),f=Jsa(c).messageMetadata;c=a.isMessageSet?qsa(f,e):function(g,k,l){return d(g,k,l,f,e)}}else c=
d;return a[b]=c}},ti=function(a,b,c){return new ri(a,b,c)},ui=function(a,b,c){mc(a,a[Ta]|0,b,c,kb(a[Ta]|0))},Psa=function(a,b,c){a.writeInt64(c,Pca(b))},Qsa=function(a,b,c){a.writeBool(c,zb(b))},Ssa=function(a,b,c){b=Tb(b);b!=null&&Rsa(a,c,Waa(b,!1))},Tsa=function(a,b,c,d,e){b=lsa(b,d);b!=null&&(c=msa(a,c),e(b,a),nsa(a,c))},Usa=function(a,b,c){b=b==null||typeof b=="string"||b instanceof Za?b:void 0;a.writeBytes(c,b)},Vsa=function(a,b,c){if(a.nextWireType_!==2)return!1;a=a.readByteString();ui(b,c,
a===Ya()?void 0:a);return!0},Wsa=function(a){a!=null&&(a=a.value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a},Ysa=function(a,b,c,d){c==null||b==null&&(b=c.internalDoNotUse_ctor);if(vi(a,1).split("/").pop()!=d)return null;d=typeof b==="function"?b:b.constructor;var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;b=tc(e,2);if(!c||b==null||Array.isArray(b)||db(b)){ic(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0);a=e;c=f;if(b!=null&&!Array.isArray(b)&&
!db(b))throw Error("bb`"+xca(b));f=Uca(b,d,!0,c);if(!(f instanceof d))throw Error("cb`"+f.constructor.displayName+"`"+d.displayName);(d=!!(2&c))||(f=Zb(f));b!==f&&(mc(a,c,2,f),d||kc(a));b=f}else b=b==null||b instanceof Za?b:typeof b==="string"?Yba(b):void 0,b=c(Xsa(b!=null?b:Ya())),fb(a)?fb(b)||(b=Yda(b)):fb(b)&&(b=Zb(b));return b},Zsa=function(a,b){var c=function(d,e){var f={treatNewDataAsImmutable:!0};e&&Object.assign(f,e);d=Fsa(d,void 0,void 0,f);try{var g=new a,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
ysa(b)(k,d);var l=g}finally{d.free()}return l};c.internalDoNotUse_ctor=a;return c},bta=function(a){return function(b){var c=new $sa;Msa(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Jsa(a));return ata(c)}},cta=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("ea`"+xca(b)+"`"+b);Wa(b);return new a(b)}},wi=function(a){return function(b){return dta(a,b)}},eta=function(){return Math.random().toString(36).substring(2,10).padEnd(8,"0")},gta=function(a){var b=
(new fta).setDuckieClient(a.getDuckieClient());a.hasSessionId()&&b.setSessionId(a.getSessionId());a.hasText()&&b.setText(a.getText());a.hasDisallowRestrictedContent()&&b.setDisallowRestrictedContent(a.getDisallowRestrictedContent());a.getUserProvidedContextList().length>0&&b.addAllUserProvidedContext(a.getUserProvidedContextList().slice());a.hasConversationHistory()&&b.setConversationHistory(a.getConversationHistory());a.hasConversationAgent()&&b.setConversationAgent(a.getConversationAgent());a.hasAppProvidedContext()&&
b.setAppProvidedContext(a.getAppProvidedContext());return b},Li=function(a){var b={id:a.getMessageId(),sessionId:a.getSessionId(),client:a.getClient(),text:a.getText(),sender:xi(a,5),isUser:xi(a,5)===1?!0:!1,createdTimestamp:a.getCreationTimestamp()};a.hasFeedback()&&(b.feedback=a.getFeedback());yi(a,zi,10)&&(b.rewrite=X(a,zi,10));yi(a,hta,14)&&(b.responseMetadata=X(a,hta,14));Ai(a,Bi,13)>0&&(b.relatedResources=Ci(a,Bi,13,Di()));yi(a,Ei,17)&&(b.executionMetadata=X(a,Ei,17));Fi(a,20)&&(b.hasPrivateContent=
Gi(a,20));Fi(a,19)&&(b.hasRedactions=Gi(a,19));a.getUserProvidedContextCount()>0&&(b.userProvidedContext=a.getUserProvidedContextList().map(function(c){a:{var d=Hi;jc(c);if(void 0===ita){if(Ii(c,d,2)!==2){c=void 0;break a}}else hea(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,void 0,d,2);c=Ji(c,Ki,2)}return c}));Fi(a,18)&&(b.isFallback=Gi(a,18));Ai(a,jta,27)>0&&(b.interactiveElements=Ci(a,jta,27,Di()));return b},nta=function(a){var b=kta((new Mi).setMessageId(a.id).setSessionId(a.sessionId).setClient(a.client).setText(a.text),
a.sender).setCreationTimestamp(a.createdTimestamp);a.feedback&&b.setFeedback(a.feedback);a.rewrite&&Ni(b,zi,10,a.rewrite);a.responseMetadata&&Ni(b,hta,14,a.responseMetadata);a.relatedResources&&Oi(b,13,a.relatedResources);a.executionMetadata&&Ni(b,Ei,17,a.executionMetadata);a.hasPrivateContent!==void 0&&lta(b,a.hasPrivateContent);a.hasRedactions!==void 0&&Pi(b,19,a.hasRedactions);a.userProvidedContext&&b.setUserProvidedContextList(a.userProvidedContext.map(function(c){return mta(new Qi,c)}));a.isFallback!==
void 0&&Pi(b,18,a.isFallback);a.interactiveElements&&Oi(b,27,a.interactiveElements);return b},qta=function(a){var b=a.some(function(c){return Ri(c,ota,4,Si)});a=a.some(function(c){return Ri(c,pta,3,Si)});if(b)return"MOMA";if(a)return"YAQS"},sta=function(a){var b=a.getMessagesList(),c,d={serverId:a.getSessionId(),lastUsedTimestamp:X(a,Ti,4),messages:b.map(Li),title:(c=a.getTitle())!=null?c:"",modelId:rta(b),agentId:a.getAgentId(),agentVersion:a.getAgentVersion(),conversationAgentId:a.getConversationAgentId(),
conversationAgentModelId:a.getConversationAgentModelId(),sessionState:a.getSessionState()};a.hasPrivacyMode()&&(d.privacyMode=a.getPrivacyMode());if(a=qta(b.flatMap(function(e){return Ci(e,Bi,13,Di())})))d.threadSource=a;return d},rta=function(a){return a.find(function(b){return b.getModelId()==="duckie_on_gemini_flash_32k"})?"duckie_on_gemini_flash_32k":""},tta=function(){return ela(function(){return Xd(Promise.resolve(void 0))})},uta=function(){},vta=function(a){var b=ng.apply(null,[a].concat(q([]))),
c=new Ui;return{valueSignal:b,get value(){return b()},change:c,ngOnDestroy:function(){c.complete()}}},wta=function(a,b){for(var c=a.length;c--;)b(a[c])},xta=function(){},yta=function(a){return a==null?null:typeof a==="number"?a:a.endsWith("ms")?Ph(a.substring(0,a.length-2)):a.endsWith("s")?Ph(a.substring(0,a.length-1))*1E3:a==="0"?0:null},zta=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},Ata=function(a,b){return{type:7,name:a,definitions:b,options:{}}},Vi=function(a,b){return{type:4,styles:b===void 0?null:b,timings:a}},Wi=function(a){return{type:6,styles:a,offset:null}},Yi=function(a,b){return{type:0,name:a,styles:b,options:void 0}},Zi=function(a,b){return{type:1,expr:a,animation:b,options:null}},Bta=function(a){a&1&&M(0,"a",1)},Cta=function(a){return a==null?void 0:ah(a)},Dta=function(a){if(a&1){var b=t();K(0,"div",1)(1,"button",2);N("click",function(){u(b);var c=P();
return v(c.action())});Q(2);L()()}a&2&&(a=P(),B(2),S(" ",a.data.action," "))},Eta=function(){},Fta=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"p",5),Q(3),L()()());a&2&&(a=P(),B(3),yg(a.error))},Gta=function(){var a=(new URLSearchParams(window.location.search)).get("api_url");if(a)return a;a=window.location.hostname;switch(a.includes("-autopush")||a.includes("-nightly")?1:a.includes("-staging")?2:a.includes("localhost")||a.includes("sslproxy")||a.includes("proxy")?
0:3){case 1:case 0:return"https://autopush-ml4answers-googleapis.corp.google.com";case 2:return"https://staging-ml4answers-googleapis.corp.google.com";case 3:return"https://ml4answers-googleapis.corp.google.com";default:return"https://autopush-ml4answers-googleapis.corp.google.com"}},Hta=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}},Ita=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""}},$i=function(a){a&&typeof a.dispose=="function"&&a.dispose()},aj=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},bj=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Jta=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Kta=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Lta=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Mta=function(a,
b){return a!==null&&b in a},Nta=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Ota=function(a,b){return(b=Nta(a,b))&&a[b]},Pta=function(a){for(var b in a)return!1;return!0},Qta=function(a){for(var b in a)delete a[b]},Rta=function(a,b){b in a&&delete a[b]},Sta=function(a,b,c){if(a!==null&&b in a)throw Error("eb`"+b);a[b]=c},Tta=function(a,b){return a!==null&&b in a?a[b]:void 0},cj=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Vta=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<Uta.length;f++)c=Uta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},dj=function(a){this.src=a;this.listeners={};this.typeCount_=0},Wta=function(){},Xta=function(a){return ph(a)},Yta=function(a,b){b.stack&&(a.stack+="\n"+b.stack);return a},cua=function(a){var b=Zta(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new $ta:new aua;if(b.startsWith("application/x-protobuf")){a=
Zta(a,"Content-Transfer-Encoding");if(!a)return new ej;if(a.toLowerCase()=="base64")return new bua}return null},dua=function(a){var b={sessionId:a.getSessionId(),title:a.getTitle(),client:a.getClient(),sessionState:a.getSessionState()};a.hasAgentId()&&(b.agentId=a.getAgentId());a.hasAgentVersion()&&(b.agentVersion=a.getAgentVersion());a.hasPrivacyMode()&&(b.privacyMode=a.getPrivacyMode());a.hasConversationAgentModelId()&&(b.conversationAgentModelId=a.getConversationAgentModelId());a.hasConversationAgentId()&&
(b.conversationAgentId=a.getConversationAgentId());return b},eua=function(){return"https://static.corp.google.com/devtools/codereview/new_logo_only.svg"},fua=function(){return"https://www.gstatic.com/images/branding/productlogos/code_search/v2/192px.svg"},gua=function(){return"https://static.corp.google.com/devtools/codereview/g3doc_icon.svg"},hua=function(){return"https://www.gstatic.com/images/branding/productlogos/buganizer/v1/192px.svg"},iua=function(){return"https://www.gstatic.com/devnotify/snipit.svg"},
jua=function(){return"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg"},kua=function(){return"https://moma.corp.google.com/images/go_links_logo_192px.svg"},lua=function(){return"https://www.gstatic.com/devopsconsole/images/home/gerrit_2.svg"},pua=function(){for(var a;a=mua.remove();){try{a.fn.call(a.scope)}catch(b){sa(b)}nua.put(a)}oua=!1},rua=function(a){return a?a.__owner?a.__owner:a.parentNode&&a.parentNode.nodeType===11?a.parentNode.host:qua(a):null},sua=function(a,b,c){for(c||
(a=rua(a));a&&!b(a);)a=rua(a)},uua=function(a){if(tua.has(a))return tua.get(a);throw Error("yb`"+a);},wua=function(a){if(vua.has(a))return vua.get(a);throw Error("zb`"+a);},xua=function(a){for(var b=new Map,c=m(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(a[d].string,a[d].xid);return b},yua=function(){return fj?"Webkit":gj?"Moz":null},zua=function(a,b){if(b&&a in b)return a;var c=yua();return c?(c=c.toLowerCase(),a=c+hj(a),b===void 0||a in b?a:null):null},jj=function(a){var b=b===
void 0?Aua:b;var c=Aba(a),d=function(e){e=m(e);e.next();e=ij(e);return b(c,e)};return function(){var e=bd.apply(0,arguments),f=this||ra,g=Bua.get(f);g||(g={},Bua.set(f,g));f=g;g=[this].concat(q(e));e=d?d(g):g;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=m(g);g=k.next().value;k=ij(k);g=a.apply(g,k);f=f[e]=g}return f}},Cua=function(a){kj.call(this);this.domHelper_=a||lj();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=mj(this.domHelper_.document_,this.eventType_,nj(this.handleChange_,
this))},oj=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d},Dua=function(){this.nextPtr_=0;this.maxSize_=50;this.buff_=[]},Eua=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;w=r=0}function b(x){for(var C=g,H=0;H<64;H+=4)C[H/4]=x[H]<<24|x[H+1]<<16|x[H+2]<<8|x[H+3];for(H=16;H<80;H++)x=C[H-3]^C[H-8]^C[H-14]^C[H-16],C[H]=(x<<1|x>>>31)&4294967295;x=e[0];var J=e[1],O=e[2],R=e[3],V=e[4];for(H=0;H<80;H++){if(H<40)if(H<20){var ca=
R^J&(O^R);var oa=1518500249}else ca=J^O^R,oa=1859775393;else H<60?(ca=J&O|R&(J|O),oa=2400959708):(ca=J^O^R,oa=3395469782);ca=((x<<5|x>>>27)&4294967295)+ca+V+oa+C[H]&4294967295;V=R;R=O;O=(J<<30|J>>>2)&4294967295;J=x;x=ca}e[0]=e[0]+x&4294967295;e[1]=e[1]+J&4294967295;e[2]=e[2]+O&4294967295;e[3]=e[3]+R&4294967295;e[4]=e[4]+V&4294967295}function c(x,C){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var H=[],J=0,O=x.length;J<O;++J)H.push(x.charCodeAt(J));x=H}C||(C=x.length);H=0;if(r==0)for(;H+
64<C;)b(x.slice(H,H+64)),H+=64,w+=64;for(;H<C;)if(f[r++]=x[H++],w++,r==64)for(r=0,b(f);H+64<C;)b(x.slice(H,H+64)),H+=64,w+=64}function d(){var x=[],C=w*8;r<56?c(k,56-r):c(k,64-(r-56));for(var H=63;H>=56;H--)f[H]=C&255,C>>>=8;b(f);for(H=C=0;H<5;H++)for(var J=24;J>=0;J-=8)x[C++]=e[H]>>J&255;return x}for(var e=[],f=[],g=[],k=[128],l=1;l<64;++l)k[l]=0;var r,w;a();return{reset:a,update:c,digest:d,digestString:function(){for(var x=d(),C="",H=0;H<x.length;H++)C+="0123456789ABCDEF".charAt(Math.floor(x[H]/
16))+"0123456789ABCDEF".charAt(x[H]%16);return C}}},Kua=function(a,b){b=b===void 0?Fua:b;if(!Gua){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("Jb"));Hua((a.brands||[]).map(function(e){var f=new Iua;return pj(f,1,e.brand).setVersion(e.version)}));typeof a.mobile==="boolean"&&Pi(Jua,2,a.mobile);Gua=a.getHighEntropyValues(b)}var d=new Set(b);return Gua.then(function(e){var f=
Jua.clone();d.has("platform")&&f.setPlatform(e.platform);d.has("platformVersion")&&pj(f,4,e.platformVersion);d.has("architecture")&&pj(f,5,e.architecture);d.has("model")&&f.setModel(e.model);d.has("uaFullVersion")&&pj(f,7,e.uaFullVersion);return f.serialize()}).catch(function(){return Jua.serialize()})},Lua=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a},Mua=function(a){for(var b=qj.lastWindowEvent.target;b;){if(b===a)return!0;b=b.parentElement}return!1},Nua=function(a){if(a)return typeof a===
"function"?a():a},Oua=function(a,b){if(a==null)return null;a=a.getRequestHook(b);return a==null?null:a},Pua=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},Qua=function(a,b){return rj(b,a)},Rua=function(a,b,c){b[a]=c},Sua=function(){return{}},Xua=function(a,b){var c=new a;return b==null?c:Tua(b,Uua,Vua,Wua,a)},Uua=function(a,b){return b[a]},Vua=function(a,b,c){b.Serializable$values[a]=c},Wua=function(a){if(a==null)throw Error("Mb");
return new a},Tua=function(a,b,c,d,e){e=d(e);for(var f=Yua(a,e),g=f.arrays||{},k=f.objects||{},l=f.objectMaps||{},r=m(f.keys||[]),w=r.next(),x={};!w.done;x={mapMetadata:void 0},w=r.next()){w=w.value;var C=b(w,a);if(C!=null){var H=void 0;if(g.hasOwnProperty(w)){if(f.emptyArrayIsUnset&&C.length===0)continue;H=Zua(C,b,c,d,!0,!0,g[w])}else if(k.hasOwnProperty(w))H=Zua(C,b,c,d,!1,!0,k[w]);else if(l.hasOwnProperty(w))x.mapMetadata=l[w],H=x.mapMetadata.isPropertyArray?C.map(function(J){return function(O){return $ua(O,
J.mapMetadata,b,c,d)}}(x)):$ua(C,x.mapMetadata,b,c,d);else if(Array.isArray(C)){if(f.emptyArrayIsUnset&&C.length===0)continue;H=Zua(C,b,c,d,!0,!1)}else H=C;c(w,e,H)}}return e},$ua=function(a,b,c,d,e){for(var f={},g=m(Object.keys(a)),k=g.next();!k.done;k=g.next()){k=k.value;var l=a[k];l!=null&&(f[k]=Zua(l,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},Zua=function(a,b,c,d,e,f,g){if(f&&g==null)throw Error("Nb");if(a==null)return a;var k;e&&f?k=a.map(function(l){return Tua(l,b,c,d,g)}):e&&
!f?k=a.map(function(l){return l}):!e&&f?k=Tua(a,b,c,d,g):typeof a==="object"?k=JSON.parse(JSON.stringify(a)):k=a;return k},Yua=function(a,b){if(b instanceof sj)a=Pua(b.getPartialClassMetadata());else if(a instanceof sj)a=Pua(a.getPartialClassMetadata());else throw Error("Ob");return a},ava=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}},bva=function(a,b,c){c=c===void 0?{}:c;b=m(Object.entries(b));for(var d=
b.next();!d.done;d=b.next()){var e=m(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},cva=function(a){if(!a.ok)throw Error(a.statusText);return a.json()},dva=function(a,b){return(window.injected||new Map).get(a)||b},fva=function(a){return function(b,c){if(typeof c==="object")b=eva(a,b,c);else{var d=b.hasOwnProperty(c);b.constructor.createProperty(c,a);b=d?Object.getOwnPropertyDescriptor(b,c):void 0}return b}},iva=function(a,b,c){if(a.nodeType!==1)return gva;b=b.toLowerCase();
if(b==="innerhtml"||b==="innertext"||b==="textcontent"||b==="outerhtml")return function(){return rh(tj)};var d=hva.get(a.tagName+" "+b);return d!==void 0?d:/^on/.test(b)&&c==="attribute"&&(a=a.tagName.includes("-")?HTMLElement.prototype:a,b in a)?function(){throw Error("Ub");}:gva},lva=function(a,b){if(!jva(a)||!a.hasOwnProperty("raw"))throw Error("Xb");return kva!==void 0?kva.createHTML(b):b},vj=function(a,b,c,d){c=c===void 0?a:c;if(b===uj)return b;var e,f=d!==void 0?(e=c.__directives)==null?void 0:
e[d]:c.__directive;e=mva(b)?void 0:b._$litDirective$;var g;if(((g=f)==null?void 0:g.constructor)!==e){var k,l;(k=f)==null||(l=k._$notifyDirectiveConnectionChanged)==null||l.call(k,!1);e===void 0?f=void 0:(f=new e(a),f._$initialize(a,c,d));if(d!==void 0){var r,w;((w=(r=c).__directives)!=null?w:r.__directives=[])[d]=f}else c.__directive=f}f!==void 0&&(b=vj(a,f._$resolve(a,b.values),f,d));return b},pva=function(a){this._$disconnectableChildren!==void 0?(nva(this),this._$parent=a,ova(this)):this._$parent=
a},rva=function(a,b,c){c=c===void 0?0:c;var d=this._$committedValue,e=this._$disconnectableChildren;if(e!==void 0&&e.size!==0)if(b===void 0?0:b)if(Array.isArray(d))for(a=c;a<d.length;a++)qva(d[a],!1),nva(d[a]);else d!=null&&(qva(d,!1),nva(d));else qva(this,a)},sva=function(a){a&1&&M(0,"span",21)},tva=function(a){a&1&&(K(0,"label",20),dg(1,1),F(2,sva,1,0,"span",21),L());a&2&&(a=P(2),I("floating",a._shouldLabelFloat())("monitorResize",a._hasOutline())("id",a._labelId),Kf("for",a._control.disableAutomaticLabeling?
null:a._control.id),B(2),G(!a.hideRequiredMarker&&a._control.required?2:-1))},uva=function(a){a&1&&F(0,tva,3,5,"label",20);a&2&&(a=P(),G(a._hasFloatingLabel()?0:-1))},vva=function(a){a&1&&M(0,"div",7)},wva=function(){},xva=function(a){a&1&&E(0,wva,0,0,"ng-template",13);a&2&&(P(2),a=qg(1),I("ngTemplateOutlet",a))},yva=function(a){a&1&&(K(0,"div",9),F(1,xva,1,1,null,13),L());a&2&&(a=P(),I("matFormFieldNotchedOutlineOpen",a._shouldLabelFloat()),B(),G(a._forceDisplayInfixLabel()?-1:1))},zva=function(a){a&
1&&(K(0,"div",10,2),dg(2,2),L())},Ava=function(a){a&1&&(K(0,"div",11,3),dg(2,3),L())},Bva=function(){},Cva=function(a){a&1&&E(0,Bva,0,0,"ng-template",13);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},Dva=function(a){a&1&&(K(0,"div",14,4),dg(2,4),L())},Eva=function(a){a&1&&(K(0,"div",15,5),dg(2,5),L())},Fva=function(a){a&1&&M(0,"div",16)},Gva=function(a){a&1&&(K(0,"div",18),dg(1,6),L())},Hva=function(a){a&1&&(K(0,"mat-hint",22),Q(1),L());a&2&&(a=P(2),I("id",a._hintLabelId),B(),yg(a.hintLabel))},Iva=
function(a){a&1&&(K(0,"div",19),F(1,Hva,2,2,"mat-hint",22),dg(2,7),M(3,"div",23),dg(4,8),L());a&2&&(a=P(),B(),G(a.hintLabel?1:-1))},Kva=function(a){return a==null||Jva(a)===0},Jva=function(a){if(a!=null){if(Array.isArray(a)||typeof a==="string")return a.length;if(a instanceof Set)return a.size}return null},Lva=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}},Mva=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}},Nva=function(a){return Kva(a.value)?{required:!0}:null},Ova=function(a){return function(b){var c,d,e=(d=(c=b.value)==null?void 0:c.length)!=null?d:Jva(b.value);return e!==null&&e>a?{maxlength:{requiredLength:a,actualLength:e}}:null}},Qva=function(a){if(!a)return Pva;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(Kva(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},Pva=function(){return null},Rva=function(a){return a!=null},Sva=function(a){return Nka(a)?Xd(a):a},Tva=function(a){var b={};a.forEach(function(c){b=c!=null?Object.assign({},b,c):b});return Object.keys(b).length===0?null:b},Uva=function(a,b){return b.map(function(c){return c(a)})},Vva=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:
b})},Wva=function(a){if(!a)return null;var b=a.filter(Rva);return b.length==0?null:function(c){return Tva(Uva(c,b))}},Xva=function(a){return a!=null?Wva(Vva(a)):null},Yva=function(a){if(!a)return null;var b=a.filter(Rva);return b.length==0?null:function(c){c=Uva(c,b).map(Sva);return qe(c).pipe(A(Tva))}},Zva=function(a){return a!=null?Yva(Vva(a)):null},$va=function(a,b){return a===null?[b]:Array.isArray(a)?[].concat(q(a),[b]):[a,b]},awa=function(a,b){return Array.isArray(a)?a.includes(b):a===b},bwa=
function(a){var b=[wj],c=a?Array.isArray(a)?a:[a]:[];(b?Array.isArray(b)?b:[b]:[]).forEach(function(d){awa(c,d)||c.push(d)});return c},cwa=function(a,b){return[].concat(q(b.path),[a])},iwa=function(a,b,c){c=c===void 0?"whenDisabledForLegacyCode":c;dwa(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)}ewa(a,b);fwa(a,b);gwa(a,b);hwa(a,b)},kwa=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),
b.valueAccessor.registerOnTouched(c));jwa(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},lwa=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},hwa=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)})}},dwa=function(a,b){var c=a._rawValidators;b.validator!==null?mwa(a,
$va(c,b.validator)):typeof c==="function"&&mwa(a,[c]);c=a._rawAsyncValidators;b.asyncValidator!==null?nwa(a,$va(c,b.asyncValidator)):typeof c==="function"&&nwa(a,[c]);c=function(){return xj(a)};lwa(b._rawValidators,c);lwa(b._rawAsyncValidators,c)},jwa=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(){};lwa(b._rawValidators,a);lwa(b._rawAsyncValidators,a);return c},ewa=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;a.updateOn==="change"&&owa(a,b)})},gwa=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;a.updateOn==="blur"&&a._pendingChange&&owa(a,
b);a.updateOn!=="submit"&&Gma(a)})},owa=function(a,b){a._pendingDirty&&Fma(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},fwa=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)})},pwa=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.firstChange?!0:!Object.is(b,a.currentValue)},qwa=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)})},rwa=function(a){if(!a)return null;var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===yj?b=e:Object.getPrototypeOf(e.constructor)===zj?c=e:d=e});return d?d:c?c:b?b:null},Aj=function(a){return a!=null&&!Array.isArray(a)&&typeof a==="object"},swa=function(a,b,c){a=a.controls;if(!(b?Object.keys(a):a).length)throw new Vc(1E3,
"");if(!a[c])throw new Vc(1001,"");},twa=function(a,b){a._forEachChild(function(c,d){if(b[d]===void 0)throw new Vc(1002,"");})},uwa=function(a){return typeof a==="object"&&a!==null&&Object.keys(a).length===2&&"value"in a&&"disabled"in a},vwa=function(a){return!!a&&(a.asyncValidators!==void 0||a.validators!==void 0||a.updateOn!==void 0)},wwa=function(a,b,c){for(var d=0;d<a.length;d++){var e=a[d],f=b[d];if(e[0]===":")c[e.substring(1)]=f;else if(e!==f.path)return!1}return!0},xwa=function(a,b,c){var d=
c.path.split("/"),e=d.indexOf("**");if(e===-1){if(d.length>a.length||c.pathMatch==="full"&&(b.hasChildren()||d.length<a.length))return null;var f={};a=a.slice(0,d.length);return wwa(d,a,f)?{consumed:a,posParams:f}:null}if(e!==d.lastIndexOf("**"))return null;f=d.slice(0,e);d=d.slice(e+1);if(f.length+d.length>a.length||c.pathMatch==="full"&&b.hasChildren()&&c.path!=="**")return null;b={};return wwa(f,a.slice(0,f.length),b)&&wwa(d,a.slice(a.length-d.length),b)?{consumed:a,posParams:b}:null},ywa=function(a){return new Promise(function(b,
c){a.pipe(rf()).subscribe({next:function(d){return b(d)},error:function(d){return c(d)}})})},Bj=function(a,b){var c=a?zwa(a):void 0,d=b?zwa(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!Awa(a[d],b[d]))return!1;return!0},zwa=function(a){return[].concat(q(Object.keys(a)),q(Object.getOwnPropertySymbols(a)))},Awa=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(q(a)).sort();var c=[].concat(q(b)).sort();return a.every(function(d,
e){return c[e]===d})}return a===b},Cj=function(a){return ye(a)?a:Nka(a)?Xd(Promise.resolve(a)):ee(a)},Bwa=function(a){return ye(a)?ywa(a):Promise.resolve(a)},Ewa=function(a,b,c){return Cwa[c.paths](a.root,b.root,c.matrixParams)&&Dwa[c.queryParams](a.queryParams,b.queryParams)&&!(c.fragment==="exact"&&a.fragment!==b.fragment)},Fwa=function(a,b){return Bj(a,b)},Hwa=function(a,b,c){if(!Dj(a.segments,b.segments)||!Gwa(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||
!Hwa(a.children[d],b.children[d],c))return!1;return!0},Iwa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return Awa(a[c],b[c])})},Kwa=function(a,b,c){return Jwa(a,b,b.segments,c)},Jwa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Dj(a,c)&&!b.hasChildren()&&Gwa(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Dj(a.segments,c)||!Gwa(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!Kwa(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 Dj(a.segments,e)&&Gwa(a.segments,e,d)&&a.children.primary?Jwa(a.children.primary,b,c,d):!1},Gwa=function(a,b,c){return b.every(function(d,e){return Dwa[c](a[e].parameters,d.parameters)})},Lwa=function(a,b){return Dj(a,b)&&a.every(function(c,d){return Bj(c.parameters,b[d].parameters)})},Dj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},Mwa=function(a,
b){var c=[];Object.entries(a.children).forEach(function(d){var e=m(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=m(d);d=e.next().value;e=e.next().value;d!=="primary"&&(c=c.concat(b(e,d)))});return c},Pwa=function(a){return a.segments.map(function(b){return Nwa(b.path)+Owa(b.parameters)}).join("/")},Qwa=function(a,b){if(!a.hasChildren())return Pwa(a);if(b){b=a.children.primary?Qwa(a.children.primary,!1):"";var c=[];Object.entries(a.children).forEach(function(d){var e=
m(d);d=e.next().value;e=e.next().value;d!=="primary"&&c.push(d+":"+Qwa(e,!1))});return c.length>0?b+"("+c.join("//")+")":b}b=Mwa(a,function(d,e){return e==="primary"?[Qwa(a.children.primary,!1)]:[e+":"+Qwa(d,!1)]});return Object.keys(a.children).length===1&&a.children.primary!=null?Pwa(a)+"/"+b[0]:Pwa(a)+"/("+b.join("//")+")"},Rwa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},Swa=function(a){return Rwa(a).replace(/%3B/gi,
";")},Nwa=function(a){return Rwa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},Owa=function(a){return Object.entries(a).map(function(b){var c=m(b);b=c.next().value;c=c.next().value;return";"+Nwa(b)+"="+Nwa(c)}).join("")},Twa=function(a){a=Object.entries(a).map(function(b){b=m(b);var c=b.next().value;b=b.next().value;return Array.isArray(b)?b.map(function(d){return Swa(c)+"="+Swa(d)}).join("&"):Swa(c)+"="+Swa(b)}).filter(function(b){return b});return a.length?"?"+a.join("&"):""},
Vwa=function(a){return(a=a.match(Uwa))?a[0]:""},Wwa=function(a){var b={};return a.segments.length>0?new Fj([],(b.primary=a,b)):a},Xwa=function(a){for(var b={},c=m(Object.entries(a.children)),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e=Xwa(e);if(d==="primary"&&e.segments.length===0&&e.hasChildren())for(d=m(Object.entries(e.children)),e=d.next();!e.done;e=d.next()){var f=m(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 Fj(a.segments,b);a.numberOfChildren===1&&a.children.primary&&(b=a.children.primary,a=new Fj(a.segments.concat(b.segments),b.children));return a},Hj=function(a){return a instanceof Gj},Ywa=function(a){function b(f){for(var g={},k=m(f.children),l=k.next();!l.done;l=k.next()){l=l.value;var r=b(l);g[l.outlet]=r}g=new Fj(f.url,g);f===a&&(c=g);return g}var c,d=b(a.root);d=Wwa(d);var e;return(e=c)!=null?e:d},exa=function(a,b,c,d,e){for(var f=a;f.parent;)f=f.parent;if(b.length===0)return Zwa(f,f,
f,c,d,e);b=$wa(b);if(b.isAbsolute&&b.commands.length===1&&b.commands[0]=="/")return Zwa(f,f,new Fj([],{}),c,d,e);var g=f;if(b.isAbsolute)a=new axa(g,!0,0);else if(a)if(a.parent===null)a=new axa(a,!0,0);else{g=a;a=a.segments.length-1+(bxa(b.commands[0])?0:1);for(var k=b.numberOfDoubleDots;k>a;){k-=a;g=g.parent;if(!g)throw new Vc(4005,!1);a=g.segments.length}a=new axa(g,!1,a-k)}else a=new axa(g,!1,NaN);b=a.processChildren?cxa(a.segmentGroup,a.index,b.commands):dxa(a.segmentGroup,a.index,b.commands);
return Zwa(f,a.segmentGroup,b,c,d,e)},bxa=function(a){return typeof a==="object"&&a!=null&&!a.outlets&&!a.segmentPath},fxa=function(a){return typeof a==="object"&&a!=null&&a.outlets},gxa=function(a,b,c){a||(a="\u0275");var d=new Gj,e={};d.queryParams=(e[a]=b,e);return c.parse(c.serialize(d)).queryParams[a]},Zwa=function(a,b,c,d,e,f){var g={};d=m(Object.entries(d!=null?d:{}));for(var k=d.next(),l={};!k.done;l={key$jscomp$567:void 0},k=d.next()){var r=m(k.value);k=r.next().value;r=r.next().value;l.key$jscomp$567=
k;k=r;g[l.key$jscomp$567]=Array.isArray(k)?k.map(function(w){return function(x){return gxa(w.key$jscomp$567,x,f)}}(l)):gxa(l.key$jscomp$567,k,f)}a=a===b?c:hxa(a,b,c);a=Wwa(Xwa(a));return new Gj(a,g,e)},hxa=function(a,b,c){var d={};Object.entries(a.children).forEach(function(e){var f=m(e);e=f.next().value;f=f.next().value;d[e]=f===b?c:hxa(f,b,c)});return new Fj(a.segments,d)},$wa=function(a){if(typeof a[0]==="string"&&a.length===1&&a[0]==="/")return new ixa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,
e,f){if(typeof e==="object"&&e!=null){if(e.outlets){var g={};Object.entries(e.outlets).forEach(function(k){var l=m(k);k=l.next().value;l=l.next().value;g[k]=typeof l==="string"?l.split("/"):l});return[].concat(q(d),[{outlets:g}])}if(e.segmentPath)return[].concat(q(d),[e.segmentPath])}return typeof e!=="string"?[].concat(q(d),[e]):f===0?(e.split("/").forEach(function(k,l){if(l!=0||k!==".")l==0&&k===""?c=!0:k===".."?b++:k!=""&&d.push(k)}),d):[].concat(q(d),[e])},[]);return new ixa(c,b,a)},jxa=function(a){if(fxa(a[0]))return a[0].outlets;
var b={};return b.primary=a,b},dxa=function(a,b,c){a!=null||(a=new Fj([],{}));if(a.segments.length===0&&a.hasChildren())return cxa(a,b,c);a:{var d=a;for(var e=0,f=b,g={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=g;break a}var k=d.segments[f],l=c[e];if(fxa(l))break;l=""+l;var r=e<c.length-1?c[e+1]:null;if(f>0&&l===void 0)break;if(l&&r&&typeof r==="object"&&r.outlets===void 0){if(l!=k.path||!Bj(r,k.parameters)){d=g;break a}e+=2}else{r={};if(l!=k.path||!Bj(r,k.parameters)){d=
g;break a}e++}f++}d={match:!0,pathIndex:f,commandIndex:e}}e=c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?(b=new Fj(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new Fj(a.segments.slice(d.pathIndex),a.children),cxa(b,0,e)):d.match&&e.length===0?new Fj(a.segments,{}):d.match&&!a.hasChildren()?kxa(a,b,c):d.match?cxa(a,0,e):kxa(a,b,c)},cxa=function(a,b,c){if(c.length===0)return new Fj(a.segments,{});var d=jxa(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=cxa(a.children.primary,b,c),new Fj(a.segments,c.children);Object.entries(d).forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;typeof g==="string"&&(g=[g]);g!==null&&(e[f]=dxa(a.children[f],b,g))});Object.entries(a.children).forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;d[f]===void 0&&(e[f]=g)});return new Fj(a.segments,e)},kxa=function(a,b,c){for(var d=a.segments.slice(0,b),
e=0;e<c.length;){var f=c[e];if(fxa(f))return a=lxa(f.outlets),new Fj(d,a);if(e===0&&bxa(c[0]))d.push(new Ij(a.segments[b].path,mxa(c[0]))),e++;else{f=fxa(f)?f.outlets.primary:""+f;var g=e<c.length-1?c[e+1]:null;f&&g&&bxa(g)?(d.push(new Ij(f,mxa(g))),e+=2):(d.push(new Ij(f,{})),e++)}}return new Fj(d,{})},lxa=function(a){var b={};Object.entries(a).forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;typeof d==="string"&&(d=[d]);d!==null&&(b[c]=kxa(new Fj([],{}),0,d))});return b},mxa=function(a){var b=
{};Object.entries(a).forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b[c]=""+d});return b},nxa=function(a,b){a.providers&&!a._injector&&(a._injector=Gka(a.providers,b,"Route: "+a.path));var c;return(c=a._injector)!=null?c:b},Jj=function(a){return a.outlet||"primary"},oxa=function(a,b){var c=a.filter(function(d){return Jj(d)===b});c.push.apply(c,q(a.filter(function(d){return Jj(d)!==b})));return c},Kj=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},pxa=function(a,b){if(a===b.value)return b;b=m(b.children);for(var c=b.next();!c.done;c=b.next())if(c=pxa(a,c.value))return c;return null},qxa=function(a,b){if(a===b.value)return[b];for(var c=m(b.children),d=c.next();!d.done;d=c.next())if(d=qxa(a,d.value),d.length)return d.unshift(b),d;return[]},rxa=function(a){var b=
{};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},txa=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[sxa]=d.title);return a},uxa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return uxa(a,c)})},vxa=function(a){var b=a.children.length>0?" { "+a.children.map(vxa).join(", ")+" } ":"";return""+a.value+b},wxa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Bj(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==
c.fragment&&a.fragmentSubject.next(c.fragment);Bj(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(!Bj(d[f],e[f])){d=!1;break a}d=!0}}d||a.urlSubject.next(c.url);Bj(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},xxa=function(a,b){var c=Bj(a.params,b.params)&&Lwa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||xxa(a.parent,
b.parent))},yxa=function(a){var b=a.children&&a.children.map(yxa);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||a.outlet==="primary"||(a.component=zxa);return a},Cxa=function(a,b,c){a=Axa(a,b._root,c?c._root:void 0);return new Bxa(a,b)},Axa=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=Dxa(a,b,c);return new Lj(d,b)}d=Exa(b.value);b=b.children.map(function(e){return Axa(a,
e)});return new Lj(d,b)},Dxa=function(a,b,c){return b.children.map(function(d){for(var e=m(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return Axa(a,d,f);return Axa(a,d)})},Exa=function(a){return new Mj(new Nj(a.url),new Nj(a.params),new Nj(a.queryParams),new Nj(a.fragment),new Nj(a.data),a.outlet,a.component,a)},Gxa=function(a){var b=Hj(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a;a=b.redirectTo;b=b.navigationBehaviorOptions;var c=Fxa(0);
c.url=a;c.navigationBehaviorOptions=b;return c},Fxa=function(a){var b=Error("ac`");b.ngNavigationCancelingError=!0;b.cancellationCode=a;return b},Hxa=function(a){return!!a&&a.ngNavigationCancelingError},Oj=function(){return Af(function(a){return le(a.map(function(b){return b.pipe(nf(1),zf(Ixa))})).pipe(A(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!==!0){if(c===Ixa)return Ixa;if(c===!1||Hj(c))return c}return!0}),we(function(b){return b!==Ixa}),nf(1))})},Jxa=function(a){return a.aborted?
ee(void 0).pipe(nf(1)):new Vd(function(b){var c=function(){b.next();b.complete()};a.addEventListener("abort",c);return function(){return a.removeEventListener("abort",c)}})},Pj=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?typeof a!=="function"||uea(a)!==null?b.get(a):a:d},Mxa=function(a,b,c,d,e){e=e===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=rxa(b);a.children.forEach(function(g){var k=f[g.value.outlet],l=d.concat([g.value]),r=e;r=r===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:
r;var w=g.value,x=k?k.value:null,C=c?c.getContext(g.value.outlet):null;if(x&&w.routeConfig===x.routeConfig){var H=Kxa(x,w,w.routeConfig.runGuardsAndResolvers);H?r.canActivateChecks.push(new Lxa(l)):(w.data=x.data,w._resolvedData=x._resolvedData);w.component?Mxa(g,k,C?C.children:null,l,r):Mxa(g,k,c,l,r);H&&C&&C.outlet&&C.outlet.isActivated&&r.canDeactivateChecks.push(new Nxa(C.outlet.component,x))}else x&&Oxa(k,C,r),r.canActivateChecks.push(new Lxa(l)),w.component?Mxa(g,null,C?C.children:null,l,r):
Mxa(g,null,c,l,r);delete f[g.value.outlet]});Object.entries(f).forEach(function(g){var k=m(g);g=k.next().value;k=k.next().value;return Oxa(k,c.getContext(g),e)});return e},Kxa=function(a,b,c){if(typeof c==="function")return c(a,b);switch(c){case "pathParamsChange":return!Dj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Dj(a.url,b.url)||!Bj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!xxa(a,b)||!Bj(a.queryParams,b.queryParams);default:return!xxa(a,
b)}},Oxa=function(a,b,c){var d=rxa(a),e=a.value;Object.entries(d).forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;e.component?b?Oxa(g,b.children.getContext(f),c):Oxa(g,null,c):Oxa(g,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new Nxa(b.outlet.component,e)):c.canDeactivateChecks.push(new Nxa(null,e)):c.canDeactivateChecks.push(new Nxa(null,e))},Pxa=function(a){return typeof a==="function"},Qxa=function(a){return a instanceof Dha||(a==null?void 0:
a.name)==="EmptyError"},Txa=function(a,b){return me(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,g=f.canActivateChecks;f=f.canDeactivateChecks;return f.length===0&&g.length===0?ee(Object.assign({},c,{guardsResult:!0})):Rxa(f,d,e,a).pipe(me(function(k){return k&&typeof k==="boolean"?Sxa(d,g,a,b):ee(k)}),A(function(k){return Object.assign({},c,{guardsResult:k})}))})},Rxa=function(a,b,c,d){return Xd(a).pipe(me(function(e){return Uxa(e.component,e.route,c,b,d)}),rf(function(e){return e!==
!0},!0))},Sxa=function(a,b,c,d){return Xd(b).pipe(bla(function(e){var f=e.route.parent;f!==null&&d&&d(new Vxa(f));f=ee(!0);var g=e.route;g!==null&&d&&d(new Wxa(g));g=ee(!0);return oe(f,g,Xxa(a,e.path,c),Yxa(a,e.route,c))}),rf(function(e){return e!==!0},!0))},Yxa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||d.length===0)return ee(!0);d=d.map(function(e){return pe(function(){var f,g=(f=Kj(b))!=null?f:c,k=Pj(e,g);f=k&&Pxa(k.canActivate)?k.canActivate(b,a):id(g,function(){return k(b,
a)});return Cj(f).pipe(rf())})});return ee(d).pipe(Oj())},Xxa=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 pe(function(){var f=e.guards.map(function(g){var k,l=(k=Kj(e.node))!=null?k:c,r=Pj(g,l);g=r&&Pxa(r.canActivateChild)?r.canActivateChild(d,a):id(l,function(){return r(d,a)});return Cj(g).pipe(rf())});
return ee(f).pipe(Oj())})});return ee(b).pipe(Oj())},Uxa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||f.length===0)return ee(!0);f=f.map(function(g){var k,l=(k=Kj(b))!=null?k:e,r=Pj(g,l);g=r&&Pxa(r.canDeactivate)?r.canDeactivate(a,b,c,d):id(l,function(){return r(a,b,c,d)});return Cj(g).pipe(rf())});return ee(f).pipe(Oj())},$xa=function(a,b,c,d){var e=b.canLoad;if(e===void 0||e.length===0)return ee(!0);e=e.map(function(f){var g=Pj(f,a);f=g&&Pxa(g.canLoad)?g.canLoad(b,
c):id(a,function(){return g(b,c)});f=Cj(f);return d?f.pipe(Bf(Jxa(d))):f});return ee(e).pipe(Oj(),Zxa())},Zxa=function(){return Ud(Cf(function(a){if(typeof a!=="boolean")throw Gxa(a);}),A(function(a){return a===!0}))},aya=function(a,b,c,d){var e=b.canMatch;if(!e||e.length===0)return ee(!0);e=e.map(function(f){var g=Pj(f,a);f=g&&Pxa(g.canMatch)?g.canMatch(b,c):id(a,function(){return g(b,c)});f=Cj(f);return d?f.pipe(Bf(Jxa(d))):f});return ee(e).pipe(Oj(),Zxa())},bya=function(a,b,c){if(typeof a==="string")return Promise.resolve(a);
var d=b.queryParams,e=b.fragment,f=b.routeConfig,g=b.url,k=b.outlet,l=b.params,r=b.data,w=b.title;return ywa(Cj(id(c,function(){return a({params:l,data:r,queryParams:d,fragment:e,routeConfig:f,url:g,outlet:k,title:w})})))},eya=function(a,b,c,d,e){var f=cya(a,b,c);if(!f.matched)return ee(f);d=nxa(b,d);return aya(d,b,c,e).pipe(A(function(g){return g===!0?f:Object.assign({},dya)}))},cya=function(a,b,c){if(b.path==="")return b.pathMatch==="full"&&(a.hasChildren()||c.length>0)?Object.assign({},dya):{matched:!0,
consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||xwa)(c,a,b);if(!a)return Object.assign({},dya);var d={},e;Object.entries((e=a.posParams)!=null?e:{}).forEach(function(g){var k=m(g);g=k.next().value;k=k.next().value;d[g]=k.path});e=a.consumed.length>0?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var f;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:e,positionalParamSegments:(f=a.posParams)!=
null?f:{}}},iya=function(a,b,c,d){if(c.length>0&&fya(a,c,d)){var e=Fj;a=new Fj(c,a.children);c={};c.primary=a;a=m(d);for(d=a.next();!d.done;d=a.next())if(d=d.value,d.path===""&&Jj(d)!=="primary"){var f=new Fj([],{});c[Jj(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(c.length===0&&gya(a,c,d)){b=Fj;e=a.segments;f=a.children;var g={};d=m(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,hya(a,c,k)&&!f[Jj(k)]){var l=new Fj([],{});g[Jj(k)]=l}a=Object.assign({},f,g);c={segmentGroup:new b(e,
a),slicedSegments:c}}else c={segmentGroup:new Fj(a.segments,a.children),slicedSegments:c};return c},fya=function(a,b,c){return c.some(function(d){return hya(a,b,d)&&Jj(d)!=="primary"})},gya=function(a,b,c){return c.some(function(d){return hya(a,b,d)})},hya=function(a,b,c){return(a.hasChildren()||b.length>0)&&c.pathMatch==="full"?!1:c.path===""},kya=function(a,b,c,d,e,f,g,k){g=g===void 0?"emptyOnly":g;return y(function(l){return l.return((new jya(a,b,c,d,e,g,f,k)).recognize())})},lya=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)})},mya=function(a){return(a=a.value.routeConfig)&&a.path===""},nya=function(a){var b=[],c=new Set;a=m(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$209:void 0},d=a.next())e.node$jscomp$209=d.value,mya(e.node$jscomp$209)?(d=b.find(function(f){return function(g){return f.node$jscomp$209.value.routeConfig===g.value.routeConfig}}(e)),d!==void 0?(d.children.push.apply(d.children,q(e.node$jscomp$209.children)),
c.add(d)):b.push(e.node$jscomp$209)):b.push(e.node$jscomp$209);a=m(c);for(e=a.next();!e.done;e=a.next())e=e.value,d=nya(e.children),b.push(new Lj(e.value,d));return b.filter(function(f){return!c.has(f)})},pya=function(a,b,c,d,e,f,g){var k=a.get(oya);return me(function(l){return ee(l).pipe(Af(function(r){return k(a,b,c,d,r.extractedUrl,e,f,g)}),A(function(r){return Object.assign({},l,{targetSnapshot:r.state,urlAfterRedirects:r.tree})}))})},sya=function(a,b){return me(function(c){var d=c.targetSnapshot,
e=c.guards.canActivateChecks;if(!e.length)return ee(c);var f=new Set(e.map(function(w){return w.route})),g=new Set;e=m(f);for(var k=e.next();!k.done;k=e.next())if(k=k.value,!g.has(k)){k=m(qya(k));for(var l=k.next();!l.done;l=k.next())g.add(l.value)}var r=0;return Xd(g).pipe(bla(function(w){if(f.has(w))return rya(w,d,a,b);w.data=txa(w,w.parent,a).resolve;return ee(void 0)}),Cf(function(){return r++}),qla(),me(function(){return r===g.size?ee(c):ue}))})},qya=function(a){var b=a.children.map(function(c){return qya(c)}).flat();
return[a].concat(q(b))},rya=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[sxa]=e.title);return pe(function(){a.data=txa(a,a.parent,c).resolve;return tya(f,a,b,d).pipe(A(function(g){a._resolvedData=g;a.data=Object.assign({},a.data,g);return null}))})},tya=function(a,b,c,d){var e=zwa(a);if(e.length===0)return ee({});var f={};return Xd(e).pipe(me(function(g){return uya(a[g],b,c,d).pipe(rf(),Cf(function(k){f[g]=k}))}),
qla(),A(function(){return f}),jf(function(g){return Qxa(g)?ue:ge(g)}))},uya=function(a,b,c,d){var e,f=(e=Kj(b))!=null?e:d,g=Pj(a,f);a=g.resolve?g.resolve(b,c):id(f,function(){return g(b,c)});return Cj(a)},vya=function(a){return Af(function(b){var c=a(b);return c?Xd(c).pipe(A(function(){return b})):ee(b)})},Aya=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return z(r,Bwa(id(b,function(){return a.loadChildren()})),2);case 2:return d=r.yieldResult,z(r,Promise.resolve(wya(d)?
d["default"]:d),3);case 3:e=r.yieldResult;if(e instanceof xya||Array.isArray(e)){f=e;r.jumpTo(4);break}return z(r,Promise.resolve(new yya(e)),5);case 5:f=r.yieldResult;case 4:return c&&c(a),Array.isArray(f)?k=f:(g=f.create(b).injector,k=g.get(zya,[],{optional:!0,self:!0}).flat()),l=k.map(yxa),r.return({routes:l,injector:g})}})},wya=function(a){return a&&typeof a==="object"&&"default"in a},Dya=function(a,b,c){var d=a.get(Bya),e=a.get(Sh);if(!e.startViewTransition||d.skipNextTransition)return d.skipNextTransition=
!1,new Promise(function(r){return setTimeout(r)});var f,g=new Promise(function(r){f=r}),k=e.startViewTransition(function(){f();return Cya(a)});k.ready.catch(function(){});var l=d.onViewTransitionCreated;l&&id(a,function(){return l({transition:k,from:b,to:c})});return g},Cya=function(a){return new Promise(function(b){Ge({read:function(){return setTimeout(b)}},{injector:a})})},Eya=function(a,b){a.events.pipe(we(function(c){return c instanceof Qj||c instanceof Rj||c instanceof Sj||c instanceof Tj}),
A(function(c){return c instanceof Qj||c instanceof Tj?0:c instanceof Rj&&(c.code===0||c.code===1)?2:1}),we(function(c){return c!==2}),nf(1)).subscribe(function(){b()})},Fya=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},Gya=function(a,b){if(a&1){var c=t();K(0,"link-chip",13);N("removeContextSource",function(d){u(c);var e=P(3);return v(e.removeContextSource(d))});L()}a&2&&(a=b.$implicit,I("label",Dg(a.label))("iconUrl",Dg(a.imgSrc))("linkUrl",Dg(a.fullUrl))("showRemoveButton",!0))},Hya=
function(a){a&1&&(K(0,"span",11),Q(1,"Links:"),L(),Of(2,Gya,1,7,"link-chip",12,Nf));a&2&&(P(2),a=bg(0),B(2),Pf(a))},Iya=function(a){a&1&&(K(0,"span",9)(1,"mat-icon",14),Q(2,"error"),L(),K(3,"span"),Q(4),L()());a&2&&(P(2),a=bg(2),B(4),S(" ",a," "))},Jya=function(a){a&1&&(K(0,"span",10)(1,"span",15),Q(2,"Links:"),L(),K(3,"a",16),Q(4),K(5,"mat-icon",17),Q(6,"open_in_new"),L()()());a&2&&(a="Learn more about links "+P(2).agentName+" can use",B(4),S(" ",a," "))},Kya=function(a){a&1&&(K(0,"div",1),F(1,Hya,
4,0)(2,Iya,5,1,"span",9)(3,Jya,7,1,"span",10),L());if(a&2){P();a=bg(0);var b=bg(2);B();G(a&&a.length>0?1:b?2:3)}},Lya=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P();return v(c.cancelDuckieStream())});K(1,"mat-icon",19);Q(2," stop_circle ");L()()}},Mya=function(a){if(a&1){var b=t();K(0,"button",20);T(1,"async");T(2,"async");N("click",function(){u(b);var c=P();return v(c.sendMessage())});K(3,"mat-icon",19);Q(4," send ");L()()}a&2&&(a=P(),I("disabled",U(1,2,a.isDuckieThinking$)||
!(a.inputText()&&(a.inputText()||"").trim().length>0)),Kf("aria-label",U(2,4,a.isDuckieThinking$)?"Stop Duckie's response":"Send message"))},Nya=function(a){a&1&&Wf(0,null,0)},Oya=function(a){if(a&1){var b=t();K(0,"message-input",2);N("submitMessage",function(c){u(b);var d=P();return v(d.submitMessage.emit(c))});L()}a&2&&(a=P(),I("inputText",a.inputText()))},Pya=function(a){a&1&&(Rf(0,"span"),Q(1),Sf());a&2&&(a=P(),B(),yg(a.overrideAgentName))},Qya=function(a){a&1&&(Rf(0,"a",2),Q(1,"Duckie"),Sf())},
Rya=function(a){a&1&&Wf(0,null,0)},Sya=function(a){a&1&&M(0,"reminder-blurb")},Uj=function(a){a||(a=p(Ee));var b=new Vd(function(c){if(a.destroyed)c.next();else return a.onDestroy(c.next.bind(c))});return function(c){return c.pipe(Bf(b))}},Tya=function(a){var b=p(Ae),c=new wf(1),d=gf(function(){try{var e=a()}catch(f){Rc(function(){return c.error(f)});return}Rc(function(){return c.next(e)})},{injector:b,manualCleanup:!0});b.get(Ee).onDestroy(function(){d.destroy();c.complete()});return c.asObservable()},
Vya=function(a,b){var c,d,e=(b==null?0:b.manualCleanup)?null:(d=b==null?void 0:(c=b.injector)==null?void 0:c.get(Ee))!=null?d:p(Ee);c=Uya(b==null?void 0:b.equal);var f=(b==null?0:b.requireSync)?ng({kind:0},{equal:c}):ng({kind:1,value:b==null?void 0:b.initialValue},{equal:c});a=a.subscribe({next:function(k){return f.set({kind:1,value:k})},error:function(k){f.set({kind:2,error:k});var l;(l=g)==null||l()},complete:function(){var k;(k=g)==null||k()}});if((b==null?0:b.requireSync)&&f().kind===0)throw new Vc(601,
!1);var g=e==null?void 0:e.onDestroy(a.unsubscribe.bind(a));return Zg(function(){var k=f();switch(k.kind){case 1:return k.value;case 2:throw k.error;case 0:throw new Vc(601,!1);}},{equal:b==null?void 0:b.equal})},Uya=function(a){a=a===void 0?Object.is:a;return function(b,c){return b.kind===1&&c.kind===1&&a(b.value,c.value)}},Wya=function(a){a&1&&(K(0,"div",1),M(1,"div",4)(2,"div",5)(3,"div",6),L())},Xya=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P(2);
d=d.prompt;e.draftQuery.set(d);e.sendQuestion(d);return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(2),I("ve",b.ve.ProductionAgentZeroStateSuggestionChip)("veClick",!0),Jf("aria-label",a.label),B(),S(" ",a.label," "))},Zya=function(a,b){a&1&&(K(0,"div",7)(1,"div",8),Q(2),L(),Of(3,Xya,2,4,"button",9,Yya),L());a&2&&(a=b.$implicit,b=P(),wg("hidden",b.isLoading()),B(2),yg(a.title),B(),Pf(a.examples))},Vj=function(a,b){$ya[a]=($ya[a]||0)+1;if(typeof b==="function")return aza(a,function(){return Object.assign({},
b.apply(null,q(bd.apply(0,arguments))),{type:a})});switch(b?b._as:"empty"){case "empty":return aza(a,function(){return{type:a}});case "props":return aza(a,function(c){return Object.assign({},c,{type:a})});default:throw Error("cc");}},Wj=function(){return{_as:"props",_p:void 0}},aza=function(a,b){return Object.defineProperty(b,"type",{value:a,writable:!1})},bza=function(a){if(a===null||a===void 0)throw Error("dc`Store Injector");},cza=function(a){return typeof a==="function"},dza=function(a,b){return a===
b},Xj=function(a,b,c){b=b===void 0?dza:b;c=c===void 0?dza:c;var d=null,e=null,f;return{memoized:function(){if(f!==void 0)return f.result;if(!d)return e=a.apply(null,arguments),d=arguments,e;a:{var g=arguments;for(var k=d,l=b,r=0;r<g.length;r++)if(!l(g[r],k[r])){g=!0;break a}g=!1}if(!g)return e;g=a.apply(null,arguments);d=arguments;return c(e,g)?e:e=g},reset:function(){e=d=null},setResult:function(g){f={result:g}},clearResult:function(){f=void 0}}},Zj=function(){return Yj(Xj).apply(null,q(bd.apply(0,
arguments)))},eza=function(a,b,c,d){if(c===void 0)return b=b.map(function(e){return e(a)}),d.memoized.apply(null,b);b=b.map(function(e){return e(a,c)});return d.memoized.apply(null,[].concat(q(b),[c]))},Yj=function(a){var b=b===void 0?{stateFn:eza}:b;return function(){var c=bd.apply(0,arguments);if(Array.isArray(c[0])){var d=m(c);c=d.next().value;d=ij(d);c=[].concat(q(c),q(d))}else c.length===1&&fza(c[0])&&(c=gza(c[0]));var e=c.slice(0,c.length-1),f=c[c.length-1],g=e.filter(function(r){return r.release&&
typeof r.release==="function"}),k=a(function(){return f.apply(null,bd.apply(0,arguments))}),l=Xj(function(r,w){return b.stateFn.apply(null,[r,e,w,k])});return Object.assign(l.memoized,{release:function(){l.reset();k.reset();g.forEach(function(r){return r.release()})},projector:k.memoized,setResult:l.setResult,clearResult:l.clearResult})}},fza=function(a){return!!a&&typeof a==="object"&&Object.values(a).every(function(b){return typeof b==="function"})},gza=function(a){var b=Object.values(a),c=Object.keys(a);
return[].concat(q(b),[function(){var d=bd.apply(0,arguments);return c.reduce(function(e,f,g){var k={};return Object.assign({},e,(k[f]=d[g],k))},{})}])},hza=function(a,b){b=b===void 0?{}:b;for(var c=Object.keys(a),d={},e=0;e<c.length;e++){var f=c[e];typeof a[f]==="function"&&(d[f]=a[f])}var g=Object.keys(d);return function(k,l){k=k===void 0?b:k;for(var r=!1,w={},x=0;x<g.length;x++){var C=g[x],H=k[C],J=(0,d[C])(H,l);w[C]=J;r=r||J!==H}return r?w:k}},iza=function(a,b){return Object.keys(a).filter(function(c){return c!==
b}).reduce(function(c,d){var e={};return Object.assign(c,(e[d]=a[d],e))},{})},jza=function(){var a=bd.apply(0,arguments);return function(b){return a.length===0?b:a.slice(0,-1).reduceRight(function(c,d){return d(c)},(0,a[a.length-1])(b))}},kza=function(a,b){Array.isArray(b)&&b.length>0&&(a=jza.apply(null,[].concat(q(b),[a])));return function(c,d){var e=a(c);return function(f,g){f=f===void 0?d:f;return e(f,g)}}},lza=function(a){var b=Array.isArray(a)&&a.length>0?jza.apply(null,q(a)):function(c){return c};
return function(c,d){c=b(c);return function(e,f){e=e===void 0?d:e;return c(e,f)}}},nza=function(a,b){return function(c,d){d=b.action(d)?mza(d):d;c=a(c,d);return b.state()?mza(c):c}},mza=function(a){Object.freeze(a);var b=cza(a);Object.getOwnPropertyNames(a).forEach(function(c){if(!c.startsWith("\u0275")&&Object.prototype.hasOwnProperty.call(a,c)&&(b?c!=="caller"&&c!=="callee"&&c!=="arguments":1)){c=a[c];if(c instanceof W){if(c.isImmutable())return;throw Error();}(typeof c!=="object"||c===null)&&!cza(c)||
Object.isFrozen(c)||mza(c)}});return a},pza=function(a,b){return function(c,d){if(b.action(d)&&!oza())throw Error("hc`"+d.type);return a(c,d)}},sza=function(a,b){return function(c,d){if(b.action(d)){var e=qza(d);rza(e,"action")}c=a(c,d);b.state()&&(d=qza(c),rza(d,"state"));return c}},qza=function(a,b){b=b===void 0?[]:b;return a!==void 0&&a!==null||b.length!==0?Object.keys(a).reduce(function(c,d){if(c)return c;var e=a[d];cza(e)&&e.hasOwnProperty("\u0275cmp")?d=c:e===void 0||e===null||typeof e==="number"||
typeof e==="boolean"||typeof e==="string"||Array.isArray(e)?d=!1:(typeof e!=="object"||e===null||Array.isArray(e)?c=!1:(c=Object.getPrototypeOf(e),c=c===Object.prototype||c===null),d=c?qza(e,[].concat(q(b),[d])):{path:[].concat(q(b),[d]),value:e});return d},!1):{path:["root"],value:a}},rza=function(a,b){if(a!==!1){var c=a.path.join(".");b=Error("ic`"+b+"`"+c+"`"+b);b.value=a.value;b.unserializablePath=c;throw b;}},wza=function(){return[{provide:tza,multi:!0,deps:[uza],useFactory:vza}]},vza=function(a){if(a.strictActionTypeUniqueness&&
(a=Object.entries($ya).filter(function(b){b=m(b);b.next();return b.next().value>1}).map(function(b){return m(b).next().value}),a.length))throw Error("jc`"+a.map(function(b){return'"'+b+'"'}).join(", "));},xza=function(a,b){a=a===void 0?{state:void 0}:a;var c=m(b);b=c.next().value;c=c.next().value;return{state:c(a.state,b),action:b}},ak=function(a,b){var c=bd.apply(2,arguments);return function(d){if(typeof a==="string"){var e=[b].concat(q(c)).filter(Boolean);d=d.pipe(ula.apply(null,[a].concat(q(e))))}else if(typeof a===
"function")d=d.pipe(A(function(f){return a(f,b)}));else throw new TypeError("kc`"+typeof a);return d.pipe(pf())}},yza=function(a){return typeof a==="function"?a():a},bk=function(){var a=bd.apply(0,arguments),b=a.pop();a=a.map(function(c){return c.type});return{reducer:b,types:a}},ck=function(a){for(var b=new Map,c=m(bd.apply(1,arguments)),d=c.next(),e={};!d.done;e={on:void 0},d=c.next()){e.on=d.value;d=m(e.on.types);for(var f=d.next(),g={};!f.done;g={existingReducer:void 0},f=d.next())f=f.value,g.existingReducer=
b.get(f),g.existingReducer?b.set(f,function(k,l){return function(r,w){return k.on.reducer((0,l.existingReducer)(r,w),w)}}(e,g)):b.set(f,e.on.reducer)}return function(k,l){k=k===void 0?a:k;var r=b.get(l.type);return r?r(k,l):k}},dk=function(a){var b=a.actions;return b.length===1?b[0]:zza(a)},ek=function(a){return function(b,c){if(c.type===zza.type&&c.actions.length>0){var d=m(c.actions);c=d.next().value;d=ij(d);b=a(b,c);c=m(d);for(d=c.next();!d.done;d=c.next())b=a(b,d.value);return b}return a(b,c)}},
Bza=function(a,b){var c=Aza.get(a);c||(c={timer:0,actions:[]},Aza.set(a,c));c.actions.push(b);c.timer||(c.timer=setTimeout(function(){c.timer=0;a.dispatch(dk({actions:c.actions}));c.actions=[]}))},gk=function(a){var b=m(a);a=b.next().value;b=b.next().value;return{previousValue:a,currentValue:b}},hk=function(a,b){return{previousValue:a.previousValue&&b(a.previousValue)||null,currentValue:a.currentValue&&b(a.currentValue)||null}},kk=function(a,b,c,d,e,f,g,k){return new ik({getKey:a,getSelector:function(l,
r){var w=r.getSelector(c,l),x=d?r.getSelector(d,l):void 0,C=e?r.getSelector(e,l):void 0,H=f?r.getSelector(f,l):void 0,J=g?r.getSelector(g,l):void 0;l=k?r.getSelector(k,l):void 0;return x&&C&&H&&J&&l?le([w,x,C,H,J,l]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;var ca=R.next().value;var oa=R.next().value;var ua=R.next().value;R=R.next().value;return jk(O,V,ca,oa,ua,R,b)})):x&&C&&H&&J?le([w,x,C,H,J]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;var ca=
R.next().value;var oa=R.next().value;R=R.next().value;return jk(O,V,ca,oa,R,b)})):x&&C&&H?le([w,x,C,H]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;var ca=R.next().value;R=R.next().value;return jk(O,V,ca,R,b)})):x&&C?le([w,x,C]).pipe(A(function(O){var R=m(O);O=R.next().value;var V=R.next().value;R=R.next().value;return jk(O,V,R,b)})):x?le([w,x]).pipe(A(function(O){var R=m(O);O=R.next().value;R=R.next().value;return jk(O,R,b)})):w.pipe(A(function(O){return jk(O,b)}))}})},Cza=
function(a,b){return a===b},Dza=function(a,b){if(a!=null&&Object.getPrototypeOf(a)===Object.prototype&&b!=null&&Object.getPrototypeOf(b)===Object.prototype)a:{for(var c in a)if(!(c in b)||a[c]!==b[c]){a=!1;break a}for(var d in b)if(!(d in a)){a=!1;break a}a=!0}else a=Array.isArray(a)&&Array.isArray(b)?Gba(a,b):a===b;return a},lk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},Eza=function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},mk=function(a){return"chartGroupId:"+
a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId+",layerId:"+a.layerId},nk=function(a){return"chartId:"+a.chartId},ok=function(a){return"chartGroupId:"+a.chartGroupId},Fza=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId},Gza=function(){return Zj(pk,function(a){return a.focus})},Hza=function(){return Zj(pk,function(a){return a.hoverDisabled})},qk=function(a){var b=a.previousValue;a=a.currentValue;return!a||b&&a.height===b.height&&a.width===b.width&&a.margins.top===
b.margins.top&&a.margins.right===b.margins.right&&a.margins.bottom===b.margins.bottom&&a.margins.left===b.margins.left?!1:!0},rk=function(a){var b=a.previousValue,c=a.currentValue;if(!b||!c)return!b&&c||b&&!c?!0:!1;a=b.width-b.margins.left-b.margins.right;b=b.height-b.margins.top-b.margins.bottom;var d=c.width-c.margins.left-c.margins.right;c=c.height-c.margins.top-c.margins.bottom;return!a||!d||Math.abs(d/a-1)>=.4||!b||!c||Math.abs(c/b-1)>=.4},Iza=function(a){var b=a.previousValue;if(a=a.currentValue){if(!b)return!1;
if(a.height===b.height&&a.width===b.width&&(a.margins.top!==b.margins.top||a.margins.right!==b.margins.right||a.margins.bottom!==b.margins.bottom||a.margins.left!==b.margins.left))return!0}return!1},sk=function(a){var b=a.chartId;return Zj(Jza,function(c){return c.entities[b]})},Lza=function(a){var b=function(d){return!(typeof d==="string"&&/^\s*$/.test(d))},c=a.findIndex(b);b=Kza(a,b);return c>=0&&b>=0?a.slice(c,b+1):[]},Mza=function(a){for(var b=[],c=0;c<a.subtokens_.length;++c)b.push(a.subtoken(c));
b=Lza(b);return b=b.map(function(d){return d instanceof tk?new tk(d.toString().trim()):d.trim()})},Nza=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.append(c.value)},Oza=function(a){if(a instanceof tk)return new tk(a.toString().trim());if(a instanceof uk){a=Mza(a);if(a.length>0){var b=new uk(a.shift());Nza(b,a);return b}return new uk("")}return a instanceof vk?(a=Mza(a),a.length>0?(b=new vk(a.shift()),Nza(b,a),b):new vk("")):typeof a==="string"?a.trim():a},Qza=function(a){var b=a.chartId;
return Zj(Pza,function(c){return c.entities[b]})},Rza=function(a){var b=a.chartId;var c=[];return Zj(Pza,function(d){var e=[];if(d=d.entities[b]){d=m(Object.values(d.byLayer.entities));for(var f=d.next();!f.done;f=d.next())if(f=f.value){f=m(Object.values(f.bySeries.entities));for(var g=f.next();!g.done;g=f.next())(g=g.value)&&g.dataSeriesMetadata&&e.push(g.dataSeriesMetadata)}}return e.length===c.length&&c.every(function(k,l){return k===e[l]})?c:c=e})},Uza=function(a){return Zj(Rza({chartId:a.chartId}),
function(b){var c={metric:new Set,shortMetric:new Set,aligner:new Set,primaryReducer:new Set,secondaryReducer:new Set,filter:{}};b=m(b);for(var d=b.next();!d.done;d=b.next()){var e=c,f=d.value,g=null;f&&f.metric&&f.metric.type&&(g=f.metric.type);g&&e.metric.add(g);f&&f.shortMetric&&e.shortMetric.add(f.shortMetric);if(f.requestParams&&(f.requestParams["aggregation.perSeriesAligner"]&&e.aligner.add(f.requestParams["aggregation.perSeriesAligner"]),f.requestParams["aggregation.crossSeriesReducer"]&&e.primaryReducer.add(f.requestParams["aggregation.crossSeriesReducer"]),
f.requestParams["secondaryAggregation.crossSeriesReducer"]&&e.secondaryReducer.add(f.requestParams["secondaryAggregation.crossSeriesReducer"]),g&&f.requestParams.filter))for(e.filter[g]||(e.filter[g]={count:0,entries:{}}),d=e.filter[g].entries,e.filter[g].count++,e=Sza(new wk(f.requestParams.filter)),f=0;e&&f<e.length;){var k=e[f++],l=e[f++];g=e[f++];k=k&&k.toString();l=l&&l.toString();g=g&&g.toString();k&&l&&g&&(k=k.replace(/\./g,"").replace(/"/g,"")+(Tza[l]||""),d[k]||(d[k]={count:0,set:new Set}),
d[k].count++,d[k].set.add(l+g))}}return{metric:c.metric.size,shortMetric:c.shortMetric.size,aligner:c.aligner.size,primaryReducer:c.primaryReducer.size,secondaryReducer:c.secondaryReducer.size,filter:c.filter}})},Wza=function(a){var b=a.chartGroupId;return Zj(Vza,function(c){return c.entities[b]})},Xza=function(){var a=bd.apply(0,arguments);return function(b){return b.pipe(Ef.apply(null,q(a)),A(function(c){c=m(c);c.next();return ij(c)}))}},xk=function(a){var b=a.run.bind(a);return function(c){return new Vd(function(d){return c.subscribe({next:function(e){b(function(){d.next(e)})},
error:function(e){b(function(){d.error(e)})},complete:function(){b(function(){d.complete()})}})})}},Yza=function(a){return a.viewHandler&&a.viewHandlerUsingContext===void 0},Zza=function(a){return a.viewHandlerUsingContext&&a.viewHandler===void 0},$za=function(a){return a.componentHandler&&a.componentHandlerUsingContext===void 0},aAa=function(a){return a.componentHandlerUsingContext&&a.componentHandler===void 0},yk=function(a){return a.chartId},zk=function(a,b){return function(c,d){d=d.chartId;return c.entities[d]?
c:a.addOne(Object.assign({},b,{chartId:d}),c)}},Ak=function(a){return function(b,c){return a.removeOne(c.chartId,b)}},Bk=function(a,b){return function(c,d){var e=d.previousChartId;var f=d.currentChartId;return e&&f&&c.entities[e]?a.mapOne({id:e,map:function(g){return Object.assign({},g,{chartId:f})}},c):e&&c.entities[e]||c.entities[f]?c:a.addOne(Object.assign({},b,{chartId:f}),c)}},bAa=function(a,b){return function(c,d){var e=d.chartId;var f=d.previousLayerId;var g=d.currentLayerId;d=c.entities[e];
if(!d||!f||!d.byLayer.entities[f])return c;f=b.mapOne({id:f,map:function(k){return Object.assign({},k,{layerId:g})}},d.byLayer);return a.upsertOne(Object.assign({},d,{byLayer:f}),c)}},cAa=function(a){return a.chartGroupId},dAa=function(a,b){return function(c,d){d=d.chartGroupId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartGroupId:d}),c)}},eAa=function(a){return function(b,c){return a.removeOne(c.chartGroupId,b)}},Ck=function(a){return a.layerId},gAa=function(){var a=Dk,b=fAa;return function(c,
d){var e=d.chartId;d=d.yAxisId;return c.entities[e+","+d]?c:a.addOne(Object.assign({},b,{chartId:e,yAxisId:d}),c)}},Ek=function(a,b,c){return c&&b&&c!=="chart_group"?"chartId:"+b+",xAxisId:"+c:"chartGroupId:"+a},hAa=function(a){return Ek(a.chartGroupId,a.chartId,a.xAxisId)},iAa=function(a){if(a.length===3)return a.toUpperCase();a=a.replace(/\//g,"").replace(/_/g,"").replace(/-/g,"");return a=a.charAt(0).toLowerCase()+a.substring(1)},Gk=function(a,b){if(b)a:{a="TimeZoneConstants"in jAa?jAa.TimeZoneConstants["en-US"]:
void 0;a=a!=null?a:kAa;if(b){var c,d=(c=a[b])!=null?c:a[iAa(b)];if(d){b=Fk(d);break a}}b=Intl.DateTimeFormat().resolvedOptions().timeZone;b=(b=a[iAa(b)])?Fk(b):Fk(lAa)}else b=Fk(a!=null?a:lAa);return b},nAa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?(a==null?void 0:a.scaleType)===(b==null?void 0:b.scaleType)&&(a==null?void 0:a.min)===(b==null?void 0:b.min)&&(a==null?void 0:a.max)===(b==null?void 0:b.max)&&(a==null?void 0:a.unit)===(b==
null?void 0:b.unit)&&(a==null?void 0:a.tickIncrement)===(b==null?void 0:b.tickIncrement)&&(a==null?void 0:a.absoluteMin)===(b==null?void 0:b.absoluteMin)&&mAa(a==null?void 0:a.ticks,b==null?void 0:b.ticks):a===b},mAa=function(a,b){if(a&&b&&Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(!d||!e||d.label!==e.label||d.value!==e.value)return!1}return!0}return a===b},oAa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},
pAa=function(a){return{key:a,coef:1,suffix:a,base:0,scale:0}},qAa=function(a){return{key:a,coef:1,suffix:a,compatibilityKeys:["0"],operators:[],components:[pAa(a)]}},uAa=function(a){var b=a.match(rAa);if(!b)return pAa(a);var c=b[1]||"";b=b[2]||"";if(!c&&!b)return pAa(a);c&&!b&&(b="1");a=sAa[b];if(c){var d=tAa[c];return Object.assign({},a,{key:b==="1"?c:c+a.key,coef:a.coef*d.coef,suffix:c+(a.suffix||""),scale:d.scale})}return a},Hk=function(a){a=a.trim();a=a.replace(/\s/g,"");a=a.replace("(rate)",
"/s");a=a.replace(/([^\.\/\{\}]+)(\{[^\{\}]+\})/g,"$1");a=a.replace(/\{[^\{\}]+\}/g,"1");return vAa(a)},vAa=function(a){var b=/^(.*?)(\.|\/)?([^\/\.]*)$/,c=m(a.match(b)||[]);c.next();var d=c.next().value,e=c.next().value;c=c.next().value;var f=e;if(c){a=wAa[c]||c;c=m(a.match(b)||[]);c.next();b=c.next().value;e=c.next().value;c=c.next().value;b&&(d=(d||"").concat(f||"",b),f=e,a=c);b=uAa(a);if(d&&f){d=vAa(d);var g=uAa(a);a=f==="/"?d.coef/g.coef:d.coef*g.coef;b=f==="/"&&g.base===5;e=d.components.length===
1&&d.components[0].base===g.base;if(!b&&e&&(c=xAa(g.scale,g.base,a)))return{key:c.key,coef:c.coef,prefix:c.prefix,suffix:c.suffix,compatibilityKeys:a===1&&f==="/"?[String(c.base),"1"]:[String(c.base)],operators:[],components:[c]};c=d.compatibilityKeys.map(function(k){return k+f+g.base});return{key:d.key+f+g.key,coef:a,prefix:d.prefix||"",suffix:(d.suffix||"")+f+((g.prefix||"")+(g.suffix||"")),compatibilityKeys:e&&b?c.concat(["1"]):c,operators:d.operators.concat([f]),components:d.components.concat([g])}}return{key:b.key,
coef:b.coef,prefix:b.prefix,suffix:b.suffix,compatibilityKeys:[String(b.base)],operators:[],components:[b]}}return qAa(a)},xAa=function(a,b,c){var d;a=(d=yAa[(a===void 0?1:a)+","+b])!=null?d:[];d=null;a=m(a);for(b=a.next();!b.done;b=a.next())b=uAa(b.value),b.coef===c&&(d=b);return d},zAa=function(a,b,c){c=c===void 0?{}:c;a=Hk(a);if(a.components.length===0)return null;for(var d=null,e=0;e<a.components.length;e++){var f=a.operators[e-1],g=a.components[e];if(!(c.neverScaleRates&&e>0&&f==="/"&&g.base===
5)){f=f!=="."&&f?!b:b;var k=yAa[(g.scale||1)+","+g.base];k?(g=k.indexOf(g.key),g=g<0?null:(g=k[g+(f?1:-1)])?uAa(g):null):g=null;if(g){b=a.components.slice(0,e).concat([g]).concat(a.components.slice(e+1));c="";for(d=0;d<b.length;d++)c+=(a.operators[d-1]||"")+b[d].key;d=Hk(c);break}}}var l,r;return(r=(l=d)==null?void 0:l.key)!=null?r:null},Ik=function(a){return a!==null&&a!=="{not_a_unit}"},Jk=function(a,b){a=Number(a);if(Number.isNaN(a))return NaN;if(a===0)return 0;var c=Infinity;if(b)for(c=0;Math.abs(b)<
1;)c++,b*=10;for(b=0;Math.abs(a)<1&&b<c;)b++,a*=10;c=Number(a.toFixed(4));if(b){a=b+4;try{return Number((c/Math.pow(10,b)).toFixed(a))}catch(d){if(d instanceof RangeError){if(a<0)throw Error("Cc");return 0}throw d;}}return c},AAa=function(a){return/^((.*)[/]\2)|1$/.test(a)},BAa=function(a,b){return a.compatibilityKeys.some(function(c){return b.compatibilityKeys.includes(c)})||AAa(a.key)&&AAa(b.key)},CAa=function(a){a=Hk(a);return AAa(a.key)},DAa=function(a){return(a=a.match(/(\{[^}]*\})/))?a[1]:null},
EAa=function(a,b){a=Hk(a);b=Hk(b);return BAa(a,b)?a.components.length<b.components.length:!1},FAa=function(a,b){if(a===b)return!0;if(!Ik(a)||!Ik(b))return!1;a=Hk(a);b=Hk(b);return BAa(a,b)},Kk=function(a,b){if(a===b)return 1;if(!Ik(a)||!Ik(b))return null;a=Hk(a);b=Hk(b);return BAa(a,b)?a.coef/b.coef:null},Lk=function(a,b,c,d){d=d===void 0?!1:d;return c===null||c===void 0?null:a===b?d?c:Jk(c):Ik(a)&&Ik(b)?(a=Kk(a,b))?d?c*a:Jk(c*a):null:null},GAa=function(a,b){b=b===void 0?{}:b;return zAa(a,!0,b)},
HAa=function(a,b){b=b===void 0?{}:b;return zAa(a,!1,b)},NAa=function(a,b,c){IAa(JAa,3);KAa(JAa,0);JAa.showTrailingZeros_=!1;b=Ik(b)&&Hk(b)||qAa("");var d=a<0?"-":"";a=(c==null?0:c.ignoreFloatImprecision)?Math.abs(a):Jk(Math.abs(a));if(a===0&&(c==null||!c.forceUnitZero))return{negativeSign:"",unitPrefix:"",integerDigits:"0",decimalSeparator:"",fractionDigits:"",unitSuffix:""};var e=JAa;(c==null?0:c.maximumFractionDigits)&&IAa(e,c.maximumFractionDigits);(c==null?0:c.significantDigits)&&KAa(e,c.significantDigits);
if(c==null?0:c.showTrailingZeros)e.showTrailingZeros_=c.showTrailingZeros!=0;if(a!==0&&(a<1E-9||a>1E12)&&(e=LAa,b.coef!==1)){c=b;for(var f=c.coef>1;c!==null&&c.coef!==1&&(f&&c.coef>1||!f&&c.coef<1);){var g=f?HAa(c.key):GAa(c.key);if(!g)break;c=Hk(g)}f=Kk(b.key,c.key);f!==null&&c&&(a*=f,b=c)}b.components.length>0&&b.components[0].base===3&&b.components[0].coef===1&&a%1!==0&&(e=MAa);a=e.format(a).split(Mk.DECIMAL_SEP);return{negativeSign:d,unitPrefix:b.prefix||"",integerDigits:a[0]||"",decimalSeparator:a.length===
2?Mk.DECIMAL_SEP:"",fractionDigits:a[1]||"",unitSuffix:b.suffix||""}},OAa=function(a){return a.negativeSign+a.unitPrefix+a.integerDigits+a.decimalSeparator+a.fractionDigits},Nk=function(a,b,c){a=NAa(a,b,c);return OAa(a)+a.unitSuffix},RAa=function(a,b){var c=Jk(Math.abs(a.min)),d=Jk(Math.abs(a.max)),e=Math.min(c,d);d=Math.max(c,d);var f=b.idealMaxMagnitude-b.idealMinMagnitude;c=a.unit;if(FAa(a.unit,"%"))c="%";else{if(e===0&&d===0)return a;f=Math.log10(d)-Math.log10(e)>f;e=e===0||f?d:e;var g=Math.log10(e);
d=a.unit;f=g>b.idealMaxMagnitude?2:g<b.idealMinMagnitude?1:0;if(f===0)return a;for(;PAa(f,g,b,a.unit);){c=d;d=QAa(f,d,b);if(!d)break;g=Lk(a.unit,d,e);if(g===null)break;g=Math.log10(g)}}b=Lk(a.unit,c,a.min);e=Lk(a.unit,c,a.max);return b===null||e===null?a:{min:b,max:e,unit:c}},PAa=function(a,b,c,d){if((b>c.countPrefixMaxMagnitude||b<c.countPrefixMinMagnitude)&&FAa(d,"1"))return!1;switch(a){case 2:return b>c.idealMinMagnitude;case 1:return b<c.idealMaxMagnitude;default:return!1}},QAa=function(a,b,c){c=
c===void 0?{}:c;if(!b)return null;switch(a){case 2:return GAa(b,c);case 1:return HAa(b,c);default:return null}},TAa=function(a,b){return SAa.format(a,b)},UAa=function(a){return a.includes("%")||a==="ratio"||a==="percent"},WAa=function(a,b){var c="",d="";if(a===null)return{value:c,unit:d};b!==null&&CAa(b)&&(b=DAa(b)||b);if(b===""||b==="{not_a_unit}")b="1";var e=RAa({min:0,max:a,unit:b},VAa).unit;a=Lk(b,e,a);if(a===null)return{value:c,unit:d};d=NAa(a,e);c=OAa(d);d=d.unitSuffix;return{value:c,unit:d}},
XAa=function(a,b,c){if(!a)return null;for(var d=-Infinity,e=Infinity,f=Infinity,g=m(a.series),k=g.next();!k.done;k=g.next()){k=m(k.value.data);for(var l=k.next();!l.done;l=k.next()){l=l.value;var r=void 0;if(!(b!==null&&((r=l.x0)!=null?r:l.x).valueOf()<b||c!==null&&l.x.valueOf()>c)){var w=r=void 0;d=Math.max(d,l.y,(r=l.y0)!=null?r:d,(w=l.y1)!=null?w:d);w=r=void 0;e=Math.min(e,l.y,(r=l.y0)!=null?r:e,(w=l.y1)!=null?w:e);f=Math.min(f,Math.abs(l.y||f),Math.abs(l.y0||f),Math.abs(l.y1||f))}}}return d===
-Infinity||e===Infinity?null:{priority:1,absoluteMin:f,min:e,max:d,unit:a.unit}},YAa=function(a,b){return{x0:b,x1:a,max:-Infinity,min:Infinity,absoluteMin:Infinity}},ZAa=function(a){return a.filter(function(b){return!isNaN(b.y)&&isFinite(b.y)})},$Aa=function(a){if(a==null||!a.series)return null;var b=new Map;a=m(a.series);for(var c=a.next();!c.done;c=a.next()){c=ZAa(c.value.data);c=m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.x.valueOf(),f=void 0,g=void 0,k=b.get(e)||YAa(e,(g=(f=
d.x0)==null?void 0:f.valueOf())!=null?g:void 0),l=g=f=void 0;k.max=Math.max(k.max,d.y,(f=d.y0)!=null?f:-Infinity,(g=d.y1)!=null?g:-Infinity,(l=d.max)!=null?l:-Infinity);l=g=f=void 0;k.min=Math.min(k.min,d.y,(f=d.y0)!=null?f:Infinity,(g=d.y1)!=null?g:Infinity,(l=d.min)!=null?l:Infinity);k.absoluteMin=Math.min(k.absoluteMin,Math.abs(d.y||Infinity),Math.abs(d.y0||Infinity),Math.abs(d.y1||Infinity),Math.abs(d.min||Infinity));b.set(e,k)}}return b.size===0?null:Array.from(b.values()).sort(function(r,w){return r.x1-
w.x1})},Ok=function(a,b,c,d,e,f){if(!a)return null;e&&f&&(c=Lk(f,e,c),d=Lk(f,e,d));e={max:-Infinity,min:Infinity,absoluteMin:Infinity};if(c)a:{f=0;for(var g=a.length-1,k=Math.floor((f+g)/2);f<g;){if(c<a[k].x1)g=k;else if(c>a[k].x1)f=k+1;else{c=k;break a}k=Math.floor((f+g)/2)}var l;c=(l=k)!=null?l:0}else c=0;if(d)a:{g=0;l=a.length-1;for(f=Math.ceil((g+l)/2);g<l;){k=void 0;if(d<((k=a[f].x0)!=null?k:a[f].x1))l=f-1;else if(g=void 0,d>((g=a[f].x0)!=null?g:a[f].x1))g=f;else{d=f;break a}f=Math.ceil((g+l)/
2)}var r;d=(r=f)!=null?r:a.length-1}else d=a.length;a=m(a.slice(c,d+1));for(r=a.next();!r.done;r=a.next())r=r.value,e.max=Math.max(e.max,r.max),e.min=Math.min(e.min,r.min),e.absoluteMin=Math.min(e.absoluteMin,r.absoluteMin||Infinity);return Object.assign({},{priority:1},e,{unit:b})},Pk=function(a,b){return!!(!a&&b||a&&!b||a&&b&&(a.min!==b.min||a.max!==b.max||a.absoluteMin!==b.absoluteMin||a.unit!==b.unit||a.priority!==b.priority))},aBa=function(a){if(!a)return null;var b=a.xAxisUnit||"ms_since_epoch",
c=-Infinity,d=Infinity;a=m(a.series);for(var e=a.next();!e.done;e=a.next()){e=m(e.value.data);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.x.valueOf();var k=void 0;g=(k=g.x0)==null?void 0:k.valueOf();f>c&&(c=f);f<d&&(d=f);g!==void 0&&(g>c&&(c=g),g<d&&(d=g))}}return c===-Infinity||d===Infinity?null:{priority:1,min:d,max:c,unit:b}},bBa=function(a,b,c,d,e,f){return isFinite(a)?f===void 0&&b>d?[b,a]:b===d||f!==void 0&&f.includes(b)?[b,e(c,a)]:[d,c]:[d,c]},cBa=function(a){return!a.min||a.min>
0?Object.assign({},a,{min:0}):!a.max||a.max<0?Object.assign({},a,{max:0}):a},dBa=function(a){if(!a)return null;var b=new Set;a=m(a.series);for(var c=a.next();!c.done;c=a.next()){c=m(c.value.data);for(var d=c.next();!d.done;d=c.next())b.add(d.value.x)}return{categories:[].concat(q(b.values()))}},eBa=function(a){if(!a)return null;for(var b=Infinity,c=-Infinity,d=m(a.series),e=d.next();!e.done;e=d.next()){e=m(e.value.data);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=void 0;b=Math.min(b,f.y,
(g=f.y1)!=null?g:Infinity);g=void 0;c=Math.max(c,f.y,(g=f.y1)!=null?g:-Infinity)}}b=Math.min(0,b);c=Math.max(0,c);return{priority:1,min:b,max:c,unit:a.unit}},fBa=function(a,b){if(a.length===0)return null;var c=0,d=0,e=Infinity,f=-Infinity;a=m(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.priority;var l=k.min,r=k.max;k.unit!=="ms_since_epoch"||b!==void 0&&!b.includes(g)||(k=void 0,l=(k=l)!=null?k:e,k=void 0,r=(k=r)!=null?k:f,e=m(bBa(l,g,e,c,Math.min)),c=e.next().value,e=e.next().value,
f=m(bBa(r,g,f,d,Math.max)),d=f.next().value,f=f.next().value)}return e===Infinity||f===-Infinity?null:{min:e,max:f}},hBa=function(a,b,c){var d=fBa(a),e=fBa(a,[0,1]);if(!d)return{max:null,min:null,ticks:[],tickIncrement:null,scaleType:0,unit:"ms_since_epoch"};a=d.max-d.min;a===0&&(--d.min,d.max+=1,a=2);e&&(e=.01*(e.max-e.min),b.lastUpdateCausedBy===4&&a<e&&(e=Jk((e-(d.max-d.min))/2),d.min-=e,d.max+=e));if(!b.axisWidth||b.axisWidth<0)return Object.assign({},d,{ticks:[],tickIncrement:null,scaleType:0,
unit:"ms_since_epoch"});e=Math.max(1,b.axisWidth/75);for(var f=Qk.FIVE_MINUTES,g=Infinity,k=m(gBa),l=k.next();!l.done;l=k.next()){l=l.value;var r=Math.abs(e-a/l)/e;r>g||(f=l,g=r)}a=f;e=Gk(b.timezoneOffset,b.timeZoneId);b.shift&&(d.min+=b.shift,d.max+=b.shift);b=c(d,a,e);return Object.assign({},d,{ticks:b,tickIncrement:a,scaleType:0,unit:"ms_since_epoch"})},kBa=function(a,b){return hBa(a,b,function(c,d,e){var f=[],g=Rk(e,new Date(c.min))*6E4;var k=c.min-g;k=k+(d-k%d)%d+g;var l;g=(l=iBa[d])==null?void 0:
l.format(new Date(k-d),e);for(l=Rk(e,new Date(k));k<=c.max;k+=d){var r=Rk(e,new Date(k));r!==l&&(l=(r-l)*6E4,l%d!==0&&(k+=l));l=r;r=jBa[d].format(new Date(k),e);var w=void 0,x=(w=iBa[d])==null?void 0:w.format(new Date(k),e);g&&x&&x!==g?f.push({label:x,value:k}):f.push({label:r,value:k});g=x}return f})},lBa=function(a){return[].concat(q(new Set(a.map(function(b){return b.categories}).flat())))},mBa=function(a){return{categories:lBa(a)}},nBa=function(a,b,c){if(a.length===0)return null;for(var d=0,e=
0,f=Infinity,g=-Infinity,k=null,l=m(a),r=l.next();!r.done;r=l.next()){var w=r.value;r=w.unit;w=w.constraints;var x=void 0;!r||k&&!EAa(r,k)||((x=w)==null?0:x.onlyApplyIfUnitCompatible)||(k=r)}k&&CAa(k)&&(k=DAa(k)||k);l=m(a);for(r=l.next();!r.done;r=l.next()){var C=r.value;r=C.priority;x=C.min;w=C.max;var H=void 0;C=(H=C.unit)!=null?H:k;x=x!==void 0&&x!==null?Lk(C,k,x):null;w=w!==void 0&&w!==null?Lk(C,k,w):null;x!==null&&(f=m(bBa(x,r,f,d,Math.min,b)),d=f.next().value,f=f.next().value);w!==null&&(g=
m(bBa(w,r,g,e,Math.max,b)),e=g.next().value,g=g.next().value)}b=Math.max(Math.abs(f),Math.abs(g));if(f===Infinity||g===-Infinity)return null;f=Jk(f,b);g=Jk(g,b);f>g&&(g=f=d=e>d?g:f);d=k;c&&a.filter(function(J){var O;return!((O=J.constraints)==null?0:O.onlyApplyIfUnitCompatible)}).map(function(J){return J.unit}).filter(function(J){return J!==null}).filter(function(J){return J!=="1"}).some(function(J){return!FAa(J,k)})&&(d=null);return{min:f,max:g,unit:d}},oBa=function(a){var b=a.min,c=a.max,d=Math.abs(c-
b),e=c+d*.5;d=b-d*.5;return{min:b>=0&&d<=0?0:d,max:c<=0&&e>=0?0:e,unit:a.unit}},sBa=function(a,b,c){c=c===void 0?40:c;var d=Jk(a.max-a.min);if(d===0)return Jk(a.max)===0?1:Math.pow(10,Math.floor(Math.log10(a.max)));a=Math.max(2,Math.min(10,Math.floor(b/c)));b=Infinity;c=d;for(var e=1;e<a;e++){var f=d/e,g=f;var k=e===a-1?1:3;var l=Math.floor(Math.log(g)/Math.LN10);g/=Math.pow(10,l);switch(k===void 0?3:k){case 1:k=g>5?10:g>2?5:g>1?2:1;break;case 2:k=g<2?1:g<5?2:g<10?5:10;break;default:k=g>=pBa?10:g>=
qBa?5:g>=rBa?2:1}l=k*Math.pow(10,l);f=Math.abs(l-f);f<=b&&(b=f,c=l)}return c},tBa=function(a,b){var c=a.min-(a.min<0?(b-Math.abs(a.min)%b)%b:a.min%b),d=a.max+(a.max<0?Math.abs(a.max)%b:(b-Math.abs(a.max)%b)%b);if(Jk(c)===Jk(d)){var e=c-b;c=c>=0&&e<0?0:e;d+=b}return{min:Jk(c),max:Jk(d),unit:a.unit}},uBa=function(a){return a},vBa=function(a,b,c,d){d=d===void 0?uBa:d;for(var e=[],f=a.min,g={maximumFractionDigits:9},k={domain:a};f<=a.max;){e.push({label:c(f,a.unit||"1",g,k),value:f});var l=Jk(f+b);if(l===
f||l<a.min){e.push({label:c(a.max,a.unit||"1",g,k),value:a.max});break}f=l}return d(e,a.unit)},wBa=function(a){return a.reduce(function(b,c){c=String(c.value).split(".")[1];return Math.max(b,c?c.length:0)},0)+2},zBa=function(a,b,c,d,e){var f=b===void 0?{}:b;var g=f.axisLength===void 0?500:f.axisLength;b=f.lastUpdateCausedBy===void 0?0:f.lastUpdateCausedBy;f=f.valueFormatter===void 0?Nk:f.valueFormatter;var k=c===void 0?{}:c;c=k.neverScaleRates;var l=k.neverScaleUnits;var r=k.ignoreAllUnitsIfIncompatible;
k=k.minYRangePercent;d=d===void 0?uBa:d;e=e===void 0?40:e;var w=nBa(a,[0,1],r),x=w?oBa(w):null;a=nBa(a,void 0,r);if(!a)return{min:null,max:null,unit:null,tickIncrement:null,absoluteMin:void 0,ticks:[],scaleType:0,maximumFractionDigits:void 0};b===4&&x&&x.unit===a.unit&&(x.min>a.min&&(a.min=x.min),x.max<a.max&&(a.max=x.max));var C;l?C={min:a.min,max:a.max,unit:a.unit}:C=RAa(a,{neverScaleRates:c,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:xBa,countPrefixMinMagnitude:yBa});w&&(a=
Kk(w.unit,C.unit)||1,a=(k!=null?k:.01)*(a*w.max-a*w.min),b===4&&C.max-C.min<a&&(a=Jk((a-(C.max-C.min))/2),C={min:C.min-a,max:C.max+a,unit:C.unit}));a=sBa(C,g,e);g=tBa(C,a);e=vBa(g,a,f,d);c=C.max-C.min;(b===4||b===2)&&c>0&&(b=e.filter(function(H){return H.value>=C.min&&H.value<=C.max}),d=vBa(C,a,f,d),b.length>=2?(g=C,e=b):d.length>=2&&(g=C,e=d));d=wBa(e);return Object.assign({},g,{ticks:e,scaleType:0,maximumFractionDigits:d})},Sk=function(a,b,c,d,e){return(e-a)/(b-a)*(d-c)+c},Tk=function(a,b,c,d,e){return a===
c?b:(b*(c-e)+d*(e-a))/(c-a)},ABa=function(a,b,c,d,e){return c.map(function(f,g){return Sk(a,b,c[g],d[g],e)})},BBa=function(a,b,c,d){d=d===void 0?1:d;a*=d;b*=d;c=(c===void 0?.001:c)*d/2;var e=Math.log;d=-e(-(a<0?a:-c));var f=-e(-(b<0?b:-c));a=e(a>0?a:c);b=e(b>0?b:c);return{fakeZero:c,negMin:d,negMax:f,posMin:a,posMax:b,difference:a-f}},CBa=function(a,b,c,d,e,f,g){var k=BBa(a,b,f===void 0?.001:f,g===void 0?1:g);a=k.negMin;b=k.posMax;f=k.difference;g=Math.log;k=k.posMin;e<0?k=-g(-e)+f:e>0&&(k=g(e));
return Sk(a+f,b,c,d,k)},Uk=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||a.min===null||a.max===null||b&&a.min===b.min&&a.max===b.max)},DBa=function(a){var b=a.previousValue;a=a.currentValue;return!((!b||a)&&(!a||b&&(a==null?void 0:a.ticks)===(b==null?void 0:b.ticks)))},Vk=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timezoneOffset)===a.timezoneOffset)},Wk=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timeZoneId)===
a.timeZoneId)},Xk=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Kk(a,d)||1:1;return function(k){return Sk(e*g,f*g,b,c,k)}}return null},Yk=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Kk(a,d)||1:1;return function(k){return Sk(b,c,e*g,f*g,k.valueOf())}}return null},FBa=function(a){if(!a||!a.trim())return"";a=a.startsWith("#")?a.substring(1):a;if(a.length>8)return"#"+a.slice(0,8);switch(a.length){case 8:return"#"+a;case 7:return"#"+a.slice(0,
6);case 6:return"#"+a;case 4:return"#"+EBa(a);case 3:return"#"+EBa(a);case 2:return"#"+a.repeat(3);case 1:return"#"+a.repeat(6);default:return""}},EBa=function(a){return a.split("").map(function(b){return b+b}).join("")},Zk=function(a,b){if(typeof a!=="string")return a;if(a.trim().startsWith("light-dark("))return GBa.style.color=a,b.appendChild(GBa),a=getComputedStyle(GBa).color,b.removeChild(GBa),a;if(!a.startsWith("var(--"))return a;var c=a.match(HBa);if(!c)return a;var d=m(c);d.next();c=d.next().value;
d=d.next().value;b=getComputedStyle(b);return b?(a=b.getPropertyValue(c))?a.match(IBa)?FBa(a):a:d===void 0?"":d.match(IBa)?FBa(d):d:a},JBa=function(a,b){var c=a.getTransform&&a.getTransform();c&&c.a===b&&c.b===0&&c.c===0&&c.d===b&&c.e===0&&c.f===0||a.setTransform(b,0,0,b,0,0)},$k=function(a,b,c){var d;b=b===void 0?{}:b;d||(d=KBa.scaleFactor);b.globalAlpha&&a.globalAlpha!==b.globalAlpha&&(a.globalAlpha=b.globalAlpha);b.font&&a.font!==b.font&&(a.font=b.font);b.fillStyle&&a.fillStyle!==b.fillStyle&&
(a.fillStyle=Zk(b.fillStyle,c));b.textAlign&&a.textAlign!==b.textAlign&&(a.textAlign=b.textAlign);b.textBaseline&&a.textBaseline!==b.textBaseline&&(a.textBaseline=b.textBaseline);b.strokeStyle&&a.strokeStyle!==b.strokeStyle&&(a.strokeStyle=Zk(b.strokeStyle,c));b.lineWidth&&a.lineWidth!==b.lineWidth&&(a.lineWidth=b.lineWidth);b.lineCap&&a.lineCap!==b.lineCap&&(a.lineCap=b.lineCap);var e=a.getLineDash();!b.lineDash||(e==null?0:e.length)&&!b.lineDash.some(function(f,g){return e[g]!==f})||a.setLineDash(b.lineDash);
b.globalCompositeOperation&&a.globalCompositeOperation!==b.globalCompositeOperation&&(a.globalCompositeOperation=b.globalCompositeOperation);b.filter&&a.filter!==b.filter&&(a.filter=b.filter);JBa(a,d)},bl=function(a,b,c,d,e,f){e=e===void 0?"transparent":e;var g=a.getContext("2d");if(!g)throw Error("Dc");f||(f=KBa.scaleFactor);var k=Math.floor(d*f),l=Math.floor(c*f);if(a.width!==k||a.height!==l)a.style.width=d+"px",a.style.height=c+"px",a.width=k,a.height=l;JBa(g,f);al(a,e,b,f)},al=function(a,b,c,
d,e){b=b===void 0?"transparent":b;var f=a.getContext("2d");if(!f)throw Error("Dc");d||(d=KBa.scaleFactor);f.save();b==="transparent"?f.clearRect(0,0,a.width/d,a.height/d):(f.fillStyle=Zk(b,c),f.globalAlpha=e!=null?e:1,f.fillRect(0,0,a.width/d,a.height/d),f.fill());f.restore()},cl=function(a,b){return(b===void 0?1:b)%2?a.map(function(c){return Math.round(c+.5)-.5}):a.map(function(c){return Math.round(c)})},dl=function(a,b,c,d){var e=e===void 0?0:e;if(e>0){b=b.split(" ");for(var f="",g=0;g<b.length;g++){var k=
f+(f.length>0?" ":"")+b[g];a.measureText(k).width>e&&f.length>0?(a.fillText(f,c,d),f=b[g],d+=10):f=k}a.fillText(f,c,d);return e}a.fillText(b,c,d);return a.measureText(b).width},LBa=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?0:f;a.save();for(var g=b,k=b.length;k>=0;k--){var l=k===b.length?b.slice(0,k):b.slice(0,k)+"...";if(a.measureText(l).width<=e){g=l;break}}a.translate(c,d);f&&a.rotate(f);a.textAlign="center";a.fillText(g,0,0);a.restore()},MBa=function(a,b,c,d){d=d===void 0?.6:d;c=new Path2D(c);
var e=new Path2D;e.addPath(c,{a:d,b:0,c:0,d:d,e:a,f:b});return e},el=function(a,b,c,d,e){if(!d)return a;b=d.x<b?{x0:d.x,y0:d.y,x1:b,y1:c}:{x0:b,y0:c,x1:d.x,y1:d.y};return b.x0>=e.left-1&&b.x0<=e.right+1&&b.y0>=e.top-1&&b.y0<=e.bottom+1&&(!a||Math.max(a.x0,a.x1)<=b.x0)?b:a},NBa=function(a){var b=a.chartGroupId;return Zj(fl,function(c){return c.entities[b]})},PBa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?OBa(a==null?void 0:a.categories,
b==null?void 0:b.categories):a===b},OBa=function(a,b){if(a&&a&&Array.isArray(b)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return a===b},QBa=function(a){return Ek(a.chartGroupId,a.chartId,a.xAxisId)},RBa=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Ek(b,c,a.xAxisId)},gl=function(a){return a.filter(function(b){return!b.ignoreSeriesForHighlighting})},SBa=function(a){var b=a.previousValue;
if(a=a.currentValue){if(!b)return!0;b=b.byLayer.entities;a=Object.values(a.byLayer.entities).filter(function(c){return!!c});b=Object.values(b).filter(function(c){return!!c});if(a.length){if(!b.length)return!0;a=Array.from(new Set(a.reduce(function(c,d){return c.concat(gl(d.selectedSeries)).concat(gl(d.hoveredSeries))},[])));b=Array.from(new Set(b.reduce(function(c,d){return c.concat(gl(d.selectedSeries)).concat(gl(d.hoveredSeries))},[])));return a.length===0&&b.length>0||b.length===0&&a.length>0}}return!1},
TBa=function(a,b){return a.some(function(c){var d=b.find(function(g){return g.seriesId===c.seriesId}),e,f;return d&&((e=c.datumIndices)==null?void 0:e.length)===((f=d.datumIndices)==null?void 0:f.length)?c.datumIndices&&d.datumIndices?c.datumIndices.some(function(g){return!d.datumIndices.find(function(k){return g.index===k.index&&g.bucketIndex===k.bucketIndex})}):!1:!0})},hl=function(a,b){return a.length!==b.length||TBa(a,b)||TBa(b,a)},il=function(a,b){var c=a.previousValue,d=a.currentValue;if(d){if(!c)return!0;
a=[];var e=[];if(b)a=d.byLayer.entities[b],a=((a==null?void 0:a.selectedSeries)||[]).concat((a==null?void 0:a.hoveredSeries)||[]),e=c.byLayer.entities[b],e=((e==null?void 0:e.selectedSeries)||[]).concat((e==null?void 0:e.hoveredSeries)||[]);else{b=m(Object.values(d.byLayer.entities));for(d=b.next();!d.done;d=b.next())(d=d.value)&&(a=a.concat(d.selectedSeries).concat(d.hoveredSeries));c=m(Object.values(c.byLayer.entities));for(b=c.next();!b.done;b=c.next())(b=b.value)&&(e=e.concat(b.selectedSeries).concat(b.hoveredSeries))}return hl(gl(a),
gl(e))}return!1},UBa=function(a,b){var c=a.previousValue,d=a.currentValue;if(!d||!c)return[];a=[];var e=[];if(b){e=c.byLayer.entities[b];var f;a=((f=d.byLayer.entities[b])==null?void 0:f.selectedSeries)||[];e=(e==null?void 0:e.selectedSeries)||[]}else{b=m(Object.values(d.byLayer.entities));for(f=b.next();!f.done;f=b.next())(f=f.value)&&(a=a.concat(f.selectedSeries));c=m(Object.values(c.byLayer.entities));for(b=c.next();!b.done;b=c.next())(b=b.value)&&(e=e.concat(b.selectedSeries))}a=a.map(function(k){return k.seriesId});
var g=e.map(function(k){return k.seriesId});return a.filter(function(k){return!g.includes(k)})},VBa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?nAa(a,b)&&(a==null?void 0:a.maximumFractionDigits)===(b==null?void 0:b.maximumFractionDigits)&&(a==null?void 0:a.bucketWidth)===(b==null?void 0:b.bucketWidth):a===b},WBa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?nAa(a,b)&&(a==null?
void 0:a.maximumFractionDigits)===(b==null?void 0:b.maximumFractionDigits):a===b},jl=function(a,b){var c=!1,d=b.pipe(nf(1)).subscribe(function(){c=!0});return function(e,f){if(!c)return d.unsubscribe(),a(e,f)}},kl=function(a){var b=a.timeZone;var c=a.position===void 0?null:a.position;var d=a.tickIncrement===void 0?null:a.tickIncrement;if(a.trackingNow===void 0?0:a.trackingNow)return"Now";if(!c||d===null)return"";a=new Date(c);b=b!=null?b:Gk();if(!(c=XBa[d])){for(var e=c=Infinity,f=m(gBa),g=f.next();!g.done;g=
f.next()){g=g.value;var k=Math.abs(d/g);k<e&&(e=k,c=g)}c=(d=XBa[c])?d:YBa}return c(a,b)},eCa=function(a){var b=Math.abs(a),c=7,d=a/1E3;b/6E4>=1&&(c=6,d=a/6E4);b/36E5>=1&&(c=5,d=a/36E5);b/864E5>=1&&b%864E5===0&&(c=4,d=a/864E5);b/6048E5>=1&&(b%6048E5===0||b/6048E5>3||b/6048E5>1&&b%864E5!==0)&&(c=3,d=a/6048E5);if(b>=ZBa[0]){var e=ZBa.map(function(f){return a/f}).find(function(f){return Math.abs(f-Math.round(f))<.05});e!==void 0&&(d=Math.round(e),c=2)}b>=$Ba[0]&&(e=$Ba.map(function(f){return a/f}).find(function(f){return Math.abs(f-
Math.round(f))<aCa}),e!==void 0&&(d=Math.round(e),c=1));b>=bCa[0]&&(b=bCa.map(function(f){return a/f}),c=b.find(function(f){return Math.abs(f-Math.round(f))<cCa}),d=c!==void 0?Math.round(c):b[0],c=0);return(new dCa).format(d,c)},fCa=function(){return Zj(pk,function(a){return a.dashboard})},iCa=function(a,b){if(a&1){var c=t();K(0,"div",7);N("mouseenter",function(){u(c);P(2).isActionButtonBeingHovered$.next(!0);return v()})("mouseleave",function(){u(c);P(2).isActionButtonBeingHovered$.next(!1);return v()});
K(1,"button",8);N("click",function(){u(c);var d=P(2);return v(gCa(d))});Ad();K(2,"svg",9);M(3,"path");L()()()}a&2&&(a=b.ngIf,b=P(2),I("ngStyle",Jg(3,hCa,a.left+"px",a.top+"px")),B(2),Kf("fill",b.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE),B(),Kf("d",b.topButtonIconPath))},jCa=function(a){a&1&&(Uf(0),E(1,iCa,4,6,"div",6),T(2,"async"),Vf());a&2&&(a=P(),B(),I("ngIf",U(2,1,a.actionButtonPosition$)))},lCa=function(a){if(a&1){var b=t();K(0,"button",15);T(1,"async");N("click",function(c){u(b);var d=P(2);return v(kCa(d,
c))});M(2,"mat-icon",16);L()}a&2&&(a=P(2),Kf("aria-label",U(1,2,a.xAxisUnpinAriaLabelObservable))("aria-describedby",a.xAxisCursorDescribedById))},mCa=function(a){a&1&&M(0,"mat-icon",17)},rCa=function(a,b){a&1&&(K(0,"div",10,0)(2,"div",11),Q(3),L(),K(4,"div",12),E(5,lCa,3,4,"button",13)(6,mCa,1,0,"mat-icon",14),L()());a&2&&(a=b.ngIf,I("ngClass",Kg(10,nCa,a.locked,a.draggable,a.dragging))("ngStyle",Kg(14,oCa,a.top+"px",a.height+"px",a.height/2+"px")),Kf("tabindex",a.locked?-1:0),B(2),I("ngStyle",Jg(18,
pCa,a.height/2+"px",a.height/4+"px")),Kf("aria-label","Pin at "+a.label)("tabindex",a.locked?0:-1),B(),S(" ",a.label," "),B(),I("ngStyle",Kg(21,qCa,a.height+"px",a.height+"px",a.height*.1+"px")),B(),I("ngIf",a.locked),B(),I("ngIf",!a.locked))},sCa=function(a){return a.button===0&&!(ll&&a.ctrlKey)},ml=function(a,b){a=b==null?void 0:b.byYAxis.entities[a.yAxisId];var c=b==null?void 0:b.domain;b=b==null?void 0:b.category;var d,e,f,g={x:(e=(d=c==null?void 0:c.hover)!=null?d:(b==null?0:b.hover)?0:null)!=
null?e:null,y:(f=a==null?void 0:a.hover)!=null?f:null},k,l,r;d={x:(l=(k=c==null?void 0:c.click)!=null?k:(b==null?0:b.click)?0:null)!=null?l:null,y:(r=a==null?void 0:a.click)!=null?r:null};var w,x,C;k={x:(x=(w=c==null?void 0:c.focus)!=null?w:(b==null?0:b.focus)?0:null)!=null?x:null,y:(C=a==null?void 0:a.focus)!=null?C:null};var H,J,O;w={x:(J=(H=c==null?void 0:c.multiselectAnchor)!=null?H:(b==null?0:b.multiselectAnchor)?0:null)!=null?J:null,y:(O=a==null?void 0:a.multiselectAnchor)!=null?O:null};return{hover:g.x===
null&&g.y===null?null:g,click:d.x===null&&d.y===null?null:d,focus:k.x===null&&k.y===null?null:k,multiselectAnchor:w.x===null&&w.y===null?null:w}},tCa=function(a,b,c,d){if(b&&c){var e=b.getTimezoneOffset()-Rk(d,b);a=new Date(b);a.setMinutes(b.getMinutes()+e);e=c.getTimezoneOffset()-Rk(d,c);var f=new Date(c);f.setMinutes(c.getMinutes()+e);a=a.getFullYear()===f.getFullYear()&&a.getMonth()===f.getMonth()&&a.getDate()===f.getDate();e=m(a?[10,6]:[10,10]);a=e.next().value;e=e.next().value;return(new nl(a)).format(b,
d)+" - "+(new nl(e)).format(c,d)}return c?(new nl(10)).format(c,d):a?(new nl(10)).format(a,d):""},uCa=function(a,b,c){return b&&c?b+" - "+c:c?""+c:a?""+a:""},vCa=function(a,b){a&1&&(Rf(0,"div",0),dg(1),Q(2),dg(3,1),Sf());a&2&&(B(2),S(" ",b," "))},ol=function(a){var b=a.previousValue;a=a.currentValue;return!a||a.min===null||a.max===null||b&&a.min===b.min&&a.max===b.max&&a.absoluteMin===b.absoluteMin&&a.scaleType===b.scaleType?!1:!0},pl=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,
g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null&&b!==c){var l=Kk(e,d)||1;return a===1&&k!==null?function(r){return CBa(f,g,c,b,r,k,l)}:function(r){return Sk(f*l,g*l,c,b,r)}}return null},wCa=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null){var l=Kk(e,d)||1;return a===1&&k!==null?function(r){var w=BBa(f,g,k===void 0?.001:k,l===void 0?1:l),x=w.fakeZero,C=w.difference;r=Sk(c,b,w.negMin+C,w.posMax,r);return Math.log(x)-
r>1E-12?-Math.exp(-(r-C)):r-Math.log(x)>1E-12?Math.exp(r):0}:function(r){return Sk(c,b,f*l,g*l,r)}}return null},xCa=function(a){a&1&&(Ad(),K(0,"g",14),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),Kf("d",a.shape),B(),Kf("d",a.shape))},yCa=function(a){a&1&&(Ad(),K(0,"svg",11),M(1,"path",12),E(2,xCa,3,2,"g",13),L());a&2&&(a=P(2),B(),Kf("stroke-dasharray",a.lineDash?a.lineDash:null),B(),I("ngIf",a.shape))},zCa=function(a){a&1&&(Ad(),K(0,"g",14),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),Kf("d",
a.shape),B(),Kf("d",a.shape))},ACa=function(a){a&1&&(Ad(),K(0,"svg",16),M(1,"path",17)(2,"path",12),E(3,zCa,3,2,"g",13),L());a&2&&(a=P(2),B(3),I("ngIf",a.shape))},BCa=function(a){a&1&&(Ad(),K(0,"svg",18),M(1,"path",19)(2,"path",20),L())},CCa=function(a){a&1&&(Ad(),K(0,"svg",21),M(1,"path",22)(2,"path",23),L())},DCa=function(a){a&1&&(Ad(),K(0,"svg",24),M(1,"path",25),L())},ECa=function(a){a&1&&(Ad(),M(0,"path",29))},FCa=function(a){a&1&&(Ad(),K(0,"g",30),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),
B(),Kf("d",a.shape),B(),Kf("d",a.shape))},GCa=function(a){a&1&&(Ad(),K(0,"svg",26),E(1,ECa,1,0,"path",27)(2,FCa,3,2,"g",28),L());a&2&&(a=P(2),B(),I("ngIf",!a.shape),B(),I("ngIf",a.shape))},HCa=function(a){a&1&&(Ad(),K(0,"svg",31),M(1,"circle",32),L())},JCa=function(a){a&1&&(K(0,"i",3),E(1,yCa,3,2,"svg",4)(2,ACa,4,1,"svg",5)(3,BCa,3,0,"svg",6)(4,CCa,3,0,"svg",7)(5,DCa,2,0,"svg",8)(6,GCa,3,2,"svg",9)(7,HCa,2,0,"svg",10),L());a&2&&(a=P(),I("ngSwitch",a.keyShape)("ngStyle",Jg(8,ICa,a.color||"#000",a.color||
"#000")),B(),I("ngSwitchCase","line"),B(),I("ngSwitchCase","line-with-area"),B(),I("ngSwitchCase","band-max"),B(),I("ngSwitchCase","band-min"),B(),I("ngSwitchCase","threshold"),B(),I("ngSwitchCase","square"))},KCa=function(a){a&1&&(Ad(),K(0,"svg",35)(1,"clipPath"),M(2,"path"),L(),K(3,"g",36),M(4,"path",15)(5,"path",37),L()());a&2&&(a=P(2),B(),Kf("id",a.clipPathId),B(),Kf("d",a.shape),B(2),Kf("d",a.shape),B(),Kf("d",a.shape)("clip-path","url(#"+a.clipPathId+")"))},LCa=function(a){a&1&&(Ad(),K(0,"svg",
35)(1,"clipPath"),M(2,"path"),L(),K(3,"g",36),M(4,"path",15)(5,"path",37),L()());a&2&&(a=P(2),B(),Kf("id",a.clipPathId),B(),Kf("d",a.defaultCircleShape),B(2),Kf("d",a.defaultCircleShape),B(),Kf("d",a.defaultCircleShape)("clip-path","url(#"+a.clipPathId+")"))},MCa=function(a){a&1&&(K(0,"i",33),E(1,KCa,6,5,"svg",34)(2,LCa,6,5,"ng-template",null,1,Mg),L());if(a&2){a=qg(3);var b=P();I("ngStyle",Jg(3,ICa,b.hollow?"#fff":b.color||"#000",b.color||"#000"));B();I("ngIf",b.shape)("ngIfElse",a)}},NCa=function(a){a&
1&&(Ad(),K(0,"svg",2),M(1,"polygon",3),L())},OCa=function(a){if(a&1){var b=t();Rf(0,"div",0);Cna("click",function(){u(b);var c=P();return v(c.closed.emit("click"))})("animationstart",function(c){u(b);var d=P();return v(d._onAnimationStart(c.animationName))})("animationend",function(c){u(b);var d=P();return v(d._onAnimationDone(c.animationName))})("animationcancel",function(c){u(b);var d=P();return v(d._onAnimationDone(c.animationName))});Rf(1,"div",1);dg(2);Sf()()}a&2&&(a=P(),xg(a._classList),wg("mat-menu-panel-animations-disabled",
a._animationsDisabled)("mat-menu-panel-exit-animation",a._panelAnimationState==="void")("mat-menu-panel-animating",a._isAnimating()),Qf("id",a.panelId),Kf("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},PCa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),Q(2,"more_vert"),L()());a&2&&(P(),a=qg(2),I("matMenuTriggerFor",a))},ql=function(a,b){if((a=a.bucketOptions)&&a.exponentialBuckets&&a.exponentialBuckets.growthFactor){var c=a.exponentialBuckets.scale||
1;a=a.exponentialBuckets.growthFactor;return[c*Math.pow(a,b-1),c*Math.pow(a,b)]}return a&&a.linearBuckets&&a.linearBuckets.width?(c=a.linearBuckets.offset||0,a=a.linearBuckets.width,[c+a*(b-1),c+a*b]):a&&a.explicitBuckets&&a.explicitBuckets.bounds?(a=a.explicitBuckets.bounds,[b>0?a[b-1]:-Infinity,b<a.length?a[b]:Infinity]):[null,null]},QCa=function(a,b){var c=Object.keys(a).sort();c=m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=b.get(d);e||(e=new Set,b.set(d,e));e.add(a[d])}},RCa=function(a){var b=
new Map,c=new Map,d=new Map,e=new Map;a=m(a);for(var f=a.next();!f.done;f=a.next())if(f=f.value)QCa(f.resource&&f.resource.labels||{},b),QCa(f.metric&&f.metric.labels||{},c),QCa(f.metadata||{},d),QCa(f.labels||{},e);return{resource:b,metric:c,metadata:d,uncategorized:e}},SCa=function(a){var b=a.indexOf(".");return(b=b>=0?[a.slice(0,b),a.slice(b+1)]:null)?b[0]+"."+rl(b[1]):rl(a)},TCa=function(a){var b=[];try{var c=Sza(new wk(a));for(a=0;c&&a<c.length;){var d=c[a++];a++;a++;a++;var e=d&&d.toString();
e&&b.push(e)}}catch(f){}return b},UCa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d.size>1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},VCa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d.size===1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},WCa=function(){return[[{isDefault:!0,
title:"Name",template:"${getName()}",tokenizer:new sl("${getName()}")}]]},YCa=function(a){var b;return((b=a[0])==null?0:b.labels)?(b=a.filter(function(c){return!!c}).map(function(c){return c.labels}).reduce(function(c,d){if(!d)return c;d=m(Object.keys(d));for(var e=d.next();!e.done;e=d.next())(e=e.value)&&!c.includes(e)&&c.push(e);return c},[]),b.length===0?[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new sl("${name}")}]]:[b.map(function(c){var d=XCa(c);return{isDefault:a.length===1||
!a.every(function(e){var f,g,k;return(e==null?void 0:(f=e.labels)==null?void 0:f[c])===((g=a[0])==null?void 0:(k=g.labels)==null?void 0:k[c])}),title:c,template:"${labels."+d+"}",tokenizer:new sl("${labels."+d+"}")}})]):[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new sl("${name}")}]]},ZCa=function(a,b){var c=1,d=[],e=function(ka,Ga){d.push({isDefault:!0,title:ka,template:Ga,tokenizer:new sl(Ga),uniqueId:c++})},f=function(ka,Ga){d.push({isDefault:!1,title:ka,template:Ga,tokenizer:new sl(Ga),
uniqueId:c++})},g=a.find(function(ka){return!!ka});if(!g)return null;g=g.requestParams;var k=RCa(a);a=k.resource;var l=k.metric,r=k.metadata;k=k.uncategorized;var w=[];if(g){var x=[],C;if((C=g["secondaryAggregation.groupByFields"])==null?0:C.length)x=g["secondaryAggregation.groupByFields"];else{var H;if((H=g["aggregation.groupByFields"])==null?0:H.length)x=g["aggregation.groupByFields"]}x.forEach(function(ka){ka!=="resource.label.*"&&ka!=="resource.*"&&(ka==="project"&&w.push("resource.labels.project"),
ka.indexOf("resource.labels.")===0?w.push(ka):ka.indexOf("resource.label.")===0?w.push("resource.labels."+ka.substring(15)):ka.indexOf("resource.")===0&&w.push("resource.labels."+ka.substring(9)),ka.indexOf("metric.labels.")===0?w.push(ka):ka.indexOf("metric.label.")===0?w.push("metric.labels."+ka.substring(13)):ka.indexOf("metric.")===0&&w.push("metric.labels."+ka.substring(7)),ka.indexOf("metadata.")===0&&w.push("metadata."+ka.substring(9)))})}var J=UCa(a),O=UCa(l),R=UCa(r);C=UCa(k);var V=VCa(a),
ca=VCa(l),oa=VCa(r);H=VCa(k);var ua=function(ka,Ga){Ga=ka.indexOf(Ga);Ga!==-1&&delete ka[Ga]};w.forEach(function(ka){if(ka.indexOf("resource.labels.")===0){var Ga=rl(ka.substring(16));ua(J,Ga);ua(V,Ga);Ga==="project"&&(ua(J,"project_id"),ua(V,"project_id"))}ka.indexOf("metric.labels.")===0&&(Ga=rl(ka.substring(14)),ua(O,Ga),ua(ca,Ga));ka.indexOf("metadata.")===0&&(ka=SCa(ka.substring(9)),ua(R,ka),ua(oa,ka))});if(!b&&J.length===0&&O.length===0&&R.length===0&&C.length===0&&g&&(e("Metric","${shortMetric}"),
g.filter&&(b=TCa(g.filter))))for(b=m(b),g=b.next();!g.done;g=b.next())g=g.value,g.indexOf("metric.label.")===0&&(a=rl(g.substring(13)),e(a,"${metric.labels."+a+"}"),ua(O,a),ua(ca,a),ua(w,"metric.labels."+a)),g.indexOf("resource.label.")===0&&(a=rl(g.substring(15)),e(a,"${resource.labels."+a+"}"),ua(J,a),ua(V,a),ua(w,"resource.labels."+a),a==="project"&&(ua(J,"project_id"),ua(V,"project_id"),ua(w,"resource.labels.project_id"))),g.indexOf("metadata.")===0&&(a=SCa(g.substring(9)),e(a,"${metadata."+XCa(a)+
"}"),ua(R,a),ua(oa,a),ua(w,"metadata."+a)),g.indexOf("select_slo_")===0&&(e("SLO","${tssData.slo}"),g.includes("recent_loss")&&e("Lookback","${tssData.lookback}"));w.forEach(function(ka){if(ka==="resource.labels.project"||ka==='resource.labels."project"')e("project","${resource.labels.project_id}");else if(ka==="resource.labels.instance_id"||ka==='resource.labels."instance_id"')e("Name (from instance_id)","${instanceNameOrId()}"),f("instance_id","${resource.labels.instance_id}");else if(ka==="resource.labels.credential_id"||
ka==='resource.labels."credential_id"')e("Name (from credential_id)","${credentialNameOrId()}"),f("credential_id","${resource.labels.credential_id}");else{var Ga=ka;Ga.indexOf("resource.labels.")===0&&(Ga=rl(Ga.substring(16)),ka="resource.labels."+Ga);Ga.indexOf("metric.labels.")===0&&(Ga=rl(Ga.substring(14)),ka="metric.labels."+Ga);Ga.indexOf("metadata.")===0&&(Ga=SCa(Ga.substring(9)),ka="metadata."+XCa(Ga));e(Ga,"${"+ka+"}")}});J.forEach(function(ka){ka==="instance_id"||ka==='"instance_id"'?(e("Name (from instance_id)",
"${instanceNameOrId()}"),ka=rl(ka),f(ka,"${resource.labels."+ka+"}")):ka==="credential_id"||ka==='"credential_id"'?(e("Name (from credential_id)","${credentialNameOrId()}"),ka=rl(ka),f(ka,"${resource.labels."+ka+"}")):(ka=rl(ka),e(ka,"${resource.labels."+ka+"}"))});O.forEach(function(ka){ka=rl(ka);e(ka,"${metric.labels."+ka+"}")});R.forEach(function(ka){ka=SCa(ka);e(ka,"${metadata."+XCa(ka)+"}")});C.forEach(function(ka){e(ka,"${labels."+ka+"}")});V.forEach(function(ka){ka!=="instance_id"&&ka!=='"instance_id"'||
f("Name (from instance_id)","${instanceNameOrId()}");ka!=="credential_id"&&ka!=='"credential_id"'||f("Name (from credential_id)","${credentialNameOrId()}");ka=rl(ka);f(ka,"${resource.labels."+ka+"}")});ca.forEach(function(ka){ka=rl(ka);f(ka,"${metric.labels."+ka+"}")});oa.forEach(function(ka){ka=SCa(ka);f(ka,"${metadata."+XCa(ka)+"}")});H.forEach(function(ka){f(ka,"${labels."+ka+"}")});return d.length===0?null:[d]},XCa=function(a){return a.replace(/\./g,"\\.").replace(/'/g,"\\'")},$Ca=function(a,
b){if(a.length!==b.length)return!1;for(var c=0;c<b.length;c++)if(a[c]!==b[c])return!1;return!0},aDa=function(a){var b=[],c=[],d=new Map;a.forEach(function(e){if((e==null?void 0:e.resource)!=null){var f=e.resource.labels;f!=null&&(e=f.monitored_resource_container,f=f.project_id,e!=null&&f!=null&&e.split("/").length===2&&(e==null||b.includes(e)||b.push(e),e="projects/"+f,f==null||c.includes(e)||c.push(e)))}});if(c.length===0||b.length===0)return d;if($Ca(b,c))return d.set("project_id",!0),d.set("monitored_resource_container",
!1),d;d.set("monitored_resource_container",!0);d.set("project_id",!1);return d},bDa=function(a){if(a==null)return null;var b=a.resource;return b?Object.assign({},a,{resource:Object.assign({},b,{labels:Object.assign({},b.labels,b.displayedLabels)})}):a.displayedLabels?Object.assign({},a,{labels:Object.assign({},a.labels,a.displayedLabels)}):a},cDa=function(a){var b;return(b=a.map(function(c){var d;return(d=c==null?void 0:c.dataSeriesMetadata)!=null?d:null}))!=null?b:[]},dDa=function(a,b,c){if(b!==
void 0)b={formatter:new sl(b),labelTables:null,seriesMetadata:null};else if(b=c?YCa(a):ZCa(a,!1)){c=aDa(a);a=a?a.map(bDa):null;for(var d="",e=m(b),f=e.next();!f.done;f=e.next())if(f=f.value){f=m(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,g.isDefault&&c.get(g.title)!==!1){var k=void 0;d+=((k=g.template)!=null?k:"")+'" "'}}b=d?{formatter:new sl(d),labelTables:b,seriesMetadata:a}:{formatter:null,labelTables:b,seriesMetadata:a}}else b={formatter:null,labelTables:b,seriesMetadata:a};return b},
fDa=function(a,b){var c=c===void 0?eDa:c;var d=b.length-2,e=c(a)/d;return function(f){if(f<=0)return b[0];if(f>=a)return b[b.length-1];f=c(f);var g=Math.floor(f/e)+1;return ABa(e*(g-1),e*g,b[g],b[g+1],f)}},eDa=function(a){return a},gDa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},hDa=function(a){a&1&&(K(0,"span"),Q(1,"SELECTED"),L())},iDa=function(a,b){a&1&&(K(0,"td",3),Q(1),L(),K(2,"td",3),Q(3),L());a&2&&(a=P(4),B(),S(" ",b," "),B(2),S(" ",a.valueColumnLabel," "))},jDa=function(a){a&1&&M(0,
"td",4)},kDa=function(a){a&1&&(K(0,"tr")(1,"td",3),T(2,"async"),F(3,gDa,2,0,"span")(4,hDa,2,0,"span"),L(),F(5,iDa,4,2),T(6,"async"),F(7,jDa,1,0,"td",4),L());if(a&2){var b;a=P(3);B();Kf("colspan",U(2,4,a.timeshiftColumnLabelObservable)?2:4);B(2);G(a.chartQuickActionsEnabled?3:4);B(2);G((b=U(6,6,a.timeshiftColumnLabelObservable))?5:-1,b);B(2);G(a.streamActions.length?7:-1)}},lDa=function(a){a&1&&Wf(0)},nDa=function(a){a&1&&E(0,lDa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",
b.seriesRowTemplate)("ngTemplateOutletContext",Jg(2,mDa,a.metadata,a.name))}},oDa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},pDa=function(a){a&1&&(K(0,"td",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.timeshiftDisplayValue||"-"," "))},qDa=function(a){a&1&&Wf(0)},sDa=function(a){a&1&&E(0,qDa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Kg(2,rDa,a.rawValue,a.metadata,a.displayValue))}},tDa=function(a){a&
1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.displayValue," "))},uDa=function(a){a&1&&(K(0,"td",4),M(1,"ac-series-stream-actions",12),L());if(a&2){a=P().$implicit;var b=P(3);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},vDa=function(a,b){a&1&&(K(0,"tr")(1,"td",5),M(2,"ac-key",6),L(),K(3,"td",7)(4,"div",8),F(5,nDa,1,5,"ng-container")(6,oDa,1,1),L()(),F(7,pDa,2,1,"td",9),T(8,"async"),K(9,"td",10),F(10,sDa,1,6,"ng-container")(11,tDa,1,1),L(),F(12,uDa,2,2,"td",4),L());if(a&2){a=b.$implicit;
b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();wg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B(2);G(b.seriesRowTemplate?5:6);B(2);G(U(8,13,b.timeshiftColumnLabelObservable)?7:-1);B(2);wg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},wDa=function(a,
b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),S("",b," above"))},xDa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},yDa=function(a,b){a&1&&(K(0,"td",3),Q(1),L(),K(2,"td",3),Q(3),L());a&2&&(a=P(4),B(),S(" ",b," "),B(2),S(" ",a.valueColumnLabel," "))},zDa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),T(2,"async"),F(3,wDa,2,1,"span"),T(4,"async"),T(5,"async"),Lf(6,xDa,2,0,"span"),L(),F(7,yDa,4,2),T(8,"async"),L());if(a&2){var b,c;a=P(3);B();Kf("colspan",U(2,3,a.timeshiftColumnLabelObservable)?2:4);B(2);G((b=
U(4,5,a.streamsAboveCountObservable))?3:U(5,7,a.streamsAboveCountObservable)===0?6:-1,b);B(4);G((c=U(8,9,a.timeshiftColumnLabelObservable))?7:-1,c)}},ADa=function(a,b){a&1&&(K(0,"td",3),Q(1),L(),K(2,"td",3),Q(3),L());a&2&&(a=P(4),B(),S(" ",b," "),B(2),S(" ",a.valueColumnLabel," "))},BDa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),T(2,"async"),K(3,"span"),Q(4," \u2014 "),L()(),F(5,ADa,4,2),T(6,"async"),L());if(a&2){var b;a=P(3);B();Kf("colspan",U(2,2,a.timeshiftColumnLabelObservable)?2:4);B(4);G((b=U(6,
4,a.timeshiftColumnLabelObservable))?5:-1,b)}},DDa=function(a){a&1&&(F(0,kDa,8,8,"tr"),T(1,"async"),Of(2,vDa,13,15,"tr",null,Mf),T(4,"async"),F(5,zDa,9,11,"tr",2),T(6,"async"),T(7,"async"),T(8,"async"),T(9,"async"),F(10,BDa,7,6,"tr",2),T(11,"async"),T(12,"async"));if(a&2){var b,c;a=P(2);G(U(1,3,a.showSelectedSeriesHeadersObservable)?0:-1);B(2);var d;Pf((d=U(4,5,a.selectedStreamsObservable))!=null?d:Hg(19,CDa));B(3);G(a.onlyShowSelectedSeriesInternal||a.compact||!(((b=U(6,7,a.selectedStreamsObservable))==
null?0:b.length)||U(7,9,a.streamsAboveCountObservable)||U(8,11,a.streamsBelowCountObservable)||U(9,13,a.timeshiftColumnLabelObservable))?-1:5);B(5);G(a.compact&&(((c=U(11,15,a.selectedStreamsObservable))==null?0:c.length)||U(12,17,a.timeshiftColumnLabelObservable))?10:-1)}},EDa=function(a){a&1&&Wf(0)},FDa=function(a){a&1&&E(0,EDa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Jg(2,mDa,a.metadata,a.name))}},GDa=function(a){a&
1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},HDa=function(a){a&1&&(K(0,"td",10),Q(1),L());a&2&&(a=P().$implicit,wg("strong",a.isInteracted),B(),S(" ",a.timeshiftDisplayValue||"-"," "))},IDa=function(a){a&1&&Wf(0)},JDa=function(a){a&1&&E(0,IDa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Kg(2,rDa,a.rawValue,a.metadata,a.displayValue))}},KDa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a.displayValue," "))},
LDa=function(a){a&1&&(Q(0),M(1,"br"),Q(2),M(3,"br"),Q(4));a&2&&(a=P(2).$implicit,S(" max: ",a.maxDisplayValue," "),B(2),S(" mean: ",a.displayValue," "),B(2),S(" min: ",a.minDisplayValue," "))},MDa=function(a){a&1&&F(0,KDa,1,1)(1,LDa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},NDa=function(a){a&1&&(K(0,"td",4),M(1,"ac-series-stream-actions",12),L());if(a&2){a=P().$implicit;var b=P(3);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},PDa=function(a,b){a&1&&(K(0,
"tr")(1,"td",5),M(2,"ac-key",6),L(),K(3,"td",7)(4,"div",15),F(5,FDa,1,5,"ng-container")(6,GDa,1,1),L()(),F(7,HDa,2,3,"td",16),T(8,"async"),K(9,"td",10),F(10,JDa,1,6,"ng-container")(11,MDa,2,1),L(),F(12,NDa,2,2,"td",4),L());if(a&2){a=b.$implicit;b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();wg("strong",a.isInteracted);B();I("ngStyle",Ig(16,ODa,b.minWidth+"px"));B();G(b.seriesRowTemplate?
5:6);B(2);G(U(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);wg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},QDa=function(a){a&1&&(K(0,"span"),Q(1),T(2,"async"),T(3,"async"),L());if(a&2){a=P(4);B();var b,c;S(" ",((b=U(2,1,a.streamsBelowCountObservable))!=null?b:0)+((c=U(3,3,a.streamsAboveCountObservable))!=null?c:0)," additional values ")}},RDa=function(a){a&1&&(K(0,"span"),Q(1,"\u2014"),L())},SDa=function(a){a&1&&(K(0,"span"),Q(1),T(2,"async"),
L());a&2&&(a=P(5),B(),S("",U(2,1,a.streamsBelowCountObservable)," below"))},TDa=function(a){a&1&&(F(0,RDa,2,0,"span"),T(1,"async"),T(2,"async"),Lf(3,SDa,3,3,"span"));a&2&&(a=P(4),G(U(1,1,a.streamsBelowCountObservable)===0?0:U(2,3,a.streamsBelowCountObservable)?3:-1))},UDa=function(a){a&1&&(K(0,"tr",14)(1,"td",17),F(2,QDa,4,5,"span")(3,TDa,4,5),L()());a&2&&(a=P(3),B(2),G(a.compact?2:3))},VDa=function(a){a&1&&(Of(0,PDa,13,18,"tr",null,Mf),T(2,"async"),F(3,UDa,4,1,"tr",14),T(4,"async"),T(5,"async"));
if(a&2){a=P(2);var b;Pf((b=U(2,1,a.streamsObservable))!=null?b:Hg(7,CDa));B(3);G(U(4,3,a.streamsAboveCountObservable)||U(5,5,a.streamsBelowCountObservable)?3:-1)}},WDa=function(a){a&1&&(K(0,"div",0)(1,"table")(2,"tbody",1),F(3,DDa,13,20),F(4,VDa,6,8),L()()());a&2&&(a=P(),B(2),wg("compact",a.compact),B(),G(a.hideSelectedSection?-1:3),B(),G(a.onlyShowSelectedSeriesInternal?-1:4))},XDa=function(a,b){return a.stackingIndex!==void 0&&b.stackingIndex!==void 0?b.stackingIndex-a.stackingIndex:a.pxValue!==
void 0&&b.pxValue!==void 0?a.pxValue-b.pxValue:a.scaledValue?b.scaledValue?a.valueType===2||b.valueType===2?0:b.scaledValue-a.scaledValue:-1:1},YDa=function(a){a=a===void 0?1:a;return function(b,c){return(a||1)*(b.name||"").localeCompare(c.name||"")}},ZDa=function(a,b){b=(b=b===void 0?1:b)||1;return function(c,d){c=c.labels&&c.labels[a]||"";d=d.labels&&d.labels[a]||"";return(b||1)*c.localeCompare(d,void 0,{numeric:!isNaN(Number(c))&&!isNaN(Number(d))})}},$Da=function(a){var b=(a===void 0?1:a)||1;
return function(c,d){var e=Infinity*b,f=Infinity*b;typeof c.rawValue==="number"&&(e=typeof c.pxValue==="number"?-c.pxValue:c.rawValue);typeof d.rawValue==="number"&&(f=typeof d.pxValue==="number"?-d.pxValue:d.rawValue);return f>e?-1*b:f<e?b:0}},aEa=function(a){var b=(a===void 0?1:a)||1;return function(c,d){c=c.isSelected;return c===d.isSelected?0:c?b:-1*b}},bEa=function(a){a&1&&(K(0,"span"),Q(1,":"),L())},cEa=function(a){a&1&&(K(0,"span",12)(1,"span",3),Q(2),L(),Q(3),L());if(a&2){a=P().$implicit;
var b=P(2);B(2);yg(b.valueLabel);B();S(" ",a.displayValue," ")}},eEa=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",7);N("mouseenter",function(){var d=u(c).$implicit,e=P(2);return v(e.hover(d))})("mouseleave",function(){var d=u(c).$implicit,e=P(2);return v(dEa(e,d))})("click",function(){var d=u(c).$implicit,e=P(2);return v(e.toggleSelection(d))});K(2,"span",8);M(3,"ac-key",9);Q(4);E(5,bEa,2,0,"span",10);L();E(6,cEa,4,2,"span",11);L()()}a&2&&(a=b.$implicit,b=P(2),B(),wg("selected",a.isSelected&&
b.enableSelection),B(2),I("color",a.color)("drawnAs",a.drawnAs)("shape",a.shape),B(),S(" ",a.name),B(),I("ngIf",a.displayValue&&!a.hideValue&&!b.hideAllValues),B(),I("ngIf",!a.hideValue&&!b.hideAllValues))},hEa=function(a){a&1&&(K(0,"div",4),E(1,eEa,7,8,"div",5),T(2,"async"),L());a&2&&(a=P(),I("ve",a.ve.ChartLegendPane)("ngClass",Ig(7,fEa,a.enableScrolling)),Kf("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(),I("ngForOf",U(2,5,a.streamsObservable)||Hg(9,gEa)))},iEa=function(a){a&
1&&(K(0,"li",17),Q(1," Loading... "),L())},jEa=function(a){a&1&&(K(0,"li",17),Q(1," 0 time series "),L())},lEa=function(a,b){if(a&1){var c=t();K(0,"li",18)(1,"button",19);N("mouseenter",function(){var e=u(c).$implicit,f=P(2);return v(f.hover(e))})("focusin",function(){var e=u(c).$implicit,f=P(2);return v(f.hover(e))})("mouseleave",function(){var e=u(c).$implicit,f=P(2);return v(dEa(f,e))})("focusout",function(){var e=u(c).$implicit,f=P(2);return v(dEa(f,e))})("click",function(){var e=u(c).$implicit,
f=P(2);return v(f.toggleSelection(e))});M(2,"ac-key",20);T(3,"async");K(4,"div",8)(5,"div",21);Q(6);L();K(7,"div",22);Q(8);L()()()()}if(a&2){a=b.$implicit;b=b.index;var d=P(2);B();wg("selected",a.isSelected&&d.enableSelection);I("matTooltip",a.name)("matTooltipPosition","right")("matTooltipShowDelay",500)("matTooltipClass","ac-inline-legend-hover-tooltip");Kf("tabindex",d.focusKeyManager.activeItemIndex===b?0:-1)("aria-pressed",a.isSelected&&d.enableSelection);B();I("color",a.color)("drawnAs",a.drawnAs)("shape",
a.shape)("condensed",d.condensed)("hollow",kEa(d,a,U(3,15,d.anyStreamInteractedObservable)));B(4);S(" ",a.name," ");B(2);S(" ",a.name," ")}},mEa=function(a){a&1&&(K(0,"li",23),Q(1),T(2,"async"),L());a&2&&(a=P(2),B(),S(" ",U(2,1,a.additionalStreamsObservable)," more "))},nEa=function(a){if(a&1){var b=t();K(0,"ol",13,1);T(2,"async");T(3,"async");N("keydown",function(c){u(b);var d;(d=P().focusKeyManager)==null||d.onKeydown(c);return v()});E(4,iEa,2,0,"li",14);T(5,"async");T(6,"async");E(7,jEa,2,0,"li",
14);T(8,"async");T(9,"async");E(10,lEa,9,17,"li",15);T(11,"async");E(12,mEa,3,3,"li",16);T(13,"async");L()}a&2&&(a=P(),wg("scrollable",a.enableScrolling)("narrow",U(2,14,a.narrowSubject))("hidden-trivial-legend",U(3,16,a.hideSingleSeriesLegendsObservable)),I("ve",a.ve.ChartLegendPane),Kf("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(4),I("ngIf",U(5,18,a.isLoadingObservable)===!0&&(U(6,20,a.condensedStreamsObservable)||Hg(30,gEa)).length===0),B(3),I("ngIf",U(8,22,a.isLoadingObservable)!==
!0&&(U(9,24,a.condensedStreamsObservable)||Hg(31,gEa)).length===0&&!a.hideSingleSeriesLegends),B(3),I("ngForOf",U(11,26,a.condensedStreamsObservable))("ngForTrackBy",a.trackByStreamId),B(2),I("ngIf",(U(13,28,a.additionalStreamsObservable)||0)>0))},oEa=function(a,b,c,d,e){if(c.offsets){var f=a.clientX-c.offsets.left,g=a.clientY-c.offsets.top;if(!(g<c.margins.top-1||g>c.height-c.margins.bottom+1||f<c.margins.left-1||f>c.width-c.margins.right+1)){if(e)return{x:e.x+15,y:e.y+15};c=25+b.height;e=25+b.width;
f=a.clientY+15;g=a.clientX+15;b=a.clientX-15-b.width;d===3&&b>=0&&(g=b);a.clientY+c>window.innerHeight&&(f=Math.max(10,a.clientY-c+10));a.clientX+e>window.innerWidth&&(g=Math.max(10,a.clientX-e+10));return{x:g,y:f}}}},qEa=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(){u(b);var c=P(3);pEa(c);tl(c.interactionService,"click",ul.ve.HovercardCloseButton,c.el.nativeElement);return v()})("focus",function(c){u(b);P(3).onFocus(c);return v()});M(2,"mat-icon",10);L()}a&2&&(a=P(3),wg("close-button-small",
a.chartQuickActionsEnabled),I("matTooltip",a.closeAriaLabel)("matTooltipClass","close-tooltip"),Kf("aria-label",a.closeAriaLabel),B(2),wg("close-icon-small",a.chartQuickActionsEnabled))},rEa=function(a){a&1&&(K(0,"span"),Yf(1,3),L())},sEa=function(a){a&1&&(Uf(0),M(1,"mat-icon",13),E(2,rEa,2,0,"span",14),T(3,"async"),Vf());a&2&&(a=P(4),B(2),I("ngIf",a.hasSeriesActionType&&U(3,1,a.shouldShowSeriesActionText$)))},tEa=function(a){a&1&&(M(0,"mat-icon",15),K(1,"span"),yna(2,4),M(3,"b"),td.inI18n=!1,L())},
uEa=function(a){a&1&&(K(0,"div",11),E(1,sEa,4,3,"ng-container",12),T(2,"async"),E(3,tEa,4,0,"ng-template",null,2,Mg),L());if(a&2){a=qg(4);var b=P(3);B();I("ngIf",U(2,2,b.isPinned$))("ngIfElse",a)}},vEa=function(a){if(a&1){var b=t();K(0,"ac-hovercard-dialog",6);T(1,"async");T(2,"async");N("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))});E(3,qEa,3,7,"button",7);T(4,"async");T(5,"async");dg(6);E(7,uEa,5,4,"div",8);T(8,"async");L()}a&2&&(a=P(2),I("grabFocusAndUseAsModal",U(1,4,a.grabFocusAndUseAsModalObservable))("isPinned",
U(2,6,a.isPinned$)),B(3),I("ngIf",U(4,8,a.isPinned$)||U(5,10,a.grabFocusAndUseAsModalObservable)),B(4),I("ngIf",U(8,12,a.pinningEnabled$)&&!a.hidePinPrompt))},wEa=function(a){a&1&&(E(0,vEa,9,14,"ac-hovercard-dialog",5),T(1,"async"));a&2&&(a=P(),I("ngIf",U(1,1,a.showHovercard)&&!a.hideHovercard))},xEa=function(a){return{label:String(a),value:a}},yEa=function(a,b){for(var c=[],d=0;d<a;d++){c.push([]);for(var e=0;e<b;e++)c[d].push({position:{x:0,y:0,height:0,width:0},label:"-"})}return c},zEa=function(a,
b){for(var c=[],d=new Map,e=0;e<a.length;e++){var f=a[e];d.set(f,e);var g=b(f);c.push({label:g.label,value:g.value,metadata:{timeMs:f}})}return{columns:c,xToColIndex:d}},AEa=function(a){var b=a.ticks;a=a.grid.columns;var c=a.map(function(){return!1});c.length>=1&&(c[0]=!0);c.length>=2&&(c[a.length-1]=!0);if(!b||b.length===0)return c;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=Infinity,f=0,g=0;g<a.length;g++){var k=Math.abs(a[g].metadata.timeMs-d.value);if(k<e)e=k,f=g;else break}c[f]=
!0}return c},vl=function(a,b){var c=1;c=c===void 0?1:c;b=b===void 0?1:b;if(!a)return[null,null];var d=m(a);a=d.next().value;d=d.next().value;var e=null,f=null;a>=c&&(e=a-c);d>=b&&(f=d-b);return[e,f]},BEa=function(a){var b={instanceNameOrId:function(d){var e,f,g=d==null?void 0:(e=d.metric)==null?void 0:(f=e.labels)==null?void 0:f.instance_name,k,l;d=d==null?void 0:(k=d.resource)==null?void 0:(l=k.labels)==null?void 0:l.instance_id;var r;return(r=g!=null?g:d)!=null?r:""}};if(a){var c=new sl(a);b.getName=
function(d){var e;return(e=c.format(d,BEa()))!=null?e:""}}else b.getName=function(d){var e;return(e=d.name)!=null?e:""};return b},CEa=function(a){return{label:String(a),value:a}},DEa=function(a,b){return function(c){var d=Lk(a,b,c);return{label:d!==null?Nk(d,b):Nk(c,a),value:d!=null?d:void 0}}},EEa=function(a){var b;return(b=a.name)!=null?b:a.id},FEa=function(a,b){a=a.map(function(e){var f;return(f=e.metadata)!=null?f:null});var c=dDa(a).formatter;if(c){var d=BEa(b);return function(e){var f;return c.format((f=
e.metadata)!=null?f:null,d)||EEa(e)}}return EEa},GEa=function(){return{x:0,y:0,height:0,width:0}},HEa=function(a,b,c,d){return function(e){var f=e.x,g=e.x0,k=e.y,l=e.y0,r=e.y1,w=0,x=0;e=Math.round(a(f.valueOf())||0);if((d==null?0:d.centerInOutputPeriod)&&(g!==void 0||(d==null?0:d.outputPeriodMs))&&(g=g==null?void 0:g.valueOf(),g===void 0&&(d==null?0:d.outputPeriodMs)&&(g=f.valueOf()-(d==null?NaN:d.outputPeriodMs)),g!==void 0)){e=Math.round(a((f.valueOf()+g)/2)||0);x=Math.floor(a(f.valueOf())||0);
f=Math.floor(a(g)||0);var C;x=Math.abs(x-f)*((C=d==null?void 0:d.widthMultiplier)!=null?C:1)}k=Math.round(b(k)||0);l!==void 0&&r!==void 0&&(k=Math.round(b((r+l)/2)||0),r=Math.floor(b(r)||0),l=Math.floor(b(l)||0),w=Math.abs(r-l));return e<c.left&&e+x/2<c.left||e>c.right&&e-x/2>c.right||k<c.top&&k+w/2<c.top||k>c.bottom&&k-w/2>c.bottom?{x:e,y:k,height:w,width:x,outOfBounds:!0}:{x:e,y:k,height:w,width:x}}},IEa=function(a){var b=a.data;var c=a.xAxisState;var d=a.yAxisState;var e=a.rowFormatter;var f=a.columnFormatter;
var g=a.valueFormatter;var k=a.positionMap;a=a.audioChartContext;e||(e=EEa);f||(f=xEa);g||(g=CEa);k||(k=GEa);for(var l=[],r=new Set,w=m(b.series),x=w.next();!x.done;x=w.next()){x=x.value;l.push({label:e(x),metadata:{seriesId:x.id}});x=m(x.data);for(var C=x.next();!C.done;C=x.next())C=C.value,k(C).outOfBounds||r.add(C.x.valueOf())}e=Array.from(r);e.sort(function(R,V){return R-V});e=zEa(e,f);f=e.columns;e=e.xToColIndex;r=yEa(l.length,f.length);for(w=0;w<b.series.length;w++){x=r[w];C=m(b.series[w].data);
for(var H=C.next();!H.done;H=C.next()){var J=H.value;H=e.get(J.x.valueOf());if(H!==void 0&&(H=x[H])){H.position=k(J);J=g(J.y);var O=J.value;H.label=J.label;H.value=O}}}return{rows:l,columns:f,values:r,xAxisState:c,yAxisState:d,audioChartContext:a}},yl=function(a,b,c,d){d=d===void 0?!1:d;var e=a.length>0&&a[a.length-1].x.valueOf()-a[0].x.valueOf()>0,f=wl(a,b,d?void 0:xl(c));if(f===a.length-1||a.length<2)return f;e=f+(e?1:-1);var g=a[f],k=a[e];if(!g&&!k)return 0;if(!g&&k)return e;if(!k&&g)return f;
a=g.x.valueOf();var l;g=d?void 0:((l=g.x0)==null?void 0:l.valueOf())||(c?a-c:void 0);l=k.x.valueOf();var r;d=d?void 0:((r=k.x0)==null?void 0:r.valueOf())||(c?l-c:void 0);return(g&&b>=g&&b<=a?0:Math.abs(b-a))<=Math.abs(b-(d||l))?f:e},xl=function(a){return function(b){var c;return((c=b.x0)==null?void 0:c.valueOf())||(a?b.x.valueOf()-a:void 0)}},zl=function(a,b,c,d){b=Math.abs(c.x.valueOf()-b.x.valueOf());return a?d?{gapDetected:b>Math.max(a*2,6E5),gapWidthMs:b}:{gapDetected:b>=a*2,gapWidthMs:b}:{gapDetected:!1,
gapWidthMs:b}},wl=function(a,b,c){if(a.length>0?a[a.length-1].x.valueOf()-a[0].x.valueOf()>0:1){for(var d=0,e=a.length-1,f=Math.ceil((e+d)/2);d<e;){var g=a[f],k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f-1;else break;f=Math.ceil((e+d)/2)}return f||0}d=a.length-1;e=0;for(f=Math.floor((e+d)/2);e<d;){g=a[f];k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f+1;else break;f=Math.floor((e+d)/2)}return f},JEa=function(a,b,c){var d=a.data.length>
0&&a.data[a.data.length-1].x.valueOf()-a.data[0].x.valueOf()>0,e=wl(a.data,b-c);a=wl(a.data,b+c);return e===a?d?[e,e+1]:[a-1,a]:[Math.min(e,a),Math.max(e,a)]},NEa=function(a){var b=a.values;b.sort(function(r,w){return r.x-w.x});var c=b.map(function(r){return r.x}),d=b.map(function(r){return r.y}),e=a.earcons||[];e.sort(function(r,w){return r.x-w.x});var f=e.map(function(r){return r.x}),g;f=KEa([].concat(q(c),q(f)),(g=a.xAxis)!=null?g:{});var k,l;return{values:b,earcons:e,xAxis:Object.assign({},f,
{density:(l=(k=a.xAxis)==null?void 0:k.density)!=null?l:LEa([c].concat(q(MEa(e).values())),f)}),yAxis:Object.assign({},KEa(d,a.yAxis||{}))}},MEa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.x;d=d.earcon;var e=b.get(d);e===void 0?b.set(d,[c]):e.push(c)}return b},LEa=function(a,b){a=a.map(OEa).filter(function(c){return c!==null});if(a.length===0)return 1;a=Math.min.apply(Math,q(a));return 1+(b.max-b.min)/a},OEa=function(a){a=[].concat(q(new Set(a)));if(a.length<
2)return null;var b=[];a.sort(function(d,e){return d-e});for(var c=0;c<a.length-1;c++)b.push(a[c+1]-a[c]);b.sort(function(d,e){return d-e});a=(b.length-1)/2;return b[Math.ceil(a)]/2+b[Math.floor(a)]/2},KEa=function(a,b){var c=b.min;b=b.max;var d=Math.min.apply(Math,q(a));c=c===void 0?d:c;a=Math.max.apply(Math,q(a));return{min:c,max:b===void 0?a:b}},PEa=function(a,b,c,d,e){return c+(e-a)*(c-d)/(a-b)},QEa=function(a){var b=a.min,c=a.max,d=c===b?function(){return-6}:function(e){return PEa(b,c,-24,12,
e)};return function(e){e=d(e);return 440*Math.pow(2,e/12)}},TEa=function(a){var b=b===void 0?.13:b;var c=REa(a.xAxis),d=SEa(a.xAxis,b),e=QEa(a.yAxis),f=a.values.map(function(k){var l=k.x;return{frequency:e(k.y),onset:d(l),pan:c(l)}}),g=a.earcons.map(function(k){var l=k.x;return{earcon:k.earcon,onset:d(l),pan:c(l)}});return{notes:f,earcons:g,durationSeconds:(a.xAxis.density-1)*b}},SEa=function(a,b){var c=a.min,d=a.max,e=(a.density-1)*b;return c===d?function(){return 0}:function(f){return PEa(c,d,0,
e,f)}},REa=function(a){var b=a.min,c=a.max;return b===c?function(){return 0}:function(d){return PEa(b,c,-1,1,d)}},WEa=function(a){var b=UEa,c;return y(function(d){if(d.nextAddress==1){if(b instanceof VEa)var e=b.privateDoNotAccessOrElseWrappedScript;else throw Error("na");c=uh(URL.createObjectURL(new Blob([e.toString()],{type:"text/javascript"})));return z(d,a.audioWorklet.addModule(c.toString()),2)}URL.revokeObjectURL(c.toString());ce(d)})},XEa=function(a){a=rh(a).toString();var b=new Al;pj(b,2,
a);return b},YEa=function(a){if(!a)return null;a=Dl(a,2);return a===null||a===void 0?null:ph(a)},ZEa=function(a){if(!a)return null;a=Dl(a,3);return a===null||a===void 0?null:new wh(a)},$Ea=function(a){if(!a)return null;a=Dl(a,6);if(a===null||a===void 0)a=null;else{var b=Nqa();a=b?b.createScript(a):a;a=new VEa(a)}return a},aFa=function(a){var b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1){b=a.context;for(var r=b.createBuffer(1,5*b.sampleRate,b.sampleRate),w=0;w<1;w++)for(var x=r.getChannelData(w),
C=0,H=0;H<x.length;H++)C=(C+.02*(Math.random()*2-1))/1.02,x[H]=C;w=b.createBufferSource();w.buffer=r;w.loop=!0;c=w;c.start(b.currentTime);d=b.createGain();d.gain.value=0;e=b.createGain();c.connect(d).connect(e);return z(l,WEa(b),2)}f=new AudioWorkletNode(b,"rectifier-worklet");f.channelCountMode="explicit";f.channelCount=1;g=new AudioWorkletNode(b,"threshold-worklet");g.channelCountMode="explicit";g.channelCount=1;k=new AudioWorkletNode(b,"slew-worklet");k.channelCountMode="explicit";k.channelCount=
1;a.connect(f).connect(g).connect(k).connect(d.gain);return l.return(e)})},cFa=function(a){if(a&1){var b=t();K(0,"th",22,2);N("focus",function(c){u(b);var d=P();return v(d.focus(c))})("blur",function(c){u(b);var d=P();return v(d.blur(c))});K(2,"span",16);Q(3);L()()}a&2&&(a=P(),Kf("aria-colindex",2)("tabindex",bFa(a)?0:-1),B(3),yg(a.AUDIO_HEADER))},gFa=function(a,b){if(a&1){var c=t();Uf(0);K(1,"th",23)(2,"button",24,3);N("click",function(){var d=u(c).$implicit,e=P();return v(dFa(e,d.colIndex))})("focus",
function(d){u(c);var e=P();return v(e.focus(d))})("blur",function(d){u(c);var e=P();return v(e.blur(d))});Q(4);L()();Vf()}a&2&&(a=b.$implicit,b=P(),B(),I("ngStyle",Jg(7,eFa,a.column.position.x,a.column.position.y)),Kf("aria-colindex",a.colIndex+b.numberOfHeaderColumns+1),B(),Kf("id",a.column.id)("tabindex",a.column.tabindex)("aria-describedby",b.columnToggleDescriptionId)("aria-expanded",fFa(b,a.colIndex+1)),B(2),S(" ",a.column.label," "))},iFa=function(a){a&1&&(Uf(0),M(1,"mat-icon",31),Vf());a&2&&
(a=P(3),B(),I("svgIcon",hFa(a)?"ac:music_off":"ac:music_note"))},mFa=function(a){if(a&1){var b=t();K(0,"td",28)(1,"button",29,5);N("click",function(){u(b);var d=P().$implicit,e=P();jFa(e,d.rowIndex,!0);return v()})("focus",function(d){u(b);var e=P(2);return v(e.focus(d))})("blur",function(d){u(b);var e=P(2);return v(e.blur(d))});K(3,"span");Q(4);L();K(5,"span",30);Q(6);L();E(7,iFa,2,1,"ng-container",20);L()()}if(a&2){a=P().$implicit;var c=P();I("ngStyle",Jg(10,eFa,a.row.position.x,a.row.position.y));
Kf("aria-colindex",2);B();I("disabled",!c.internalAudioValues[a.rowIndex].audioChartOptions);Kf("id",c.internalAudioValues[a.rowIndex].id)("tabindex",c.internalAudioValues[a.rowIndex].tabindex)("aria-describedby",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B(3);yg(kFa(c,a.rowIndex));B();Kf("id",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B();S(" ",lFa(c,a.rowIndex)," ");B();I("ngIf",!!c.internalAudioValues[a.rowIndex].audioChartOptions)}},nFa=function(a,b){if(a&1){var c=t();Uf(0);K(1,"td",
32)(2,"button",33,6);N("click",function(d){u(c);var e=P(2);d.target instanceof HTMLElement&&e.onGridCellActivate.emit(d.target);return v()})("focus",function(d){u(c);var e=P(2);return v(e.focus(d))})("blur",function(d){u(c);var e=P(2);return v(e.blur(d))});Q(4);L()();Vf()}a&2&&(a=b.$implicit,b=P(2),B(),I("ngStyle",Boa(a.column.position.x,a.column.position.y,a.column.position.height,a.column.position.width)),Kf("aria-colindex",a.colIndex+b.numberOfHeaderColumns+1),B(),Kf("tabindex",a.column.tabindex)("id",
a.column.id)("aria-describedby",b.activateGridCellDescriptionId),B(2),S(" ",a.column.label," "))},pFa=function(a,b){if(a&1){var c=t();K(0,"tr",25)(1,"th",26)(2,"button",24,4);N("click",function(){var d=u(c).$implicit,e=P();return v(e.toggleRow(d.rowIndex))})("focus",function(d){u(c);var e=P();return v(e.focus(d))})("blur",function(d){u(c);var e=P();return v(e.blur(d))});K(4,"span");Q(5);L()()();E(6,mFa,8,13,"td",27)(7,nFa,5,11,"ng-container",18);L()}a&2&&(a=b.$implicit,b=P(),Kf("aria-rowindex",a.rowIndex+
2),B(),I("ngStyle",Jg(11,eFa,a.row.position.x,a.row.position.y)),Kf("aria-colindex",1),B(),Kf("id",a.row.id)("tabindex",a.row.tabindex)("aria-describedby",b.rowToggleDescriptionId)("aria-expanded",oFa(b,a.rowIndex+1)),B(3),yg(a.row.label),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalValues[a.rowIndex]))("ngForTrackBy",b.trackColumnById))},qFa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),Yf(3,9),L()()())},sFa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),
Yf(3,10),L()()());a&2&&(a=P(),B(3),Zf(rFa(a)),cna(30))},El=function(a,b,c,d,e,f,g){f=f===void 0?"default":f;if(!a)return null;var k=b!=null?b:(new Date).valueOf(),l=Infinity;a=a.series.map(function(r){var w=r.data;if(w.length===0||!b)return{seriesId:r.id,value:null};var x=w[w.length-1].x.valueOf()-w[0].x.valueOf()>0;if(f==="default")var C=yl(w,b,d,!0);else f==="left_only"?C=wl(w,b):(C=w.length>0&&w[w.length-1].x.valueOf()-w[0].x.valueOf()>0,C=wl(w,b)+(C?1:-1));var H=C;if(H<0||H>=w.length)return{seriesId:r.id,
value:null};var J=C=w[H],O=!1;if(!g||Math.abs(C.x.valueOf()-b)>g)if(d){var R=w[H+(x?-1:1)];w=w[H+(x?1:-1)];var V,ca;if(b<=((ca=(V=C.x0)==null?void 0:V.valueOf())!=null?ca:C.x.valueOf())&&R)O=zl(d,R,C,e).gapDetected;else if(b>=C.x.valueOf()&&w)O=zl(d,C,w,e).gapDetected;else if(b>C.x.valueOf()&&!w)O=Math.abs(b-C.x.valueOf())>d;else{var oa,ua;if(b<((ua=(oa=C.x0)==null?void 0:oa.valueOf())!=null?ua:C.x.valueOf())&&!R){var ka;V=(ka=C.x0)==null?void 0:ka.valueOf();O=V===void 0?Math.abs(b-C.x.valueOf())>
d*2:Math.abs(b-V)>d}}}else g&&(O=!0);O?c==="zero_fill"?J={x:new Date(k),y:0}:J=null:(k=C.x.valueOf(),Math.abs(k-b)<Math.abs(l-b)&&(l=k));return{seriesId:r.id,value:J}});d===null&&c==="gap_detection"&&(k=l);return{values:a,timeRange:{x:k}}},tFa=function(a,b){return a.x>=b.margins.left&&a.x<=b.width-b.margins.right&&a.y>=b.margins.top&&a.y<=b.height-b.margins.bottom},uFa=function(a){return a.series.length===0||a.series.some(function(b){return b.data.some(function(c){return typeof c.y==="number"})})||
a.series.every(function(b){return b.data.length===0})},vFa=function(a){return a.series.length===0||a.series.some(function(b){return b.data.some(function(c){var d;return(d=c.y)==null?void 0:d.bucketOptions})})||a.series.every(function(b){return b.data.length===0})},Fl=function(a){return typeof a==="string"?a:a.length===0?wFa[0]:a[0].color},xFa=function(a,b){a&1&&(Uf(0),K(1,"div",1),Q(2),L(),Vf());a&2&&(a=b.ngIf,B(2),S(" ",a," "))},yFa=function(a,b){a&1&&(Rf(0,"div",0),dg(1),Q(2),dg(3,1),Sf());a&2&&
(B(2),S(" ",b," "))},zFa=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"div",3),Q(3),T(4,"async"),L()());a&2&&(a=P(),B(3),yg(U(4,1,a.nonblockingErrorMessageObservable)))},AFa=function(a,b){a&1&&(Uf(0),K(1,"div")(2,"span",1)(3,"span",2),Q(4),L(),M(5,"BR"),K(6,"span",3),Q(7),L()()(),Vf());if(a&2){a=b.ngIf;b=P();B(4);var c;yg((c=a==null?null:a.label)!=null?c:"");B(3);var d,e;ooa(" ",b.aboveLabel," ",(d=a==null?null:a.lowerBound)!=null?d:"",", ",b.belowLabel," ",(e=a==null?null:a.upperBound)!=
null?e:"")}},BFa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),Q(2,"more_vert"),L()());a&2&&(P(),a=qg(2),I("matMenuTriggerFor",a))},CFa=function(a){a&1&&Wf(0)},EFa=function(a){a&1&&E(0,CFa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Jg(2,DFa,a.metadata,a.name))}},FFa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},GFa=function(a){a&1&&(K(0,"td",8),Q(1),L());a&2&&(a=P().$implicit,wg("strong",a.isInteracted),
B(),S(" ",a.timeshiftDisplayValue||"-"," "))},HFa=function(a){a&1&&Wf(0)},JFa=function(a){a&1&&E(0,HFa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Ig(2,IFa,a.rawValue))}},KFa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a.displayValue," "))},LFa=function(a){a&1&&(Q(0),M(1,"br"),Q(2),M(3,"br"),Q(4));a&2&&(a=P(2).$implicit,S(" max: ",a.maxDisplayValue," "),B(2),S(" mean: ",a.displayValue," "),B(2),S(" min: ",a.minDisplayValue,
" "))},MFa=function(a){a&1&&F(0,KFa,1,1)(1,LFa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},NFa=function(a){a&1&&(K(0,"td",9),M(1,"ac-streams-legend-actions",11),L());if(a&2){a=P().$implicit;var b=P(2);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},PFa=function(a,b){a&1&&(K(0,"tr")(1,"td",3),M(2,"ac-key",4),L(),K(3,"td",5)(4,"div",6),F(5,EFa,1,5,"ng-container")(6,FFa,1,1),L()(),F(7,GFa,2,3,"td",7),T(8,"async"),K(9,"td",8),F(10,JFa,1,4,"ng-container")(11,MFa,
2,1),L(),F(12,NFa,2,2,"td",9),L());if(a&2){a=b.$implicit;b=P(2);B(2);var c;I("color",(c=a.color)!=null?c:b.AC_SYS_COLOR_CHART_ON_SURFACE)("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();wg("strong",a.isInteracted);B();I("ngStyle",Ig(16,OFa,b.minWidth+"px"));B();G(b.seriesRowTemplate?5:6);B(2);G(U(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);wg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?
12:-1)}},RFa=function(a){a&1&&(K(0,"cdk-virtual-scroll-viewport",0)(1,"table")(2,"tbody",1),E(3,PFa,13,18,"tr",2),T(4,"async"),L()()());if(a&2){a=P();I("itemSize",20);B(3);var b;I("cdkVirtualForOf",(b=U(4,3,a.streamsObservable))!=null?b:Hg(5,QFa))("cdkVirtualForTrackBy",a.trackByIndex)}},SFa=function(a,b){return a.stackingIndex!==void 0&&b.stackingIndex!==void 0?b.stackingIndex-a.stackingIndex:a.pxValue!==void 0&&b.pxValue!==void 0?a.pxValue-b.pxValue:a.scaledValue?b.scaledValue?a.valueType===2||
b.valueType===2?0:b.scaledValue-a.scaledValue:-1:1},UFa=function(a){a&1&&M(0,"div",5);a&2&&(a=P(),I("ngStyle",Ig(1,TFa,a.childHeight+"px")))},VFa=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(),B(),yg(a.placeholder))},WFa=function(a){a&1&&dg(0)},XFa=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),yg(a.triggerValue))},YFa=function(a){a&1&&(K(0,"span",5),F(1,WFa,1,0)(2,XFa,2,1,"span",11),L());a&2&&(a=P(),B(),G(a.customTrigger?1:2))},ZFa=function(a){if(a&1){var b=t();K(0,"div",12,1);
N("keydown",function(c){u(b);var d=P();return v(d._handleKeydown(c))});dg(2,1);L()}a&2&&(a=P(),xg(Eg("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",a._getPanelTheme())),wg("mat-select-panel-animations-enabled",!a._animationsDisabled),I("ngClass",a.panelClass),Kf("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},$Fa=function(a){a&1&&(K(0,"mat-option",10),Yf(1,3),L());a&2&&(a=P(),I("value",a.TIMESHIFT_COLUMN_UNIQUE_ID),
B(),Zf(a.timeshiftName),cna(28))},aGa=function(a){a&1&&(Uf(0),K(1,"mat-option",10),Yf(2,4),L(),Vf());a&2&&(a=P(),B(),I("value",a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].uniqueId),B(),Zf(a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].title),cna(29))},bGa=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,b=P(2),I("value",a.uniqueId)("ve",b.ve.ChartLegendMenuItem)("veClick",!0),B(),S(" ",a.title," "))},cGa=function(a){a&
1&&E(0,bGa,2,4,"mat-option",12);a&2&&(a=P(),I("ngForOf",a.labelsModel.selectableColumns))},Gl=function(a){var b=bd.apply(1,arguments);if(a==null)throw TypeError("Gc");b=m(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!=null)for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a},dGa=function(){var a=Hl.supportsDOMEvents;return typeof a==="function"?a():a},fGa=function(a,b){a=a.filter(function(e){return!eGa[e]});if(a.length>0){var c=a.join(", ");try{var d=Hl.createElement("style");d.setAttribute("type",
"text/css");d.styleSheet||d.appendChild(document.createTextNode("/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media "+c+" {.fx-query-test{ }}"));b.head.appendChild(d);a.forEach(function(e){return eGa[e]=d})}catch(e){console.error(e)}}},gGa=function(a){var b={};return a.filter(function(c){return b.hasOwnProperty(c)?!1:b[c]=!0})},hGa=function(a,b){return Gl(a,b?{mqAlias:b.alias,suffix:b.suffix}:{})},jGa=function(a){var b=
m(iGa(a));a=b.next().value;b=b.next().value;b=b===void 0?null:b;return{display:"flex","box-sizing":"border-box","flex-direction":a,"flex-wrap":b?b:null}},iGa=function(a){a=a?a.toLowerCase():"";var b=m(a.split(" "));a=b.next().value;b=b.next().value;var c=a;kGa.find(function(d){return d===c})||(c=kGa[0]);return[c,lGa(b)]},mGa=function(a){a=m(iGa(a));var b=a.next().value;a.next();return b.indexOf("row")>-1},lGa=function(a){if(a)switch(a.toLowerCase()){case "reverse":case "wrap-reverse":case "reverse-wrap":a=
"wrap-reverse";break;case "no":case "none":case "nowrap":a="nowrap";break;default:a="wrap"}return a},nGa=function(a){for(var b in a){var c=a[b]||"";switch(b){case "display":a.display=c==="flex"?["-webkit-flex","flex"]:c==="inline-flex"?["-webkit-inline-flex","inline-flex"]:c;break;case "align-items":case "align-self":case "align-content":case "flex":case "flex-basis":case "flex-flow":case "flex-grow":case "flex-shrink":case "flex-wrap":case "justify-content":a["-webkit-"+b]=c;break;case "flex-direction":c=
c||"row";a["-webkit-flex-direction"]=c;a["flex-direction"]=c;break;case "order":a.order=a["-webkit-"+b]=isNaN(c)?"0":c}}return a},oGa=function(){var a=Hl.supportsDOMEvents;return typeof a==="function"?a():a},qGa=function(a,b,c){var d=nGa(b);c.forEach(function(e){pGa(d,e,a)})},pGa=function(a,b,c){Object.keys(a).forEach(function(d){for(var e=m(Array.isArray(a[d])?a[d]:[a[d]]),f=e.next();!f.done;f=e.next())c.setStyle(b,d,f.value)})},rGa=function(a,b){var c=c===void 0?!1:c;var d="";if(a&&oGa())try{var e=
d=oGa()?a.style[b]:"";c||(d=e||getComputedStyle(a).getPropertyValue(b))}catch(f){}return d?d.trim():"block"},sGa=function(a){return a.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")},tGa=function(a){return(a.length>0?a.charAt(0):"").toUpperCase()+(a.length>1?a.slice(1):"")},wGa=function(){uGa.forEach(function(a){a.suffix&&a.suffix!==""||(a.suffix=a.alias.replace(vGa,"|").split("|").map(tGa).join(""),a.overlapping=a.overlapping||!1)});return uGa},yGa=function(a){a&1&&M(0,"mat-icon",22);a&2&&(a=P(),
I("ngClass",Ig(1,xGa,!(a.xAxisPinEnabled&&a.hoveredColumn===2&&(a.currentSortColumn.id!==2||(a.currentSortColumn.direction||0)===0)))))},zGa=function(a){a&1&&M(0,"mat-icon",23)},AGa=function(a){a&1&&M(0,"mat-icon",24)},BGa=function(a){a&1&&M(0,"mat-icon",28)},CGa=function(a){a&1&&M(0,"mat-icon",29)},FGa=function(a,b){if(a&1){var c=t();K(0,"span",27);N("click",function(){u(c);var d=P(2);DGa(d,"MAIN",1);EGa(d);return v()});Q(1);E(2,BGa,1,0,"mat-icon",17)(3,CGa,1,0,"mat-icon",18);L()}a&2&&(a=b.$implicit,
b=P(2),xg(Eg("sortable-column legend-table-cell ",a)),I("fxFlex",Dg(b.columnFlexWidth))("matTooltip",Dg(a)),Kf("aria-label",a),B(),S(" ",a," "),B(),I("ngIf",b.currentSortColumn.id===1&&(b.currentSortColumn.direction||0)>0),B(),I("ngIf",b.currentSortColumn.id===1&&(b.currentSortColumn.direction||0)<0))},GGa=function(a){a&1&&(K(0,"div",25),E(1,FGa,4,11,"span",26),L());a&2&&(a=P(),B(),I("ngForOf",a.columnKeys))},HGa=function(a){a&1&&M(0,"mat-icon",22);if(a&2){var b=P().index;a=P(2);b=a.labelsModel.selectedColumns[b].uniqueId;
I("ngClass",Ig(1,xGa,!(a.hoveredColumn===b&&(a.currentSortColumn.id!==10+b||(a.currentSortColumn.direction||0)===0))))}},IGa=function(a){a&1&&M(0,"mat-icon",28)},JGa=function(a){a&1&&M(0,"mat-icon",29)},OGa=function(a,b){if(a&1){var c=t();K(0,"div",31)(1,"button",32);N("mouseenter",function(){var e=u(c).index,f=P(2);f.hoveredColumn=f.labelsModel.selectedColumns[e].uniqueId;return v()})("mouseleave",function(){u(c);P(2).hoveredColumn=null;return v()})("click",function(){var e=u(c).index,f=P(2);DGa(f,
"LABEL",10+f.labelsModel.selectedColumns[e].uniqueId);EGa(f);return v()});Q(2);E(3,HGa,1,3,"mat-icon",5)(4,IGa,1,0,"mat-icon",17)(5,JGa,1,0,"mat-icon",18);L()()}if(a&2){a=b.$implicit;b=b.index;var d=P(2);xg(Eg("ac-legend-key sortable-column ",a.toLowerCase().replace(/[^\w]+/g,"-")," ac-a11y-keyboard-focusable ac-table-legend-label-header-container"));I("fxFlex",Eg("",d.labelsModel.labelPercents[b],"%"));Kf("aria-sort",KGa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-colindex",2+b);B();I("matTooltip",
Dg(a))("ve",d.ve.ColumnSortButton)("veClick",!0);Kf("title",LGa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-label",a);B();S(" ",a," ");B();I("ngIf",!(MGa(d,d.labelsModel.selectedColumns[b].uniqueId)||NGa(d,d.labelsModel.selectedColumns[b].uniqueId)));B();I("ngIf",MGa(d,d.labelsModel.selectedColumns[b].uniqueId));B();I("ngIf",NGa(d,d.labelsModel.selectedColumns[b].uniqueId))}},PGa=function(a){a&1&&(Uf(0),E(1,OGa,6,17,"div",30),Vf());a&2&&(a=P(),B(),I("ngForOf",a.labelsModel.labelHeaders))},
RGa=function(a){a&1&&(K(0,"span",33),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.timeshiftName))("ngStyle",Jg(7,QGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",a.scale>100?"leftmost-frozen":""),Kf("aria-colindex",a.getColIndexOffsetForTimeshift())("aria-label",a.timeshiftName),B(),S(" ",a.timeshiftName," "))},SGa=function(a){a&1&&(K(0,"span",34),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.statsModeSummaryColumnLabel))("ngStyle",Jg(7,QGa,"translateX("+(-1*
a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",!a.timeshiftName&&a.scale>100?"leftmost-frozen":""),Kf("aria-colindex",a.getColIndexOffsetForStatsMode())("aria-label",a.statsModeSummaryColumnLabel),B(),S(" ",a.statsModeSummaryColumnLabel," "))},TGa=function(a){a&1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Ig(1,xGa,!(a.xAxisPinEnabled&&a.hoveredColumn===1E3&&(a.currentSortColumn.id!==1E3||(a.currentSortColumn.direction||0)===0)))))},UGa=function(a){a&1&&M(0,"mat-icon",28)},
VGa=function(a){a&1&&M(0,"mat-icon",29)},XGa=function(a){a&1&&M(0,"span",35);a&2&&(a=P(),I("ngStyle",Ig(1,WGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},YGa=function(a){a&1&&(K(0,"span",36)(1,"span",37),Q(2),L()());a&2&&(a=P(),I("ngStyle",Ig(2,WGa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")),B(2),S(" ",a.streamActionsMenuTooltip," "))},ZGa=function(a){a&1&&(K(0,"div",18)(1,"span",19),Q(2),L()());a&2&&(a=P(),B(),I("matTooltip",Dg(a.stream.name)),B(),S(" ",a.stream.name,
" "))},aHa=function(a,b){a&1&&(K(0,"span",20),Q(1),L());if(a&2){a=b.$implicit;b=b.index;var c=P();I("fxFlex",Eg("",c.labelPercents[b],"%"))("matTooltip",Dg(a))("ngStyle",Hg(8,$Ga));Kf("role",b===0?"rowheader":"cell")("aria-colindex",2+b);B();S(" ",a," ")}},cHa=function(a){a&1&&(K(0,"div",21),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.stream.timeshiftValue))("ngStyle",Jg(6,bHa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",a.scale>100?"leftmost-frozen":""),
Kf("aria-colindex",a.getColIndexOffsetForTimeshift()),B(),S(" ",a.stream.timeshiftValue," "))},dHa=function(a){a&1&&(K(0,"div",22),Q(1),L());a&2&&(a=P(),I("matTooltip",Dg(a.stream.statsModeSummaryValue))("ngStyle",Jg(6,bHa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",!a.timeshift&&a.scale>100?"leftmost-frozen":""),Kf("aria-colindex",a.getColIndexOffsetForStatsMode()),B(),S(" ",a.stream.statsModeSummaryValue," "))},fHa=function(a){a&1&&M(0,"div",23);a&
2&&(a=P(),I("ngStyle",Ig(1,eHa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},gHa=function(a){a&1&&(K(0,"div",24)(1,"button",25),M(2,"mat-icon",26),L()());if(a&2){a=P();var b=qg(17);I("ngStyle",Ig(4,eHa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)"));B();I("matTooltip",a.streamActionsMenuTooltip)("matMenuTriggerFor",b);Kf("aria-label",a.streamActionsMenuTooltip)}},iHa=function(a){if(a&1){var b=t();K(0,"div",8)(1,"ac-table-legend-header",9,2);T(3,"async");N("sortFunc",function(c){u(b);
var d=P();d.sortFunc=c;d.update();return v()});L();K(4,"ac-column-selector",10);N("selectedColumnsChanged",function(){u(b);var c=P();c.labelsModel=Object.assign({},c.labelsModel);c.labelsModelSubject.next(c.labelsModel);c.selectedColumnsChanged();c.update();return v()});L()()}a&2&&(a=P(),B(),I("columnKeys",a.columnKeys)("labelsModel",U(3,15,a.labelsModelSubject))("valueName",a.valueName)("columnFlexWidth",a.columnKeys&&a.columnKeys.length&&100/a.columnKeys.length||0)("scrollLeft",a.scrollLeft)("widthDifference",
a.widthDifference)("scale",a.scale)("valueColumnWidth",hHa(a))("streamActions",a.streamActions)("defaultSortingColumn",a.defaultSortingColumn)("defaultSortingDirection",a.defaultSortingDirection)("timeshiftName",a.timeshiftName)("statsModeSummaryColumnLabel",a.statsModeSummaryColumnLabel),B(3),I("labelsModel",a.labelsModel)("valueName",a.valueName))},kHa=function(a,b){if(a&1){var c=t();K(0,"ac-table-legend-row",13);N("mouseenter",function(){var d=u(c).$implicit,e=P(2);return v(e.hover(d))})("mouseleave",
function(){var d=u(c).$implicit,e=P(2);return v(dEa(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),I("stream",a)("labelPercents",b.labelsModel.labelPercents)("columnFlexWidth",b.columnKeys&&b.columnKeys.length&&100/b.columnKeys.length||0)("scrollLeft",b.scrollLeft)("scale",b.scale)("valueColumnWidth",hHa(b))("streamActions",b.streamActions)("widthDifference",b.widthDifference)("timeshift",!!b.timeshiftName)("showStatsModeSummaryColumn",!!b.statsModeSummaryColumnLabel),Kf("aria-rowindex",jHa(b,a)))},lHa=function(a){a&
1&&(K(0,"div",11),E(1,kHa,1,11,"ac-table-legend-row",12),L());a&2&&(a=P(),B(),I("ngForOf",a.viewPortStreams)("ngForTrackBy",a.trackByStreamName))},mHa=function(){return new Vc(3008,!1)},Il=function(a){if(typeof a=="number")return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:nHa(parseFloat(a[1]),a[2])},nHa=function(a,b){switch(b){case "s":return a*1E3;default:return a}},pHa=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=0,e="";if(typeof a==="string"){var f=a.match(oHa);
if(f===null){b.push(new Vc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=nHa(parseFloat(f[1]),f[2]);var g=f[3];g!=null&&(d=nHa(parseFloat(g),f[4]));(f=f[5])&&(e=f)}c||(c=!1,f=b.length,a<0&&(b.push(new Vc(3100,!1)),c=!0),d<0&&(b.push(new Vc(3101,!1)),c=!0),c&&b.splice(f,0,new Vc(3E3,!1)));b={duration:a,delay:d,easing:e}}return b},qHa=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return new Map(Object.entries(b))}):[]},Jl=function(a,b,c){b.forEach(function(d,e){var f=rHa(e);
c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},Kl=function(a,b){b.forEach(function(c,d){d=rHa(d);a.style[d]=""})},sHa=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},uHa=function(a,b,c){var d=b.params||{};a=tHa(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Vc(3001,!1))})},tHa=function(a){var b=[];if(typeof a==="string"){for(var c;c=vHa.exec(a);)b.push(c[1]);vHa.lastIndex=0}return b},wHa=function(a,b,c){var d=""+a,e=d.replace(vHa,
function(f,g){g=b[g];g==null&&(c.push(new Vc(3003,!1)),g="");return g.toString()});return e==d?a:e},rHa=function(a){return a.replace(xHa,function(){return bd.apply(0,arguments)[1].toUpperCase()})},zHa=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(g,k){d.has(k)||e.push(k);d.set(k,g)});if(e.length){c={};for(var f=1;f<b.length;c={kf$jscomp$1:void 0},f++)c.kf$jscomp$1=b[f],e.forEach(function(g){return function(k){return g.kf$jscomp$1.set(k,yHa(a,k))}}(c))}}return b},Ll=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 Vc(3004,!1);
}},yHa=function(a,b){return window.getComputedStyle(a)[b]},Nl=function(a){switch(a.length){case 0:return new Ml;case 1:return a[0];default:return new AHa(a)}},CHa=function(a,b,c){b=b===void 0?new Map:b;c=c===void 0?new Map:c;var d=[],e=[],f=-1,g=null;a.forEach(function(k){var l=k.get("offset"),r=l==f,w=r&&g||new Map;k.forEach(function(x,C){var H=C;if(C!=="offset")switch(H=rHa(H),x){case "!":x=b.get(C);break;case "*":x=c.get(C);break;default:x=BHa(H,x,d)}w.set(H,x)});r||e.push(w);g=w;f=l});if(d.length)throw new Vc(3502,
!1);return e},EHa=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&DHa(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&DHa(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&DHa(c,"destroy",a))})}},DHa=function(a,b,c){var d=c.totalTime;b=FHa(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},FHa=function(a,b,c,d,e,f,g){return{element:a,triggerName:b,
fromState:c,toState:d,phaseName:e===void 0?"":e,totalTime:f===void 0?0:f,disabled:!!g}},Ol=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},GHa=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},IHa=function(a){a=a.parentNode||a.host||null;return a===HHa?null:a},JHa=function(a,b){for(;b;){if(b===a)return!0;b=IHa(b)}return!1},MHa=function(a,b){var c=[];typeof a=="string"?a.split(/\s*,\s*/).forEach(function(d){a:{if(d[0]==":"&&(d=KHa(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 Vc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(LHa(d,e));f[0]!="<"||d=="*"&&e=="*"||c.push(LHa(e,d));d=void 0}}return d}):c.push(a);return c},KHa=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 Vc(3016,
!1)),"* => *"}},LHa=function(a,b){var c=NHa.has(a)||OHa.has(a),d=NHa.has(b)||OHa.has(b);return function(e,f){var g=a=="*"||a==e,k=b=="*"||b==f;!g&&c&&typeof e==="boolean"&&(g=e?NHa.has(a):OHa.has(a));!k&&d&&typeof f==="boolean"&&(k=f?NHa.has(b):OHa.has(b));return g&&k}},QHa=function(a){var b=a.split(/\s*,\s*/).find(function(c){return c==":self"})?!0:!1;b&&(a=a.replace(PHa,""));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]},WHa=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},XHa=function(a,b){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number")return{duration:pHa(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=pHa(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},Pl=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},YHa=function(a,b,c,d,e,f,g,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,delay:f,totalTime:e+f,easing:g===void 0?null:g,subTimeline:k===void 0?!1:k}},$Ha=function(a,b,c,d,e,f,g,k,l,r){f=
f===void 0?new Map:f;g=g===void 0?new Map:g;r=r===void 0?[]:r;return(new ZHa).buildKeyframes(a,b,c,d,e,f,g,k,l,r)},aIa=function(a,b){var c=new Map,d;a.forEach(function(e){if(e==="*"){d!=null||(d=b.keys());e=m(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else for(e=m(e),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;c.set(f,g)}});return c},bIa=function(a,b,c,d,e,f,g,k,l,r,w,x,C){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,
fromStyles:f,toState:d,toStyles:g,timelines:k,queriedElements:l,preStyleProps:r,postStyleProps:w,totalTime:x,errors:C}},cIa=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},dIa=function(a,b){var c=Object.assign({},b);Object.entries(a).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;e!=null&&(c[d]=e)});return c},fIa=function(a,b){return new eIa(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},
b)},gIa=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))},hIa=function(a){return a&&a.nodeType===1},iIa=function(a,b){var c=a.style.display;a.style.display=b!=null?b:"none";return c},kIa=function(a,b,c){var d=[];b.forEach(function(g){return d.push(iIa(g))});var e=[];c.forEach(function(g,k){var l=new Map;g.forEach(function(r){var w=yHa(k,r);l.set(r,w);w&&w.length!=0||(k.__ng_removed=jIa,e.push(k))});a.set(k,l)});var f=0;b.forEach(function(g){return iIa(g,d[f++])});return e},
lIa=function(a,b){function c(g){if(!g)return 1;var k=f.get(g);if(k)return k;var l=g.parentNode;d.has(l)?k=l:e.has(l)?k=1:k=c(l);f.set(g,k);return k}var d=new Map;a.forEach(function(g){return d.set(g,[])});if(b.length==0)return d;var e=new Set(b),f=new Map;b.forEach(function(g){var k=c(g);k!==1&&d.get(k).push(g)});return d},Ql=function(a,b){var c;(c=a.classList)==null||c.add(b)},Rl=function(a,b){var c;(c=a.classList)==null||c.remove(b)},nIa=function(a,b,c){Nl(c).onDone(function(){return mIa(a,b)})},
pIa=function(a){var b=[];oIa(a,b);return b},oIa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof AHa?oIa(d.players,b):b.push(d)}},qIa=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},rIa=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},uIa=function(a,b){var c=null,d=null;
Array.isArray(b)&&b.length?(c=sIa(b[0]),b.length>1&&(d=sIa(b[b.length-1]))):b instanceof Map&&(c=sIa(b));return c||d?new tIa(a,c,d):null},sIa=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},vIa=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},wIa=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},xIa=function(a,b){var c=function(){var d=
a.apply(this,[].concat(q(bd.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};Y(c,a);da.Object.defineProperties(c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(d){d=d||this.defaultColor;d!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),d&&this._elementRef.nativeElement.classList.add("mat-"+d),this._color=d)}}});return c},yIa=function(a){var b=function(){var c=a.apply(this,[].concat(q(bd.apply(0,
arguments))))||this;c._disableRipple=!1;return c};Y(b,a);da.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=Mh(c)}}});return b},zIa=function(a){var b=function(){var c=a.apply(this,[].concat(q(bd.apply(0,arguments))))||this;c._disabled=!1;return c};Y(b,a);da.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=
Mh(c)}}});return b},AIa=function(){return{diameter:100}},BIa=function(a){a&1&&(Ad(),M(0,"circle",4));if(a&2){a=P();var b=qg(1);vg("animation-name","mat-progress-spinner-stroke-rotate-"+a._spinnerAnimationLabel)("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Kf("r",a._getCircleRadius())}},CIa=function(a){a&1&&(Ad(),M(0,"circle",4));if(a&2){a=P();
var b=qg(1);vg("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Kf("r",a._getCircleRadius())}},DIa=function(a){a&1&&(Uf(0),M(1,"mat-icon",1),Vf());a&2&&(a=P(2),B(),I("svgIcon",poa("",a.iconSpec.iconset,"-",a.iconSpec.size,":",a.iconSpec.icon)))},EIa=function(a){a&1&&(Uf(0),K(1,"mat-icon"),Q(2),L(),Vf());a&2&&(a=P(2),B(2),yg(a.iconSpec.icon))},FIa=
function(a){a&1&&(Uf(0),M(1,"mat-spinner",2),Vf());a&2&&(a=P(2),B(),I("diameter",a.iconSpec.sizePx)("strokeWidth",a.iconSpec.sizePx/10))},GIa=function(a){a&1&&(Uf(0),E(1,DIa,2,4,"ng-container",0)(2,EIa,3,1,"ng-container",0)(3,FIa,2,2,"ng-container",0),Vf());a&2&&(a=P(),B(),I("ngIf",a.iconSpec.kind==="mat-icon"),B(),I("ngIf",a.iconSpec.kind==="mat-icon-font"),B(),I("ngIf",a.iconSpec.kind==="mat-spinner"))},HIa=function(a){switch(a){case "large":return 32;case "medium":return 24;case "small":return 18;
default:wb(a)}},IIa=function(a){a&1&&(Ad(),K(0,"svg",11),M(1,"circle",12),L());a&2&&(a=P(),Kf("viewBox",a._viewBox()),B(),vg("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),"%"),Kf("r",a._circleRadius()))},KIa=function(a){a.id||(a.id="ace-labelledby-message-goog_"+JIa++)},NIa=function(a,b){var c=LIa(a);c.some(function(d){return d.trim()===b.trim()})||(c.length===0&&(KIa(a),c.push(a.id.trim())),c.push(b.trim()),
MIa(a,"aria-labelledby",c.join(" ")))},OIa=function(a,b){var c=LIa(a).filter(function(d){return d!==b.trim()});c.length===1&&c[0]===a.id?a.removeAttribute("aria-labelledby"):MIa(a,"aria-labelledby",c.join(" "))},LIa=function(a){return(a.getAttribute("aria-labelledby")||"").match(/\S+/g)||[]},QIa=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(PIa(c))});Q(1);L()}a&2&&(a=P(),Kf("aria-label",a.action.ariaLabel),B(),S(" ",a.action.label," "))},RIa=function(a){if(a&
1){var b=t();K(0,"a",3);N("click",function(){u(b);var c=P();return v(PIa(c))});Q(1);L()}a&2&&(a=P(),Kf("href",a.action.href,Pe)("target",a.action.target||null)("aria-label",a.action.ariaLabel),B(),S(" ",a.action.label," "))},SIa=function(a){a&1&&(K(0,"button",4),M(1,"ace-icon",5),L())},TIa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},UIa=function(a){a&1&&(Uf(0),Q(1),E(2,TIa,1,1,"ace-tooltip-action",6),Vf());a&2&&(a=P(),B(),S(" ",a.tooltipRef.content,
" "),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},VIa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},WIa=function(a){a&1&&(Uf(0),M(1,"span",8),E(2,VIa,1,1,"ace-tooltip-action",6),Vf());a&2&&(a=P(),B(),I("innerHTML",a.tooltipRef.content.html,Oe),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},XIa=function(a){a&1&&Wf(0)},YIa=function(a){a&1&&(Uf(0),E(1,XIa,1,0,"ng-container",9),Vf());a&2&&(P(),a=qg(6),B(),I("ngTemplateOutlet",a))},ZIa=function(a){a&
1&&Wf(0)},$Ia=function(a){a&1&&E(0,ZIa,1,0,"ng-container",10);a&2&&(a=P(),I("ngTemplateOutlet",a.tooltipRef.content)("ngTemplateOutletContext",a.tooltipRef.aceTooltipTemplateData))},aJa=function(a,b){a&&b(a)&&aJa(a.parentNode,b)},bJa=function(a){var b=void 0;aJa(a,function(c){return c.classList&&c.classList.contains("cfc-remove-from-tab-order")?(b=c,!1):!0});return b},cJa=function(a){var b;(b=!a.offsetParent||a.disabled)||(b=!!bJa(a));return b?!1:(a=a.attributes.getNamedItem("tabindex"))&&Number(a.value)===
-1?!1:!0},dJa=function(a,b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(b,e,c-b,d.bottom-e);var k=new Path2D,l=Math.max(b,d.left),r=!1;b<d.left&&c-b>=4?(l=c-b>=12?d.left+8:Math.max(c-4,d.left),r=!0,k.moveTo(l,e+1.5),k.lineTo(l+1.5,e)):k.moveTo(l,e);var w=Math.min(c,d.right),x=!1;c>d.right?c>d.right&&c-b>=4&&(w=d.right-c>=12?d.right-8:Math.min(c,d.right-4),x=!0,k.lineTo(w-1.5,e),k.lineTo(w,e+1.5),k.lineTo(w-1.5,f)):(k.lineTo(w,e),k.lineTo(w,f));r?k.lineTo(l+1.5,f):k.lineTo(l,f);k.closePath();b=new Path2D;
b.rect(d.left,0,d.right-d.left,d.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(g);a.restore();a.save();a.globalAlpha=.25;a.fill(k);a.restore();r&&(g=new Path2D,g.moveTo(l-1,e+1.5),g.lineTo(d.left,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(g),a.restore());x&&(l=new Path2D,l.moveTo(w+1,e+1.5),l.lineTo(d.right,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(l),a.restore())},
eJa=function(a,b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(Math.max(b,d.left),e,Math.min(2,c-b),d.bottom-e);var k=new Path2D;k.rect(Math.min(c-2,d.right-2),e,Math.min(2,c-b),d.bottom-e);var l=new Path2D;b=Math.max(b,d.left);l.rect(b,e,Math.min(c,d.right)-b,f-e);(new Path2D).rect(d.left,0,d.right-d.left,d.bottom);a.save();a.globalAlpha=1;a.fill(l);a.fill(g);a.fill(k);a.restore()},fJa=function(a,b,c,d,e){var f=e.top-7,g=e.top,k=new Path2D;k.moveTo(c+2,f);k.lineTo(d-2,f);k.arcTo(d,f,d,f+2,2);k.lineTo(d,
e.bottom);k.lineTo(c,e.bottom);k.lineTo(c,f+2);k.arcTo(c,f,c+2,f,2);k.closePath();var l=new Path2D;l.moveTo(c-1,e.bottom);l.lineTo(c-1,f+2);l.arcTo(c-1,f-1,c+2,f-1,3);l.lineTo(d-2,f-1);l.arcTo(d+1,f-1,d+1,f+2,3);l.lineTo(d+1,e.bottom);var r=new Path2D;c<e.left?r.moveTo(e.left,f):r.moveTo(c+2,f);if(d>e.right){var w=e.right;c+7+2>e.right&&(w=Math.max(e.right,c+7));r.lineTo(w,f);r.lineTo(w+3,(g+f)/2);r.lineTo(w,g)}else c+7>d?(w=c+7,r.lineTo(w-2,f),r.arcTo(w,f,w,f+2,2)):(r.lineTo(d-2,f),r.arcTo(d,f,d,
f+2,2),r.lineTo(d,g));c<e.left?(r.lineTo(e.left,g),r.lineTo(e.left-3,(g+f)/2),r.lineTo(e.left,f)):(c+7+2>e.right||c+7>d||c+7+2>d?(w=d,c+7>d&&(w=c+7),c+7+2>e.right&&(w=Math.max(e.right,c+7)),d<=w&&d>w-1?r.lineTo(w,g+7):(r.lineTo(w,g+7-4),r.arcTo(w,g+7,w-2,g+7,2))):(r.lineTo(c+7+2,g),r.arcTo(c+7,g,c+7,g+2,2),r.lineTo(c+7,g+7-4),r.arcTo(c+7,g+7,c+7-2,g+7,2)),r.lineTo(c,g+7),r.lineTo(c,f+2),r.arcTo(c,f,c+2,f,2));r.closePath();c=new Path2D;c.rect(e.left,0,e.right-e.left,e.bottom);a.save();a.clip(c);a.globalCompositeOperation=
"destination-out";a.fill(k);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(k);a.restore();a.save();a.clip(c);a.strokeStyle=Zk("var(--ac-sys-color-annotation-surface, #FFF)",b);a.globalCompositeOperation="destination-out";a.lineWidth=2;a.stroke(l);a.restore();a.save();a.fill(r);a.restore()},gJa=function(a,b,c,d){a.save();var e=d.top-7,f=d.top,g=c+18,k=new Path2D;k.moveTo(c,d.bottom);k.lineTo(c,e+2);k.arcTo(c,e,c+2,e,2);if(g>d.right){var l=c+7;k.lineTo(l-2,e);k.arcTo(l,e,l,e+2,2)}else k.lineTo(g-
2,e),k.arcTo(g,e,g,e+2,2),k.lineTo(g,f-2),k.arcTo(g,f,g-2,f,2),k.lineTo(c+7+2,f),k.arcTo(c+7,f,c+7,f+2,2);k.lineTo(c+7,f+7-2);k.arcTo(c+7,f+7,c+7-2,f+7,2);k.lineTo(c+1+2,f+7);k.arcTo(c+1,f+7,c+1,f+7+2,2);k.lineTo(c+1,d.bottom);k.lineTo(c,d.bottom);k.closePath();l=new Path2D;l.moveTo(c-1,d.bottom);l.lineTo(c-1,e+2);l.arcTo(c-1,e-1,c+2,e-1,3);g>d.right?(g=c+7,l.lineTo(g-2,e-1),l.arcTo(g+1,e-1,g+1,e+2,3)):(l.lineTo(g-2,e-1),l.arcTo(g+1,e-1,g+1,e+2,3),l.lineTo(g+1,f-2),l.arcTo(g+1,f+1,g-2,f+1,3),l.lineTo(c+
7+2,f+1),l.arcTo(c+7,f+1,c+7+1,f+2,1));l.lineTo(c+7+1,f+7-2);l.arcTo(c+7+1,f+7+1,c+7-2,f+7+1,3);l.lineTo(c+1+2,f+7+1);l.arcTo(c+1+1,f+7+1,c+1+1,f+7+2,1);l.lineTo(c+1+1,d.bottom);a.strokeStyle=Zk("var(--ac-sys-color-annotation-surface, #FFF)",b);a.lineWidth=2;a.stroke(l);a.fill(k);a.restore()},hJa=function(a,b,c,d){d=d===void 0?.375:d;var e=new Path2D;e.moveTo(b,c.top);e.lineTo(b,c.bottom);b=new Path2D;b.rect(c.left,0,c.right-c.left,c.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";
a.globalAlpha=d;a.setLineDash([4,4]);a.stroke(e);a.restore()},iJa=function(a,b,c,d,e,f){var g=e.size;e=m(e);for(var k=e.next();!k.done;k=e.next()){var l=1-Math.pow(1-f,1/g);a.strokeStyle=Zk(k.value,b);hJa(a,c,d,l)}},jJa=function(a,b,c){var d=new Path2D;d.moveTo(b,c.top);d.lineTo(b,c.bottom);b=new Path2D;b.rect(c.left,0,c.right-c.left,c.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=1;a.lineWidth=2;a.stroke(d);a.restore()},kJa=function(a,b){return a===null?0:8+(b===
void 0?0:b)+18+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},lJa=function(a,b,c){a=a.currentValue;var d,e=a==null?void 0:(d=a.data)==null?void 0:d.sort(function(C,H){return C.start-H.start});a=a==null?void 0:a.state;if(e==null||!e.length||!a)return[];d=[];var f=null;e=m(e);for(var g=e.next(),k={};!g.done;k={style$jscomp$48:void 0},g=e.next()){g=g.value;var l=a.domainMap(g.start),r=void 0,w=(r=g.end&&a.domainMap(g.end))!=null?r:null;k.style$jscomp$48=b.getStyle(g.style);
l!==null&&l<a.bodyLeft&&(w!==null&&w>a.bodyLeft||g.isOngoing)&&(l=a.bodyLeft);if(!(l===null||l<a.bodyLeft||l>a.bodyRight)){r=kJa(f,8);var x=l+(w&&w-l<24?(w-l-24+4)/2:0);w!==null||g.isOngoing||(x=Math.max(4,l-9));if(f&&x<=f.iconLeft+r){f.icons.filter(function(C){return function(H){return H.icon===C.style$jscomp$48.icon&&H.color===C.style$jscomp$48.color}}(k)).length||f.icons.push({styleId:k.style$jscomp$48.style,icon:k.style$jscomp$48.icon,color:k.style$jscomp$48.color});f.annotationIds.push(g.annotationId);
g.annotationContent&&f.annotationContents.push(g.annotationContent);if(w!==null||g.isOngoing)f.hasDuration=!0;f.hasDuration?f.iconLeft=f.bodyLeft-4:(r=kJa(f),f.bodyCenter+=(l-f.bodyCenter)/f.annotationIds.length,f.iconLeft=Math.max(4,f.bodyCenter-r/2))}else f&&(f.estimatedButtonWidth=kJa(f,8),d.push(f)),f={icons:[{styleId:k.style$jscomp$48.style,icon:k.style$jscomp$48.icon,color:k.style$jscomp$48.color}],top:0,iconLeft:x-4,bodyLeft:l,bodyCenter:w!==null?w-l:l,estimatedButtonWidth:0,hasDuration:w!==
null,annotationIds:[g.annotationId],annotationContents:g.annotationContent?[g.annotationContent]:[]}}}f&&(f.estimatedButtonWidth=kJa(f,8),d.push(f));if(c!==void 0)for(b=m(d),a=b.next();!a.done;a=b.next())a.value.icons.sort(function(C,H){C=c.get(C.icon);H=c.get(H.icon);return C===H?0:C?H?C>H?-1:1:-1:1});return d},mJa=function(a){return a===null?0:28+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},nJa=function(a,b){a=a.currentValue;var c,d=a==null?void 0:(c=a.data)==null?
void 0:c.sort(function(x,C){return x.start-C.start});c=a==null?void 0:a.state;if(d==null||!d.length||!c)return[];a=[];var e=null;d=m(d);for(var f=d.next(),g={};!f.done;g={style$jscomp$49:void 0},f=d.next()){f=f.value;var k=c.domainMap(f.start),l=void 0,r=(l=f.end&&c.domainMap(f.end))!=null?l:null;g.style$jscomp$49=b.getStyle(f.style);k!==null&&k<c.bodyLeft&&(r!==null&&r>c.bodyLeft||f.isOngoing)&&(k=c.bodyLeft);if(!(k===null||k<c.bodyLeft||k>c.bodyRight)){l=mJa(e);var w=k;e&&w<=e.iconLeft+l?(e.icons.filter(function(x){return function(C){return C.icon===
x.style$jscomp$49.icon&&C.color===x.style$jscomp$49.color}}(g)).length||e.icons.push({styleId:g.style$jscomp$49.style,icon:g.style$jscomp$49.icon,color:g.style$jscomp$49.color}),e.annotationIds.push(f.annotationId),f.annotationContent&&e.annotationContents.push(f.annotationContent)):(e&&(e.estimatedButtonWidth=mJa(e),a.push(e)),e={icons:[{styleId:g.style$jscomp$49.style,icon:g.style$jscomp$49.icon,color:g.style$jscomp$49.color}],top:0,iconLeft:w-3,bodyLeft:k,bodyCenter:k,estimatedButtonWidth:0,hasDuration:r!==
null,annotationIds:[f.annotationId],annotationContents:f.annotationContent?[f.annotationContent]:[]})}}e&&(e.estimatedButtonWidth=mJa(e),a.push(e));return a},oJa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.annotationIds.length," "))},qJa=function(a,b){a&1&&(Uf(0),K(1,"i",10),Ad(),K(2,"svg",11),M(3,"path",12)(4,"path",13),L()(),Vf());if(a&2){a=b.$implicit;b=b.index;var c=P().$implicit,d=P();B();I("ngStyle",Jg(4,pJa,a.color,(c.icons.length-1-b)*d.groupedIconOffset+"px"));
B(2);Kf("stroke",d.iconStrokeColor)("d",d.annotationStyleService.getIcon(a.icon));B();Kf("d",d.annotationStyleService.getIcon(a.icon))}},rJa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.annotationIds.length," "))},xJa=function(a,b){if(a&1){var c=t();K(0,"button",4);N("click",function(){var e=u(c).$implicit,f=P();return v(sJa(f,e))})("mouseenter",function(){var e=u(c).$implicit,f=P();return v(tJa(f,e))})("mouseleave",function(){u(c);P().highlightedAnnotation=null;return v()});
K(1,"div",5);E(2,oJa,2,1,"span",6);K(3,"div",7);E(4,qJa,5,7,"ng-container",8);L();E(5,rJa,2,1,"span",6);L()()}if(a&2){a=b.$implicit;b=P();var d=qg(3);wg("annotation-cluster-button",!b.newVisuals)("new-annotation-cluster-button",b.newVisuals);I("ngStyle",Jg(15,uJa,a.iconLeft+"px",a.top+"px"))("aceTooltip",d)("aceTooltipTemplateData",Ig(18,vJa,a))("aceTooltipInteractive",!0)("aceTooltipPosition",b.tooltipPosition)("ve",b.ve.AnnotationButton)("veClick",!0);B(2);I("ngIf",b.newVisuals&&a.annotationIds.length>
1);B();I("ngStyle",Ig(20,wJa,b.iconSize+(a.icons.length-1)*b.groupedIconOffset+"px"));B();I("ngForOf",a.icons.slice().reverse());B();I("ngIf",!b.newVisuals&&a.annotationIds.length>1)}},yJa=function(a){a&1&&(Uf(0),K(1,"div"),Q(2),L(),Vf());a&2&&(a=P().$implicit,B(2),yg(a))},zJa=function(a){a&1&&Wf(0)},AJa=function(a){a&1&&(Uf(0),E(1,zJa,1,0,"ng-container",19),Vf());if(a&2){var b=P();a=b.$implicit;b=b.index;var c=P(2).$implicit;B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,vJa,c.annotationIds[b]))}},
BJa=function(a){a&1&&(Uf(0),M(1,"div",20),Vf());a&2&&(a=P().$implicit,B(),I("innerHTML",a.toString(),Oe))},CJa=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P().$implicit,B(),S(" ",a," "))},DJa=function(a,b){if(a&1){var c=t();Uf(0);K(1,"div",15);N("mouseover",function(){var d=u(c).index,e=P(2).$implicit,f=P();return v(tJa(f,e,d))})("mouseout",function(){u(c);P(3).highlightedAnnotation=null;return v()});Uf(2,16);E(3,yJa,3,1,"ng-container",17)(4,AJa,2,4,"ng-container",17)(5,BJa,2,1,"ng-container",17)(6,
CJa,2,1,"ng-container",18);Vf();L();Vf()}a&2&&(a=b.$implicit,P(3),B(2),I("ngSwitch",a instanceof eg?"TemplateRef":typeof a),B(),I("ngSwitchCase","string"),B(),I("ngSwitchCase","TemplateRef"),B(),I("ngSwitchCase","Object"))},EJa=function(a){a&1&&Wf(0)},FJa=function(a){a&1&&E(0,EJa,1,0,"ng-container",19);if(a&2){a=P(2).$implicit;var b=P();I("ngTemplateOutlet",b.clusterActionTemplate)("ngTemplateOutletContext",Ig(2,vJa,a.annotationIds))}},GJa=function(a){a&1&&(Uf(0),E(1,DJa,7,4,"ng-container",8),F(2,
FJa,1,4,"ng-container"),Vf());if(a&2){a=P().$implicit;var b=P();B();I("ngForOf",a.annotationContents);B();G(b.clusterActionTemplate?2:-1)}},HJa=function(a){a&1&&Wf(0)},IJa=function(a){a&1&&(Uf(0),E(1,HJa,1,0,"ng-container",19),Vf());if(a&2){a=P(2).$implicit;var b=P();B();I("ngTemplateOutlet",b.tooltipContentTemplate)("ngTemplateOutletContext",Ig(2,vJa,a.annotationIds))}},JJa=function(a){a&1&&E(0,IJa,2,4,"ng-container",14);if(a&2){a=P(2);var b=qg(5);I("ngIf",a.tooltipContentTemplate)("ngIfElse",b)}},
KJa=function(a,b){a&1&&E(0,GJa,3,2,"ng-container",14)(1,JJa,1,2,"ng-template",null,2,Mg);a&2&&(a=b.$implicit,b=qg(2),I("ngIf",(a.annotationContents==null?null:a.annotationContents.length)>0)("ngIfElse",b))},LJa=function(a){a&1&&dg(0)},MJa=function(a,b){var c=0,d=0,e=a.data;b=b.data;for(var f=[],g=e.length>1&&e[e.length-1].x.valueOf()-e[0].x.valueOf()>0;c<e.length||d<b.length;){var k=e[c],l=b[d];k&&!l?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):!k&&l?(f.push(Object.assign({},l,{y0:l.y,y1:l.y})),
d++):k&&l&&(k.x.valueOf()===l.x.valueOf()?(f.push(Object.assign({},k,{y0:Math.min(k.y,l.y),y1:Math.max(k.y,l.y)})),c++,d++):g&&k.x.valueOf()<l.x.valueOf()||!g&&k.x.valueOf()>l.x.valueOf()?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):(f.push(Object.assign({},l,{y0:l.y,y1:l.y})),d++))}return Object.assign({},a,{data:f})},NJa=function(a){var b=a.data.map(function(c){return Object.assign({},c,{y:0})});return Object.assign({},a,{data:b})},Sl=function(a,b,c){return c===Infinity?!1:Math.abs(b.x.valueOf()-
a.x.valueOf())>c*2},OJa=function(a,b,c){return c===Infinity||!a.tileDomain||!b.tileDomain||a.tileDomain[0]===b.tileDomain[0]&&a.tileDomain[1]===b.tileDomain[1]?!1:Math.min(Math.abs(b.tileDomain[0]-a.tileDomain[1]),Math.abs(a.tileDomain[0]-b.tileDomain[1]))>c*2},PJa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?Sl:c;return a.reduceRight(function(d,e){var f=m(d).next().value,g=m(f).next().value;g&&c(g,e,b)?d.unshift([e]):f.unshift(e);return d},[[]])},QJa=function(a,b){var c=Math.min(16.8,a.width*
.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}},RJa=function(a,b,c){c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],l=k.left,r=k.top,w=k.height,x=k.width;k=Math.ceil(c*x);x=l+x+k;if(b.x>=l-k)if(b.x<x)if(b.y>=r)if(b.y<r+w){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f},SJa=function(a){return Hba(a.reverse().map(function(b){b=m(b);b.next();return b.next().value}).flat(),function(b){return b.height===
0?void 0:b.metadata.point.x.valueOf()})},TJa=function(a,b){b=b===void 0?0:b;a=m(a.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=0;d<c.length;d++){var e=c[d],f=c[d-1];d===0?(f=e.height,e.height=Math.max(1,e.height-b/2),e.top+=f-e.height):(e.height=Math.max(1,e.height-b),e.top=f.top-b-e.height)}}},WJa=function(a,b){b=b===void 0?!0:b;var c=UJa(),d=[].concat(q(a.series)).reverse();b=(b?VJa(d):d).map(function(e){var f=e.data.map(c),g,k=(g=e.shiftedData)==null?void 0:g.map(c);return Object.assign({},
e,{shiftedData:k,data:f})});b.reverse();return Object.assign({},a,{series:b})},UJa=function(){var a=new Map,b=new Map;return function(c){var d=c.y,e=c.x.valueOf(),f=d>=0?a:b,g,k=(g=f.get(e))!=null?g:0;d=k+d;f.set(e,d);return Object.assign({},c,{y0:k,y1:d})}},VJa=function(a){var b=XJa(a),c=YJa(b);return a.map(function(d){var e=Object.assign({},d);var f=d.data;d=d.shiftedData;e=(delete e.data,delete e.shiftedData,e);f=f.length===0||f[0].x<f[f.length-1].x?f:[].concat(q(f)).reverse();f=ZJa(f,b);d=d&&
ZJa(d,b);f=f.flatMap(c);var g;d=(g=d)==null?void 0:g.flatMap(c);return Object.assign({},e,{data:f,shiftedData:d})})},ZJa=function(a,b){if(!b.length)return a;var c=b[0];b=b[b.length-1];if(a.length===0)return[c,b];b=b.x.valueOf()<=a[a.length-1].x.valueOf()?[]:[b];return[].concat(q(a[0].x.valueOf()<=c.x.valueOf()?[]:[c]),q(a),q(b))},$Ja=function(a,b){for(var c=0,d=a.length;c<d;){var e=Math.floor((d+c)/2),f=b(a[e]);if(f===0)return e;f<0?c=e+1:d=e}return-1},bKa=function(a,b,c){b=m([b,c].sort(function(f,
g){return aKa(f,g)}));var d=b.next().value,e=b.next().value;b=$Ja(a,function(f){return aKa(f.x,d)});c=$Ja(a,function(f){return aKa(f.x,e)});return b===-1||c===-1?[]:a.slice(b+1,c)},XJa=function(a){a=a.reduce(function(b,c){c=m([c.data,c.shiftedData===void 0?[]:c.shiftedData]);for(var d=c.next();!d.done;d=c.next()){d=m(d.value);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.x.valueOf();b.has(f)||b.set(f,Object.assign({},e,{y:0}))}}return b},new Map);return[].concat(q(a.entries())).sort(function(b,
c){b=m(b).next().value;c=m(c).next().value;return aKa(b,c)}).map(function(b){b=m(b);b.next();return b.next().value})},aKa=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b):typeof a==="number"&&typeof b==="number"?a-b:a instanceof Date&&b instanceof Date?a.valueOf()-b.valueOf():0},YJa=function(a){var b=a[a.length-1];return function(c,d,e){e=e[d+1];d=c.x;e=e?e.x:b==null?void 0:b.x;d=e==null?[]:bKa(a,d,e);return[c].concat(q(d))}},cKa=function(a){var b=a.some(function(c){return c.success});
a=a.filter(function(c){return!c.success});b&&(a=a.filter(function(c){return c.error.name!=="NoDataError"}));return a.map(function(c){return c.error})},dKa=function(a){if(a&1){var b=t();Uf(0);M(1,"mat-icon",7)(2,"span",8);K(3,"button",9);N("click",function(){u(b);P(3).installAgentRequest.emit();return v()});Yf(4,1);L();Vf()}a&2&&(a=P(3),B(2),I("innerHTML",a.opsAgentInstallPrompt,Oe),B(),I("ve",a.ve.InstallAgentButton)("veClick",!0))},eKa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3).ngIf,B(),
S("",a[0].details.queryName,": "))},fKa=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);P(4).errorDismissedSubject.next(!0);return v()});M(1,"mat-icon",14);L()}},gKa=function(a){a&1&&(M(0,"mat-icon",10),K(1,"span",11),E(2,eKa,2,1,"span",2),M(3,"span",8),L(),E(4,fKa,2,0,"button",12));if(a&2){a=P(2).ngIf;var b=P();B(2);I("ngIf",a[0].details.queryName);B();I("innerHTML",a[0].displayMessage,Oe);B();I("ngIf",b.styles.useNonBlockingErrors)}},hKa=function(a){a&1&&(K(0,"div",4),T(1,
"async"),T(2,"async"),K(3,"div",5),E(4,dKa,5,3,"ng-container",6),T(5,"async"),E(6,gKa,5,3,"ng-template",null,0,Mg),L()());if(a&2){a=qg(7);var b=P(2);wg("nonblocking",U(1,5,b.useNonBlockingStylingObservable));I("ngStyle",U(2,7,b.styleObservable));B(4);I("ngIf",b.installAgentHandled&&U(5,9,b.isAgentMetricObservable))("ngIfElse",a)}},iKa=function(a,b){a&1&&(Uf(0),E(1,hKa,8,11,"div",3),T(2,"async"),Vf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",a.length>0&&U(2,1,b.errorDismissedObservable)===!1))},jKa=function(a){a&
1&&(K(0,"span",6,1),Q(2),L());a&2&&(a=P(),B(2),yg(a.unitLabel))},kKa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.unitLabel))},lKa=function(a){a&1&&(K(0,"span",7,2),Q(2),E(3,kKa,2,1,"span",8),L());a&2&&(a=P(),I("title",a.currentValueLabel),B(2),S(" ",a.currentValueLabel),B(),I("ngIf",!a.showUnitAboveValue))},mKa=function(a,b){a=a.y.bucketOptions;return(a==null?0:a.exponentialBuckets)?(a=a.exponentialBuckets,a.growthFactor?[Math.round((a.scale||1)*Math.pow(a.growthFactor,b-1)*1E9)/
1E9,Math.round((a.scale||1)*Math.pow(a.growthFactor,b)*1E9)/1E9]:[void 0,void 0]):(a==null?0:a.linearBuckets)?(a=a.linearBuckets,a.width?[Math.round(((a.offset||0)+a.width*(b-1))*1E9)/1E9,Math.round(((a.offset||0)+a.width*b)*1E9)/1E9]:[void 0,void 0]):(a==null?0:a.explicitBuckets)?(a=a.explicitBuckets,a.bounds?[b>0?a.bounds[b-1]:-Infinity,b>-1?b<a.bounds.length?a.bounds[b]:Infinity:a.bounds[0]]:[void 0,void 0]):[void 0,void 0]},nKa=function(a,b){var c=a.y.bucketCounts,d=m(mKa(a,0)),e=d.next().value,
f=d=d.next().value;if(e!==void 0&&f!==void 0){if(e>=b)return-1;if(e<=b&&f>=b)return 0}for(d=1;d<c.length;d++)if(f=m(mKa(a,d)),e=f.next().value,f=f.next().value,e!==void 0&&f!==void 0&&e<=b&&f>=b)return d;if(f!==void 0&&f<=b)return c.length},oKa=function(a){return a[0]+" - "+a[1]},pKa=function(a,b,c){return function(d){var e=d[0],f;d=(f=d[1])!=null?f:null;f=m([e,d].map(function(g){if(g===null)return null;g=Lk(a,b,g)||0;return Nk(g,b,{maximumFractionDigits:c})}));e=f.next().value;f=f.next().value;if(e===
null)throw Error("Nc");return f===null?(new Tl("above {LOWER}")).format({LOWER:e}):(new Tl("between {LOWER} and {UPPER}")).format({LOWER:e,UPPER:f})}},qKa=function(){return{x:0,y:0,height:0,width:0}},rKa=function(a,b){return function(c,d){var e=c.x,f=c.x0,g=c.y,k=0,l;c=Math.floor((l=a(e.valueOf()))!=null?l:0);f=f==null?void 0:f.valueOf();if(f!==void 0){var r;c=Math.floor((r=a((e.valueOf()+f)/2))!=null?r:0);var w;k=Math.floor((w=a(e.valueOf()))!=null?w:0);var x;w=Math.floor((x=a(f))!=null?x:0);k=Math.abs(k-
w)}x=m(ql(g,d));d=x.next().value;x=x.next().value;d=Math.floor(b(d!=null?d:0));var C;x=Math.floor(b((C=x)!=null?C:0));return{x:c,y:(d+x)/2,height:Math.abs(x-d),width:k}}},sKa=function(a,b){var c;return String((c=a.bucketCounts[b])!=null?c:"-")},tKa=function(){return function(a,b){var c=a.bucketCounts[b]||0;b=c.toString();a=(c*100/a.count).toFixed();return(new Tl("{COUNT} ({PERCENT}%)")).format({COUNT:b,PERCENT:a})}},uKa=function(a){var b=a.data;var c=a.xAxisState;var d=a.yAxisState;var e=a.rowFormatter;
var f=a.columnFormatter;var g=a.valueFormatter;a=a.positionMap;e||(e=oKa);f||(f=xEa);g||(g=sKa);a||(a=qKa);b=b.series[0];if(!b)return null;var k,l=(k=b.data[0])==null?void 0:k.y;if(!l)return null;k=[];for(var r=b.data.reduce(function(O,R){return Math.max(O,R.y.bucketCounts.length)},0)-1;r>=0;r--)k.push({label:e(ql(l,r)),metadata:{seriesId:b.id,bucketIndex:r}});e=new Set;l=m(b.data);for(r=l.next();!r.done;r=l.next())r=r.value,a(r,0).x>=0&&e.add(r.x.valueOf());e=Array.from(e);e.sort(function(O,R){return O-
R});e=zEa(e,f);f=e.columns;e=e.xToColIndex;l=yEa(k.length,f.length);b=m(b.data);for(r=b.next();!r.done;r=b.next()){r=r.value;var w=e.get(r.x.valueOf());if(w!==void 0)for(var x=r.y,C=0;C<k.length;C++){var H=k[C].metadata.bucketIndex,J=l[C][w];J&&H!==void 0&&(J.position=a(r,H),J.label=g(x,H))}}return{rows:k,columns:f,values:l,xAxisState:c,yAxisState:d}},vKa=function(a,b){if(a===b)return!0;var c;a=(c=a)!=null?c:[];var d;b=(d=b)!=null?d:[];if(a.length!==b.length)return!1;for(c=0;c<a.length;c++){var e=
d=void 0;if(a[c].seriesId!==b[c].seriesId||((d=a[c].datumIndices)==null?void 0:d.length)!==((e=b[c].datumIndices)==null?void 0:e.length))return!1;for(var f=e=d=void 0,g=0;g<((f=(d=a[c])==null?void 0:(e=d.datumIndices)==null?void 0:e.length)!=null?f:0);++g)if(a[c].datumIndices[g].index!==b[c].datumIndices[g].index||a[c].datumIndices[g].bucketIndex!==b[c].datumIndices[g].bucketIndex)return!1}return!0},wKa=function(a){a&1&&Tf(0,"div",2)},xKa=function(a){a&1&&M(0,"mat-spinner",4);a&2&&(a=P(2),I("diameter",
a.spinnerDiameter)("strokeWidth",a.spinnerDiameter/10),Kf("aria-label",a.loadingIndicatorLabel))},yKa=function(a){a&1&&M(0,"mat-progress-bar",5);a&2&&(a=P(2),Kf("aria-label",a.loadingIndicatorLabel))},zKa=function(a){a&1&&(K(0,"div",1),E(1,xKa,1,3,"mat-spinner",2)(2,yKa,1,1,"mat-progress-bar",3),L());a&2&&(a=P(),vg("height",a.bodyHeight,"px")("width",a.bodyWidth,"px")("top",a.bodyTop,"px")("left",a.bodyLeft,"px"),B(),I("ngIf",!a.useProgressBar),B(),I("ngIf",a.useProgressBar))},AKa=function(a){return(a=
String(a).match(/^(-?[\d.]+)(?:([a-zA-Z%]+))?$/))?{value:Number(a[1]),unit:(a[2]||"").toLowerCase()}:null},BKa=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P(2),B(),yg(a.summaryHeader))},CKa=function(a){a&1&&(K(0,"span",8,1),Q(2),L());a&2&&(a=P(2),I("title",a.summaryBody),B(2),S(" ",a.summaryBody," "))},DKa=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2),B(),yg(a.summaryFooter))},EKa=function(a){a&1&&(K(0,"div",3,0),E(2,BKa,2,1,"span",4)(3,CKa,3,2,"span",5)(4,DKa,2,1,"span",6),L());a&
2&&(a=P(),B(2),I("ngIf",a.summaryHeader),B(),I("ngIf",a.summaryBody),B(),I("ngIf",a.summaryFooter))},FKa=function(a){a&1&&(Rf(0,"div",1),dg(1),Sf())},GKa=function(a,b){return a.yAxisUnit===b.yAxisUnit&&a.yAxisMin===b.yAxisMin&&a.yAxisMax===b.yAxisMax&&a.yAxisAbsoluteMin===b.yAxisAbsoluteMin&&a.yAxisScaleType===b.yAxisScaleType&&a.xAxisMin===b.xAxisMin&&a.xAxisMax===b.xAxisMax&&a.xAxisUnit===b.xAxisUnit&&a.bodyTop===b.bodyTop&&a.bodyBottom===b.bodyBottom&&a.bodyLeft===b.bodyLeft&&a.bodyRight===b.bodyRight&&
a.dataUnit===b.dataUnit},HKa=function(a,b){return(a==null?void 0:a.version)!==(b==null?void 0:b.version)},IKa=function(a,b,c){c=c===void 0?!1:c;if(!a)return!0;var d=m(a);a=d.next().value;d=d.next().value;var e=m(b);b=e.next().value;e=e.next().value;return c?b<=d&&a<=e:a<=e&&b<=d},JKa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?!1:c;return a.reduceRight(function(d,e){var f=m(d).next().value,g=m(f).next().value;g&&zl(b,g,e,c).gapDetected?d.unshift([e]):f.unshift(e);return d},[[]])},KKa=function(){return{getInitialState:function(a){a=
a===void 0?{}:a;return Object.assign({ids:[],entities:{}},a)}}},Ul=function(a){return function(b,c){var d={ids:[].concat(q(c.ids)),entities:Object.assign({},c.entities)};b=a(b,d);return b===1?Object.assign({},c,d):b===0?Object.assign({},c,{entities:d.entities}):c}},LKa=function(a){function b(l,r){var w=a(l);if(w in r.entities)return 2;r.ids.push(w);r.entities[w]=l;return 1}function c(l,r){var w=!1;l=m(l);for(var x=l.next();!x.done;x=l.next())w=b(x.value,r)!==2||w;return w?1:2}function d(l,r){var w=
a(l);if(w in r.entities)return r.entities[w]=l,0;r.ids.push(w);r.entities[w]=l;return 1}function e(l,r){var w=(l instanceof Array?l:r.ids.filter(function(x){return l(r.entities[x])})).filter(function(x){return x in r.entities}).map(function(x){return delete r.entities[x]}).length>0;w&&(r.ids=r.ids.filter(function(x){return x in r.entities}));return w?1:2}function f(l,r){return g([l],r)}function g(l,r){var w={};l=l.filter(function(x){return x.id in r.entities});return l.length>0?l.filter(function(x){var C=
Object.assign({},r.entities[x.id],x.changes),H=a(C),J=H!==x.id;J&&(w[x.id]=H,delete r.entities[x.id]);r.entities[H]=C;return J}).length>0?(r.ids=r.ids.map(function(x){return w[x]||x}),1):0:2}function k(l,r){var w=[],x=[];l=m(l);for(var C=l.next();!C.done;C=l.next()){C=C.value;var H=a(C);H in r.entities?x.push({id:H,changes:C}):w.push(C)}x=g(x,r);r=c(w,r);switch(!0){case r===2&&x===2:return 2;case r===1||x===1:return 1;default:return 0}}return{removeAll:function(l){return Object.assign({},l,{ids:[],
entities:{}})},addOne:Ul(b),addMany:Ul(c),setAll:Ul(function(l,r){r.ids=[];r.entities={};c(l,r);return 1}),setOne:Ul(d),setMany:Ul(function(l,r){l=l.map(function(w){return d(w,r)});switch(!0){case l.some(function(w){return w===1}):return 1;case l.some(function(w){return w===0}):return 0;default:return 2}}),updateOne:Ul(f),updateMany:Ul(g),upsertOne:Ul(function(l,r){return k([l],r)}),upsertMany:Ul(k),removeOne:Ul(function(l,r){return e([l],r)}),removeMany:Ul(e),map:Ul(function(l,r){var w=r.ids.reduce(function(x,
C){var H=l(r.entities[C]);H!==r.entities[C]&&x.push({id:C,changes:H});return x},[]).filter(function(x){return x.id in r.entities});return g(w,r)}),mapOne:Ul(function(l,r){var w=l.map;l=l.id;var x=r.entities[l];if(!x)return 2;w=w(x);return f({id:l,changes:w},r)})}},MKa=function(a,b){function c(w,x){return d([w],x)}function d(w,x){w=w.filter(function(C){return!(a(C)in x.entities)});if(w.length===0)return 2;l(w,x);return 1}function e(w,x){var C=a(w);return C in x.entities?(x.ids=x.ids.filter(function(H){return H!==
C}),l([w],x),1):c(w,x)}function f(w,x){return g([w],x)}function g(w,x){var C=[];w=w.filter(function(O){if(O.id in x.entities){var R=Object.assign({},x.entities[O.id],O.changes),V=a(R);delete x.entities[O.id];C.push(R);O=V!==O.id}else O=!1;return O}).length>0;if(C.length===0)return 2;var H=x.ids,J=[];x.ids=x.ids.filter(function(O,R){if(O in x.entities)return!0;J.push(R);return!1});l(C,x);return!w&&J.every(function(O){return x.ids[O]===H[O]})?0:1}function k(w,x){var C=[],H=[];w=m(w);for(var J=w.next();!J.done;J=
w.next()){J=J.value;var O=a(J);O in x.entities?H.push({id:O,changes:J}):C.push(J)}H=g(H,x);x=d(C,x);switch(!0){case x===2&&H===2:return 2;case x===1||H===1:return 1;default:return 0}}function l(w,x){w.sort(b);for(var C=[],H=0,J=0;H<w.length&&J<x.ids.length;){var O=w[H],R=a(O),V=x.ids[J];b(O,x.entities[V])<=0?(C.push(R),H++):(C.push(V),J++)}x.ids=H<w.length?C.concat(w.slice(H).map(a)):C.concat(x.ids.slice(J));w.forEach(function(ca){x.entities[a(ca)]=ca})}var r=LKa(a);return{removeOne:r.removeOne,removeMany:r.removeMany,
removeAll:r.removeAll,addOne:Ul(c),updateOne:Ul(f),upsertOne:Ul(function(w,x){return k([w],x)}),setAll:Ul(function(w,x){x.entities={};x.ids=[];d(w,x);return 1}),setOne:Ul(e),setMany:Ul(function(w,x){w=w.map(function(C){return e(C,x)});switch(!0){case w.some(function(C){return C===1}):return 1;case w.some(function(C){return C===0}):return 0;default:return 2}}),addMany:Ul(d),updateMany:Ul(g),upsertMany:Ul(k),map:Ul(function(w,x){var C=x.ids.reduce(function(H,J){var O=w(x.entities[J]);O!==x.entities[J]&&
H.push({id:J,changes:O});return H},[]);return g(C,x)}),mapOne:Ul(function(w,x){var C=w.map;w=w.id;var H=x.entities[w];if(!H)return 2;C=C(H);return f({id:w,changes:C},x)})}},NKa=function(){return{getSelectors:function(a){var b=function(f){return f.ids},c=function(f){return f.entities},d=Zj(b,c,function(f,g){return f.map(function(k){return g[k]})}),e=Zj(b,function(f){return f.length});return a?{selectIds:Zj(a,b),selectEntities:Zj(a,c),selectAll:Zj(a,d),selectTotal:Zj(a,e)}:{selectIds:b,selectEntities:c,
selectAll:d,selectTotal:e}}}},Vl=function(a){a=a===void 0?{}:a;var b,c,d=(b=a.selectId)!=null?b:function(e){return e.id};a=(c=a.sortComparer)!=null?c:!1;return Object.assign({},{selectId:d,sortComparer:a},KKa(),NKa(),a?MKa(d,a):LKa(d))},PKa=function(a,b){return OKa(a,b)},RKa=function(a,b){return QKa(a,b)},TKa=function(a,b){return SKa(a,b)},VKa=function(a,b){return UKa(a,b)},XKa=function(a,b){return WKa(a,b)},ZKa=function(a,b){return YKa(a,b)},aLa=function(a,b){return $Ka(a,b)},dLa=function(a,b,c,
d){var e=a.entities[b];e||(e=bLa(b));(b=e.byLayer.entities[c])||(b={layerId:c,selectedExemplar:null,hoveredExemplar:null});c=e;d=Object.assign({},b,d);d=Object.assign({},c,{byLayer:cLa.upsertOne(d,c.byLayer)});return Wl.upsertOne(d,a)},fLa=function(a,b){return eLa(a,b)},hLa=function(a,b){return gLa(a,b)},jLa=function(a,b){return iLa(a,b)},lLa=function(a,b){return kLa(a,b)},nLa=function(a,b){return mLa(a,b)},oLa=function(a){var b=[];a=m(Object.values(a));for(var c=a.next();!c.done;c=a.next())if(c=
c.value,Array.isArray(c))b=b.concat(c);else if(c)return!0;if(b.length===0)return!1;a=b.sort(function(f,g){return f[0].valueOf()-g[0].valueOf()});b=[];a=m(a);for(c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;var e=b[b.length-1];b.length===0||c>e[1]?b.push([c,d]):d>e[1]&&(e[1]=d)}return b},qLa=function(a,b){return pLa(a,b)},sLa=function(a,b){return rLa(a,b)},uLa=function(a,b,c){c=m(c);for(var d=c.next();!d.done;d=c.next())d=tLa(d.value.requirements).margins,d.left>
a&&(a=d.left),d.right>b&&(b=d.right);return{left:a,right:b}},wLa=function(a,b){if((a==null?0:a.useChartGroupHorizontalMargins)||b.some(function(e){return e.useChartGroupHorizontalMargins})){var c=uLa(a.margins.left,a.margins.right,b),d=c.left;c=c.right;a.useChartGroupHorizontalMargins&&(a.margins.left=d,a.margins.right=c);return vLa(b,d,c)}return[]},vLa=function(a,b,c){var d=[];a=m(a.filter(function(f){return f.useChartGroupHorizontalMargins}));for(var e=a.next();!e.done;e=a.next())e=e.value,b===
e.margins.left&&c===e.margins.right||d.push(Object.assign({},e,{margins:Object.assign({},e.margins,{left:b,right:c})}));return d},xLa=function(a,b,c){return Object.values(a.entities).filter(function(d){return!!d}).filter(function(d){return d.chartGroupId===b&&d.chartId!==c})},tLa=function(a){for(var b=Xl.getInitialState({}),c=0,d=0,e=0,f=0,g=m(a),k=g.next();!k.done;k=g.next())k=k.value,k.reservedMargins&&(k.reservedMargins.top&&(b=Xl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,
top:c}),b),c+=k.reservedMargins.top),k.reservedMargins.right&&(b=Xl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,right:d}),b),d+=k.reservedMargins.right),k.reservedMargins.bottom&&(b=Xl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,bottom:e}),b),e+=k.reservedMargins.bottom),k.reservedMargins.left&&(b=Xl.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,left:f}),b),f+=k.reservedMargins.left));a=m(a);for(g=a.next();!g.done;g=a.next())g=
g.value,g.overlappingMargins&&(g.overlappingMargins.top&&(c=Math.max(c,g.overlappingMargins.top)),g.overlappingMargins.right&&(d=Math.max(d,g.overlappingMargins.right)),g.overlappingMargins.bottom&&(e=Math.max(e,g.overlappingMargins.bottom)),g.overlappingMargins.left&&(f=Math.max(f,g.overlappingMargins.left)));return{margins:{top:Math.max(0,c),right:Math.max(0,d),bottom:Math.max(0,e),left:Math.max(0,f)},reservedMarginsByLayer:b}},zLa=function(a,b){return yLa(a,b)},Yl=function(a,b,c){(a=a.entities[b])||
(a=ALa(b));(b=a.byLayer.entities[c])||(b=Object.assign({},BLa,{layerId:c,selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null}));return{chartState:a,layerState:b}},DLa=function(a,b){return CLa(a,b)},FLa=function(a,b){return ELa(a,b)},ILa=function(a,b,c,d){b=a.entities[b]||Object.assign({},GLa,{chartId:b});var e=b.byLayer.entities[c];d=d(e);if(d===e)return a;if(d)c=HLa.upsertOne(d,b.byLayer);else if(e)c=HLa.removeOne(c,b.byLayer);else return a;return Zl.upsertOne(Object.assign({},
b,{byLayer:c}),a)},JLa=function(a,b,c,d){var e=a;a=a[b];if(c&&((a==null?void 0:a.alignmentRange.x)!==c.x||(a==null?void 0:a.alignmentRange.x0)!==c.x0)){var f={};e=Object.assign({},e,(f[b]={alignmentRange:Object.assign({},c)},f))}d&&(a==null?void 0:a.category)!==d&&(c={},e=Object.assign({},e,(c[b]={category:d},c)));return e},KLa=function(a,b,c){var d=new Map;b=m(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.set(e.seriesId,e.value);b=[];e=m(a);for(var f=e.next();!f.done;f=e.next())if(f=f.value){var g=
f.seriesId,k=d.get(g);if(k!==f.atTimeKey[c]){var l={};b.push(Object.assign({},f,{atTimeKey:Object.assign({},f.atTimeKey,(l[c]=k,l)),seriesId:g}))}}return b.length?b:a},MLa=function(a,b){return LLa(a,b)},OLa=function(a,b){return NLa(a,b)},QLa=function(a,b){return PLa(a,b)},SLa=function(a,b){return RLa(a,b)},WLa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=c.getLabel())!=null?d:"";d=void 0;b.push({name:e,id:e,data:((d=Ci(c,TLa,2,Di()))!=null?d:[]).filter(function(f){return Ri(f,
ULa,1,VLa)&&$l(f,ULa,1,VLa).hasEndTime()}).map(function(f){f=$l(f,ULa,1,VLa);var g,k=f.getEndTime();return{x:new Date(Number(k.getSeconds())*1E3+Number(k.getNanos())/1E6),y:(g=f.getValue())!=null?g:0}}).sort(function(f,g){return f.x.getTime()-g.x.getTime()})})}return{series:b,unit:"1"}},XLa=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});Q(1);L()}a&2&&(I("matTooltip","Prompt: "+b.getPrompt()),B(),S(" ",b.getLabel(),
" "))},YLa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},ZLa=function(a,b){a&1&&(F(0,XLa,2,2,"button",0),F(1,YLa,1,1,"interactive-element-chart",1));if(a&2){var c,d;a=b.$implicit;b=P(2);G((c=b.getButton(a))?0:-1,c);B();G((d=b.getChart(a))?1:-1,d)}},$La=function(a,b){a&1&&Of(0,ZLa,2,2,null,null,Mf);a&2&&Pf(b)},aMa=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});Q(1);L()}a&2&&(a=P(3),I("ve",
a.ve.DuckieChatInteractiveElementButton)("veClick",!0)("veImpression",!0),B(),S(" ",b.getLabel()," "))},bMa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},cMa=function(a,b){a&1&&(F(0,aMa,2,4,"button",0),F(1,bMa,1,1,"interactive-element-chart",1));if(a&2){var c,d;a=b.$implicit;b=P(2);G((c=b.getButton(a))?0:-1,c);B();G((d=b.getChart(a))?1:-1,d)}},dMa=function(a,b){a&1&&Of(0,cMa,2,2,null,null,Mf);a&2&&Pf(b)},eMa=function(a){a&1&&(K(0,"mat-icon"),Q(1),L());a&2&&(a=P(),xg(Eg("dialog-icon ",
a.iconType)),B(),yg(a.iconType))},fMa=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),yg(a.data.title))},gMa=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),yg(a.data.message))},hMa=function(a){a&1&&Wf(0)},jMa=function(a){a&1&&(K(0,"div"),E(1,hMa,1,0,"ng-container",9),L());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.data.contentTemplate)("ngTemplateOutletContext",Ig(2,iMa,a.data.contentTemplateContext)))},kMa=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(c){u(b);var d=
P();return v(d.deleteSession(c))});Q(1," Delete thread ");L()}},lMa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(c){u(b);var d=P();return v(d.toggleSessionArchivedState(c))});Q(1);L()}a&2&&(P(),a=bg(0),B(),S(" ",a?"Unarchive thread":"Archive thread"," "))},mMa=function(a){a&1&&Wf(0,null,0)},nMa=function(a){a&1&&M(0,"session-actions",1);a&2&&(a=P(),I("sessionSummary",a.sessionSummary()))},oMa=function(a){a&1&&dg(0,4)},pMa=function(a){a&1&&(K(0,"div",11),M(1,"input",12),K(2,"div",
13),Ad(),K(3,"svg",14),M(4,"path",15),L(),Cd(),M(5,"div",16),L()());a&2&&(a=P(),wg("mdc-checkbox--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},qMa=function(a){a&1&&(K(0,"div",17),M(1,"input",18),K(2,"div",19),M(3,"div",20)(4,"div",21),L()());a&2&&(a=P(),wg("mdc-radio--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},rMa=function(){},sMa=function(a){a&1&&(K(0,"span",4),E(1,rMa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(3),B(),I("ngTemplateOutlet",
a))},tMa=function(){},uMa=function(a){a&1&&(K(0,"span",5),E(1,tMa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(5),B(),I("ngTemplateOutlet",a))},vMa=function(){},wMa=function(a){a&1&&E(0,vMa,0,0,"ng-template",6);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},xMa=function(){},yMa=function(a){a&1&&(K(0,"span",9),E(1,xMa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(3),B(),I("ngTemplateOutlet",a))},zMa=function(){},AMa=function(a){a&1&&(K(0,"span",9),E(1,zMa,0,0,"ng-template",6),L());a&2&&(P(),a=qg(5),B(),I("ngTemplateOutlet",
a))},BMa=function(){},CMa=function(a){a&1&&E(0,BMa,0,0,"ng-template",6);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},DMa=function(a){var b={attributeFilter:["aria-label","aria-valuenow"]};return new Vd(function(c){(new MutationObserver(function(d){var e=d[0].target,f;d=(f=e.getAttribute("aria-label"))!=null?f:"";var g;f=(g=e.getAttribute("aria-valuenow"))!=null?g:"indeterminate";c.next([d,f])})).observe(a,b)})},EMa=function(a){a&1&&M(0,"mat-progress-spinner",1);a&2&&I("diameter",32)},FMa=function(a){a&
1&&(M(0,"mat-divider"),K(1,"div",10)(2,"div"),Q(3,"Incognito mode enabled. All threads will be deleted on closing this tab or window."),L(),K(4,"a",11),Q(5," Learn more "),L()())},HMa=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(3);return v(GMa(c))});K(1,"mat-icon");Q(2,"close");L()()}},IMa=function(a){if(a&1){var b=t();K(0,"div",9)(1,"mat-form-field",12)(2,"mat-label");Q(3,"Search thread titles");L();K(4,"input",13,0);N("input",function(){u(b);var c=qg(5),d=P(2);
return v(d.searchText$.next(c.value))});L();F(6,HMa,3,0,"button",14);L()()}a&2&&(a=qg(5),B(6),G(a.value!==""?6:-1))},JMa=function(a){a&1&&M(0,"mat-divider")},KMa=function(a){a&1&&(K(0,"mat-list-item",16),Q(1,"No results found"),L())},LMa=function(a){a&1&&(K(0,"mat-icon",20),Q(1,"privacy_tip"),L())},MMa=function(a){if(a&1){var b=t();K(0,"div",21)(1,"session-actions-wrapper",22);N("click",function(c){u(b);P(4);c.stopPropagation();c.preventDefault();return v()});L()()}a&2&&(a=P().$implicit,B(),I("sessionSummary",
a))},OMa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(5);return v(NMa(c))});K(1,"mat-icon");Q(2,"keyboard_arrow_down");L();Q(3," Show more ");L()}},PMa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(5);c.isShowingMoreNavItems=!1;c.numDisplayedItems=5;return v()});K(1,"mat-icon");Q(2,"keyboard_arrow_up");L();Q(3," Show less ");L()}},QMa=function(a){a&1&&F(0,OMa,4,0,"button",23)(1,PMa,4,0,"button",23);a&2&&(a=P(4),G(a.isShowingMoreNavItems?
1:0))},TMa=function(a,b){if(a&1){var c=t();K(0,"a",17);T(1,"async");N("click",function(){var g=u(c).$implicit,k=P(3);am(k.duckieEventTrackerService,bm((new cm).setSessionId(g.sessionId)),207765);RMa(k.routingService,g.sessionId);k.navItemClicked.emit();return v()});K(2,"span",18)(3,"span",19);Q(4);L();F(5,LMa,2,0,"mat-icon",20);L();F(6,MMa,2,1,"div",21);L();F(7,QMa,2,1)}if(a&2){a=b.$implicit;b=b.$index;var d=P(),e=P(2),f=bg(0);I("title",Dg(a.title))("activated",SMa(a,U(1,7,e.currentThreadId$)));B(4);
yg(a.title);B();G(e.sessionDeletionEnabled||a.privacyMode!==e.PrivacyMode.CONTENT_PRIVATE||f?-1:5);B();G(f?-1:6);B();G(b===e.initialNavItems-1&&e.initialNavItems<d.length?7:-1)}},VMa=function(a,b){a&1&&(F(0,KMa,2,0,"mat-list-item",16),Of(1,TMa,8,9,null,null,UMa));a&2&&(a=P(2),G(a.showFilter&&b.length===0?0:-1),B(),Pf(b.slice(0,a.numDisplayedItems)))},WMa=function(a){if(a&1){var b=t();K(0,"mat-nav-list",3);T(1,"async");K(2,"div",4)(3,"div",5)(4,"mat-icon",6);Q(5,"history");L();Q(6," Recent ");L();
K(7,"div",7)(8,"button",8);N("click",function(){u(b);var e=P();e.showFilter=!e.showFilter;e.showFilter?GMa(e):e.clearSearch();return v()});K(9,"mat-icon");Q(10,"filter_list");L()()()();F(11,FMa,6,0);T(12,"async");F(13,IMa,7,1,"div",9)(14,JMa,1,0,"mat-divider");F(15,VMa,3,1);T(16,"async");L()}if(a&2){var c;a=P();var d=bg(0);wg("has-top-banner",U(1,9,a.isGeminiModelSelected$));B(8);wg("selected",a.showFilter);I("ve",a.ve.DuckieFilterRecentSessionsButton)("veClick",!0);B(3);G(U(12,11,a.userStateLoaded$)&&
d?11:-1);B(2);G(a.showFilter?13:14);B(2);G((c=U(16,13,a.filteredSessionSummaries$))?15:-1,c)}},XMa=function(a){a&1&&Wf(0,null,0)},YMa=function(a){if(a&1){var b=t();K(0,"recent-sessions",1);N("navItemClicked",function(c){u(b);var d=P();return v(d.navItemClicked.emit(c))});L()}},ZMa=function(a){a&1&&Wf(0,null,0)},$Ma=function(a){a&1&&M(0,"new-topic-button")},aNa=function(a){a&1&&Wf(0,null,0)},bNa=function(a){a&1&&M(0,"big-bird-outage")},cNa=function(a){a&1&&Wf(0,null,0)},dNa=function(a){a&1&&M(0,"general-announcement")},
eNa=function(a){a&1&&Wf(0,null,0)},fNa=function(a){a&1&&M(0,"incognito-banner")},gNa=function(a){for(var b=new Set;b.size<3;)b.add(a[Math.floor(Math.random()*a.length)]);return Array.from(b)},hNa=function(a,b){if(a&1){var c=t();K(0,"button",5);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.setExampleQuery(d.prompt))});Q(1);L()}a&2&&(a=b.$implicit,b=P(3),I("ve",b.ve.ZeroStateSuggestionChipButton)("veClick",!0)("veImpression",!0),B(),S(" ",a.label," "))},jNa=function(a,b){a&1&&(K(0,"div",
1)(1,"div",2),Q(2),L(),K(3,"div",3),Of(4,hNa,2,4,"button",4,iNa),L()());a&2&&(a=b.$implicit,B(2),yg(a.title),B(2),Pf(a.examples))},lNa=function(a,b){a&1&&Of(0,jNa,6,1,"div",1,kNa);a&2&&Pf(b)},mNa=function(a){a&1&&Wf(0,null,0)},nNa=function(a){if(a&1){var b=t();K(0,"onboarding-examples",2);N("exampleQuery",function(c){u(b);var d=P();return v(d.exampleQuery.emit(c))});L()}a&2&&(a=P(),I("clientConfiguration",a.clientConfiguration()))},qNa=function(a){var b=Array.from(oNa.keys()).find(function(c){return a.startsWith(c)});
if(b)return b==="nexus"&&(a.includes("conversationAgentId=nexus_dynamic")||a.includes("conversationAgentId=nexus_experimental_dynamic"))?["nexus",pNa]:[b,oNa.get(b)]},rNa=function(a){var b;return(b=qNa(a))==null?void 0:b[1]},tNa=function(a){if(sNa==null){var b=typeof document!=="undefined"?document.head:null;sNa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return sNa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},uNa=function(a){if(a&
1){var b=t();K(0,"div",0);N("clickOutside",function(){u(b);var c=P();return v(c.closeHovercard$.next())})("mouseenter",function(){u(b);P().isOnHover$.next(!0);return v()})("mouseleave",function(){u(b);P().isOnHover$.next(!1);return v()});dg(1);L()}a&2&&(a=P(),xg(a.className),I("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},dm=function(a){return{fieldType:3,fieldName:a}},vNa=function(a){a&1&&(K(0,"span",3),dg(1,1),L())},wNa=function(a){a&1&&(K(0,"span",6),dg(1,2),L())},xNa=function(a){a&1&&
(K(0,"span",3),dg(1,1),K(2,"span",7),Ad(),K(3,"svg",8),M(4,"path",9),L()()())},yNa=function(a){a&1&&(K(0,"span",6),dg(1,2),L())},zNa=function(a){a&1&&M(0,"incognito-banner-wrapper")},ANa=function(a){a&1&&M(0,"general-announcement-wrapper")},BNa=function(a,b){a&1&&M(0,"banner",5);a&2&&(a=b.$implicit,I("bannerType",a.getType())("bannerText",a.getText())("dismissalType",xi(a,2)))},CNa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},DNa=function(a){a&1&&(M(0,"reminder-blurb-wrapper"),F(1,CNa,1,0,"big-bird-outage-wrapper"));
a&2&&(a=P(),B(),G(a.duckieBigBirdStrikeEnabled?1:-1))},ENa=function(a){a&1&&Wf(0)},GNa=function(a,b){a&1&&E(0,ENa,1,0,"ng-container",9);a&2&&(P(2),a=qg(13),I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,FNa,b)))},HNa=function(a){a&1&&(K(0,"div",7),Q(1," Get assistance with "),L())},INa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},JNa=function(a){if(a&1){var b=t();F(0,GNa,1,4,"ng-container")(1,HNa,2,0,"div",7);K(2,"onboarding-examples-wrapper",8);N("exampleQuery",function(d){u(b);var e=
P();return v(e.setExampleQuery(d))});L();M(3,"reminder-blurb-wrapper");F(4,INa,1,0,"big-bird-outage-wrapper")}if(a&2){var c;a=P();G((c=a.clientConfiguration())?0:1,c);B(2);I("clientConfiguration",a.clientConfiguration());B(2);G(a.duckieBigBirdStrikeEnabled?4:-1)}},KNa=function(a){a&1&&(K(0,"mat-icon",22),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.iconName))},LNa=function(a,b){a&1&&(K(0,"mat-chip-option",21),F(1,KNa,2,1,"mat-icon",22),Q(2),L());if(a&2){a=b.$implicit;b=P();P();var c=qg(12),d=qg(20),e=
P();xg(Eg("agent-selector-chip ",a.agentId));I("onedevHovercardTrigger",a.agentId==="duckie_dynamic"?c:d)("disabled",e.duckieBigBirdStrikeEnabled&&a.agentId===e.duckieBigBird)("selected",b.modelId===e.dynamicDuckieMModelId||b.agentId===a.agentId);B();G(a.iconName?1:-1);B();S(" ",a.agentDisplayName," ")}},NNa=function(a){a&1&&(Of(0,LNa,3,8,"mat-chip-option",20,MNa),T(2,"async"));a&2&&(a=P(2),Pf(U(2,0,a.availableConversationAgents$)))},PNa=function(a){if(a&1){var b=t();K(0,"div",10)(1,"mat-icon");Q(2,
"experiment");L();K(3,"h2");Q(4,"Experimental features");L();K(5,"p",11);Q(6," Select feature(s) to enable ");L();K(7,"div",12)(8,"mat-chip-listbox",13);N("change",function(d){u(b);var e=P();return v(ONa(e,d))});F(9,NNa,3,2);T(10,"async");L()();K(11,"onedev-hovercard",null,2)(13,"div",14)(14,"div",15)(15,"h2",16);Q(16,"Agentic Search ");L();K(17,"p");Q(18," Seamlessly combines the default Moma search capabilities with additional search sources like CodeSearch, CLs, bugs, & more.");L()()()();K(19,
"onedev-hovercard",null,3)(21,"div",14)(22,"div",15)(23,"h2",16);Q(24,"Big Bird");L();K(25,"p",17);Q(26," Deeper thinking, improved reasoning capabilities.");L();K(27,"div",18);Q(28,"Latency");L();Q(29," Slower than default \ud83d\udc22 ");L()()()();M(30,"span",19)}if(a&2){var c;a=P();B(9);G((c=U(10,1,a.conversationAgentsService.currentConversationAgent$))?9:-1,c)}},QNa=function(a){a&1&&Wf(0)},RNa=function(a){a&1&&E(0,QNa,1,0,"ng-container",9);if(a&2){a=P().configuration;P();var b=qg(15);I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Ig(2,FNa,a))}},SNa=function(a){a&1&&(M(0,"hr"),K(1,"div",25),Q(2),L());a&2&&(a=P().configuration,B(2),S(" ",a.onboardingDescription," "))},TNa=function(a,b){a&1&&(K(0,"div",23),F(1,RNa,1,4,"ng-container"),K(2,"h1",24),Q(3),L(),F(4,SNa,3,1),L());a&2&&(a=b.configuration,B(),G(a.clientLogoUrl?1:-1),B(2),S(" Duckie for ",a.clientName," "),B(),G(a.onboardingDescription?4:-1))},UNa=function(a,b){a&1&&(K(0,"div",26),M(1,"img",27),L());a&2&&(a=b.configuration,B(),I("src",a.clientLogoUrl,
Pe))},VNa=function(a){a&1&&Wf(0,null,0)},WNa=function(a){a&1&&M(0,"onboarding",3);a&2&&(a=P(),I("configurationKey",a.configurationKey())("pageId",a.pageId()))},XNa=function(a){a&1&&(K(0,"div",6),Q(1," Responses below are visible only to you and your protected results are used. "),L())},YNa=function(a){if(a&1){var b=t();K(0,"div",3)(1,"div");Q(2," Your protected results are used in this thread. You may opt-out of this feature in settings. ");L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);
var c=P();return v(c.openUserPrivacySettingsDialog())});Q(5,"Settings");L()()()}},ZNa=function(){},$Na=function(a){a&1&&dg(0)},aOa=function(){},bOa=function(a){a&1&&E(0,aOa,0,0,"ng-template",12);a&2&&(a=P().$implicit,I("cdkPortalOutlet",a.templateLabel))},cOa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,yg(a.textLabel))},dOa=function(a,b){if(a&1){var c=t();K(0,"div",7,2);N("click",function(){var f=u(c),g=f.$implicit;f=f.$index;var k=P(),l=qg(1);return v(k._handleClick(g,l,f))})("cdkFocusChange",function(f){var g=
u(c).$index,k=P();return v(k._tabFocusChanged(f,g))});M(2,"span",8)(3,"div",9);K(4,"span",10)(5,"span",11);F(6,bOa,1,1,null,12)(7,cOa,1,1);L()()()}if(a&2){a=b.$implicit;b=b.$index;var d=qg(1),e=P();xg(a.labelClass);wg("mdc-tab--active",e.selectedIndex===b);I("id",e._getTabLabelId(a,b))("disabled",a.disabled)("fitInkBarToContent",e.fitInkBarToContent);Kf("tabIndex",e._getTabIndex(b))("aria-posinset",b+1)("aria-setsize",e._tabs.length)("aria-controls",e._getTabContentId(b))("aria-selected",e.selectedIndex===
b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null);B(3);I("matRippleTrigger",d)("matRippleDisabled",a.disabled||e.disableRipple);B(3);G(a.templateLabel?6:7)}},eOa=function(a){a&1&&dg(0)},fOa=function(a,b){if(a&1){var c=t();K(0,"mat-tab-body",13);N("_onCentered",function(){u(c);var e=P();return v(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){u(c);var f=P();return v(f._setTabBodyWrapperHeight(e))})("_beforeCentering",function(e){u(c);
var f=P();return v(f._bodyCentered(e))});L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();xg(a.bodyClass);I("id",d._getTabContentId(b))("content",a.content)("position",a.position)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);Kf("tabindex",d.contentTabIndex!=null&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(a,b))("aria-hidden",d.selectedIndex!==b)}},gOa=function(){},hOa=function(a){a&1&&(Rf(0,"span",1),Ad(),Rf(1,"svg",2),Tf(2,"path",
3),Sf()())},iOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"googleSearchQuery: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",a.getGoogleSearchQuery()," "))},jOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"GoogleSearchResponse: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",vi(a,2)," "))},kOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"displaySnippet: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",vi(a,34)," "))},lOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"searchQueryScore: "),
L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",em(a,3)," "))},mOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"StatusWrtResponse: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",xi(a,4)," "))},nOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"WorldFactSource: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",xi(a,5)," "))},oOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"WorldFactUrlSource: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",vi(a,6)," "))},qOa=function(a){a&1&&(K(0,"div")(1,"strong"),
Q(2,"EntityMentions: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Ci(a,pOa,8,Di())," "))},rOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"SourceTitle: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",vi(a,9)," "))},sOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"RankembedSimilarity: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",em(a,11)," "))},tOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"RelatedQuestion: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",vi(a,13)," "))},vOa=function(a){a&
1&&(K(0,"div")(1,"strong"),Q(2,"RelatedQuestionMetadata: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,uOa,23)," "))},wOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"IsCitable: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Gi(a,14)," "))},xOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"FilteredByShield: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Gi(a,16)," "))},yOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"DocId: "),L(),Q(3),L());if(a&2){a=P().$implicit;B(3);var b=b===void 0?
"0":b;a=fm(a,17);var c=!0;c=c===void 0?!1:c;var d=typeof a;a=a==null?a:d==="bigint"?String(Lb(64,a)):Bb(a)?d==="string"?Mca(a):c?Kca(a):Jca(a):void 0;S(" ",a!=null?a:b," ")}},zOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"Timestamp: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",a.getTimestamp()," "))},AOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"IsSupplementalFact: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",Gi(a,20)," "))},COa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"PeregrineSignals: "),
L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,BOa,32)," "))},DOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"MomaResultMetadata: "),L(),M(3,"br"),Q(4," \u00a0\u00a0"),K(5,"strong"),Q(6,"present in docjoin: "),L(),Q(7),M(8,"br"),Q(9," \u00a0\u00a0"),K(10,"strong"),Q(11,"linkUrl: "),L(),Q(12),M(13,"br"),Q(14," \u00a0\u00a0"),K(15,"strong"),Q(16,"icon: "),L(),Q(17),M(18,"br"),Q(19," \u00a0\u00a0"),K(20,"strong"),Q(21,"lastModificationTime: "),L(),Q(22),M(23,"br"),Q(24," \u00a0\u00a0"),K(25,"strong"),
Q(26,"DisplayUrl: "),L(),Q(27),M(28,"br"),L());if(a&2){var b,c,d,e,f;a=P().$implicit;B(7);yg((b=X(a,gm,27))==null?null:Gi(b,1));B(5);yg((c=X(a,gm,27))==null?null:X(c,hm,2));B(5);yg((d=X(a,gm,27))==null?null:d.getIcon());B(5);yg((e=X(a,gm,27))==null?null:e.getLastModificationTime());B(5);yg((f=X(a,gm,27))==null?null:vi(f,5))}},FOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"ScoringSignals: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,EOa,28)," "))},HOa=function(a){a&1&&(K(0,"div")(1,"strong"),
Q(2,"locationSensitiveScores: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,GOa,29)," "))},JOa=function(a){a&1&&(K(0,"div")(1,"strong"),Q(2,"UrlSummarizationMetadata: "),L(),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",X(a,IOa,30)," "))},KOa=function(a,b){a&1&&(K(0,"li"),E(1,iOa,4,1,"div",11)(2,jOa,4,1,"div",11)(3,kOa,4,1,"div",11)(4,lOa,4,1,"div",11)(5,mOa,4,1,"div",11)(6,nOa,4,1,"div",11)(7,oOa,4,1,"div",11)(8,qOa,4,1,"div",11)(9,rOa,4,1,"div",11)(10,sOa,4,1,"div",11)(11,tOa,4,1,"div",11)(12,
vOa,4,1,"div",11)(13,wOa,4,1,"div",11)(14,xOa,4,1,"div",11)(15,yOa,4,1,"div",11)(16,zOa,4,1,"div",11)(17,AOa,4,1,"div",11)(18,COa,4,1,"div",11)(19,DOa,29,5,"div",11)(20,FOa,4,1,"div",11)(21,HOa,4,1,"div",11)(22,JOa,4,1,"div",11),L());a&2&&(a=b.$implicit,B(),I("ngIf",a.hasGoogleSearchQuery()),B(),I("ngIf",im(a,2)),B(),I("ngIf",im(a,34)),B(),I("ngIf",fm(a,3,void 0,void 0,xb)!=null),B(),I("ngIf",jm(a,4)),B(),I("ngIf",jm(a,5)),B(),I("ngIf",im(a,6)),B(),I("ngIf",Ci(a,pOa,8,Di()).length>0),B(),I("ngIf",
im(a,9)),B(),I("ngIf",fm(a,11,void 0,void 0,xb)!=null),B(),I("ngIf",im(a,13)),B(),I("ngIf",yi(a,uOa,23)),B(),I("ngIf",Fi(a,14)),B(),I("ngIf",Fi(a,16)),B(),b=fm(a,17),b!=null&&(typeof b==="bigint"?b>=0&&Mb(b)?b=Number(b):(b=Lb(64,b),b=Mb(b)?Number(b):String(b)):b=Bb(b)?typeof b==="number"?Jca(b):Mca(b):void 0),I("ngIf",b!=null),B(),I("ngIf",a.hasTimestamp()),B(),I("ngIf",Fi(a,20)),B(),I("ngIf",yi(a,BOa,32)),B(),I("ngIf",yi(a,gm,27)),B(),I("ngIf",yi(a,EOa,28)),B(),I("ngIf",yi(a,GOa,29)),B(),I("ngIf",
yi(a,IOa,30)))},LOa=function(a,b){a&1&&(K(0,"li")(1,"div",13)(2,"strong"),Q(3,"heading title: "),L(),Q(4),M(5,"br"),K(6,"strong"),Q(7,"heading url: "),L(),Q(8),M(9,"br"),L()());a&2&&(a=b.$implicit,B(4),S(" ",a.getTitle()," "),B(4),S(" ",a.getUrl()," "))},NOa=function(a){a&1&&(Uf(0),K(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),Q(4," Cited Headings "),L()(),E(5,LOa,10,2,"li",6),L(),Vf());a&2&&(a=P().$implicit,B(5),I("ngForOf",Ci(a,MOa,5,Di())))},OOa=function(a,b){a&
1&&(K(0,"li")(1,"div")(2,"strong"),Q(3,"title: "),L(),Q(4),M(5,"br"),K(6,"strong"),Q(7,"url: "),L(),Q(8),M(9,"br"),K(10,"strong"),Q(11,"iconUrl: "),L(),Q(12),M(13,"br"),K(14,"strong"),Q(15,"lastModificationTime: "),L(),Q(16),M(17,"br"),K(18,"strong"),Q(19,"isExternalDocument: "),L(),Q(20),M(21,"br"),K(22,"strong"),Q(23,"isPrivateDocument: "),L(),Q(24),M(25,"br"),E(26,NOa,6,1,"ng-container",11),L()());a&2&&(a=b.$implicit,B(4),S(" ",a.getTitle()," "),B(4),S(" ",a.getUrl()," "),B(4),S(" ",a.getIconUrl(),
" "),B(4),S(" ",a.getLastModificationTime()," "),B(4),S(" ",Gi(a,6)," "),B(4),S(" ",a.getIsPrivateDocument()," "),B(2),I("ngIf",Ci(a,MOa,5,Di()).length>0))},POa=function(a){a&1&&(Uf(0),K(1,"ul"),E(2,OOa,27,7,"li",6),L(),Vf());if(a&2){var b;a=P().$implicit;B(2);I("ngForOf",(b=km(a))==null?null:lm(b))}},QOa=function(a,b){a&1&&(Uf(0),E(1,POa,3,1,"ng-container",11),Vf());if(a&2){var c;a=b.$implicit;B();I("ngIf",(c=km(a))==null?null:lm(c))}},ROa=function(a,b){a&1&&(K(0,"mat-tab",12)(1,"div"),E(2,QOa,2,
1,"ng-container",6),L()());a&2&&(a=b.ngIf,B(2),I("ngForOf",a))},TOa=function(a,b){a&1&&(K(0,"div")(1,"p",14),Q(2,"planner_query: "),L(),K(3,"div",15),Q(4),L(),K(5,"p",14),Q(6,"planner_status: "),L(),K(7,"div",15),Q(8),L(),K(9,"p",14),Q(10,"planner_code: "),L(),K(11,"div",16),Q(12),L()());a&2&&(a=b.ngIf,P(2),B(4),yg(a==null?null:vi(a,2)),B(4),yg(SOa(a==null?null:xi(a,3))),B(4),yg(a==null?null:vi(a,1)))},YOa=function(a,b){a&1&&(K(0,"div",1)(1,"mat-tab-group",2)(2,"mat-tab",3)(3,"div")(4,"p"),Q(5),L()()(),
K(6,"mat-tab",4)(7,"div")(8,"p"),Q(9),L()()(),K(10,"mat-tab",5)(11,"div")(12,"ul"),E(13,KOa,23,22,"li",6),L()()(),K(14,"mat-tab",7)(15,"div")(16,"p"),Q(17),L()()(),K(18,"mat-tab",8)(19,"div")(20,"p"),Q(21),L()()(),E(22,ROa,3,1,"mat-tab",9),K(23,"mat-tab",10),E(24,TOa,13,3,"div",11),L()()());if(a&2){var c;a=b.ngIf;b=P();B();I("selectedIndex",2);B(4);yg(a.getModelId());B(4);yg(vi(a,3));B(4);var d;(c=X(a,UOa,4))==null?d=null:(c=X(c,VOa,2))==null?d=null:d=Ci(c,WOa,1,Di());I("ngForOf",d);B(4);yg(X(a,XOa,
5));B(4);yg(a.getModelOverrideOptions());B();I("ngIf",b.messageData.relatedResources);B(2);I("ngIf",b.messageData.executionMetadata)}},ZOa=function(a){a&1&&(K(0,"div",5),Q(1," Additional sources URL will be used for analytic purposes only. Content from the URLs will not be used to train the model. "),L())},$Oa=function(a){a&1&&(K(0,"mat-error",12),Yf(1,0),L())},cPa=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",8)(2,"mat-form-field",9)(3,"mat-label");Q(4,"Add source URL");L();K(5,"input",10);
Cg("ngModelChange",function(d){var e=u(c).$index,f=P();Bg(f.rewriteSourcesList[e],d)||(f.rewriteSourcesList[e]=d);return v(d)});L()();K(6,"button",11);N("click",function(){var d=u(c).$index,e=P();e.rewriteSourcesList.splice(d,1);e.rewriteSourcesList.length===0&&e.rewriteSourcesList.push("");return v()});K(7,"mat-icon");Q(8," close ");L()()();F(9,$Oa,2,0,"mat-error",12);L()}a&2&&(a=b.$index,b=P(),B(5),I("name",Eg("source_",a)),Ag("ngModel",b.rewriteSourcesList[a]),B(),I("disabled",b.rewriteSourcesList.length===
1&&!aPa(b.rewriteSourcesList[a])),B(3),G(bPa(b,b.rewriteSourcesList[a])?-1:9))},dPa=function(a){a&1&&Wf(0,null,0)},ePa=function(a){a&1&&M(0,"source-urls-form",2,1);a&2&&(a=P(),I("showWarning",a.showWarning()))},gPa=function(a,b){a&1&&(K(0,"mat-chip-option",8),Q(1),L());a&2&&(a=b.$implicit,b=P(),I("value",a)("selected",b.selectedReasons.includes(a)),B(),S(" ",fPa.get(a)," "))},hPa=function(a){if(a&1){var b=t();K(0,"p",5);Q(1,"Additional feedback");L();K(2,"mat-form-field",14)(3,"mat-label");Q(4,"Share what could be improved in the response");
L();K(5,"textarea",15,1);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.otherReason,c)||(d.otherReason=c);return v(c)});L()()}a&2&&(a=P(2),B(5),Ag("ngModel",a.otherReason))},iPa=function(a){a&1&&M(0,"source-urls-form-wrapper",13,2);a&2&&I("showWarning",!0)},jPa=function(a){a&1&&F(0,hPa,7,1)(1,iPa,2,1,"source-urls-form-wrapper",13);a&2&&(a=P(),G(a.sessionDeletionEnabled||!a.hasPrivateContent()?0:1))},kPa=function(a){a&1&&(K(0,"mat-error",10),Yf(1,3),L());a&2&&(B(),Zf("*Please select some reasons or provide other feedback."),
cna(28))},lPa=function(a){a&1&&Wf(0,null,0)},mPa=function(a){if(a&1){var b=t();K(0,"feedback-reasons-form",2);N("close",function(){u(b);var c=P();return v(c.close.emit())})("submit",function(c){u(b);var d=P();return v(d.submit.emit(c))});L()}a&2&&(a=P(),I("messageData",a.messageData())("hasPrivateContent",a.hasPrivateContent()))},nPa=function(a){a&1&&(K(0,"div",2)(1,"span",4),Q(2),L()());a&2&&(a=P(),B(2),S(" ",a.confirmationMessage," "))},oPa=function(a){if(a&1){var b=t();K(0,"feedback-reasons-form-wrapper",
5);T(1,"async");N("close",function(){u(b);P().showReasonsForm=!1;return v()})("submit",function(c){u(b);var d=P();d.showReasonsForm=!1;d.provideFeedback(!1,c);return v()});L()}a&2&&(a=P(),I("messageData",a.messageData())("hasPrivateContent",U(1,2,a.hasPrivateContent$)))},pPa=function(a){a&1&&Wf(0,null,0)},qPa=function(a){a&1&&M(0,"feedback-with-rewrite",1);a&2&&(a=P(),I("messageData",a.messageData()))},rPa=function(a){a&1&&Wf(0,null,0)},sPa=function(a){a&1&&M(0,"interactive-elements",1);a&2&&(a=P(),
I("interactiveElements",a.interactiveElements()))},tPa=function(a){if(a&1){var b=t();K(0,"div",2);Q(1," Your protected results are used in this response. This is visible only to you. You may opt-out of this feature in settings. ");K(2,"div",3)(3,"button",4);N("click",function(){u(b);var c=P();return v(c.openUserPrivacySettingsDialog())});Q(4,"Settings");L()()()}},uPa=function(a){a&1&&(K(0,"mat-icon",2),Q(1,"note"),L())},vPa=function(a){a&1&&M(0,"img",3);a&2&&(a=P().$implicit,I("src",Dg(a.getIconUrl()),
Pe))},wPa=function(a){a&1&&(K(0,"div",5)(1,"mat-icon",6),Q(2,"public"),L(),K(3,"span"),Q(4,"External"),L()())},xPa=function(a){a&1&&M(0,"private-citation-chip-tooltip")},zPa=function(a,b){if(a&1){var c=t();K(0,"div",1);F(1,uPa,2,0,"mat-icon",2)(2,vPa,1,2,"img",3);K(3,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v(yPa(e,d))});Q(4);L();F(5,wPa,5,0,"div",5);F(6,xPa,1,0,"private-citation-chip-tooltip");L()}a&2&&(a=b.$implicit,b=P(2),B(),G(Gi(a,6)?1:a.getIconUrl()?2:-1),B(2),I("href",
Dg(a.getUrl()),Pe)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",!0)("veImpression",!0),B(),S("",a.getTitle()||a.getUrl()," "),B(),G(Gi(a,6)?5:-1),B(),G(a.getIsPrivateDocument()?6:-1))},APa=function(a){a&1&&(K(0,"div",0),Q(1," Sources "),L(),Of(2,zPa,7,9,"div",1,Nf));a&2&&(a=P(),B(2),Pf(a.citedNonRecitationDocuments()))},CPa=function(a,b){if(a&1){var c=t();K(0,"li",8)(1,"div",9)(2,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v(yPa(e,d))});Q(3);L()()()}a&2&&(a=b.$implicit,b=
P(2),B(2),I("href",Dg(a.getUrl()),Pe)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",!0)("veImpression",!0),B(),S("",BPa(a)," "))},DPa=function(a){a&1&&(K(0,"div",0),Q(1," Licensed Sources "),L(),K(2,"ol",7),Of(3,CPa,4,6,"li",8,Nf),L());a&2&&(a=P(),B(3),Pf(a.recitationSources()))},EPa=function(a){a&1&&Wf(0,null,0)},FPa=function(a){a&1&&M(0,"message-citations",1);a&2&&(a=P(),I("messageData",a.messageData()))},GPa=function(a){a&1&&(M(0,"mat-progress-spinner",8),K(1,"span"),Q(2),T(3,"async"),L());
a&2&&(a=P(3),I("diameter",16),B(2),yg(U(3,2,a.duckieLoadingPhrase$)))},HPa=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),S("",a.isExpanded?"Hide":"Show"," thinking"))},IPa=function(a){a&1&&Wf(0)},KPa=function(a){if(a&1){var b=t();K(0,"div",2)(1,"p",3)(2,"button",4);N("click",function(){u(b);var e=P(),f=P(),g=e.id;e.isExpanded=!e.isExpanded;var k=f.messagePartsService,l=e.id;k.expansionStates.set(l,!k.isExpanded(l));e.isExpanded=f.messagePartsService.isExpanded(e.id);am(f.duckieEventTrackerService,
bm((new cm).setMessageId(f.messageId())),293476);var r;(r=f.messagePartsElement.querySelector("#part-"+g))==null||r.classList.toggle("hidden");e=f.messagePartsElement.querySelector("button.part-"+g);e==null||e.classList.toggle("is-expanded");e==null||e.setAttribute("aria-expanded",(e==null?0:e.classList.contains("is-expanded"))?"true":"false");return v()});F(3,GPa,4,4);T(4,"async");Lf(5,HPa,2,1,"span");K(6,"mat-icon",5);Q(7);L()()();K(8,"div",6);E(9,IPa,1,0,"ng-container",7);L()()}if(a&2){a=P();var c=
P(),d=qg(3);B(2);Kf("aria-expanded",a.isExpanded);B();G(c.experimentsService.duckieStreamingMvpEnabled&&U(4,10,c.isStreamingThoughts$)?3:5);B(4);yg(a.isExpanded?"expand_less":"expand_more");B();wg("hidden",!a.isExpanded)("padded-s",a.isExpanded);Kf("aria-hidden",!a.isExpanded);B();I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(12,JPa,a.hiddenMessageParts))}},LPa=function(a){a&1&&Wf(0)},MPa=function(a){a&1&&E(0,LPa,1,0,"ng-container",7);if(a&2){a=P();P();var b=qg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Ig(2,JPa,a.hiddenMessageParts))}},NPa=function(a,b){a&1&&F(0,KPa,10,14,"div",2)(1,MPa,1,4,"ng-container");a&2&&(a=P(),G(a.experimentsService.displayDuckieThoughtsEnabled?0:b.hasAnyThought?-1:1))},OPa=function(a){a&1&&Wf(0)},QPa=function(a){a&1&&E(0,OPa,1,0,"ng-container",7);if(a&2){a=P().$implicit;P(2);var b=qg(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,PPa,a))}},RPa=function(a,b){a&1&&(M(0,"span",9),F(1,QPa,1,4,"ng-container"));a&2&&(a=b.$implicit,I("innerHtml",a.html,Oe),B(),G(a.functionCalls.length>
0?1:-1))},SPa=function(a,b){a&1&&Of(0,RPa,2,2,null,null,Nf);a&2&&Pf(b.parts)},TPa=function(a,b){a&1&&(K(0,"div",15)(1,"span",16),Q(2),L(),K(3,"span",17),Q(4),L()());a&2&&(a=b.$implicit,B(2),S("",a[0],":"),B(2),yg(a[1]))},UPa=function(a,b){a&1&&(K(0,"div",11)(1,"p",12)(2,"span",13),Q(3),L(),Q(4," was called with:"),L(),K(5,"div",14),Of(6,TPa,5,2,"div",15,Nf),L()());a&2&&(a=b.$implicit,B(3),yg(a.name),B(3),Pf(a.args))},VPa=function(a,b){a&1&&(K(0,"div",10),Of(1,UPa,8,1,"div",11,Nf),L());a&2&&(a=b.part,
B(),Pf(a.functionCalls))},WPa=function(a){a&1&&Wf(0,null,0)},XPa=function(a){a&1&&M(0,"message-parts",1);a&2&&(a=P(),I("executionMetadata",a.executionMetadata())("messageId",a.messageId())("hasRedactions",a.hasRedactions())("shouldExpand",a.shouldExpand())("isStreamingThoughts",a.isStreamingThoughts()))},YPa=function(a){a&1&&M(0,"img",0);a&2&&(a=P(),I("src",a.avatarUrl,Pe))},ZPa=function(a){a&1&&M(0,"img",11);if(a&2){a=P();wg("custom-logo",!!a.agentIconUrl());var b;I("src",(b=a.agentIconUrl())!=null?
b:"https://www.gstatic.com/devnotify/duckie256.png",Pe)}},$Pa=function(a){a&1&&Q(0," You ")},aQa=function(a){a&1&&Q(0);if(a&2){a=P();var b;S(" ",(b=a.agentDisplayName())!=null?b:"Duckie"," ")}},bQa=function(a){a&1&&(K(0,"div",5)(1,"mat-icon",12),Q(2," warning "),L(),Q(3," Contains licensed content, use with caution "),K(4,"a",13)(5,"mat-icon",14),Q(6,"open_in_new"),L(),Q(7," View usage policy "),L()())},cQa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(2),I("interactiveElements",
a.messageData().interactiveElements))},dQa=function(a,b){a&1&&(M(0,"p",15),F(1,cQa,1,1,"interactive-elements-wrapper",8));a&2&&(a=P(),I("innerHtml",b,Oe),B(),G(a.messageData().interactiveElements&&a.messageData().interactiveElements.length>0?1:-1))},eQa=function(a){a&1&&(K(0,"p",6),Q(1," Responses were not retained because protected results were used in this thread. "),L())},fQa=function(a){a&1&&(K(0,"p",7),Q(1),L());a&2&&(a=P(),B(),S(" ",a.messageData().text," "))},gQa=function(a){a&1&&M(0,"interactive-elements-wrapper",
8);a&2&&(a=P(),I("interactiveElements",a.messageData().interactiveElements))},hQa=function(a){a&1&&M(0,"typing-dots");a&2&&(a=P(),wg("use-compact-view",a.useCompactView()))},iQa=function(a){a&1&&M(0,"message-citations-wrapper",16);a&2&&(a=P(2),I("messageData",a.messageData()))},jQa=function(a){a&1&&M(0,"message-metadata",16);a&2&&(a=P(2),I("messageData",a.messageData()))},kQa=function(a){a&1&&(F(0,iQa,1,1,"message-citations-wrapper",16),F(1,jQa,1,1,"message-metadata",16),T(2,"async"));a&2&&(a=P(),
G(a.messageData().isFallback?-1:0),B(),G(U(2,2,a.showResponseMetadata$)?1:-1))},lQa=function(a){a&1&&M(0,"feedback-with-rewrite-wrapper",16);a&2&&(a=P(2),I("messageData",a.messageData()))},nQa=function(a){if(a&1){var b=t();K(0,"div",10);F(1,lQa,1,1,"feedback-with-rewrite-wrapper",16);K(2,"button",17);N("click",function(){u(b);var c=P();return v(mQa(c))});K(3,"mat-icon");Q(4,"content_copy");L()()()}a&2&&(a=P(),B(),G(a.messageData().isUser?-1:1))},oQa=function(a){a&1&&Wf(0,null,0)},pQa=function(a){a&
1&&M(0,"message",1);a&2&&(a=P(),I("messageData",a.messageData())("useCompactView",a.useCompactView()))},qQa=function(a){a&1&&Wf(0,null,0)},rQa=function(a){if(a&1){var b=t();K(0,"session-helpful-button",2);N("closeButton",function(c){u(b);var d=P();return v(d.closeButton.emit(c))})("messageFeedbackUpdate",function(c){u(b);var d=P();return v(d.messageFeedbackUpdate.emit(c))});L()}a&2&&(a=P(),I("messageData",a.messageData()))},sQa=function(a){a&1&&(Rf(0,"div",0),Tf(1,"img",1),Q(2),Sf());a&2&&(a=P(),
B(),Qf("src",a.config.imgSrc,Pe)("alt",a.config.imgAlt),B(),S(" ",a.config.title," "))},tQa=function(a){a&1&&Wf(0,null,0)},uQa=function(a){a&1&&M(0,"thread-source-header",1);a&2&&(a=P(),I("thread",a.thread()))},vQa=function(a){a&1&&M(0,"mat-progress-spinner",1);a&2&&I("diameter",32)},wQa=function(a){a&1&&(K(0,"span",21)(1,"button",22)(2,"mat-icon",11),Q(3,"edit"),L()()(),M(4,"private-content-tooltip"));a&2&&(I("matTooltipDisabled",!1),Kf("tabIndex",0),B(),I("disabled",!0))},yQa=function(a){if(a&1){var b=
t();K(0,"button",23);N("click",function(){u(b);var c=P(4);return v(xQa(c))});K(1,"mat-icon",11);Q(2,"edit");L()()}},zQa=function(a){a&1&&(F(0,wQa,5,3),T(1,"async"),Lf(2,yQa,3,0,"button",20));if(a&2){var b;a=P(3);G((b=U(1,1,a.hasPrivateContent$))?0:2,b)}},AQa=function(a){a&1&&(K(0,"mat-chip-option",8),Q(1," Big Bird "),L())},BQa=function(a){a&1&&(K(0,"mat-chip-option",8),Q(1," Agentic Search "),L())},CQa=function(a){a&1&&(K(0,"div",13)(1,"mat-icon",24),Q(2," warning "),L(),Q(3," This thread used a deprecated model and cannot be continued. Please start a new thread to interact with Duckie. "),
L())},DQa=function(a,b){a&1&&M(0,"link-chip",26);a&2&&(a=b.$implicit,I("label",a.label)("iconUrl",a.imgSrc)("linkUrl",a.fullUrl)("matTooltip",a.fullUrl))},EQa=function(a){a&1&&(K(0,"div",27),Q(1),L());if(a&2){a=P(4);var b=bg(0);B();S("+",b.length-a.maxVisibleUserProvidedContextCount)}},FQa=function(a){if(a&1){var b=t();K(0,"div",14)(1,"p",25);Q(2);L();Of(3,DQa,1,4,"link-chip",26,Mf);F(5,EQa,2,1,"div",27);M(6,"div",28);K(7,"button",29);N("click",function(){u(b);var d=P(3);d.showExpandedContext=!d.showExpandedContext;
return v()});K(8,"mat-icon",11);Q(9);L()()()}if(a&2){a=P(3);var c=bg(0);B(2);S(" Context (",c.length,") ");B();Pf(c.slice(0,a.maxVisibleUserProvidedContextCount));B(2);G(c.length>a.maxVisibleUserProvidedContextCount?5:-1);B(2);Kf("aria-expanded",a.showExpandedContext);B(2);S(" ",a.showExpandedContext?"expand_less":"expand_more"," ")}},GQa=function(a){a&1&&(K(0,"div",15)(1,"mat-icon",30),Q(2," warning "),L(),Q(3," This thread is using an experimental Duckie agent. "),L());a&2&&(P(2),a=bg(0),B(),I("matTooltip",
Fg("",a.conversationAgentId,", ",a.conversationAgentModelId)))},HQa=function(a){a&1&&(K(0,"div",16)(1,"mat-icon",11),Q(2,"incognito"),L(),K(3,"span"),Q(4,"Incognito mode enabled. All threads will be deleted on closing this tab or window."),L(),M(5,"span",28),K(6,"a",31),Q(7," Learn more "),L()())},IQa=function(a,b){a&1&&(K(0,"div",32),M(1,"img",33),K(2,"a",34),Q(3),L()());a&2&&(a=b.$implicit,B(),I("src",Dg(a.imgSrc),Pe),B(),I("href",Dg(a.fullUrl),Pe),B(),yg(a.fullUrl))},JQa=function(a){a&1&&(K(0,
"div",17),Of(1,IQa,4,5,"div",32,Mf),L());a&2&&(P(3),a=bg(0),B(),Pf(a))},KQa=function(a){a&1&&(K(0,"div",18),M(1,"big-bird-outage-wrapper"),L())},LQa=function(a){a&1&&M(0,"private-content-divider-tooltip")},MQa=function(a,b){a&1&&(F(0,LQa,1,0,"private-content-divider-tooltip"),T(1,"async"));if(a&2){a=P().$index;var c=P(3);G(c.sessionDeletionEnabled||a!==b||U(1,1,c.isIncognitoMode$)?-1:0)}},NQa=function(a,b){a&1&&(F(0,MQa,2,3),T(1,"async"),M(2,"message-wrapper",35));if(a&2){var c;a=b.$implicit;b=P(3);
G((c=U(1,3,b.firstPrivateContentMessageIndex$))?0:-1,c);B(2);I("messageData",a)("useCompactView",b.useCompactView())}},QQa=function(a){if(a&1){var b=t();K(0,"div",4);M(1,"thread-source-header-wrapper",5);K(2,"div",6)(3,"div",7)(4,"span");Q(5);L();F(6,zQa,3,3);T(7,"async");K(8,"mat-chip-listbox");F(9,AQa,2,0,"mat-chip-option",8);F(10,BQa,2,0,"mat-chip-option",8);L();K(11,"div",9)(12,"button",10)(13,"mat-icon",11);Q(14,"share");L()();K(15,"mat-menu",null,0)(17,"button",12);N("click",function(){u(b);
var f=P(2);return v(OQa(f))});Q(18,"Copy conversation as markdown");L()()()()();F(19,CQa,4,0,"div",13);F(20,FQa,10,4,"div",14);F(21,GQa,4,3,"div",15);F(22,HQa,8,0,"div",16);T(23,"async");F(24,JQa,3,0,"div",17);L();F(25,KQa,2,0,"div",18);K(26,"div",19);Of(27,NQa,3,5,null,null,PQa);L()}if(a&2){a=qg(16);P();var c=bg(0),d=P(),e=bg(0);B();I("thread",c);B(4);S(" ",c.title," ");B();G(U(7,12,d.isIncognitoMode$)?-1:6);B(3);G(c.conversationAgentModelId===d.M_DUCKIE_AGENT_INFO.modelId||c.conversationAgentModelId===
d.DYNAMIC_DUCKIE_M_AGENT_INFO.modelId?9:-1);B();G(c.conversationAgentModelId===d.DYNAMIC_DUCKIE_AGENT_INFO.modelId||c.conversationAgentModelId===d.DYNAMIC_DUCKIE_M_AGENT_INFO.modelId?10:-1);B(2);I("matMenuTriggerFor",a);B(7);G(c.sessionState===d.SESSION_STATE_DEPRECATED?19:-1);B();G(e&&e.length>0?20:-1);B();G(c.conversationAgentId&&d.showExperimentalAgentBanner?21:-1);B();G(U(23,14,d.isIncognitoMode$)?22:-1);B(2);G(d.showExpandedContext?24:-1);B();G(d.duckieBigBirdOutageEnabled&&d.showBigBirdOutageBanner?
25:-1);B(2);Pf(c==null?null:c.messages)}},RQa=function(a){a&1&&($f(0),T(1,"async"),F(2,QQa,29,16));a&2&&(a=ag(U(1,1,P().thread$)),B(2),G(a?2:-1))},TQa=function(a){if(a&1){var b=t();K(0,"session-helpful-button-wrapper",36);T(1,"async");N("closeButton",function(){u(b);P().shouldShowSessionHelpfulButton=!1;return v()})("messageFeedbackUpdate",function(c){u(b);var d=P();return v(SQa(d,c))});L()}a&2&&(a=P(),I("messageData",U(1,1,a.lastDuckieMessage$)))},UQa=function(a){a&1&&Wf(0,null,0)},VQa=function(a){a&
1&&M(0,"thread",3);a&2&&(a=P(),I("useCompactView",a.useCompactView()))},WQa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});L()}a&2&&(a=P(),wg("mat-drawer-shown",a._isShowingBackdrop()))},XQa=function(a){a&1&&(K(0,"mat-drawer-content"),dg(1,2),L())},YQa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});L()}a&2&&(a=P(),wg("mat-drawer-shown",a._isShowingBackdrop()))},ZQa=
function(a){a&1&&(K(0,"mat-sidenav-content"),dg(1,2),L())},$Qa=function(a){a&1&&M(0,"onboarding-wrapper",1);a&2&&(a=P(),I("configurationKey",a.configurationKey))},aRa=function(a){a&1&&M(0,"thread-wrapper",2);a&2&&I("useCompactView",!0)},bRa=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}},cRa=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},dRa=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}},eRa=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},fRa=function(a,b){return a.size!==b.size?!1:[].concat(q(a)).every(function(c){return b.has(c)})},gRa=function(a){var b=new Set;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=m(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},hRa=function(a,b){if(!fRa(a,b)){var c=[].concat(q(b)).filter(function(e){return!a.has(e)}),d=[].concat(q(a)).filter(function(e){return!b.has(e)});
return{added:c,removed:d}}},iRa=function(a,b){var c=a.size>b.size?a:b;return new Set([].concat(q(a===c?b:a)).filter(function(d){return c.has(d)}))},jRa=function(a,b){return a.size>=b.size&&[].concat(q(b)).every(function(c){return a.has(c)})},mm=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(!mm(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?fRa(a,b):!1;if(qh(a)||qh(b))return qh(a)&&qh(b)?a===b||a.toString()===b.toString():!1;if(a instanceof W||b instanceof W)return a instanceof W&&b instanceof W?kRa(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(!lRa.call(b,f)||!mm(a[f],b[f]))return!1}return!0}return!1},mRa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=m(b),f=e.next();!f.done;f=e.next())if(mm(c,f.value)){d=!0;break}d||b.push(c)}return b},nRa=function(a,b){for(var c=a.length-1;c>=0;c--)mm(a[c],b)&&a.splice(c,1)},oRa=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},qRa=function(a){return Object.assign.apply(Object,[{}].concat(q(pRa.map(function(b){var c={};return c[b]=a[b],c}))))},pm=function(a){if(a!==null&&a!==void 0&&!["boolean","function","number","string"].includes(typeof a))if(Array.isArray(a)){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())b.push(pm(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof
Map){b=new Map;a=m(a);for(c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b.set(pm(c),pm(d))}a=b}else if(a instanceof Set){b=new Set;a=m(a);for(c=a.next();!c.done;c=a.next())b.add(pm(c.value));a=b}else if(!qh(a))if(a instanceof W)a=a.clone();else{b={};c=m(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;b[d]=pm(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},rRa=function(a){return typeof a===
"number"},sRa=function(a){return typeof a==="string"},qm=function(a){return Array.isArray(a)&&a.every(sRa)},tRa=function(a){return Array.isArray(a)&&a.every(rRa)},uRa=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},vRa=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},wRa=function(a){if(a){if(rRa(a)){var b=new Date(a);b.getFullYear()>47E3&&(b=new Date(a/1E3));return new rm(b)}b=
a.split("/");if(b.length===3)return a=sm(b[2]),a<50?a+=2E3:a<100&&(a+=1900),new rm(a,sm(b[0])-1,sm(b[1]));if(b.length===1)return wRa(Number(a))}return new rm},xRa=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},yRa=function(a){return!(!a||!a.startsWith("text/")&&!a.startsWith("image/")&&a!=="application/pdf")},zRa=function(a,b){return a.map(function(c){return c[b]})},ARa=function(a,b){return a.filter(function(c){return!b.has(c)})},BRa=function(a,b){for(var c=m(a),d=c.next();!d.done;d=
c.next())if(!b.has(d.value))return!1;b=m(b);for(c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0},tm=function(a,b){return ARa(a,new Set(b))},CRa=function(a,b){var c=/[,;]/;(b===void 0||b)&&(c=/[\s,;]/);return a.split(c).map(Aa).filter(function(d){return!!d})},DRa=function(a,b){a=new URL(a);return a.host+a.pathname+b},ERa=function(a){return a.user!==void 0},FRa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";
default:return hj(a.replace(/_/g," ").toLowerCase())}},GRa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||a==="ACTIVE"||a==="UNSPECIFIED"},vm=function(a){return a?a.map(um):[]},wm=function(a){a=(a!=null?a:[]).map(function(b){return{sortKey:um(b),user:b}});a.sort(function(b,c){return b.sortKey.localeCompare(c.sortKey)});return a.map(function(b){return b.user})},um=function(a){return a?a.userGaiaStatus==="DELETED"?"[Deleted User]":a.userGaiaStatus==="UNAVAILABLE"?"[Unavailable User]":GRa(a)?
xm(a)||"[No Data]":"[No Data]":""},xm=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},ym=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},HRa=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())b.push(ym(c.value));return b},zm=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""}},Bm=function(a,b,c,d){var e;return{status:a,displayValue:(e=Am.get(a))!=null?e:"",open:b,assigneeRequirement:c,sortOrder:d}},TRa=function(){return[IRa,JRa,KRa,
LRa,MRa,NRa,ORa,PRa,QRa,RRa,SRa]},URa=function(a){var b=a.getId(),c=Cm(a,3,void 0,jb);var d=Dm(a,2,Di(),jb);a=Em(a,4,Di(),jb);return Fk({id:b,std_offset:c,names:d,transitions:a||[]})},Jm=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Fm;b&&Gm(e,1,b);c&&Gm(e,2,c);(d==null?0:d.length)&&Hm(e,4,d);if(a)switch(a){case "UNSPECIFIED":Im(e,3,0);break;case "ACTIVE":Im(e,3,1);break;case "DELETED":Im(e,3,2);break;case "UNAVAILABLE":Im(e,3,3);break;default:wb(a)}return e},
Lm=function(a){var b={},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=vi(a,2))b.obfuscatedEmailAddress=c;c=xi(a,3);switch(c){case 0:break;case 1:b.userGaiaStatus="ACTIVE";break;case 2:b.userGaiaStatus="DELETED";break;case 3:b.userGaiaStatus="UNAVAILABLE";break;default:throw Error("$c`"+c);}a=Dm(a,4,Di(Km));if(a==null?0:a.length)b.aliases=a;return b},Mm=function(a){if(a!=null&&(a=String(a),a.trim()!==""))return a=Number(a),isNaN(a)?void 0:a},Nm=function(a){if(a!=null)return String(a)},Om=function(a){if(a!=
null&&a!=="0"&&(typeof a!=="number"||Number.isInteger(a)&&!(a<=0)))return String(a)},Pm=function(a){return a==null?void 0:a},VRa=function(){return function(a){return a==null?"<none>":a}},Qm=function(a){return a!=null},WRa=function(a){if(a!=null)return a/1E3},ZRa=function(a){var b=a.getTrackerId_asString(),c=a.getName(),d=a.getComponentId_asString(),e=Sm(a,4);var f=X(a,XRa,6);f=f!=null?{logoUrl:f.getLogoUrl(),cocUrl:vi(f,3),theme:YRa[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:Ci(a,Fm,10,Di()).length>0?Ci(a,Fm,10,Di()).map(Lm):void 0}},$Ra=function(a){return ZRa(a.getIt())},aSa=function(a){return a.getIt().getTrackersList().map(ZRa)},bSa=function(a){return{trackers:a.getIt().getTrackersList().map(ZRa),nextPageToken:a.getIt().getNextPageToken(),totalSize:a.getIt().getTotalSize()}},Tm=function(a){if(a==null)return"UNSPECIFIED_FORMATTING_MODE";
switch(cSa[a]){case "MARKDOWN_FORMATTING_MODE":return"MARKDOWN";case "PLAIN_FORMATTING_MODE":return"PLAIN";case "LITERAL_FORMATTING_MODE":return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},dSa=function(a){if(a==null)return"COMMENT_FORMATTING_MODE_UNSPECIFIED";switch(Um[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"}},eSa=function(a){return console==
null?!1:typeof console[a]==="function"},Vm=function(){eSa("debug")&&console.debug.apply(console,bd.apply(0,arguments))},Wm=function(){eSa("info")&&console.info.apply(console,bd.apply(0,arguments))},fSa=function(){eSa("log")&&console.log.apply(console,bd.apply(0,arguments))},Xm=function(){eSa("warn")&&console.warn.apply(console,bd.apply(0,arguments))},gSa=function(){eSa("error")&&console.error.apply(console,bd.apply(0,arguments))},Zm=function(a){if(a!=null)return Ym(a)},Ym=function(a){return Mb(a)?
Number(a):String(a)},hSa=function(a){if(a!=null){var b=a.getYear();if(b==null)Xm("No year. dateToJs");else{var c=a.getDay();if(c==null)Xm("No day. dateToJs");else if(a=a.getMonth(),a==null)Xm("No month. dateToJs");else return{year:b,day:c,month:a}}}},iSa=function(a){var b=new $m;an(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},bn=function(a){if(a!=null){var b=Ym(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},cn=function(a){var b=new Ti;b.setSeconds(a.seconds);b.setNanos(a.nanos);
return b},jSa=function(a){var b=new dn;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},kSa=function(a){if(a!=null){var b=Ym(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},lSa=function(a){if(a!=null)return Number(a.toDate())},en=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 cn({seconds:a,nanos:b})},mSa=function(a){return bn(en(a*1E3))},fn=function(a){if(!a)return 0;a=Ym(a.getSeconds())*1E9+a.getNanos();return Math.round(a/
1E3)},nSa=function(a){return a?a==="ASCENDING"?"asc":"desc":""},gn=function(a,b,c){return function(d,e){e=e===void 0?c:e;return oSa(d,a,b,e)}},oSa=function(a,b,c,d){return d?[].concat(q(a)).sort(function(e,f){var g=d==="ASCENDING"?1:-1;return c(b(e),b(f))*g}):[].concat(q(a))},hn=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},jn=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:
0:a.localeCompare(b)},KSa=function(a){var b={};Fi(a,1)&&(b.showFullHistory=Gi(a,1));Fi(a,2)&&(b.useCodefont=Gi(a,2));kn(a,5)&&(b.resultsPerPage=Cm(a,5));Fi(a,26)&&(b.showRecentEventsFirst=Gi(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(pSa).filter(Qm)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(qSa).filter(Qm)};im(a,7)&&(b.bannerMessageId=vi(a,7));if(c=X(a,rSa,3)){var d={};jm(c,1)&&(d.reportedPriority=ln(xi(c,1)));jm(c,2)&&(d.assignedPriority=
ln(xi(c,2)));jm(c,3)&&(d.verifiedPriority=ln(xi(c,3)));jm(c,4)&&(d.ccdPriority=ln(xi(c,4)));jm(c,9)&&(d.collaboratorPriority=ln(xi(c,9)));jm(c,5)&&(d.starredPriority=ln(xi(c,5)));Fi(c,6)&&(d.excludeChangesByMe=Gi(c,6));Fi(c,7)&&(d.unsubscribeFromAll=Gi(c,7));Fi(c,8)&&(d.enableV2Prefs=Gi(c,8));b.notificationPreferences=d}if(d=X(a,sSa,9)){c={showHotlists:Gi(d,1),showStatusIcons:Gi(d,4),wrapComponents:Gi(d,3),wrapTitles:Gi(d,2),rtlComponentPath:Gi(d,5)};var e=vc(d,6,Vb);c.fieldStatus=Object.fromEntries(e.entries());
d=vc(d,7,Vb);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d={},kn(c,1)&&(d.leftSidebarWidth=Cm(c,1)),Fi(c,2)&&(d.expandIssueSlo=Gi(c,2)),kn(c,3)&&(d.rightSidebarWidth=Cm(c,3)),b.layoutPreferences=d;if(d=a.getDateTimePreferences())c={},im(d,1)&&(c.calendarFormat=vi(d,1)),im(d,2)&&(c.timeFormat=vi(d,2)),d.hasTimeZone()&&(c.timeZone=d.getTimeZone()),jm(d,7)&&(d=xi(d,7),c.sloEtaViewAs=tSa[d]),b.dateTimePreferences=c;if(d=X(a,mn,8))c={},jm(d,1)&&
(d=d.getDensity(),c.density=uSa[d]),b.themePreferences=c;if(c=a.getHomepagePreferences())d={},jm(c,1)&&(d.resourceType=vSa(xi(c,1,1))),Pb(fm(c,2))!=null&&(d.resourceId=nn(c,2)),b.homepagePreferences=d;if(c=X(a,wSa,17))d={},Fi(c,1)&&(d.enableAllHotkeys=Gi(c,1,!0)),b.keyboardPreferences=d;Pb(fm(a,16))!=null&&(b.newFeaturesAcknowledgedMillis=nn(a,16));Fi(a,18)&&(b.autoCcOnComment=Gi(a,18));yi(a,xSa,33)&&(e=X(a,xSa,33),c=xi(e,3),d=xi(e,2),e=xi(e,1),b.commentFormattingPreferences={commentCreateOverride:ySa(c),
commentDisplayOverride:ySa(d),lastPublishMode:ySa(e)});yi(a,zSa,21)&&(c=X(a,zSa,21),d={},Fi(c,2)&&(d.announcementDismissed=Gi(c,2)),Fi(c,1)&&(d.enableBugScreensaver=Gi(c,1)),b.bugScreensaverPreferences=d);yi(a,ASa,24)&&(c=X(a,ASa,24),d={},on(c,1)&&(d.announcementDismissedMillis=Ym(pn(c,1))),b.g3nPreferences=d);if(c=X(a,BSa,23))c=Ci(c,qn,1,Di()),b.teamWarningPreferences={componentTeamWarnings:c.map(CSa)};c=wc(a,25,Ti,Vb);c.size&&(b.dismissalTimestamps=DSa(c));c=a.getCollapsedMap();c.size&&(b.collapsed=
Object.fromEntries(c.entries()));Fi(a,29)&&(b.showInlineImages=a.getShowInlineImages());yi(a,ESa,28)&&(c=X(a,ESa,28),d={},jm(c,1)&&(d.commentFilter=FSa(xi(c,1))),b.commentFilterPreferences=d);if(c=X(a,rn,31))b.missionControlPreferences=GSa(c);yi(a,HSa,32)&&(b.scopePreferences=ISa(X(a,HSa,32)));c=wc(a,34,tn,Ub);if(c.size){a=new Map;c=m(c.entries());for(d=c.next();!d.done;d=c.next())e=m(d.value),d=e.next().value,e=e.next().value,a.set(String(d),{open:e.getOpen(),searchScope:JSa[xi(e,2,1)],componentScope:un(e,
3),includeDescendants:Gi(e,4)});b.assistiveIssuePickerPreferences=a}return b},pSa=function(a){if(a.hasType()){var b=a.getType();b={type:LSa[b]};a.hasCustomFieldId()&&(b.customFieldId=Ym(a.getCustomFieldId()));return b}},qSa=function(a){var b=a.getColumn();if(b=b&&pSa(b)){if(jm(a,2))a:switch(a=xi(a,2,1),a){case 1:a="ASCENDING";break a;case 2:a="DESCENDING";break a;default:a=wb(a,"Unknown sortOrder: "+a)}else a=void 0;if(a)return{column:b,order:a}}},ln=function(a){return MSa[a]},ySa=function(a){if(a!==
0)return NSa[a]},vSa=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 wb(a,"Unknown resourceType: "+a)}},CSa=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId_asString());on(a,2)&&(b.dismissMillis=Ym(pn(a,2)));return b},DSa=function(a){a=Array.from(a.entries(),function(b){var c=m(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},
FSa=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 wb(a,"Unknown resourceType: "+a)}},ISa=function(a){var b=Sm(a,1),c=bn(X(a,Ti,2));a=Ci(a,vn,3,Di()).map(function(d){return{teamId:d.getTeamId_asString(),triageId:un(d,2)}});return{starredTeams:b,lastAutomaticStarsUpdate:c,starredTriageViews:a}},RSa=function(a){var b=OSa(PSa(new HSa,a.starredTeams),a.starredTriageViews.map(function(c){var d=(new vn).setTeamId(c.teamId);
return wn(d,2,c.triageId)}));a.lastAutomaticStarsUpdate&&QSa(b,cn(a.lastAutomaticStarsUpdate));return b},GSa=function(a){var b=kn(a,3)?Cm(a,3):void 0,c=kn(a,6)?Cm(a,6):void 0,d=kn(a,5)?Cm(a,5):void 0,e=kn(a,4)?Cm(a,4):void 0,f=Fi(a,10)?Gi(a,10):void 0,g=Fi(a,11)?Gi(a,11):void 0,k=Fi(a,12)?Gi(a,12):void 0,l=xn(a,7,Di()).map(function(R){return SSa[R]}),r=xn(a,8,Di()).map(function(R){return SSa[R]}),w=TSa(Ci(a,yn,18,Di())),x=USa(Ci(a,zn,19,Di())),C=VSa(Ci(a,An,20,Di())),H=WSa(Ci(a,Bn,21,Di())),J=XSa(Ci(a,
Cn,22,Di())),O=YSa(Ci(a,Dn,24,Di()));b={workAreaUrls:Dm(a,1,Di(Km)),myTasksTab:b,myTasksDaysOld:c,needsAttentionDaysOld:d,workAreaTab:e,needsAttentionSources:l,needsAttentionBuganizerFilteredSignals:w,needsAttentionDriveFilteredSignals:x,needsAttentionGerritFilteredSignals:C,needsAttentionChangelistFilteredSignals:H,needsAttentionGoogleTasksFilteredSignals:J,needsAttentionIrmFilteredSignals:O,myTasksSources:r,hideBadgeInNav:f,isNeedsAttentionSourcesConfigured:g,isMyTasksSourcesConfigured:k};c=vc(a,
9,Xca);c.size&&(b.workAreaQuickFilters=ZSa(c));a=a.getCollapsedMap();a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},ZSa=function(a){var b={};a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;(d=$Sa(d))&&(b[c]=d)}return b},aTa=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}},$Sa=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"}},pTa=function(a){var b=new En;a.showFullHistory!=null&&Pi(b,1,a.showFullHistory);a.useCodefont!=null&&Pi(b,2,a.useCodefont);a.resultsPerPage!=
null&&Fn(b,5,a.resultsPerPage);a.displayColumns!=null&&b.setDisplayColumns(bTa(a.displayColumns));if(a.sortColumns!=null){var c=cTa(a.sortColumns);Ni(b,Gn,6,c)}a.bannerMessageId!=null&&pj(b,7,a.bannerMessageId);if(a.notificationPreferences!=null){c=a.notificationPreferences;var d=new rSa;d=Hn(d,1,In[c.reportedPriority]);d=Hn(d,2,In[c.assignedPriority]);d=Hn(d,3,In[c.verifiedPriority]);d=Hn(d,4,In[c.ccdPriority]);d=Hn(d,9,In[c.collaboratorPriority]);d=Hn(d,5,In[c.starredPriority]);d=Pi(d,6,c.excludeChangesByMe);
d=Pi(d,7,c.unsubscribeFromAll);c=Pi(d,8,c.unsubscribeFromAll);Ni(b,rSa,3,c)}a.listViewPreferences!=null&&(c=a.listViewPreferences,d=new sSa,d=Pi(d,1,c.showHotlists),d=Pi(d,2,c.wrapTitles),d=Pi(d,3,c.wrapComponents),d=Pi(d,4,c.showStatusIcons),d=Pi(d,5,c.rtlComponentPath),c.fieldStatus!=null&&dTa(c.fieldStatus,vc(d,6,Vb)),c.modeForField!=null&&dTa(c.modeForField,vc(d,7,Vb)),Ni(b,sSa,9,d));a.layoutPreferences!=null&&(c=a.layoutPreferences,d=new eTa,c.leftSidebarWidth!=null&&Fn(d,1,c.leftSidebarWidth),
c.expandIssueSlo!=null&&Pi(d,2,c.expandIssueSlo),c.rightSidebarWidth!=null&&Fn(d,3,c.rightSidebarWidth),Ni(b,eTa,10,d));a.dateTimePreferences!=null&&(c=a.dateTimePreferences,d=new Jn,d=pj(d,1,c.calendarFormat),d=pj(d,2,c.timeFormat).setTimeZone(c.timeZone),c=Hn(d,7,fTa[c.sloEtaViewAs]),Ni(b,Jn,11,c));a.themePreferences!=null&&(c=a.themePreferences,c=(new mn).setDensity(gTa[c.density]),Ni(b,mn,8,c));if(a.homepagePreferences!=null){c=a.homepagePreferences;d=new hTa;if(c.resourceType!=null){var e=iTa(c.resourceType);
Hn(d,1,e)}c.resourceId!=null&&d.setResourceId(c.resourceId);Ni(b,hTa,13,d)}a.keyboardPreferences!=null&&(c=a.keyboardPreferences,d=new wSa,c=Pi(d,1,c.enableAllHotkeys),Ni(b,wSa,17,c));a.newFeaturesAcknowledgedMillis!=null&&Kn(b,16,a.newFeaturesAcknowledgedMillis);a.autoCcOnComment!=null&&Pi(b,18,a.autoCcOnComment);a.commentFormattingPreferences!=null&&(c=a.commentFormattingPreferences,d=new xSa,c.commentCreateOverride&&Hn(d,3,jTa[c.commentCreateOverride]),c.commentDisplayOverride&&Hn(d,2,jTa[c.commentDisplayOverride]),
c.lastPublishMode&&Hn(d,1,jTa[c.lastPublishMode]),Ni(b,xSa,33,d));a.bugScreensaverPreferences!=null&&(c=a.bugScreensaverPreferences,d=new zSa,c.enableBugScreensaver!=null&&Pi(d,1,c.enableBugScreensaver),c.announcementDismissed!=null&&Pi(d,2,c.announcementDismissed),Ni(b,zSa,21,d));a.g3nPreferences!=null&&(c=a.g3nPreferences,d=new ASa,c.announcementDismissedMillis!=null&&wn(d,1,c.announcementDismissedMillis),Ni(b,ASa,24,d));a.teamWarningPreferences!=null&&(c=kTa(a.teamWarningPreferences),Ni(b,BSa,
23,c));if(a.dismissalTimestamps!=null)for(d=a.dismissalTimestamps,c=wc(b,25,Ti,Vb),d=m(Object.entries(d)),e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;c.set(e,lTa(f))}a.collapsed!=null&&dTa(a.collapsed,b.getCollapsedMap());a.showRecentEventsFirst!=null&&Pi(b,26,a.showRecentEventsFirst);a.showInlineImages!=null&&Pi(b,29,a.showInlineImages);a.commentFilterPreferences!=null&&(d=a.commentFilterPreferences,c=new ESa,d.commentFilter!=null&&(d=mTa(d.commentFilter),Hn(c,
1,d)),Ni(b,ESa,28,c));a.missionControlPreferences!=null&&(c=nTa(a.missionControlPreferences),Ni(b,rn,31,c));a.scopePreferences!=null&&(c=RSa(a.scopePreferences),Ni(b,HSa,32,c));if(a.assistiveIssuePickerPreferences!=null)for(c=a.assistiveIssuePickerPreferences,a=wc(b,34,tn,Ub),c=m(c.entries()),d=c.next();!d.done;d=c.next()){d=m(d.value);var g=d.next().value;f=d.next().value;d=a;e=d.set;g=mb(g);var k=(new tn).setOpen(f.open);k=Hn(k,2,oTa[f.searchScope]);k=wn(k,3,f.componentScope);f=Pi(k,4,f.includeDescendants);
e.call(d,g,f)}return b},bTa=function(a){return(new Ln).setColumnList(a.column.map(function(b){return qTa(b)}))},qTa=function(a){var b=(new Mn).setType(rTa[a.type]);a.customFieldId!=null&&b.setCustomFieldId(a.customFieldId);return b},cTa=function(a){return(new Gn).setColumnList(a.column.map(function(b){var c=(new Nn).setColumn(qTa(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=wb(b,"Unknown sortOrder: "+b)}return Hn(c,2,b)}))},iTa=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 wb(a,"Unknown resourceType: "+a)}},kTa=function(a){var b=new BSa;a.componentTeamWarnings!=null&&sTa(b,a.componentTeamWarnings.map(function(c){var d=new qn;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&wn(d,2,c.dismissMillis);return d}));return b},mTa=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 wb(a,"Unknown commentFilterType: "+a)}},nTa=function(a){var b=new rn;a.workAreaUrls&&Hm(b,1,a.workAreaUrls);a.collapsed&&dTa(a.collapsed,b.getCollapsedMap());if(a.workAreaQuickFilters){for(var c=a.workAreaQuickFilters,d={},e=m(Object.keys(c)),f=e.next();!f.done;f=e.next())f=f.value,d[f]=aTa(c[f]);dTa(d,vc(b,9,Xca))}a.myTasksTab!=null&&Fn(b,3,a.myTasksTab);a.workAreaTab!=null&&Fn(b,4,a.workAreaTab);a.myTasksDaysOld!=null&&Fn(b,6,a.myTasksDaysOld);a.needsAttentionDaysOld!=
null&&Fn(b,5,a.needsAttentionDaysOld);a.needsAttentionSources&&tTa(b,a.needsAttentionSources.map(uTa));a.myTasksSources&&vTa(b,a.myTasksSources.map(uTa));a.hideBadgeInNav!=null&&Pi(b,10,!!a.hideBadgeInNav);a.isNeedsAttentionSourcesConfigured!=null&&Pi(b,11,!!a.isNeedsAttentionSourcesConfigured);a.isMyTasksSourcesConfigured!=null&&Pi(b,12,!!a.isMyTasksSourcesConfigured);a.needsAttentionBuganizerFilteredSignals&&wTa(b,On(a.needsAttentionBuganizerFilteredSignals,function(g,k){return(new yn).setSignal(xTa[g]).setChecked(k)}));
a.needsAttentionDriveFilteredSignals&&yTa(b,On(a.needsAttentionDriveFilteredSignals,function(g,k){return(new zn).setSignal(zTa[g]).setChecked(k)}));a.needsAttentionGerritFilteredSignals&&ATa(b,On(a.needsAttentionGerritFilteredSignals,function(g,k){return(new An).setSignal(BTa[g]).setChecked(k)}));a.needsAttentionChangelistFilteredSignals&&CTa(b,On(a.needsAttentionChangelistFilteredSignals,function(g,k){return(new Bn).setSignal(DTa[g]).setChecked(k)}));a.needsAttentionGoogleTasksFilteredSignals&&ETa(b,
On(a.needsAttentionGoogleTasksFilteredSignals,function(g,k){return(new Cn).setSignal(FTa[g]).setChecked(k)}));a.needsAttentionIrmFilteredSignals&&GTa(b,On(a.needsAttentionIrmFilteredSignals,function(g,k){return(new Dn).setSignal(HTa[g]).setChecked(k)}));return b},uTa=function(a){return ITa[a]},TSa=function(a){return a.reduce(function(b,c){return b.set(JTa[c.getSignal()],c.getChecked())},new Map)},USa=function(a){return a.reduce(function(b,c){return b.set(KTa[c.getSignal()],c.getChecked())},new Map)},
VSa=function(a){return a.reduce(function(b,c){return b.set(LTa[c.getSignal()],c.getChecked())},new Map)},WSa=function(a){return a.reduce(function(b,c){return b.set(MTa[c.getSignal()],c.getChecked())},new Map)},XSa=function(a){return a.reduce(function(b,c){return b.set(NTa[c.getSignal()],c.getChecked())},new Map)},YSa=function(a){return a.reduce(function(b,c){return b.set(OTa[c.getSignal()],c.getChecked())},new Map)},dTa=function(a,b){a=m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=
m(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}},On=function(a,b){var c=[];a.forEach(function(d,e){c.push(b(e,d))});return c},Xn=function(){if(PTa==null){Pn==null&&(Pn=new QTa(RTa.buganizerSessionJspb));yi(Pn,Qn,2)||Pn.setConfig(new Qn);if(!yi(Pn,Rn,9)){var a=Pn;var b=new Rn;Ni(a,Rn,9,b)}Pn.hasUser()||Pn.setUser(new Sn);yi(Pn,En,7)||(a=Pn,b=new En,Ni(a,En,7,b));a=Pn;b=a.hasUser()?a.getUser():new Sn;b=Gi(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,
email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};var c=yi(a,Qn,2)?a.getConfig():new Qn;for(var d=new Map,e=m(vc(c,4,Vca).entries()),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;d.set(f,g)}e=new STa(Tn(c,29));c={appName:c.getAppName(),documentationBaseUrl:c.getDocumentationBaseUrl(),enabledFlags:d,environmentType:c.getEnvironmentType(),onePickUrl:c.getOnePickUrl(),onePickSecretToken:c.getOnePickSecretToken(),commentNumberLimit:c.getCommentNumberLimit(),
createComponentRedirectDelay:c.getCreateComponentRedirectDelay(),createRestrictedSubresourcesComponentIds:Sm(c,13).map(Om).filter(Qm),indefiniteRetentionComponentsAllowlist:Sm(c,20).map(Om).filter(Qm),trustedEmailDomainsAllowlist:Dm(c,22,Di(Km)),helpMeFixSidebarComponentAllowlist:Sm(c,23).map(Om).filter(Qm),batchDedupeComponentAllowlist:Sm(c,28).map(Om).filter(Qm),gppLlmChatComponentAllowlist:Sm(c,30).map(Om).filter(Qm),internalBaseUrl:c.getInternalBaseUrl(),externalBaseUrl:c.getExternalBaseUrl(),
experimentState:e};d=KSa(yi(a,En,7)?a.getUserPreferences():new En);f=yi(a,Rn,9)?X(a,Rn,9):new Rn;e=Ci(f,Un,1,Di()).map(URa);yi(f,Vn,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:f.getMessageId(),dismissible:Gi(f,3,void 0,jb),tags:f.getTagsList(Km)}):f=null;e={timezones:e,announcement:f};f=a.getXsrfToken();g=a.getCspNonce();var k=a.getFrontendAccessMode(),l=a.getMustAcknowledgeTerms(),r=a.getShowNewFeaturesDialog(),w=a.getAppBaseHref(),x=yi(a,Wn,11)?$Ra(a.getTracker()):null,C;yi(a,
TTa,12)?(C=a.getPassiveLoginIframeUrl())?(C=Dl(C,4),C=C===null||C===void 0?null:uh(C)):C=null:C=null;PTa={user:b,config:c,xsrfToken:f,cspNonce:g,frontendAccessMode:k,mustAcknowledgeTerms:l,showNewFeaturesDialog:r,userPreferences:d,preload:e,appBaseHref:w,tracker:x,passiveLoginIframeUrl:C,userRequiresCaptcha:Gi(a,13)}}return PTa},UTa=function(a){return a.frontendAccessMode||"INTERNAL"},VTa=function(){return UTa(Xn())==="INTERNAL"},Yn=function(a,b){if(b)esa(a,b);else for(;a.lastChild;)a.lastChild.remove()},
WTa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},Zn=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},XTa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},YTa=function(a){if(a.plainFormat)return a.plainFormat.plainSection.map(function(c){var d=document.createElement("div");Yn(d,c.content);return d.innerText}).join("\n");if(a.markdownFormat){var b=document.createElement("div");Yn(b,a.markdownFormat.content);
return b.innerText}return a.literalFormat?(b=document.createElement("div"),Yn(b,a.literalFormat.content),b.innerText):""},$n=function(a){return!!a&&ZTa.test(a)&&!$Ta.test(a)},cUa=function(a){a=a===void 0?"":a;return!aUa(a)||a.endsWith("-robots@google.com")||bUa(a)},bUa=function(a){return dUa.some(function(b){return a.endsWith(b)})},aUa=function(a){return!a.endsWith("@prod.google.com")&&!a.endsWith("@appspot.gserviceaccount.com")},ao=function(a){return a?a.seconds*1E3+a.nanos/1E6:0},eUa=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":""))+")"},fUa=function(a){if(a){var b=new bo;b.setTime(a.getTime());return b}},co=function(a){if(a!=null)return new Date(a.year,a.month-1,a.day)},gUa=function(a){if(a)return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},hUa=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)}},iUa=function(a){if(a==
null)return"";var b=a.toLocaleDateString(void 0,{dateStyle:"medium"});return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:b},jUa=function(a){return a==null?!1:Date.now()>ao(a)},eo=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},kUa=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},fo=function(a,b){var c;return new Map((c=a==null?void 0:a.map(function(d){return[b(d),d]}))!=null?c:[])},lUa=function(a,b){var c=new Map;a=m(a);
for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b(d),f=void 0,g=(f=c.get(e))!=null?f:[];g.push(d);c.set(e,g)}return c},mUa=function(a,b){return kUa([].concat(q(a.keys())),function(c){return b(a.get(c),c)})},nUa=function(a){var b=new Map;a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b.set(d,c)}return b},oUa=function(a){var b=new Map;a=m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;
b.set(c,d)}return b},pUa=function(a,b){return(a!=null?a:0)+(b!=null?b:0)},qUa=function(a){return a.length===0?0:a.reduce(pUa)/a.length},rUa=function(a,b){b=b===void 0?qUa(a):b;if(a.length===0)return 0;a=a.map(function(c){return Math.pow(c-b,2)}).reduce(pUa)/(a.length-1);return Math.sqrt(a)},go=function(a,b){if(a<5)return!1;if(!sUa.get(b)){var c=qUa(b),d=rUa(b,c);sUa.set(b,{mean:c,stdDev:d})}b=sUa.get(b);return a-b.mean>b.stdDev*2},ho=function(a){return!(a==null||!a.commentNumber)},tUa=function(a){return a.unlinkifiedComment!==
""?!0:a.formattedComment?YTa(a.formattedComment)!=="":!1},uUa=function(a){var b;return((b=a.attachments)==null?void 0:b.length)>0},vUa=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment,formattedComment:b.formattedComment})},wUa=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(q(a.slice(0,d)),[c],q(a.slice(d+1)))},io=function(a){var b;return a==null?
void 0:(b=a.snapshot)==null?void 0:b[0]},xUa=function(a){var b;return um((b=io(a))==null?void 0:b.assigneeUser)||void 0},yUa=function(a){if(a==null)return"";var b,c,d,e,f=a.etag,g=a.piiRetention;var k=a.piiRetentionState;k=k==null?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,g,k,(b=a.entityStatus)==null?void 0:b.reason,(c=a.entityStatus)==null?void 0:c.status,(d=a.contentVerdict)==null?void 0:(e=d.piiVerdict)==null?void 0:e.severity].join("-")},
zUa=function(a){if(a==null)return"";var b=a.attachments.map(yUa).join("-"),c=[];if(a.commentReactions&&a.commentReactions.size>0){var d,e=m((d=a.commentReactions)==null?void 0:d.entries());for(d=e.next();!d.done;d=e.next()){var f=m(d.value);d=f.next().value;f=f.next().value;c.push(d+"-"+f.count)}}c=c.join("-");var g,k;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,(g=a.commentContentVerdict)==null?void 0:(k=g.piiVerdict)==null?void 0:k.severity,a.commentDeletionStatus,
a.commentRetention,"["+c+"]"].join("-")},AUa=function(a){return a.map(function(b){return b.commentNumber}).filter(Qm).reduce(function(b,c){return Math.max(b,c)},1)},BUa=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||zUa(d)!==zUa(e)))return!1}return!0},ko=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=jo.get(a))==null?void 0:d.open)!=null?e:!1},CUa=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=jo.get(a);return b==null?!1:!(b==null?0:b.open)},EUa=function(a){return DUa(a,"FIXED")},DUa=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)},FUa=function(a){return a.isArchived==
null?!1:!a.isArchived},GUa=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},IUa=function(){var a=lo;return gn(function(b){var c,d;return(d=HUa.get((c=a(b))==null?void 0:c.snapshot[0].status))!=null?d:0},hn)},JUa=function(){var a=lo;return gn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].assigneeUser)==null?void 0:d.emailAddress},jn)},KUa=function(){var a=lo;return gn(function(b){var c;
return(c=a(b))==null?void 0:c.snapshot[0].type},jn)},LUa=function(){var a=lo;return gn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].reporterUser)==null?void 0:d.emailAddress},jn)},MUa=function(a){return gn(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},hn)},NUa=function(a){return gn(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},hn)},
QUa=function(){var a=OUa;return gn(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.experimentalFields)==null?void 0:d.triage.triagerEmail)!=null?e:""},function(b,c){return b===PUa?1:c!==PUa&&b?c?jn(b,c):1:-1})},RUa=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"},TUa=function(a){return gn(function(b){b=a(b);return SUa[RUa(b)]},hn)},UUa=function(){var a=lo;return gn(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},hn)},mo=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="piper-bugupdater@prod.google.com"},VUa=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"},no=function(a){if(!VUa(a))return!1;var b;return((b=a==null?void 0:a.unlinkifiedComment)!=null?b:"").trim().split("\n").length>=
9},WUa=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})}},YUa=function(a,b,c){b=XUa.get(c)||new Set(c.map(function(e){return e.issueId}));XUa.set(c,b);var d;a=m((d=a.parentIssueIds)!=null?d:[]);for(d=a.next();!d.done;d=a.next())if(b.has(d.value))return!1;return!0},$Ua=function(a,b){ZUa.get(b)||ZUa.set(b,[b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?
void 0:f.oneDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.sevenDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.thirtyDayViewCount)!=null?g:0})]);var c=m(ZUa.get(b));b=c.next().value;var d=c.next().value;c=c.next().value;return go(b[a],b)||go(d[a],d)||go(c[a],c)},aVa=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}},bVa=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}},cVa=function(a){var b=new Map;a=m(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},dVa=function(a){var b=lUa(a,function(e){return e.issueId});a=[];b=m(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=m(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")},
oo=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""},eVa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=oo(c);b.has(d)?b.get(d).push(c):b.set(d,[c])}return b},fVa=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=[],e=void 0;d.push((e=xm(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},qo=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(po[a.allocation.involvement]);
else{var g;((g=a.allocation)==null?void 0:g.percentage)!==void 0&&c.push(Math.round(a.allocation.percentage*100)+"%")}var k;if((k=a.allocation)==null?0:k.startDate)b=a.allocation.startDate,c.push("Start: "+b.year+"-"+b.month+"-"+b.day);var l;if((l=a.allocation)==null?0:l.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:""},gVa=function(){return{assigneeUser:null,
blockedByIssueId:[],blockingIssueId:[],ccUsers:[],changelist:[],collaboratorsUsers:[],comment:null,componentId:null,customField:[],deletionReason:null,duplicateIssueId:[],duplicateOfIssueId:null,effort:void 0,foundInVersion:[],gerritChanges:[],hotlistId:[],inProd:!1,incidents:[],isArchived:!1,isDeleted:null,issueAccessLimitLevel:null,postmortems:[],priority:null,reporterUser:null,retention:null,severity:null,sloEndTime:null,sloSnoozeType:null,sloStartTime:null,staffing:null,status:null,targetedToVersion:[],
title:"",type:null,verifiedInVersion:[],verifierUser:null}},hVa=function(a){if(a.type!=="ANY_ISSUE_EDIT")return!1;var b,c,d,e,f,g,k,l;return!((b=a.content)==null?0:(c=b.issueModification)==null?0:(d=c.addMask)==null?0:d.length)&&!((e=a.content)==null?0:(f=e.issueModification)==null?0:(g=f.removeMask)==null?0:g.length)&&!((k=a.content)==null?0:(l=k.issueModification)==null?0:l.comment)},iVa=function(a,b){a=pm(a);var c,d=(c=a.content)==null?void 0:c.issueModification;b=b.snapshot[0];if(!d)return a;
var e;c=new Set((e=d.addMask)!=null?e:[]);var f;e=new Set((f=d.removeMask)!=null?f:[]);f=d.addState;d=d.removeState;c.has("status")&&(f==null?void 0:f.status)===b.status&&c.delete("status");c.has("priority")&&(f==null?void 0:f.priority)===b.priority&&c.delete("priority");c.has("severity")&&(f==null?void 0:f.severity)===b.severity&&c.delete("severity");var g,k;c.has("assignee")&&(f==null?void 0:(g=f.assigneeUser)==null?void 0:g.emailAddress)===((k=b.assigneeUser)==null?void 0:k.emailAddress)&&c.delete("assignee");
var l;!e.has("assignee")||((l=b.assigneeUser)==null?0:l.emailAddress)||e.delete("assignee");var r,w;c.has("verifier")&&(f==null?void 0:(r=f.verifierUser)==null?void 0:r.emailAddress)===((w=b.verifierUser)==null?void 0:w.emailAddress)&&c.delete("verifier");var x;!e.has("verifier")||((x=b.verifierUser)==null?0:x.emailAddress)||e.delete("verifier");var C,H,J=new Set((H=(C=b.ccUsers)==null?void 0:C.map(xm))!=null?H:[]);if(c.has("ccs")){var O;if(f==null?0:(O=f.ccUsers)==null?0:O.length){var R;f.ccUsers=
f==null?void 0:(R=f.ccUsers)==null?void 0:R.filter(function(pb){return!J.has(xm(pb))});var V;(f==null?0:(V=f.ccUsers)==null?0:V.length)||c.delete("ccs")}else c.delete("ccs")}if(e.has("ccs")){var ca;if(d==null?0:(ca=d.ccUsers)==null?0:ca.length){var oa;d.ccUsers=d==null?void 0:(oa=d.ccUsers)==null?void 0:oa.filter(function(pb){return J.has(xm(pb))});var ua;(d==null?0:(ua=d.ccUsers)==null?0:ua.length)||e.delete("ccs")}else e.delete("ccs")}var ka,Ga=new Set((ka=b.hotlistId)!=null?ka:[]);if(c.has("hotlists")){var ja;
if(f==null?0:(ja=f.hotlistId)==null?0:ja.length){f.hotlistId=f.hotlistId.filter(function(pb){return!Ga.has(pb)});var ta;(f==null?0:(ta=f.hotlistId)==null?0:ta.length)||c.delete("hotlists")}else c.delete("hotlists")}if(e.has("hotlists")){var xa;if(d==null?0:(xa=d.hotlistId)==null?0:xa.length){d.hotlistId=d.hotlistId.filter(function(pb){return Ga.has(pb)});var Sa;(d==null?0:(Sa=d.hotlistId)==null?0:Sa.length)||e.delete("hotlists")}else e.delete("hotlists")}c.has("title")&&(f==null?void 0:f.title)===
b.title&&c.delete("title");c.has("componentId")&&(f==null?void 0:f.componentId)===b.componentId&&c.delete("componentId");var $a;if(($a=a.content)==null?0:$a.issueModification)a.content.issueModification.addMask=[].concat(q(c)),a.content.issueModification.removeMask=[].concat(q(e));return a},kVa=function(a,b){var c=a.match(/```json\n([\s\S]*?)\n```/);if(c)a=c[1];else{c=a.indexOf("{");var d=a.lastIndexOf("}");a=c!==-1&&d!==-1&&c<d?a.substring(c,d+1):a}return jVa(a,b).filter(function(e){return!hVa(e)})},
jVa=function(a,b){a:{try{var c=JSON.parse(a);break a}catch(d){console.error("Failed to parse JSON response:",d)}c=void 0}if(c=a=c)a.triage_recommendations?c=!0:(console.error("triage_recommendations is missing."),c=!1);return c?Object.values(a.triage_recommendations).map(function(d,e){var f=Date.now(),g=Math.floor(f/1E3);f=f%1E3*1E6;var k=gVa(),l=gVa(),r=[],w=[],x=void 0;d.assignee_email&&(k.assigneeUser=lVa(d.assignee_email),r.push("assignee"));d.cc_emails&&(k.ccUsers=d.cc_emails.map(lVa).filter(Qm),
r.push("ccs"));var C=Om(d.component_id);C&&(k.componentId=C,r.push("componentId"));d.hotlist_ids_to_add&&(k.hotlistId=d.hotlist_ids_to_add.filter(Qm),r.push("hotlists"));d.hotlist_ids_to_remove&&(l.hotlistId=d.hotlist_ids_to_remove.filter(Qm),w.push("hotlists"));C=Om(d.issue_id);d.issue_comment&&C&&(x={issueId:C,commentNumber:0,formattingMode:"MARKDOWN",version:0,unlinkifiedComment:d.issue_comment,redacted:!1,commentReactions:new Map,formattedComment:void 0,lastEditorUser:void 0,entityStatus:void 0,
piiRetention:void 0,piiRetentionState:void 0,etag:void 0,lastModified:0},r.push("comment"));if(C=Om(d.mark_as_duplicate_of))k.duplicateOfIssueId=C,r.push("duplicateOfIssueId");d.priority&&(k.priority=d.priority,r.push("priority"));d.severity&&(k.severity=d.severity,r.push("severity"));d.status&&(k.status=d.status,r.push("status"));d.verifier_email&&(k.verifierUser=lVa(d.verifier_email),r.push("verifier"));return{name:"recommendationSources/"+b+"/recommendations/"+e,source:"recommendationSources/"+
b,resource:"issues/"+d.issue_id,type:C?"ISSUE_DEDUPLICATION":"ANY_ISSUE_EDIT",recommendation:C?"issues/"+C:"any-issue-edit",score:1,confidence:"VERY_HIGH",createTime:{seconds:g,nanos:f},content:{issueModification:{addState:k,addMask:r,removeState:l,removeMask:w,comment:x}},rationale:d.triage_decision_explanation?{text:d.triage_decision_explanation,formattingMode:"MARKDOWN",createTime:{seconds:g,nanos:f}}:void 0}}):[]},lVa=function(a){return a.includes("@")?ym(a):ym(a+"@google.com")},mVa=function(a){a&
1&&M(0,"span",1);a&2&&(a=P(),I("innerHtml",a.data.htmlMessage,Oe))},nVa=function(a){a&1&&(K(0,"span",2),Q(1),L());a&2&&(a=P(),B(),yg(a.data.message))},oVa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismissWithAction())});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.data.actionLabel," "))},pVa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismiss())});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.data.dismissLabel,
" "))},qVa=function(a){if(a&1){var b=t();K(0,"button",7);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismiss())});M(1,"mat-icon",8);L()}},ro=function(){return new rVa},sVa=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)}},tVa=function(a){function b(){var e,f,g,k;return y(function(l){if(l.nextAddress==1){if(d||c.length===0)return l.return();d=!0;e=[].concat(q(c));c=[];f=m(e);g=f.next()}if(l.nextAddress!=
3){if(g.done)return d=!1,z(l,b(),0);k=g.value;return z(l,a.apply(null,q(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}g=f.next();return l.jumpTo(2)})}var c=[],d=!1;return function(){var e=bd.apply(0,arguments),f=new rVa;c.push({args:e,returnValue:f});b();return f.promise}},uVa=function(a){var b=!1;return function(){var c=bd.apply(0,arguments);if(!b)return b=!0,a.apply(null,q(c))}},vVa=function(a){var b=new Map;return function(){var c=bd.apply(0,arguments),d=c.map(String).join("-");
if(b.has(d))return b.get(d);c=a.apply(null,q(c));b.set(d,c);return c}},OUa=function(a){return a},to=function(a){return function(){var b=so.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}}},wVa=function(a){return function(b){b===!0?so.setItem(a,"1"):so.removeItem(a)}},xVa=function(a){return a&&typeof a==="object"&&"overrideUntilDate"in a&&"flagName"in a&&"value"in a?!0:!1},yVa=function(a){return{overrides:a.overrides.filter(function(b){return b.overrideUntilDate?
Date.parse(b.overrideUntilDate)>Date.now():!0})}},zVa=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.")},CVa=function(){if(AVa("flag-overrides")()){var a=uo("flag-overrides")();if(a&&typeof a==="object"&&"overrides"in a&&Array.isArray(a.overrides)&&a.overrides.every(xVa))return yVa(a);BVa();console.warn("Could not parse flag overrides.")}},BVa=function(){vo("flag-overrides")()},
DVa=function(a,b){var c=new Date(Date.now()+864E5);c=c===void 0?null:c;zVa();var d,e=((d=CVa())==null?void 0:d.overrides)||[];vo("flag-overrides")({overrides:[].concat(q(e.filter(function(f){return f.flagName!==a})),[{flagName:a,value:b,overrideUntilDate:c}])})},EVa=function(a,b){DVa(a,b)},FVa=function(a){zVa();var b,c=((b=CVa())==null?void 0:b.overrides)||[];vo("flag-overrides")({overrides:c.filter(function(d){return d.flagName!==a})})},IVa=function(a,b){b=b===void 0?Xn().config:b;var c=c===void 0?
GVa():c;if((c=c.get(a))!=null)a=c;else{var d;a=a in HVa?b.experimentState.getFlag(HVa[a]):(d=b.enabledFlags.get(a))!=null?d:!1}return a},KVa=function(){return function(a){return{response:a.getMutableResponse().getText(),citationResources:JVa(a.getMutableResponse())}}},JVa=function(a){return Ci(a,Bi,13,Di()).filter(function(b){return Ri(b,LVa,6,Si)}).flatMap(function(b){var c;return b==null?void 0:(c=km(b))==null?void 0:lm(c)}).map(function(b){var c,d,e,f;return{citationTitle:(c=b==null?void 0:b.getTitle())!=
null?c:"",url:(d=b==null?void 0:b.getUrl())!=null?d:"",iconUrl:(e=b==null?void 0:b.getIconUrl())!=null?e:"",isExternalDocument:(f=b==null?void 0:Gi(b,6))!=null?f:!1}})},MVa=function(a){var b;return{paths:(b=a==null?void 0:Dm(a,1,Di(Km)))!=null?b:[]}},OVa=function(a){if(NVa.has(a))switch(a){case "access_limit":break;case "assignee":return"assignee";case "blocked_by_issue_ids":return"blockedByIssueId";case "blocking_issue_ids":return"blockingIssueId";case "canonical_issue_id":return"duplicateOfIssueId";
case "ccs":return"ccs";case "collaborators":return"collaborators";case "child_issue_ids":break;case "code_changes":return"changelists";case "gerrit_changes":return"gerritChanges";case "component_id":return"componentId";case "custom_fields":return"customField";case "deletion_reason":return"deletionReason";case "duplicate_issue_ids":break;case "effort":return"effortEstimate";case "entity_status":break;case "found_in_versions":return"foundInVersion";case "hotlist_ids":return"hotlists";case "incidents":break;
case "in_prod":return"inProd";case "is_archived":return"isArchived";case "is_deleted":return"isDeleted";case "parent_issue_ids":return"parentId";case "staffing":return"staffing";case "staffing.planned_allocations":break;case "postmortems":break;case "priority":return"priority";case "retention":break;case "reporter":return"reporter";case "severity":return"severity";case "slo_snooze_until":return"sloStartTime";case "slo_end_time":return"sloEndTime";case "slo_snooze_type":return"sloSnoozeType";case "status":return"status";
case "targeted_to_versions":return"targetedToVersion";case "title":return"title";case "type":return"type";case "verifier":return"verifier";case "verified_in_versions":return"verifiedInVersion";default:wb(a)}},PVa=function(a){var b;return(b=a==null?void 0:Dm(a,1,Di()).map(OVa).filter(Qm))!=null?b:[]},QVa=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:wb(a,"Unhandled IssueFieldName in fieldNameToMask")}},SVa=function(a){return a.type==="CUSTOM_FIELD"?[RVa[rTa[a.type]],a.customFieldId].join(":"):RVa[rTa[a.type]]},UVa=function(a){return a.includes(":")?(a=m(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:wo(a)}):{type:LSa[TVa[a]]}},VVa=function(a){var b;a==null?a=void 0:(a=Dm(a,1,Di()),a=a==null?void 0:a.map(UVa));return(b=a)!=null?b:[]},WVa=function(a){var b=m(a.trim().split(" ")),
c=b.next().value;a=b.next().value;ij(b);b=UVa(c);c="DESCENDING";a==="asc"&&(c="ASCENDING");return{field:b,direction:c}},YVa=function(a){return a.map(XVa).join(",")},XVa=function(a){return SVa(a.field)+" "+(a.direction==="ASCENDING"?"asc":"desc")},ZVa=function(a){return YVa(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(WVa))},Ao=function(a){switch(xo(a,yo)){case 0:throw Error("fd");case 1:return{user:Lm(a.getUser())};case 2:return{group:Lm(a.getGroup())};case 3:return{alias:zo(a,3,yo)};default:throw Error("gd");}},Do=function(a){var b=new Bo;ERa(a)&&b.setUser(Jm(a.user));a.group!==void 0&&b.setGroup(Jm(a.group));a.alias!==void 0&&
Co(b,3,yo,a.alias);return b},$Va=function(a){var b=new Eo;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("jd");}return b},aWa=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("jd");}},cWa=function(a){if(a)return a=a.getAccessLevel(),{accessLevel:bWa[a]}},eWa=function(a){return(new Ho).setAccessLevel(dWa[a.accessLevel])},gWa=function(a){if(a)return(a=X(a,Io,1))?(a=a.getSeverity(),a={piiVerdict:a?{severity:fWa(a)}:{severity:"NONE_DETECTED"}}):a={piiVerdict:{severity:"NONE_DETECTED"}},a},fWa=function(a){switch(a){case 0:case 1:return"NONE_DETECTED";case 2:return"RESTRICTED";case 3:return"RESTRICTED_PLUS";default:throw Error("kd`"+
a);}},hWa=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("kd`"+a);}},iWa=function(a){var b=new Jo;b=Ko(b,1,a.contentJudgementId).setResourcePath(a.resourcePath);var c=hWa(a.severity);b=Im(b,3,c);b=Gm(b,4,a.judgementReason);a.judge&&(a=Jm(a.judge),Ni(b,Fm,9,a));return b},jWa=function(a){return{contentJudgementId:Ym(pn(a,1))?String(pn(a,1)):void 0,resourcePath:a.getResourcePath()||
void 0,severity:fWa(a.getRestrictionSeverity()),judgementReason:vi(a,4),judge:Lm(X(a,Fm,9))}},kWa=function(a){var b=new Jo;var c=hWa(a.severity);b=Im(b,3,c);return Gm(b,4,a.judgementReason)},mWa=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("ld`"+b);}}return{status:b,reason:lWa(a.getReason())}}},lWa=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("md`"+a);}},nWa=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("md`"+a);}},oWa=function(a){if(a){var b=new Lo,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("ld`"+d);}}return c.call(b,d).setReason(nWa(a.reason))}},pWa=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("md`"+a);}},qWa=function(a){if(a!=null){var b,c;return{retentionPeriod:(b=kSa(a.getRetentionPeriod()))!=null?b:null,scheduledDeletionTime:(c=
bn(X(a,Ti,2)))!=null?c:null}}},rWa=function(a){var b=new Mo;if(a.retentionPeriod){var c=jSa(a.retentionPeriod);Ni(b,dn,1,c)}a.scheduledDeletionTime&&(a=cn(a.scheduledDeletionTime),Ni(b,Ti,2,a));return b},tWa=function(a){var b=xi(a,1);b=sWa[b];var c=Cm(a,2),d=xi(a,3);return{retentionSelection:b,retentionPeriodDays:c,piiRetentionSelection:sWa[d],piiRetentionPeriodDays:Cm(a,4),spiiRetentionPeriodDays:Cm(a,5)}},vWa=function(a){var b=new No;b=Im(b,1,uWa[a.retentionSelection]);b=an(b,2,a.retentionPeriodDays);
b=Im(b,3,uWa[a.piiRetentionSelection]);b=an(b,4,a.piiRetentionPeriodDays);return an(b,5,a.spiiRetentionPeriodDays)},wWa=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:throw Error("nd`"+a);}},xWa=function(a){switch(a){case "RETENTION_UNSPECIFIED":return 0;case "COMPONENT_DEFAULT":return 1;case "INDEFINITE":return 2;default:throw Error("nd`"+a);}},zWa=function(a){var b=Om(a.getAttachmentId_asString());var c=a.getFilename();
var d=Ym(a.getLength())||void 0,e=vi(a,2);c=c&&e?{filename:c,length:d,contentType:e}:void 0;return{attachmentId:b,media:c,contentType:vi(a,2),filename:a.getFilename(),length:Ym(a.getLength()),etag:yWa(a.getEtag())||"",contentVerdict:gWa(a.getContentVerdict()),entityStatus:mWa(a.getEntityStatus()),piiRetentionState:qWa(a.getRestrictedRetentionState()),piiRetention:wWa(a.getRestrictedRetention())}},BWa=function(a){var b=new Oo;var c=new AWa;a=Yba(a);c=Po(c,2,a);return Ni(b,AWa,5,c).setEntityStatus(oWa({status:"ACTIVE",
reason:"UNSPECIFIED"}))},CWa=function(a){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},DWa=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"}},
FWa=function(a){if(a!=null)return{customFieldId:Pm(Mm(Ym(a.getCustomFieldId()))),standardField:EWa[xi(a,Ii(a,Qo,2))]}},HWa=function(a){var b=new Ro;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&So(b,2,Qo,zca(GWa[a.standardField]));return b},IWa=function(a){if(a){var b=Mm(Ym(a.getCustomFieldId()));if(b==null)Xm("No customFieldId. customFieldValueToJs");else{b={customFieldId:b,displayValues:Ci(a,Al,11,Di()).map(function(C){return rh(YEa(C)).toString()})};switch(a.getValueCase()){case 2:b.textValue=
Pm(zo(a,2,To));break;case 3:b.dateValue=hSa(a.getDateValue());break;case 4:b.enumValue=Pm(zo(a,4,To));break;case 5:b.numericValue=Pm(em(a,Ii(a,To,5)));break;case 6:var c,d;b.repeatedTextValue={values:(d=(c=$l(a,Uo,6,To))==null?void 0:c.getValuesList(Km))!=null?d:[]};break;case 8:var e,f;b.repeatedEnumValue={values:(f=(e=$l(a,Uo,8,To))==null?void 0:e.getValuesList(Km))!=null?f:[]};break;case 9:var g,k;b.repeatedNumericValue={values:(k=(g=$l(a,Vo,9,To))==null?void 0:g.getValuesList(Km))!=null?k:[]};
break;case 7:var l,r,w,x;b.repeatedDateValue={values:(x=(l=$l(a,Wo,7,To))==null?void 0:(r=l.getValuesList())==null?void 0:(w=r.map(hSa))==null?void 0:w.filter(Qm))!=null?x:[]}}return b}}},KWa=function(a){var b=(new Xo).setCustomFieldId(a.customFieldId);a.textValue!=null?Co(b,2,To,a.textValue):a.dateValue!=null?(a=iSa(a.dateValue),Yo(b,3,To,a)):a.enumValue!=null?Co(b,4,To,a.enumValue):a.numericValue!=null?JWa(b,5,To,a.numericValue):a.repeatedTextValue!=null?(a=(new Uo).setValuesList(a.repeatedTextValue.values),
Yo(b,6,To,a)):a.repeatedEnumValue!=null?(a=(new Uo).setValuesList(a.repeatedEnumValue.values),Yo(b,8,To,a)):a.repeatedNumericValue!=null?(a=(new Vo).setValuesList(a.repeatedNumericValue.values),Yo(b,9,To,a)):a.repeatedDateValue!=null&&(a=(new Wo).setValuesList(a.repeatedDateValue.values.map(iSa)),Yo(b,7,To,a));return b},NWa=function(a){var b=Ym(a.getCustomFieldId()),c=LWa[a.getType()],d=!!Gi(a,4),e=a.getName(),f=a.getDescription()||"",g=IWa(X(a,Xo,10));var k=Dm(a,8,Di(Km));b={customFieldId:b,type:c,
required:d,name:e,description:f,typedDefaultValue:g,allowedValue:k,fieldSignificance:MWa[xi(a,9)],shared:a.getShared(),stateOnIssues:"INHERIT",enabledOnIssues:!0};Ym(a.getComponentId())&&(b.componentId=a.getComponentId_asString());return b},OWa=function(a){return NWa(a)},RWa=function(a){var b=new Zo;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(PWa[a.type]);$o(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=
KWa(a.typedDefaultValue);Ni(b,Xo,10,c)}a.allowedValue&&Hm(b,8,a.allowedValue);a.fieldSignificance&&b.setFieldSignificance(QWa[a.fieldSignificance]);b.setShared(a.shared);return b},SWa=function(a){return{specId:Ym(pn(a,1)),estimate:vi(a,2),averageDays:em(a,3),totalOpen:em(a,4),totalComplete:em(a,5)}},ZWa=function(a){var b=new ap;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&&TWa(b,UWa(new VWa,a.numericSpec.multiplier));
if(a.enumSpec){var c;WWa(b,XWa(new YWa,((c=a.enumSpec.options)!=null?c:[]).map(function(d){return(new bp).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}Im(b,6,a)}return b},gp=function(a){var b=void 0,c=a.getContentVerdict();c&&(b=gWa(c));c=void 0;var d=a.getFormattedComment();d&&(c=cp(d));d=void 0;var e=X(a,Fm,3);e&&(d=Lm(e));e=void 0;var f=a.getEtag();f&&(e=yWa(f));f=void 0;var g=a.getEntityStatus();
g&&(f=mWa(g));g=void 0;var k=a.getRestrictedRetentionState();k&&(g=qWa(k));return{issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber(),commentContentVerdict:b,formattingMode:$Wa(a.getFormattingMode()),formattedComment:c,lastEditorUser:d,lastModified:fn(a.getModifiedTime()),version:a.getVersion(),unlinkifiedComment:a.getComment(),entityStatus:f,piiRetentionState:g,piiRetention:wWa(a.getRestrictedRetention()),redacted:Gi(a,13),etag:e,commentReactions:aXa(X(a,fp,17))}},cp=function(a){if(Ri(a,
bXa,1,hp)){var b=$l(a,bXa,1,hp);var c;b={plainSection:((c=Ci(b,ip,1,Di()))!=null?c:[]).map(cXa)}}else b=void 0;c=b;b=Ri(a,jp,2,hp)?dXa($l(a,jp,2,hp)):void 0;Ri(a,kp,3,hp)?(a=$l(a,kp,3,hp),a={content:YEa(a.getContent())}):a=void 0;return{plainFormat:c,markdownFormat:b,literalFormat:a}},fXa=function(a){var b=new lp;if(a.plainFormat){var c=a.plainFormat;var d=new bXa;c=c.plainSection.map(eXa);d=Oi(d,1,c);Yo(b,1,hp,d)}a.markdownFormat&&(d=a.markdownFormat,d=(new jp).setContent(XEa(d.content)),Yo(b,2,
hp,d));a.literalFormat&&(a=a.literalFormat,a=(new kp).setContent(XEa(a.content)),Yo(b,3,hp,a));return b},cXa=function(a){return{isQuoted:Gi(a,1),content:YEa(a.getContent())}},eXa=function(a){var b=new ip;return $o(b,1,a.isQuoted).setContent(XEa(a.content))},dXa=function(a){return{content:YEa(a.getContent())}},$Wa=function(a){switch(a){case 0:case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";default:throw Error("od`"+a);}},mp=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("od`"+a);}},aXa=function(a){var b,c;a==null?c=void 0:c=Ci(a,np,2,Di());a=(b=c)!=null?b:[];b=new Map;a=m(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("pd`"+d);}}var e=void 0,f=void 0,g=void 0,k=void 0,l=(f=Gi(c,1))!=null?f:!1;f=(g=Ym(c.getCount()))!=null?g:0;c=Ci(c,Fm,
3,Di());c={type:d,hasReacted:l,count:f,recentResponders:(k=(e=c)==null?void 0:e.map(Lm).filter(Qm))!=null?k:[]};b.set(d,c)}return b},gXa=function(a){return a.map(function(b){return X(b,Fm,1)}).filter(Qm).map(Lm).map(function(b){return{mentionedUser:b}})},hXa=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"}},iXa=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}},kXa=function(a){var b=bn(a.getStartTime()),c=bn(X(a,Ti,3)),d=bn(a.getEndTime()),e=kSa(a.getObjective()),f=a.getBusinessDays();a=a.getDayType();return{startTime:b,targetTime:c,endTime:d,objective:e,businessDays:f,dayType:jXa[a]}},mXa=function(a){var b=new op;a.startTime&&b.setStartTime(cn(a.startTime));if(a.targetTime){var c=cn(a.targetTime);Ni(b,Ti,3,c)}a.endTime&&
b.setEndTime(cn(a.endTime));a.objective&&b.setObjective(jSa(a.objective));a.businessDays&&b.setBusinessDays(a.businessDays);a.dayType&&b.setDayType(lXa[a.dayType]);return b},oXa=function(a){var b=(new pp).setInherit(a.inherit).setSource(nXa[a.source]).setComment(a.comment);a.id&&b.setId(a.id);a.sourceComponentId&&Ko(b,6,a.sourceComponentId);a.sourceTeamId&&b.setSourceTeamId(a.sourceTeamId);return b},qXa=function(a){return{author:Lm(a.getAuthor()),timestamp:bn(a.getTimestamp()),add:pXa(a.getAdd()),
remove:pXa(a.getRemove()),addMask:MVa(a.getAddMask()),removeMask:MVa(a.getRemoveMask())}},pXa=function(a){var b=a.getSloId_asString(),c=a.getName(),d=a.getDescription(),e=un(a,2);var f=Ci(a,qp,5,Di());f=(f!=null?f:[]).map(rXa);var g=Ci(a,qp,6,Di());g=(g!=null?g:[]).map(rXa);var k=a.getIsArchived();a:switch(a=xi(a,8),a){case 0:a="OFF";break a;case 1:a="OFF";break a;case 2:a="ON";break a;default:throw Error("qd`"+a);}return{sloId:b,name:c,description:d,parentId:e,elements:f,effectiveElements:g,isArchived:k,
alertState:a}},rXa=function(a){var b=sXa(a.getMetric()),c=vi(a,2);a:{var d=a.getDayType();switch(d){case 0:d="CALENDAR";break a;case 1:d="CALENDAR";break a;case 2:d="BUSINESS";break a;default:throw Error("sd`"+d);}}return{metric:b,matcher:c,dayType:d,objective:kSa(a.getObjective()),businessDays:a.getBusinessDays()}},sXa=function(a){switch(a){case 0:return"METRIC_UNSPECIFIED";case 1:return"ASSIGNMENT";case 2:return"RESPONSE";case 3:return"CLOSURE";default:throw Error("rd`"+a);}},uXa=function(a){var b=
new qp;var c=tXa(a.metric);b=Im(b,1,c);b=Gm(b,2,a.matcher);c=b.setDayType;a:{var d=a.dayType;switch(d){case "DAY_TYPE_UNSPECIFIED":d=0;break a;case "CALENDAR":d=1;break a;case "BUSINESS":d=2;break a;default:throw Error("sd`"+d);}}return c.call(b,d).setObjective(jSa(a.objective)).setBusinessDays(a.businessDays)},tXa=function(a){switch(a){case "METRIC_UNSPECIFIED":return 0;case "ASSIGNMENT":return 1;case "RESPONSE":return 2;case "CLOSURE":return 3;default:throw Error("td`"+a);}},vXa=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}},wXa=function(a){switch(a){case "HIGH":return 1;case "MEDIUM":return 2;case "LOW":return 3;default:return 4}},zXa=function(a){var b=new rp;if(a.user){var c=b.setUser,d=a.user,e=(new xXa).setUser(Jm(d.user));d.isLead&&
e.setIsLead(!0);d.role&&e.setRole(vXa(d.role));c=c.call(b,e);a=a.allocation;d=new yXa;d=sp(d,3,a.aggregationValue);a.involvement&&So(d,1,tp,zca(wXa(a.involvement)));a.percentage!==void 0&&JWa(d,2,tp,a.percentage);a.startDate&&(e=iSa(a.startDate),Ni(d,$m,4,e));a.endDate&&(a=iSa(a.endDate),Ni(d,$m,5,a));Ni(c,yXa,3,d)}else a.placeholder&&(c=a.placeholder,c=(new up).setRole(vXa(c.role)).setCount(c.count),Yo(b,2,vp,c));return b},AXa=function(a){var b=new wp;a=a.plannedAllocations.map(zXa);return Oi(b,
1,a)},BXa=function(a){switch(a){case 1:return"HIGH";case 2:return"MEDIUM";case 3:return"LOW";default:return"ZERO"}},CXa=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"}},EXa=function(a){if(a.hasUser()){var b=a.getUser(),
c=CXa(b.getRole());var d={user:Lm(b.getUser())};b.getIsLead()&&(d.isLead=!0);c!=="JOB_ROLE_UNSPECIFIED"&&(d.role=c);a=X(a,yXa,3);b={aggregationValue:em(a,3)};c=Ii(a,tp,1);xp(a,c)!=null&&(b.involvement=BXa(xi(a,Ii(a,tp,1))));DXa(a,tp)&&(b.percentage=em(a,Ii(a,tp,2)));yi(a,$m,4)&&(b.startDate=hSa(a.getStartDate()));yi(a,$m,5)&&(b.endDate=hSa(X(a,$m,5)));d={user:d,allocation:b}}else Ri(a,up,2,vp)?(d=a.getPlaceholder(),d={placeholder:{role:CXa(d.getRole()),count:d.getCount()}}):d={};return d},FXa=function(a){return{plannedAllocations:Ci(a,
rp,1,Di()).map(EXa)}},GXa=function(a){return{issueId:String(a.getIssueId()),updateText:vi(a,2),formattedText:yi(a,lp,3)?cp(X(a,lp,3)):void 0,formattingMode:a.getFormattingMode()?$Wa(a.getFormattingMode()):"PLAIN",author:a.hasAuthor()?Lm(a.getAuthor()):void 0,updateTime:a.hasUpdateTime()?Pm(bn(a.getUpdateTime())):void 0,version:a.getVersion()}},HXa=function(a){var b=(new yp).setFormattingMode(mp(a.formattingMode));a.issueId&&b.setIssueId(a.issueId);a.updateText&&Gm(b,2,a.updateText);if(a.formattedText){var c=
fXa(a.formattedText);Ni(b,lp,3,c)}a.author&&b.setAuthor(Jm(a.author));a.updateTime&&b.setUpdateTime(cn(a.updateTime));a.version&&b.setVersion(a.version);return b},NXa=function(a){var b=a.getAccessLimit(),c=IXa[xi(a,30)],d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa;return{componentId:Om(a.getComponentId_asString())||null,type:a.getType()?hXa(a.getType()):null,status:a.getStatus()?zp[a.getStatus()]:null,priority:a.getPriority()?Ap[a.getPriority()]:null,severity:a.getSeverity()?JXa[a.getSeverity()]:
null,title:a.getTitle(),reporterUser:a.getReporter()?Lm(a.getReporter()):null,assigneeUser:a.getAssignee()?Lm(a.getAssignee()):null,verifierUser:a.getVerifier()?Lm(a.getVerifier()):null,ccUsers:(x=(d=a.getCcsList())==null?void 0:d.map(Lm))!=null?x:[],collaboratorsUsers:(C=(e=a.getCollaboratorsList())==null?void 0:e.map(Lm))!=null?C:[],staffing:a.getStaffing()?FXa(a.getStaffing()):null,duplicateOfIssueId:a.getCanonicalIssueId_asString()!=="0"?a.getCanonicalIssueId_asString():null,blockedByIssueId:(H=
(f=a.getBlockedByIssueIdsList_asString())==null?void 0:f.filter(function($a){return $a!=="0"}))!=null?H:[],blockingIssueId:(J=(g=a.getBlockingIssueIdsList_asString())==null?void 0:g.filter(function($a){return $a!=="0"}))!=null?J:[],hotlistId:(O=(k=a.getHotlistIdsList_asString())==null?void 0:k.map(Mm).filter(Qm))!=null?O:[],customField:(R=(l=a.getCustomFieldsList())==null?void 0:l.map(IWa).filter(Qm))!=null?R:[],changelist:(V=a.getCodeChangesList(Km))!=null?V:[],gerritChanges:(ca=a.getGerritChangesList().map(KXa))!=
null?ca:[],foundInVersion:(oa=Dm(a,17,Di(Km)))!=null?oa:[],targetedToVersion:(ua=Dm(a,18,Di(Km)))!=null?ua:[],verifiedInVersion:(ka=Dm(a,19,Di(Km)))!=null?ka:[],inProd:a.getInProd(),isArchived:a.getIsArchived(),duplicateIssueId:(Ga=(r=a.getDuplicateIssueIdsList_asString())==null?void 0:r.filter(function($a){return $a!=="0"}))!=null?Ga:[],isDeleted:a.getIsDeleted(),deletionReason:LXa[xi(a,24)],sloStartTime:(ja=bn(a.getSloSnoozeUntil()))!=null?ja:null,sloEndTime:(ta=bn(a.getSloEndTime()))!=null?ta:
null,sloSnoozeType:c==="SLO_SNOOZE_TYPE_UNSPECIFIED"?null:c,incidents:(xa=(w=Dm(a,37,Di()))==null?void 0:w.filter(Qm))!=null?xa:[],postmortems:(Sa=Dm(a,27,Di(Km)))!=null?Sa:[],retention:MXa[a.getRetention()],effort:a.hasEffort()?SWa(a.getEffort()):void 0,issueAccessLimitLevel:b!=null?aWa(b):null,comment:"",formattingMode:void 0}},UXa=function(a){var b=new Bp;a.componentId&&b.setComponentId(a.componentId);a.title&&b.setTitle(a.title);a.type!=null&&b.setType(iXa(a.type));a.inProd!=null&&b.setInProd(a.inProd);
a.isArchived!=null&&b.setIsArchived(a.isArchived);a.status!=null&&b.setStatus(OXa[a.status]);a.priority!=null&&b.setPriority(PXa[a.priority]);a.severity!=null&&b.setSeverity(QXa[a.severity]);a.reporterUser&&b.setReporter(Jm(a.reporterUser));a.assigneeUser&&b.setAssignee(Jm(a.assigneeUser));a.verifierUser&&b.setVerifier(Jm(a.verifierUser));a.ccUsers&&b.setCcsList(a.ccUsers.map(Jm));a.collaboratorsUsers&&b.setCollaboratorsList(a.collaboratorsUsers.map(Jm));a.staffing&&b.setStaffing(AXa(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(KWa));a.changelist&&b.setCodeChangesList(a.changelist);a.gerritChanges&&b.setGerritChangesList(a.gerritChanges.map(RXa));a.foundInVersion&&Hm(b,17,a.foundInVersion);a.targetedToVersion&&
Hm(b,18,a.targetedToVersion);a.verifiedInVersion&&Hm(b,19,a.verifiedInVersion);a.duplicateIssueId&&b.setDuplicateIssueIdsList(a.duplicateIssueId.map(Number));a.isDeleted!=null&&b.setIsDeleted(a.isDeleted);a.deletionReason!=null&&b.setDeletionReason(SXa[a.deletionReason]);a.sloStartTime&&b.setSloSnoozeUntil(cn(a.sloStartTime));a.sloEndTime&&b.setSloEndTime(cn(a.sloEndTime));a.sloSnoozeType!=null&&b.setSloSnoozeType(TXa[a.sloSnoozeType]);a.retention!=null&&b.setRetention(xWa(a.retention));if(a.effort){var c=
b.setEffort,d=a.effort,e=new Cp;d.specId&&Ko(e,1,d.specId);d.estimate&&Gm(e,2,d.estimate);d.averageDays&&sp(e,3,d.averageDays);d.totalOpen&&sp(e,4,d.totalOpen);d.totalComplete&&sp(e,5,d.totalComplete);c.call(b,e)}a.issueAccessLimitLevel&&b.setAccessLimit($Va(a.issueAccessLimitLevel));return b},KXa=function(a){var b={host:vi(a,1),repo:vi(a,2),changeNumber:a.getChangeNumber_asLegacyNumberOrString(),state:VXa[a.getState()]};vi(a,5)&&(b.branch=vi(a,5));return b},RXa=function(a){var b=new Dp;b=Gm(b,1,
a.host);b=Gm(b,2,a.repo).setChangeNumber(a.changeNumber).setState(WXa[a.state]);a.branch&&Gm(b,5,a.branch);return b},XXa=function(a){return{oneDayViewCount:Ep(a,1),sevenDayViewCount:Ep(a,2),thirtyDayViewCount:Ep(a,3)}},ZXa=function(a){if(a){var b=Gi(a,2);b=b==null?null:b;var c=Gi(a,1);return{voted:b,starred:c==null?null:c,notificationSubscription:YXa[xi(a,4)],lastViewedTimeMicros:fn(X(a,Ti,5))}}},$Xa=function(a){if(a){var b=void 0,c=a.getSloStatus();c&&(b={assignmentBounds:(c==null?0:yi(c,op,1))?
kXa(X(c,op,1)):void 0,responseBounds:(c==null?0:yi(c,op,2))?kXa(X(c,op,2)):void 0,closureBounds:(c==null?0:yi(c,op,3))?kXa(X(c,op,3)):void 0});c=void 0;var d=X(a,Fm,14);d&&(c=Lm(d));var e;return{voteCount:(e=Ep(a,10))!=null?e:0,createdTimeMicros:fn(a.getCreatedTime()),resolvedTimeMicros:fn(a.getResolvedTime()),verifiedTimeMicros:fn(a.getVerifiedTime()),modifiedTimeMicros:fn(a.getModifiedTime()),sloId:Mm(a.getSloId_asLegacyNumberOrString()),teamId:Om(a.getTeamId_asLegacyNumberOrString()),retentionState:qWa(a.getRetentionState()),
sloStatus:b,lastModifier:c}}},dYa=function(a){switch(xo(a,aYa)){case 2:var b=$l(a,bYa,2,aYa);return b.getCommentNumber()!==0?{type:"issueReference",issueId:b.getIssueId_asString(),commentNumber:b.getCommentNumber(),sourceCommentNumber:Cm(a,3)}:{type:"issueReference",issueId:b.getIssueId_asString(),sourceCommentNumber:Cm(a,3)};case 1:return b=$l(a,cYa,1,aYa),{type:"hyperlink",href:vi(b,1),sourceCommentNumber:Cm(a,3)};case 0:throw Error("ud");default:throw Error("vd");}},Fp=function(a){var b=a.getIssueState()?
[NXa(a.getIssueState())]:[],c,d;return{issueId:a.getIssueId_asString(),version:a.getVersion(),snapshot:b,userData:ZXa(a.getUserData()),aggregatedData:$Xa(a),accessLimit:cWa(a.getAccessLimit()),customFields:a.getCustomFieldsList().map(NWa),visibleFields:Ci(a,Ro,34,Di()).map(FWa).filter(Qm),majorModifiedTimeMicros:fn(a.getMajorModifiedTime()),parentIssueIds:a.getParentIssueIdsList_asString().filter(function(e){return e!=="0"}),descendantCount:(c=a.getDescendantIssueCount())!=null?c:0,openDescendantCount:(d=
a.getOpenDescendantIssueCount())!=null?d:0,isArchived:a.getIsArchived(),trackerId:Om(a.getTrackerId_asString()),userActivityStats:X(a,eYa,47)&&XXa(X(a,eYa,47)),escalationOwner:a.getEscalationOwner()?Lm(a.getEscalationOwner()):void 0}},gYa=function(a){for(var b=new Map,c=m(a.getAncestorsMap().entries()),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;b.set(String(d),{sourceIssueIds:e.getSourceIssueIdsList_asString().filter(function(f){return f!=="0"})})}c=Fp(a);return Object.assign({},
c,{description:a.hasDescription()?gp(a.getDescription()):void 0,ancestors:b,childIssueCount:a.getChildIssueCount(),relatedLinks:Ci(a,fYa,41,Di()).map(dYa),statusUpdate:a.hasStatusUpdate()?GXa(a.getStatusUpdate()):void 0})},hYa=function(a){var b,c,d,e,f,g=(new Gp).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy(YVa((d=a.sortOrder)!=null?d:[]));d=g.setDisplayPreferences;var k=new Hp,l=(e=(b=a.displayColumn)==null?void 0:b.map(SVa))!=
null?e:[];b=Hm(k,1,l);g=d.call(g,b).setCreatedTime(en(a.createdTimeMicros)).setModifiedTime(en(a.modifiedTimeMicros)).setOwnersList((f=(c=a.adminUsers)==null?void 0:c.map(Jm))!=null?f:[]);a.etag!==void 0&&(c=g.setEtag,a=a.etag,a=a.length?new Za(Waa(a,!0),ab):Ya(),c.call(g,a));return g},iYa=function(a){if(!Ym(a.getHotlistId()))throw Error("wd");if(!a.getName())throw Error("xd");if(!a.getCreatedTime())throw Error("yd");if(!a.getModifiedTime())throw Error("zd");var b,c,d,e;return{hotlistId:Ym(a.getHotlistId()),
name:a.getName(),description:(c=a.getDescription())!=null?c:"",archived:(d=a.getArchived())!=null?d:!1,createdTimeMicros:fn(a.getCreatedTime()),modifiedTimeMicros:fn(a.getModifiedTime()),displayColumn:VVa(a.getDisplayPreferences()),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(WVa),etag:yWa(a.getEtag())||void 0,adminUsers:(e=(b=a.getOwnersList())==null?void 0:b.map(Lm))!=null?e:[]}},jYa=function(a){return{issueId:a.getIssueId_asString(),position:a.getPosition(),issue:Fp(a.getIssue())}},
kYa=function(a){var b=Ci(a,Ip,1,Di()).map(jYa),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()}},mYa=function(a){return lYa[a]},rYa=function(a){var b=void 0;switch(a.getContentCase()){case 9:b={recommendedIssue:Fp($l(a,Jp,9,Kp))};break;case 10:b={recommendedHotlist:iYa($l(a,
Gp,10,Kp))};break;case 12:var c=a.getIssueModification();b={issueModification:{addState:c.getAdd()?NXa(c.getAdd()):void 0,addMask:PVa(c.getAddMask()),removeState:c.getRemove()?NXa(c.getRemove()):void 0,removeMask:PVa(c.getRemoveMask()),comment:c.getComment()?gp(c.getComment()):void 0}};break;case 11:var d=$l(a,nYa,11,Kp);c={name:d.getName(),entries:d.getEntriesList().map(oYa)};if(d=X(d,Jp,2))c.recommendedCanonicalIssue=Fp(d);b={issueDeduplicationBatch:c}}c=a.getName();d=a.getSource();var e=a.getResource();
var f=a.getType();f=pYa[f];var g=a.getRecommendation(),k=a.getScore();var l=a.getConfidence();l=qYa[l];var r=bn(a.getCreateTime());a.getRationale()?(a=a.getRationale(),a={text:a.getText(),formattingMode:$Wa(a.getFormattingMode()),formattedText:yi(a,lp,3)?cp(X(a,lp,3)):void 0,createTime:bn(a.getCreateTime())}):a=void 0;return{name:c,source:d,resource:e,type:f,recommendation:g,score:k,confidence:l,createTime:r,content:b,rationale:a}},vYa=function(a){var b=(new Lp).setName(a.name).setSource(a.source).setResource(a.resource).setType(lYa[a.type]).setRecommendation(a.recommendation).setScore(a.score).setConfidence(sYa[a.confidence]).setCreateTime(cn(a.createTime));
if(a.rationale){var c=b.setRationale,d=a.rationale,e=(new tYa).setText(d.text).setFormattingMode(mp(d.formattingMode)).setCreateTime(cn(d.createTime));d.formattedText&&(d=fXa(d.formattedText),Ni(e,lp,3,d));c.call(b,e)}var f;((f=a.content)==null?0:f.issueModification)&&b.setIssueModification(uYa(a.content.issueModification));return b},uYa=function(a){var b=new wYa;if(a.addState!==void 0){b.setAdd(UXa(a.addState));var c=b.getMutableAddMask(),d=a.addMask.map(QVa).filter(Qm);Hm(c,1,d)}a.removeState!==
void 0&&(b.setRemove(UXa(a.removeState)),c=b.getMutableRemoveMask(),d=a.removeMask.map(QVa).filter(Qm),Hm(c,1,d));if(a.comment!==void 0){c=b.setComment;d=a.comment;a=(new Mp).setIssueId(d.issueId).setCommentNumber(d.commentNumber).setVersion(d.version).setFormattingMode(mp(d.formattingMode)).setComment(d.unlinkifiedComment).setModifiedTime(en(d.lastModified));a=$o(a,13,d.redacted).setEtag(d.etag);if(d.commentContentVerdict){var e=a.setContentVerdict;var f=d.commentContentVerdict;if(f!=null&&f.piiVerdict){var g=
new Np;f=(new Io).setSeverity(hWa(f.piiVerdict.severity));g=Ni(g,Io,1,f)}else g=void 0;e.call(a,g)}d.formattedComment&&a.setFormattedComment(fXa(d.formattedComment));d.lastEditorUser&&(e=Jm(d.lastEditorUser),Ni(a,Fm,3,e));d.entityStatus&&a.setEntityStatus(oWa(d.entityStatus));d.piiRetention&&a.setRestrictedRetention(xWa(d.piiRetention));d.piiRetentionState&&a.setRestrictedRetentionState(rWa(d.piiRetentionState));if(d.commentReactions){e=d.commentReactions;d=new fp;e=m(e.entries());for(g=e.next();!g.done;g=
e.next()){f=m(g.value);g=f.next().value;var k=f.next().value;f=g;g=k;k=new np;var l=k.setType;a:switch(f){case "REACTION_TYPE_UNSPECIFIED":f=0;break a;case "UPVOTE":f=1;break a;default:throw Error("pd`"+f);}f=l.call(k,f);f=$o(f,1,g.hasReacted).setCount(g.count);g=g.recentResponders.map(Jm);g=Op(f,3,Fm,g);Pp(d,2,np,g)}Ni(a,fp,17,d)}c.call(b,a)}return b},AYa=function(a){var b=(new xYa).setParent(a.parent);a=a.userEngagement;var c=(new Qp).setType(yYa[a.type]);a.rejectionReason!==void 0&&Im(c,3,zYa[a.rejectionReason]);
a.issueModification!==void 0&&c.setIssueModification(uYa(a.issueModification));return Ni(b,Qp,2,c)},BYa=function(a){return{recommendations:a.getRecommendationsList().map(rYa),nextPageToken:a.getNextPageToken(),totalSize:Ym(a.getTotalSize())}},CYa=function(a){return{recommendations:a.getRecommendationsList().map(rYa)}},DYa=function(a){return{recommendations:a.getRecommendationsList().map(rYa)}},FYa=function(a){var b=(new EYa).setRecommendationsList(a.recommendations.map(vYa));a.parent&&b.setParent(a.parent);
a.resource&&b.setResource(a.resource);a.type&&b.setType(lYa[a.type]);return b},oYa=function(a){return{issue:Fp(a.getIssue()),recommendation:a.getRecommendation()}},GYa=function(a){var b;return((b=a.error)==null?void 0:b.message)!==void 0},Rp=function(a){return!!a&&Oa(a)&&(!!a.data&&a.data.message!==void 0||GYa(a))},Sp=function(a){return a.data&&a.data.message!==void 0&&a.data&&a.data.message?a.data.message:GYa(a)&&a.error&&a.error.message?a.error.message:""},HYa=function(a){if(a)return{status:zp[a.getStatus()],
issueIds:a.getIssueIdsList().map(Ym).map(Nm).filter(Qm)}},IYa=function(a){if(a)return{priority:Ap[a.getPriority()],issueIds:a.getIssueIdsList().map(Ym).map(Nm).filter(Qm)}},JYa=function(){},KYa=function(a){return Object.values(a).length>0},LYa=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},MYa=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},NYa=function(a,b){var c=a.getValue(),d={};c=m(Object.entries(c));for(var e=c.next();!e.done;e=
c.next()){var f=m(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},OYa=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(q(a)).sort());return JSON.stringify(b)},PYa=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},QYa=function(a){a=a===void 0?{}:a;return qRa(a)},RYa=function(a){var b=new sf,c=a.subscribe(b);a=ie(b);a.finally(function(){c.unsubscribe()});return a},SYa=function(a){return a==null?new Promise(function(){}):
Promise.resolve(a)},TYa=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 wb(a,"Unexpected pii severity")}},Tp=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},UYa=function(a){switch(a){case "RESTRICTED":return"Restricted";case "RESTRICTED_PLUS":return"Restricted+";default:return""}},VYa=function(a){return jWa(a.getIt())},Up=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,"+")},WYa=function(a){return{name:a.getName(),displayName:a.getDisplayName(),description:a.getDescription()}},$Ya=function(a){var b={issueId:a.getIssueId_asString(),category:a.getCategory(),author:Lm(a.getAuthor()),timestamp:bn(a.getTimestamp())},c=a.getContentCase();switch(c){case 3:a=$l(a,XYa,3,YYa);b.general={content:a.getContent(),
formattedContent:cp(a.getFormattedContent())};break;case 4:a=$l(a,ZYa,4,YYa);b.similarIssues={issueIds:a.getIssueIdsList_asString()};break;case 5:a=a.getSummary();b.summary={content:a.getContent(),formattedContent:cp(a.getFormattedContent())};break;default:throw Error("Md`"+c);}return b},aZa=function(a){var b={issueId:a.getIssueId_asString(),attachmentId:a.getAttachmentId_asString(),category:a.getCategory(),content:a.getContent(),formattedContent:cp(a.getFormattedContent()),author:Lm(a.getAuthor()),
timestamp:bn(a.getTimestamp()),contentVerdict:gWa(a.getContentVerdict())};vi(a,9)&&(b.customDisplayName=vi(a,9));return b},cZa=function(a){var b=(new Vp).setIssueId(a.issueId).setCategory(a.category).setFeedbackType(bZa[a.feedbackType]);a.attachmentId&&b.setAttachmentId(a.attachmentId);return b},dZa=function(a){var b;return{searchId:a.getSavedSearchId_asString(),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(WVa),displayColumn:VVa(a.getDisplayPreferences()),
adminUsers:((b=a.getOwnersList())!=null?b:[]).map(Lm)}},eZa=function(a){var b,c,d=(new Wp).setSavedSearchId(Number(a.searchId)).setName(a.name).setDescription(a.description).setQuery(a.query).setDefaultOrderBy(YVa((b=a.sortOrder)!=null?b:[]));b=d.setDisplayPreferences;var e=(c=a.displayColumn)!=null?c:[];c=new Hp;e=e.map(SVa);c=Hm(c,1,e);return b.call(d,c).setOwnersList(a.adminUsers.map(Jm))},gZa=function(a){switch(xo(a,Xp)){case 1:var b=a.getHotlist(),c=(b==null?0:b.getHotlist())?iYa(b.getHotlist()):
void 0,d;b=(d=Zm(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())?dZa(e.getSavedSearch()):void 0,e=(e==null?0:e.getSavedSearchId())?e.getSavedSearchId_asString():"",{savedSearchId:e,savedSearch:d,name:(c=d==null?void 0:d.name)!=null?c:"Saved search "+e,resourceType:"SAVED_SEARCH"};case 3:d=a.getBookmarkGroup();e=(d==null?0:d.getBookmarkGroup())?
fZa(d.getBookmarkGroup()):void 0;var f;return{bookmarkGroupId:(b=d==null?void 0:d.getBookmarkGroupId_asString())!=null?b:"",bookmarkGroup:e,name:(f=e==null?void 0:e.name)!=null?f:"",resourceType:"BOOKMARK_GROUP"};default:throw Error("Nd");}},iZa=function(a){switch(a.resourceType){case "HOTLIST":var b=(new Yp).setHotlistId(a.hotlistId);a.hotlist&&b.setHotlist(hYa(a.hotlist));return(new Zp).setHotlist(b);case "SAVED_SEARCH":return b=new $p,a.savedSearchId&&b.setSavedSearchId(Number(a.savedSearchId)),
a.savedSearch&&b.setSavedSearch(eZa(a.savedSearch)),(new Zp).setSavedSearch(b);case "BOOKMARK_GROUP":return b=(new aq).setBookmarkGroupId(Number(a.bookmarkGroupId)),a.bookmarkGroup&&b.setBookmarkGroup(hZa(a.bookmarkGroup)),(new Zp).setBookmarkGroup(b);default:wb(a.resourceType,"Unexpected resourceType in bookmarkItemToItProto")}},fZa=function(a){var b=a.getArchived(),c=a.getBookmarkGroupId_asString(),d=a.getDescription();var e=Ci(a,Zp,5,Di());return{archived:b,bookmarkGroupId:c,description:d,item:e.map(gZa),
name:a.getName(),adminUsers:a.getOwnersList().map(Lm)}},hZa=function(a){var b,c=(new bq).setBookmarkGroupId(Number(a.bookmarkGroupId)).setName(a.name).setDescription(a.description).setArchived(a.archived),d=(b=a.item.map(iZa))!=null?b:[];return Oi(c,5,d).setOwnersList(a.adminUsers.map(Jm))},jZa=function(a){switch(a.resourceType){case "HOTLIST":return(new Zp).setHotlist((new Yp).setHotlistId(a.resourceId));case "SAVED_SEARCH":var b=new $p;a.resourceId&&b.setSavedSearchId(Number(a.resourceId));return(new Zp).setSavedSearch(b);
case "BOOKMARK_GROUP":return(new Zp).setBookmarkGroup((new aq).setBookmarkGroupId(Number(a.resourceId)));default:wb(a.resourceType,"Unexpected resourceType in bookmarkItemForUpdateToItProto")}},kZa=function(a){a=fZa(a).item;a=lUa(a,function(k){return k.resourceType});var b,c,d,e,f,g;return{bookmarkGroups:(e=(b=a.get("BOOKMARK_GROUP"))==null?void 0:b.map(function(k){return k.bookmarkGroup}).filter(Qm))!=null?e:[],hotlists:(f=(c=a.get("HOTLIST"))==null?void 0:c.map(function(k){return k.hotlist}).filter(Qm))!=
null?f:[],savedSearches:(g=(d=a.get("SAVED_SEARCH"))==null?void 0:d.map(function(k){return k.savedSearch}).filter(Qm))!=null?g:[]}},lZa=function(a){return fZa(a.getIt())},mZa=function(a){a=Ci(a,bq,2,Di(),jb);return(a!=null?a:[]).map(fZa)},nZa=function(a){a=Em(a,1,Di(Km),jb);return{changelistNumbers:a!=null?a:[]}},qZa=function(a){return{changelists:Ci(a,oZa,1,Di(),jb).map(pZa),nextPageToken:a.getNextPageToken()}},pZa=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:a.getChangelistNumber(),
pending:a.getPending(),timestamp:bn(a.getTimestamp()),issueIds:(b=a.getIssueIdsList_asString())!=null?b:[],fixedIssueIds:(c=Sm(a,6))!=null?c:[]}},rZa=function(a){var b=a.getAuthor(),c=a.getDescription(),d=a.getPending(),e=Ym(a.getTimestamp());a=Dm(a,5,Di(Km),jb);return{author:b,description:c,pending:d,timestamp:e,affectedFiles:a!=null?a:[]}},sZa=function(a){if(a)return cWa(a.getIt())},tZa=function(a){var b=Dm(a,1,Di(Km),jb);a=Dm(a,2,Di(Km),jb);return{noAccessEmails:b,unknownEmails:a}},uZa=function(a){var b=
a.getIt();a=Ci(b,Bo,2,Di()).map(Ao);var c=b.getAppendersList().map(Ao),d=Ci(b,Bo,4,Di()).map(Ao),e=b.getReadersList().map(Ao),f=Ci(b,Bo,11,Di()).map(Ao),g=Ci(b,Bo,12,Di()).map(Ao),k=Ci(b,Bo,3,Di()).map(Ao),l=Ci(b,Bo,7,Di()).map(Ao),r=Ci(b,Bo,5,Di()).map(Ao),w=Ci(b,Bo,9,Di()).map(Ao);a:switch(xi(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("hd");}return{admins:a,appenders:c,editors:d,readers:e,restrictedReaders:f,restrictedPlusReaders:g,
inheritedAdmins:k,implicitAppenders:l,implicitEditors:r,implicitReaders:w,implicitAccess:b}},wZa=function(a,b){b=b===void 0?document.documentElement:b;return oe(pe(function(){return ee(b.querySelector(a))}),vZa(b,{childList:!0,subtree:!0}).pipe(we(function(c){return c.some(function(d){return d.addedNodes.length>0})}),A(function(){return b.querySelector(a)}))).pipe(we(Qm),nf(1),A(function(c){return c}))},vZa=function(a,b){return new Vd(function(c){var d=new MutationObserver(function(e){c.next(e)});
d.observe(a,b);return function(){d.disconnect()}})},cq=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)}}},xZa=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(" > ")},yZa=function(a){var b={};a=m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=
m(c.value);c=d.next().value;d=d.next().value;d!=null&&(b[c]=String(d))}b=new URLSearchParams(b);return String(b)},dq=function(a){return a.ctrlKey||a.metaKey||a instanceof MouseEvent&&a.button===1},fq=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 eq(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("Pd`"+a);}},AZa=function(a){var b=FWa(a.getFieldId()),c=xi(a,4);return{fieldId:b,stateOnIssues:zZa[c],enabledOnIssues:Gi(a,5)}},DZa=function(a){var b,c,d;return{name:a.getName(),componentId:Om(a.getComponentId_asString()),issueTypes:new Set((d=(b=$l(a,BZa,5,CZa))==null?void 0:(c=xn(b,1,Di()))==null?void 0:c.map(hXa))!=null?d:[]),customFieldConfigs:new Map(Ci(a,gq,
3,Di()).map(function(e){return[Ym(e.getFieldId().getCustomFieldId()),e.getState()===2]}))}},IZa=function(a){var b=EZa((new hq).setComponentId(a.componentId).setName(a.name),Array.from(a.customFieldConfigs,function(c){var d=m(c);c=d.next().value;d=d.next().value;return(new gq).setFieldId(HWa({customFieldId:c})).setState(d?2:1)}));a=[].concat(q(a.issueTypes));a.length>0?FZa(b,GZa(new BZa,a.map(iXa))):HZa(b);return b},LZa=function(a){var b=X(a,iq,7),c,d=(c=b==null?void 0:b.getSlo())!=null?c:new jq,e;
c=a.getId_asString();var f=(e=b==null?void 0:b.getVersion())!=null?e:0;e=a.getName();var g=a.getDescription(),k=[].concat(q(a.getPathNamesList())),l=a.getPathIdsList_asString(),r=[],w=r.concat;var x=Dm(a,5,Di());r=w.call(r,q(x));w=a.getMembersList().map(JZa);a=Gi(a,9);d={inherit:d.getInherit(),sloId:d.getId_asString(),comment:d.getComment(),sourceTeamId:d.getSourceTeamId_asString()};if(b){x=b==null?void 0:b.getEscalationOwner();var C=b==null?void 0:b.getDefaultEscalationOwner();switch(b==null?void 0:
xo(b,KZa)){case 9:b=Lm($l(b,Fm,9,KZa));break;case 10:b={emailAddress:"",obfuscatedEmailAddress:"",userGaiaStatus:"UNSPECIFIED",aliases:[]};break;default:b=void 0}b={escalationOwner:x?Lm(x):void 0,defaultEscalationOwner:C?Lm(C):void 0,escalationOwnerOverride:b}}else b=void 0;return{teamId:c,version:f,name:e,description:g,pathNames:k,pathIds:l,collapsedPathNames:r,members:w,deleted:a,slo:d,extra:b}},JZa=function(a){var b=a.getUser();return{user:b?Lm(b):{},isLead:a.getIsLead()}},NZa=function(a){return(new MZa).setIsLead(a.isLead).setUser(Jm(a.user))},
OZa=function(a){var b=new jq;b.setInherit(a.inherit).setId(Number(a.sloId)).setComment(a.comment).setSourceTeamId(Number(a.sourceTeamId));return b},PZa=function(a){return(new kq).setInherit(a.inherit).setId(a.id)},QZa=function(a){var b=a.getTeamId();b=b==null?null:String(b);return{teamId:b!=null?b:"",score:a.getScore()}},SZa=function(a){return(new RZa).setTeamId(Number(a.teamId)).setScore(a.score)},UZa=function(a){var b=Ci(a,TZa,4,Di()).map(AZa);b=new Map(b.map(function(g){return[g.fieldId.customFieldId,
g]}));var c,d,e=(d=(c=Ci(a,Zo,5,Di()))==null?void 0:c.map(OWa))!=null?d:[];c=m(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(DZa);c=new Map;d=m(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:Sm(a,1).map(Om).filter(Qm),componentPathName:Dm(a,2,Di(Km)),
allCustomField:e,fieldConfigsMap:b,fieldConfigsV2Map:c}},VZa=function(a){switch(a){case "ALL_PROTECTIONS":return 2;case "NO_PROTECTIONS":return 1;case "SPAM_PROTECTION_UNSPECIFIED":return 0;default:return 0}},YZa=function(a){var b=yi(a,No,15)?tWa(X(a,No,15)):void 0,c=yi(a,lq,7)?UZa(X(a,lq,7)):void 0;if(a.hasSlo()){var d=a.getSlo();var e=d.getInherit(),f=d.getSource();d={inherit:e,source:WZa[f],id:Om(d.getId_asString()),sourceComponentId:Om(un(d,6)),sourceTeamId:Om(d.getSourceTeamId_asString()),comment:d.getComment()}}else d=
void 0;var g;if(yi(a,ap,18)){f=a.getEffortSpec();e=f.getInherit();var k=Ym(f.getId()),l=f.getName();a:switch(xi(f,6)){case 2:var r="MAX";break a;case 1:r="SUM";break a;default:r="AGGREGATION_TYPE_UNSPECIFIED"}e={inherit:e,id:k,name:l,aggregationType:r,customFieldId:Ym(f.getCustomFieldId())};if(Ri(f,VWa,4,mq)){if(g=$l(f,VWa,4,mq))e.numericSpec={multiplier:em(g,1)}}else if(Ri(f,YWa,5,mq)&&(f=$l(f,YWa,5,mq),e.enumSpec={options:[]},f&&(f==null?void 0:(g=Ci(f,bp,1,Di()))==null?void 0:g.length)>0))for(g=
m(Ci(f,bp,1,Di())),f=g.next();!f.done;f=g.next())f=f.value,l=k=void 0,(k=e.enumSpec)==null||(l=k.options)==null||l.push({label:f.getLabel(),value:f.getValue()});g=e}else g=void 0;a.hasTeam()?(e=a.getTeam(),e={inherit:e.getInherit(),id:e.getId_asString()}):e=void 0;f=cWa(a.getAccessLimit());k=xi(a,21);k=k===2?"ALL_PROTECTIONS":k===1?"NO_PROTECTIONS":"SPAM_PROTECTION_UNSPECIFIED";l=Ym(a.getTrackerId())?a.getTrackerId_asString():void 0;r=a.getComponentId_asString();var w,x,C=Om(un(a,3)),H=a.getName(),
J=a.getDescription(),O=a.getIsArchived(),R="buganizer-system+"+a.getComponentId()+"@google.com";var V=xi(a,10)===1?"ENABLED":"DISABLED";var ca=Ym(pn(a,6)),oa=Mm(ca);if(oa==null)throw Error("Qd`"+ca);ca=xi(a,17);return{componentId:r==="0"?"":r,parentComponentId:C,name:H,description:J,archived:O,componentPathInfo:c,accessLimit:f,emailAlias:R,commentEditState:V,defaultTemplateId:oa,slo:d,retentionSettings:b,fieldOrdering:XZa[ca],effortSpec:g,team:e,teamSuggestions:(x=(w=a.getTeamSuggestionsList())==
null?void 0:w.map(QZa))!=null?x:[],trackerId:l==="0"?void 0:l,spamProtection:k}},ZZa=function(a){return{author:Lm(a.getAuthor()),timestamp:bn(a.getTimestamp()),add:YZa(a.getAdd()),remove:YZa(a.getRemove()),addMask:MVa(a.getAddMask()),removeMask:MVa(a.getRemoveMask())}},a_a=function(a){a=a.getIt();var b;return{updates:((b=Ci(a,$Za,1,Di()))!=null?b:[]).map(ZZa)}},nq=function(a){return YZa(a.getIt())},b_a=function(a){var b=new oq;b=Ko(b,3,a.parentComponentId).setName(a.name).setDescription(a.description);
a.commentEditState&&b.setCommentEditState(a.commentEditState==="ENABLED"?1:2);a.retentionSettings&&(a=vWa(a.retentionSettings),Ni(b,No,15,a));return(new pq).setIt(b)},c_a=function(a){var b;return((b=a.getComponentsList())!=null?b:[]).map(nq)},d_a=function(a){return{warningHeader:vi(a,1,void 0,jb),warning:vi(a,2,void 0,jb),isAllowed:Gi(a,3,void 0,jb),isExternalMove:Gi(a,4,void 0,jb)}},f_a=function(a){a=a.getIt();var b=NXa(a.getIssueState());a.getComment()&&(b.comment=a.getComment());a.getFormattingMode()&&
(b.formattingMode=e_a[a.getFormattingMode()]);return{componentId:Om(a.getComponentId_asString()),templateId:Ym(a.getTemplateId()),name:a.getName(),description:a.getDescription(),default:Gi(a,9),inheritable:Gi(a,10),snapshot:b}},h_a=function(a){var b=new qq,c=b.setIt;var d=(new g_a).setFormattingMode(mp(a.snapshot.formattingMode)).setComment(a.snapshot.comment).setComponentId(a.componentId).setTemplateId(a.templateId).setName(a.name).setDescription(a.description);d=$o(d,9,a.default);a=$o(d,10,a.inheritable).setIssueState(UXa(a.snapshot));
return c.call(b,a)},i_a=function(a){a=Ci(a,pq,1,Di(),jb);return(a!=null?a:[]).map(nq)},j_a=function(a){var b,c;return((c=(b=a.getIt())==null?void 0:b.getComponentsList())!=null?c:[]).map(YZa)},k_a=function(a){return{componentPath:a.getComponentPath(),retentionSettings:tWa(X(a,No,3))}},m_a=function(a){return Ci(a,l_a,2,Di(),jb).map(k_a)},n_a=function(a){return f_a(X(a,qq,1,jb))},o_a=function(a){return(Ci(a,qq,1,Di(),jb)||[]).map(f_a)},p_a=function(a){return(new rq).setIt(hYa(a))},sq=function(a){return iYa(a.getIt())},
r_a=function(a){a=X(a,q_a,1,jb);return gZa(a.getIt())},s_a=function(a){return dZa(a.getIt())},t_a=function(a){return s_a(a.getSearch())},u_a=function(a){return Ci(a,tq,1,Di(),jb).map(s_a)},vq=function(a){return uq(a,OUa)},uq=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},v_a=function(a){return function(b){return uq(b,a)}},w_a=function(a,b){return a.map(function(c,d){return[c,b[d]]})},x_a=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},y_a=function(a,b){return a===b?!0:a.length!==b.length?!1:a.every(function(c,d){return c===b[d]})},z_a=function(a,b){a=[].concat(q(a)).sort();b=[].concat(q(b)).sort();return y_a(a,b)},A_a=function(a,b){if(a.length===0)return b;b=b.slice();b=x_a(a,b);return[].concat(q(a),q(b))},B_a=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)})}},
C_a=function(a,b){a=lUa(a,b);return[].concat(q(a.values()))},D_a=function(a){for(var b=[],c=0;c<a.length;c+=100)b.push(a.slice(c,c+100));return b},E_a=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]})},F_a=function(a){return{id:String(a.hotlistId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"HOTLIST"}},G_a=function(a){switch(a.resourceType){case "HOTLIST":var b,c,d,e;return{id:String(a.hotlistId),
name:a.name,description:(d=(b=a.hotlist)==null?void 0:b.description)!=null?d:"",adminUsers:(e=(c=a.hotlist)==null?void 0:c.adminUsers)!=null?e:[],starred:!0,resourceType:"HOTLIST"};case "SAVED_SEARCH":var f,g,k,l;return{id:String(a.savedSearchId),name:a.name,description:(k=(f=a.savedSearch)==null?void 0:f.description)!=null?k:"",adminUsers:(l=(g=a.savedSearch)==null?void 0:g.adminUsers)!=null?l:[],starred:!0,resourceType:"SAVED_SEARCH"};case "BOOKMARK_GROUP":throw Error("Wd");default:wb(a.resourceType,
"Unexpected type in bookmarkItemToLink")}},H_a=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(G_a)}},L_a=function(a,b,c){var d=new Map,e=new Map,f=new Map,g=new Map,k=new Map;b=m(b);for(var l=b.next();!l.done;l=b.next())l=l.value,l.archived?e.set(l.bookmarkGroupId,l):d.set(l.bookmarkGroupId,l);b=[].concat(q(d.values())).flatMap(function(r){var w;
return(w=r.item)!=null?w:[]});b=new Set(b.filter(function(r){return r.resourceType==="HOTLIST"}).map(function(r){return r.hotlistId}));a=m(a);for(l=a.next();!l.done;l=a.next())l=l.value,b.has(l.hotlistId)||(l.archived?g.set(l.hotlistId,F_a(l)):f.set(l.hotlistId,F_a(l)));c=m(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:I_a([].concat(q(d.values())).map(H_a)),archivedBookmarkGroups:I_a([].concat(q(e.values())).map(H_a)),hotlists:J_a(f.values()),archivedHotlists:J_a(g.values()),savedSearches:K_a(k.values())}},M_a=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=m([].concat(q(a.hotlists),q(a.archivedHotlists))),f=e.next();!f.done;f=
e.next())f=f.value,f.starred=c.has(Number(f.id));e=m([].concat(q(a.bookmarkGroups),q(a.archivedBookmarkGroups)));for(f=e.next();!f.done;f=e.next()){f=f.value;f.starred=d.has(f.id);var g=void 0;f=m((g=f.sublinks)!=null?g:[]);for(g=f.next();!g.done;g=f.next())switch(g=g.value,g.resourceType){case "HOTLIST":g.starred=c.has(Number(g.id));break;case "SAVED_SEARCH":g.starred=b.has(g.id);break;case "BOOKMARK_GROUP":g.starred=d.has(g.id);break;default:throw Error("Xd");}}c=m(a.savedSearches);for(d=c.next();!d.done;d=
c.next())d=d.value,d.starred=b.has(d.id);return a},N_a=function(a){return NWa(a.getIt())},P_a=function(a){return(new O_a).setIt(RWa(a))},Q_a=function(a){a=a.getIt();return{customFields:a.getCustomFieldsList().map(NWa),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},T_a=function(a){var b,c=(b=X(a,wq,2,jb))==null?void 0:xi(b,1),d;b=(d=X(a,wq,2,jb))==null?void 0:xi(d,4);var e,f,g,k;d=a.getId_asString();c={phase:c!=null?R_a[c]:"UNSPECIFIED",subphase:b!=null?S_a[b]:"TRIAGE_SUBPHASE_UNSPECIFIED",
triagerEmail:(g=(e=X(a,wq,2,jb))==null?void 0:vi(e,3))!=null?g:void 0,dismissed:(k=bn((f=X(a,wq,2,jb))==null?void 0:X(f,Ti,5)))!=null?k:void 0};a=Dm(a,4,Di(),jb);return{id:d,triage:c,clusterIds:a}},W_a=function(a){var b=new wq;b=Hn(b,1,U_a[a.triage.phase]);b=Hn(b,4,V_a[a.triage.subphase]);b=pj(b,3,a.triage.triagerEmail);if(a.triage.dismissed){var c=cn(a.triage.dismissed);Ni(b,Ti,5,c)}b=(new xq).setId(a.id).setTriage(b);return Ac(b,4,Sb,a.clusterIds,Tb,jb)},$_a=function(a){var b=a.getId_asString();
if(b&&b!=="0"){var c={id:0},d=Ci(a,yq,2,Di(),jb).map(function(f){var g,k,l,r,w;return{scope:(k=f.getScope())!=null?k:void 0,showComponentColumn:(l=Gi(f,2))!=null?l:!1,config:Ci(f,X_a,3,Di()).map(Y_a)||[],id:(r=Ym(f.getId()))!=null?r:0,displayName:f.getDisplayName()||void 0,displayColumns:(w=(g=f.getDisplayColumns())==null?void 0:g.getColumnList().map(pSa).filter(Qm))!=null?w:[]}});d.length===0&&d.push(c);var e;return{id:b,triage:d,playbooks:(e=Ci(a,zq,3,Di(),jb).map(Z_a))!=null?e:[]}}},Z_a=function(a){var b,
c,d;return{name:(b=a.getName())!=null?b:void 0,instructions:(c=vi(a,2))!=null?c:void 0,searchQuery:(d=vi(a,3))!=null?d:void 0}},a0a=function(a){var b,c,d,e=(new zq).setName((b=a.name)!=null?b:"");b=(c=a.instructions)!=null?c:"";c=pj(e,2,b);a=(d=a.searchQuery)!=null?d:"";return pj(c,3,a)},Y_a=function(a){switch(xo(a,b0a)){case 1:return{type:"CUSTOM_FIELD",customFieldConfig:c0a($l(a,Aq,1,b0a))};case 2:return{type:"HOTLIST",hotlistConfig:d0a($l(a,e0a,2,b0a))};default:throw Error("Yd");}},j0a=function(a){var b=
new X_a;if(a.type==="CUSTOM_FIELD"&&a.customFieldConfig)a=f0a(a.customFieldConfig),Yo(b,1,b0a,a);else if(a.type==="HOTLIST"&&a.hotlistConfig){a=a.hotlistConfig;var c=(new e0a).setHotlistIdsList(a.hotlistIds);a=Hn(c,2,g0a[a.operation]).setPhasesList(h0a(a.phases)).setSubphasesList(i0a(a.subphases));Yo(b,2,b0a,a)}return b},c0a=function(a){var b,c=(b=Ci(a,k0a,2,Di()).map(function(d){return{phases:d.getPhasesList().map(function(e){return R_a[e]}),subphases:d.getSubphasesList().map(function(e){return S_a[e]}),
value:IWa(d.getValue())}}))!=null?b:[];return{customFieldId:a.getCustomFieldId_asString(),defaultValues:c}},f0a=function(a){var b=(new Aq).setCustomFieldId(a.customFieldId);a=a.defaultValues.map(function(c){return(new k0a).setPhasesList(h0a(c.phases)).setSubphasesList(i0a(c.subphases)).setValue(KWa(c.value))});Oi(b,2,a);return b},d0a=function(a){return{hotlistIds:a.getHotlistIdsList_asString(),operation:l0a[xi(a,2)],phases:a.getPhasesList().map(function(b){return R_a[b]}),subphases:a.getSubphasesList().map(function(b){return S_a[b]})}},
h0a=function(a){var b;return(b=a==null?void 0:a.map(function(c){return U_a[c]}))!=null?b:[]},i0a=function(a){var b;return(b=a==null?void 0:a.map(function(c){return V_a[c]}))!=null?b:[]},m0a=function(a){var b=new yq;a.scope&&b.setScope(a.scope);var c;Pi(b,2,a.showComponentColumn).setId(a.id).setDisplayName(a.displayName).setDisplayColumns(bTa({column:(c=a.displayColumns)!=null?c:[]}));a.config&&(a=a.config.map(j0a),Op(b,3,X_a,a));return b},n0a=function(a){a==="[Deleted User]"&&(a="nobody@google.com");
a.includes("@")||(a+="@google.com");var b=new Fm;return Gm(b,1,a)},o0a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(n0a))!=null?b:[]},Bq=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(Mm).filter(Qm))!=null?b:[]},p0a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean))!=null?b:[]},r0a=function(a){var b=new Set,c=new Set,d=new Bp,e=new Bp;a=m(a);for(var f=a.next();!f.done;f=a.next())switch(f=f.value,f.fieldName){case "assignee":f.value?
(d.setAssignee(n0a(f.value)),b.add("assignee")):(e.setAssignee(new Fm),c.add("assignee"));break;case "attachments":break;case "blockedByIssueId":f.actionType==="ADD"?(d.addAllBlockedByIssueIds(Bq(f.value)),b.add("blocked_by_issue_ids")):(e.addAllBlockedByIssueIds(Bq(f.value)),c.add("blocked_by_issue_ids"));break;case "blockingIssueId":f.actionType==="ADD"?(d.addAllBlockingIssueIds(Bq(f.value)),b.add("blocking_issue_ids")):(e.addAllBlockingIssueIds(Bq(f.value)),c.add("blocking_issue_ids"));break;case "ccs":f.actionType===
"ADD"?(d.addAllCcs(o0a(f.value)),b.add("ccs")):(e.addAllCcs(o0a(f.value)),c.add("ccs"));break;case "changelists":f.actionType==="ADD"?(d.addAllCodeChanges(p0a(f.value)),b.add("code_changes")):(e.addAllCodeChanges(p0a(f.value)),c.add("code_changes"));break;case "collaborators":f.actionType==="ADD"?(d.addAllCollaborators(o0a(f.value)),b.add("collaborators")):(e.addAllCollaborators(o0a(f.value)),c.add("collaborators"));break;case "staffing":if(!f.staffingValue)break;f.actionType==="ADD"?(d.setStaffing(AXa(f.staffingValue)),
b.add("staffing")):(e.setStaffing(AXa(f.staffingValue)),c.add("staffing"));break;case "comment":break;case "componentId":d.setComponentId(Mm(f.value));b.add("component_id");break;case "customField":if(!f.customFieldValue)break;var g=KWa(f.customFieldValue);f.actionType==="ADD"?(d.addCustomFields(g),b.add("custom_fields")):(e.addCustomFields(g),c.add("custom_fields"));break;case "deletionReason":f.value!=null?(d.setDeletionReason(SXa[f.value]),b.add("deletion_reason")):(e.setDeletionReason(2),c.add("deletion_reason"));
break;case "duplicateOfIssueId":(f=Mm(f.value))?(d.setCanonicalIssueId(f),b.add("canonical_issue_id")):c.add("canonical_issue_id");break;case "effortEstimate":f.value?(g=new Cp,f=Gm(g,2,f.value),d.setEffort(f),b.add("effort")):(e.setEffort(new Cp),c.add("effort"));break;case "foundInVersion":if(f.value==null)continue;f.actionType==="ADD"?(Cq(d,17,f.value),b.add("found_in_versions")):(Cq(e,17,f.value),c.add("found_in_versions"));break;case "gerritChanges":g=(f.gerritChangeValue||[]).map(RXa);f.actionType===
"ADD"?(d.addAllGerritChanges(g),b.add("gerrit_changes")):(e.addAllGerritChanges(g),c.add("gerrit_changes"));break;case "hotlists":f.actionType==="ADD"?(d.addAllHotlistIds(Bq(f.value)),b.add("hotlist_ids")):(e.addAllHotlistIds(Bq(f.value)),c.add("hotlist_ids"));break;case "inProd":d.setInProd(f.value==="true");b.add("in_prod");break;case "type":d.setType(q0a[f.value]);b.add("type");break;case "isArchived":d.setIsArchived(f.value==="true");b.add("is_archived");break;case "isDeleted":d.setIsDeleted(f.value===
"true");b.add("is_deleted");break;case "parentId":break;case "priority":d.setPriority(PXa[f.value]);b.add("priority");break;case "readState":break;case "reporter":d.setReporter(n0a(f.value));b.add("reporter");break;case "severity":d.setSeverity(QXa[f.value]);b.add("severity");break;case "sloEndTime":(f=Mm(f.value))?(d.setSloEndTime(cn({seconds:f,nanos:0})),b.add("slo_end_time")):(e.setSloEndTime(new Ti),c.add("slo_end_time"));break;case "sloSnoozeType":d.setSloSnoozeType(TXa[f.value]);b.add("slo_snooze_type");
break;case "sloStartTime":(f=Mm(f.value))?(d.setSloSnoozeUntil(cn({seconds:f,nanos:0})),b.add("slo_snooze_until")):(e.setSloSnoozeUntil(new Ti),c.add("slo_snooze_until"));break;case "status":d.setStatus(OXa[f.value]);b.add("status");break;case "targetedToVersion":if(f.value==null)continue;f.actionType==="ADD"?(Cq(d,18,f.value),b.add("targeted_to_versions")):(Cq(e,18,f.value),c.add("targeted_to_versions"));break;case "title":d.setTitle(f.value);b.add("title");break;case "verifiedInVersion":if(f.value==
null)continue;f.actionType==="ADD"?(Cq(d,19,f.value),b.add("verified_in_versions")):(Cq(e,19,f.value),c.add("verified_in_versions"));break;case "verifier":f.value?(d.setVerifier(n0a(f.value)),b.add("verifier")):(e.setVerifier(new Fm),c.add("verifier"));break;default:wb(f.fieldName,"Unhandled IssueFieldName in actionsToIssueStateChanges")}a=new Dq;b=Array.from(b);b=Ac(a,1,Sb,b,Tb);a=new Dq;c=Array.from(c);c=Ac(a,1,Sb,c,Tb);return{addMask:b,removeMask:c,stateAddBuilder:d,stateRemoveBuilder:e}},t0a=
function(a){var b=r0a(a.actions),c=b.addMask,d=b.removeMask,e=b.stateAddBuilder;b=b.stateRemoveBuilder;c=(new s0a).setIssueId(Number(a.issueId)).setAdd(e).setRemove(b).setAddMask(c).setRemoveMask(d);(a=Ia(a.actions.filter(function(f){return f.fieldName==="comment"})))&&a.value!=null&&c.setIssueComment((new Mp).setComment(a.value));return c},v0a=function(a,b,c,d){var e=new Eq,f=e.setIt;a=(new u0a).setIssueId(a);b&&a.setIssueAccessLimit($Va(b));c&&a.setAddedCollaboratorsList(c.map(Jm));d&&a.setRemovedCollaboratorsList(d.map(Jm));
return f.call(e,a)},w0a=function(a){return(new Fq).setIt((new Gq).setIssueId(Number(a)))},z0a=function(a){return(new x0a).setIt((new y0a).setIssueId(Number(a.issueId)).setComponentId(Number(a.componentId)))},C0a=function(a){var b,c=new A0a,d=c.setIt,e=(new B0a).setIssueId(String(a.issueId)).setComponentId(a.componentId);a=(b=a.setLimitViewTrusted)!=null?b:!1;b=$o(e,3,a);return d.call(c,b)},D0a=function(a){return{issueId:Om(a.getIssueId_asString()),status:zp[a.getStatus()],title:a.getTitle()}},G0a=
function(a){var b=(new E0a).setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&Hn(b,3,F0a[a.actionType]);if(a.customFieldValue){var c=b.setCustomFieldValue;a=a.customFieldValue;a=(new Iq).setIt(KWa(a));c.call(b,a)}return b},I0a=function(a){return(new H0a).setIt(t0a(a))},M0a=function(a){var b=new J0a;var c=a.addHotlistIds.map(String);b=xc(b,1,c,Hb);c=a.removeHotlistIds.map(String);b=xc(b,2,c,Hb);var d=a.hotlistIssue;a=(new Ip).setIssueId(Number(d.issueId));d.position&&a.setPosition(d.position);
if(d.issue){c=a.setIssue;d=d.issue;var e=(new Jp).setIssueId(d.issueId).setVersion(d.version).setCustomFieldsList(d.customFields.map(RWa)),f=d.visibleFields.map(HWa);e=Oi(e,34,f).setMajorModifiedTime(en(d.majorModifiedTimeMicros)).setParentIssueIdsList(d.parentIssueIds.map(Mm).filter(Qm)).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(UXa(d.snapshot[0]));d.statusUpdate&&e.setStatusUpdate(HXa(d.statusUpdate));if(d.userData){var g=d.userData;f=new K0a;g.voted&&$o(f,2,g.voted);g.starred&&$o(f,1,g.starred);g.notificationSubscription&&f.setNotificationSubscription(L0a[g.notificationSubscription]);g.lastViewedTimeMicros!==void 0&&(g=en(g.lastViewedTimeMicros),Ni(f,Ti,5,g));Ni(e,K0a,9,f)}if(d.aggregatedData){Ko(e,10,d.aggregatedData.voteCount).setCreatedTime(en(d.aggregatedData.createdTimeMicros)).setResolvedTime(en(d.aggregatedData.resolvedTimeMicros)).setVerifiedTime(en(d.aggregatedData.verifiedTimeMicros)).setModifiedTime(en(d.aggregatedData.modifiedTimeMicros));
d.aggregatedData.lastModifier&&(f=Jm(d.aggregatedData.lastModifier),Ni(e,Fm,14,f));if(d.aggregatedData.sloStatus){f=e.setSloStatus;var k=d.aggregatedData.sloStatus;g=new Jq;if(k.assignmentBounds){var l=mXa(k.assignmentBounds);Ni(g,op,1,l)}k.responseBounds&&(l=mXa(k.responseBounds),Ni(g,op,2,l));k.closureBounds&&(k=mXa(k.closureBounds),Ni(g,op,3,k));f.call(e,g)}d.aggregatedData.sloId&&e.setSloId(d.aggregatedData.sloId);d.aggregatedData.teamId&&e.setTeamId(d.aggregatedData.teamId);d.aggregatedData.retentionState&&
e.setRetentionState(rWa(d.aggregatedData.retentionState))}d.accessLimit&&e.setAccessLimit(eWa(d.accessLimit));if(d.ancestors)for(f=e.getAncestorsMap(),g=m(d.ancestors.entries()),k=g.next();!k.done;k=g.next())l=m(k.value),k=l.next().value,l=l.next().value,f.set(mb(k),(new Kq).setSourceIssueIdsList(l.sourceIssueIds.map(Mm).filter(Qm)));d.userActivityStats&&(f=d.userActivityStats,g=new eYa,g=Ko(g,1,f.oneDayViewCount),g=Ko(g,2,f.sevenDayViewCount),f=Ko(g,3,f.thirtyDayViewCount),Ni(e,eYa,47,f));d.escalationOwner&&
e.setEscalationOwner(Jm(d.escalationOwner));c.call(a,e)}a=(new Lq).setIt(a);return Ni(b,Lq,3,a)},O0a=function(a){var b=Ci(a,N0a,1,Di(),jb);return{issueDigests:(b!=null?b:[]).map(D0a),numTotalResults:Ym(pn(a,2,void 0,jb))}},R0a=function(a){var b=(new P0a).setIssueId(a.issueId).setRetention(xWa(a.retention));a.significanceOverride&&b.setSignificanceOverride(QWa[a.significanceOverride]);return(new Q0a).setIt(b)},W0a=function(a){var b=new S0a,c=b.setIt,d=(new Jp).setIssueState(UXa(a.snapshot));a.snapshot.comment&&
d.setIssueComment((new Mp).setComment(a.snapshot.comment).setFormattingMode(mp(a.snapshot.formattingMode)));a.attachments&&d.addAllAttachments(a.attachments.map(BWa));d=(new T0a).setIssue(d);if(a.templateId!=null){var e=new U0a;e=$o(e,1,!1).setTemplateId(a.templateId);Ni(d,U0a,3,e)}a.contentJudgement&&(e=d.setContentJudgement,a=V0a(kWa(a.contentJudgement)),a=Im(a,6,1),e.call(d,a));return c.call(b,d)},X0a=function(a){return{issueId:Om(a.getIssueId_asString())}},Z0a=function(a,b){a=(new Y0a).setQuery(a);
b.s&&a.setOrderBy(ZVa(b.s));b.count&&(a.setPageSize(b.count),b.p&&a.setPageToken("start_index:"+b.count*(b.p-1)));var c;return(new Mq).setIt(a).setTrackerIdsList((c=b.trackerIds)!=null?c:[])},k1a=function(a,b,c){a=$0a(new a1a,Z0a(a,b));c.queryType&&Hn(a,2,b1a[c.queryType]);c.sortSpecs&&c.sortSpecs.length&&c1a(a,c.sortSpecs.map(function(d){var e=new d1a;e=Hn(e,1,e1a[d.sortType]);return Pi(e,2,d.sortDecreasing)}));c.experimentalFields&&f1a(a,W_a(c.experimentalFields));c.concatenator&&g1a(a,h1a((new i1a).setRelation(j1a[c.concatenator.relation]),
c.concatenator.experimentalSortPrimary));return a},l1a=function(a){return GXa(a.getIt())},m1a=function(a){var b=new Nq,c=b.setIt;var d=(new Oq).setQuery(a.query);d=Im(d,2,QWa[a.minimumSignificance]);a=an(d,4,a.maximumSize);a=Im(a,3,2);return c.call(b,a)},n1a=function(a){var b;return{isCommentEvent:!0,version:a.version,unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:WRa(a.lastModified),commentRedacted:Pm(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}},o1a=function(a,b){var c,d,e;return{attachments:[],preDiffs:[],postDiffs:[],modifiedDate:lSa(en((e=(c=b.aggregatedData)==null?void 0:c.createdTimeMicros)!=null?e:0)),userPerformingActionUser:a.lastEditorUser,
userPerformingAction:VRa()(xm(a.lastEditorUser)),isCommentEvent:!0,commentVersion:a.version,version:a.version,commentLastModifiedAtDate:WRa(a.lastModified),commentRedacted:Pm(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}},Pq=function(a){if(a!=null&&a.getIssue())return a=a.getIssue(),a=a!=null?gYa(a.getIt()):void 0,a},q1a=function(a){var b=new p1a;b.setIssueIdsList(a.issueIds.map(String));a=a.actions.map(G0a);Oi(b,1,a);return b},r1a=function(a){return{issueId:a.getIssueId_asString(),message:a.getMessage()}},t1a=function(a){for(var b={},c=m(wc(a,1,Qq,Vb,jb).entries()),d=
c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e=e!=null?Fp(e.getIt()):void 0;b[d]=e}c={};d=m(wc(a,3,pq,Vb,jb).entries());for(e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;c[e]=nq(f)}a=Ci(a,s1a,2,Di(),jb);a=(a!=null?a:[]).map(r1a);return{affectedIssues:b,componentMap:c,errors:a}},u1a=function(a){var b;return((b=a.getIt().getIssueCommentsList())!=null?b:[]).map(gp).map(n1a)},v1a=function(a){var b=a.getIt();yi(b,Ti,3)?(a=a.getIt(),
a=X(a,Ti,3),a=fn(a)):a=0;return{readTimestamp:a}},w1a=function(a){a=a.getIt();var b=a.getIssueState(),c=b.getAccessLimit();b={type:hXa(b.getType()),status:zp[b.getStatus()],priority:Ap[b.getPriority()],severity:JXa[b.getSeverity()],componentId:Om(b.getComponentId_asString()),accessLimitLevel:c!=null?aWa(c):null};return{issueId:a.getIssueId_asString(),issueState:b,modifiedTime:bn(a.getModifiedTime()),teamId:Om(a.getTeamId_asLegacyNumberOrString())}},x1a=function(a){return gp(a.getIt())},y1a=function(a){return a.getIt().getIssueCommentsList().map(gp)},
z1a=function(a){return aXa(a==null?void 0:a.getIt())},A1a=function(a){a=a.getIt();return{issues:a.getIssuesList().filter(Qm).map(Fp),numTotalResults:a.getTotalSize(),positionMap:void 0,nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},C1a=function(a){return{issueId:a.getIssueId_asString(),summaryType:B1a[a.getSummaryType()],modelVersion:a.getModelVersion(),issueVersion:a.getIssueVersion(),summary:a.getSummary(),formattedSummary:yi(a,
jp,6)?dXa(X(a,jp,6)):void 0}},H1a=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=Rq(a,D1a,b))==null?void 0:c.getValue()};case "google.protobuf.Int64Value":var d;return{type:"NUMBER",value:Zm((d=Rq(a,E1a,b))==null?void 0:d.getValue())};case "google.protobuf.StringValue":var e;return{type:"STRING",value:(e=Rq(a,F1a,b))==null?void 0:e.getValue()};case "google.protobuf.BoolValue":var f;return{type:"BOOLEAN",value:(f=
Rq(a,G1a,b))==null?void 0:f.getValue()};case "google.protobuf.Timestamp":return{type:"TIMESTAMP",value:bn(Rq(a,Ti,b))};case "google.devtools.issuetracker.v1.User":return a=Rq(a,Fm,b),{type:"USER",value:a&&Lm(a)};case "google.devtools.issuetracker.v1.CustomFieldValue":return a=Rq(a,Xo,b),{type:"CUSTOM_FIELD_VALUE",value:a&&IWa(a)};case "google.devtools.issuetracker.v1.IssueAccessLimit":return a=Rq(a,Eo,b),{type:"ISSUE_ACCESS_LIMIT",value:a&&aWa(a)};case "google.devtools.issuetracker.v1.Issue.Effort":return a=
Rq(a,Cp,b),{type:"STRING",value:a&&SWa(a).estimate};case "google.devtools.issuetracker.v1.EntityStatus":return a=Rq(a,Lo,b),{type:"ENTITY_STATUS",value:a&&mWa(a)};case "google.devtools.issuetracker.v1.GerritChange":return a=Rq(a,Dp,b),{type:"GERRIT_CHANGE",value:a&&KXa(a)};case "google.devtools.issuetracker.v1.Staffing.PlannedAllocation":return a=Rq(a,rp,b),{type:"PLANNED_ALLOCATION",value:a&&EXa(a)};default:console.error("Unhandled type in parseProtoAny: "+b)}}},J1a=function(a){var b,c;return{issueId:String(a.getIssueId()),
version:a.getVersion(),author:Lm(a.getAuthor()),timestamp:bn(a.getTimestamp()),fieldUpdates:a.getFieldUpdatesList().map(I1a).filter(Qm),attachments:a.getAttachmentsList().map(zWa),comment:a.hasIssueComment()&&Zm((b=a.getIssueComment())==null?void 0:b.getIssueId())!==0?gp(a.getIssueComment()):void 0,statusUpdate:a.hasStatusUpdate()?GXa(a.getStatusUpdate()):void 0,statusUpdateEntityStatus:((c=a.getStatusUpdate())==null?0:c.getEntityStatus())?mWa(a.getStatusUpdate().getEntityStatus()):void 0}},I1a=function(a){var b=
a.getField();if(NVa.has(b)){var c=xo(a,K1a);switch(c){case 3:a:{if(c=$l(a,L1a,3,K1a)){a=H1a(X(c,Sq,1));var d=H1a(X(c,Sq,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:M1a($l(a,N1a,4,K1a))};default:console.error("Unexpected ValueUpdate oneof in Proto for field id:"+c)}}else console.error('Unexpected IssueStateMask value: "'+
b+'"')},M1a=function(a){if(a){var b=Ci(a,Sq,1,Di()).map(H1a).filter(Qm);a=Ci(a,Sq,2,Di()).map(H1a).filter(Qm);var c=[].concat(q(b),q(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})}}},Tq=function(a){return new rm(a.year,a.month-1,a.day)},O1a=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},P1a=function(a){return!(!a||a.day==null||a.month==null||a.year==null)},Q1a=function(a,b){if(a&&b){var c=
m(b.split(":"));b=c.next().value;c=c.next().value;return new bo(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))}},Uq=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},Vq=function(a){a=Uq(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},R1a=function(a){return a?
O1a(wRa(a)):null},S1a=function(a){return a?(a=wo(a),isNaN(a)?null:a):null},U1a=function(a){return T1a.format(Tq(a))},V1a=function(a){return a.textValue!=null?a.textValue:a.dateValue!=null?U1a(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(U1a).join(", "):a.repeatedEnumValue!=null?a.repeatedEnumValue.values.join(", "):a.repeatedNumericValue!=
null?a.repeatedNumericValue.values.map(String).join(", "):""},Wq=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},Xq=function(a){var b=a.match(W1a);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"}}},Z1a=function(a,b){a=a.map(X1a)||[];b=b.map(X1a)||[];return ARa(a,new Set(b)).map(Y1a)},X1a=function(a){return a.host+
","+a.repo+","+a.changeNumber+","+a.state},Y1a=function(a){var b=m(a.split(","));a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;d=Mm(d);if(!d)throw Error("Zd");if(!Object.values($1a).includes(b))throw Error("$d");return{host:a,repo:c,changeNumber:d,state:b}},a2a=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},b2a=function(a){var b;return y(function(c){return(b=a&&(!!a2a(a)||!!Xq(a)))?c.return(""):c.return("Must be a CL number or Gerrit URL")})},d2a=function(a){return a==null?!1:c2a.has(a.name)},e2a=function(a){return(a==null?void 0:a.name)==="hotlist"},f2a=function(a){return a==null?!1:a.href!=null&&a.value!=null},g2a=function(a){return Array.isArray(a)?a.every(f2a):!1},Yq=function(a){return{value:String(a),href:"issues/"+a}},h2a=function(a){return{value:a,
href:"https://critique.corp.google.com/"+a}},i2a=function(a){var b=VTa();b=b===void 0?!1:b;return{value:a.changeNumber+" | "+hj(a.host),href:Wq(a,b)}},j2a=function(a){return{value:String(a),href:"issues?q=hotlistid:"+a}},k2a=function(a){return{value:a,href:"https://irm.corp.google.com/"+a}},l2a=function(a){return{value:a,href:"https://pm.corp.google.com/"+a}},n2a=function(a,b){var c=new Map(a.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=Zq[r.placeholder.role])!=null?w:
"",r.placeholder.count]})),d=new Map(b.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=Zq[r.placeholder.role])!=null?w:"",r.placeholder.count]}));a=eVa(a.filter(function(r){return r.user}));b=eVa(b.filter(function(r){return r.user}));for(var e=[],f=[],g=m(c),k=g.next();!k.done;k=g.next()){var l=m(k.value);k=l.next().value;l=l.next().value;k.length!==0&&k!==Zq.JOB_ROLE_UNSPECIFIED&&(d.has(k)?d.get(k)!==l&&e.push(k+" ("+d.get(k)+" > "+l+")"):e.push(k+" ("+l+")"))}d=m(d);for(g=
d.next();!g.done;g=d.next())k=m(g.value),g=k.next().value,k=k.next().value,g.length!==0&&g!==Zq.JOB_ROLE_UNSPECIFIED&&(c.has(g)||f.push(g+" ("+k+")"));c=new Set([].concat(q(a.keys()),q(b.keys())));c=m(c);g=c.next();for(d={};!g.done;d={addedAllocationsByKey:void 0},g=c.next())g=g.value,g.length!==0&&(k=void 0,d.addedAllocationsByKey=fVa((k=a.get(g))!=null?k:[]),l=void 0,k=fVa((l=b.get(g))!=null?l:[]),d.addedAllocationsByKey.size>0&&(l=m2a(g,d.addedAllocationsByKey,k),l.length>0&&e.push(l)),d=new Map([].concat(q(k.entries())).filter(function(r){return function(w){var x=
m(w);w=x.next().value;x.next();return!r.addedAllocationsByKey.has(w)}}(d))),d.size>0&&(d=m2a(g,d,new Map),d.length>0&&f.push(d)));return{additions:e,removals:f}},m2a=function(a,b,c){var d=[];b=m(b);for(var e=b.next();!e.done;e=b.next()){e=m(e.value);var f=e.next().value;e=e.next().value;f=c.get(f);if(!mm(e,f)){if(d.length===0){var g=void 0;d.push(o2a(e.user,(g=f)==null?void 0:g.user));g=void 0;d.push(p2a(e.user,(g=f)==null?void 0:g.user))}var k=void 0,l=void 0;g=q2a((k=e.allocation)==null?void 0:
k.startDate,(l=e.allocation)==null?void 0:l.endDate);k=void 0;e=r2a(e.allocation,(k=f)==null?void 0:k.allocation);e.length!==0&&(g.length>0?d.push(g+": "+e):d.push(e))}}if(d.length===0)return"";c=d.filter(function(r){return r.length>0});return a+(c.length===0?"":" ("+c.join(", ")+")")},q2a=function(a,b){var c=new nl("MMM d, yyyy");if(!a&&!b)return"";var d=a?c.format(Tq(a)):"";c=b?c.format(Tq(b)):"";return a?b?d+" - "+c:d+" - End":"Start - "+c},o2a=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: "+Zq[a]:a?c?"Custom Role: "+Zq[c]+" > "+Zq[a]:"Custom Role: None > "+Zq[a]:"Custom Role: "+Zq[c]+" > None"},p2a=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")},r2a=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=po[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=po[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},u2a=function(a){var b=a.fieldUpdates.map(function(c){return s2a(c,a)}).filter(Qm);a.statusUpdate&&b.push({name:"statusUpdate",displayName:"Status Update",type:"STATUS_UPDATE",important:!1,timestamp:ao(a.timestamp),statusUpdateDiff:a.statusUpdateEntityStatus?{entityStatus:a.statusUpdateEntityStatus}:void 0});return t2a(b)},t2a=function(a){var b=a.filter(function(g){return g.name==="status"});a=
a.filter(function(g){return g.name!=="status"});var c=[].concat(q(a),q(b));b=[];a=void 0;c=m(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},s2a=function(a,b){var c=ao(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:$q(e.oldValue),newValue:$q(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(Yq),removed:e.removed.map(Yq)};case "blocking_issue_ids":return e=a.collectionUpdate,{name:"blockingId",displayName:"Blocking",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Yq),removed:e.removed.map(Yq)};case "canonical_issue_id":return e=a.singleValueUpdate,{name:"canonicalId",
displayName:"Canonical",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:Nm(e.oldValue),newValue:Nm(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($q),removed:e.removed.map($q)};case "collaborators":return e=a.collectionUpdate,{name:"collaborators",displayName:"Collaborators",type:"USER_COLLECTION",important:!1,timestamp:c,isUser:!0,added:e.added.map($q),removed:e.removed.map($q)};case "child_issue_ids":return e=
a.collectionUpdate,{name:"childIssueIds",displayName:"Child Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Yq),removed:e.removed.map(Yq)};case "code_changes":return e=a.collectionUpdate,Object.assign({},{name:"changelist",displayName:"Changelist",important:!1,timestamp:c},VTa()?{type:"LINKED_COLLECTION",added:e.added.map(h2a),removed:e.removed.map(h2a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "component_id":var f=a.singleValueUpdate,g;return{name:"component",
displayName:"Component",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(e=Nm(f.oldValue))!=null?e:"",newValue:(g=Nm(f.newValue))!=null?g:""};case "custom_fields":return e=a.singleValueUpdate,g=(e.oldValue||e.newValue).customFieldId,{customFieldId:g,name:String(g),displayName:"",type:"CUSTOM_FIELD",important:!1,timestamp:c,oldValue:v2a(e.oldValue),newValue:v2a(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(Yq),removed:e.removed.map(Yq)};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(ta){return i2a(ta)}),removed:e.removed.map(function(ta){return i2a(ta)})};case "hotlist_ids":return e=a.collectionUpdate,{name:"hotlist",displayName:"Hotlist",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(j2a),removed:e.removed.map(j2a)};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(Yq),removed:e.removed.map(Yq)};
case "staffing.planned_allocations":if(!VTa())break;e=a.collectionUpdate;e=n2a(e.added,e.removed);return{name:"staffing",displayName:"Staffing",important:!1,timestamp:c,type:"COLLECTION",added:e.additions,removed:e.removals};case "incidents":return e=a.collectionUpdate,Object.assign({},{name:"incident",displayName:"Incident",timestamp:c,important:!1},VTa()?{type:"LINKED_COLLECTION",added:e.added.map(k2a),removed:e.removed.map(k2a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "postmortems":return e=
a.collectionUpdate,Object.assign({},{name:"postmortem",displayName:"Postmortem",timestamp:c,important:!1},VTa()?{type:"LINKED_COLLECTION",added:e.added.map(l2a),removed:e.removed.map(l2a)}:{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?Ap[e.oldValue]:"",newValue:e.newValue!=null?Ap[e.newValue]:""};case "retention":e=a.singleValueUpdate;var l,
r;return{name:"retention",displayName:"Retention",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(l=w2a(e.oldValue))!=null?l:"",newValue:(r=w2a(e.newValue))!=null?r:""};case "reporter":return e=a.singleValueUpdate,{name:"reporter",displayName:"Reporter",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:$q(e.oldValue),newValue:$q(e.newValue)};case "severity":return e=a.singleValueUpdate,{name:"severity",displayName:"Severity",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=
null?JXa[e.oldValue]:"",newValue:e.newValue!=null?JXa[e.newValue]:""};case "slo_snooze_until":e=a.singleValueUpdate;var w,x,C,H;return{name:"sloStartTime",displayName:"SLO Start Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((C=(w=e.oldValue)==null?void 0:w.seconds)!=null?C:"<none>"),newValue:String((H=(x=e.newValue)==null?void 0:x.seconds)!=null?H:"<none>")};case "slo_end_time":e=a.singleValueUpdate;var J,O,R,V;return{name:"sloEndTime",displayName:"SLO End Date",type:"SINGLE_VALUE",
important:!1,timestamp:c,oldValue:String((R=(J=e.oldValue)==null?void 0:J.seconds)!=null?R:"<none>"),newValue:String((V=(O=e.newValue)==null?void 0:O.seconds)!=null?V:"<none>")};case "status":e=a.singleValueUpdate;var ca,oa;return{name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:hj((ca=ar.get(e.oldValue))!=null?ca:""),newValue:hj((oa=ar.get(e.newValue))!=null?oa:"")};case "targeted_to_versions":return e=a.collectionUpdate,{name:"targetedTo",displayName:"Targeted to",
type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "title":e=a.singleValueUpdate;var ua,ka;return{name:"title",displayName:"Title",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(ua=e.oldValue)!=null?ua:"",newValue:(ka=e.newValue)!=null?ka:""};case "type":e=a.singleValueUpdate;var Ga,ja;return{name:"type",displayName:"Type",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(Ga=x2a.get(e.oldValue))!=null?Ga:"",newValue:(ja=x2a.get(e.newValue))!=null?ja:""};
case "verifier":return e=a.singleValueUpdate,{name:"verifier",displayName:"Verifier",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:$q(e.oldValue),newValue:$q(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:wb(d,"Unexpected IssueStateMask in fieldUpdateToDiff")}},
$q=function(a){return VRa()(xm(a))},v2a=function(a){return a==null?"<none>":V1a(a)},w2a=function(a){if(a!=null)switch(MXa[a]){case "COMPONENT_DEFAULT":return"Component Default";case "INDEFINITE":return"Indefinite"}},C2a=function(a){var b=void 0,c=void 0;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.updates.flatMap(function(w){return w.fieldUpdates}),f=void 0,g=(f=Ia(e.filter(function(w){return w.field==="assignee"})))==null?void 0:f.singleValueUpdate;g&&(b=y2a(g));f=void 0;var k=
(f=Ia(e.filter(function(w){return w.field==="verifier"})))==null?void 0:f.singleValueUpdate;k&&(c=y2a(k));f=void 0;k=(f=Ia(e.filter(function(w){return w.field==="status"})))==null?void 0:f.singleValueUpdate;var l=void 0;f=(l=Ia(e.filter(function(w){return w.field==="canonical_issue_id"})))==null?void 0:l.singleValueUpdate;l=void 0;e=(l=Ia(e.filter(function(w){return w.field==="is_archived"})))==null?void 0:l.singleValueUpdate;if(k){l=k.oldValue!=null?zp[k.oldValue]:void 0;k=k.newValue!=null?zp[k.newValue]:
void 0;var r=void 0;f=Nm((r=f)==null?void 0:r.newValue);z2a(d,A2a({oldStatus:l,newStatus:k,currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g}))}else g&&b?z2a(d,[br("Reassigned to "),B2a(b),br(".")]):f&&(k=void 0,f=Nm((k=f)==null?void 0:k.newValue),z2a(d,A2a({oldStatus:"DUPLICATE",newStatus:"DUPLICATE",currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g})));e&&z2a(d,[br(e.newValue?"Archived.":"Unarchived.")])}},A2a=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&&jo.get(b);var g=c&&jo.get(c);if(b&&g&&!b.open&&g.open)return[br("Status: "+g.displayValue+" (reopened)")];switch(c){case "ASSIGNED":if(d)return[br("Assigned to "),B2a(d),br(".")];break;case "ACCEPTED":if(d)return[br("Accepted by "),B2a(d),br(".")];break;case "FIXED":return a&&d?[br("Marked as fixed, reassigned to "),B2a(d),br(".")]:[br("Marked as fixed.")];case "VERIFIED":if(e)return[br("Verified by "),
B2a(e),br(".")];break;case "DUPLICATE":if(f)return[br("Status: Duplicate of "),{text:f,tag:"bug"}]}return[br("Status: "+hj(g.displayValue))]},y2a=function(a){if(a)return a.newValue},br=function(a){return{text:a,tag:""}},B2a=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 br(a.obfuscatedEmailAddress);break;case "DELETED":return br("Deleted User");case "UNAVAILABLE":return br("Unavailable User");
default:return console.warn("Unexpected User Gaia status in userToTaggedText"),{text:""}}return br("User")},F2a=function(a){if(!a.length)return[];a=C_a(a,function(b){return b.issueId}).flatMap(D2a);return E2a(a,"DESCENDING")},D2a=function(a){if(!a.length)return[];a=G2a(a);C2a(a);return a.map(function(b){return H2a(b)}).filter(I2a)},I2a=function(a){var b;return a.postDiffs.length||a.preDiffs.length||a.commentNumber||a.attachments.length||((b=a.taggedSummary)==null?void 0:b.length)},G2a=function(a){var b=
J2a(a,"ASCENDING");a=[new K2a];b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ia(a),e;var f=e=void 0;if(d.updates.length===0)e=!0;else{var g;if(!(g=d.hasInitialUpdate)&&!(g=!d.author||!c.author)){g=d.author;var k=c.author;g=!(g===k||(g.emailAddress||k.emailAddress?g.emailAddress===k.emailAddress:(g.obfuscatedEmailAddress||k.obfuscatedEmailAddress)&&g.obfuscatedEmailAddress===k.obfuscatedEmailAddress))}if(g||d.comment&&c.comment)e=!1;else{if(g=(f=d.updates[0])==null?0:f.timestamp)f=
(e=d.updates[0])==null?void 0:e.timestamp,g=Math.abs(ao(f)-ao(c.timestamp))>36E5;e=g?!1:!0}}e?L2a(d,c):a.push(L2a(new K2a,c))}return a},M2a=function(a){var b={};if(a==null)return b;a=Ci(a,cr,1,Di(),jb);a=m(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},N2a=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})},O2a=function(a){return a==null?{closed:0,total:0}:{closed:a.descendantCount-a.openDescendantCount,total:a.descendantCount}},P2a=function(a,b){if(a==null)return 0;var c=0;a=m(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},Q2a=function(a){var b,c;return(c=a==null?void 0:(b=a.changelists)==null?void 0:b.length)!=null?c:0},
R2a=function(a){var b;return(b=a==null?void 0:a.gerritChanges)!=null?b:[]},S2a=function(a){if(a==null)return[];a=[].concat(q(a.assignees.map(function(b){return b.emailAddress})),q(a.collaborators.map(function(b){return b.emailAddress})),q(a.verifiers.map(function(b){return b.emailAddress})),q(a.reporters.map(function(b){return b.emailAddress}))).filter(Qm);return E_a(a)},T2a=function(a,b){var c;a=(c=a.componentPathInfo)==null?void 0:c.allCustomField;if(!a)return!0;c=m(a);var d=c.next();for(a={};!d.done;a=
{customField$jscomp$6:void 0},d=c.next())if(a.customField$jscomp$6=d.value,a.customField$jscomp$6.required){d=!!a.customField$jscomp$6.typedDefaultValue;var e=void 0,f=void 0,g=(e=b)==null?void 0:(f=e.snapshot.customField)==null?void 0:f.some(function(k){return function(l){return l.customFieldId===k.customField$jscomp$6.customFieldId}}(a));if(!d&&!g)return!1}return!0},U2a=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},V2a=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"}},W2a=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=U2a(b);return{title:"Allow "+(b===1?"members of the group to ":V2a(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)+"."}},X2a=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"}},dr=function(a){return{id:a,triage:{phase:"NEW",subphase:"TRIAGE_SUBPHASE_UNSPECIFIED"},clusterIds:[]}},Y2a=function(a,b){var c=new Map(b.map(function(d){return[d==null?void 0:d.id,d]}));return a.filter(Qm).map(function(d){return Object.assign({},d,{experimentalFields:c.get(d.issueId)})})},$2a=function(){return Z2a.performance&&Z2a.PerformanceObserver&&
typeof window.performance.getEntriesByType==="function"&&typeof window.performance.mark==="function"&&typeof window.performance.measure==="function"},a3a=function(a){var b=a.name;if(b!=null&&(a=Math.round(a.duration),!isNaN(a))){var c=m(b.split(" -> "));b=c.next().value;c=c.next().value;if(b!=null&&c!=null)return{from:b,to:c,duration:a}}},c3a=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(b3a);if(b!=null){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===
c})}},g3a=function(){var a=window.performance.getEntries(),b=c3a(a);if(b==null)return[];var c=b.startTime;return a.filter(d3a).filter(e3a).filter(f3a).filter(function(d){return d.startTime<=c})},b3a=function(a){var b=a.entryType;a=a.name;return b==="measure"&&a.startsWith("browserStart")},d3a=function(a){return!a.name.startsWith("Zone")},f3a=function(a){return a.entryType==="resource"},h3a=function(a){return a.initiatorType==="xmlhttprequest"},e3a=function(a){return a.name.match(/\.html$/)==null},
i3a=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}},k3a=function(){return typeof j3a.gtag==="function"},l3a=function(a){if(a!=null&&!(a.duration>=3E4))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},o3a=function(a){a=a.getEntries().map(a3a).map(l3a);a=m(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}:{});m3a(b,d)}}setTimeout(n3a,100)},n3a=function(){if(!p3a){var a=g3a(),b=a.filter(function(c){return!h3a(c)}).reduce(i3a,q3a());er("r-until-cf","asset","count",b.count);er("r-until-cf","asset","transferSize",b.transferSize);er("r-until-cf","asset","duration",b.duration);
er("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(h3a).reduce(i3a,q3a());er("r-until-cf","xhr","count",a.count);er("r-until-cf","xhr","transferSize",a.transferSize);er("r-until-cf","xhr","duration",a.duration);p3a=!0}},er=function(a,b,c,d){m3a(a,Object.assign({},b!==void 0?{event_action:b}:{},c!==void 0?{event_label:c}:{},d!==void 0?{event_value:d}:{}))},fr=function(a,b){s3a[a]=b;t3a&&Wm("[stub gtag.ts] Event scoped dimension set {"+a+": "+b+")}")},u3a=function(a){if(k3a()){var b=
{};j3a.gtag("set","user_properties",(b.dimension13=a,b))}t3a&&Wm("[stub gtag.ts] gtag('set', 'user_properties', {dimension13: "+a+")}")},m3a=function(a,b){b!=null&&(v3a("page_location","Scrubbed Page URL"),v3a("page_title","Scrubbed Page Title"),b=Object.assign({},s3a,b),k3a()&&j3a.gtag("event",a,b),t3a&&Wm("[stub gtag.ts] gtag('event')",a,b))},v3a=function(a,b){if(k3a()){var c={};j3a.gtag("set",(c[a]=b,c))}t3a&&Wm("[stub gtag.ts] gtag('set', {"+a+": "+b+")}")},A3a=function(){var a=a===void 0?er:
a;var b=Date.now(),c=gr(b);gr(w3a())!==c?a("retention","first-visit"):(c=gr(b),gr(w3a())===c&&x3a()===1&&a("retention","second-visit"));a=gr(b);gr(w3a())!==a?y3a(1):(a=x3a()||0,y3a(a+1));z3a(b)},gr=function(a){if(a!=null)return(new Date(a)).toLocaleDateString()},B3a=function(){return bd.apply(0,arguments).map(String).join("__")},D3a=function(){for(var a={},b=m(Object.entries(C3a)),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d>1&&(a[c]=d)}return a},E3a=function(){var a=
Object.values(C3a),b=a.map(function(c){return c-1}).reduce(pUa,0);a=a.reduce(pUa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},F3a=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("/")},G3a=function(a){return a instanceof Qj},H3a=function(a){return a instanceof hr},I3a=function(a){return function(b){return new Vd(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()})})})}},J3a=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},M3a=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a))if(a=nea(K3a,L3a(a))){if((a=Ci(a,ir,1,Di()))&&a.length===1)return Pq(a[0])}else Xm("Defroster: found data, but it was unparseable. This is unintended but will not cause a user-visible issue.")},
N3a=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)}},O3a=function(a){var b=m(a.split("-"));a=b.next().value;b=b.next().value;return{issueId:a,recommendationType:b}},P3a=function(a){var b=new jr;b=Ko(b,1,Number(a.targetIssueId));return Ko(b,2,a.afterIssueId?Number(a.afterIssueId):void 0)},Q3a=function(a){return{targetIssueId:String(pn(a,
1)),afterIssueId:Ym(pn(a,2))?String(pn(a,2)):void 0}},R3a=function(a){return{sourceIssueId:Ym(pn(a,3)),issueRelationships:a.getIssueRelationshipsList().map(Q3a),totalSize:a.getTotalSize()}},S3a=function(a){var b=[];a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.issueRelationships,totalChildCount:d.totalSize})}return b},T3a=function(a){return!(a==null||!a.relatedChildren.length)},V3a=function(a,b){var c=
[].concat(q(a));a=new Set(a.map(function(g){return g.targetIssueId}));b=m(b);for(var d=b.next(),e={};!d.done;e={newItem$jscomp$6:void 0},d=b.next())if(e.newItem$jscomp$6=d.value,!a.has(e.newItem$jscomp$6.targetIssueId)){d=c.findIndex(function(g){return function(k){return k.targetIssueId===g.newItem$jscomp$6.afterIssueId}}(e));var f=void 0;f=e.newItem$jscomp$6.afterIssueId?d===-1?c.length:d+1:0;c.splice(f,0,e.newItem$jscomp$6);a.add(e.newItem$jscomp$6.targetIssueId)}return U3a(c)},W3a=function(a,b){return U3a(a.filter(function(c){return c.targetIssueId!==
b}))},U3a=function(a){for(var b=[],c=m(a.entries()),d=c.next();!d.done;d=c.next()){var e=m(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},X3a=function(a){var b=new Map;a=m(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(q(d.previousOperation.eventTimestamps),q(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(d.previousOperation.done.resolve).catch(function(f){return function(g){f.previousOperation.done.reject(g);throw g;}}(d)),b.set(c,e)):b.set(c,e)}b=[].concat(q(b.values()));a=m(b);d=a.next();for(c={};!d.done;c={operation$jscomp$6:void 0},d=a.next())c.operation$jscomp$6=
d.value,c.operation$jscomp$6.newRelations=c.operation$jscomp$6.newRelations.map(function(f){return function(g){return f.operation$jscomp$6.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===g.targetIssueId})}}(c));return b.sort(function(f,g){var k=f.newParentChildrenSnapshot,l=g.newParentChildrenSnapshot;f=Math.min.apply(Math,q(f.issues.map(function(r){return k.findIndex(function(w){return w.targetIssueId===r.issueId})})));g=Math.min.apply(Math,q(g.issues.map(function(r){return l.findIndex(function(w){return w.targetIssueId===
r.issueId})})));return f===g?0:f<g?-1:1})},c4a=function(a){return a?(a=a.getResponse())?Ci(a,Y3a,1,Di()).map(function(b){if(b&&b.getObjective()){var c,d;var e=b.getObjective(),f=(c=b.getUri())==null?void 0:c.getResourcePath();if(e&&e.getId()){var g,k;c={objectiveId:f!=null?f:e.getId(),title:e.getTitle(),url:ZEa(e.getUrl()),priorityRating:Z3a(e==null?void 0:(g=e.getPriority())==null?void 0:xi(g,1)),keyResults:(k=Ci(e,$3a,7,Di()).map(a4a).filter(Qm))!=null?k:[]}}else c=void 0;b={objective:c,periodLabel:(d=
X(b,b4a,4))==null?void 0:d.getLabel()}}else b=void 0;return b}).filter(Qm):[]:[]},a4a=function(a){if(a&&a.getId()){var b;return{keyResultId:a.getId(),title:a.getTitle(),url:ZEa(a.getUrl()),priorityRating:Z3a(a==null?void 0:(b=a.getPriority())==null?void 0:xi(b,1))}}},Z3a=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"}},f4a=function(a){return a.getResponsesList().map(function(b){return Ci(b,
d4a,1,Di()).map(e4a)}).flat().filter(function(b){return b.signals.length>0})},e4a=function(a){var b=g4a(a.getTask());a=Ci(a,h4a,2,Di());return{task:b,signals:a.map(i4a).filter(Qm)}},k4a=function(a){return a.getResponsesList().map(function(b){return Ci(b,j4a,1,Di()).map(g4a).filter(Qm)}).flat()},g4a=function(a){if(a){var b=a.getTaskId(),c=l4a(xi(a,2)),d=a.getTitle(),e=bn(a.getCreatedTimestamp()),f=bn(a.getLastModifiedTimestamp()),g=a.getExternalLink();var k=Ci(a,m4a,7,Di());b={taskId:b,taskResourceType:c,
title:d,createdTimestamp:e,lastModifiedTimestamp:f,externalLink:g,resourceRelationships:k.map(n4a),isStaleTask:Gi(a,13),snoozeUntilTimestamp:bn(X(a,Ti,14)),manualSignalTimestamp:bn(X(a,Ti,15))};a.hasDriveResource()?(a=a.getDriveResource(),a={fileType:o4a[xi(a,1)],lastMentionTimestamp:bn(X(a,Ti,2)),lastMentionLink:vi(a,4),docwrapRequestTimestamp:bn(X(a,Ti,3)),docwrapRequestLink:vi(a,5)},b.driveResource=a):Ri(a,p4a,9,q4a)&&(a=$l(a,p4a,9,q4a),a={priority:Ap[a.getPriority()],accessLevel:bWa[a.getAccessLevel()],
hotlistIds:a.getHotlistIdsList_asLegacyNumberOrString(Km)},b.issueResource=a);return b}},n4a=function(a){return{category:r4a[a.getCategory()],roleName:vi(a,2)}},i4a=function(a){var b={timestamp:bn(a.getTimestamp()),url:ZEa(a.getUrl()),signalStatus:Gi(a,8)?1:0};if(Ri(a,s4a,3,kr)){a=$l(a,s4a,3,kr);var c={signal:t4a[a.getSignal()]};lr.has(c.signal)?(mr(a,2,u4a)!=null&&(c.commentId=a.getCommentId()),a=c):a=null;if(!a)return null;b.driveAlert=a}else if(Ri(a,nr,5,kr)){c=$l(a,nr,5,kr);a={signal:v4a[c.getSignal()]};
if(lr.has(a.signal)){yi(c,dn,4)&&(a.reviewEstimate=kSa(X(c,dn,4)));c=X(c,w4a,5);var d=c==null?void 0:$l(c,x4a,2,y4a);c=d?{currentAvailability:{comeBackTimestamp:bn(d.getComeBackTimestamp())}}:(c=c==null?void 0:$l(c,z4a,1,y4a))?{futureAvailability:{comeBackTimestamp:bn(c.getComeBackTimestamp()),futureOooTimestamp:bn(X(c,Ti,1))}}:void 0;a.clAuthorAvailability=c}else a=null;if(!a)return null;b.changelistAlert=a}else if(Ri(a,A4a,4,kr)){c=$l(a,A4a,4,kr);a={signal:B4a[c.getSignal()]};if(lr.has(a.signal)){if(d=
c.getCommentNumbers())d=Em(d,1,Di(Km)),d.length>0&&(a.commentNumbers=d);if(c=$l(c,C4a,3,D4a))a.configurableAlertSubscriptionId=vi(c,1)}else a=null;if(!a)return null;b.issueAlert=a}else if(Ri(a,E4a,7,kr)){a=$l(a,E4a,7,kr);a={signal:F4a[a.getSignal()]};a=lr.has(a.signal)?a:null;if(!a)return null;b.gerritAlert=a}else if(Ri(a,G4a,9,kr)){a=$l(a,G4a,9,kr);a={signal:NTa[a.getSignal()]};a=lr.has(a.signal)?a:null;if(!a)return null;b.googleTasksAlert=a}else if(Ri(a,H4a,10,kr)){a=$l(a,H4a,10,kr);a={signal:OTa[a.getSignal()]};
a=lr.has(a.signal)?a:null;if(!a)return null;b.irmAlert=a}return b},l4a=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"}},I4a=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}},
J4a=function(a){switch(a){case 0:return 0;case 1:return 5;case 2:return 2;default:return 0}},K4a=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}},M4a=function(a){return a?L4a[a]:L4a.ISSUE_SIGNAL_UNSPECIFIED},O4a=function(a){return a?N4a[a]:N4a.DRIVE_SIGNAL_UNSPECIFIED},Q4a=function(a){return a?P4a[a]:P4a.CHANGELIST_SIGNAL_UNSPECIFIED},S4a=function(a){return a?R4a[a]:R4a.GERRIT_CHANGE_SIGNAL_UNSPECIFIED},
T4a=function(a){return a?FTa[a]:FTa.GOOGLE_TASKS_SIGNAL_UNSPECIFIED},U4a=function(a){return a?HTa[a]:HTa.IRM_SIGNAL_UNSPECIFIED},V4a=function(a){if(a=a.getResponse())return{commentId:a.getCommentId(),authorDisplayName:vi(a,2),content:a.getContent(),lastModifiedTimestamp:bn(X(a,Ti,4))}},X4a=function(a,b){if(!b||!b.getData())return[];a=b.getContextsMap().get(a);if(!a)return[];var c=a.getIterationIdsList_asString(),d,e;return Array.from((e=(d=b.getData())==null?void 0:d.getIterationsMap())!=null?e:[],
function(f){if(c.some(function(r){return r===f[0].toString()})){var g=f[1],k,l=(k=b.getData())==null?void 0:k.getWorkspacesMap().get(g.getWorkspaceId());return W4a(g,l)}}).filter(Qm)},W4a=function(a,b){if(a&&a.getType()===3){var c=(new Date).getTime()/1E3,d=bn(a.getStartTime()),e=bn(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}}},$4a=function(a){var b=a.getResponse();return b&&Ci(b,or,1,Di())&&X(b,Y4a,2)?Ci(b,or,1,Di()).map(function(c){var d=X(b,Y4a,2);if(c&&d){var e=c.getId();d=X4a(c.getId(),d);var f=c.getId(),g;c=c&&wc(c,15,Z4a,Vb)?(g=wc(c,15,Z4a,Vb).get(f))==null?void 0:Dm(g,1,Di()):void 0;e={workItemId:e,iterations:d,okrIds:c}}else e=void 0;return e}).filter(Qm):[]},pr=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"},d5a=function(a){var b={};a=m(wc(a,1,a5a,Vb,jb).entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:b5a[xi(d,1)],detailedUserType:c5a[xi(d,2)]}}return b},e5a=function(a,b){return a.map(function(c){return b[c]||null})},f5a=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},g5a=function(a){switch(a){case 1:return"daily";
case 2:return"weekly";case 3:return"monthly";case 0:break;default:wb(a)}},h5a=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return wb(a)}},i5a=function(a){var b={id:a.getId()};a.getVersion()&&(b.version=a.getVersion());return b},j5a=function(a){var b=(new qr).setId(a.id);a.version&&b.setVersion(a.version);return b},k5a=function(a){return{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),nanos:a.getNanos()}},l5a=function(a){return(new rr).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos)},
m5a=function(a){var b;return((b=a.getTeamSloEditPolicy())==null?void 0:xi(b,2))===1},n5a=function(a){var b;return((b=X(a,sr,1,jb))==null?void 0:b.getEffectiveSloEditPolicy())===1},p5a=function(a){var b=X(a,Fm,2),c=g5a(a.getFrequency()),d=a.getTimeZone(),e=a.getTimeOfDay();if(b==null)throw Error("he");if(c==null)throw Error("ie");if(d==null)throw Error("je");if(e==null)throw Error("ke");var f=a.getId_asLegacyNumberOrString();b=Lm(b);var g=a.getOrdinal();d=i5a(d);e=k5a(e);var k=em(a,7),l=a.getTypesList().map(hXa);
a=o5a(a,9,Di(Km));return{id:f,lead:b,frequency:c,ordinal:g,timeZone:d,timeOfDay:e,daysRemaining:k,types:l,sloIds:a}},q5a=function(a){var b=(new tr).setId(a.id),c=Jm(a.lead);b=Ni(b,Fm,2,c).setFrequency(h5a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(j5a(a.timeZone)).setTimeOfDay(l5a(a.timeOfDay)).setDaysRemaining(a.daysRemaining).setTypesList(a.types.map(iXa));return ur(b,9,a.sloIds)},r5a=function(a){return pXa(a.getIt())},s5a=function(a){var b=new vr,c=b.setIt;var d=(new wr).setSloId(a.sloId).setName(a.name).setDescription(a.description).setParentId(a.parentId);
var e=a.elements.map(uXa);d=Oi(d,5,e);e=a.effectiveElements.map(uXa);d=Oi(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("qd`"+a);}a=Im(d,8,a);return c.call(b,a)},t5a=function(a){return{id:a.getId_asString(),name:a.getName(),description:a.getDescription()}},u5a=function(a){if(a=a.getIt())return LZa(a);throw Error("le");},v5a=function(a){return{teamId:a.getId_asString(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(Km),
pathIds:a.getPathIdsList_asString()}},w5a=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"}}},x5a=function(a){return{id:a,triage:[{id:0}],playbooks:[]}},y5a=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},z5a=function(a){var b;return(b=Mm(a))!=null?b:null},A5a=function(a){var b;return(b=Nm(a))!=null?b:null},B5a=function(a,b){b=(b===void 0?{}:b).comment;
return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},xr=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},C5a=function(a){var b={};a=(b.component=a||void 0,b);a=a===void 0?{}:a;return{path:"/issues/new",queryParams:a}},D5a=function(a){return{path:"/components/"+a}},E5a=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},
F5a=function(a){return{path:"/slos/"+a+"/edit"}},G5a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.starred)||!1},H5a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.lastViewedTimeMicros)||0},I5a=function(a){var b;return(b=io(a))==null?void 0:b.title},J5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.status)!=null?c:void 0},K5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.priority)!=null?c:void 0},L5a=function(a){var b,c;return(c=(b=io(a))==
null?void 0:b.assigneeUser)!=null?c:void 0},M5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.reporterUser)!=null?c:void 0},N5a=function(a){var b;a=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.teamId;return Nm(a)},O5a=function(a){var b;a=(b=io(a))==null?void 0:b.componentId;return Nm(a)},P5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.ccUsers)!=null?c:[]},Q5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.issueAccessLimitLevel)!=null?c:"LIMIT_NONE"},R5a=function(a){var b,
c;return(c=(b=io(a))==null?void 0:b.collaboratorsUsers)!=null?c:[]},S5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.type)!=null?c:void 0},T5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.foundInVersion)!=null?c:[]},U5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.targetedToVersion)!=null?c:[]},V5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.changelist)!=null?c:[]},W5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.postmortems)!=null?c:[]},X5a=function(a){var b;
return((b=io(a))==null?void 0:b.inProd)||!1},Y5a=function(a){var b;return(b=io(a))==null?void 0:b.effort},Z5a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.staffing)!=null?c:void 0},$5a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount},a6a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.voted)||!1},c6a=function(a){return b6a(a)},b6a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.isDeleted)!=null?c:!1},e6a=function(a){return d6a(a)},
d6a=function(a){var b;return a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel},f6a=function(a){return(a=a==null?void 0:a.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},h6a=function(a){return g6a(a)},g6a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.retention)!=null?c:void 0},i6a=function(a){var b,c;return(c=(b=io(a))==null?void 0:b.duplicateOfIssueId)!=null?c:void 0},k6a=function(a){return j6a(a)},j6a=function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?
void 0:b.retentionState)!=null?c:void 0},l6a=function(a){var b;return Nm(a==null?void 0:(b=a.aggregatedData)==null?void 0:b.sloId)},m6a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.createdTimeMicros},n6a=function(a){return a==null?void 0:a.effortSpec},o6a=function(a){a=n6a(a);return!(!a||!a.name&&!a.inherit)},p6a=function(a){return a==null?void 0:a.componentPathInfo},s6a=function(a){if(!a)return{};var b,c=m((b=a.match(q6a))!=null?b:[]);c.next();b=c.next().value;var d;
a=m((d=a.match(r6a))!=null?d:[]);a.next();d=a.next().value;return{commentNumber:Mm(b),commentVersion:Mm(d)}},yr=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},zr=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("oe`"+b);return c},t6a=function(a){return gXa(a.getIt().getMentionsList(Km)).map(function(b){return b.mentionedUser}).map(xm).map(function(b){return b||""})},u6a=function(a){a=a.getIt();return a.hasFormattedComment()?
cp(a.getFormattedComment()):{}},v6a=function(a){switch(a.formattingMode){case "LITERAL":return ee({literalFormat:{content:Bh(a.comment)}});case "MARKDOWN":return a={markdownFormat:{content:Bh("")}},ee(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Bh(a.comment)}]}},ee(a);default:return wb(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},Ar=function(){return pf(function(a,b){return mm(a,b)})},w6a=function(){return function(a){return a.pipe(A(function(b){return{event:b,
timestamp:Date.now()}}),Zka(a.pipe(lf(1E4,Br))))}},x6a=function(a){if(a&1){var b=t();K(0,"div",5)(1,"div",6);Q(2," Relative link may be malformed:\u00a0 ");K(3,"code");Q(4);L();K(5,"button",7);N("click",function(){u(b);var c=P(2);c.copyToClipboard();return v(c.hide())});M(6,"mat-icon",8);L()();K(7,"div",6);Q(8," Force open as: \u00a0 ");K(9,"a",9);N("click",function(c){u(b);var d=P(2);XTa(c)||(c.preventDefault(),c.stopPropagation(),Cr(d.domSafe,"http://"+d.originalHref));return v(d.hide())});Q(10);
L()()()}a&2&&(a=P(2),B(4),yg(a.originalHref),B(5),I("href",Eg("http://",a.originalHref),Pe),B(),S(" http://",a.originalHref," "))},y6a=function(a){a&1&&F(0,x6a,11,4,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},B6a=function(a){var b=[],c=[];a=[].concat(q(a)).sort(z6a);a=A6a(a);a=m(a);for(var d=a.next(),e={};!d.done;e={name$jscomp$466:void 0,operator$jscomp$5:void 0},d=a.next())d=d.value,e.name$jscomp$466=d.name,e.operator$jscomp$5=d.operator,d=d.values,d.length!==0&&b.push(d.map(function(f){return function(g){return hca(g)||
jca(g)?f.name$jscomp$466+f.operator$jscomp$5+g:f.name$jscomp$466+f.operator$jscomp$5+'"'+g+'"'}}(e)).join(" "));c.length>0&&b.push("filters="+encodeURIComponent(c.join(",")));return b.join(" ")},A6a=function(a){var b=[];a=m(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(fca(hca)(e))b.push({name:d,operator:c,values:e});else if(fca(gca)(e))b.push({name:d,operator:c,values:e});else if(fca(jca)(e))b.push({name:d,operator:c,values:e});else throw Error("ze`"+
e);}return b},Dr=function(a,b,c){if(C6a.includes(a)||D6a.includes(a)||E6a.includes(a))return{id:a,operator:b,values:c};throw Error("Ae`"+a);},z6a=function(a,b){return F6a.indexOf(a.id)-F6a.indexOf(b.id)},G6a=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}},H6a=function(a,b,c){var d=G6a(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[Dr(d,
"=",[b])];case "job_regex":return[Dr(d,"=~",[b])];case "index":case "attempt":case "min_time":case "max_time":return[Dr(d,"=",[Number(b)])];case "q":return[Dr(d,"=",[b.startsWith("(?i)")?b.substring(4):b])];case "q_invert":return[Dr(d,"!=",[b.startsWith("(?i)")?b.substring(4):b])];case "src_file":return a=c.get("src_line"),[Dr(d,"=~",[a?b+":"+a:b])];case "inverted_call_site_regex":return[Dr(d,"!=",[].concat(q(b.split(","))))];default:return null}},I6a=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}},J6a=function(a,b){return this._trackRow(b)},K6a=function(a){a&1&&(K(0,"tr",0)(1,"td",3),Q(2),L()());a&2&&(a=P(),B(),vg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Kf("colspan",a.numCols),B(),S(" ",a.label," "))},L6a=function(a){a&1&&(K(0,"td",3),Q(1),L());a&2&&(a=P(2),vg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Kf("colspan",a._firstRowOffset),
B(),S(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},M6a=function(a,b){if(a&1){var c=t();K(0,"td",6)(1,"button",7);N("click",function(f){var g=u(c).$implicit,k=P(2);return v(k._cellClicked(g,f))})("focus",function(f){var g=u(c).$implicit,k=P(2);return v(k._emitActiveDateChange(g,f))});K(2,"span",8);Q(3);L();M(4,"span",9);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P().$index,e=P();vg("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);Kf("data-mat-row",
d)("data-mat-col",b);B();wg("mat-calendar-body-disabled",!a.enabled)("mat-calendar-body-active",e._isActiveCell(d,b))("mat-calendar-body-range-start",e._isRangeStart(a.compareValue))("mat-calendar-body-range-end",e._isRangeEnd(a.compareValue))("mat-calendar-body-in-range",e._isInRange(a.compareValue))("mat-calendar-body-comparison-bridge-start",e._isComparisonBridgeStart(a.compareValue,d,b))("mat-calendar-body-comparison-bridge-end",e._isComparisonBridgeEnd(a.compareValue,d,b))("mat-calendar-body-comparison-start",
e._isComparisonStart(a.compareValue))("mat-calendar-body-comparison-end",e._isComparisonEnd(a.compareValue))("mat-calendar-body-in-comparison-range",e._isInComparisonRange(a.compareValue))("mat-calendar-body-preview-start",e._isPreviewStart(a.compareValue))("mat-calendar-body-preview-end",e._isPreviewEnd(a.compareValue))("mat-calendar-body-in-preview",e._isInPreview(a.compareValue));I("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);Kf("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||
null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",e.todayValue===a.compareValue?"date":null)("aria-describedby",e._getDescribedby(a.compareValue));B();wg("mat-calendar-body-selected",e._isSelected(a.compareValue))("mat-calendar-body-comparison-identical",e._isComparisonIdentical(a.compareValue))("mat-calendar-body-today",e.todayValue===a.compareValue);B();S(" ",a.displayValue," ")}},O6a=function(a,b){a&1&&(K(0,"tr",1),F(1,L6a,2,6,"td",4),Of(2,M6a,5,48,"td",5,N6a),L());if(a&2){a=b.$implicit;
b=b.$index;var c=P();B();G(b===0&&c._firstRowOffset?1:-1);B();Pf(a)}},P6a=function(a){return(a==null?void 0:a.nodeName)==="TD"},Q6a=function(a){if(P6a(a))var b=a;else if(P6a(a.parentNode))b=a.parentNode;else{var c;P6a((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},R6a=function(a,b,c){return c!==null&&b!==c&&a<c&&a===b},S6a=function(a,b,c){return b!==null&&b!==c&&a>=b&&a===c},T6a=function(a,b,c,
d){return d&&b!==null&&c!==null&&b!==c&&a>=b&&a<=c},U6a=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},V6a=function(a,b){a&1&&(K(0,"th",2)(1,"span",6),Q(2),L(),K(3,"span",3),Q(4),L()());a&2&&(a=b.$implicit,B(2),yg(a.long),B(2),yg(a.narrow))},X6a=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=W6a(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},Y6a=function(a,b,c,d){return((a.getYear(b)-W6a(a,c,d))%24+24)%24},W6a=function(a,b,c){var d=0;c?d=
a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},Z6a=function(){},$6a=function(a){if(a&1){var b=t();K(0,"mat-month-view",4);Cg("activeDateChange",function(c){u(b);var d=P();Bg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("_userSelection",function(c){u(b);var d=P();return v(d._dateSelected(c))})("dragStarted",function(c){u(b);var d=P();return v(d._dragStarted(c))})("dragEnded",function(c){u(b);var d=P();return v(d._dragEnded(c))});L()}a&2&&(a=P(),Ag("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))},a7a=function(a){if(a&1){var b=t();K(0,"mat-year-view",5);Cg("activeDateChange",function(c){u(b);var d=P();Bg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("monthSelected",function(c){u(b);var d=P();return v(d._monthSelectedInYearView(c))})("selectedChange",
function(c){u(b);var d=P();return v(d._goToDateInView(c,"month"))});L()}a&2&&(a=P(),Ag("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},b7a=function(a){if(a&1){var b=t();K(0,"mat-multi-year-view",6);Cg("activeDateChange",function(c){u(b);var d=P();Bg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("yearSelected",function(c){u(b);var d=P();return v(d._yearSelectedInMultiYearView(c))})("selectedChange",
function(c){u(b);var d=P();return v(d._goToDateInView(c,"year"))});L()}a&2&&(a=P(),Ag("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},c7a=function(){},d7a=function(a){a&1&&(Ad(),K(0,"svg",2),M(1,"path",3),L())},f7a=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=m(d);for(c=b.next();!c.done;c=b.next()){c=c.value;d=m(e7a.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,c.startsWith(e))return{account:c.replace(e,""),accountType:e7a.get(e)}}var f,g;return{account:(g=(f=a.get("account"))!=null?f:a.get("gaia"))!=null?g:"",accountType:"gaia"}},g7a=function(a){a&1&&(K(0,"b-glue"),M(1,"mat-icon",4),L())},h7a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},i7a=function(a,b){if(a&1){var c=t();K(0,"span",6);F(1,h7a,1,1,"mat-icon",
7);K(2,"a",8);N("click",function(f){var g=u(c).$implicit,k=P(3);k.openLink(f,g.href);return v(k.hide())});Q(3);L()();K(4,"button",9);N("click",function(){var f=u(c).$implicit,g=P(3);g.copyToClipboard(f.originalHref);return v(g.hide())});M(5,"mat-icon",10);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;var e=P(3);B();G(a.icon?1:-1);B();I("href",a.originalHref,Pe)("rel",e.EXTERNAL_LINK_REL);B();yg(a.label);B();wg("final",d===b-1)}},k7a=function(a){a&1&&(K(0,"div",5),Of(1,i7a,6,6,null,null,j7a),
L());a&2&&(a=P(2),B(),Pf(a.urls))},l7a=function(a){a&1&&F(0,k7a,3,0,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},m7a=function(a){a&1&&(K(0,"div",4),Wf(1,5),L());a&2&&(a=P(),I("onedevIsHovercardReady",a.hovercardReady))},n7a=function(a){var b=a.filter(function(k){var l;return(l=k.experimentalFields)==null?void 0:l.clusterIds.length});a=new Map;b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=m(c.experimentalFields.clusterIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=(f=a.get(e))!=
null?f:new Set;g.add(c.issueId);a.set(e,g)}}a=[].concat(q(a.values())).map(function(k){return[].concat(q(k))});return uq(a,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,l){return l.length-k.length}).slice(0,3).map(function(k){return[].concat(q(k))})},Er=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(ko(a)&&(d==="NEW"||d==="UNSPECIFIED"))return"NEW";
if(ko(a)&&d==="CONFIRMED")return"CONFIRMED";if(ko(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"},Fr=function(a){if(a){var b=Er(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 ko(a)?"REOPENED":e;throw Error("Ce");}}},p7a=function(a,b){return b.length?a.filter(function(c){return[].concat(q(b)).some(function(d){return o7a(c,d)})}):a},q7a=function(a,b){return b.length?a.filter(function(c){return[].concat(q(b)).every(function(d){return d.check(c)})}):
a},o7a=function(a,b){var c,d;return!((c=a.experimentalFields)==null?0:(d=c.triage)==null?0:d.dismissed)&&b.check(a)},Gr=function(a,b){return b!=null&&b.displayName?b.displayName:a+" triage"},r7a=function(a,b,c){return c!=null&&c.displayName?ee(c.displayName):a.pipe(A(function(d){var e;return(e=d==null?void 0:d.name)!=null?e:b}),A(function(d){return Gr(d)}))},s7a=function(a,b){return{displayAs:"Team: "+a.name,queryAtom:"teamId:"+a.teamId+(b===void 0||b?"+":""),tooltip:"Issues within this team's components"}},
t7a=function(a,b){return{displayAs:"Component: "+a.name,queryAtom:"componentId:"+a.componentId+(b===void 0||b?"+":""),tooltip:"Issues within this component"}},Hr=function(a,b,c){c=c===void 0?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(Qm);return b.length===0?"":a+":("+b.join("|")+")"+(c?"+":"")},Ir=function(){return bd.apply(0,arguments).filter(Boolean).join(" AND ")},u7a=function(a){return{filter:a,pageSize:250,sort:"created_time:desc",custom:"byExperimentalPhase"}},v7a=function(a,b){return a.filter(function(c){return Er(c)===
b})},Jr=function(a){return typeof a==="string"?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},w7a=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(){u(b);var c=P();return v(c.dialogRef.close(!1))});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.cancelButtonText," "))},x7a=function(a){var b=[];a=[].concat.apply([],q(a.map(function(e){return e.actions})));a=m(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$146:void 0},c=a.next())d.action$jscomp$146=c.value,b.some(function(e){return function(f){return mm(e.action$jscomp$146,
f)}}(d))||b.push(d.action$jscomp$146);return b},y7a=function(a){return Array.from(new Set([].concat.apply([],q(a.map(function(b){return b.issueIds})))))},A7a=function(a){return z7a.has(a)},B7a=function(a){return{encryptedMedia:Fda(Tn(a,1,void 0,jb)),errorMessage:a.getErrorMessage()}},D7a=function(a){var b=new C7a;b=Kr(b,1,gb(a.attachment,!1,!0));if(a.contentJudgement!==void 0){var c=b.setContentJudgement;a=a.contentJudgement;a=(new Lr).setIt(kWa(a));c.call(b,a)}return b},F7a=function(a){var b;return{attachments:((b=
a.getAttachmentsList())!=null?b:[]).map(E7a)}},E7a=function(a){if(a!=null)return zWa(a.getIt())},G7a=function(a,b){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a))},J7a=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=H7a(b),f=H7a(c),g=H7a(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=I7a("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=I7a("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",
c,f);d=I7a("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,g);return b+a+c+k+d},I7a=function(a,b,c){return(new Tl(a)).format({COUNT:b,TEXT:c})},M7a=function(a){return a.isInternal?a.isProd?K7a:L7a:[]},N7a=function(a,b,c,d){c&&c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},O7a=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},P7a=function(){return{startTime:Date.now(),sessionStartTime:Date.now(),firstActionSeen:!1,
editCount:0,variations:new Set}},Q7a=function(a){return typeof a==="object"?"customField:"+a.customFieldId:a},S7a=function(a,b){if(R7a[a])return R7a[a][b]},T7a=function(a){return a?za(a,"@")?a:a==="[Deleted User]"?a:a+"@google.com":""},U7a=function(a,b){a=a===void 0?"":a;b=b===void 0?48:b;var c=c===void 0?"...":c;var d=[].concat(q(a));if(d.length<=b)return a;a=b-[].concat(q(c)).length;d=d.slice(0,a).join("");String.prototype.trimEnd!=null&&(d=d.trimEnd());return d+c},V7a=function(a){a=a===void 0?
"":a;var b=new Set([].concat(q('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(q(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return a.length===0?[]:a.split(/[\s]+/g)},W7a=function(a){return a.split("").every(function(b){return b.length===1&&b.charCodeAt(0)>=0&&b.charCodeAt(0)<=255})},Y7a=function(a){if(a!=null){a=[].concat(q(a)).slice(0,100);a=m(a);for(var b=a.next();!b.done;b=a.next())if(b=X7a[b.value])return b}},a8a=function(a){if(a.includes('"')||a.includes("'"))return[];
var b=[].concat(q(a.matchAll(Z7a)));if(b.length)return b.map(function(c){c=m(c);c.next();c.next();return c.next().value});a=[].concat(q(a.matchAll($7a)));return a.length?a.map(function(c){c=m(c);c.next();c.next();return c.next().value}):[]},b8a=function(a,b){var c;a=(c=a)!=null?c:"";var d;b=(d=b)!=null?d:"";return a.trim()===b.trim()},c8a=function(a){return a.customFieldValue?{customFieldId:String(a.customFieldValue.customFieldId)}:a.fieldName},d8a=function(a){a&1&&M(0,"img",9);a&2&&(a=P(),I("src",
a.person.imageUrl,Pe)("alt",a.person.name+"'s profile picture"))},e8a=function(a){a&1&&(K(0,"div",10),Q(1),L());a&2&&(a=P(),B(),yg(a.person.email))},f8a=function(a){a&1&&(K(0,"div",11)(1,"onedev-chip",12),M(2,"mat-icon",13),Q(3),L()());a&2&&(a=P(),B(3),S("",a.outOfOfficeDescription," "))},g8a=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(2),B(),yg(a.person.title))},h8a=function(a){a&1&&M(0,"li",18)},i8a=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(2),B(),yg(a.person.department))},j8a=function(a){a&
1&&(Uf(0),M(1,"mat-icon",14),K(2,"div",15)(3,"ul",16),E(4,g8a,2,1,"li",8)(5,h8a,1,0,"li",17)(6,i8a,2,1,"li",8),L()(),Vf());a&2&&(a=P(),B(4),I("ngIf",a.person.title),B(),I("ngIf",a.person.title&&a.person.department),B(),I("ngIf",a.person.department))},k8a=function(a){a&1&&(Uf(0),M(1,"mat-icon",19),K(2,"div",15),Q(3),L(),Vf());a&2&&(a=P(),B(3),yg(a.person.location))},l8a=function(a){a&1&&(Uf(0),M(1,"mat-icon",20),K(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),Q(6,"Teams"),L()(),M(7,"li",18),K(8,"li")(9,
"a",21),Q(10,"Calendar"),L()(),M(11,"li",18),K(12,"li")(13,"a",21),Q(14,"CLs"),L()(),M(15,"li",18),K(16,"li")(17,"a",21),Q(18,"Readability"),L()(),M(19,"li",18),K(20,"li")(21,"a",21),Q(22,"CLStats"),L()()()(),Vf());a&2&&(a=P(),B(5),I("href","https://moma.corp.google.com/person/"+a.person.ldap,Pe),B(4),I("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",Pe),B(4),I("href","https://critique.corp.google.com/"+a.person.ldap,Pe),B(4),I("href","https://icanread.corp.google.com/s/"+
a.person.ldap,Pe),B(4),I("href","https://clstats.corp.google.com/?user="+a.person.ldap+"#r",Pe))},n8a=function(a){return a&&m8a.test(a)?a.split("@")[0]:""},o8a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},p8a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},q8a=function(a,b){return a.map(function(c){var d,e,f,g=(e=b==null?void 0:(d=b.matches)==null?void 0:
d.find(function(H){return H.lookupId===c}))==null?void 0:(f=e.personId)==null?void 0:f[0];if(!g)return{ldap:n8a(c),name:"",email:c};var k;d=b==null?void 0:(k=b.people)==null?void 0:k[g];var l;g=(l=p8a(d==null?void 0:d.email))==null?void 0:l.value;var r,w;l=d==null?void 0:(r=d.name)==null?void 0:(w=r[0])==null?void 0:w.displayName;var x,C;r=d==null?void 0:(x=d.photo)==null?void 0:(C=x[0])==null?void 0:C.url;w=o8a(d==null?void 0:d.organization);x=w==null?void 0:w.title;C=w==null?void 0:w.department;
w=w==null?void 0:w.location;return{ldap:n8a(g),email:g||c||"",name:l||"",imageUrl:r,title:x,department:C,location:w}})},t8a=function(){var a={timeout:5E3};a=a===void 0?{}:a;return r8a!=null?r8a:r8a=s8a(a)},u8a=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},s8a=function(a){a=a===void 0?{}:a;var b;return y(function(c){if(c.nextAddress==1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=uh("https://apis.google.com/js/api.js");c=z(c,
v8a(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("Ee");return b.client&&b.client.load?c.jumpTo(3):z(c,u8a(),3)}return c.return(b)})},w8a=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},y8a=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(x8a.has(a))return x8a.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){x8a.delete(a)});x8a.set(a,b);return b}return Promise.resolve()},
z8a=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})},A8a=function(a,b){a&1&&(K(0,"div",1),Ad(),K(1,"svg",2)(2,"g"),M(3,"path",3),L()(),Cd(),K(4,"span",4),Q(5),L()());a&2&&(a=b.ngIf,Kf("aria-label",a)("title",a),B(5),yg(a))},B8a=function(a,b){a!=null&&this.append.apply(this,arguments)},Mr=function(a){C8a.call(this,a)},Nr=function(a,b){b=b===void 0?
!1:b;this.parsedImageUrl_=null;a instanceof D8a||(E8a==void 0&&(E8a=new F8a),a=E8a.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();C8a.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},G8a=function(a,b){a&1&&(K(0,"onedev-person-hovercard-body",1),T(1,"async"),dg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),dg(3,1,["ngProjectAs",
"[onedev-additional-content]",5,["","onedev-additional-content",""]]),L());a&2&&(a=b.ngIf,b=P(),I("person",a)("outOfOfficeDescription",U(1,2,b.outOfOfficeDescription$)))},H8a=function(a){a&1&&(K(0,"onedev-person-hovercard",2,0),dg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),L());if(a&2){a=qg(1);var b=P();I("email",b.email)("enableWaldo",!0)("onedevIsHovercardReady",a.init)}},I8a=function(a){a&1&&Wf(0)},J8a=function(a){a&1&&(K(0,"span",2),E(1,I8a,1,0,"ng-container",
3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-person-card",4),L());if(a&2){a=qg(3);var b=P(),c=qg(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.email);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},K8a=function(a){a&1&&Wf(0)},L8a=function(a){a&1&&E(0,K8a,1,0,"ng-container",3);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},M8a=function(a){a&1&&dg(0)},P8a=function(a){if(a&1){var b=t();Uf(0,1);K(1,"onedev-hovercard-action",3);T(2,"async");N("onAction",function(){u(b);var e=P();return v(N8a(e))});
K(3,"span");Q(4);L()();K(5,"onedev-hovercard-action",3);T(6,"async");N("onAction",function(){u(b);var e=P();return v(O8a(e))});K(7,"span");Q(8);L()();Vf()}if(a&2){a=P();B();var c;I("disabled",(c=U(2,4,a.actionService.assigneeUpdating$))!=null?c:!1);B(3);yg(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B();var d;I("disabled",(d=U(6,6,a.actionService.ccUpdating$))!=null?d:!1);B(3);yg(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},T8a=function(a){return!a.endsWith("/history")&&
!!a.match(Q8a)||!!a.match(R8a)||!!a.match(S8a)},Or=function(a){return a.type==="hyperlink"},U8a=function(a){return Or(a)&&T8a(a.href)},W8a=function(a){return Or(a)&&!!a.href.match(V8a)},X8a=function(a,b){b=b===void 0?!1:b;return!a.endsWith("/history")&&a.match(Q8a)?(a=a.match(Q8a)[2],b?"https://3p-screenshot.corp.google.com/"+a+".png":"https://screenshot.googleplex.com/"+a+".png"):a.match(R8a)?"https://plx-alerts.corp.google.com/chart/?"+a.match(R8a)[1]:null},Y8a=function(a){return a.type==="issueReference"},
Z8a=function(a){return Or(a)&&!U8a(a)&&!(Or(a)&&a.href.startsWith("mailto:"))},$8a=function(a){a&1&&(M(0,"img",1),T(1,"async"));if(a&2){a=P(2);I("src",U(1,2,a.srcRedirected$),Pe);var b;Kf("alt",(b=a.alt)!=null?b:"user provided image")}},a9a=function(a){if(a&1){var b=t();K(0,"a",3);T(1,"async");T(2,"async");N("click",function(c){u(b);var d=P(2);return v(d.trigger(c))})("keydown.enter",function(c){u(b);var d=P(2);return v(d.trigger(c))});K(3,"b-glue");M(4,"mat-icon",4);L();Uf(5);Q(6);T(7,"async");Vf();
L()}a&2&&(a=P(2),I("href",U(1,3,a.src$),Pe)("title",U(2,5,a.src$)),B(6),yg(U(7,7,a.srcTruncated$)))},b9a=function(a){a&1&&(F(0,$8a,2,4,"img",1),T(1,"async"),Lf(2,a9a,8,9,"a",2));if(a&2){var b;a=P();G((b=U(1,1,a.showImage$))?0:2,b)}},c9a=function(a){a&1&&(M(0,"mat-icon",0),T(1,"async"));a&2&&(a=P(),I("matTooltip",Eg("Unable to load image ",U(1,2,a.srcTruncated$))))},d9a=function(a){a&1&&(M(0,"br"),K(1,"a",1),M(2,"b-secure-image-widget",2),L(),M(3,"br"));if(a&2){a=P();var b=P();B();I("href",a,Pe)("rel",
b.EXTERNAL_LINK_REL);B();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},e9a=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)}},f9a=function(a){a&1&&(F(0,d9a,4,5),T(1,"async"),Lf(2,e9a,1,3,"b-secure-image-widget",0));if(a&2){var b;a=P();G((b=U(1,1,a.displayMode$))===a.DisplayMode.SHOW?0:b===a.DisplayMode.COLLAPSE?2:-1)}},g9a=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},
h9a=function(a,b){a&1&&M(0,"b-plain-format-section",1);a&2&&I("section",b.$implicit)},i9a=function(a){a&1&&M(0,"b-plain-format-quoted-section",0);a&2&&(a=P(),I("section",a.section))},j9a=function(a){a&1&&M(0,"b-plain-format-unquoted-section",0);a&2&&(a=P(),I("section",a.section))},l9a=function(a){if(a&1){var b=t();K(0,"a",4);N("click",function(){u(b);var c=P();c.showQuote=!1;k9a(c);return v()});Q(1," - Hide quoted text - ");L()}a&2&&(a=P(),Kf("aria-controls",a.childId))},m9a=function(a){if(a&1){var b=
t();K(0,"a",5);N("click",function(){u(b);var c=P();c.showQuote=!0;k9a(c);return v()});Q(1," - Show quoted text - ");L()}a&2&&(a=P(),Kf("aria-controls",a.childId))},n9a=function(a,b){a&1&&M(0,"b-literal-format-presenter",0);a&2&&I("content",b)},o9a=function(a,b){if(a&1){var c=t();K(0,"b-markdown-format-presenter",2);N("checkboxChange",function(d){u(c);var e=P();return v(e.checkboxChange.emit(d))});L()}a&2&&(a=P(),I("content",b)("canEditComment",a.canEditComment))},p9a=function(a,b){a&1&&M(0,"b-plain-format-presenter",
0);a&2&&I("content",b)},q9a=function(a,b){a&1&&(K(0,"div",1),M(1,"b-formatted-comment-presenter",2),L());a&2&&(a=P(),wg("invisible",(a.comment||"").trim()==="")("error",b.isFallback),B(),I("formattedComment",b.formattedComment))},t9a=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(r9a).length;var c=a.filter(function(d){return!r9a(d)}).filter(s9a).length;return{filters:b,text:a.length-b-c,resourceIds:c}},
s9a=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:u9a(a)},r9a=function(a){return!!a.match(/\w:\w/g)},v9a=function(a){a&1&&(K(0,"span",11),Ad(),K(1,"svg",13),M(2,"path",14),L(),K(3,"svg",15),M(4,"path",16),L()())},w9a=function(a){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(function(b){return a.classList.contains(b)})},x9a=function(a){a&1&&dg(0,2)},y9a=function(a){a&1&&(K(0,"thead",0),Wf(1,1),L(),
K(2,"tbody",0),Wf(3,2)(4,3),L(),K(5,"tfoot",0),Wf(6,4),L())},z9a=function(a){a&1&&Wf(0,1)(1,2)(2,3)(3,4)},A9a=function(a,b){return a.concat(Array.from(b))},B9a=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},C9a=function(a){a&1&&dg(0,2)},D9a=function(a){a&1&&(K(0,"thead",0),Wf(1,1),L(),K(2,"tbody",2),Wf(3,3)(4,4),L(),K(5,"tfoot",0),Wf(6,5),L())},E9a=function(a){a&
1&&Wf(0,1)(1,3)(2,4)(3,5)},F9a=function(a){if(a&1){var b=t();K(0,"textarea",14,0);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.draftPlaybook.instructions,c)||(d.draftPlaybook.instructions=c);return v(c)});L()}a&2&&(a=P(),Ag("ngModel",a.draftPlaybook.instructions))},G9a=function(a){a&1&&M(0,"b-live-preview",15);a&2&&(a=P(2),I("comment",a.originalPlaybook.instructions)("formattingMode",a.FormattingMode.MARKDOWN))},H9a=function(a){if(a&1){var b=t();F(0,G9a,1,2,"b-live-preview",15);K(1,"div",16)(2,
"button",17);N("click",function(){u(b);var c=P();return v(c.isEditing=!0)});Q(3,"Edit markdown");L()()}a&2&&(a=P(),G(a.originalPlaybook?0:-1))},J9a=function(a,b){if(a&1){var c=t();K(0,"button",38);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.unimplementedPlaybookData.statsInterval=d)});M(1,"mat-icon",39);Q(2);L()}a&2&&(a=b.$implicit,b=P(2),B(),wg("invisible",a!==b.unimplementedPlaybookData.statsInterval),B(),S(" ",I9a(a)," "))},K9a=function(a){a&1&&(K(0,"th",40),Q(1,"Triage actions"),
L())},L9a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.triageActions," "))},M9a=function(a){a&1&&(K(0,"th",40),Q(1,"Acceptance rate"),L())},N9a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.acceptanceRate," "))},O9a=function(a){a&1&&(K(0,"th",40),Q(1,"Accuracy"),L())},P9a=function(a,b){a&1&&(K(0,"td",41),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a.accuracy))},Q9a=function(a){a&1&&M(0,"tr",42)},R9a=function(a){a&1&&M(0,"tr",43)},S9a=function(a){if(a&
1){var b=t();K(0,"div",10)(1,"h4",8);Q(2,"Settings");L();K(3,"div",18)(4,"mat-slide-toggle",19);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.unimplementedPlaybookData.enablePlaybook,d)||(e.unimplementedPlaybookData.enablePlaybook=d);return v(d)});Q(5," Enable this playbook ");L();K(6,"div",20);Q(7," Playbook scope ");M(8,"input",21);L();K(9,"div",22);Q(10," Agent mode ");K(11,"mat-radio-group",23);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.unimplementedPlaybookData.agentMode,d)||(e.unimplementedPlaybookData.agentMode=
d);return v(d)});K(12,"mat-radio-button",24);Q(13," Show suggestion chips ");L();K(14,"mat-radio-button",24);Q(15," Apply actions automatically ");L()()();K(16,"mat-slide-toggle",19);Cg("ngModelChange",function(d){u(b);var e=P();Bg(e.unimplementedPlaybookData.clusterSuggestions,d)||(e.unimplementedPlaybookData.clusterSuggestions=d);return v(d)});Q(17," Cluster suggestions ");L()();K(18,"div",25)(19,"h4",8);Q(20,"Playbook stats");L();K(21,"button",26)(22,"span",27);Q(23);L();M(24,"b-icon",28);L();
K(25,"mat-menu",null,1);Of(27,J9a,3,3,"button",29,Nf);L()();K(29,"div",10)(30,"table",30);Uf(31,31);E(32,K9a,2,0,"th",32)(33,L9a,2,1,"td",33);Vf();Uf(34,34);E(35,M9a,2,0,"th",32)(36,N9a,2,1,"td",33);Vf();Uf(37,35);E(38,O9a,2,0,"th",32)(39,P9a,2,1,"td",33);Vf();E(40,Q9a,1,0,"tr",36)(41,R9a,1,0,"tr",37);L()()()}if(a&2){a=qg(26);var c=P();B(4);Ag("ngModel",c.unimplementedPlaybookData.enablePlaybook);B(4);I("ngModel",c.draftPlaybook.searchQuery);B(3);Ag("ngModel",c.unimplementedPlaybookData.agentMode);
B();I("value",c.AgentMode.SUGGESTIONS);B(2);I("value",c.AgentMode.AUTOMATIC_ACTIONS);B(2);Ag("ngModel",c.unimplementedPlaybookData.clusterSuggestions);B(5);I("matMenuTriggerFor",a);B(2);S(" ",I9a(c.unimplementedPlaybookData.statsInterval)," ");B(4);Pf(c.statsIntervalOptions);B(3);I("dataSource",c.dataSource);B(10);I("matHeaderRowDef",c.displayedColumns);B();I("matRowDefColumns",c.displayedColumns)}},T9a=function(a){for(var b={},c=m(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},U9a=function(a){a&1&&M(0,"mat-spinner",0);a&2&&(a=P(),I("diameter",a.SIZE_LARGE),Kf("aria-label",a.ariaLabel))},V9a=function(a){a&1&&M(0,"mat-spinner",1);a&2&&(a=P(),I("diameter",a.SIZE_SMALL)("strokeWidth",a.DIAMETER_SMALL),Kf("aria-label",a.ariaLabel))},W9a=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});M(1,"mat-icon",2);Q(2," Create playbook ");L()}},X9a=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),
Q(2," Generating triage suggestions "),L())},Z9a=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P(2);return v(Y9a(c))});M(1,"mat-icon",4);Q(2," Execute playbook ");L()}},$9a=function(a){if(a&1){var b=t();F(0,X9a,3,0,"div",3)(1,Z9a,3,0,"button",0);K(2,"button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});M(3,"mat-icon",2);Q(4," Edit playbook ");L()}a&2&&(a=P(),G(a.playbookState===a.PlaybookState.RUNNING?0:1))},a$a=function(a){a&1&&(K(0,"a",1),M(1,
"mat-icon",2),L());a&2&&(a=P(),I("href",a.mdHelpLink,Pe)("disableRipple",!0))},b$a=function(a){if(a&1){var b=t();K(0,"b-formatted-comment-presenter",4);N("checkboxChange",function(c){u(b);var d=P().markdownCheckboxService,e=d.rawComment.split("\n");c=m(c.startPos.split(":")).next().value;c=Number(c)-1;var f=e[c];var g=f.search(/\[[ Xx]\]/);if(g!==-1){var k=f[g+1];k&&(k=k.toLowerCase()==="x"?"[ ]":"[x]",f=f.substring(0,g)+k+f.substring(g+k.length))}e[c]=f;d.rawComment=e.join("\n");d.rawComment$.next(d.rawComment);
d.savingState=d.editIssueService.savingState(d.issueId);d.savingState.get("commentEdit")||(Pr(d.butterBar,"Saving comment edit...",0),Qr(d.savingState,"commentEdit"));Rr(d.issueInteractionsTracking,d.issueId,{label:d.commentNumber===1?"description":"comment"});return v()});L()}a&2&&(a=P(),I("formattedComment",a.formattedComment)("canEditComment",a.canEditComment))},c$a=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))},d$a=function(a){return a instanceof Sr?a:new Sr(a,{})},Tr=function(a){a=d$a(a);return new Sr(a.char,Object.assign({},a.modifiers,{shift:!0}))},e$a=function(a){a=d$a(a);return new Sr(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},f$a=function(){var a=Tr("f");a=d$a(a);return new Sr(a.char,Object.assign({},a.modifiers,{alt:!0}))},h$a=function(a){if(a instanceof Sr){var b=g$a(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(h$a).join(" "):g$a(a)},Ur=function(){return bd.apply(0,arguments)},g$a=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 wb(a)}},i$a=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},j$a=function(a){switch(a){case "P0":return Vr.CHANGE_ISSUE_PRIORITY_TO_P0;case "P1":return Vr.CHANGE_ISSUE_PRIORITY_TO_P1;case "P2":return Vr.CHANGE_ISSUE_PRIORITY_TO_P2;case "P3":return Vr.CHANGE_ISSUE_PRIORITY_TO_P3;
case "P4":return Vr.CHANGE_ISSUE_PRIORITY_TO_P4;case "PRIORITY_UNSPECIFIED":break;default:console.error("Unsupported issue priority in issuePriorityToHotkey")}},k$a=function(a){switch(a){case "NEW":return Vr.CHANGE_ISSUE_STATUS_TO_NEW;case "ASSIGNED":return Vr.CHANGE_ISSUE_STATUS_TO_ASSIGNED;case "ACCEPTED":return Vr.CHANGE_ISSUE_STATUS_TO_ACCEPTED;case "FIXED":return Vr.CHANGE_ISSUE_STATUS_TO_FIXED;case "VERIFIED":return Vr.CHANGE_ISSUE_STATUS_TO_VERIFIED;case "NOT_REPRODUCIBLE":return Vr.CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE;
case "INTENDED_BEHAVIOR":return Vr.CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR;case "OBSOLETE":return Vr.CHANGE_ISSUE_STATUS_TO_OBSOLETE;case "INFEASIBLE":return Vr.CHANGE_ISSUE_STATUS_TO_INFEASIBLE;case "INACTIVE":return Vr.CHANGE_ISSUE_STATUS_TO_INACTIVE;case "DUPLICATE":return Vr.CHANGE_ISSUE_STATUS_TO_DUPLICATE;case "STATUS_UNSPECIFIED":break;default:console.error("Unsupported issue status in issueStatusToHotkey")}},l$a=function(a,b){if(a&1){var c=t();K(0,"a",7);N("click",function(){var d=u(c).$implicit,
e=P(2);return v(e.clickSegment.emit(d.name||d.path))});Q(1);L()}a&2&&(a=b.$implicit,I("href",a.path,Pe),B(),S(" ",a.name||a.path," "))},m$a=function(a){a&1&&(K(0,"button",4),M(1,"mat-icon",5),L(),K(2,"mat-menu",null,0),Of(4,l$a,2,2,"a",6,Nf),L());if(a&2){a=qg(3);var b=P();I("matMenuTriggerFor",a);B(4);Pf(b.segments)}},n$a=function(a){a&1&&M(0,"mat-icon",2);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},o$a=function(a,b){if(a&1){var c=t();K(0,"button",1);N("click",function(){var e=u(c).$implicit,f=P();
e=e.value;f.value=e;f.valueChange.next(e);return v()});F(1,n$a,1,1,"mat-icon",2);Q(2);L()}if(a&2){a=b.$implicit;b=P();var d;I("disableRipple",!0)("matTooltip",(d=a.tooltip)!=null?d:"");Kf("aria-checked",b.value===a.value);B();G(a.icon?1:-1);B();S(" ",a.name," ")}},p$a=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P();return v(c.toggle())})("onHotkey",function(){u(b);var c=P();return v(c.toggle())});M(1,"mat-icon",5);L()}a&2&&(a=P(),xg(a.direction),wg("isClosed",a.isClosed),
I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),B(),I("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},r$a=function(a){if(a&1){var b=t();K(0,"div",6);N("onHotkey",function(){u(b);var c=P();return v(c.toggle())})("mousedown",function(c){u(b);var d=P();return v(d.startDragging(c.pageX))})("keyup.arrowleft",function(){u(b);var c=P();return v(q$a(c,-10))})("keyup.arrowright",function(){u(b);var c=P();return v(q$a(c,10))})("keyup.space",function(){u(b);var c=
P();return v(c.toggle())})("keyup.enter",function(){u(b);var c=P();return v(c.toggle())})("dblclick",function(){u(b);var c=P();return v(c.toggle())});L()}a&2&&(a=P(),I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),Kf("aria-valuenow",a.width)("aria-valuetext",a.width+" pixels"))},s$a=function(a){a=a.getBoundingClientRect();return a.top>=0&&a.bottom<=window.innerHeight},t$a=function(a){a=a.getBoundingClientRect();return a.bottom>0&&a.top<window.innerHeight},
u$a=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 Vd(function(f){f.next(e(a));var g=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});g.observe(a);return function(){g.unobserve(a)}})).pipe(pf())},v$a=function(a,b,c){var d=(c===void 0?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return ve(ee(void 0),re(window,"scroll").pipe(lf(500))).pipe(A(function(){return d(a)}),pf())},A$a=
function(a){var b=Wr(a.resource);if(!b)return[];var c=[],d=0;switch(a.type){case "ISSUE_DEDUPLICATION":var e=Wr(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"duplicateOfIssueId",value:e,actionType:"ADD"});break;case "HOTLIST":e=w$a(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"hotlists",value:e,actionType:"ADD"});break;case "NEEDS_INFO":case "COMPONENT_ROUTING":case "ANY_ISSUE_EDIT":if((e=a.content)==null?0:e.issueModification)e=x$a(a.content.issueModification),
c.push.apply(c,q(e.map(function(C){return Object.assign({},{issueId:b,actionKey:d++},C)})));break;case "ISSUE_DEDUPLICATION_BATCH":var f,g;e=(f=a.content)==null?void 0:(g=f.issueDeduplicationBatch)==null?void 0:g.recommendedCanonicalIssue;if(!e||!e.issueId)break;var k,l,r;f=m((r=(k=a.content)==null?void 0:(l=k.issueDeduplicationBatch)==null?void 0:l.entries)!=null?r:[]);for(k=f.next();!k.done;k=f.next()){k=k.value;if(!k.issue.issueId)break;k.issue.issueId!==e.issueId&&c.push({issueId:k.issue.issueId,
actionKey:d++,fieldName:"duplicateOfIssueId",value:e.issueId,actionType:"ADD"})}break;case "TYPE_UNSPECIFIED":return[]}var w=y$a[a.type],x=z$a[a.type];return c.map(function(C){w.has(C.fieldName)&&(C.allowEdit=!0);x.has(C.fieldName)&&(C.allowExclude=!0);return C})},x$a=function(a){var b=[];b.push.apply(b,q(B$a(a.addState,a.addMask,!0)));b.push.apply(b,q(B$a(a.removeState,a.removeMask,!1)));a.comment&&b.push({fieldName:"comment",value:a.comment.unlinkifiedComment,formattingMode:a.comment.formattingMode});
return b},B$a=function(a,b,c){var d=[];b=m(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:xm((f=a)==null?void 0:f.assigneeUser),actionType:c?"ADD":"REMOVE"});break;case "attachments":break;case "blockedByIssueId":var g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.blockedByIssueId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "blockingIssueId":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:
(g=f.blockingIssueId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "ccs":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.ccUsers)==null?void 0:g.map(xm).join(","),actionType:c?"ADD":"REMOVE"});break;case "changelists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.changelist)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "collaborators":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.collaboratorsUsers)==null?void 0:
g.map(xm).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=m(a.customField),g=f.next();!g.done;g=f.next())d.push({fieldName:e,customFieldValue:g.value,actionType:c?"ADD":"REMOVE"});break;case "deletionReason":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.deletionReason)||
void 0,actionType:c?"ADD":"REMOVE"});break;case "duplicateOfIssueId":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.duplicateOfIssueId)||void 0,actionType:c?"ADD":"REMOVE"});break;case "effortEstimate":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:(g=f.effort)==null?void 0:g.estimate)||void 0,actionType:c?"ADD":"REMOVE"});break;case "foundInVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.foundInVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});
break;case "gerritChanges":g=f=void 0;d.push({fieldName:e,gerritChangeValue:(g=(f=a)==null?void 0:f.gerritChanges)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "hotlists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.hotlistId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "inProd":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.inProd)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isArchived":f=void 0;d.push({fieldName:e,value:((f=a)==
null?0:f.isArchived)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isDeleted":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.isDeleted)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "parentId":break;case "priority":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.priority)!=null?g:void 0,actionType:"ADD"}));break;case "readState":break;case "reporter":c&&(f=void 0,d.push({fieldName:e,value:xm((f=a)==null?void 0:f.reporterUser),actionType:"ADD"}));break;case "severity":c&&
(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.severity)!=null?g:void 0,actionType:"ADD"}));break;case "sloEndTime":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(g=f.sloEndTime)==null?0:g.seconds)?String(a.sloEndTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "sloSnoozeType":g=f=void 0;d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.sloSnoozeType)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "sloStartTime":g=f=void 0;d.push({fieldName:e,value:((f=a)==
null?0:(g=f.sloStartTime)==null?0:g.seconds)?String(a.sloStartTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "staffing":g=f=void 0;d.push({fieldName:e,staffingValue:(g=(f=a)==null?void 0:f.staffing)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "status":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.status)!=null?g:void 0,actionType:"ADD"}));break;case "targetedToVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.targetedToVersion)==null?
void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "title":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.title)!=null?g:"",actionType:"ADD"}));break;case "type":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.type)!=null?g:void 0,actionType:"ADD"}));break;case "verifiedInVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.verifiedInVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "verifier":f=void 0;d.push({fieldName:e,
value:((f=a)==null?0:f.verifierUser)?xm(a.verifierUser):void 0,actionType:c?"ADD":"REMOVE"});break;default:wb(e)}return d},E$a=function(a){var b={addMask:[],removeMask:[],addState:gVa(),removeState:gVa()};a=m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,C$a(c))if(c.actionType==="REMOVE")D$a(c,b.removeState),b.removeMask.push(c.fieldName);else{if(c.actionType!=="ADD"&&c.actionType!=="ACTION_TYPE_UNSPECIFIED"&&c.actionType)throw Error("Ie");D$a(c,b.addState);b.addMask.push(c.fieldName)}return b},
D$a=function(a,b){switch(a.fieldName){case "assignee":b.assigneeUser=ym(a.value);break;case "attachments":break;case "blockedByIssueId":var c,d;b.blockedByIssueId=(d=(c=a.value)==null?void 0:c.split(",").filter(Qm))!=null?d:[];break;case "blockingIssueId":var e,f;b.blockingIssueId=(f=(e=a.value)==null?void 0:e.split(",").filter(Qm))!=null?f:[];break;case "ccs":var g,k;b.ccUsers=(k=(g=a.value)==null?void 0:g.split(",").map(ym).filter(Qm))!=null?k:[];break;case "changelists":var l,r;b.changelist=(r=
(l=a.value)==null?void 0:l.split(",").filter(Qm))!=null?r:[];break;case "collaborators":var w,x;b.collaboratorsUsers=(x=(w=a.value)==null?void 0:w.split(",").map(ym).filter(Qm))!=null?x:[];break;case "comment":break;case "componentId":b.componentId=a.value||null;break;case "customField":var C;b.customField=(C=b.customField)!=null?C:[];a.customFieldValue&&b.customField.push(a.customFieldValue);break;case "deletionReason":var H;b.deletionReason=(H=a.value)!=null?H:null;break;case "duplicateOfIssueId":b.duplicateOfIssueId=
a.value||null;break;case "effortEstimate":var J;b.effort=(J=b.effort)!=null?J:{estimate:void 0};b.effort.estimate=a.value||void 0;break;case "foundInVersion":var O,R;b.foundInVersion=(R=(O=a.value)==null?void 0:O.split(",").filter(Qm))!=null?R:[];break;case "gerritChanges":var V;b.gerritChanges=(V=a.gerritChangeValue)!=null?V:[];break;case "hotlists":var ca,oa;b.hotlistId=(oa=(ca=a.value)==null?void 0:ca.split(",").map(Number).filter(Qm))!=null?oa:[];break;case "inProd":b.inProd=a.value==="true";
break;case "isArchived":b.isArchived=a.value==="true";break;case "isDeleted":b.isDeleted=a.value==="true";break;case "parentId":break;case "priority":var ua;b.priority=(ua=a.value)!=null?ua:null;break;case "readState":break;case "reporter":b.reporterUser=ym(a.value);break;case "severity":var ka;b.severity=(ka=a.value)!=null?ka:null;break;case "sloEndTime":b.sloEndTime=a.value?mSa(Number(a.value)*1E3):null;break;case "sloSnoozeType":var Ga;b.sloSnoozeType=(Ga=a.value)!=null?Ga:null;break;case "sloStartTime":b.sloStartTime=
a.value?mSa(Number(a.value)*1E3):null;break;case "staffing":var ja;b.staffing=(ja=a.staffingValue)!=null?ja:null;break;case "status":var ta;b.status=(ta=a.value)!=null?ta:null;break;case "targetedToVersion":var xa,Sa;b.targetedToVersion=(Sa=(xa=a.value)==null?void 0:xa.split(",").filter(Qm))!=null?Sa:[];break;case "title":b.title=a.value||"";break;case "type":var $a;b.type=($a=a.value)!=null?$a:null;break;case "verifiedInVersion":var pb,Xb;b.verifiedInVersion=(Xb=(pb=a.value)==null?void 0:pb.split(",").filter(Qm))!=
null?Xb:[];break;case "verifier":b.verifierUser=ym(a.value);break;default:wb(a.fieldName)}},C$a=function(a){var b=a.value!=null&&a.value!==""||a.customFieldValue!=null||a.staffingValue!=null||a.formattingMode!=null||a.gerritChangeValue!=null;return F$a.has(a.fieldName)&&(a.actionType==="REMOVE"||!b)||a.actionType==="ADD"&&!b||G$a.has(a.fieldName)&&!b?!1:!0},I$a=function(a,b){switch(a.type){case "ISSUE_DEDUPLICATION":case "ISSUE_DEDUPLICATION_BATCH":return b?"Mark as duplicate":"Dedupe";case "COMPONENT_ROUTING":case "HOTLIST":return"Reroute";
case "ANY_ISSUE_EDIT":var c=a.content;if(c&&c.issueModification){a=c.issueModification.addState;var d=c.issueModification.removeMask;c=new Set([].concat(q(c.issueModification.addMask),q(d)));b=(a==null?void 0:a.status)==="DUPLICATE"?b?"Mark as duplicate":"Dedupe":(a==null?0:a.status)&&H$a.has(a.status)?"Clean up":c.has("componentId")||c.has("hotlists")||c.has("assignee")||c.has("ccs")?"Reroute":c.has("priority")||c.has("severity")?"Reprioritize":"Suggestion"}else b="Suggestion";return b;default:return""}},
J$a=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(c){u(b);var d=P();return v(d.handleClick(c))})("keydown",function(c){u(b);var d=P();return v(d.handleKeydown(c))});M(1,"mat-icon",2);K(2,"span",3);Q(3);L()()}a&2&&(a=P(),wg("hovered",a.isParentRowActive),Jf("aria-label","View "+a.getRecommendationText()+" recommendation"),B(3),S(" ",a.getRecommendationText()," "))},K$a=function(a,b){if(a&1){var c=t();K(0,"button",4);N("click",function(){var d=u(c).$implicit;P(3).onSelect.emit(d);
return v()});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "))},M$a=function(a){a&1&&Of(0,K$a,2,1,"button",3,L$a);a&2&&(P(),a=bg(2),Pf(a))},O$a=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){var d=u(c).$implicit;P().onSelect.emit(d);return v()});Q(1);L();$f(2);F(3,M$a,2,0)}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "),B(),a=ag(N$a(a)),B(),G(a.length?3:-1))},P$a=function(a){a&1&&dg(0)},Q$a=function(a){a&1&&Wf(0)},R$a=function(a){if(a&1){var b=t();K(0,"button",6,1);N("click",
function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Q$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Kf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},S$a=function(a){a&1&&Wf(0)},T$a=function(a){if(a&1){var b=t();K(0,"button",8,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,S$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);
xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Kf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},U$a=function(a){a&1&&Wf(0)},V$a=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,U$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Kf("aria-label",
a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},W$a=function(a){a&1&&Wf(0)},X$a=function(a){if(a&1){var b=t();K(0,"button",10,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,W$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Kf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},Y$a=function(a){a&1&&Wf(0)},
Z$a=function(a){if(a&1){var b=t();K(0,"button",6,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Y$a,1,0,"ng-container",7);L()}if(a&2){a=P();var c=qg(1);xg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Kf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},$$a=function(a){a&1&&M(0,"waldo-availability-chip",1);a&2&&(a=P(2),I("user",a.user.emailAddress),Kf("coinonly",a.coinonly))},aab=function(a){a&
1&&F(0,$$a,1,2,"waldo-availability-chip",1);a&2&&(a=P(),G(a.user.emailAddress?0:-1))},bab=function(a){a&1&&M(0,"b-availability-chip",2);a&2&&(a=P(2),I("user",a.user))},cab=function(a){a&1&&(Uf(0),Q(1),Vf(),F(2,bab,1,1,"b-availability-chip",2));if(a&2){a=P();var b=P();B();yg(a.content);B();G(b.enableWaldoAvailability&&b.availabilityChipEnabled?2:-1)}},dab=function(a){a&1&&Wf(0)},eab=function(a){a&1&&(K(0,"span",3),E(1,dab,1,0,"ng-container",4),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",
5),L());if(a&2){a=qg(3);var b=P(),c=qg(1),d=P();I("onedevHovercardTrigger",a);Kf("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},fab=function(a){a&1&&Wf(0)},gab=function(a){a&1&&E(0,fab,1,0,"ng-container",4);a&2&&(P(),a=qg(1),I("ngTemplateOutlet",a))},hab=function(a,b){a&1&&(E(0,cab,3,2,"ng-template",null,0,Mg),F(2,eab,5,4)(3,gab,1,1,"ng-container"));a&2&&(a=P(),B(2),G(a.hovercardEnabled&&a.isNonObfuscatedEmail(b.email)?2:3))},
iab=function(a){a&1&&M(0,"b-user-display-name",0);a&2&&(a=P(),I("user",a.model)("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},jab=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a.getDisplayString()))},kab=function(a){a&1&&Wf(0)},lab=function(a){a&1&&(K(0,"span",2),E(1,kab,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",4),L());if(a&2){a=qg(3);var b=P(),c=qg(3);I("onedevHovercardTrigger",
a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},mab=function(a){a&1&&Wf(0)},nab=function(a){a&1&&E(0,mab,1,0,"ng-container",3);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},pab=function(a){a&1&&M(0,"img",5);a&2&&(a=P(2),P(),I("src",oab[a.email],Pe))},qab=function(a){a&1&&M(0,"img",8);a&2&&(a=P(3),I("src",a.src,Pe)("srcset",a.srcset))},rab=function(a){a&1&&(K(0,"span",7),T(1,"async"),F(2,qab,1,2,"img",8),L());if(a&2){a=P(2);var b=P();wg("team-member",U(1,5,b.isTeamMember$))("anonymous",!a.showImage);
B(2);G(a.showImage?2:-1)}},tab=function(a){a&1&&(F(0,pab,1,1,"img",5),F(1,rab,3,7,"span",6));if(a&2){a=P();var b=P();G(a.email&&sab(b,a.email)?0:-1);B();G(sab(b,a.email)?-1:1)}},uab=function(a,b){a&1&&(F(0,lab,5,3)(1,nab,1,1,"ng-container"),E(2,tab,2,2,"ng-template",null,0,Mg));a&2&&(a=P(),G(a.isNonObfuscatedEmail(b.email)?0:1))},vab=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}},wab=function(a){return a?hj(a.replace(/_/g," ").toLowerCase()):""},xab=function(a){return a?a.join(", "):""},yab=function(a,b){if(!a)return Bh("");if(!b)return Bh(a);b=b.split(" ").map(xRa);b=b.filter(function(g){return!!g});b=b.map(Xr);if(b.length===0)return Bh(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(Eh("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Ch(c)},zab=function(a){return a?"Yes":"No"},Aab=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},Bab=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},Cab=function(a){if(!a)return null;var b=new bo;b.setTime(a.seconds*1E3);return b},Dab=function(a){if(a&&$n(a))return a},Eab=function(a){return a==
null?"":String(a)},Fab=function(a){a&1&&M(0,"b-user-image",3);a&2&&(a=P(),I("email",a.email))},Gab=function(a){a&1&&Wf(0)},Hab=function(a){a&1&&(K(0,"span",5),E(1,Gab,1,0,"ng-container",6),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",7),L());if(a&2){a=qg(3);var b=P(),c=qg(5);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},Iab=function(a){a&1&&Wf(0)},Jab=function(a){a&1&&E(0,Iab,1,0,"ng-container",6);a&2&&(P(),a=qg(5),I("ngTemplateOutlet",a))},Kab=
function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a.getEmailDisplayString(a.email,a.ldapOnly)))},Lab=function(a){a&1&&(K(0,"span",4),M(1,"b-availability-chip",8),T(2,"emailToUser"),L());a&2&&(a=P(),B(),I("user",U(2,1,a.email)))},Mab=function(a,b){$n(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},Nab=function(a){a&1&&M(0,"b-icon",5)},Oab=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),
I("email",a.email))},Pab=function(a){a&1&&(F(0,Nab,1,0,"b-icon",5),T(1,"async"),Lf(2,Oab,1,1,"b-user-image",6));a&2&&(a=P(),G(a.enableGroupIcon&&U(1,1,a.isGroup$)?0:2))},Qab=function(a){a&1&&(M(0,"b-user-display-name",2),T(1,"emailToUser"));a&2&&(a=P(),I("user",a.user||U(1,3,a.email))("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},Rab=function(a){a&1&&Wf(0)},Sab=function(a){a&1&&(K(0,"span",7),E(1,Rab,1,0,"ng-container",8),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",
9),L());if(a&2){a=qg(3);P();var b=qg(3),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.email)}},Uab=function(a){a&1&&Wf(0)},Vab=function(a){a&1&&E(0,Uab,1,0,"ng-container",8);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},Wab=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P(3),B(),yg(a.userToDisplayString(a.user)))},Xab=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P(3),B(),yg(a.email))},Yab=function(a){a&1&&(K(0,"span",10),F(1,Wab,2,1,"ng-container")(2,Xab,2,1,"ng-container"),
L());a&2&&(a=P(2),B(),G(a.user?1:2))},Zab=function(a){a&1&&(F(0,Sab,5,3)(1,Vab,1,1,"ng-container"),E(2,Yab,3,1,"ng-template",null,0,Mg));a&2&&(a=P(),G(a.isNonObfuscatedEmail(a.email)?0:1))},$ab=function(a){a&1&&(M(0,"mat-icon",3),T(1,"async"),T(2,"async"));if(a&2){a=P();var b,c;I("svgIcon",(b=U(1,2,a.iconName$))!=null?b:"")("matTooltip",(c=U(2,4,a.iconToolTip$))!=null?c:"")}},abb=function(a){a&1&&M(0,"b-availability-chip",4);a&2&&(a=P(),I("user",a.user))},bbb=function(a){a&1&&Wf(0)},cbb=function(a){a&
1&&E(0,bbb,1,0,"ng-container",8);a&2&&(a=P(),I("ngTemplateOutlet",a.calendarButtonRow))},dbb=function(a){if(a&1){var b=t();K(0,"mat-form-field",3)(1,"input",9);N("focus",function(c){u(b);var d=P();return v(d.showPicker(c.target))});L()()}a&2&&(a=P(),B(),I("formControl",a.timeFormControl))},hbb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);ebb(c,new rm);c.includeTimePicker&&(c.dateTime=new bo,fbb(c,new bo));gbb(c);c.saveChanges();return v(c.saveClicked.emit())});
Q(1,"Today");L()}},ibb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(2);ebb(c);c.includeTimePicker&&(c.dateTime=void 0);c.saveChanges();return v(c.saveClicked.emit())});Q(1,"None");L()}},jbb=function(a){a&1&&(K(0,"div",1),F(1,hbb,2,0,"button",10),F(2,ibb,2,0,"button",11),M(3,"mat-divider"),L());a&2&&(a=P(),B(),G(a.todayButtonEnabled?1:-1),B(),G(a.noneButtonEnabled&&!a.required?2:-1))},kbb=function(a){a&1&&(M(0,"div"),T(1,"lowercase"));a&2&&(a=P(3),xg(Eg("bv2-edit-icon ",
U(1,3,a.type))))},lbb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,kbb,2,5,"div",13),L());a&2&&(a=P(2),xg(Eg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),S(" ",a.title," "),B(),G(a.readonly||a.disabled?-1:3))},mbb=function(a){a&1&&Wf(0)},nbb=function(a){if(a&1){var b=t();K(0,"div",17);N("menuClosed",function(){u(b);var d=P(3);return v(Yr(d,null,!1,!0))});E(1,mbb,1,0,"ng-container",18);L()}if(a&2){P(3);a=qg(6);var c=qg(9);I("matMenuTriggerFor",a);B();I("ngTemplateOutlet",
c)}},pbb=function(a,b){a&1&&(K(0,"a",19),Q(1),L());a&2&&(a=P(4),Kf("aria-label",Fg("customfield",a.customFieldId,":",b)),I("queryParams",Ig(5,obb,"customfield"+a.customFieldId+':"'+b+'"')),B(),S(" ",b," "))},qbb=function(a){a&1&&Q(0," -- ")},rbb=function(a){if(a&1){var b=t();K(0,"div",16);F(1,pbb,2,7,"a",19)(2,qbb,1,0);M(3,"br");K(4,"button",20);N("menuClosed",function(){u(b);var e=P(3);return v(Yr(e,null,!1,!0))});Q(5," Edit ");L()()}if(a&2){var c;a=P(3);var d=qg(6);B();G((c=a.getDisplayValue(""))?
1:2,c);B(3);Kf("aria-label",Eg("Edit item for ",a.title));I("matMenuTriggerFor",d)}},sbb=function(a){a&1&&F(0,nbb,2,2,"div",15)(1,rbb,6,4,"div",16);a&2&&(a=P(2),G(a.choices.length>50&&a.customFieldId!==0?1:0))},tbb=function(a){a&1&&Wf(0)},ubb=function(a){a&1&&(K(0,"div",14),E(1,tbb,1,0,"ng-container",18),L());a&2&&(P(2),a=qg(9),B(),I("ngTemplateOutlet",a))},wbb=function(a){if(a&1){var b=t();K(0,"div",12,3);N("click",function(c){u(b);var d=P();return v(Yr(d,c,!0,!1))})("keydown",function(c){u(b);var d=
P();return v(vbb(d,c))})("keydown.escape",function(){u(b);var c=qg(2);return v(c.hide())});F(3,lbb,4,5,"div",13);F(4,sbb,2,1)(5,ubb,2,1,"div",14);L()}a&2&&(a=P(),xg(Eg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name)),wg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),Kf("aria-label",Fg("",a.title," value is ",a.getDisplayValue("empty"))),I("matTooltip",a.getTooltip()),Kf("tabindex",a.readonly?-1:0)("aria-disabled",!1),B(3),G(a.title?3:-1),B(),G(a.type==="ENUM"?4:5))},xbb=
function(a){if(a&1){var b=t();K(0,"div",23);N("click",function(){u(b);var c=P(2);return v(c.setFieldValue(!c.value))});K(1,"label");Q(2);L()()}a&2&&(a=P(2),xg(Eg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),yg(a.title))},ybb=function(a){if(a&1){var b=t();K(0,"div",21);F(1,xbb,3,4,"div",13);K(2,"b-slide-toggle",22);N("modelChange",function(){u(b);var d=P();return v(d.setFieldValue(!d.value))});L()()}if(a&2){a=P();xg(Eg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",
a.name));wg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly);I("matTooltip",a.getTooltip());Kf("aria-disabled",!1);B();G(a.title?1:-1);B();I("disabled",a.disabled||a.readonly);Jf("aria-label",a.name);var c;I("model",(c=a.value)!=null?c:void 0)}},zbb=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(2);return v(c.clearFieldValue())});K(1,"span",26);M(2,"mat-icon",27);L();Q(3," \u00a0 ");L()}a&2&&(a=P(2),wg("b-menu-item-checked",a.value==null),I("disabled",a.value==
null))},Abb=function(a){a&1&&M(0,"mat-divider")},Bbb=function(a){a&1&&M(0,"mat-icon",30);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},Cbb=function(a){a&1&&(K(0,"span",31),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.hotkey.displayAs))},Dbb=function(a,b){if(a&1){var c=t();F(0,Abb,1,0,"mat-divider");K(1,"button",28);N("click",function(){var e=u(c).$implicit,f=P(2);return v(f.setFieldValue(e.value))})("onHotkey",function(){var e=u(c).$implicit,f=P(2);f.setFieldValue(e.value);return v(f.enumMenuTrigger.closeMenu())});
K(2,"span",29);F(3,Bbb,1,1,"mat-icon",30);K(4,"span",26);M(5,"mat-icon",27);L();Q(6);F(7,Cbb,2,1,"span",31);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);G(b>0&&d.choices[b].group!=d.choices[b-1].group?0:-1);B();wg("b-menu-item-checked",d.value==a.value);I("disabled",d.value==a.value)("hotkey",a.hotkey);Kf("aria-label",a.displayText)("title",!d.showEnumTitle||a.altText?"":a.displayText);B(2);G(a.icon?3:-1);B(3);S(" ",a.displayText," ");B();G(a.hotkey&&d.showHotkeyHint?7:-1)}},Ebb=function(a){a&
1&&(F(0,zbb,4,3,"button",24),Of(1,Dbb,8,10,null,null,Nf));a&2&&(a=P(),G(a.clearable?0:-1),B(),Pf(a.choices))},Fbb=function(a){a&1&&M(0,"mat-icon",33);a&2&&(a=P(2),I("svgIcon",a.displayIcon))},Gbb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),wg("p0",a.value===a.IssuePriority.P0)("p1",a.value===a.IssuePriority.P1),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Hbb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),xg(Eg("chippy status-",a.value)),
I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Ibb=function(a){a&1&&M(0,"b-truncated-span",36);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Jbb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Kbb=function(a){a&1&&M(0,"div",38)},Lbb=function(a){a&1&&(K(0,"div",39),M(1,"mat-icon",41),L())},Mbb=function(a){a&1&&(K(0,"div",40),
M(1,"mat-icon",42),L())},Nbb=function(a){if(a&1){var b=t();K(0,"div",32,4);N("keydown",function(c){u(b);var d=P();return v(vbb(d,c))})("click",function(c){u(b);var d=P();return v(Yr(d,c,!0,!1))});K(2,"div")(3,"span",29);F(4,Fbb,1,1,"mat-icon",33);F(5,Gbb,1,7,"b-truncated-span",34)(6,Hbb,1,6,"b-truncated-span",35)(7,Ibb,1,3,"b-truncated-span",36)(8,Jbb,1,3,"b-truncated-span",37);L();F(9,Kbb,1,0,"div",38);L();F(10,Lbb,2,0,"div",39)(11,Mbb,2,0,"div",40);L()}a&2&&(a=P(),wg("edit-field-activated",a.isActive),
B(4),G(a.displayIcon?4:-1),B(),G(a.title==="Priority"?5:a.title==="Status"?6:a.title==="Triage phase"?7:8),B(4),G(a.title||a.readonly||a.disabled?-1:9),B(),G(a.type=="ENUM"?10:11))},Obb=function(){},Pbb=function(){},Qbb=function(a){if(a&1){var b=t();K(0,"div",23);N("click",function(d){u(b);return v(d.stopPropagation())});K(1,"b-date-time-picker-content",45);N("dateSelectionChange",function(d){u(b);var e=P(2);return v(e.googDateValue=d!=null?d:null)})("saveClicked",function(){u(b);var d=P(2);return v(d.setFieldValue(d.googDateValue))})("cancelClicked",
function(){u(b);var d=P(2);return v(Yr(d,null,!1,!1))});L()()}if(a&2){a=P(2);B();var c;I("required",!(a.clearable&&a.type==="DATE"))("date",(c=a.googDateValue)!=null?c:void 0)}},Sbb=function(a){if(a&1){var b=t();K(0,"textarea",54);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:if(c.ctrlKey||c.metaKey)c.stopPropagation(),Rbb(d);break;case 27:c.stopPropagation(),
Yr(d,c,!1,!0)}return v()});L()}a&2&&(a=P(3),Ag("ngModel",a.textBuffer),Kf("aria-label",a.title))},Tbb=function(a){if(a&1){var b=t();K(0,"input",55);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:c.stopPropagation();Rbb(d);break;case 27:c.stopPropagation(),Yr(d,c,!1,!0)}return v()});L()}a&2&&(a=P(3),Ag("ngModel",a.textBuffer),Kf("type",a.type==="NUMERIC"?"number":
"text")("aria-label",a.title))},Ubb=function(a){if(a&1){var b=t();K(0,"div",46);N("click",function(c){u(b);return v(c.stopPropagation())});K(1,"div");F(2,Sbb,1,2,"textarea",47)(3,Tbb,1,3,"input",48);L();K(4,"div",49)(5,"button",50);N("click",function(){u(b);var c=P(2);return v(Rbb(c))});M(6,"mat-icon",51);L();K(7,"button",52);N("click",function(c){u(b);var d=P(2);return v(Yr(d,c,!1,!0))});M(8,"mat-icon",53);L()();K(9,"div",40);M(10,"mat-icon",42);L()()}a&2&&(a=P(2),B(2),G(a.multiline?2:3),B(3),Kf("aria-label",
Eg("Apply change to ",a.title)),I("matTooltip",Eg("Apply change to ",a.title))("disabled",a.value==a.textBuffer),B(2),Kf("aria-label",Eg("Discard change to ",a.title)),I("matTooltip",Eg("Discard change to ",a.title)))},Vbb=function(a){a&1&&(K(0,"div",43,5),F(2,Obb,0,0)(3,Pbb,0,0)(4,Qbb,2,2,"div")(5,Ubb,11,10,"div",44),L());if(a&2){var b;a=P();xg(Eg("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"));B(2);G((b=a.type)==="ENUM"?2:b==="BOOL"?3:b==="DATE"?4:5)}},Wbb=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}},Zr=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=m(Xbb),g=f.next();!g.done;g=f.next()){var k=m(g.value);g=k.next().value;k=k.next().value;if(e.length>=c)break;var l=Math.floor(d/k);if(l>=1)b?e.push(""+l+Ybb[g]):l===1?e.push(l+" "+g):e.push(l+" "+g+"s");else if(e.length)break;
d-=l*k;if(l>1)break}if(e.length)return e.join(" ")+" ago";console.error("epochToDateAgo() unhandled input. Seconds:",a)}},Zbb=function(a,b){a&1&&(K(0,"time",1),T(1,"async"),Q(2),L());if(a&2){a=P();var c=Eg("padding-left: ",a.paddingLeftPx,"px");doa(boa,coa,c,!1);I("title",b.title);Kf("datetime",U(1,6,a.timestampIso$));B(2);yg(b.formatted)}},$bb=function(a,b){a&1&&(K(0,"span",4),Q(1," by "),M(2,"b-user-display-name",7),T(3,"emailToUser"),L());a&2&&(B(2),I("user",U(3,2,b))("hovercardEnabled",!1))},
acb=function(a,b){a&1&&(K(0,"div")(1,"span"),Q(2),L(),M(3,"b-formatted-date-time",8),L());a&2&&(a=P(),B(2),yg(a.pending?"Created on: ":"Submitted on: "),B(),I("timestamp",b))},bcb=function(a,b){a&1&&(M(0,"br"),Q(1));a&2&&(a=b.$implicit,B(),S("",a," "))},ccb=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),Q(2," CL "),K(3,"span"),Q(4),L()(),F(5,$bb,4,4,"span",4),M(6,"br")(7,"br"),F(8,acb,4,2,"div"),K(9,"div",5),M(10,"div",6)(11,"br"),K(12,"div"),Q(13," Affected files: "),Of(14,bcb,2,1,null,null,Nf),L()()());
if(a&2){var c,d;a=P();B();I("href","http://critique.corp.google.com/"+a.changelistId,Pe);B(3);yg(a.changelistId);B();G((c=b.author)?5:-1,c);B(3);G((d=b.timestamp)?8:-1,d);B(2);I("innerHTML",b.description,Oe);B(4);Pf(b.affectedFiles)}},dcb=function(a){a&1&&M(0,"b-changelist-card",5,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.changelistId)}},ecb=function(a){a&1&&M(0,"b-changelist-chip",0);a&2&&(a=P(),I("changelistId",a.changelist))},fcb=function(a){a&1&&M(0,"b-gerrit-change-chip",
1);a&2&&(a=P(),I("gerritChange",a.gerritChange))},gcb=function(a){a&1&&M(0,"b-changelist-card",4,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.id)}},hcb=function(a,b){a&1&&(K(0,"mat-list-option",11),Q(1),L());a&2&&(a=b.$implicit,b=P(),vg("height","auto"),I("selected",b.selectedValues.has(a))("value",a),B(),S(" ",a," "))},icb=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)"]},jcb=function(a){if(a&1){var b=t();K(0,"a",16);N("click",function(){u(b);var c=P();return v(c.trackClick("viewTeamAssociationOnComponent"))});K(1,"button",11);Q(2,"View team association on component");L()()}a&2&&(a=P(),I("href",a.ROUTES.editComponent.makeHref(a.componentId),Pe))},kcb=function(a){if(a&1){var b=t();K(0,"a",4);N("click",function(){u(b);
var d=P(2);return v(d.trackClick("viewTeamInMoma"))});K(1,"span");Q(2);M(3,"mat-icon",5);L()()}if(a&2){a=P(2);var c=qg(4);I("href",Eg("https://moma.corp.google.com/team/",a.teamId),Pe)("onedevHovercardTrigger",c);Kf("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");B();Kf("id",a.teamLinkId);B();S("",a.teamName?a.teamName:a.teamId," ")}},lcb=function(a){a&1&&(K(0,"span",3),Q(1),L());if(a&2){a=P(2);var b=qg(4);I("onedevHovercardTrigger",
b);B();yg(a.teamName?a.teamName:a.teamId)}},mcb=function(a){a&1&&(F(0,kcb,4,7,"a",2),F(1,lcb,2,2,"span",3));a&2&&(a=P(),G(a.anchorLinkEnabled?0:-1),B(),G(a.anchorLinkEnabled?-1:1))},ncb=function(a){a&1&&M(0,"span",6)},ocb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.teamNotAssignedMessage))},pcb=function(a){a&1&&(F(0,ncb,1,0,"span",6),F(1,ocb,2,1,"span"));a&2&&(a=P(),G(a.teamId!="0"?0:-1),B(),G(a.teamId=="0"?1:-1))},qcb=function(a){a&1&&M(0,"b-icon",2);a&2&&(a=P(),I("name",a.iconName))},
rcb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),yg(a.title))},scb=function(a){a&1&&(K(0,"div",4),Q(1,"\u00a0"),L())},wcb=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"?tcb(a,b):(d==="input"||d==="select"||d==="textarea")&&ucb(a,b);vcb("canvas",a,b,tcb);vcb("input, textarea, select",a,b,ucb);return b},vcb=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])},ucb=function(a,b){b.type!=="file"&&(b.value=a.value);b.type==="radio"&&b.name&&(b.name="mat-clone-"+b.name+"-"+xcb++)},tcb=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},ycb=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}},zcb=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},Acb=function(a,
b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},Bcb=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,g=a.width*.05,k=a.height*.05;return c>a.top-k&&c<e+k&&b>f-g&&b<d+g},Ccb=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},Dcb=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)}},$r=function(a,b){var c=b?"":"none";Dcb(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})},Fcb=function(a,b){Dcb(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},Ecb)},Gcb=function(a,b){return b&&b!="none"?a+" "+b:a},Icb=function(a,b){a.style.width=b.width+"px";a.style.height=
b.height+"px";a.style.transform=Hcb(b.left,b.top)},Hcb=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},Jcb=function(a){var b=a.toLowerCase().indexOf("ms")>-1?1:1E3;return parseFloat(a)*b},Lcb=function(a){a=getComputedStyle(a);var b=Kcb(a,"transition-property"),c=b.find(function(d){return d==="transform"||d==="all"});if(!c)return 0;b=b.indexOf(c);c=Kcb(a,"transition-duration");a=Kcb(a,"transition-delay");return Jcb(c[b])+Jcb(a[b])},Kcb=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},
Mcb=function(a){return a.type[0]==="t"},Ncb=function(a){a.preventDefault()},as=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}},Ocb=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},Pcb=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},Qcb=function(a){a&1&&(K(0,"label"),Q(1),L());a&2&&(a=P(),B(),S(" ",
a.title," "))},Rcb=function(a){a&1&&M(0,"mat-icon",13)},Tcb=function(a,b){a&1&&(K(0,"div",18),Wf(1,20),L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=qg(13);B();I("ngTemplateOutletContext",Jg(2,Scb,a,b))("ngTemplateOutlet",c)}},Vcb=function(a){a&1&&(K(0,"collapsible-panel",15),Of(1,Tcb,2,5,"div",18,Mf),Wf(3,19),L());if(a&2){a=P();var b=qg(15),c=I("isExpanded",a.isExpanded||bs(a))("iconName",a.iconName)("hasCompactTitleBar",!0);var d=bs(a)?(d=a.values)?d.length===1?"1 value":d.length+" values":"":
a.collapsiblePanelTitle;c("title",d);B();Pf(Ucb(a));B(2);I("ngTemplateOutlet",b)}},Wcb=function(a,b){a&1&&(K(0,"div",18),Wf(1,20),L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=qg(13);B();I("ngTemplateOutletContext",Jg(2,Scb,a,b))("ngTemplateOutlet",c)}},Xcb=function(a){a&1&&(K(0,"div",21),Q(1,"--"),L())},Ycb=function(a){a&1&&(Of(0,Wcb,2,5,"div",18,Mf),Wf(2,19),F(3,Xcb,2,0,"div",21));if(a&2){a=P();var b=qg(15);Pf(Ucb(a));B(2);I("ngTemplateOutlet",b);B();G((a.values==null?0:a.values.length)?-1:3)}},
adb=function(a){if(a&1){var b=t();K(0,"button",26);N("menuOpened",function(){u(b);var d=P(3);Zcb(d);d.enumPendingValues=new Set(d.values||[]);return v()})("menuClosed",function(){u(b);var d=P(3);return v($cb(d))});Q(1,"Edit ");L()}if(a&2){a=P(3);var c=qg(17);I("matMenuTriggerFor",c);Kf("aria-label","Add item to "+a.title)}},cdb=function(a){if(a&1){var b=t();K(0,"button",27,6);N("click",function(){u(b);var c=P(3);return v(bdb(c))});Q(2,"Edit ");L()}a&2&&(a=P(3),Kf("aria-label","Edit items for "+a.title))},
ddb=function(a){a&1&&F(0,adb,2,2,"button",24)(1,cdb,3,1,"button",25);a&2&&(a=P(2),G(bs(a)?1:0))},edb=function(a){a&1&&(K(0,"button",22),Q(1,"Add "),L());if(a&2){a=P(2);var b=qg(22);Kf("aria-label",Eg("Add item to ",a.title));I("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},fdb=function(a){if(a&1){var b=t();K(0,"button",28);N("beforeOpened",function(){u(b);var d=P(2);return v(d.invalidMessage="")});Q(1,"Add ");L()}if(a&2){a=P(2);var c=qg(20);Kf("aria-label",Eg("Add item to ",
a.title));I("dialogLabel",Eg("Add item to ",a.title))("matTooltip",Eg("Add item to ",a.title))("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},gdb=function(a){a&1&&F(0,ddb,2,1)(1,edb,2,4,"button",22)(2,fdb,2,8,"button",23);if(a&2){var b;a=P();G((b=a.type)==="REPEATED_ENUM"?0:b==="REPEATED_DATE"?1:2)}},hdb=function(a){a&1&&(K(0,"div"),M(1,"b-code-change-chip",34),L());a&2&&(a=P(2).item,B(),I("codeChange",a))},idb=function(a){a&1&&(K(0,"div")(1,"a",35),Q(2),L()());if(a&2){a=
P(2).item;var b=P();B();switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";break;default:b="https://taskflow-autopush.corp.google.com/workspaces"}I("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId+"?edit=b/"+a.issueId,Pe);Kf("aria-label","Workspace"+a.workspaceId);B();S(" ",a.workspaceName," ")}},jdb=function(a){a&1&&(K(0,"div"),M(1,"b-team-display",36),L());a&2&&(a=P(2).item,B(),I("teamId",a.teamId)("componentId",a.componentId))},kdb=function(a){if(a&
1){var b=t();K(0,"div")(1,"a",37);N("click",function(){u(b);var c=P(3);return v(c.trackClick("postmortem"))});Q(2);L()()}a&2&&(a=P(2).item,B(),Kf("aria-label",Eg("Postmortem ",a)),I("href",Eg("https://pm.corp.google.com/",a),Pe),B(),S(" ",a," "))},mdb=function(a){if(a&1){var b=t();K(0,"div",31)(1,"a",38);N("click",function(){u(b);var d=P(3);return v(d.trackClick("repeated-enum"))});Q(2);L()()}if(a&2){a=P(2).item;var c=P();I("matTooltip",a);B();Kf("aria-label",Fg("Search issues for customfield",c.customFieldId,
":",a));I("queryParams",Ig(6,ldb,"customfield"+c.customFieldId+':"'+a+'"'));B();S(" ",a," ")}},ndb=function(a){a&1&&(K(0,"div"),M(1,"b-truncated-span",39),L());if(a&2){a=P(2).item;var b=P();B();I("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},odb=function(a){if(a&1){var b=t();K(0,"button",40,7);N("click",function(){u(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});L()}if(a&2){a=P(2).item;var c=P();Kf("aria-label",Fg("Remove ",a," from ",c.title));I("disabled",c.listFieldDisabled)("matTooltip",
"Remove item")}},pdb=function(a){a&1&&(K(0,"div",29)(1,"div",30),F(2,hdb,2,1,"div")(3,idb,3,3,"div")(4,jdb,2,2,"div")(5,kdb,3,5,"div")(6,mdb,3,8,"div",31)(7,ndb,2,3,"div"),L(),F(8,odb,2,5,"button",32),M(9,"div",33),L());if(a&2){a=P().item;var b=P();B(2);G(b.type==="CODE_CHANGES"?2:b.type==="WORKSPACES"?3:b.type==="TEAM"?4:b.type==="POSTMORTEMS"?5:b.type==="REPEATED_ENUM"&&bs(b)?6:b.isString(a)?7:-1);B(6);G(b.readonly||b.type==="REPEATED_ENUM"?-1:8)}},qdb=function(a,b){a&1&&F(0,pdb,10,2,"div",29);
a&2&&(a=b.$index,b=P(),G(b.showingAll||a<b.defaultLineCount||b.values&&b.values.length===b.defaultLineCount+1?0:-1))},rdb=function(a){if(a&1){var b=t();K(0,"div",42,8);N("click",function(c){u(b);var d=P(2);return v(cs(d,!1,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(cs(d,!1,c))})("keydown.space",function(c){u(b);var d=P(2);return v(cs(d,!1,c))});Q(2," (show fewer) ");L()}a&2&&(a=P(2),Kf("aria-label",Fg("Show at most ",a.defaultLineCount," ",a.title," items")),I("matTooltip",Eg("Show a truncated list of at most ",
a.defaultLineCount," items")))},sdb=function(a){if(a&1){var b=t();K(0,"div")(1,"div",43);Q(2);K(3,"span",44,9);N("click",function(c){u(b);var d=P(2);return v(cs(d,!0,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(cs(d,!0,c))})("keydown.space",function(c){u(b);var d=P(2);return v(cs(d,!0,c))});Q(5," (show all) ");L()()()}a&2&&(a=P(2),B(2),S(" ... and ",a.values.length-a.defaultLineCount," more "),B(),Kf("aria-label",Fg("Show all ",a.values==null?null:a.values.length," ",a.title," items")),
I("matTooltip",Eg("Show all ",a.values==null?null:a.values.length," items in the list")))},udb=function(a){a&1&&(F(0,rdb,3,5,"div",41),F(1,sdb,6,6,"div"));a&2&&(a=P(),G(a.showingAll&&tdb(a)?0:-1),B(),G(!a.showingAll&&tdb(a)?1:-1))},wdb=function(a,b){if(a&1){var c=t();K(0,"button",46);N("click",function(d){var e=u(c).$implicit,f=P(2),g=e.value;f.enumPendingValues.has(g)?f.enumPendingValues.delete(g):f.enumPendingValues.add(g);f.liveAnnouncer.announce(vdb(f,e));d==null||d.stopPropagation();return v()});
K(1,"span",47);M(2,"mat-icon",48);L();Q(3);L()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",b.enumPendingValues.has(a.value)),I("disabled",b.listFieldDisabled),Kf("aria-label",vdb(b,a)),B(3),S(" ",a.displayText," "))},xdb=function(a){a&1&&Of(0,wdb,4,5,"button",45,Mf);a&2&&(a=P(),Pf(a.sortedEnumChoices))},ydb=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(2),Kf("aria-label",Fg("",a.title," error: ",a.invalidMessage)),B(),S(" ",a.invalidMessage," "))},zdb=function(a){if(a&1){var b=t();
K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",49,10);N("ngSubmit",function(){u(b);var d=qg(3),e=qg(4),f=P();return v(f.textPopupSubmit(d,e))});M(5,"input",50);K(6,"div",51)(7,"button",52);M(8,"mat-icon",53);L();K(9,"button",54);N("click",function(){u(b);var d=P();return v(d.closeAddPopup(!0))});M(10,"mat-icon",55);L()();F(11,ydb,2,4,"mat-error");L()()()}if(a&2){a=qg(3);var c=P();B(5);Kf("aria-label",Eg("Addition to ",c.title));I("type",c.type==="REPEATED_NUMERIC"?"number":"text");
B(2);Kf("aria-label",Eg("Apply addition to ",c.title));I("disabled",!a.valid||c.listFieldDisabled);B(2);Kf("aria-label",Eg("Discard addition to ",c.title));B(2);G(c.invalidMessage?11:-1)}},Adb=function(a){if(a&1){var b=t();K(0,"b-date-time-picker-content",56);N("dateChange",function(c){u(b);var d=P();return v(c&&d.addItems(c))})("cancelClicked",function(){u(b);var c=P();return v(c.closeAddPopup(!1))});L()}a&2&&I("required",!0)("renderPanel",!1)},Bdb=function(a,b){return{originX:a,originY:b}},Cdb=
function(a,b){return{overlayX:a,overlayY:b}},Ddb=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}},es=function(a){return(a!=null?a:[]).map(ds)},fs=function(a){return(a!=null?a:[]).map(Edb)},ds=function(a){if(a==null)return"";var b=a.user,c=a.group,d=a.alias;a=void 0;b!=null?(a="USER",b=xm(b)):c!=null?(a="GROUP",
b=xm(c)):d!=null?(a="ALIAS",b=d):b="";return a===void 0||b===""?"":a+":"+b},gs=function(a){return(a!=null?a:[]).map(ds)},hs=function(a){return(a!=null?a:[]).map(Edb)},Edb=function(a){var b=m(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("Qe`"+b);switch(a){case "USER":return{user:{emailAddress:b}};case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};default:throw Error("Re`"+b);}},is=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],
restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},js=function(a){return{admins:es(a.admins),editors:es(a.editors),appenders:es(a.appenders),readers:es(a.readers),restrictedReaders:es(a.restrictedReaders),restrictedPlusReaders:es(a.restrictedPlusReaders),inheritedAdmins:es(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},ks=function(a){return{admins:fs(a.admins),editors:fs(a.editors),appenders:fs(a.appenders),readers:fs(a.readers),restrictedReaders:fs(a.restrictedReaders),
restrictedPlusReaders:fs(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},Fdb=function(a){a&1&&Wf(0)},Gdb=function(a){if(a&1){var b=t();K(0,"div",3);N("mouseenter",function(){u(b);var c=P();return v(c.toggle(!0))})("mouseleave",function(){u(b);var c=P();return v(c.toggle(!1))})("mousemove",function(){u(b);P().activity.next();return v()});E(1,Fdb,1,0,"ng-container",4);L()}a&2&&(a=P(),I("ngClass",a.bubbleStyle)("@fade",void 0),B(),I("ngTemplateOutlet",a.panelTemplate))},Hdb=function(a){a&
1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(2),xg(a.chipClass),wg("xs",a.compactMode),B(),S(" ",a.chipText," "))},Idb=function(a){a&1&&(K(0,"div",5),Q(1),K(2,"a",6),Q(3," Learn more"),L()());a&2&&(a=P(3),B(),S(" ",a.bubbleText," "),B(),I("href",ls(a.documentationLinks),Pe))},Jdb=function(a){a&1&&(K(0,"xap-bubble",2)(1,"span",4),Q(2),L(),E(3,Idb,4,2,"ng-template",null,0,Mg),L());if(a&2){a=qg(4);var b=P(2);I("panelTemplate",a);B();xg(b.chipClass);wg("xs",b.compactMode);B();S(" ",b.chipText," ")}},Kdb=function(a){a&
1&&F(0,Hdb,2,5,"span",1)(1,Jdb,5,6,"xap-bubble",2);a&2&&(a=P(),G(a.labelOnlyMode?0:1))},Ldb=function(a){a&1&&(K(0,"li")(1,"a",3),Q(2," Create an issue in this component"),L()());a&2&&(a=P(2),B(),I("href",a.createIssueUrl,Pe))},Mdb=function(a,b){a&1&&(K(0,"h3"),Q(1),L(),K(2,"p"),Q(3),L(),M(4,"b-component-access-level-indicator",2),K(5,"p"),Q(6),L(),K(7,"ul")(8,"li")(9,"a",3),Q(10," View recent open issues"),L()(),F(11,Ldb,3,1,"li"),K(12,"li")(13,"a",3),Q(14," View component"),L()()());a&2&&(a=P(),
B(),yg(b.name),B(2),S("ID: ",a.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),yg(b.description),B(3),I("href",a.recentIssuesUrl,Pe),B(2),G(a.isAnonymous?-1:11),B(2),I("href",a.viewComponentUrl,Pe))},Ndb=function(a,b){a&1&&(K(0,"span",4)(1,"a",6),Q(2),L(),K(3,"onedev-hovercard",null,0),M(5,"b-component-card",7),L()());a&2&&(a=b.$implicit,b=qg(4),B(),I("onedevHovercardTrigger",b)("routerLinkObj",a.route),B(),yg(a.name),B(3),I("componentId",
a.id.toString()))},Odb=function(a){a&1&&(K(0,"span",5),Q(1,"[Archived]"),L())},Pdb=function(a,b){b=b===void 0?xr:b;var c,d=(c=a==null?void 0:a.componentPathId)!=null?c:[],e,f=(e=a==null?void 0:a.componentPathName)!=null?e:[];return d.map(function(g,k){var l;k=(l=f[k])!=null?l:String(g);l=b(g);return{id:g,name:k,route:l}})},Qdb=function(a){a&1&&Q(0," > ")},Rdb=function(a,b){a&1&&(K(0,"a",4),Q(1),L(),F(2,Qdb,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;Kf("aria-label",Eg("View recent issues in ",
a.name));I("routerLinkObj",a.route);B();yg(a.name);B();G(c!==b-1?2:-1)}},Sdb=function(a){a&1&&(K(0,"span"),Q(1," [Archived]"),L())},Tdb=function(a){a&1&&(K(0,"div",2),Of(1,Rdb,3,5,null,null,Nf),T(3,"async"),F(4,Sdb,2,0,"span"),T(5,"async"),L());a&2&&(a=P(),B(),Pf(U(3,1,a.componentPath$)),B(3),G(U(5,3,a.isArchived$)?4:-1))},Udb=function(a,b){a&1&&(K(0,"div",5),M(1,"mat-icon",6),K(2,"div",7),Q(3),L()(),K(4,"div",8)(5,"span",7),Q(6),L(),M(7,"b-component-access-level-indicator",9),L(),K(8,"p",7),Q(9),
L());a&2&&(B(3),yg(b.name),B(3),S("Component ID: ",b.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),yg(b.description))},Vdb=function(a,b){a&1&&(K(0,"div",3)(1,"a",10),Q(2,"View recent open issues"),L(),K(3,"a",11),Q(4,"View component settings"),L(),K(5,"a",12),Q(6,"Create issue in this component"),L()());a&2&&(B(),I("routerLinkObj",b.recentIssues),B(2),I("routerLinkObj",b.componentSettings),B(2),I("routerLinkObj",b.createIssue))},Xdb=
function(a){return Wdb[a]},ms=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]]}))})},ns=function(a){a=a===void 0?0:a;return new Promise(function(b){setTimeout(b,a)})},Ydb=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.name," "))},Zdb=function(a){a&1&&Q(0," Trackers are distinct communities with their own branding. ")},$db=function(a){a&1&&(K(0,"a",9),Q(1,"Learn More"),L());a&2&&(a=
P(2),I("href",a.documentationLinks.baseDocumentationUrl+"/concepts/trackers",Pe))},aeb=function(a){a&1&&(K(0,"button",1),M(1,"img",2)(2,"img",3),F(3,Ydb,2,1,"span",4),L(),K(4,"onedev-hovercard",null,0)(6,"div",5)(7,"div",6)(8,"span",7),Q(9),F(10,Zdb,1,0),L(),K(11,"div",8)(12,"a",9),Q(13),L(),F(14,$db,2,1,"a",9),L()()()());if(a&2){a=qg(5);var b=P();wg("xs",b.compactMode);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);B();I("src",b.logoLight,Pe);B();I("src",b.logoDark,Pe);B();
G(b.compactMode?-1:3);B(6);S(" This component or issue is part of ",b.extendedName,". ");B();G(b.isGlobalBuganizer?-1:10);B(2);I("href",b.redirectUrl,Pe);B();S("View ",b.extendedName);B();G(b.isGlobalBuganizer?-1:14)}},beb=function(a){a&1&&(M(0,"b-tracker-chip",0),T(1,"async"));a&2&&(a=P(),I("tracker",U(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},ceb=function(a){a&1&&M(0,"mat-icon",1)},deb=function(a){if(a&1){var b=
t();K(0,"button",9);N("mousedown",function(c){u(b);var d=P();return v(d.back(c))});M(1,"mat-icon",10);L()}},eeb=function(a){if(a&1){var b=t();K(0,"button",11);N("mousedown",function(c){u(b);var d=P();return v(d.expand(d.componentOption,c))});M(1,"mat-icon",12);L()}a&2&&(a=P(),I("matTooltip","View child components of "+a.componentOption.name),Kf("aria-label","View child components of "+a.componentOption.name),B(),I("svgIcon",a.showFolderSpecialIcon?"folder_special_24px":"folder"))},feb=function(a){if(a&
1){var b=t();K(0,"a",14);T(1,"toString");T(2,"boldPrefixMatches");N("mousedown",function(d){u(b);var e=P().$implicit;P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});L()}if(a&2){a=P().$implicit;var c=P(2);I("innerHtml",Lg(2,3,U(1,1,a.name),c.query),Oe)}},geb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.name," "))},heb=function(a){a&1&&Q(0," \u00a0>\u00a0 ")},ieb=function(a,b){a&1&&(F(0,feb,3,6,"a",13)(1,geb,1,1),F(2,heb,1,0));if(a&2){a=b.$implicit;var c=
b.$index;b=b.$count;G(a.name!=a.id?0:1);B(2);G(c!==b-1?2:-1)}},jeb=function(a){a&1&&Of(0,ieb,3,2,null,null,Nf);a&2&&(a=P(),Pf(a.componentOption.componentPath))},keb=function(a,b){if(a&1){var c=t();K(0,"a",16);N("mousedown",function(d){var e=u(c);P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});Q(1);L()}a&2&&(B(),S(" ",b.name," "))},leb=function(a){a&1&&F(0,keb,2,1,"a",15);if(a&2){var b;a=P();G((b=a.componentOption.componentPath[a.componentOption.componentPath.length-
1])?0:-1,b)}},meb=function(a){a&1&&(K(0,"span",6),Q(1," [Archived] "),L())},neb=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,pathIds:a.pathIds,expanded:!1}},oeb=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},peb=function(a,b){var c,d=(c=b==null?void 0:b.componentPathId)!=null?c:[],e,f=(e=b==null?void 0:b.componentPathName)!=null?e:[];b=d.map(function(g,k){return{id:g,name:f[k],pathText:f.slice(0,
k+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,description:a.description,accessLimit:a.accessLimit,archived:a.archived,componentPath:b,trackerId:a.trackerId}},qeb=function(a){return new Map([].concat(q(a.entries())).map(function(b){var c=m(b);b=c.next().value;c=c.next().value;return[b,c.map(oeb)]}))},reb=function(a){a&1&&M(0,"img",1);a&2&&(a=P(),Kf("src",a.getLogoUrl(),Pe))},seb=function(a){a&1&&(K(0,"span",6),Q(1,"no components"),L())},teb=function(a){a&1&&(K(0,"div",3),
M(1,"div",5),T(2,"boldPrefixMatches"),F(3,seb,2,0,"span",6),L());a&2&&(a=P(),B(),I("innerHtml",Lg(2,2,a.teamOption.name,a.query),Oe),B(2),G(a.hasNoComponent?3:-1))},ueb=function(a){if(a&1){var b=t();K(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 v()});Q(1);L()}a&2&&(a=P(2).$implicit,B(),yg(a))},veb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",
a," "))},web=function(a){a&1&&(F(0,ueb,2,1,"a",7)(1,veb,1,1),Uf(2),Q(3," \u00b7 "),Vf());a&2&&(a=P(3),G(a.allowSegmentSelection?0:1))},xeb=function(a){a&1&&(K(0,"strong",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a))},yeb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,S(" ",a," "))},zeb=function(a){a&1&&F(0,xeb,2,1,"strong",9)(1,yeb,1,1);a&2&&(a=P(3),G(a.compact?0:1))},Aeb=function(a,b){a&1&&F(0,web,4,1)(1,zeb,2,1);a&2&&G(b.$index!==b.$count-1?0:1)},Beb=function(a){a&1&&(K(0,"div",4),Of(1,Aeb,2,1,null,
null,Nf),L());a&2&&(a=P(),B(),Pf(a.teamOption.pathNames))},Ceb=function(a){switch(a.type){case "ISSUE_DEDUPLICATION":return"canonical-recommendation";case "HOTLIST":return"hotlist-recommendation";case "ISSUE_DEDUPLICATION_BATCH":return"canonical-batch-recommendation";case "NEEDS_INFO":return"needs-info-recommendation";case "ANY_ISSUE_EDIT":return"any-issue-edit-recommendation";default:return a.type.toLowerCase()+"-recommendation"}},Deb=function(a){if(a&1){var b=t();K(0,"button",9);N("mousedown",function(c){u(b);
P().clearQuery();return v(os(c))});M(1,"mat-icon",10);L()}},Eeb=function(a){a&1&&(K(0,"div",11),Q(1," Checking for admin access... "),L())},Feb=function(a){a&1&&(K(0,"div",12),Q(1," You do not have admin access to this component. "),K(2,"a",13),Q(3,"View component admins"),L()());a&2&&(a=P(3),B(2),I("href",ps.editComponentAccess.makeHref(a.selectedComponent.componentId),Pe))},Geb=function(a){a&1&&F(0,Feb,4,1,"div",12);a&2&&(a=P(2),G(!a.hasAccess&&a.selectedComponent?0:-1))},Heb=function(a){a&1&&(K(0,
"div"),F(1,Eeb,2,0,"div",11)(2,Geb,1,1),L());a&2&&(a=P(),B(),G(a.checkingAccess?1:2))},Ieb=function(a){a&1&&M(0,"mat-progress-bar",16)},Jeb=function(a){a&1&&Q(0," teams ")},Keb=function(a){a&1&&Q(0," team ")},Neb=function(a,b){if(a&1){var c=t();K(0,"div",21);N("mousedown",function(e){var f=u(c).$implicit,g=P(6);Leb(g.searchState,f);return v(os(e))});K(1,"team-row",22);N("selectTeamId",function(e){u(c);var f=P(6);return v(Meb(f.searchState,e))});L()()}if(a&2){a=b.$implicit;b=P(6);var d=qg(3);I("data",
a);B();I("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},Oeb=function(a){a&1&&M(0,"mat-divider")},Peb=function(a){a&1&&(K(0,"div",18)(1,"div",19),Q(2," Filter components by my teams "),K(3,"span"),Q(4),F(5,Jeb,1,0)(6,Keb,1,0),L()(),Of(7,Neb,2,4,"div",20,Nf),L(),F(9,Oeb,1,0,"mat-divider"));if(a&2){a=P();var b=P(4);B(4);S("",a.length," ");B();G(a.length>1?5:6);B(2);Pf(a);B(2);G(b.searchState.recommendedComponents.length>0||b.searchState.popularComponents.length>
0||b.searchState.recentComponents.length>0?9:-1)}},Qeb=function(a,b){a&1&&F(0,Peb,10,3);a&2&&G(b.length?0:-1)},Reb=function(a){a&1&&Wf(0)},Seb=function(a){a&1&&M(0,"mat-divider")},Ueb=function(a){a&1&&(E(0,Reb,1,0,"ng-container",23),F(1,Seb,1,0,"mat-divider"));if(a&2){a=P(4);var b=qg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,Teb,a.searchState.recommendedComponents));B();G(a.searchState.popularComponents.length>0||a.searchState.recentComponents.length>0?1:-1)}},Veb=function(a){a&1&&
Wf(0)},Web=function(a){a&1&&M(0,"mat-divider")},Yeb=function(a){a&1&&(E(0,Veb,1,0,"ng-container",23),F(1,Web,1,0,"mat-divider"));if(a&2){a=P(4);var b=qg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,Xeb,a.searchState.popularComponents));B();G(a.searchState.recentComponents.length?1:-1)}},Zeb=function(a){a&1&&Wf(0)},afb=function(a){a&1&&E(0,Zeb,1,0,"ng-container",23);if(a&2){a=P(4);var b=qg(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,$eb,a.searchState.recentComponents))}},
bfb=function(a){a&1&&(F(0,Qeb,1,1),T(1,"async"),F(2,Ueb,2,5),F(3,Yeb,2,5),F(4,afb,1,4,"ng-container"),T(5,"async"));if(a&2){var b,c;a=P(3);G((b=U(1,4,a.searchState.myTeams$))?0:-1,b);B(2);G(a.searchState.recommendedComponents.length>0?2:-1);B();G(a.searchState.popularComponents.length?3:-1);B();G(a.searchState.recentComponents.length||((c=U(5,6,a.searchState.myTeams$))==null||!c.length)&&a.searchState.recommendedComponents.length===0&&a.searchState.popularComponents.length===0?4:-1)}},cfb=function(a){a&
1&&Q(0," teams ")},dfb=function(a){a&1&&Q(0," team ")},efb=function(a){a&1&&Wf(0)},hfb=function(a,b){a&1&&E(0,efb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(6);var c=qg(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Jg(4,ffb,a,Ig(2,gfb,b)))}},ifb=function(a){if(a&1){var b=t();K(0,"button",25);N("mousedown",function(){u(b);var c=P(6);return v(c.searchState.showAllTeams$.next(!0))});M(1,"mat-icon",26);Q(2," Show all teams ");L()}},jfb=function(a,b){a&1&&(K(0,"div",18)(1,"div",
19),Q(2," Filter components by teams "),K(3,"span"),Q(4),F(5,cfb,1,0)(6,dfb,1,0),L()(),Of(7,hfb,1,7,"ng-container",null,Nf),T(9,"async"),F(10,ifb,3,0,"button",24),T(11,"async"),M(12,"mat-divider"),L());a&2&&(a=P(5),B(4),S("",b," "),B(),G(b>1?5:6),B(2),Pf(U(9,3,a.searchState.filteredTeamOptions$)),B(3),G(U(11,5,a.searchState.hasHiddenTeams$)?10:-1))},kfb=function(a,b){a&1&&F(0,jfb,13,7,"div",18);if(a&2){var c;G((c=b.length)?0:-1,c)}},lfb=function(a){a&1&&Wf(0)},nfb=function(a){a&1&&(F(0,kfb,1,1),T(1,
"async"),E(2,lfb,1,0,"ng-container",23));if(a&2){var b;a=P(3);var c=qg(12);G((b=U(1,3,a.searchState.teamOptions$))?0:-1,b);B(2);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(5,mfb,a.searchState.componentOptions))}},ofb=function(a){a&1&&Wf(0)},qfb=function(a,b){a&1&&E(0,ofb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(8);var c=qg(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Jg(4,ffb,a,Ig(2,pfb,b)))}},rfb=function(a){a&1&&(K(0,"div",32),Of(1,qfb,1,7,"ng-container",null,
Nf),L());a&2&&(a=P(2),B(),Pf(a))},ufb=function(a){if(a&1){var b=t();F(0,rfb,3,0,"div",32);K(1,"button",25);N("mousedown",function(c){u(b);var d=P(6),e=d.searchState.teamScope$.value;e.expanded?sfb(d.searchState,e):tfb(d.searchState,e);return v(os(c))});M(2,"mat-icon",26);Q(3);L()}a&2&&(a=P(6),G(a.searchState.teamScope$.value.expanded?0:-1),B(2),wg("expanded",a.searchState.teamScope$.value.expanded),B(),S(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},vfb=function(a,b){a&
1&&F(0,ufb,4,4);a&2&&G(b.length?0:-1)},yfb=function(a){if(a&1){var b=t();K(0,"div",27)(1,"div",19);Q(2," Filtering by team: ");L();K(3,"div",28)(4,"team-row",29);N("selectTeamId",function(e){u(b);var f=P(4);return v(Meb(f.searchState,e))});L();K(5,"button",30);N("mousedown",function(e){u(b);var f=P(4);wfb(f.searchState);return v(os(e))});M(6,"mat-icon",31);L()();F(7,vfb,1,1);L()}if(a&2){var c;a=P(4);var d=qg(3);B(3);I("data",a.searchState.teamScope$.value)("listOrder",Hg(7,xfb));B();I("teamOption",
a.searchState.teamScope$.value)("query",d.value)("compact",!0)("allowSegmentSelection",!0);B(3);G((c=a.searchState.getChildTeams(a.searchState.teamScope$.value.id))?7:-1,c)}},zfb=function(a){a&1&&Wf(0)},Bfb=function(a){a&1&&(F(0,yfb,8,8,"div",27),E(1,zfb,1,0,"ng-container",23));if(a&2){a=P(3);var b=qg(12);G(a.searchState.teamScope$.value?0:-1);B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Jg(3,Afb,a.searchState.componentOptions,a.searchState.teamScope$.value))}},Efb=function(a){if(a&1){var b=
t();K(0,"div",33)(1,"div",34);Q(2,"Component Tree Browser");L();K(3,"component-row",35);N("goBack",function(){u(b);var c=P(4);return v(Cfb(c.searchState))})("selectComponentId",function(c){u(b);var d=P(4);return v(Dfb(d.searchState,c))});L()()}a&2&&(a=P(4),B(3),I("componentOption",a.searchState.componentScope))},Ffb=function(a){a&1&&Wf(0)},Hfb=function(a){a&1&&(F(0,Efb,4,1,"div",33),E(1,Ffb,1,0,"ng-container",23));if(a&2){a=P(3);var b=qg(12);G(a.searchState.componentScope?0:-1);B();I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Ig(3,Gfb,a.searchState.componentOptions))}},Ifb=function(a){a&1&&(F(0,bfb,6,8),T(1,"async"),Lf(2,nfb,3,7)(3,Bfb,2,6)(4,Hfb,2,5));if(a&2){var b;a=P(2);G((b=U(1,1,a.searchState.state$))==="default"?0:b==="global"?2:b==="team_scope"?3:b==="component_scope"?4:-1)}},Jfb=function(a){if(a&1){var b=t();K(0,"div",14,5);N("mousedown",function(c){u(b);P();return v(os(c))});K(2,"div",15);F(3,Ieb,1,0,"mat-progress-bar",16);L();K(4,"div",17);F(5,Ifb,5,3);L()()}a&2&&(a=P(),B(3),G(a.isLoading()?
3:-1),B(2),G(a.isLoading()?-1:5))},Kfb=function(a){if(a&1){var b=t();K(0,"button",39);N("mousedown",function(c){u(b);var d=P().team,e=P();d.expanded?sfb(e.searchState,d):tfb(e.searchState,d);return v(os(c))});M(1,"mat-icon",40);L()}a&2&&(a=P().team,B(),wg("expanded",a.expanded))},Lfb=function(a){a&1&&Wf(0)},Nfb=function(a,b){a&1&&E(0,Lfb,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=qg(10);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(2,Mfb,
a,d+1,c.concat(b)))}},Ofb=function(a){a&1&&Of(0,Nfb,1,6,"ng-container",null,Nf);if(a&2){a=P().team;var b=P();Pf(b.searchState.getChildTeams(a.id))}},Pfb=function(a,b){if(a&1){var c=t();K(0,"div",36);N("mousedown",function(g){var k=u(c).team,l=P();Leb(l.searchState,k);return v(os(g))});K(1,"div",37);F(2,Kfb,2,2,"button",38);K(3,"team-row",22);N("selectTeamId",function(g){u(c);var k=P();return v(Meb(k.searchState,g))});L()()();F(4,Ofb,2,0)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=P(),f=qg(3);
I("listOrder",b)("data",a);B();vg("margin-left",d*28,"px");B();G(e.searchState.getChildTeams(a.id).length?2:-1);B();wg("indent",!e.searchState.getChildTeams(a.id).length);I("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B();G(a.expanded?4:-1)}},Qfb=function(a){a&1&&(M(0,"mat-icon",43),Q(1," AI Recommendation "))},Rfb=function(a){a&1&&Q(0," Select a commonly used component ")},Sfb=function(a){a&1&&Q(0," Select recent component ")},Tfb=function(a){a&1&&Q(0," Select component ")},
Ufb=function(a){a&1&&Q(0," components ")},Vfb=function(a){a&1&&Q(0," component ")},Xfb=function(a,b){if(a&1){var c=t();K(0,"div",44);N("mousedown",function(f){var g=u(c).$implicit,k=P(3);Wfb(k.searchState,g.id);return v(os(f))});K(1,"component-row",45);N("selectComponentId",function(f){u(c);var g=P(3);return v(Wfb(g.searchState,f))})("expandComponent",function(f){u(c);var g=P(3);return v(g.searchState.expandComponent(f))});L()()}if(a&2){a=b.$implicit;b=P(2).mode;var d=P(),e=qg(3);I("data",a);B();
I("showFolderSpecialIcon",qs(d.activeSession))("componentOption",a)("query",e.value)("mode",b)}},Yfb=function(a,b){a&1&&(K(0,"div",41)(1,"div",19),F(2,Qfb,2,0)(3,Rfb,1,0)(4,Sfb,1,0)(5,Tfb,1,0),K(6,"span"),Q(7),F(8,Ufb,1,0)(9,Vfb,1,0),L()(),Of(10,Xfb,2,5,"div",42,Nf),L());if(a&2){var c=P();a=c.$implicit;c=c.mode;B(2);G(c==="recommended"?2:c==="popular"?3:c==="recent"?4:5);B(5);S("",b," ");B();G(b>1?8:9);B(2);Pf(a)}},Zfb=function(a){a&1&&Q(0," No recent components ")},$fb=function(a){a&1&&Q(0," No child components ")},
agb=function(a){a&1&&(Q(0),M(1,"mat-icon",47),Q(2," above ("),K(3,"a",48),Q(4,"learn more "),M(5,"mat-icon",49),L(),Q(6," about team associations) "));a&2&&(a=P(4).teamScope,S(" for ",a.name,". Remove the team filter by clicking on the "))},bgb=function(a){a&1&&(Q(0," No components found "),F(1,agb,7,1));a&2&&(a=P(3).teamScope,B(),G(a?1:-1))},cgb=function(a){a&1&&(K(0,"div",46),F(1,Zfb,1,0)(2,$fb,1,0)(3,bgb,2,1),L());a&2&&(a=P(2).mode,B(),G(a==="recent"?1:a==="leaf"?2:3))},dgb=function(a){a&1&&F(0,
cgb,4,1,"div",46);a&2&&(a=P(2),G(a.componentLoading||a.searchState.componentsLoading?-1:0))},egb=function(a,b){a&1&&F(0,Yfb,12,3,"div",41)(1,dgb,1,1);if(a&2){var c;G((c=b.$implicit.length)?0:1,c)}},fgb=function(a,b){b=m([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},ggb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.text))},igb=function(a){a&1&&(K(0,"span"),
M(1,"b-component-access-level-indicator",0),L());a&2&&(a=P().$implicit,B(),I("accessLevel",a.accessLevel))},jgb=function(a,b){a&1&&(K(0,"span"),F(1,ggb,2,1,"span")(2,igb,2,1,"span"),L());a&2&&(a=b.$implicit,P(),B(),G(a.text!==void 0?1:2))},lgb=function(a,b){var c=kgb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return a>=0?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null},mgb=function(a){if(a&1){var b=t();K(0,"div");M(1,"br");K(2,"mat-radio-group",7);Cg("ngModelChange",function(c){u(b);
var d=P(2);Bg(d.setLimitViewTrusted,c)||(d.setLimitViewTrusted=c);return v(c)});K(3,"mat-radio-button",8);Q(4,"Mark this issue as Limited Visibility + Google. Information will only be shared with Googlers and listed public users.");L();K(5,"mat-radio-button",9);Q(6,"Leave issue unrestricted. All information in this issue is suitable for external sharing.");L()()()}a&2&&(a=P(2),B(2),Ag("ngModel",a.setLimitViewTrusted),B(),I("value",!0),B(2),I("value",!1))},ngb=function(a){if(a&1){var b=t();K(0,"div");
M(1,"br");K(2,"mat-checkbox",10);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.acknowledged,c)||(d.acknowledged=c);return v(c)});L();K(3,"span");Q(4,"All information in this issue is suitable for external sharing.");L()()}a&2&&(a=P(2),B(2),Ag("ngModel",a.acknowledged))},ogb=function(a){a&1&&(K(0,"div"),F(1,mgb,7,3,"div")(2,ngb,5,1,"div"),L());a&2&&(a=P(),B(),G(a.isLimitNoneIssueTrackerMove?1:2))},pgb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P();return v(c.allow())});
Q(1," Move Issue ");L()}a&2&&(a=P(),I("disabled",!a.acknowledged))},rs=function(a,b){return qgb(ps.viewIssue.routeDeclarationPath,{id:a,params:b})},ugb=function(a,b,c,d,e){c=rgb(c);d=sgb(d);return tgb("action/issues/csv","q",a,"trackerIds",b,"s",c,"c",d,"h",e)},rgb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},sgb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},qgb=function(a,b){b=b===void 0?{}:b;return b.id==
null?"":ss(a,b)},ss=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=vgb(f,d));e&&(f=f+"#"+e);return f},wgb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S("(",a.disabledReason,")"))},xgb=function(a,b){a&1&&(K(0,"mat-radio-button",4),Q(1),F(2,wgb,2,1,"span"),L());a&2&&(a=b.$implicit,I("value",a)("disabled",!a.enabled),B(),S(" ",a.displayText," "),B(),G(a.enabled?-1:2))},ygb=function(a){a&
1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S("(",a.disabledReason,")"))},zgb=function(a,b){a&1&&(K(0,"mat-radio-button",4),Q(1),F(2,ygb,2,1,"span"),L());a&2&&(a=b.$implicit,I("value",a)("disabled",!a.enabled),B(),S(" ",a.displayText," "),B(),G(a.enabled?-1:2))},Agb=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},Bgb=function(a){return"share-email-confirmation-"+a},Dgb=function(a){var b,c=new ts,
d=c.setIt,e=(new Cgb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a=Gm(e,3,a.keyword);return d.call(c,a)},Fgb=function(a){var b,c=(new Egb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a.embeddingType&&c.setEmbeddingType(a.embeddingType);return(new us).setIt(c)},Ggb=function(a,b){a=w_a([].concat(q(a.scores),q(b.scores)),[].concat(q(a.similarIssues),q(b.similarIssues))).sort(function(c,
d){return d[0]-c[0]});a=uq(a,function(c){c=m(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]})}},Hgb=function(a){a&1&&dg(0)},Igb=function(a){a&1&&M(0,"div",0)},Jgb=function(a){a&1&&M(0,"b-formatted-date-time",1);a&2&&(a=P(),I("mode",a.mode)("timestamp",a.createdTime)("paddingLeftPx",0))},Kgb=function(a){if(a&1){var b=t();K(0,"div",0);N("keydown",function(c){u(b);var d=P();return v(d.processKeydown(c))});dg(1);L()}a&
2&&(a=P(),xg(a.className),Kf("id",a.id))},Lgb=function(a){a&1&&M(0,"mat-icon",9)},Mgb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),yg(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},Ngb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),yg(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},Ogb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",15);Q(2,"Issue shortlink");L();K(3,"input",24,5);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))})("focus",function(){u(b);var d=
qg(4);return v(d.select())});L();F(5,Ngb,2,1,"span",17);K(6,"button",25);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))})("click",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=qg(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys);Kf("value",c.getAppBaseUrl().replace(/^.*?:\/\//,""));B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",
c.enableHotkeys)}},Pgb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),yg(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},Qgb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(3),B(),yg(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},Rgb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),yg(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},Sgb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",15);Q(2,"Issue email");L();K(3,"input",26,6);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,
d))})("focus",function(){u(b);var d=qg(4);return v(d.select())});L();F(5,Rgb,2,1,"span",17);K(6,"button",27);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))})("click",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=qg(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys);Kf("value","buganizer-system"+(ws(c.activeSession)?"":"-qa")+("+"+c.componentId+"+"+c.issueId)+"@google.com");
B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys)}},Tgb=function(a){a&1&&(K(0,"span",17),Q(1),L());a&2&&(a=P(4),B(),yg(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},Ugb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",15);Q(2,"TODO comment");L();K(3,"input",28,7);N("onHotkey",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))})("focus",function(){u(b);var d=qg(4);return v(d.select())});L();F(5,Tgb,2,1,"span",17);K(6,"button",29);N("onHotkey",
function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))})("click",function(){u(b);var d=qg(4),e=P(3);return v(vs(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=qg(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys);Kf("value","TODO: "+c.getAppBaseUrl().replace(/^.*?:\/\//,"")+" - ");B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys)}},Vgb=function(a){if(a&1){var b=t();K(0,"div",13)(1,"div",14)(2,
"label",15);Q(3,"Issue ID");L();K(4,"input",16,2);N("onHotkey",function(){u(b);var f=qg(5),g=P(2);return v(vs(g,f))})("focus",function(){u(b);var f=qg(5);return v(f.select())});L();F(6,Mgb,2,1,"span",17);K(7,"button",18);N("onHotkey",function(){u(b);var f=qg(5),g=P(2);return v(vs(g,f))})("click",function(){u(b);var f=qg(5),g=P(2);return v(vs(g,f))});M(8,"mat-icon",19);L()();F(9,Ogb,8,7,"div",14);K(10,"div",14)(11,"label",15);Q(12,"Issue URL");L();K(13,"input",20,3);N("onHotkey",function(){u(b);var f=
qg(14),g=P(2);return v(vs(g,f))})("focus",function(){u(b);var f=qg(14);return v(f.select())});L();F(15,Pgb,2,1,"span",17);K(16,"button",21);N("onHotkey",function(){u(b);var f=qg(14),g=P(2);return v(vs(g,f))})("click",function(){u(b);var f=qg(14),g=P(2);return v(vs(g,f))});M(17,"mat-icon",19);L()();K(18,"div",14)(19,"label",15);Q(20,"URL and title");L();K(21,"input",22,4);N("onHotkey",function(){u(b);var f=qg(22),g=P(2);return v(vs(g,f))})("focus",function(){u(b);var f=qg(22);return v(f.select())});
L();F(23,Qgb,2,1,"span",17);K(24,"button",23);N("onHotkey",function(){u(b);var f=qg(22),g=P(2);return v(vs(g,f))})("click",function(){u(b);var f=qg(22),g=P(2);return v(vs(g,f))});M(25,"mat-icon",19);L()();F(26,Sgb,8,7,"div",14);F(27,Ugb,8,7,"div",14);L()}if(a&2){a=qg(5);var c=qg(14),d=qg(22),e=P(2);I("cdkTrapFocusAutoCapture",!0);B(2);I("htmlFor",a.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);Kf("value",e.issueId);B(2);G(e.enableHotkeys?6:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",
e.enableHotkeys);B(2);G(e.activeSession.isInternalSession()&&!qs(e.activeSession)?9:-1);B(2);I("htmlFor",c.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);Kf("value",e.getIssueUrl());B(2);G(e.enableHotkeys?15:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);B(3);I("htmlFor",d.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);Kf("value",e.getAppBaseUrl(e.isExternalIssue)+" "+e.issueTitle);B(2);G(e.enableHotkeys?
23:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);B(2);G(e.activeSession.isInternalSession()&&!qs(e.activeSession)?26:-1);B();G(e.activeSession.isInternalSession()&&!qs(e.activeSession)?27:-1)}},Wgb=function(a){if(a&1){var b=t();K(0,"button",10,0);N("onHotkey",function(){u(b);var d=P();d.disabled||d.trigger.open();return v()})("onedevPopupPanelTriggerOpened",function(){u(b);var d=P();return v(d.isOpen=!0)})("onedevPopupPanelTriggerClosed",function(){u(b);var d=P();
return v(d.isOpen=!1)})("click",function(){u(b);var d=P();d.disabled||d.trigger.open();return v()});M(2,"mat-icon",11);L();K(3,"onedev-popup-panel",12,1);F(5,Vgb,28,25,"div",13);L()}if(a&2){a=qg(4);var c=P();I("onedevPopupPanelTriggerFor",a)("hotkey",c.HOTKEYS.HIGHLIGHT_ISSUE_ID)("hotkeyEnabled",c.enableHotkeys);Kf("aria-label","Show links for the issue "+c.issueId);B(5);G(c.isOpen?5:-1)}},Xgb=function(a){a&1&&M(0,"b-issue-id-picker",1);a&2&&(a=P(),I("issueId",a.id)("showCopyOptions",!1))},Ygb=function(a){a&
1&&M(0,"b-issue-priority-display",1);a&2&&(a=P(),I("issuePriority",a.priority))},Zgb=function(a){a&1&&(K(0,"a",2),Q(1," Fix Pending "),L());a&2&&(a=P(),xg(Eg("chippy status-",a.IssueStatus.FIXED)),I("href",Eg("http://cl/",a.pendingFixCl.changelistNumber),Pe)("matTooltip",Fg("Open cl/",a.pendingFixCl.changelistNumber," from ",a.pendingFixCl.author)))},$gb=function(a,b){a&1&&(K(0,"div",4),Q(1),L());if(a&2){a=P(2);xg(Eg("chippy status-",b));var c;I("title",(c=a.STATUS_JS_FULL_TEXT.get(b))!=null?c:"");
B();var d;S(" ",(d=a.STATUS_JS_TERSE.get(b))!=null?d:""," ")}},ahb=function(a){a&1&&F(0,$gb,2,5,"div",3);if(a&2){var b;a=P();G((b=a.status)?0:-1,b)}},bhb=function(a,b){b=b===void 0?"":b;return a.filter(function(c){return c.fixedIssueIds.includes(b)})[0]},chb=function(a){a&1&&(Uf(0),Q(1,"Un-CC me"),Vf())},dhb=function(a){a&1&&(Uf(0),Q(1,"CC me"),Vf())},xs=function(a){var b;return(b=a==null?void 0:a.trim())!=null?b:""},ys=function(a){return new ehb(a)},ghb=function(a,b){var c=a.getPrimaryTarget(),d=
a.getTargetList().map(function(e){return e===c?b:e});return ys(new fhb(a,d))},ihb=function(){return new hhb(bd.apply(0,arguments))},khb=function(){return new jhb(bd.apply(0,arguments))},mhb=function(){var a=bd.apply(0,arguments);return a.length===1?a[0]:new lhb(a)},ohb=function(){return new nhb(bd.apply(0,arguments))},phb=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))},rhb=function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"b-contact-chip",6);
N("chipSelection",function(){var d=u(c).$index,e=P();e.selectedChipIndex!==d&&zs(e,d)&&(qhb(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return v()})("chipClear",function(){u(c);var d=P();return v(qhb(d))})("chipRemove",function(){var d=u(c).$index,e=P();return v(e.removeItem(d))});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("isReadonly",a.isReadonly)("isSelected",a.isSelected)("isWidgetDisabled",b.isWidgetDisabled())("principalType",a.principalType)("detailedUserType",a.detailedUserType)("nestedChips",
a.nestedChips)("value",a.value)("displayText",a.displayText)("accessLevel",b.getAccessLevel()))},vhb=function(a){if(a&1){var b=t();K(0,"input",7,0);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.typedText,c)||(d.typedText=c);return v(c)});N("focus",function(){u(b);var c=P();return v(shb(c))})("blur",function(){u(b);var c=P();thb(c,c.typedText.split(",")[0].trim());c.isFocused=!1;return v()});
L()}a&2&&(a=P(),I("peoplekitAutocompleteConfig",uhb(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Ag("ngModel",a.typedText),I("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText))},whb=function(a){a&1&&(K(0,"span"),Q(1," Groups cannot be granted Restricted+ reader permission. "),K(2,"a",8),Q(3,"Learn more"),L()());a&2&&(a=P(),B(2),Kf("href",ls(a.documentationLinks)+"#components",Pe))},xhb=function(a){a&1&&(K(0,
"span"),Q(1," Invalid user(s). "),L())},yhb=function(a){a&1&&(K(0,"span"),Q(1,' "Public" or external users are not allowed for component designated as "internal access". '),L())},zhb=function(a){a&1&&(K(0,"span"),Q(1,' "Public" is not allowed for components designated as "external partner access". '),L())},Ahb=function(a){a&1&&(K(0,"span"),Q(1," Team owner cannot be a group. "),L())},Bhb=function(a){a&1&&(K(0,"span"),Q(1," Team owner can only be a full-time Googler. "),L())},Chb=function(a){a&1&&
(K(0,"span"),Q(1," Only users in the Google domain can be selected. "),L())},Dhb=function(a){a&1&&(K(0,"span"),Q(1," User has already been selected. "),L())},Ehb=function(a){a&1&&(K(0,"span"),Q(1," Only users can be selected. Groups and aliases are not supported. "),L())},Jhb=function(a,b){if(!b||!a)return Fhb;var c;return!Ghb((c=b.readers)!=null?c:[])||Hhb(a)?Ihb:Fhb},Ghb=function(a){return a.some(function(b){return b.alias!==void 0?b.alias==="public"||b.alias==="public_non_google":!1})},Hhb=function(a){return a===
"LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"},Khb=function(a,b){a&1&&(K(0,"a",6),Q(1," Learn more. "),L());a&2&&I("href",b,Pe)},Lhb=function(a,b){a&1&&M(0,"b-multi-user-input",9);a&2&&(I("users",b),Kf("disabled",!0))},Mhb=function(a){a&1&&(Uf(0,8),M(1,"br"),K(2,"h2"),Q(3,"Users who can view"),L(),F(4,Lhb,1,2,"b-multi-user-input",9),T(5,"async"),Vf());if(a&2){var b;a=P(2);I("onedevIsHovercardReady",a.showHovercard$);B(4);G((b=U(5,2,a.viewers$))?4:-1,b)}},Ohb=function(a){if(a&1){var b=t();K(0,"span",2,0);
T(2,"async");T(3,"async");N("focus",function(){u(b);var f=qg(1);P().loadTooltipOnce();f.disabled=!1;return v(f.show())})("blur",function(){u(b);var f=qg(1);f.disabled=!0;return v(f.hide())});Q(4);T(5,"async");L();K(6,"onedev-hovercard",null,1)(8,"div",3)(9,"div",4)(10,"div",5);Q(11);T(12,"async");F(13,Khb,2,1,"a",6);E(14,Mhb,6,4,"ng-container",7);L()()()()}if(a&2){var c;a=qg(7);var d=P();xg(U(2,10,d.chipClass$));wg("xs",d.compactMode);var e;I("onedevHovercardTrigger",a)("matTooltipDisabled",!0)("matTooltip",
(e=U(3,12,d.tooltipText$))!=null?e:"");B(4);S(" ",U(5,14,d.chipText$)," ");B(7);S(" ",U(12,16,d.bubbleText$)," ");B(2);G((c=Nhb(d.documentationLinks))?13:-1,c)}},Phb=function(a){return a==="visible_to_listed_partners"||a==="visible_to_listed_public_users"},Qhb=function(a){a&1&&(K(0,"span"),Q(1," Assigned to "),M(2,"b-user-display",12),L());a&2&&(a=P(2),B(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},Rhb=function(a){a&1&&(K(0,"span"),Q(1," Accepted by "),M(2,"b-user-display",12),L());a&2&&
(a=P(2),B(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},Shb=function(a){a&1&&(K(0,"span"),Q(1," Duplicate of "),K(2,"a",2),Q(3),L()());if(a&2){a=P(2);var b=P();B(2);Kf("aria-label",Eg("Go to issue ",a.duplicateOfIssueId));I("href",b.ROUTES.viewIssue.makeHref(a.duplicateOfIssueId),Pe);B();S(" ",a.duplicateOfIssueId," ")}},Thb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(2);B();var c;S(" ",(c=b.STATUS_JS_FULL_TEXT.get(a))!=null?c:""," ")}},Uhb=function(a,b){a&1&&F(0,Qhb,3,2,
"span")(1,Rhb,3,2,"span")(2,Shb,4,4,"span")(3,Thb,2,1,"span");a&2&&G(b==="ASSIGNED"?0:b==="ACCEPTED"?1:b==="DUPLICATE"?2:3)},Vhb=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)}},Whb=function(a){a&1&&F(0,Vhb,1,3,"b-app-vote-button",13);if(a&2){var b;a=P(2);G((b=a.issue.userData)?0:-1,b)}},Yhb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(2);return v(Xhb(c,
c.childContextId))});Q(1," Unlink parent ");L()}},Zhb=function(a,b){a&1&&(K(0,"li"),Q(1," Last updated by "),M(2,"b-user-display",12),Q(3," on: "),M(4,"b-formatted-date-time",15),L());a&2&&(a=P(),B(2),I("model",b)("hovercardEnabled",!1),B(2),I("timestamp",a.modifiedTimeMicros/1E3))},$hb=function(a,b){a&1&&(F(0,Zhb,5,3,"li"),K(1,"li"),Q(2," Reported by "),M(3,"b-user-display",12),Q(4," on: "),M(5,"b-formatted-date-time",15),L());if(a&2){var c;a=P();G((c=b.lastModifier)?0:-1,c);B(3);I("model",a.reporterUser)("hovercardEnabled",
!1);B(2);I("timestamp",b.createdTimeMicros/1E3)}},aib=function(a){a&1&&(K(0,"li",11),M(1,"b-note-container",16),L());if(a&2){a=P(2);B();var b;I("issueId",a.issueId)("issueAccessLevel",a.issue.accessLimit==null?null:a.issue.accessLimit.accessLevel)("formattingMode",(b=a.firstEvent==null?null:a.firstEvent.formattingMode)!=null?b:a.FormattingMode.UNSPECIFIED_FORMATTING_MODE)("note",a.getNote())}},dib=function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"h3")(2,"a",2);Q(3);L();Q(4," \u00a0 ");K(5,"span",3);
Q(6);L()();K(7,"ul")(8,"li",4);M(9,"b-issue-visibility-chip",5);L();K(10,"li",6)(11,"span",7);Q(12);L();Q(13," \u00a0 ");F(14,Uhb,4,1);L()();K(15,"div",8)(16,"b-cc-button",9);N("onCc",function(l){u(c);var r=P();r.location&&l&&r.analytics.trackEvent(r.location+"_issueCard","add","CC");return v()});L();F(17,Whb,1,1);F(18,Yhb,2,0,"button",10);L();K(19,"ul");F(20,$hb,6,4);F(21,aib,2,4,"li",11);L()()}if(a&2){var d,e,f;a=P();B(2);Kf("aria-label",Eg("Go to issue ",a.issueId));I("href",a.ROUTES.viewIssue.makeHref(a.issueId),
Pe);B();yg(a.issueId);B(3);yg(b.title);B(3);I("issueId",a.issueId);B(2);xg(a.priorityClass(b.priority));B();var g;yg(a.ISSUE_PRIORITY_TEXT_JS[(g=b.priority)!=null?g:a.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);B(2);G((d=b.status)?14:-1,d);B(2);var k;I("issueId",a.issueId)("ccState",bib(a,(k=b.ccUsers)!=null?k:Hg(16,cib)));B();G((e=a.issue.aggregatedData)?17:-1,e);B();G(a.childContextId?18:-1);B(2);G((f=a.issue.aggregatedData)?20:-1,f);B();G(a.firstEvent&&tUa(a.firstEvent)?21:-1)}},eib=function(a){a=
a.getIt();return{matchedPatterns:Dm(a,1,Di())}},gib=function(a){if(a&1){var b=t();K(0,"span",12);N("onedevHovercardShown",function(){u(b);var d=P(2);return v(fib(d))});Q(1);L()}if(a&2){a=P(2);var c=qg(6);I("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();yg(a.title)}},hib=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2),B(),yg(a.title))},jib=function(a){if(a&1){var b=t();F(0,gib,2,3,"span",8)(1,hib,2,1,"span",9);K(2,"a",10);N("keydown",function(c){u(b);P();c.key===
"Enter"&&c.stopPropagation();return v()})("click",function(c){u(b);var d=P();return v(iib(d,c))});M(3,"mat-icon",11);L()}a&2&&(a=P(),G(a.enableHovercard?0:1),B(2),I("routerLink","/"+a.link)("target",a.anchorTarget))},kib=function(a){a&1&&Wf(0)},lib=function(a){a&1&&E(0,kib,1,0,"ng-container",13);a&2&&(P(),a=qg(11),I("ngTemplateOutlet",a))},mib=function(a,b){a&1&&(K(0,"span",14),Q(1),L());if(a&2){xg(b.cssClass);Kf("aria-label",Fg("",b.title," - ",b.tooltip));var c;I("matTooltip",(c=b.tooltip)!=null?
c:"");B();yg(b.title)}},nib=function(a){a&1&&M(0,"b-issue-card",6);a&2&&(a=P(),I("issueId",a.issue.issueId))},oib=function(a){a&1&&(K(0,"p",7),Q(1),K(2,"a",15),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" ",As(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},qib=function(a){if(a&1){var b=t();K(0,"input",17,2);T(2,"async");N("input",function(){u(b);var c=P(2);return v(c.bannedWordsChecker.reset())});Cg("ngModelChange",function(c){u(b);var d=
P(2);Bg(d.title,c)||(d.title=c);return v(c)});N("keydown",function(c){u(b);var d=P(2);c.key==="Enter"?(c.stopPropagation(),pib(d)):c.key==="Escape"?(c.stopPropagation(),d.bannedWordsChecker.reset(),d.onCancel.emit()):c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||c.stopPropagation();return v()});L();K(3,"b-button",18);N("onAction",function(){u(b);var c=P(2);return v(pib(c))});Q(4,"Save");L();K(5,"b-button",19);N("onAction",function(c){u(b);var d=P(2);c.stopPropagation();d.bannedWordsChecker.reset();d.onCancel.emit();
return v()});Q(6,"Cancel");L()}a&2&&(a=P(2),wg("banned-words-warning",U(2,6,a.bannedWordsChecker.showWarning$)),I("bFocus",!0),Ag("ngModel",a.title),B(3),I("disabled",!a.title||a.savingTitle),B(2),I("disabled",a.savingTitle))},rib=function(a){if(a&1){var b=t();K(0,"a",20);N("keydown",function(d){u(b);P(2);d.key==="Enter"&&d.stopPropagation();return v()})("click",function(d){u(b);var e=P(2);return v(iib(e,d))})("onedevHovercardShown",function(){u(b);var d=P(2);return v(fib(d))});Q(1);L()}if(a&2){a=
P(2);var c=qg(6);I("routerLink","/"+a.link)("target",a.anchorTarget)("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();yg(a.title)}},sib=function(a){a&1&&F(0,qib,7,8)(1,rib,2,5,"a",16);a&2&&(a=P(),G(a.isEditMode?0:1))},tib=function(a,b){a&1&&(K(0,"div",19)(1,"div",20),Q(2,"CURRENT ISSUE"),L(),K(3,"div",21),Q(4),L()());a&2&&(B(4),S(" ",(b==null?null:b.snapshot)[0].title," "))},uib=function(a){a&1&&(F(0,tib,5,1,"div",19),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.currentIssue$))?
0:-1,b)}},vib=function(a){a&1&&M(0,"mat-icon",22)},wib=function(a){a&1&&M(0,"mat-icon",23)},xib=function(a,b){a&1&&F(0,vib,1,0,"mat-icon",22)(1,wib,1,0,"mat-icon",23);a&2&&(a=P(),G(b===a.SearchSource.SEMANTIC_SEARCH?0:1))},zib=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",38)(1,"mat-chip-option",39,4);N("keydown.enter",function(){u(b);var d=qg(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=qg(2);return v(d.openMenu())})("menuOpened",function(){u(b);var d=P(5);return v(yib(d))});
K(3,"span");Q(4);L();M(5,"mat-icon",37);L()()}if(a&2){P(2);a=qg(11);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);yg(c.selectedScopeFilter.displayAs.replace("Component: ",""))}},Bib=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",35)(1,"mat-chip-option",36,3);N("keydown.enter",function(){u(b);var d=qg(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=qg(2);return v(d.openMenu())});K(3,"span");Q(4);L();M(5,"mat-icon",37);L()();F(6,zib,6,3,"mat-chip-listbox",38)}if(a&
2){P();a=qg(8);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);yg(Aib(c.selectedScopeFilter.displayAs));B(2);G(c.selectedScopeFilter.displayAs.startsWith("Component:")?6:-1)}},Dib=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(Cib(c,c.componentFilter))});M(1,"mat-icon",43);Q(2);L()}a&2&&(a=P(5),I("matTooltip",a.componentFilter.tooltip||""),B(),wg("invisible",a.componentFilter!==a.selectedScopeFilter),B(),S(" ",a.componentFilter.displayAs,
" "))},Eib=function(a){if(a&1){var b=t();K(0,"button",44);N("click",function(){u(b);var c=P(5);return v(Cib(c,c.teamFilter))});M(1,"mat-icon",43);Q(2);L()}a&2&&(a=P(5),I("matTooltip",a.teamFilter.tooltip||""),B(),wg("invisible",a.teamFilter!==a.selectedScopeFilter),B(),S(" ",a.teamFilter.displayAs," "))},Fib=function(a){a&1&&(F(0,Dib,3,4,"button",40),F(1,Eib,3,4,"button",41));a&2&&(a=P(4),G(a.componentFilter?0:-1),B(),G(a.teamFilter?1:-1))},Hib=function(a){if(a&1){var b=t();K(0,"div",46)(1,"b-team-component-picker",
47);N("selectedComponentChange",function(c){u(b);var d=P(5);return v(d.selectedComponent=c)});L()();K(2,"div",48)(3,"button",49);N("click",function(){u(b);var c=P(5);return v(Gib(c,c.selectedComponent))});Q(4," Choose ");L();K(5,"button",50);N("click",function(){u(b);P(5).trigger.closeMenu();return v()});Q(6," Cancel ");L()()}a&2&&(a=P(5),B(),I("selectedComponent",a.selectedComponent)("placeholder","Search for a component")("shouldFocus",!0)("isRequired",!0),B(2),I("disabled",!a.selectedComponent))},
Iib=function(a){if(a&1){var b=t();K(0,"div",45);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.tab",function(c){u(b);return v(c.stopPropagation())})("keydown.shift.tab",function(c){u(b);return v(c.stopPropagation())});F(1,Hib,7,5);L()}a&2&&(a=P(4),B(),G(a.componentFilter?1:-1))},Jib=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(4);return v(c.openLearnMore())});M(1,"mat-icon",52);L()}},Lib=function(a){if(a&1){var b=t();K(0,"div")(1,"div",13)(2,
"mat-chip-listbox",24);N("change",function(c){u(b);var d=P(3);return v(d.openFilterChanged(c.value))});K(3,"mat-chip-option",25)(4,"span",26);Q(5);L()()();F(6,Bib,7,4);K(7,"mat-menu",27,1);E(9,Fib,2,2,"ng-template",28);L();K(10,"mat-menu",29,2);E(12,Iib,2,1,"ng-template",28);L();K(13,"mat-chip-listbox",30);N("change",function(){u(b);var c=P(3);return v(Kib(c))});K(14,"mat-chip-option",31);T(15,"async");K(16,"span",32);Q(17);L()()()();K(18,"div",13)(19,"button",33);N("click",function(){u(b);var c=
P(3);c.showFiltersSubject.next(!c.showFiltersSubject.value);return v()});Q(20," Remove scope filter ");L();F(21,Jib,2,0,"button",34);L()()}a&2&&(a=P(3),B(3),I("selected",a.selectedFilters$.has(a.openFilter))("value",a.openFilter),B(),I("matTooltip",a.openFilter.tooltip||""),B(),S(" ",a.openFilter.displayAs," "),B(),G(a.selectedScopeFilter?6:-1),B(8),I("selected",U(15,8,a.includeDescendants$)),B(3),S(" Include sub-",a.selectedScopeFilter===a.componentFilter?"components":"teams"," "),B(4),G(a.isInternalSession?
21:-1))},Mib=function(a,b){a&1&&F(0,Lib,22,10,"div");a&2&&(a=P(2),G(b===a.SearchSource.SEMANTIC_SEARCH&&a.tableDataSource!==a.TableDataSource.ISSUE_IDS?0:-1))},Nib=function(a){a&1&&(F(0,Mib,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.selectedSearchSource$))?0:-1,b)}},Oib=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(2);return v(c.openLearnMore())});M(1,"mat-icon",52);L()}},Pib=function(a){if(a&1){var b=t();K(0,"div",13)(1,"button",33);N("click",function(){u(b);
var c=P();c.showFiltersSubject.next(!c.showFiltersSubject.value);return v()});Q(2," Add scope filter ");L();F(3,Oib,2,0,"button",34);L()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1))},Qib=function(a){a&1&&M(0,"ai-spinner",53);a&2&&I("large",!0)},Rib=function(a){a&1&&M(0,"ai-spinner",54)},Sib=function(a){a&1&&M(0,"b-spinner",55)},Tib=function(a){a&1&&(K(0,"div",14),F(1,Qib,1,1,"ai-spinner",53),T(2,"async"),Lf(3,Rib,1,0,"ai-spinner",54)(4,Sib,1,0,"b-spinner",55),L());a&2&&(a=P(),B(),G(a.searchText$.value?
a.searchText$.value&&U(2,1,a.selectedSearchSource$)===a.SearchSource.SEMANTIC_SEARCH?3:4:1))},Uib=function(a){a&1&&(K(0,"b-callout",56)(1,"b-callout-body"),Q(2," This issue was suggested by AI! Save time by exploring the suggestions first next time. "),K(3,"a",60),Q(4,"Learn more"),L()()())},Vib=function(a){a&1&&(K(0,"h3",57),M(1,"mat-icon",61),Q(2," Possible duplicates "),L())},Wib=function(a){a&1&&(K(0,"th",80)(1,"span",81),Q(2,"Selection"),L()())},Xib=function(a,b){a&1&&(K(0,"td",82),M(1,"mat-radio-button",
83),T(2,"async"),L());a&2&&(a=b.$implicit,b=P(3),B(),I("checked",U(2,3,Bs(b.selectedIssues,a.issueId))),Jf("aria-label",a.snapshot[0].title),I("value",a.issueId))},Yib=function(a){a&1&&(K(0,"th",80),Q(1," Title "),L())},Zib=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-title-cell",84),L());a&2&&(a=b.$implicit,b=P(3),B(),I("issue",a)("issueUrlFactory",b.issueUrlFactory)("useButtonToNavigate",!0)("enableHovercard",!0))},$ib=function(a){a&1&&(K(0,"th",80),Q(1," Id "),L())},ajb=function(a,b){a&1&&(K(0,
"td",82),M(1,"b-issue-id-cell",85),L());a&2&&(a=b.$implicit,B(),I("id",a.issueId))},bjb=function(a){a&1&&(K(0,"th",80),Q(1," Priority "),L())},cjb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-priority-cell",86),L());a&2&&(a=b.$implicit,B(),I("issue",a))},djb=function(a){a&1&&(K(0,"th",87),Q(1," Status "),L())},ejb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-status-cell",86),L());a&2&&(a=b.$implicit,B(),I("issue",a))},fjb=function(a){a&1&&(K(0,"th",80),Q(1," Dupes "),L())},gjb=function(a,b){a&1&&
(K(0,"td",88),Q(1),L());if(a&2){a=b.$implicit;B();var c;S(" ",(c=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?c:0," ")}},hjb=function(a){a&1&&(K(0,"th",89)(1,"span",81),Q(2,"Votes"),L(),M(3,"mat-icon",90),L())},ijb=function(a,b){a&1&&(K(0,"td",88),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.aggregatedData.voteCount," "))},jjb=function(a){a&1&&(K(0,"th",91),Q(1," Created "),L())},kjb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-created-time-cell",92),L());a&
2&&(a=b.$implicit,B(),I("issue",a))},ljb=function(a){a&1&&M(0,"tr",93)},mjb=function(a,b){if(a&1){var c=t();K(0,"tr",94);N("keydown",function(d){var e=u(c),f=e.$implicit;e=e.index;var g=P(3);return v(g.onRowKeydown(e,f,d))})("keydown.enter",function(){var d=u(c).$implicit,e=P(3);return v(e.selectIssue(d.issueId))})("focusin",function(){var d=u(c).$implicit,e=P(3);return v(Cs(e.focusManager,d))})("click",function(){var d=u(c),e=d.$implicit;d=d.index;var f=P(3);f.selectIssue(e.issueId);return v(f.focusManager.setActiveItem(d))});
L()}a&2&&I("row",b.$implicit)},ojb=function(a){if(a&1){var b=t();K(0,"table",62);N("contentChanged",function(){u(b);var d=P(),e=P();return v(njb(e,d))});Uf(1,63);E(2,Wib,3,0,"th",64);K(3,"mat-radio-group",65);N("change",function(d){u(b);var e=P(2);return v(e.selectIssue(d.value))});E(4,Xib,3,5,"td",66);L();Vf();Uf(5,67);E(6,Yib,2,0,"th",64)(7,Zib,2,4,"td",66);Vf();Uf(8,68);E(9,$ib,2,0,"th",64)(10,ajb,2,1,"td",66);Vf();Uf(11,69);E(12,bjb,2,0,"th",64)(13,cjb,2,1,"td",66);Vf();Uf(14,70);E(15,djb,2,0,
"th",71)(16,ejb,2,1,"td",66);Vf();Uf(17,72);E(18,fjb,2,0,"th",64)(19,gjb,2,1,"td",73);Vf();Uf(20,74);E(21,hjb,4,0,"th",75)(22,ijb,2,1,"td",73);Vf();Uf(23,76);E(24,jjb,2,0,"th",77)(25,kjb,2,1,"td",66);Vf();E(26,ljb,1,0,"tr",78)(27,mjb,1,1,"tr",79);L()}if(a&2){a=P();var c=P();I("dataSource",a)("trackBy",c.trackByIssueId);B(26);I("matHeaderRowDef",c.tableColumns);B();I("matRowDefColumns",c.tableColumns)}},pjb=function(a){a&1&&(K(0,"div",59)(1,"span",95),Q(2,"No results found"),L()())},qjb=function(a,
b){a&1&&(K(0,"div",15),F(1,Uib,5,0,"b-callout",56),F(2,Vib,3,0,"h3",57),F(3,ojb,28,4,"table",58),F(4,pjb,3,0,"div",59),L());a&2&&(a=P(),B(),G(a.isPasteResultInSuggestion?1:-1),B(),G(a.searchText$.value||a.isLoading?-1:2),B(),G(!a.isLoading&&b&&b.length?3:-1),B(),G(a.isLoading||(b==null?null:b.length)!==0?-1:4))},rjb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),yg(a.description))},sjb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},tjb=function(a,b){a&1&&(K(0,"span",1),Q(1),L(),K(2,
"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"h3"),Q(7),L(),F(8,rjb,3,1,"div"),L()()(),F(9,sjb,2,0,"span"));if(a&2){a=qg(3);var c=P(),d=c.$index;c=c.$count;I("onedevHovercardTrigger",a)("onedevHovercardActive",b.enableHovercard);B();yg(b.displayName);B(6);yg(b.displayName);B();G(b.description?8:-1);B();G(d!==c-1?9:-1)}},vjb=function(a,b){a&1&&(F(0,tjb,10,6),T(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=U(1,1,ujb(b,a)))?0:-1,c)}},wjb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",
function(c){u(b);var d=P();d.expansionChange.emit();c.stopPropagation();d.issueTitleCell.bannedWordsChecker.reset();return v()});M(1,"b-icon",5);L()}a&2&&(a=P(),wg("collapsed",!a.expanded),Kf("aria-label",a.expanded?"Collapse children":"Expand children"))},xjb=function(a){a&1&&M(0,"div",2)},yjb=function(a){a&1&&M(0,"mat-icon",1);a&2&&(a=P(),I("svgIcon",a.icon))},zjb=function(a){if(a&1){var b=t();M(0,"b-signal-chip",3);K(1,"button",4);N("click",function(c){u(b);var d=P();c.preventDefault();c.stopPropagation();
return v(d.dismissAlert())})("mousedown",function(){u(b);var c=P();return v(c.dismissAlert())});M(2,"mat-icon",5);L()}a&2&&(P(),a=bg(1),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Bjb=function(a){a&1&&(K(0,"div",2),Q(1),L());if(a&2){a=P();var b=qg(5);I("xapInlineDialog",b);B();S(" +",Ajb(a).slice(1).length," ")}},Cjb=function(a,b){if(a&1){var c=t();K(0,"div",6);M(1,"b-signal-chip",3);K(2,"button",4);N("click",function(d){u(c);var e=P(2);d.preventDefault();d.stopPropagation();
return v(e.dismissAlert())})("mousedown",function(){u(c);var d=P(2);return v(d.dismissAlert())});M(3,"mat-icon",7);L()()}a&2&&(a=b.$implicit,B(),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Djb=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Of(2,Cjb,4,3,"div",6,Mf),L()());a&2&&(a=P(),B(2),Pf(Ajb(a).slice(1)))},Ejb=function(a){a&1&&(K(0,"b-person-hovercard",1),Q(1),L());a&2&&(a=P(),I("email",a.assignee),B(),S(" ",a.assignee," "))},Fjb=function(a){a&
1&&M(0,"b-team-display",1);a&2&&(a=P(),I("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},Gjb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b)},Hjb=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(c.claim())})("mousedown",function(){u(b);var c=P();return v(c.claim())});Q(1," Claim ");L()}},Ijb=function(a){a&1&&(Uf(0),Q(1),T(2,"enumToHuman"),Vf());a&2&&(a=P(),B(),yg(U(2,1,a.type)))},Jjb=function(a){a&1&&Wf(0)},Kjb=function(a){a&
1&&(K(0,"span"),Q(1,"Details"),L())},Ljb=function(a){a&1&&(K(0,"span"),Q(1,"Members"),L())},Mjb=function(a){a&1&&(K(0,"div",11)(1,"a",12),F(2,Kjb,2,0,"span")(3,Ljb,2,0,"span"),L()());if(a&2){a=P(2);B();if(a.email===void 0)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=Xaa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":bUa(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}I("href",b,Pe);
B();G(Xaa(a.email)?2:3)}},Njb=function(a){a&1&&(K(0,"span",2),E(1,Jjb,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h3"),Q(10),L()(),K(11,"div",9),M(12,"mat-icon",10),K(13,"span"),Q(14),L()()(),F(15,Mjb,4,2,"div",11),L()()()());if(a&2){a=qg(3);var b=P(),c=qg(3);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(9);yg(b.getName());B(4);yg(b.email);B();G(b.shouldShowLinks()?15:-1)}},Ojb=function(a){a&1&&Wf(0)},Pjb=function(a){a&
1&&E(0,Ojb,1,0,"ng-container",3);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},Qjb=function(a){a&1&&dg(0)},Rjb=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),dg(2),L()())},Sjb=function(a,b){a&1&&M(0,"mat-icon",2);a&2&&I("svgIcon",b)},Tjb=function(a){a&1&&(K(0,"b-person-hovercard",4),Q(1),L());a&2&&(a=P(),I("email",a.value),B(),S(" ",a.displayText," "))},Ujb=function(a){a&1&&(K(0,"b-group-email-card",4),Q(1),L());a&2&&(a=P(),I("email",a.value),B(),S(" ",a.displayText," "))},
Vjb=function(a,b){a&1&&(K(0,"div",8),M(1,"b-contact-chip",9),L());a&2&&(a=b.$implicit,b=P(3),B(),I("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},Wjb=function(a){a&1&&(K(0,"div",7),Of(1,Vjb,2,5,"div",8,Nf),L());a&2&&(a=P(2),B(),Pf(a.nestedChips))},Xjb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.getTooltip()))},Yjb=function(a){a&1&&(K(0,"b-text-with-tooltip",5),F(1,Wjb,3,0,"div",
7)(2,Xjb,2,1,"span"),L());a&2&&(a=P(),I("dialogTabIndex",a.isContainerChip()?-1:0)("displayText",a.displayText),B(),G(a.isContainerChip()?1:2))},Zjb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(){u(b);var c=P();return v(c.chipRemove.emit())})("keydown.enter",function(){u(b);var c=P();return v(c.chipRemove.emit())});M(1,"mat-icon",11);L()}a&2&&(a=P(),I("matTooltip",Eg("'Remove ",a.displayText,"'")),Kf("aria-label","Remove "+a.displayText))},$jb=function(a,b){a&1&&(K(0,"span",1),Q(1),
L());a&2&&(I("matTooltip",b),B(),S(" ",b," "))},akb=function(a){a&1&&(K(0,"b-person-hovercard",1),Q(1),L());a&2&&(a=P(),I("email",a.reporter),B(),S(" ",a.reporter," "))},bkb=function(a,b){a&1&&(Rf(0,"div",1,0),dg(2),Sf());a&2&&(a=b.id,b=P(),xg(b._classList),wg("mat-mdc-autocomplete-visible",b.showPanel)("mat-mdc-autocomplete-hidden",!b.showPanel)("mat-autocomplete-panel-animations-enabled",!b._animationsDisabled)("mat-primary",b._color==="primary")("mat-accent",b._color==="accent")("mat-warn",b._color===
"warn"),Qf("id",b.id),Kf("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},ckb=function(a){a&1&&(K(0,"div")(1,"div",10),Q(2," An issue cannot reference itself. "),L()())},dkb=function(a){a&1&&(K(0,"mat-option",7)(1,"div",11),M(2,"b-spinner",12),L()());a&2&&(B(2),I("large",!0))},ekb=function(a){a&1&&(K(0,"mat-option",8),Q(1," No issues found. "),L())},fkb=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:"")}},gkb=function(a){a&1&&M(0,"b-issue-card",21,2);if(a&2){a=qg(1);var b=P().$implicit;I("onedevIsHovercardReady",a.init)("issueId",b.resourceId)}},ikb=function(a,b){if(a&1){var c=t();K(0,"mat-option",9)(1,"div",13);F(2,fkb,1,1,"mat-icon",14);K(3,"strong",15);Q(4);L();K(5,"onedev-hovercard",null,1);E(7,gkb,2,2,"b-issue-card",16);L();K(8,"a",17);N("click",function(e){u(c);return v(e.stopPropagation())});M(9,"mat-icon",18);L();K(10,"span",19);Q(11);L();M(12,"div",20);T(13,"boldPrefixMatches");
L()()}if(a&2){a=b.$implicit;b=qg(6);var d=P();I("value",a);B();Kf("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B();G(a.status?2:-1);B();I("title",Dg(a.resourceId));B();S(" ",a.resourceId," ");B(4);I("onedevHovercardTrigger",b)("href",d.getIssueLink(a),Pe);B(3);yg(hkb(a));B();I("title",Dg(a.displayText))("innerHTML",Lg(13,12,a.displayText,d.query),Oe)}},jkb=function(a,b){a&1&&(K(0,"a",11),Q(1),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;
I("href",Eg("issues/",a.resourceId),Pe);B();zg(" ",a.resourceId,"",c===b-1?"":","," ")}},kkb=function(a){a&1&&(K(0,"div",3),Of(1,jkb,2,4,"a",11,Nf),L());a&2&&(a=P(),B(),Pf(a.selectedIssues))},lkb=function(a){a&1&&(K(0,"div",3)(1,"a",12)(2,"span",13),Q(3),L(),K(4,"span"),M(5,"mat-icon",14),L()()());a&2&&(a=P(),B(),I("href",Eg("issues/",a.selectedIssues[0].resourceId),Pe),B(2),S(" ",a.selectedIssues[0].displayText," "))},nkb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"div",15);N("click",function(){u(b);
var c=P();return v(mkb(c))})("keyup.space",function(){u(b);var c=P();return v(mkb(c))});L()()}a&2&&(a=P(),B(),I("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),Kf("aria-checked",a.isQueryRestricted))},okb=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("We`"+a);}},pkb=function(a){a&1&&(K(0,"span"),Q(1),
L());a&2&&(a=P(),B(),S("Retain ",a.resource," as long as issue?"))},qkb=function(a){a&1&&(K(0,"span"),Q(1,"Apply component retention settings?"),L())},rkb=function(a){a&1&&(K(0,"span")(1,"p"),Q(2),L(),K(3,"p")(4,"b"),Q(5,"Please note long retention is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored."),L(),M(6,"br"),Q(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),
L()());a&2&&(a=P(),B(2),S("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},skb=function(a){a&1&&(K(0,"span")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),zg("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."))},tkb=function(a){if(a&1){var b=t();K(0,"mat-checkbox",8);Cg("ngModelChange",function(c){u(b);
var d=P();Bg(d.acknowledgeToMatchIssueRetention,c)||(d.acknowledgeToMatchIssueRetention=c);return v(c)});Q(1," I acknowledge ");L()}a&2&&(a=P(),Ag("ngModel",a.acknowledgeToMatchIssueRetention))},ukb=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.maxDelayMs_=512E3;this.random_=a;this.reset()},vkb=function(a){return new Ds(a)},wkb=function(a){a=a instanceof Ds?a:new Ds(a);return a.value===null||a.value instanceof Es?a:new Ds(a.value,!0)},xkb=function(a){return{queryParams:a.getQueryParameters(),
extraHeaders:a.getHeaders(),withCredentials:a.usesCredentialedRequests()}},Ckb=function(a){if(a.oauthTokens){var b=a.oauthTokens;return ie(b).then(function(c){c=new Nj(c);b.subscribe(c);return new ykb(c)})}return a.apiKey?a.bearerTokens?Promise.resolve(new zkb(a.apiKey,a.bearerTokens)):a.appAuthTokens?Promise.resolve(new Akb(a.apiKey)):Promise.resolve(new Bkb(a.apiKey,a.authUser)):Promise.reject(Error("cf"))},Dkb=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}},Ekb=function(a){return{send:function(b,c,d,e,f,g,k){var l=new Fs(a);l.listen("complete",c);l.listenOnce("ready",function(){l.dispose()});g&&(l.timeoutInterval_=Math.max(0,g));k&&(l.withCredentials_=k);l.send(b,d,e,f);return l}}},Fkb=function(a){return new Vd(function(b){var c=Gs(function(){b.next({});b.complete()},a);return function(){ra.clearTimeout(c)}})},
Gkb=function(a){return(new Hs).setName(a)},Lkb=function(a){var b=new Is;a=m(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new Hkb;if(d.value===null){d=c;var e=new Ikb;Yo(d,13,Js,e)}else d.value instanceof Ks?d.isDecreasing?So(c,4,Js,Ib(d.value.toString(),0)):So(c,2,Js,Ib(d.value.toString(),0)):typeof d.value==="string"?d.isDecreasing?Co(c,3,Js,d.value):Co(c,1,Js,d.value):typeof d.value==="number"?d.isDecreasing?JWa(c,9,Js,d.value):JWa(c,10,Js,d.value):d.value instanceof Uint8Array?
d.isDecreasing?So(c,5,Js,gb(d.value,!1,!0)):So(c,7,Js,gb(d.value,!1,!0)):d.value instanceof Jkb?d.isDecreasing?(e=c,d=Kkb(d.value),Yo(e,11,Js,d)):(e=c,d=Kkb(d.value),Yo(e,12,Js,d)):d.value instanceof Es&&(c=d.value.rep);b.addParts(c)}return b},Qkb=function(a,b){if(a instanceof Ls)return b.getPartsList().length>0?null:Mkb.apply(Ls,q(a.parts));a=Array.of.apply(Array,q(a.root.parts));b=m(b.getPartsList());for(var c=b.next();!c.done;c=b.next())switch(c=c.value,xo(c,Js)){case 4:a.push(wkb(Ms(Nkb(c,4))));
break;case 2:a.push(vkb(Ms(Nkb(c,2))));break;case 8:case 10:case 6:case 9:a.push(new Ds(new Es(c)));break;case 3:a.push(wkb(mr(c,3,Js)));break;case 1:a.push(vkb(mr(c,1,Js)));break;case 7:var d=void 0;a.push(vkb((d=Okb(c,7))==null?void 0:Xsa(d)));break;case 5:d=void 0;a.push(wkb((d=Okb(c,5))==null?void 0:Xsa(d)));break;case 12:c=Pkb($l(c,Ti,12,Js));if(c===null)return null;a.push(new Ds(c));break;case 11:c=Pkb($l(c,Ti,11,Js));if(c===null)return null;a.push(wkb(c));break;case 13:a.push(new Ds(null));
break;case 0:a.push(new Ds(new Es(c)));break;default:return null}return Mkb.apply(Ls,q(a))},Os=function(a){return{firstPartyUri:new Ns("https://"+a+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Ns("https://"+a+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}},Ps=function(a,b){return{firstPartyUri:new Ns("https://"+a+"-dynamite-"+b+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Ns("https://"+a+"-dynamite-"+b+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!0}},
Tkb=function(a,b){var c=0,d=a.slice(0,b).matchAll(Rkb),e=void 0;d=m(d);for(var f=d.next();!f.done;f=d.next())e=f.value;e&&e.index!==void 0&&(c=e.index+e[0].length);e=a.slice(b).search(Skb);b+=e;return{wordStart:c,wordEnd:b,word:a.slice(c,b)}},Ukb=function(a){a&1&&(K(0,"div",6)(1,"div",11),M(2,"mat-icon",12),Q(3," Literal Mode "),L(),K(4,"span"),Q(5,"No formatting or linkification will be performed.\u00a0"),L(),K(6,"a",13),Q(7,"Learn more"),L()())},Vkb=function(a){a&1&&(K(0,"div",7)(1,"div",14),Q(2,
" Warning: Mentions are not supported without edit access. "),L()())},Xkb=function(a){if(a&1){var b=t();K(0,"input",15,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);if(c.length>0){var e;if((e=d.hiddenInputRef)==null?0:e.nativeElement){e=c[0].result().getPrimaryTarget().getValue();c=d.autocompleteLogic;e="@"+e;c.findWordAroundCursor();if(Wkb(c,c.wordInfo.word)){var f=c.getTextarea();f.setRangeText(e,c.wordInfo.wordStart,c.wordInfo.wordEnd);f.selectionStart=c.wordInfo.wordStart+
e.length;f.selectionEnd=c.wordInfo.wordStart+e.length;f.dispatchEvent(new Event("input"))}d.autocompleteLogic.taggingInProgress.next(!1);d.focusOnComponent()}}return v()});L()}a&2&&(a=P(2),I("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0))},Ykb=function(a){a&1&&E(0,Xkb,2,3,"ng-template",9);a&2&&(a=P(),I("refreshable",a.refresh$))},Zkb=function(a){a&1&&M(0,"div",10,3)},$kb=function(a){a&1&&Wf(0)},alb=function(a){a&
1&&Wf(0)},blb=function(a){a&1&&(K(0,"p",2),Q(1," Editing comments will not permanently remove old ones from database history. "),M(2,"br"),Q(3," For deletion of PII or other sensitive content, please "),K(4,"a",10),Q(5," file a support request."),L()());a&2&&(a=P(),B(4),I("href",a.contentRemovalRequestLink,Pe))},clb=function(a){a&1&&(K(0,"p",4),Q(1),K(2,"a",11),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" Your comment contains restricted words: ",As(a.bannedWordsChecker),". Review your comment before posting. "))},
dlb=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))},elb=function(a){if(a&1){var b=t();K(0,"section")(1,"div",12)(2,"b-recaptcha",13);N("onUpdate",function(c){u(b);var d=P();return v(d.recaptchaResponse=c)});L()()()}},flb=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]}}},glb=function(a){var b=[],c=new Map;a=m(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(q(e.relations),q(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},hlb=function(a,b){a&1&&M(0,"mat-icon",5);a&2&&(I("svgIcon",b.icon)("matTooltip",b.tooltip),Kf("aria-label",b.tooltip))},ilb=function(a){a&1&&(Uf(0),Q(1,"\u2026 >"),Vf())},jlb=function(a){a&1&&(Uf(0),Q(1,"\u2026"),
Vf())},klb=function(a){if(a&1){var b=t();K(0,"a",11);N("click",function(){u(b);var c=P(4);return v(c.compactMode$.next(!1))});K(1,"span",12);F(2,ilb,2,0,"ng-container");F(3,jlb,2,0,"ng-container");L()()}a&2&&(a=P().$implicit,B(2),G(a.isSpliced?2:-1),B(),G(a.isTruncated?3:-1))},llb=function(a){a&1&&Q(0);a&2&&(a=P(5),S(" ",a.displayValueOverride," "))},mlb=function(a){a&1&&(K(0,"a",14),Q(1),L());if(a&2){a=P(2).$implicit;var b=qg(5);wg("muted",a.name==a.id);I("routerLinkObj",a.route)("onedevHovercardTrigger",
b);B();yg(a.name)}},nlb=function(a){a&1&&F(0,llb,1,1)(1,mlb,2,5,"a",13);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},olb=function(a){a&1&&Q(0);a&2&&(a=P(5),S(" ",a.displayValueOverride," "))},plb=function(a){a&1&&(K(0,"span",16),Q(1),L());a&2&&(a=P(2).$implicit,wg("muted",a.name==a.id),B(),yg(a.name))},qlb=function(a){a&1&&F(0,olb,1,1)(1,plb,2,3,"span",15);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},rlb=function(a){a&1&&Q(0," > ")},slb=function(a){a&1&&(Uf(0),M(1,"b-component-path-card",17,1),Vf());
if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},tlb=function(a,b){a&1&&(F(0,klb,4,2,"a",9),F(1,nlb,2,1)(2,qlb,2,1),F(3,rlb,1,0),K(4,"onedev-hovercard",null,0),E(6,slb,3,2,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);G(a.isSpliced||a.isTruncated?0:-1);B();G(d.linkifyComponentNames?1:2);B(2);G(c!==b-1?3:-1)}},vlb=function(a,b){a&1&&(K(0,"span",6),Of(1,tlb,7,3,null,null,ulb),L());a&2&&(B(),Pf(b))},wlb=function(a){a&
1&&(K(0,"span"),Q(1,"[Archived]"),L())},xlb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2);c.editing=!0;c.cdr.markForCheck();return v()});M(1,"mat-icon",19);L()}},ylb=function(a){a&1&&(K(0,"a",8),T(1,"async"),M(2,"mat-icon",20),L());if(a&2){var b;a=P(2);I("routerLinkObj",a.popoutLink((b=U(1,1,a.component$))==null?null:b.componentId))}},zlb=function(a){a&1&&(K(0,"b-async-data-placeholder",2),T(1,"async"),K(2,"div",4),T(3,"async"),T(4,"async"),F(5,hlb,1,3,"mat-icon",
5),T(6,"async"),F(7,vlb,3,0,"span",6),T(8,"async"),F(9,wlb,2,0,"span"),T(10,"async"),F(11,xlb,2,0,"button",7),F(12,ylb,3,3,"a",8),L()());if(a&2){var b,c;a=P();I("isReady",U(1,10,a.isReady$));B(2);wg("public",U(3,12,a.showPublicIndicator$))("partner",U(4,14,a.showPartnerIndicator$));B(3);G((b=U(6,16,a.folder$))?5:-1,b);B(2);G((c=U(8,18,a.componentPath$))?7:-1,c);B(2);G(U(10,20,a.isArchived$)?9:-1);B(2);G(a.readOnly?-1:11);B();G(a.popoutLink?12:-1)}},Blb=function(a){if(a&1){var b=t();K(0,"b-team-component-picker",
21);T(1,"async");N("selectedComponentChange",function(c){u(b);var d=P();return v(Alb(d,c))})("dropdownClosed",function(){u(b);var c=P();return v(Alb(c))});L()}a&2&&(a=P(),I("selectedComponent",U(1,5,a.component$))("isRequired",!0)("shouldFocus",!0)("showOverlayAbove",a.showPickerOverlayAbove)("issueId",a.issueId))},Elb=function(a){for(var b=m(Clb),c=b.next();!c.done;c=b.next())if(c=c.value,c.accessLevel===a)return c.title;return Dlb.title},Flb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),I("matTooltip",
a.disabledDropdownTooltip))},Glb=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return v()});K(1,"div",11);M(2,"mat-icon",12);K(3,"span",13);Q(4);L()();K(5,"div",14);Q(6);L()()}a&2&&(a=b.$implicit,b=P(),B(2),I("svgIcon",a.icon),B(2),S(" ",a.title," "),B(2),S(" ",b.implicitAccessEnabled?a.descriptionWithExpandedAccess:a.descriptionNoExpandedAccess," "))},Ilb=function(a,b){if(a&
1){var c=t();K(0,"mat-checkbox",19);N("click",function(d){u(c);return v(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(2);e=e.value.user;d=d.source.checked;var g=f.collaboratorGroupsEmailToDetailsMap.get(e.emailAddress).specifiedOnIssue;d?(g||f.addedCollaboratorGroups.add(e),f.removedCollaboratorGroups.delete(e)):(g&&f.removedCollaboratorGroups.add(e),f.addedCollaboratorGroups.delete(e));var k;Hlb(f,(k=f.updatedAccessLimitLevel$.getValue())!=null?k:f.defaultAccessLimitLevel);
return v()});Q(1);L()}a&2&&(a=b.$implicit,I("id",a.key)("name",a.key)("checked",a.value.specifiedOnIssue),B(),S(" ",a.key," "))},Jlb=function(a){a&1&&(K(0,"div")(1,"span",16),Q(2,"Add collaborator groups"),L(),M(3,"mat-icon",7),L(),K(4,"div",17),Of(5,Ilb,2,4,"mat-checkbox",18,Nf),T(7,"keyvalue"),L());a&2&&(a=P(),B(3),I("matTooltip",Dg(a.COLLABORATOR_GROUPS_TOOLTIP)),B(2),Pf(U(7,2,a.collaboratorGroupsEmailToDetailsMap)))},Llb=function(a){if(a&1){var b=t();K(0,"button",20);N("click",function(){u(b);
var c=P();return v(c.onPressCancel())});Q(1," Cancel ");L();K(2,"button",21);T(3,"async");N("click",function(){u(b);var c=P();return v(c.onPressSave())});Q(4," Save ");L()}a&2&&(a=P(),B(2),I("disabled",!Klb(a,U(3,1,a.hasAccessLimitLevelSelectionChanged$))))},Mlb=function(a){if(a&1){var b=t();K(0,"button",22);N("click",function(){u(b);var c=P();return v(c.onPressCancel())});Q(1," Close ");L()}},Nlb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",5);T(1,"async");T(2,"async");N("starClicked",function(){u(b);
var c=P(2);return v(c.starClicked.emit())});L()}a&2&&(a=P(2),I("starMessage","Star hotlist "+a.hotlist.name)("unStarMessage","Un-star hotlist "+a.hotlist.name)("acceptInput",!U(1,4,Bs(a.isSavingStar,a.hotlist.hotlistId)))("starred",U(2,6,Bs(a.starredHotlists,a.hotlist.hotlistId))))},Olb=function(a){a&1&&M(0,"div",2)},Plb=function(a){if(a&1){var b=t();K(0,"span",0);F(1,Nlb,3,8,"b-star-toggle",1)(2,Olb,1,0,"div",2);K(3,"a",3);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.enter",
function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",4);L()()}a&2&&(a=P(),B(),G(a.shouldShowStar(a.hotlist)?1:2),B(2),I("matTooltip",Eg("Open ",a.hotlist.name," in a new tab"))("routerLink",a.ROUTES.viewHotlist.makeHref(a.hotlist.hotlistId)),Kf("aria-label","Open "+a.hotlist.name+" in a new tab"))},Qlb=function(a){a&1&&Wf(0)},Rlb=function(a){a&1&&E(0,Qlb,1,0,"ng-container",7);a&2&&(P(),a=qg(10),I("ngTemplateOutlet",a))},Tlb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);
var c=P(2),d=sm(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),Qs(c)):Slb(c,d);return v()});Q(1);T(2,"async");K(3,"span",16);Q(4,"(add hotlist by ID)");L()()}a&2&&(a=P(2),B(),S(" ",U(2,1,a.query$)," "))},Ulb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);P(2).showCreateNewPane=!0;return v()});Q(1);T(2,"async");K(3,"span",16);Q(4,"(create new)");L()()}a&2&&(a=P(2),B(),S(" ",U(2,1,a.query$)," "))},Vlb=function(a){a&1&&M(0,"mat-icon",27)},Wlb=function(a){a&
1&&M(0,"mat-icon",28)},Xlb=function(a){a&1&&M(0,"mat-icon",29)},Ylb=function(a){a&1&&(K(0,"p",36),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.description," "))},Zlb=function(a){if(a&1){var b=t();K(0,"div");F(1,Vlb,1,0,"mat-icon",27)(2,Wlb,1,0,"mat-icon",28)(3,Xlb,1,0,"mat-icon",29);K(4,"mat-list-item",30);N("focus",function(){u(b);P();var e=qg(1);return v(e.show())})("blur",function(){u(b);P();var e=qg(1);return v(e.hide())});K(5,"div",31)(6,"mat-checkbox",32);T(7,"async");N("change",function(e){u(b);
var f=P().$implicit,g=P(3);return v(g.onCheckboxChange(e,f.hotlistId))});K(8,"div",33)(9,"div",34)(10,"p",35);Q(11);L()();F(12,Ylb,2,1,"p",36);L()()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);xg(Eg("flex-kids-x align-items-center left-padding ",a.type));B();G(a.type===d.HotlistType.RECOMMENDED?1:a.type===d.HotlistType.USER?2:3);B(3);vg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=U(7,13,a.permissions$))==
null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));Kf("aria-checked",d.selectedHotlistIds.has(a.hotlistId));B(5);S(" ",a.name," ");B();G(a.description?12:-1)}},$lb=function(a){a&1&&(K(0,"p",36),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.description," "))},amb=function(a){if(a&1){var b=t();K(0,"mat-list-item",30);N("focus",function(){u(b);P();var e=qg(1);return v(e.show())})("blur",function(){u(b);P();var e=qg(1);return v(e.hide())});K(1,"div",31)(2,"mat-checkbox",
37);T(3,"async");N("click",function(e){u(b);return v(e.stopPropagation())})("change",function(e){u(b);var f=P().$implicit,g=P(3);return v(g.onCheckboxChange(e,f.hotlistId))});K(4,"div",33)(5,"div",34)(6,"label",35);Q(7);L()();F(8,$lb,2,1,"p",36);L()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);vg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=U(3,9,a.permissions$))==null?null:c.appender)===!1)("indeterminate",
d.partiallySelectedHotlistIds.has(a.hotlistId));Kf("aria-checked",d.selectedHotlistIds.has(a.hotlistId));B(5);S(" ",a.name," ");B();G(a.description?8:-1)}},bmb=function(a,b){a&1&&(K(0,"div",21,4),T(2,"async"),F(3,Zlb,13,15,"div",25)(4,amb,9,11,"mat-list-item",26),L());if(a&2){var c;a=b.$implicit;b=P(3);I("matTooltip",((c=U(2,2,a.permissions$))==null?null:c.appender)===!1?b.NO_ACCESS_MESSAGE:"");B(3);G(b.isInternalSession?3:4)}},cmb=function(a,b){if(a&1){var c=t();K(0,"hotlist-matlist-option",38);
N("starClicked",function(){var d=u(c).$implicit,e=P(3);return v(e.toggleStar(d.hotlistId))});L()}a&2&&(a=b.$implicit,b=P(3),wg("has-description",a.description),I("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",b.isSavingStar))},dmb=function(a){if(a&1){var b=t();K(0,"div",24)(1,"span",16);Q(2," The number of hotlists is too large to show at once. ");L();K(3,"button",39);N("click",function(){u(b);var c=P(3);return v(c.forceShowOverflow$.next(!0))});Q(4," Show all anyway ");
L()()}},fmb=function(a,b){a&1&&(K(0,"div",18)(1,"mat-list",19)(2,"div",20),Of(3,bmb,5,4,"div",21,emb),L()(),K(5,"div",22),Of(6,cmb,1,6,"hotlist-matlist-option",23,emb),L()(),F(8,dmb,5,0,"div",24),T(9,"async"));a&2&&(a=P(2),B(3),Pf(b),B(3),Pf(b),B(2),G(U(9,1,a.isOverflowMode$)?8:-1))},gmb=function(a){if(a&1){var b=t();K(0,"header",8)(1,"h2");Q(2,"Search for Hotlists from your favorites");L();K(3,"div",9);M(4,"mat-icon",10);K(5,"input",11,2);N("input",function(){u(b);var d=qg(6);P().query$.next(d.value);
return v()});L()()();K(7,"section",12,3);F(9,Tlb,5,3,"button",13);T(10,"async");F(11,Ulb,5,3,"button",14);T(12,"async");F(13,fmb,10,3);T(14,"async");L()}if(a&2){var c;a=P();B(9);G(U(10,3,a.showLoadById$)?9:-1);B(2);G(U(12,5,a.showCreateNew$)?11:-1);B(2);G((c=U(14,7,a.visibleHotlists$))?13:-1,c)}},hmb=function(a){a&1&&Wf(0)},imb=function(a){a&1&&E(0,hmb,1,0,"ng-container",7);a&2&&(P(),a=qg(8),I("ngTemplateOutlet",a))},jmb=function(a){if(a&1){var b=t();K(0,"button",40);N("click",function(){u(b);var c=
P();return v(Qs(c))});Q(1);L()}a&2&&(a=P(),I("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),Kf("aria-label",a.saveBtnTooltip),B(),S(" ",a.saveBtnLabel," "))},mmb=function(a){if(a&1){var b=t();K(0,"button",41);N("click",function(){u(b);var c=P();return v(kmb(c))});Q(1," Create ");L()}a&2&&(a=P(),I("disabled",!(lmb(a).length>0)))},nmb=function(a){a&1&&(K(0,"header",8)(1,"h2"),Q(2,"Create new hotlist"),L()(),K(3,"section",42)(4,"div",43)(5,"form",44)(6,"label",45),Q(7,"Name"),
L(),M(8,"input",46),K(9,"label",47),Q(10,"Description"),L(),M(11,"textarea",48),K(12,"p",16),Q(13," Note: Access controls can be adjusted after the hotlist is created. "),L()()()());a&2&&(a=P(),B(5),I("formGroup",a.hotlistUnderEdit))},omb=function(a,b){return a.name.localeCompare(b.name)},pmb=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)},qmb=function(a){var b=new Set(a.selectedHotlistIds);
if(a.selectedHotlistIdsMap){a=m(a.selectedHotlistIdsMap.values());for(var c=a.next();!c.done;c=a.next()){c=m(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}}},rmb=function(a){var b=new Map;a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d=Array.from(d);b.set(c,new Set(d))}return b},smb=function(a){if(a&1){var b=t();K(0,"b-edit-field",21);T(1,"async");N("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setSeverity(g,
f!=null?f:k.IssueSeverity.S2))});L()}if(a&2){var c=P().$implicit,d=P();a=bg(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",!U(1,8,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},tmb=function(a){if(a&1){var b=t();K(0,"b-edit-field",22,0);T(2,"async");N("onHotkey",function(){u(b);var f=qg(1);return v(Yr(f,null,!0,!1))})("valueChange",
function(f){u(b);var g=P(3),k=P(2);return v(k.setPriority(g,f!=null?f:k.IssuePriority.P2))});L()}if(a&2){var c=P().$implicit,d=P();a=bg(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",!U(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},umb=function(a){if(a&1){var b=t();K(0,"triage-hotlists-editor",
23);N("hotlistIdsChange",function(c){u(b);var d=P(5);return v(d.hotlistIds=c)})("hotlistIdsMapChange",function(c){u(b);var d=P(5);return v(d.hotlistIdsMap=c)});L()}a&2&&(a=P(5),I("phase",a.phase)("subphase",a.subphase))},vmb=function(a){if(a&1){var b=t();K(0,"triage-custom-fields-editor",24);N("onCustomFieldBulkEdit",function(e){u(b);P(5).customFieldBulkEditOps=e;return v()});L()}if(a&2){P(2);a=bg(0);var c=P(),d=P(2);I("editableIssue",a)("hasMultipleIssues",c.length>1)("phase",d.phase)("subphase",
d.subphase)}},wmb=function(a,b){if(a&1){var c=t();K(0,"button",30);N("click",function(){var e=u(c),f=P(6),g=P(2);return v(g.setAssignee(f,e))})("onHotkey",function(){var e=u(c),f=P(6),g=P(2);return v(g.setAssignee(f,e))});M(1,"mat-icon",31);Q(2," Assign to default ");L()}if(a&2){P(5);a=bg(0);var d=P(3);I("disabled",a.assignee===b)("hotkey",d.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip","Set "+b+" as assignee");Kf("aria-label","Set "+b+" as assignee");B();I("svgIcon",a.assignee===b?"done":
"add")}},xmb=function(a){a&1&&(F(0,wmb,3,5,"button",29),T(1,"async"));if(a&2){var b;a=P(7);G((b=U(1,1,a.defaultAssigneeForComponent$))?0:-1,b)}},ymb=function(a){if(a&1){var b=t();K(0,"button",32);N("click",function(){u(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))})("onHotkey",function(){u(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))});M(1,"mat-icon",33);Q(2," Assign to me ");L()}a&2&&I("matTooltip","Assign to me")},zmb=function(a){a&1&&(K(0,"div",27),F(1,
xmb,2,3),F(2,ymb,3,1,"button",28),L());if(a&2){P();a=bg(0);P(2);var b=bg(0),c=P(3);B();G(c.showAssignToDefault&&!a?1:-1);B();G(c.showAssignToSelf&&b.assignee!==c.currentUserEmail||a?2:-1)}},Amb=function(a){if(a&1){var b=t();$f(0);K(1,"div",15)(2,"div",25)(3,"b-single-user-control",26,1);N("onHotkey",function(){u(b);var f=qg(4);return v(f.openEditor())})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setAssignee(g,f.newEmail))})("emailChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setAssignee(g,
f))});L();F(5,zmb,3,2,"div",27);T(6,"async");L()()}if(a&2){var c=P().$implicit,d=P();a=bg(0);var e=P(3);c=ag(d.get(c));B(3);I("name","assignee")("title","Assignee")("hotkey",e.HOTKEYS.CHANGE_ASSIGNEE)("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")("value",a.assignee);B(2);G(U(6,7,e.showAssigneeChips$)?5:-1)}},Bmb=function(a){if(a&1){var b=t();K(0,"b-edit-field",34,2);T(2,"async");N("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setType(g,f!=null?f:k.IssueType.BUG))});L()}if(a&
2){var c=P().$implicit,d=P();a=bg(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",!U(2,7,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Cmb=function(a){if(a&1){var b=t();K(0,"b-edit-field",35,3);T(2,"async");N("onHotkey",function(){u(b);var f=qg(1);return v(Yr(f,null,!0,!1))})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setStatus(g,f!=null?f:k.IssueStatus.NEW))});
L()}if(a&2){var c=P().$implicit,d=P();a=bg(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",!U(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Emb=function(a){if(a&1){var b=t();K(0,"b-list-field",37);T(1,"async");N("valuesChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCodeChanges(e,d.values))});
L()}if(a&2){P(3);a=bg(0);var c=P(3);I("readonly",!U(1,6,c.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",c.codeChangesValidator)("type",c.ListFieldType.CODE_CHANGES)("values",Dmb(a,c.sessionIsExternal))}},Fmb=function(a){a&1&&F(0,Emb,2,8,"b-list-field",36);a&2&&(a=P(3),G(a.length<2?0:-1))},Gmb=function(a){if(a&1){var b=t();K(0,"div",18)(1,"div",38)(2,"label");Q(3,"Component");L()();K(4,"b-component-breadcrumb-chip",39);N("componentChanged",function(f){u(b);var g=P(3),
k=P(2);return v(k.setComponent(g,f))});L()()}if(a&2){var c=P().$implicit,d=P();a=bg(0);var e=P(3);c=d.get(c);B(4);I("issueId",a.issueId)("componentId",c?"":e.componentId)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!0)("displayValueOverride",c?e.MULTIPLE_COMPONENT_SELECTED_LABEL:"")}},Jmb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"div")(2,"b-post-comment",40,4);N("commentSubmitted",function(){u(b);var d=P(5);return v(Hmb(d))});L();K(4,"button",10);N("click",function(){u(b);var d=
qg(7),e=P(5);return v(Hmb(e,d))});Q(5,"Remove comment");L()();K(6,"button",10,5);N("click",function(){u(b);var d=qg(3);P(5).showCommentInput=!0;return v(d.commentBox==null?null:Imb(d.commentBox))});Q(8,"Add comment");L()()}if(a&2){P(2);a=bg(0);var c=P(3);B();wg("hidden",!c.showCommentInput);B();I("issueId",a.issueId)("showActionsAfterPreview",!1)("showCommentButton",!1);B(4);wg("hidden",c.showCommentInput)}},Mmb=function(a){if(a&1){var b=t();K(0,"triage-edit-user-buttons",43);T(1,"async");N("addCurrentUser",
function(){u(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=m(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.collaborators;k.includes(e)||k.push(e);g.setCollaborators(k)}Rs(d,c[0]);Ss(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return v(Kmb(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=m(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=vq([].concat(q(g.collaborators),q(c)));g.setCollaborators(k)}Rs(e,d[0]);Ss(e,d);return v()})("onRemoveUsers",
function(c){u(b);var d=P(4),e=P(2);return v(Lmb(e,d,c))});L()}a&2&&(a=P(6),I("title","Collaborators")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("inputValidator",a.collaboratorUserPrincipalValidator)("isAllowedToEditCollection",U(1,4,a.hasAclToEdit$)))},Nmb=function(a){if(a&1){var b=t();K(0,"b-multi-user-control",44);T(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return v(e.toggleCollaborators(d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCollaborators(e,
d))})("toggleAccessLimits",function(){u(b);P(3);var d=bg(0),e=P(3);return v(e.toggleAccessLimits(d.issueId))});L()}if(a&2){P(3);a=bg(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",U(1,14,c.hasAclToEdit$))("iconName","groups_24px")("inputValidator",c.collaboratorUserPrincipalValidator)("checkAccessLimits",!0)}},Omb=function(a){a&1&&F(0,Mmb,2,6,"triage-edit-user-buttons",41)(1,Nmb,2,16,"b-multi-user-control",42);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},Rmb=function(a){if(a&1){var b=t();K(0,"triage-edit-user-buttons",47);T(1,"async");
N("addCurrentUser",function(){u(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=m(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.cc;k.includes(e)||k.push(e);g.cc=k}Ts(d,c[0]);Ss(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return v(Pmb(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=m(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=vq([].concat(q(g.cc),q(c)));g.cc=k}Ts(e,d[0]);Ss(e,d);return v()})("onRemoveUsers",function(c){u(b);var d=P(4),
e=P(2);return v(Qmb(e,d,c))});L()}a&2&&(a=P(6),I("title","CC")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("isAllowedToEditCollection",U(1,3,a.hasAclToEdit$)))},Tmb=function(a){if(a&1){var b=t();K(0,"b-multi-user-control",48);T(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return v(Smb(e,d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCcs(e,d))});L()}if(a&2){P(3);a=bg(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",U(1,12,c.hasAclToEdit$))("iconName","add_alert_24px")}},Umb=function(a){a&1&&F(0,Rmb,2,5,"triage-edit-user-buttons",45)(1,Tmb,2,14,"b-multi-user-control",
46);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},Vmb=function(a,b){a&1&&M(0,"automatic-change-chip",20);a&2&&(P(2),a=bg(0),I("issueId",a.issueId)("automaticChange",b))},Xmb=function(a,b){a&1&&(K(0,"div",7),F(1,smb,2,10,"b-edit-field",11)(2,tmb,3,11,"b-edit-field",12)(3,umb,1,2,"triage-hotlists-editor",13)(4,vmb,1,4,"triage-custom-fields-editor",14)(5,Amb,7,9,"div",15)(6,Bmb,3,9,"b-edit-field",16)(7,Cmb,3,11,"b-edit-field",17)(8,Fmb,1,1)(9,Gmb,5,6,"div",18)(10,Jmb,9,7,"div",19)(11,Omb,2,1)(12,Umb,
2,1),F(13,Vmb,1,2,"automatic-change-chip",20),L());if(a&2){var c;a=b.$implicit;b=P(4);B();G(a===b.IssueFieldKey.SEVERITY?1:a===b.IssueFieldKey.PRIORITY?2:a===b.IssueFieldKey.HOTLISTS?3:a===b.IssueFieldKey.CUSTOM_FIELDS?4:a===b.IssueFieldKey.ASSIGNEE?5:a===b.IssueFieldKey.TYPE?6:a===b.IssueFieldKey.STATUS?7:a===b.IssueFieldKey.CODE_CHANGES?8:a===b.IssueFieldKey.COMPONENT?9:a===b.IssueFieldKey.COMMENT?10:a===b.IssueFieldKey.COLLABORATORS?11:a===b.IssueFieldKey.CC_LIST?12:-1);B(12);G((c=Wmb(b,a))?13:
-1,c)}},Ymb=function(a){if(a&1){var b=t();$f(0);K(1,"div",6);Of(2,Xmb,14,2,"div",7,Nf);L();K(4,"div",8)(5,"button",9);T(6,"async");N("click",function(){u(b);var d=P(),e=P(2);return v(e.save(d))});Q(7);T(8,"async");L();K(9,"button",10);N("click",function(){u(b);var d=P(3);return v(d.cancelAction.emit())});Q(10,"Cancel");L()()}if(a&2){a=P();var c=P(2);ag(a[0]);B(2);Pf(c.fields);B(3);I("disabled",U(6,3,c.isSaving$));B(2);yg(U(8,5,c.isSaving$)?"Saving":"Save changes")}},Zmb=function(a){a&1&&(F(0,Ymb,
11,7),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.fieldMultipleValueMap$))?0:-1,b)}},$mb=function(a){a&1&&(F(0,Zmb,2,3),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.editableIssues$))?0:-1,b)}},anb=function(a){a&1&&Wf(0)},bnb=function(a){a&1&&E(0,anb,1,0,"ng-container",11);a&2&&(P(),a=qg(12),I("ngTemplateOutlet",a))},cnb=function(a){a&1&&Wf(0)},dnb=function(a){a&1&&E(0,cnb,1,0,"ng-container",11);a&2&&(P(),a=qg(14),I("ngTemplateOutlet",a))},enb=function(a){a&1&&Wf(0)},fnb=function(a){a&1&&E(0,
enb,1,0,"ng-container",11);a&2&&(P(),a=qg(16),I("ngTemplateOutlet",a))},gnb=function(a){a&1&&Wf(0)},hnb=function(a){a&1&&E(0,gnb,1,0,"ng-container",11);a&2&&(P(),a=qg(32),I("ngTemplateOutlet",a))},inb=function(a){a&1&&Wf(0)},jnb=function(a){a&1&&E(0,inb,1,0,"ng-container",11);a&2&&(P(),a=qg(20),I("ngTemplateOutlet",a))},knb=function(a){a&1&&Wf(0)},lnb=function(a){a&1&&E(0,knb,1,0,"ng-container",11);a&2&&(P(),a=qg(22),I("ngTemplateOutlet",a))},mnb=function(a){a&1&&Wf(0)},nnb=function(a){a&1&&E(0,mnb,
1,0,"ng-container",11);a&2&&(P(),a=qg(24),I("ngTemplateOutlet",a))},onb=function(a){a&1&&Wf(0)},pnb=function(a){a&1&&E(0,onb,1,0,"ng-container",11);a&2&&(P(),a=qg(26),I("ngTemplateOutlet",a))},qnb=function(a){a&1&&Wf(0)},rnb=function(a){a&1&&E(0,qnb,1,0,"ng-container",11);a&2&&(P(),a=qg(28),I("ngTemplateOutlet",a))},snb=function(a){a&1&&Wf(0)},tnb=function(a){a&1&&E(0,snb,1,0,"ng-container",11);a&2&&(P(),a=qg(18),I("ngTemplateOutlet",a))},unb=function(a){a&1&&Wf(0)},vnb=function(a){a&1&&E(0,unb,1,
0,"ng-container",11);a&2&&(P(),a=qg(30),I("ngTemplateOutlet",a))},wnb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Needs more info");L();K(3,"verify-fields",14);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.NEEDS_MORE_INFO.fieldsToShow)("phase",a.TriagePhase.NEW)("subphase",a.TriageSubphase.NEEDS_INFO)("automaticChanges",a.needsInfoAutomaticChanges)("expandCommentBox",
!0)("showAssignToDefault",!1)("showAssignToSelf",!1))},xnb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Confirmed");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.CONFIRM_ACTION.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},ynb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Pending owner");
L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_PENDING_OWNER.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},znb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Route");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);
var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.CHANGE_COMPONENT.fieldsToShow)("phase",a.TriagePhase.NEW))},Anb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to In progress");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_IN_PROGRESS.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",
a.SET_IN_PROGRESS.showAssignToSelf))},Bnb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Expected");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_EXPECTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_EXPECTED.showAssignToSelf))},Cnb=function(a){if(a&1){var b=t();K(0,"div",
12)(1,"div",13);Q(2,"Move to Planned");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_PLANNED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_PLANNED.showAssignToSelf))},Dnb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Committed");L();K(3,"verify-fields",16);N("cancelAction",
function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_COMMITTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_COMMITTED.showAssignToSelf))},Enb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Fixed");L();K(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);
var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_FIXED.fieldsToShow)("phase",a.TriagePhase.FIXED)("automaticChanges",a.SET_FIXED.automaticChanges))},Fnb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to New");L();K(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_NEW.fieldsToShow)("phase",
a.TriagePhase.NEW)("automaticChanges",a.SET_NEW.automaticChanges))},Gnb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);Q(2,"Move to Won't fix");L();K(3,"verify-fields",18);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_WONT_FIX.fieldsToShow)("automaticChanges",a.SET_WONT_FIX.automaticChanges))},Knb=function(a){var b,c,d,e;a=Hnb(a,Inb,1,jb);
return{output:(e=(b=Ci(a,Jnb,1,Di())[0])==null?void 0:(c=b.getContent())==null?void 0:(d=c.getPartsList()[0])==null?void 0:d.getText())!=null?e:""}},Lnb=function(a,b){if(a&1){var c=t();K(0,"iframe",6);N("load",function(){u(c);var d=P();return v(d.contentLoaded=!0)});L()}a&2&&(a=P(),wg("loading",!a.contentLoaded),I("src",b,wja))},Mnb=function(a){a&1&&M(0,"mat-spinner",2)},Onb=function(a){return Nnb.some(function(b){return b.test(a)})},Snb=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&&Pnb.includes(d)?d:c&&Pnb.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))?Fh(Qnb,a):Fh(Rnb,a,d)},Vnb=function(a,b,c,d){if(Tnb&&Unb===b)return Tnb;Unb=b;var e=Snb(a,d);return Tnb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var k=Ws(document,
"SCRIPT");pi(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("pf"))};k.onerror=function(){g(Error("qf`"+e.toString()))};c.body.appendChild(k)})},Ynb=function(a,b,c,d){if(Wnb&&Xnb===b)return Wnb;Xnb=b;var e=Snb(a,d);return Wnb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var k=Ws(document,"SCRIPT");pi(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("pf"))};k.onerror=function(){g(Error("qf`"+
e.toString()))};c.body.appendChild(k)})},Znb=function(a,b,c,d,e){e=e===void 0?!0:e;var f,g,k,l,r;return y(function(w){switch(w.nextAddress){case 1:return f=Date.now(),z(w,Vnb(a,c,d,b),2);case 2:g=w.yieldResult;if(!(e||((l=a.initializationData)==null?0:l.useNightlyRelease)||((r=a.initializationData)==null?0:r.isLocalServer))){k=g.initializeFeedbackClient(a,f,b);w.jumpTo(3);break}return z(w,g.initializeFeedbackClientAsync(a,f,b),4);case 4:k=w.yieldResult;case 3:return k.initiateAloha(),w.return(k)}})},
$nb=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e=Date.now(),z(k,Ynb(a,c,d.document,b),2);if(k.nextAddress!=3)return f=k.yieldResult,z(k,f.initializeFeedbackClientAsync(a,e,b,d),3);g=k.yieldResult;g.initiateAloha();return k.return(g)})},aob=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,f,g,k,l,r,w,x;return y(function(C){e=c||ra;if((f=b)==null?0:(k=(g=f).getEnableAlohaBinarySplit)==null?0:k.call(g)){l=e;if(l.isFormOpened)throw new Xs;l.isFormOpened=!0;a.callbacks=
a.callbacks||{};r=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){l.isFormOpened=!1;r(H)};try{return C.return($nb(a,b,l,e))}catch(H){throw l.isFormOpened=!1,H;}}else{w=e;if(w.isFormOpened)throw new Xs;w.isFormOpened=!0;a.callbacks=a.callbacks||{};x=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){w.isFormOpened=!1;x(H)};try{return C.return(Znb(a,b,w,e.document,d))}catch(H){throw w.isFormOpened=!1,H;}}ce(C)})},fob=function(a,b){return y(function(c){return c.return(new Promise(function(d,
e){Number.isInteger(Number(a))&&Number(a)>0?(e=bob(b!=null?b:"")+"/aloha_form_properties?productId="+a,cob(e,function(f){f=f.target;var g=null;try{g=dta(dob,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new dob,g=eob(),g=$o(g,13,!1),g=$o(g,14,!0),g=$o(g,15,!0),g=$o(g,20,!1),g=Ni(f,Ys,1,g)}d(g)},"GET","",{},2E3,!0)):e(Error("rf`"+a))}))})},bob=function(a){return Onb(a)?a:"https://www.google.com/tools/feedback"},gob=function(a){return a.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})+
" (US Pacific time)"},hob=function(a){a&1&&(K(0,"button",6,1),M(2,"mat-icon",7),L());if(a&2){a=P();var b=qg(2);xg(a.buttonSize);I("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);Kf("aria-label",a.buttonLabel);B(2);I("svgIcon",a.buttonIcon)}},iob=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),yg(a.header))},job=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},kob=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a.hintText))},lob=function(a){a&
1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},mob=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a.hintText))},nob=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))});F(1,lob,1,1,"mat-icon",7);Q(2);F(3,mob,2,1,"span",9);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;xg(c.className);I("disabled",
a.disabled);Kf("title",a.title);B();G(a.icon?1:-1);B();S(" ",a.label," ");B();G(a.hintText?3:-1)}},oob=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))});K(1,"span",14);M(2,"mat-icon",15);L();Q(3);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;xg(c.className);wg("b-menu-item-checked",a.selected);I("disabled",a.disabled);Kf("title",a.title);
B(3);S(" ",a.label," ")}},pob=function(a,b){a&1&&(F(0,nob,4,7,"button",10),F(1,oob,4,7,"button",11));a&2&&(a=b.$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},qob=function(a){a&1&&(K(0,"button",8),F(1,job,1,1,"mat-icon",7),Q(2),F(3,kob,2,1,"span",9),L(),K(4,"mat-menu",null,2),Of(6,pob,2,2,null,null,Mf),L());if(a&2){a=qg(5);var b=P().$implicit;I("matMenuTriggerFor",a);B();G(b.icon?1:-1);B();S(" ",b.label," ");B();G(b.hintText?3:-1);B(3);Pf(b.items)}},rob=function(a){a&1&&M(0,"mat-icon",
7);a&2&&(a=P(3).$implicit,I("svgIcon",a.icon))},sob=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(3).$implicit,B(),yg(a.hintText))},tob=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});F(1,rob,1,1,"mat-icon",7);Q(2);F(3,sob,2,1,"span",9);L()}a&2&&(a=P(2).$implicit,xg(a.className),I("disabled",a.disabled),Kf("title",a.title),B(),G(a.icon?
1:-1),B(),S(" ",a.label," "),B(),G(a.hintText?3:-1))},uob=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});K(1,"span",14);M(2,"mat-icon",15);L();Q(3);L()}a&2&&(a=P(2).$implicit,xg(a.className),wg("b-menu-item-checked",a.selected),I("disabled",a.disabled),Kf("title",a.title)("aria-label",a.label+" results per page"),B(3),S(" ",a.label," "))},
vob=function(a){a&1&&(F(0,tob,4,7,"button",10),F(1,uob,4,8,"button",11));a&2&&(a=P().$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},wob=function(a,b){a&1&&(F(0,qob,8,4),F(1,vob,2,2));a&2&&(a=b.$implicit,G(a.type==="submenu"?0:-1),B(),G(a.type!=="submenu"?1:-1))},xob=function(a){var b=a.userIsExternal;a=a.issueIsExternal;return b&&a},yob=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},zob=function(a,b){a&1&&(K(0,"div",17)(1,"h4",34),Q(2,"Summary"),L(),K(3,"p",35),Q(4),L()());a&2&&(B(4),yg(b))},Aob=function(a){if(a&1){var b=t();K(0,"th",36)(1,"mat-checkbox",37);T(2,"async");T(3,"async");N("change",function(c){u(b);var d=P();return v(d.toggleAll(c))});L()()}a&2&&(a=P(),B(),I("checked",U(2,2,a.areAllChecked$))("indeterminate",!U(3,4,a.areAllChecked$)&&a.checkedIssueIds.size>0))},
Bob=function(a,b){if(a&1){var c=t();K(0,"td",38)(1,"mat-checkbox",39);T(2,"async");N("change",function(d){var e=u(c).$implicit,f=P(),g;((g=d==null?void 0:d.checked)!=null?g:!f.checkedIssueIds.has(e.id))?f.checkedIssueIds.add(e.id):f.checkedIssueIds.delete(e.id);return v()});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",U(2,1,Bs(b.checkedIssueIds,a.id))))},Cob=function(a){a&1&&(K(0,"th",36),Q(1," Title "),L())},Dob=function(a,b){a&1&&(K(0,"td",38),M(1,"b-issue-title-cell",40),T(2,"async"),L());a&
2&&(a=b.$implicit,B(),I("issue",U(2,2,a.issue$))("enableHovercard",!0))},Eob=function(a){a&1&&(K(0,"th",36),Q(1," Phase "),L())},Fob=function(a){a&1&&(K(0,"span",41),Q(1),L());if(a&2){a=P();P(2);B();var b;b=((b=a.snapshot[0])==null?void 0:b.status)==="DUPLICATE"?"Duplicate":(b=Er(a))?Zs.get(b):"";yg(b)}},Gob=function(a){a&1&&F(0,Fob,2,1,"span",41);a&2&&(P(2),G(0))},Hob=function(a,b){a&1&&(K(0,"td",38),F(1,Gob,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Iob=
function(a){a&1&&(K(0,"th",42),Q(1," Modified "),L())},Job=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)}},Kob=function(a){a&1&&F(0,Job,1,3,"b-formatted-date-time",44);a&2&&(P(2),G(0))},Lob=function(a,b){a&1&&(K(0,"td",43),F(1,Kob,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Mob=function(a){a&
1&&M(0,"th",36)},Nob=function(a,b){if(a&1){var c=t();K(0,"td",38)(1,"b-actions-menu",45);N("click",function(d){u(c);return v(d.stopPropagation())});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("menuItems",b.getMenuItems(a)))},Oob=function(a){a&1&&M(0,"tr",46)},Pob=function(a,b){a&1&&(M(0,"tr",47),T(1,"async"));a&2&&(a=b.$implicit,b=P(),wg("closed",b.isClosed(U(1,2,a.issue$))))},Qob=function(a,b){a&1&&(K(0,"a",32),Q(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},Rob=
function(a){if(a&1){var b=t();K(0,"secondary-footer",49);N("cancelAction",function(){u(b);var c=P(2);return v(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(2);return v(d.finalizeSecondaryAction(c))});L()}a&2&&(a=P(2),I("selectedTriageAction",a.selectedTriageAction))},Sob=function(a){if(a&1){var b=t();K(0,"triage-action-selector",50);N("onSelect",function(d){u(b);var e=P(2);return v(e.openSecondaryActionFooter(d.key))});L();K(1,"button",51);T(2,"async");T(3,"async");N("click",function(){u(b);
var d=P(2);return v(d.openDupeDialog())});$f(4);T(5,"async");Q(6);L()}if(a&2){a=P();var c=P();I("phase",a);B();I("disabled",!U(2,3,c.hasAclToEdit$)||!U(3,5,c.checkedIssueIds.size$));a=U(5,7,c.checkedIssueIds.size$)||0;B(5);S(" Mark ",a===1?"1 issue":a>1?a+" issues":""," as duplicate ")}},Tob=function(a){a&1&&F(0,Rob,1,1,"secondary-footer",48)(1,Sob,7,9);a&2&&(a=P(),G(a.displaySecondaryFooter?0:1))},Uob=function(a){a&1&&(K(0,"div",5),M(1,"b-spinner"),L())},Vob=function(a){a&1&&M(0,"code",16);a&2&&
(a=P(2).$implicit,I("innerHtml",a.formattingModeDiff,Oe))},Wob=function(a){a&1&&(K(0,"code",17),Q(1),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.formattingMode," "))},Xob=function(a){a&1&&(K(0,"p",15),Q(1," Formatting: "),F(2,Vob,1,1,"code",16)(3,Wob,2,1,"code",17),L());a&2&&(a=P(3),B(2),G(a.diffView?2:3))},Yob=function(a){if(a&1){var b=t();K(0,"div")(1,"span",18)(2,"b-person-hovercard",19);T(3,"omitObfuscatedEmail");Q(4);T(5,"appendDomain");L()();K(6,"a",20);N("click",function(c){u(b);var d=P().$implicit,
e=P(2);return v(e.updateUrl(c,d.version))});Q(7);L()()}a&2&&(a=P().$implicit,P(2),B(2),I("email",U(3,7,xm(a.lastEditorUser))),B(2),S(" <",U(5,9,xm(a.lastEditorUser)),"> "),B(2),Kf("aria-label",Eg("Comment version ",a.version)),I("id",Eg("bv2-edit-issue-comment-",a.version)),B(),S(" #",a.version))},Zob=function(a){a&1&&(K(0,"div",21),Q(1),L());a&2&&(a=P(2).$implicit,B(),yg(a.preview))},$ob=function(a){a&1&&(K(0,"div",22),Q(1,"Comment deleted."),L())},apb=function(a){a&1&&(K(0,"div",23),Q(1,"Comment history restricted."),
L())},bpb=function(a){a&1&&(F(0,Zob,2,1,"div",21),F(1,$ob,2,0,"div",22),F(2,apb,2,0,"div",23));a&2&&(a=P().$implicit,G(a.restricted||a.deleted?-1:0),B(),G(!a.restricted&&a.deleted?1:-1),B(),G(a.restricted?2:-1))},cpb=function(a){a&1&&(K(0,"div",24),Q(1,"Comment deleted."),L())},dpb=function(a){a&1&&(M(0,"div",26),T(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);wg("codefont",U(1,3,b.codefont.codefont$));I("innerHtml",a.unlinkifiedComment,Oe)}},epb=function(a){a&1&&(M(0,"div",26),T(1,"async"));if(a&
2){a=P(2).$implicit;var b=P(2);wg("codefont",U(1,3,b.codefont.codefont$));I("innerHtml",a.diff,Oe)}},fpb=function(a){a&1&&(K(0,"div",23),Q(1," This comment is not available due to present or past restrictions on the comment. "),L())},gpb=function(a){a&1&&(F(0,cpb,2,0,"div",24),F(1,dpb,2,5,"div",25),F(2,epb,2,5,"div",25),F(3,fpb,2,0,"div",23));if(a&2){a=P().$implicit;var b=P(2);G(!a.restricted&&a.deleted?0:-1);B();G(b.diffView||a.restricted||a.deleted?-1:1);B();G(!b.diffView||a.restricted||a.deleted?
-1:2);B();G(a.restricted?3:-1)}},hpb=function(a,b){if(a&1){var c=t();K(0,"li",9)(1,"div",10);M(2,"b-user-image",11);L();K(3,"div",12);N("click",function(){var d=u(c).$implicit;return v(d.open=!d.open)});M(4,"b-user-display",13)(5,"b-formatted-date-time",14);F(6,Xob,4,1,"p",15);F(7,Yob,8,11,"div")(8,bpb,3,3);L();F(9,gpb,4,4);L()}a&2&&(a=b.$implicit,P(2),wg("comment-version-open",a.open),B(2),I("email",xm(a.lastEditorUser)),B(2),I("model",a.lastEditorUser),B(),I("timestamp",a.lastModified),B(),G(a.deleted?
-1:6),B(),G(a.open?7:8),B(2),G(a.open?9:-1))},ipb=function(a){a&1&&(K(0,"ul",6),Of(1,hpb,10,8,"li",8,Mf),L());a&2&&(a=P(),B(),Pf(a.history))},lpb=function(a,b){var c=new jpb;a=$s(c,a,b);kpb(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Eh("span",{"class":"diff-removed"},d);case 1:return Eh("span",{"class":"diff-added"},d);case 0:return Eh("span",{"class":void 0},d);default:throw Error("tf`"+e);}});return Ch(c)},mpb=function(a){var b;return((b=a.entityStatus)==null?void 0:b.status)===
"DELETED"},npb=function(a){a&1&&(K(0,"div",2),Q(1," You are about to access a file marked as restricted. Access will be logged and audited. You must delete any downloaded files from local storage when finished. "),K(2,"a",12),Q(3," Learn more "),L()());a&2&&(a=P(2),B(2),I("href",a.getRestrictedAccessHelpLink(),Pe))},ppb=function(a){a&1&&(Uf(0),F(1,npb,4,1,"div",2),Vf());a&2&&(a=P(),B(),G(opb(a)?1:-1))},qpb=function(a){a&1&&(K(0,"div",2)(1,"span",13),Q(2," You do not have access to view this attachment. "),
L()())},rpb=function(a){a&1&&M(0,"mat-spinner",8)},upb=function(a,b,c,d){if(at.REPORTING_ENABLED&&spb(a)){if(b==="heartbeat"){var e=at.HEARTBEAT_SAMPLE_RATE;var f="HEARTBEAT"}else if(b==="network_error")e=at.CRASH_SAMPLE_RATE,f="CRASHED";else throw Error("yf`"+b);if(!(Math.random()>e)){var g=at.SCF_REPORTING_PRODUCTION_ID;at.TEST_PRODUCT_IDS.includes(a)&&(g=at.SCF_REPORTING_TEST_ID);var k=void 0,l=void 0;if(at.ENABLE_COLLECTING_NETWORK_INFO){var r;l=(r=navigator)==null?void 0:r.connection;var w,x;
k=(x=(w=l==null?void 0:l.type)!=null?w:l==null?void 0:l.effectiveType)!=null?x:"unknown";var C;l=(C=l==null?void 0:l.effectiveType)!=null?C:"unknown"}a={type:f,host:window.location.hostname,additionalData:JSON.stringify({productID:a,samplingRate:e,shimOrigin:c,connectionType:k,effectiveConnectionType:l,reportType:b,message:d})};g=at.REPORTING_URL_PREFIX+g;a=JSON.stringify(a);if(tpb.sendReport)tpb.sendReport(g,a);else try{var H,J;(J=(H=navigator).sendBeacon)==null||J.call(H,g,a)}catch(O){}}}},spb=
function(a){return at.PRODUCT_IDS_ALLOWLIST.includes(a)||at.TEST_PRODUCT_IDS.includes(a)},vpb=function(a,b,c,d){var e,f,g,k,l,r,w,x,C,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:if(!(a instanceof Error&&a.message===Error("zf").message)){V.jumpTo(0);break}e=[c,"https://test-h827969114.scf.usercontent.goog/test-product/shim.html","https://0test-h827969114.scf.usercontent.goog/test-product/shim.html","https://safecontentframe.static.usercontent.goog","https://translate.goog/"];f={fetch:{}};
g=[];f.additionalMessage=d;Yd(V,3);k=m(e);l=k.next();for(r={};!l.done;r={url$jscomp$298:void 0},l=k.next())r.url$jscomp$298=l.value,g.push(fetch(r.url$jscomp$298,{credentials:"omit",mode:"no-cors",signal:AbortSignal.timeout(1E4)}).then(function(ca){return function(){return{url:ca.url$jscomp$298,result:"success"}}}(r)).catch(function(ca){return function(oa){return{url:ca.url$jscomp$298,result:oa instanceof Error?oa.message:"unknown error"}}}(r)));return z(V,Promise.all(g),5);case 5:w=V.yieldResult;
x=m(w);for(C=x.next();!C.done;C=x.next())J=H=C.value,O=J.url,R=J.result,f.fetch[O]=R;bt(V,4);break;case 3:be(V);case 4:upb(b,"network_error",c,JSON.stringify(f)),ce(V)}})},wpb=function(){this.blockSize=-1},ct=function(a,b){this.blockSize=-1;this.blockSize=64;this.chunk_=ra.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.total_=this.inChunk_=0;this.hash_=[];this.numHashBlocks_=a;this.initHashBlocks_=b;this.w_=ra.Int32Array?new Int32Array(64):Array(64);xpb===void 0&&(ra.Int32Array?
xpb=new Int32Array(ypb):xpb=ypb);this.reset()},Apb=function(){ct.call(this,8,zpb)},Bpb=function(a,b){b=b===void 0?!0:b;var c;return y(function(d){if(d.nextAddress==1)if(b&&((c=window.crypto)==null?0:c.subtle))d=z(d,crypto.subtle.digest("SHA-256",a),3);else{var e=d.return;var f=new Apb;f.update(new Uint8Array(a));f=(new Uint8Array(f.digest())).buffer;d=e.call(d,f)}else d=d.return(d.yieldResult);return d})},Fpb=function(a){var b=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var c=a.parts;var d,e,
f,g;return y(function(k){if(k.nextAddress==1){if(c.length===0)throw Error("Cf");d=[];for(e=0;e<c.length;e++)f=c[e],typeof f==="string"?d.push(Cpb.encode(f).buffer):d.push(f),e<c.length-1&&d.push(Dpb);g=Epb.apply(null,q(d));return z(k,Bpb(g,b),2)}return k.return(k.yieldResult)})},Gpb=function(){var a=new Uint8Array(10);crypto.getRandomValues(a);return a},Hpb=function(a){return a.reduce(function(b,c){return BigInt(256)*b+BigInt(c)},BigInt(0)).toString(36)},Epb=function(){for(var a=bd.apply(0,arguments),
b=0,c=m(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=m(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},Ipb=function(a){var b=a.product;var c=a.trustedOrigin;var d=a.salt;var e=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var f,g,k;return y(function(l){if(l.nextAddress==1)return f=d?d:new ArrayBuffer(0),z(l,Fpb({useSubtleCrypto:e,parts:[b,f,c]}),2);g=l.yieldResult;k=new Uint8Array(g);return l.return(Hpb(k).padStart(50,
"0").slice(0,50))})},Jpb=function(a){for(var b=a.trustedOrigin,c=a.product,d=a.fileHash+"-h"+a.version+".scf.usercontent.goog",e=m(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},Kpb=function(){var a=window.origin;return typeof a==="string"&&(a.startsWith("https://")||a.startsWith("http://")||a.startsWith("chrome-extension://"))},Lpb=function(a,b){return function(c){var d=new Promise(function(e,f){setTimeout(function(){var g;
return y(function(k){if(k.nextAddress==1){if(!b())return k.jumpTo(2);g=e;return z(k,a,3)}if(k.nextAddress!=2)return g(k.yieldResult),k.return();f(Error("Df"));ce(k)})},c)});return Promise.race([a,d])}},Mpb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),wg("muted",a.isGreyedOut),B(),S(" ",a.displayName))},Npb=function(a){if(a&1){var b=t();K(0,"a",2);N("click",function(c){u(b);var d=P();return v(d.handleClick(c))});Q(1);L()}a&2&&(a=P(),I("href",a.linkUrl,Pe)("rel",a.EXTERNAL_LINK_REL),B(),S(" ",
a.displayName))},Opb=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),Kf("aria-label",a.expandableTabsTitle),B(),yg(a.expandableTabsTitle))},Ppb=function(a){a&1&&M(0,"mat-icon",9)},Rpb=function(a){a&1&&Wf(0,10);if(a&2){a=P().$implicit;P();var b=qg(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Qpb,a))}},Spb=function(){},Tpb=function(a){a&1&&E(0,Spb,0,0,"ng-template")},Upb=function(a){a&1&&E(0,Tpb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},Vpb=function(a){a&
1&&(F(0,Upb,1,1),Wf(1,10));if(a&2){a=P().$implicit;var b=P(),c=qg(14);G(b.showIcons&&a.tabIconTemplate?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(3,Qpb,a))}},Xpb=function(a,b){if(a&1){var c=t();K(0,"button",8);T(1,"async");T(2,"async");T(3,"async");N("click",function(){var d=u(c).$implicit,e=P();return v(Wpb(e,d.key))});F(4,Ppb,1,0,"mat-icon",9);T(5,"async");F(6,Rpb,1,4,"ng-container",10);T(7,"async");Lf(8,Vpb,2,5);L()}a&2&&(a=b.$implicit,b=P(),wg("has-icon",!(!b.showIcons||!a.tabIconTemplate))("expanded",
!!U(1,11,Bs(b.internalExpandedTabs,a.key))),Kf("aria-controls",Eg("expandable-tabs-",a.key,"-content"))("aria-label",a.ariaLabel)("aria-expanded",!!U(2,13,Bs(b.internalExpandedTabs,a.key)))("aria-selected",!!U(3,15,Bs(b.internalExpandedTabs,a.key))),B(4),G(b.showIcons&&U(5,17,Bs(b.internalExpandedTabs,a.key))?4:-1),B(2),G(U(7,19,Bs(b.internalExpandedTabs,a.key))?6:8))},Ypb=function(a,b){if(a&1){var c=t();K(0,"button",13);N("click",function(){u(c);var d=P(2);return v(d.toggleAll())});Q(1);L()}a&2&&
(a=P(2),wg("expandable-tabs-hide-all",b.allTabsExpanded)("expandable-tabs-show-all",!b.allTabsExpanded),Kf("aria-label",(b.allTabsExpanded?"Hide all":"Show all")+" "+a.ariaLabel),B(),S(" ",b.allTabsExpanded?"Hide all":"Show all"," "))},$pb=function(a){a&1&&(F(0,Ypb,2,6,"button",12),T(1,"async"));if(a&2){var b;a=P();G((b=Ig(3,Zpb,U(1,1,a.allTabsExpanded$)))?0:-1,b)}},aqb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2);return v(c.hideAll())});Q(1," Hide ");L()}a&
2&&(a=P(2),Kf("aria-label","Hide "+a.ariaLabel))},bqb=function(a){if(a&1){var b=t();F(0,aqb,2,1,"button",14);T(1,"async");K(2,"button",15);N("click",function(){u(b);P().showAllClicked.emit(void 0);return v()});Q(3," Show all ");M(4,"mat-icon",16);L()}if(a&2){a=P();var c;G(((c=U(1,2,a.internalExpandedTabs.size$))!=null?c:0)>0?0:-1);B(2);Kf("aria-label","Show all "+a.ariaLabel)}},cqb=function(){},dqb=function(a){a&1&&E(0,cqb,0,0,"ng-template")},eqb=function(a){a&1&&E(0,dqb,1,0,null,11);a&2&&(a=P(3).$implicit,
I("ngTemplateOutlet",a.tabIconTemplate))},fqb=function(a){a&1&&(K(0,"h4"),F(1,eqb,1,1),Wf(2,10),L());if(a&2){a=P(2).$implicit;var b=P(),c=qg(14);B();G(b.showIcons&&a.tabIconTemplate?1:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(3,Qpb,a))}},gqb=function(a){a&1&&M(0,"span",20)},hqb=function(a){a&1&&M(0,"span",20)},iqb=function(){},jqb=function(a){a&1&&E(0,iqb,0,0,"ng-template")},kqb=function(a){a&1&&E(0,jqb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabContentTemplate))},
mqb=function(a){a&1&&(K(0,"div",19),F(1,fqb,3,5,"h4"),T(2,"async"),Lf(3,gqb,1,0,"span",20),E(4,hqb,1,0,"ng-template",null,1,Mg),F(6,kqb,1,1),L());if(a&2){a=P().$implicit;var b=P();xg(Eg("expandable-tab-content ",a.key));I("id",Eg("expandable-tabs-",a.key,"-content"));B();var c;G(((c=U(2,7,b.visibleExpandedTabs$))!=null?c:Hg(9,lqb)).length>1?1:3);B(5);G(a.tabContentTemplate?6:-1)}},nqb=function(a,b){a&1&&(F(0,mqb,7,10,"div",18),T(1,"async"));a&2&&(a=b.$implicit,b=P(),G(U(1,1,Bs(b.internalExpandedTabs,
a.key))?0:-1))},oqb=function(){},pqb=function(a){a&1&&E(0,oqb,0,0,"ng-template")},qqb=function(a){a&1&&E(0,pqb,1,0,null,11);a&2&&(a=P().tab,I("ngTemplateOutlet",a.tabHeaderTemplate))},rqb=function(a){a&1&&Q(0);a&2&&(a=P().tab,S(" ",a.key," "))},sqb=function(a,b){a&1&&F(0,qqb,1,1)(1,rqb,1,1);a&2&&G(b.tab.tabHeaderTemplate?0:1)},tqb=function(a){a&1&&(K(0,"mat-icon",9),Q(1),L());a&2&&(a=P(2),B(),yg(a.actionBtnIcon))},uqb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();
return v(c.action.emit())});K(1,"span",7);Q(2);E(3,tqb,2,1,"mat-icon",8);L()()}a&2&&(a=P(),B(2),S(" ",a.actionBtnText," "),B(),I("ngIf",a.actionBtnIcon))},vqb=function(a){if(a&1){var b=t();K(0,"onedev-feature-tooltip-body",1);N("action",function(){u(b);var c=P();return v(c.action.emit())})("dismiss",function(){u(b);var c=P();c.hideFeatureTooltip();c.dismiss.emit();return v()});dg(1);L()}a&2&&(a=P(),I("actionBtnText",a.actionBtnText)("actionBtnIcon",a.actionBtnIcon)("color",a.color)("pointerPosition",
a.pointerPosition)("widthOffset",a.widthOffset))},xqb=function(a){a&1&&(K(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",4)(2,"p",5),Q(3,"Attachment analysis"),L(),Q(4," See agent-generated attachment analysis alongside your files. "),L()());a&2&&(a=P(),B(),I("customPositions",Jg(2,wqb,a.TOOLTIP_POSITIONS.BOTTOM_LEFT,a.TOOLTIP_POSITIONS.TOP_LEFT))("tooltipId",a.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID))},zqb=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=P().$implicit;var b=P(),
c;S(" ",(c=a.customDisplayName)!=null?c:U(1,1,yqb(b,a.category))," ")}},Aqb=function(a){a&1&&(K(0,"span",25),M(1,"b-actions-menu",28),L());a&2&&(P(),a=bg(25),B(),I("menuItems",a)("buttonLabel","Enrichment actions")("matTooltip","Enrichment actions"))},Bqb=function(a){a&1&&M(0,"b-spinner")},Cqb=function(a){a&1&&M(0,"b-markdown-format-presenter",29);a&2&&(P(2),a=bg(30),I("content",a.formattedContent.markdownFormat))},Dqb=function(a){a&1&&M(0,"b-literal-format-presenter",29);a&2&&(P(2),a=bg(30),I("content",
a.formattedContent.literalFormat))},Eqb=function(a){a&1&&M(0,"b-plain-format-presenter",29);a&2&&(P(2),a=bg(30),I("content",a.formattedContent.plainFormat))},Fqb=function(a){a&1&&(F(0,Cqb,1,1,"b-markdown-format-presenter",29),F(1,Dqb,1,1,"b-literal-format-presenter",29),F(2,Eqb,1,1,"b-plain-format-presenter",29));a&2&&(P(),a=bg(30),G(a.formattedContent.markdownFormat?0:-1),B(),G(a.formattedContent.literalFormat?1:-1),B(),G(a.formattedContent.plainFormat?2:-1))},Hqb=function(a){if(a&1){var b=t();K(0,
"table",8)(1,"tr",9)(2,"td",10);M(3,"b-user-display",11)(4,"mat-icon",12);K(5,"onedev-hovercard",null,0)(7,"div",13)(8,"div",14)(9,"span",15);Q(10);T(11,"async");M(12,"br")(13,"br");Q(14);T(15,"async");L()()()()();K(16,"td",16)(17,"span",17);M(18,"b-formatted-date-time",18);L();K(19,"button",19);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.copyContent(e))});M(20,"mat-icon",20);L();K(21,"button",21);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.trackThumbsUp(e))});
M(22,"mat-icon",22);L();K(23,"button",23);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.trackThumbsDown(e))});M(24,"mat-icon",24);L();$f(25);F(26,Aqb,2,3,"span",25);L()();K(27,"tr",26)(28,"td",27);F(29,Bqb,1,0,"b-spinner");$f(30);F(31,Fqb,3,3);L()()()}if(a&2){var c=qg(6);a=P().$implicit;var d=P();B(3);I("model",a.author);B();I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",d.CATEGORY_INFO_HOVERCARD_CONFIG);B(6);S(" ",U(11,16,yqb(d,a.category))," ");
B(4);S(" ",U(15,18,Gqb(d,a.category))," ");B(4);I("timestamp",a.timestamp);B(3);I("disabled",d.hasReacted(a));B();wg("has-reacted-icon",d.thumbsUpClicked(a));B();I("disabled",d.hasReacted(a));B();wg("has-reacted-icon",d.thumbsDownClicked(a));B();c=ag(d.categoryToActionMenuItems.get(a.category));B();G(c&&c.length>0?26:-1);B(3);G(d.isLoading(a.category)?29:-1);B();c=ag(d.enrichmentCategoryToContent.get(a.category));B();G(c&&!d.isLoading(a.category)?31:-1)}},Iqb=function(a,b){a&1&&(K(0,"expandable-tab",
3),E(1,zqb,2,3,"ng-template",6)(2,Hqb,32,22,"ng-template",7),L());a&2&&(a=b.$implicit,b=P(),I("key",a.category)("ariaLabel","Toggle "+a.category+" attachment enrichment category for attachment id "+b.attachmentId))},Jqb=function(a){return a.issueId+"_"+a.attachmentId+"_"+a.category},Mqb=function(a){a&1&&(K(0,"span"),Q(1),K(2,"b"),Q(3),L(),Q(4," on "),K(5,"b"),Q(6),T(7,"date"),L(),Q(8,". "),L());a&2&&(a=P(4),B(),S(" Currently, the ",a.contentType," is scheduled for deletion in "),B(2),yg(Kqb(Lqb(a).getTime(),
!0)),B(3),yg(Lg(7,3,Lqb(a),"longDate")))},Nqb=function(a){a&1&&(Q(0," The retention has "),K(1,"b"),Q(2,"expired"),L(),Q(3),K(4,"b"),Q(5),T(6,"date"),L(),Q(7,". "));a&2&&(a=P(4),B(3),S(" and the ",a.contentType," was scheduled for deletion on "),B(2),yg(Lg(6,2,Lqb(a),"longDate")))},Oqb=function(a){a&1&&(K(0,"span")(1,"b"),Q(2,"Retention:"),L(),Q(3),K(4,"b"),Q(5),L(),Q(6," from the last modification of the issue. "),F(7,Mqb,9,6,"span")(8,Nqb,8,5),L());a&2&&(a=P(3),B(3),S(" This ",a.contentType," has a retention period of "),
B(2),yg(a.getRetentionPeriod()),B(2),G(Lqb(a).getTime()<(new rm).getTime()?8:7))},Pqb=function(a){a&1&&(K(0,"b"),Q(1,"Retention:"),L(),Q(2));a&2&&(a=P(3),B(2),S(" This ",a.contentType," has an indefinite retention period. "))},Qqb=function(a){a&1&&(Q(0),K(1,"b"),Q(2,"overridden"),L(),Q(3," retention period set to match the issue retention period. "));a&2&&(a=P(3),S(" The ",a.contentType," has an "))},Rqb=function(a){a&1&&(K(0,"p"),F(1,Oqb,9,3,"span")(2,Pqb,3,1),F(3,Qqb,4,1),L());a&2&&(a=P(2),B(),
G(a.retentionState&&!a.retentionState.scheduledDeletionTime?2:1),B(2),G(a.retention===a.retentionModel.INDEFINITE?3:-1))},Sqb=function(a){a&1&&(K(0,"div",5)(1,"p")(2,"b"),Q(3,"Restricted Access:"),L(),Q(4),K(5,"a",6),Q(6," Learn More "),L()(),F(7,Rqb,4,2,"p"),L());a&2&&(a=P(),B(4),S(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(),I("rel",a.EXTERNAL_LINK_REL),Kf("href",a.documentationLinks.getRestrictedAccessHelpLink(),Pe),B(2),G(a.retentionState?7:-1))},
Tqb=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)})},Vqb=function(a){var b=Ws(document,"IFRAME");if(!b.sandbox)throw Error("Lf");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(Uqb==""){var c=Xta('<!DOCTYPE html><body><input type="hidden" id="nonce" value="'+Bh(a)+
'" /><script nonce="'+Bh(dsa(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=uh("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=rh(c)}else a=cra(Uqb,new Map([["nonce",a]]));asa(b,a);b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b},Wqb=function(){return new Promise(function(a){setTimeout(a,500)})},Xqb=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"))},Yqb=function(a){a&1&&(K(0,"span",7),M(1,"b-actions-menu",13),L());a&2&&(a=P(),B(),I("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},arb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(c.viewAttachment())});L()()}a&2&&(a=P(),xg(Eg("bv2-issue-attachment-link ",Zqb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",$qb(a,!1))("linkEnabled",
!0)("useCustomHandler",!0))},crb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(brb(c))});L()();K(2,"span",15)(3,"button",16);N("click",function(){u(b);var c=P(),d;if((d=c.attachment)==null||!d.attachmentId)throw Error("Mf");d=dt(c.trackerHelpers,c.issueId)+"#attachment"+c.attachment.attachmentId;c.clipboard.copy(d);c.snackBar.open("Link to attachment copied to clipboard","",{duration:2E3});return v()});M(4,"b-icon",17);L()()}a&
2&&(a=P(),xg(Eg("bv2-issue-attachment-link ",Zqb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",$qb(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},drb=function(a){a&1&&(K(0,"span",11)(1,"a",18),M(2,"mat-icon",19),L()());a&2&&(a=P(),B(),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),Pe)("disableRipple",!0),B(),I("svgIcon","help-outline"))},erb=function(a){a&1&&(K(0,"div",20),Q(1," You do not have access to this restricted attachment. "),K(2,"a",21),Q(3,
"Learn more"),L()());a&2&&(a=P(),B(2),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),Pe))},frb=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))},grb=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)}},hrb=function(a,b){a&1&&F(0,grb,1,3,"b-attachment-enrichments",22);a&2&&(a=P(),b=a.isActive()&&a.hasViewAccess&&b&&b.length>0,G(b?0:-1))},krb=function(a){return{eligibilityState:irb[xi(a,1,void 0,jb)],runMetadata:yi(a,et,2,jb)?jrb(X(a,et,2,jb)):void 0}},jrb=function(a){return{runId:a.getRunId(),issueId:String(a.getIssueId()),startTimestamp:bn(X(a,Ti,3,jb))}},orb=function(a){var b=a.hasMetadata()?jrb(a.getMetadata()):void 0;if(a.hasResults()){a=a.getResults();if(a.hasSummary()){var c=a.getSummary();
c={problemIdentificationSection:yi(c,ft,1,jb)?lrb(X(c,ft,1,jb)):void 0,solutionSection:yi(c,ft,2,jb)?lrb(X(c,ft,2,jb)):void 0,codeChangeSection:yi(c,ft,3,jb)?lrb(X(c,ft,3,jb)):void 0}}else c=void 0;if(yi(a,gt,2,jb)){var d=X(a,gt,2,jb);var e=d.getPrompt();d=Ci(d,ht,2,Di(),jb);e={prompt:e,steps:d.map(mrb)}}else e=void 0;yi(a,nrb,3,jb)?(d=X(a,nrb,3,jb),d={buildInvocationId:vi(d,1,void 0,jb),testSpongeInvocationId:vi(d,2,void 0,jb)}):d=void 0;a={summary:c,trajectory:e,validation:d,oclNumber:on(a,4,jb)?
String(pn(a,4,void 0,jb)):void 0}}else a=void 0;return{metadata:b,results:a}},lrb=function(a){return{entries:[].concat(q(a.getEntriesList()))}},mrb=function(a){var b=a.getText();a=Ci(a,it,2,Di(),jb);return{text:b,functionCalls:a.map(prb)}},prb=function(a){return{name:a.getName(),arguments:Object.fromEntries(vc(a,2,Vb,jb).entries()),outputs:Object.fromEntries(vc(a,3,Vb,jb).entries())}},rrb=function(a){return{issueRunStatuses:Ci(a,jt,1,Di(),jb).map(qrb)}},qrb=function(a){return{issueId:String(a.getIssueId()),
runId:a.getRunId(),runStatus:srb[xi(a,3,void 0,jb)]}},trb=function(a,b){return Math.min(a,b)},urb=function(a,b){return Math.pow(2,a)*b},vrb=function(){var a={initialInterval:6E4,maxRetries:9};a=typeof a==="number"?{initialInterval:a}:a;var b=a.initialInterval,c=a.maxRetries===void 0?Infinity:a.maxRetries,d=a.maxInterval===void 0?Infinity:a.maxInterval,e=a.shouldRetry===void 0?function(){return!0}:a.shouldRetry,f=a.resetOnSuccess===void 0?!1:a.resetOnSuccess,g=a.backoffDelay===void 0?urb:a.backoffDelay;
return function(k){return pe(function(){var l=0;return k.pipe(xla(function(r){return r.pipe(bla(function(w){var x=l++;return Yha(function(){return x<c&&e(w)},te(trb(g(x,b),d)),ge(w))}))}),Cf(function(){f&&(l=0)}))})}},wrb=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P();return v(c.openSidebar())});M(1,"mat-icon",2);Q(2);T(3,"async");L()}a&2&&(a=P(),B(2),S(" ",U(3,1,a.buttonText$)," "))},yrb=function(a){if(a&1){var b=t();K(0,"button",17,1);N("click",function(){u(b);
var c=P(2);return v(xrb(c))});Q(2," Edit ");L()}},zrb=function(a,b){a&1&&(M(0,"b-user-display",18),K(1,"onedev-hovercard",null,2),M(3,"b-issue-person-card",19),T(4,"async"),L(),Q(5," created issue "));if(a&2){a=qg(2);var c=P(2);I("onedevHovercardTrigger",a)("model",b);B(3);var d;I("email",(d=U(4,3,c.originalAuthorEmail$))!=null?d:"")}},Arb=function(a,b){a&1&&(Q(0," on behalf of "),M(1,"b-user-display-name",20),T(2,"emailToUser"));a&2&&(B(),I("user",U(2,2,b))("showEmail",!1))},Brb=function(a){a&1&&
(F(0,Arb,3,4),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.onBehalfOfEmail$))?0:-1,b)}},Crb=function(a,b){if(a&1){var c=t();K(0,"a",21);N("click",function(d){var e=u(c);P(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return v()});Q(1);L()}a&2&&(a=P(),P(),I("routerLinkObj",B5a(b,{comment:1})),Kf("aria-label","Comment number"+a.commentNumber),B(),S(" #",a.commentNumber))},Drb=function(a,b){a&1&&(Q(0," by "),M(1,"b-user-display",18),K(2,"onedev-hovercard",null,3),M(4,"b-issue-person-card",
19),L());if(a&2){a=qg(3);B();I("onedevHovercardTrigger",a)("model",b);B(3);var c;I("email",(c=b.emailAddress)!=null?c:"")}},Erb=function(a){a&1&&(K(0,"span",12),T(1,"async"),Q(2," \u2022 Edited "),F(3,Drb,5,3),T(4,"async"),L());if(a&2){var b;a=P(2);I("matTooltip",U(1,2,a.editedTooltipText$));B(3);G((b=U(4,4,a.lastNonCreatorCommentEditorUser$))?3:-1,b)}},Frb=function(a){a&1&&(K(0,"p",16),Q(1," Description has been deleted. "),L())},Grb=function(a){if(a&1){var b=t();K(0,"b-restricted-comment-placeholder",
23);T(1,"async");N("onConfirm",function(){u(b);var c=P(),d=P(3),e=P();return v(e.loadRestrictedComment(c,d))});L()}a&2&&(a=P(5),I("disabled",!U(1,1,a.mayReadPii$)))},Hrb=function(a){a&1&&(F(0,Grb,2,3,"b-restricted-comment-placeholder",22),T(1,"async"));a&2&&(a=P(4),G(U(1,1,a.shouldShowRestrictedPlaceholder$)?0:-1))},Irb=function(a){a&1&&(F(0,Hrb,2,3),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.id$))?0:-1,b)}},Jrb=function(a,b){a&1&&(M(0,"b-note-container",25),T(1,"async"),T(2,"async"),T(3,"async"));
if(a&2){a=P();var c=P(4),d,e;I("issueId",a)("issueAccessLevel",U(1,5,c.accessLevel$))("note",b)("formattingMode",(d=U(2,7,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)("canEditComment",(e=U(3,9,c.canEditComment$))!=null?e:!1)}},Krb=function(a){a&1&&(F(0,Jrb,4,11,"b-note-container",25),T(1,"async"),T(2,"async"));if(a&2){var b;a=P(4);G((b=U(1,1,a.hasDescription$)&&U(2,3,a.firstNote$))?0:-1,b)}},Lrb=function(a){a&1&&Q(0," Add one. ")},Mrb=function(a){a&1&&(K(0,"p",24),Q(1," No description yet. "),
F(2,Lrb,1,0),T(3,"async"),L());a&2&&(a=P(4),B(2),G(U(3,1,a.canEditComment$)?2:-1))},Nrb=function(a){a&1&&(F(0,Krb,3,5),T(1,"async"),F(2,Mrb,4,3,"p",24),T(3,"async"));if(a&2){var b;a=P(3);G((b=U(1,2,a.id$))?0:-1,b);B(2);G(U(3,4,a.hasDescription$)?-1:2)}},Orb=function(a){a&1&&(F(0,Irb,2,3),T(1,"async"),Lf(2,Nrb,4,6));a&2&&(a=P(2),G(U(1,1,a.isRedacted$)?0:2))},Prb=function(a,b){a&1&&(M(0,"b-attachment-viewer",28),T(1,"async"));if(a&2){a=P().$implicit;var c=P(4),d;I("issueId",b)("attachment",a)("attachmentUploader",
(d=U(1,3,c.originalAuthorEmail$))!=null?d:"")}},Qrb=function(a,b){a&1&&(K(0,"div",27),F(1,Prb,2,5,"b-attachment-viewer",28),T(2,"async"),L());if(a&2){var c;a=b.$implicit;b=P(4);I("id",Eg("attachment",a.attachmentId));B();G((c=U(2,3,b.id$))?1:-1,c)}},Rrb=function(a){a&1&&(K(0,"div",26),Of(1,Qrb,3,5,"div",27,Nf),L());a&2&&(a=P(),B(),Pf(a))},Srb=function(a,b){a&1&&F(0,Rrb,3,0,"div",26);a&2&&G(b.length?0:-1)},Urb=function(a,b){a&1&&(K(0,"div",4),M(1,"mat-icon",5),K(2,"div",6)(3,"div",7)(4,"div",8)(5,
"h4",9),Q(6,"Description"),L(),F(7,yrb,3,0,"button",10),T(8,"async"),F(9,zrb,6,5),T(10,"async"),F(11,Brb,2,3),T(12,"async"),F(13,Crb,2,3,"a",11),T(14,"async"),F(15,Erb,5,6,"span",12),T(16,"async"),L(),K(17,"div"),M(18,"b-formatted-date-time",13)(19,"b-actions-menu",14,0),T(21,"async"),L()(),M(22,"llm-chat-open-button",15),F(23,Frb,2,0,"p",16),T(24,"async"),Lf(25,Orb,3,3),F(26,Srb,1,1),T(27,"async"),L()());if(a&2){var c,d,e;a=P();B(7);G(U(8,10,a.canEditComment$)?7:-1);B(2);G((c=U(10,12,a.originalAuthor$))?
9:-1,c);B(2);G(U(12,14,a.isAuthorNotReporter$)?11:-1);B(2);G((d=b.commentNumber&&U(14,16,a.id$))?13:-1,d);B(2);G(U(16,18,a.isShowCommentHistoryActionInMenu$)?15:-1);B(3);I("timestamp",b.modifiedDate);B();var f;I("buttonLabel","Description actions")("menuItems",(f=U(21,20,a.commentActionMenuItems$))!=null?f:Hg(26,Trb));B(4);G(U(24,22,a.isDeleted$)?23:25);B(3);G((e=U(27,24,a.attachments$))?26:-1,e)}},Vrb=function(a){a&1&&M(0,"b-spinner")},Wrb=function(a){a&1&&(Uf(0),Q(1," reacted"),Vf())},Xrb=function(a){a&
1&&(Uf(0),Q(1,", "),M(2,"br"),Vf())},Yrb=function(a,b){a&1&&(K(0,"div"),Uf(1),Q(2),Vf(),F(3,Wrb,2,0,"ng-container")(4,Xrb,3,0,"ng-container"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);S(" ",a);B();G(c===b-1?3:4)}},Zrb=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P(2),B(),S(" by ",um(a.event.lastCommentEditorUser)))},$rb=function(a){a&1&&(Uf(0),Q(1,"Message last modified"),Vf(),F(2,Zrb,2,1,"ng-container"),Uf(3),Q(4," on "),M(5,"b-formatted-date-time",0),Vf());a&2&&(a=P(),B(2),G(a.event.version===
0&&a.event.lastCommentEditorUser?2:-1),B(3),I("timestamp",a.event.commentLastModifiedAtDate))},asb=function(a){a&1&&M(0,"b-user-email",0);a&2&&(a=P().$implicit,I("email",a.text)("withProfile",!0))},bsb=function(a){a&1&&(K(0,"b-issue-reference-widget",1),Q(1),L());if(a&2){a=P().$implicit;var b=P();I("href",ps.viewIssue.makeHref(a.text))("issueId",b.getIssueId(a));B();yg(a.text)}},csb=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P().$implicit,B(),yg(a.text))},dsb=function(a,b){a&1&&F(0,asb,1,2,"b-user-email",
0)(1,bsb,2,3,"b-issue-reference-widget",1)(2,csb,2,1,"ng-container");if(a&2){var c;G((c=b.$implicit.tag)==="user"?0:c==="bug"?1:2)}},kt=function(a){var b;a=a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel;return a==="EXTERNAL_PARTNER"||a==="EXTERNAL_PUBLIC"},esb=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PARTNER"},lt=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PUBLIC"},fsb=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""}},gsb=function(a){a&1&&(Uf(0),M(1,"b-component-card",4,1),Vf());if(a&2){a=qg(2);var b=P();B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},hsb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P(5);B();var b;yg((b=a.effortSpecName)!=
null?b:"Estimated Effort")}},isb=function(a){a&1&&(K(0,"span"),Q(1,"Estimated Effort (disabled)"),L())},jsb=function(a){a&1&&(K(0,"label"),F(1,hsb,2,1,"span")(2,isb,2,0,"span"),Q(3," :\u200b "),L());a&2&&(a=P(4),B(),G(a.effortEnabled?1:2))},ksb=function(a){a&1&&(K(0,"label"),Q(1),L());a&2&&(a=P(3).$implicit,B(),S("",a.displayName,":\u200b"))},lsb=function(a){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),L());a&2&&(a=P(),B(),I("user",U(2,2,a))("showEmail",!0))},msb=function(a){a&
1&&M(0,"plain-component-path",5);a&2&&(a=P(4).$implicit,I("id",a.oldValue))},nsb=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)}},osb=function(a){a&1&&(K(0,"span"),Q(1,"[Issue creation date]"),L())},psb=function(a){a&1&&(K(0,"span"),F(1,nsb,1,1,"b-formatted-date-time",8),F(2,osb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},qsb=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)}},rsb=function(a){a&1&&(K(0,"span"),Q(1,"[Unset]"),L())},ssb=function(a){a&1&&(K(0,"span"),F(1,qsb,1,1,"b-formatted-date-time",8),F(2,rsb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},tsb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),P(4),B(),yg(Elb(a)))},usb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a))},vsb=function(a){a&1&&(F(0,lsb,3,4,"span"),F(1,msb,1,1,"plain-component-path",5),F(2,psb,3,2,"span"),F(3,ssb,3,2,"span"),
F(4,tsb,2,1,"span"),F(5,usb,2,1,"span"),Uf(6),Q(7,"\u00a0"),Vf(),M(8,"span",6),Uf(9),Q(10,"\u00a0"),Vf());a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),B(),G(a.name==="component"?1:-1),B(),G(a.name=="sloStartTime"?2:-1),B(),G(a.name=="sloEndTime"?3:-1),B(),G(a.name==="access_limit"?4:-1),B(),G(a.isUser||a.name==="component"||a.name==="sloStartTime"||a.name==="sloEndTime"||a.name==="access_limit"?-1:5))},wsb=function(a){a&1&&(M(0,"b-user-display-name",7),T(1,"emailToUser"));a&2&&(a=P(),I("user",U(1,2,a))("showEmail",
!0))},xsb=function(a){a&1&&(K(0,"span"),M(1,"plain-component-path",5),L());a&2&&(a=P(4).$implicit,B(),I("id",a.newValue))},ysb=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)}},zsb=function(a){a&1&&(K(0,"span"),Q(1,"[Issue creation date]"),L())},Asb=function(a){a&1&&(K(0,"span"),F(1,ysb,1,1,"b-formatted-date-time",8),F(2,zsb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Bsb=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)}},Csb=function(a){a&1&&(K(0,"span"),Q(1,"[Unset]"),L())},Dsb=function(a){a&1&&(K(0,"span"),F(1,Bsb,1,1,"b-formatted-date-time",8),F(2,Csb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Esb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),P(4),B(),yg(Elb(a)))},Fsb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(3).$implicit;wg("bv2-diff-newvalue-nextline",b.oldValue&&b.name=="title");B();
yg(a)}},Gsb=function(a){a&1&&(F(0,wsb,2,4,"b-user-display-name",7),F(1,xsb,2,1,"span"),F(2,Asb,3,2,"span"),F(3,Dsb,3,2,"span"),F(4,Esb,2,1,"span"),F(5,Fsb,2,3,"span",9));a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),B(),G(a.name==="component"?1:-1),B(),G(a.name==="sloStartTime"?2:-1),B(),G(a.name==="sloEndTime"?3:-1),B(),G(a.name==="access_limit"?4:-1),B(),G(a.isUser||a.name=="component"||a.name=="sloStartTime"||a.name=="sloEndTime"||a.name=="access_limit"?-1:5))},Hsb=function(a){a&1&&(K(0,"div",4),F(1,
jsb,4,1,"label")(2,ksb,2,1,"label"),F(3,vsb,11,6),F(4,Gsb,6,6),L());if(a&2){var b,c;a=P(2).$implicit;B();G(a.name==="effort"?1:2);B(2);G((b=a.oldValue)?3:-1,b);B();G((c=a.newValue)?4:-1,c)}},Isb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Jsb=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),F(3,Isb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("user",U(2,3,a))("showEmail",!0);B(2);G(c!==b-1?3:-1)}},Ksb=function(a){a&1&&(K(0,"span"),Of(1,Jsb,
4,5,"span",null,Nf),L());a&2&&(a=P(4).$implicit,B(),Pf(a.added))},Lsb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Msb=function(a,b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),F(3,Lsb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);yg(a);B();G(c!==b-1?3:-1)}},Nsb=function(a){a&1&&(K(0,"span"),Of(1,Msb,4,2,"span",null,Nf),L());a&2&&(a=P(4).$implicit,B(),Pf(a.added))},Osb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,Ksb,3,0,"span")(4,Nsb,3,0,"span"),L());a&2&&(a=P(3).$implicit,
B(2),S("+",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},Psb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Qsb=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),T(2,"emailToUser"),F(3,Psb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("user",U(2,3,a))("showEmail",!0);B(2);G(c!==b-1?3:-1)}},Rsb=function(a){a&1&&(K(0,"span"),Of(1,Qsb,4,5,"span",null,Nf),L());a&2&&(a=P(4).$implicit,B(),Pf(a.removed))},Ssb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Tsb=function(a,
b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),F(3,Ssb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);yg(a);B();G(c!==b-1?3:-1)}},Usb=function(a){a&1&&(K(0,"span"),Of(1,Tsb,4,2,"span",null,Nf),L());a&2&&(a=P(4).$implicit,B(),Pf(a.removed))},Vsb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),F(3,Rsb,3,0,"span")(4,Usb,3,0,"span"),L());a&2&&(a=P(3).$implicit,B(2),S("-",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},Wsb=function(a){a&1&&(K(0,"div",4),F(1,Osb,5,2,"div"),F(2,Vsb,5,2,"div"),
L());if(a&2){a=P(2).$implicit;var b=P();B();G(a.added&&a.added.length&&b.isStringArray(a.added)?1:-1);B();G(a.removed&&a.removed.length&&b.isStringArray(a.removed)?2:-1)}},Xsb=function(a){a&1&&Wf(0)},Zsb=function(a,b){a&1&&(K(0,"span"),E(1,Xsb,1,0,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=qg(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(2,Ysb,d,a,c===b-1))}},$sb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Of(3,Zsb,2,6,
"span",null,Nf),L());a&2&&(a=P(3).$implicit,B(2),S("+",a.displayName,":\u200b"),B(),Pf(a.added))},atb=function(a){a&1&&Wf(0)},btb=function(a,b){a&1&&(K(0,"span"),E(1,atb,1,0,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=qg(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(2,Ysb,d,a,c===b-1))}},ctb=function(a){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Of(3,btb,2,6,"span",null,Nf),L());a&2&&(a=P(3).$implicit,B(2),S("-",a.displayName,":\u200b"),
B(),Pf(a.removed))},dtb=function(a){a&1&&(K(0,"div",4),F(1,$sb,5,1,"div"),F(2,ctb,5,1,"div"),L());if(a&2){a=P(2).$implicit;var b=P();B();G(a.added&&a.added.length&&b.isLinkedItemArray(a.added)?1:-1);B();G(a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed)?2:-1)}},etb=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},ftb=function(a){a&1&&(K(0,"span"),Q(1," - "),L())},gtb=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,ftb,2,0,"span"),L());if(a&
2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("timestamp",a);B();G(c!==b-1?2:-1)}},htb=function(a){a&1&&(K(0,"span"),Of(1,gtb,3,2,"span",null,Nf),L());a&2&&(a=P(4).$implicit,B(),Pf(a.oldValue.split(", ")))},itb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a))},ltb=function(a){a&1&&(F(0,etb,1,1,"b-formatted-date-time",8),F(1,htb,3,0,"span"),F(2,itb,2,1,"span"),Uf(3),Q(4,"\u00a0"),Vf(),M(5,"span",6),Uf(6),Q(7,"\u00a0"),Vf());if(a&2){a=P(3).$implicit;var b=P();G(jtb(b,a,"oldValue")?
0:-1);B();G(ktb(b,a,"oldValue")?1:-1);B();G(jtb(b,a,"oldValue")||ktb(b,a,"oldValue")?-1:2)}},mtb=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},ntb=function(a){a&1&&(K(0,"span"),Q(1," - "),L())},otb=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,ntb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("timestamp",a);B();G(c!==b-1?2:-1)}},ptb=function(a){a&1&&(K(0,"span"),Of(1,otb,3,2,"span",null,Nf),L());a&2&&(a=P(4).$implicit,
B(),Pf(a.newValue.split(", ")))},qtb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),yg(a))},rtb=function(a){a&1&&(F(0,mtb,1,1,"b-formatted-date-time",8),F(1,ptb,3,0,"span"),F(2,qtb,2,1,"span"));if(a&2){a=P(3).$implicit;var b=P();G(jtb(b,a,"newValue")?0:-1);B();G(ktb(b,a,"newValue")?1:-1);B();G(jtb(b,a,"newValue")||ktb(b,a,"newValue")?-1:2)}},stb=function(a){a&1&&(K(0,"div",4)(1,"label"),Q(2),L(),F(3,ltb,8,3),F(4,rtb,3,3),L());if(a&2){var b,c;a=P(2).$implicit;var d=P();B();Kf("title",d.customFieldName(a));
B();S("",d.customFieldName(a),":\u200b");B();G((b=a.oldValue)?3:-1,b);B();G((c=a.newValue)?4:-1,c)}},ttb=function(a){a&1&&(K(0,"span",11),Q(1,"Updated"),L())},utb=function(a){a&1&&(K(0,"span"),Q(1,"Deleted"),L())},vtb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),S("Edited (unknown status '",a.status,"')"))},wtb=function(a,b){a&1&&F(0,ttb,2,0,"span",11)(1,utb,2,0,"span")(2,vtb,2,1,"span");if(a&2){var c;G((c=b.status)==="ACTIVE"?0:c==="DELETED"?1:2)}},xtb=function(a){a&1&&(K(0,"div",4)(1,
"label"),Q(2),L(),F(3,wtb,3,1),L());if(a&2){var b;a=P(2).$implicit;B(2);S("",a.displayName,":\u200b");B();G((b=a.statusUpdateDiff==null?null:a.statusUpdateDiff.entityStatus)?3:-1,b)}},ytb=function(a){a&1&&(K(0,"div",4)(1,"label"),Q(2),L(),K(3,"pre",12),Q(4),T(5,"json"),L()());a&2&&(a=P(2).$implicit,B(2),S("",a.displayName,":\u200b"),B(2),yg(U(5,2,a)))},ztb=function(a){a&1&&(M(0,"b-formatted-date-time",3),F(1,Hsb,5,3,"div",4)(2,Wsb,3,2,"div",4)(3,dtb,3,2,"div",4)(4,stb,5,4,"div",4)(5,xtb,4,2,"div",
4)(6,ytb,6,4,"div",4));if(a&2){a=P().$implicit;var b=P();I("timestamp",a.timestamp);B();G(!0===(a.type===b.DiffType.SINGLE_VALUE)?1:!0===(a.type===b.DiffType.COLLECTION||a.type===b.DiffType.USER_COLLECTION)?2:!0===(a.type===b.DiffType.LINKED_COLLECTION)?3:!0===(a.type===b.DiffType.CUSTOM_FIELD)?4:!0===(a.type===b.DiffType.STATUS_UPDATE)?5:6)}},Btb=function(a,b){a&1&&(K(0,"div",2),F(1,ztb,7,2),L());if(a&2){b=b.$implicit;a=P();B();if(b.customFieldId){b=a.customFieldMap[b.customFieldId];var c;a=Atb(a.customFieldHelper,
(c=b==null?void 0:b.type)!=null?c:"TYPE_UNSPECIFIED")}else a=(b==null?void 0:b.name)==="sloStartTime"||(b==null?void 0:b.name)==="sloEndTime"?a.activeSession.isInternalSession():1;G(a?1:-1)}},Ctb=function(a){a&1&&(K(0,"b-issue-reference-widget",13),Q(1),L());if(a&2){a=P();var b=P().change;I("href",b.href)("issueId",a);B();yg(a)}},Dtb=function(a){a&1&&M(0,"hotlist-link",5);a&2&&(a=P(),I("id",a))},Etb=function(a){a&1&&(K(0,"a",14),Q(1),L());if(a&2){a=P();var b=P().change;I("href",b.href,Pe);B();yg(a)}},
Ftb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},Gtb=function(a){a&1&&(F(0,Ctb,2,3,"b-issue-reference-widget",13)(1,Dtb,1,1,"hotlist-link",5)(2,Etb,2,2,"a",14),F(3,Ftb,2,0,"span"));if(a&2){var b=P();a=b.diff;b=b.isLast;var c=P();G(c.isIssueDiff(a)?0:c.isHotlistDiff(a)?1:2);B(3);G(b?-1:3)}},Htb=function(a,b){a&1&&F(0,Gtb,4,2);if(a&2){var c;G((c=b.change.value)?0:-1,c)}},Itb=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.userToLossyEmail(a.event.userPerformingActionUser)))},Jtb=function(a){a&
1&&(M(0,"b-user-membership-chip",9),T(1,"async"),T(2,"async"));if(a&2){a=P(2);var b;I("user",a.event.userPerformingActionUser)("email",a.userToLossyEmail(a.event.userPerformingActionUser))("teamId",(b=U(1,4,a.teamId$))!=null?b:"");Kf("aria-label",U(2,6,a.ariaLabelHeading$))}},Ktb=function(a){a&1&&(M(0,"b-user-display",10),T(1,"async"));a&2&&(a=P(2),I("model",a.event.userPerformingActionUser),Kf("aria-label",U(1,2,a.ariaLabelHeading$)))},Ltb=function(a){a&1&&Wf(0)},Mtb=function(a){a&1&&(K(0,"span",
33),E(1,Ltb,1,0,"ng-container",34),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",35),L());if(a&2){a=qg(3);P();var b=qg(9),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.userToLossyEmail(c.event.userPerformingActionUser))}},Ntb=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),S(" <",um(a.event.userPerformingActionUser),"> "))},Otb=function(a){a&1&&(K(0,"span",11),Q(1),L());a&2&&(a=P(2),B(),S(" <",um(a.event.userPerformingActionUser),"> "))},
Ptb=function(a){if(a&1){var b=t();K(0,"span")(1,"a",36);N("click",function(c){u(b);var d=P(2);return v(d.scrollCommentIntoView(c,d.event.commentNumber))});Q(2);L()()}a&2&&(a=P(2),B(),I("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),Kf("aria-label","Comment number"+a.event.commentNumber),B(),S(" #",a.event.commentNumber))},Rtb=function(a){if(a&1){var b=t();K(0,"button",37);N("click",function(){u(b);var c=P(2);return v(Qtb(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent$.value||
c.event))});L()}},Stb=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)}},Utb=function(a){a&1&&(M(0,"b-actions-menu",16,2),T(2,"async"));if(a&2){a=P(2);var b;I("buttonLabel","Comment actions")("menuItems",(b=U(2,2,a.commentActionMenuItems$))!=null?b:Hg(4,Ttb))}},Vtb=function(a){a&1&&(K(0,"div",18),M(1,"b-tagged-text",38),L());
a&2&&(a=P(2),B(),I("texts",a.event.taggedSummary))},Wtb=function(a){a&1&&(M(0,"b-issue-event-details",19),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){var b;a=P();var c=P(),d;I("diffs",(d=U(1,4,c.preEventDiffs$))!=null?d:Hg(10,Ttb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=U(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!U(3,8,c.isEffortEnabled$))}},Xtb=function(a){a&1&&(K(0,"div",22),Q(1," Comment has been deleted. "),L())},Ytb=function(a){if(a&1){var b=t();K(0,"b-restricted-comment-placeholder",
39);T(1,"async");N("onConfirm",function(){u(b);var c=P(2);return v(c.loadRestrictedComment())});L()}a&2&&(a=P(2),I("disabled",!U(1,1,a.mayReadPii$)))},$tb=function(a){a&1&&(M(0,"b-note-container",25),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){a=P(2);var b,c,d;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",(b=U(1,5,a.eventAsNote$))!=null?b:Hg(11,Ztb))("formattingMode",(c=U(2,7,a.formattingMode$))!=null?c:a.FormattingMode.PLAIN)("canEditComment",(d=U(3,9,a.canEditComment$))!=
null?d:!1)}},aub=function(a){if(a&1){var b=t();M(0,"b-summarized-note-container",40);T(1,"async");T(2,"async");K(3,"button",41);N("click",function(){u(b);var e=P(2);e.wasSummarized$.next(!0);e.isSummarized=!e.isSummarized;return v()});M(4,"mat-icon",42);Q(5,"Expand details");L()}if(a&2){a=P(2);var c,d;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",(c=U(1,5,a.eventAsNote$))!=null?c:Hg(9,Ztb))("summaryType",a.getSummaryType())("formattingMode",(d=U(2,7,a.formattingMode$))!=null?
d:a.FormattingMode.PLAIN)}},bub=function(a){if(a&1){var b=t();K(0,"button",41);N("click",function(){u(b);var c=P(2);c.wasSummarized$.next(!0);c.isSummarized=!c.isSummarized;return v()});M(1,"mat-icon",43);Q(2,"Collapse details");L()}},cub=function(a){a&1&&M(0,"b-formatted-date-time",29);a&2&&(a=P(2),I("timestamp",a.event.modifiedDate))},dub=function(a){a&1&&M(0,"mat-icon",45)},eub=function(a){a&1&&M(0,"mat-icon",46)},fub=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),yg(b))},gub=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))},kub=function(a){if(a&1){var b=t();K(0,"div",30)(1,"button",44,3);T(3,"async");T(4,"async");T(5,"async");T(6,"async");N("click",function(){u(b);var e=P(2);return v(hub(e))});F(7,dub,1,0,"mat-icon",45)(8,eub,1,0,"mat-icon",46);F(9,fub,2,1,"span");T(10,"async");L();K(11,"onedev-hovercard",
null,4);F(13,gub,1,3,"b-comment-reaction-responders-card",47);T(14,"async");L()()}if(a&2){var c;a=qg(12);var d=P(2);B();wg("no-upvote-reactions",U(3,11,d.noUpvoteReactions$));I("ariaLabel",iub(d,d.ReactionType.UPVOTE));Jf("aria-disabled",!U(4,13,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving);I("disabled",!U(5,15,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving)("onedevHovercardTrigger",a)("onedevHovercardConfig",d.commentReactionsHovercardConfig)("onedevHovercardActive",!!U(6,17,d.showCommentReactionHovercard$));
B(6);G(jub(d,d.ReactionType.UPVOTE)?7:8);B(2);G((c=U(10,19,d.upvoteReactionCountDisplayString$))?9:-1,c);B(4);G(U(14,21,d.noUpvoteReactions$)?-1:13)}},lub=function(a){if(a&1){var b=t();K(0,"a",49);N("click",function(){u(b);var c=P(3);return v(c.showCommentHistoryDialog(c.event.commentNumber))});Q(1," Show History ");L()}},mub=function(a){a&1&&(K(0,"div",31),M(1,"b-comment-edit-timestamp-message",48),F(2,lub,2,0,"a"),L());a&2&&(a=P(2),B(),I("event",a.event),B(),G(a.commentHistoryEnabled?2:-1))},nub=
function(a){a&1&&(M(0,"b-issue-event-details",19),T(1,"async"),T(2,"async"),T(3,"async"));if(a&2){var b;a=P();var c=P(),d;I("diffs",(d=U(1,4,c.postEventDiffs$))!=null?d:Hg(10,Ttb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=U(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!U(3,8,c.isEffortEnabled$))}},oub=function(a,b){a&1&&(K(0,"div",50),M(1,"b-attachment-viewer",51),L());a&2&&(a=b.$implicit,b=P(3),I("id",Eg("attachment",a.attachmentId)),B(),I("issueId",b.issueId)("attachment",
a)("attachmentUploader",b.userToLossyEmail(b.event.userPerformingActionUser)))},pub=function(a){a&1&&(K(0,"div",32),Of(1,oub,2,5,"div",50,Nf),L());a&2&&(a=P(2),B(),Pf(a.event.attachments))},rub=function(a){a&1&&(K(0,"div",5),F(1,Itb,1,1,"b-user-image",6),L(),K(2,"div",7)(3,"h4",8),F(4,Jtb,3,8,"b-user-membership-chip",9)(5,Ktb,2,4,"b-user-display",10),F(6,Mtb,5,3)(7,Ntb,2,1,"span",11),E(8,Otb,2,1,"ng-template",null,0,Mg),F(10,Ptb,3,3,"span"),F(11,Rtb,1,0,"button",12),T(12,"async"),K(13,"span",13),
F(14,Stb,1,3,"b-restricted-chip",14),M(15,"b-formatted-date-time",15),F(16,Utb,3,5,"b-actions-menu",16),L()(),M(17,"div",17),F(18,Vtb,2,1,"div",18),F(19,Wtb,4,11,"b-issue-event-details",19),T(20,"async"),M(21,"div",17),K(22,"div",20)(23,"div",21),F(24,Xtb,2,0,"div",22),F(25,Ytb,2,3,"b-restricted-comment-placeholder",23),K(26,"div",24),F(27,$tb,4,12,"b-note-container",25),F(28,aub,6,10),F(29,bub,3,0,"button",26),T(30,"async"),L(),K(31,"div",27),$f(32),T(33,"async"),K(34,"div",28),F(35,cub,1,1,"b-formatted-date-time",
29),L(),F(36,kub,15,23,"div",30),L()(),F(37,mub,3,2,"div",31),L(),F(38,nub,4,11,"b-issue-event-details",19),T(39,"async"),M(40,"div",17),F(41,pub,3,0,"div",32),M(42,"div",17),L());if(a&2){a=P();B();G(a.event.userPerformingActionUser?1:-1);B(3);G(a.enableTeamAnnotations&&a.event.userPerformingActionUser?4:5);B(2);G(a.isNonObfuscatedEmail(a.userToLossyEmail(a.event.userPerformingActionUser))?6:7);B(4);G(a.isCommentEvent(a.event)?10:-1);B();G(U(12,22,a.canEditComment$)&&!a.isRedacted()?11:-1);B(3);G(a.isRestricted(a.event)?
14:-1);B();I("timestamp",a.event.modifiedDate);B();G(a.isCommentEvent(a.event)?16:-1);B(2);G(a.event.taggedSummary&&a.event.taggedSummary.length?18:-1);B();G(U(20,24,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?19:-1);B(5);G(a.isDeleted()?24:-1);B();G(a.isRedacted()&&!a.isDeleted()?25:-1);B(2);G(!qub(a)||a.isRedacted()||a.isDeleted()||a.isSummarized?-1:27);B();G(qub(a)&&!a.isRedacted()&&!a.isDeleted()&&a.isSummarized?28:-1);B();G(U(30,26,a.wasSummarized$)&&!a.isSummarized?29:-1);var b,c=(b=U(33,
28,a.isShowingCommentTimestamp$))!=null?b:!1;B(5);wg("hasCommentTimestamp",c);B();G(c?35:-1);B();var d;b=a.ReactionType.UPVOTE;var e;c=!a.issuePermissionService.hasAclToComment()&&((d=a.event.commentReactions)==null?void 0:(e=d.get(b))==null?void 0:e.count)===0;d=a.isInternalSession&&a.commentReactionsEnabled&&qub(a)&&!a.isDeleted()&&!a.isRedacted()&&!c;G(d?36:-1);B();G(a.isCommentEvent(a.event)&&(a.event.commentVersion||0)>0&&!a.isRedacted()?37:-1);B();G(U(39,30,a.showFullHistoryFromFiltering$)===
"FULL_HISTORY"?38:-1);B(3);G(a.event.attachments.length?41:-1)}},sub=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},tub=function(a){a&1&&Q(0);if(a&2){var b;a=P(2).$index;var c=P();S(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," updates ")}},uub=function(a){a&1&&Q(0);if(a&2){var b;a=P(2).$index;var c=P();S(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," update ")}},vub=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",4);N("click",function(){u(b);
var f=P().$index,g=P(),k,l,r=(l=(k=g.foldedCommentsCounts.get(f))==null?void 0:k.eventFoldedCount)!=null?l:0;for(k=0;k<r&&((ho(g.internalEvents[f-k])||uUa(g.internalEvents[f-k]))&&g.eventDisplayMode.set(f-k,"full"),f-k!==0);k++);g.foldedCommentsCounts.delete(f);return v()});F(2,tub,1,1)(3,uub,1,1);L();M(4,"div",5);L()}if(a&2){var c;a=P().$index;var d=P();B(2);var e;G(((e=(c=d.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?e:1)>1?2:3)}},wub=function(a){a&1&&(K(0,"div",3),M(1,"b-history-event",
6),L());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=P();B();I("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===c.eventDisplayModes.SUMMARIZED)}},yub=function(a,b){a&1&&(F(0,vub,5,1,"div",2),F(1,wub,2,4,"div",3));if(a&2){var c;a=b.$index;b=P();var d;G(b.foldedCommentsCounts.has(a)&&((d=(c=b.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?d:0)>0?0:-1);B();G(b.internalIssueId&&xub(b.eventDisplayMode.get(a))?
1:-1)}},zub=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},Aub=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div",8),Q(2),L(),K(3,"div",9),Q(4),L()());a&2&&(a=b.$implicit,I("value",a),B(2),yg(a.name),B(2),yg(a.description))},Fub=function(a){switch(a){case "FULL_HISTORY":return Bub;case "ALL_COMMENTS":return Cub;case "HUMAN_ONLY":return Dub;case "TEAM_AND_ASSIGNEE":return Eub;default:return Cub}},Gub=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(2);return v(c.removeHotlist.emit())});
M(1,"mat-icon",7);L()}a&2&&(a=P(2),wg("invisible",a.disabled),Kf("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},Hub=function(a){a&1&&(K(0,"span",1)(1,"span",2)(2,"a",3),Q(3),L()(),F(4,Gub,2,4,"button",4),L(),K(5,"onedev-hovercard",null,0),M(7,"b-hotlist-card",5),L());if(a&2){a=qg(6);var b=P();wg("muted",b.disabled);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);B(2);I("href",b.ROUTES.viewHotlist.makeHref(b.hotlist.hotlistId),Pe);Kf("aria-label",
b.getAriaLabel(b.hotlist));B();yg(b.hotlist.name);B();G(b.removable?4:-1);B(3);I("hotlist",b.hotlist)}},Jub=function(a){if(a&1){var b=t();K(0,"span",1)(1,"div")(2,"button",2);N("click",function(){u(b);var d=P();return v(d.addHotlist(d.hotlist.hotlistId))});M(3,"mat-icon",3);L();M(4,"mat-icon",4);L();K(5,"span",5)(6,"a",6);Q(7);L()()();K(8,"onedev-hovercard",null,0)(10,"b-hotlist-recommendation-card",7);N("onAccept",function(d){u(b);var e=P();return v(e.addHotlist(d))})("onDismiss",function(){u(b);
var d=P();return v(Iub(d))});L()()}if(a&2){a=qg(9);var c=P();vg("padding-right","10px");I("onedevHovercardTrigger",a)("onedevHovercardActive",c.showHovercard)("onedevHovercardConfig",c.hovercardConfig);B(2);Kf("aria-label","Add the suggested hotlist "+c.hotlist.name);B(4);I("href",c.ROUTES.viewHotlist.makeHref(c.hotlist.hotlistId),Pe);Kf("aria-label",c.getAriaLabel(c.hotlist));B();yg(c.hotlist.name);B(3);I("hotlist",c.hotlist)}},Lub=function(a,b){if(a&1){var c=t();K(0,"b-hotlist-chip-smart",4);N("removeHotlist",
function(){var d=u(c).$implicit,e=P(2);return v(Kub(e,d))});L()}a&2&&I("id",b.$implicit)},Mub=function(a,b){a&1&&(M(0,"b-hotlist-recommendation-chip",5),T(1,"async"));a&2&&(a=b.$implicit,b=P(4),I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",U(1,3,b.issueId$)))},Oub=function(a,b){a&1&&Of(0,Mub,2,5,"b-hotlist-recommendation-chip",5,Nub);a&2&&Pf(b)},Pub=function(a){a&1&&(F(0,Oub,2,0),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.recommendations$))?
0:-1,b)}},Qub=function(a){if(a&1){var b=t();K(0,"div",0);dg(1);K(2,"button",1);T(3,"async");N("onHotkey",function(){u(b);var c=P();return v(c.openHotlistModal())})("click",function(){u(b);var c=P();return v(c.openHotlistModal())});M(4,"mat-icon",2);Q(5);T(6,"async");L();Of(7,Lub,1,1,"b-hotlist-chip-smart",3,Nf);T(9,"async");F(10,Pub,2,3);L()}a&2&&(a=P(),B(2),wg("icon-only",!U(3,5,a.textOfHotlistBtn$)),I("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER),B(3),S(" ",U(6,7,a.textOfHotlistBtn$)," "),B(2),Pf(U(9,
9,a.hotlistIds$)),B(3),G(a.isInternalSession?10:-1))},Sub=function(a){if(a&1){var b=t();K(0,"mat-form-field",7);T(1,"async");K(2,"input",8,0);N("keydown",function(c){u(b);var d=P();c.key==="Enter"?d.saveTitle():c.key==="Escape"||c.key==="Esc"?Rub(d):d.bannedWordsChecker.reset();return v()})("blur",function(){u(b);var c=P();return v(c.onInputBlur())});L()()}a&2&&(a=P(),wg("banned-words-warning",U(1,3,a.bannedWordsChecker.showWarning$)),B(2),I("value",a.titlePlain))},Tub=function(a){a&1&&(K(0,"h3",
4,1),Q(2),L());a&2&&(a=P(),Kf("title",a.isLongTitle?a.titlePlain:""),B(2),S(" ",a.titleTruncated," "))},Uub=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P();return v(c.isEditMode?c.saveTitle():Rub(c))});M(1,"mat-icon",10);L()}a&2&&(a=P(),I("disabled",a.disabled||a.isSaving))},Vub=function(a){a&1&&(K(0,"p",6),Q(1),K(2,"a",11),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" ",As(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},
Wub=function(a){if(a&1){var b=t();K(0,"mat-checkbox",10);N("change",function(c){u(b);var d=P().$implicit,e=P();d.enabled=c.checked;e.detectChanges();return v()});L()}a&2&&(a=P().$implicit,Jf("aria-label",Eg("Enable column '",a.name,"'")),I("checked",a.enabled))},Zub=function(a,b){if(a&1){var c=t();K(0,"li",2);N("keydown",function(e){var f=u(c).$index,g=P();return v(g.onKeyDown(e,f))})("focus",function(){var e=u(c).$index,f=P();return v(f.onFocus(e))});F(1,Wub,1,3,"mat-checkbox",3);M(2,"mat-icon",
4);K(3,"span");Q(4);L();K(5,"div",5)(6,"button",6);N("click",function(){var e=u(c).$index,f=P();return v(Xub(f,e))});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){var e=u(c).$index,f=P();return v(Yub(f,e))});M(9,"mat-icon",9);L()()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();Kf("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);B();G(d.allowRemoval?1:-1);B(3);yg(a.name);B(2);wg("invisible",b===0);B(2);wg("invisible",b===d.items.length-1)}},$ub=function(a){a&1&&M(0,"mat-icon",1)},
avb=function(a){a&1&&(K(0,"span",2),T(1,"date"),Q(2),L());a&2&&(a=P(2),I("title",Eg("Start Date: ",Lg(1,4,a.startDate,"longDate"))),B(2),zg(" ",a.startDateShortStr," ",a.JOINING_ARROW," "))},bvb=function(a){a&1&&(K(0,"span",3),T(1,"date"),Q(2),L());a&2&&(a=P(2),I("title",Eg("End Date: ",Lg(1,3,a.endDate,"longDate"))),B(2),S(" ",a.endDateShortStr," "))},cvb=function(a){a&1&&(K(0,"span",4),Q(1,"?"),L())},dvb=function(a){a&1&&(K(0,"div",0),F(1,$ub,1,0,"mat-icon",1),F(2,avb,3,7,"span",2),F(3,bvb,3,6,
"span",3)(4,cvb,2,0,"span",4),L());a&2&&(a=P(),B(),G(a.showIcon?1:-1),B(),G(a.startDate?2:-1),B(),G(a.endDate?3:4))},evb=function(a,b){b=b===void 0?[]:b;return"http://cl/search/cl:("+[].concat(q(a),q(b.map(function(c){return String(c.changelistNumber)}))).join("|")+")"},fvb=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(" ")},gvb=function(a){return"hotlist-"+a},hvb=function(a){return"savedsearch-"+a},nt=function(a){if(a!=null){if(ivb.includes(a))return a;var b=a.match(/\bhotlists?\b/)?mt(a):void 0;if(b)return"hotlist";b=a.match(/\bsavedsearch(?:es|)\b/)?mt(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?mt(a):void 0;b||(a=a.trim(),b=a.length<3?!1:!!a.match(/^\d+$/));if(b)return"issue"}},jvb=function(a){switch(nt(a)){case "hotlist":return"Hotlist";
case "savedsearch":return"Saved Search";case "issue":return"Issue"}},mt=function(a){if(a!=null)return a.split(/[^\d]+/).filter(Boolean).pop()},kvb=function(a){var b=mt(a);if(b!=null)switch(nt(a)){case "hotlist":return"/hotlists/"+b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},lvb=function(a){var b=mt(a);if(b!=null&&nt(a)==="issue")return"/issues?q="+encodeURIComponent("id:"+b+" OR parentid:"+b+"+")},mvb=function(a){for(var b={},c={},d=m(a),e=d.next();!e.done;e=d.next())e=
e.value,c[e.issueId]=e;d=a.slice();d.sort(function(l,r){var w,x;return(((w=r.descendantCount)!=null?w:0)-((x=l.descendantCount)!=null?x:0))*-1});d=m(d);for(e=d.next();!e.done;e=d.next()){var f=e.value,g=void 0;e=(g=b[f.issueId])!=null?g:0;g=void 0;f=m((g=f.parentIssueIds)!=null?g:[]);for(g=f.next();!g.done;g=f.next())if(g=c[g.value],g!=null){var k=void 0;b[g.issueId]=(k=b[g.issueId])!=null?k:0;b[g.issueId]+=1+e}}return a.map(function(l){var r,w=(r=b[l.issueId])!=null?r:0;return[[w,l.openDescendantCount+
w*10],l]})},nvb=function(a,b){a=a.results;if(a.length<(b===void 0?50:b))return[];a=mvb(a);a.sort(function(f,g){f=m(f);f=m(f.next().value);f.next();f=f.next().value;g=m(g);g=m(g.next().value);g.next();return g.next().value-f});b=a.filter(function(f){f=m(f);return m(f.next().value).next().value>0}).map(function(f){f=m(f);f.next();return f.next().value}).filter(function(f){return f.descendantCount>=2}).filter(YUa);var c={};a=m(a);for(var d=a.next();!d.done;d=a.next()){var e=m(d.value);d=e.next().value;
e=e.next().value;c[e.issueId]=d}return b.map(function(f){var g,k;return{title:(g=f.snapshot)==null?void 0:(k=g[0])==null?void 0:k.title,ref:f.issueId,suggestionRationale:f.descendantCount+" descendants and "+c[f.issueId][0]+" recent personal touchpoints."}})},ovb=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c.useXofYLabel=!c.useXofYLabel)});M(1,"div",2);K(2,"span");Q(3);T(4,"number");L();K(5,"span");Q(6);L()()}a&2&&(a=P(),I("title",Fg("",a.closed," of ",
a.total," issues closed in this work area")),B(),Kf("style",a.makePie(a.closed/a.total),vja),B(),wg("display-none",a.useXofYLabel),B(),S("",Lg(4,11,a.closed/a.total*100,"1.0-0"),"% complete"),B(2),wg("display-none",!a.useXofYLabel),B(),zg("",a.closed," of ",a.total," closed"))},pvb=function(a,b,c){var d=c[b];return d==null?!1:[].concat(q(a)).map(function(e){return ot[e]}).every(function(e){return e==null?!0:e.check(d,b,c)})},qvb=function(a){return!!ot[a]},rvb=function(a){a&1&&(Ad(),Rf(0,"svg",3),
Tf(1,"path",4),Sf())},svb=function(a){a&1&&(Rf(0,"div",2),dg(1,1,null,rvb,2,0),Sf())},tvb=function(a){a&1&&M(0,"th",26)},uvb=function(a){a&1&&M(0,"td",27)},wvb=function(a){if(a&1){var b=t();K(0,"th",26)(1,"button",28);N("click",function(){u(b);var c=P(2);return v(vvb(c))});M(2,"mat-icon",29);L()()}},xvb=function(a){a&1&&M(0,"td",27)},yvb=function(a){a&1&&(K(0,"th",26),Q(1," ID "),L())},zvb=function(a){a&1&&M(0,"b-issue-id-cell",31);a&2&&(a=P().$implicit,I("id",a.issueIds[0]))},Avb=function(a,b){a&
1&&(K(0,"td",30),F(1,zvb,1,1,"b-issue-id-cell",31),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:-1))},Cvb=function(a){if(a&1){var b=t();K(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):null)});L()()}if(a&2){a=P();var c=P();B();I("checked",c.selection.selected.length>0&&Bvb(c,a))("indeterminate",c.selection.selected.length>0&&!Bvb(c,a))}},Dvb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"mat-checkbox",33);N("click",function(d){u(c);
return v(d.stopPropagation())})("change",function(){var d=u(c).$implicit,e=P(2);e.selection.toggle(d.issueIds[0]);e.selectedIssuesChange.emit(e.selection);return v()});L()()}a&2&&(a=b.$implicit,b=P(2),B(),I("checked",b.selection.isSelected(a.issueIds[0])),Kf("aria-label","Select issue "+a.issueIds[0])("aria-checked",b.selection.isSelected(a.issueIds[0])))},Evb=function(a){if(a&1){var b=t();K(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):
null)});L()()}if(a&2){a=P();var c=P();B();I("checked",c.selection.selected.length>0&&Bvb(c,a))("indeterminate",c.selection.selected.length>0&&!Bvb(c,a))}},Fvb=function(a){a&1&&M(0,"td",30)},Gvb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},Hvb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"b-issue-title-cell",34);T(2,"async");T(3,"async");T(4,"async");N("issueNavigated",function(f){u(c);var g=P(2);return v(g.issueNavigated.emit(f))});
L()()}if(a&2){var d;a=b.$implicit;b=P(2);B();wg("bold",b.showReadStatus&&b.isUnread(U(2,9,a.issue$)));var e;I("anchorTarget",Dg((b.options.navigationOptions==null?0:b.options.navigationOptions.alwaysOpenNewTab)?"_blank":"_self"))("issue",U(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=U(4,13,b.trendingChipsById$))==null?null:d[a.issueIds[0]]:void 0)}},Ivb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},Jvb=function(a,b){a&1&&(K(0,"td",30)(1,"b"),Q(2),T(3,"async"),L()());a&2&&(a=b.$implicit,B(2),zg("",U(3,2,a.summaryTitle$)," (",a.issueIds.length,")"))},Kvb=function(a){a&1&&(K(0,"th",35),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TYPE),B(),S(" ",a.getDisplayName(a.IssueFieldType.TYPE),
" "))},Lvb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-type-cell",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Mvb=function(){},Nvb=function(a){a&1&&Q(0);a&2&&(a=P(3),S(" ",a.getDisplayName(a.IssueFieldType.ASSIGNEE)," "))},Ovb=function(a){a&1&&(K(0,"th",35),F(1,Mvb,0,0)(2,Nvb,1,1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.ASSIGNEE),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},Pvb=function(a,b){a&1&&M(0,"b-user-image",
37);a&2&&I("email",b)},Qvb=function(a){a&1&&F(0,Pvb,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)}},Rvb=function(a,b){a&1&&F(0,Qvb,1,1);a&2&&(a=P(4),G(a.isOpen(b)?0:-1))},Svb=function(a){a&1&&(F(0,Rvb,1,1),T(1,"async"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},Tvb=function(a){a&1&&(M(0,"b-issue-assignee-cell",36),T(1,"async"));a&2&&(a=P().$implicit,I("issue",U(1,1,a.issue$)))},Uvb=function(a){a&1&&(K(0,"td",30),F(1,Svb,2,3)(2,Tvb,2,
3,"b-issue-assignee-cell",36),L());a&2&&(a=P(2),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},Vvb=function(a){a&1&&(K(0,"th",35),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.REPORTER),B(),S(" ",a.getDisplayName(a.IssueFieldType.REPORTER)," "))},Wvb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-reporter-cell",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Xvb=function(a){a&1&&(K(0,"th",38),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",
a.IssueFieldType.PRIORITY),B(),S(" ",a.getDisplayName(a.IssueFieldType.PRIORITY)," "))},Yvb=function(a){a&1&&M(0,"b-issue-priority-display",39);a&2&&(P(),a=bg(1),I("issuePriority",a==null?null:a.snapshot==null?null:a.snapshot[0]==null?null:a.snapshot[0].priority))},Zvb=function(a,b){a&1&&(K(0,"td",30),$f(1),T(2,"async"),F(3,Yvb,1,1,"b-issue-priority-display",39),L());a&2&&(a=b.$implicit,P(2),B(),ag(U(2,1,a.issue$)),B(2),G(3))},$vb=function(a){a&1&&M(0,"th",40)},awb=function(a){a&1&&(K(0,"td",30),
M(1,"mat-icon",41),L())},bwb=function(a){a&1&&(K(0,"th",35),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.STATUS),B(),S(" ",a.getDisplayName(a.IssueFieldType.STATUS)," "))},cwb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-status-cell",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},dwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TEAM)," "))},ewb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-team-cell",
36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},fwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.DUPLICATE_COUNT)," "))},gwb=function(a){a&1&&Q(0);if(a&2){a=P();var b;S(" ",(b=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?b:0," ")}},hwb=function(a){a&1&&F(0,gwb,1,1);a&2&&(P(3),G(0))},iwb=function(a,b){a&1&&(K(0,"td",30),F(1,hwb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;
B();G((c=U(2,1,a.issue$))?1:-1,c)}},jwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.VOTE_COUNT)," "))},kwb=function(a){a&1&&(K(0,"span",42),Q(1),L());a&2&&(a=P(),I("title",Eg("",a.aggregatedData==null?null:a.aggregatedData.voteCount," votes")),B(),S(" ",a.aggregatedData==null?null:a.aggregatedData.voteCount," "))},lwb=function(a){a&1&&F(0,kwb,2,3,"span",42);a&2&&(P(3),G(0))},mwb=function(a,b){a&1&&(K(0,"td",30),F(1,lwb,1,1),T(2,"async"),L());if(a&
2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},nwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.SEVEN_DAY_VIEW_COUNT)," "))},owb=function(a){a&1&&(K(0,"span",42),Q(1),L());a&2&&(a=P(),I("title",Eg("",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," views in last 7 days")),B(),S(" ",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," "))},pwb=function(a){a&1&&F(0,owb,2,3,"span",42);a&2&&(P(3),
G(0))},qwb=function(a,b){a&1&&(K(0,"td",30),F(1,pwb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},rwb=function(a){a&1&&(K(0,"th",43),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.CREATED_TIME),B(),S(" ",a.getDisplayName(a.IssueFieldType.CREATED_TIME)," "))},swb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-created-time-cell",44),T(2,"async"),L());if(a&2){a=b.$implicit;b=P(2);B();var c;I("issue",U(2,2,a.issue$))("mode",(c=b.options.modes==null?
null:b.options.modes.createdTime)!=null?c:b.DEFAULT_DATETIME_MODE)}},twb=function(a){a&1&&(K(0,"th",43),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.MODIFIED_TIME),B(),S(" ",a.getDisplayName(a.IssueFieldType.MODIFIED_TIME)," "))},uwb=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)}},vwb=function(a,b){a&1&&(K(0,"td",30),$f(1),
T(2,"async"),F(3,uwb,1,3,"b-formatted-date-time",45),L());if(a&2){var c;a=b.$implicit;P(2);a=U(2,1,a.issue$);B(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},wwb=function(a){a&1&&(K(0,"th",46),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.RELATIVE_MODIFIED_TIME),B(),S(" ",a.getDisplayName(a.IssueFieldType.RELATIVE_MODIFIED_TIME)," "))},xwb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);a&2&&I("timestamp",b/1E3)("mode","relativepasttiny")("paddingLeftPx",
4)},ywb=function(a,b){a&1&&(K(0,"td",47),$f(1),T(2,"async"),F(3,xwb,1,3,"b-formatted-date-time",45),L());if(a&2){var c;a=b.$implicit;P(2);a=U(2,1,a.issue$);B(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},zwb=function(a){a&1&&(K(0,"th",48),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.TRIAGER)," "))},Awb=function(a){a&1&&M(0,"b-issue-triager-cell",36);a&2&&(a=P(),I("issue",a))},Bwb=function(a){a&1&&F(0,Awb,1,1,"b-issue-triager-cell",
36);a&2&&(P(3),G(0))},Cwb=function(a,b){a&1&&(K(0,"td",47),F(1,Bwb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Dwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),yg(a.getDisplayName(a.IssueFieldType.ALERTS)))},Ewb=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)}},Fwb=function(a){a&1&&F(0,Ewb,1,2,"b-issue-alerts-cell",50);a&2&&(P(4),G(0))},Gwb=function(a){a&1&&(F(0,Fwb,1,1),T(1,"async"));if(a&
2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},Hwb=function(a){a&1&&M(0,"b-signal-chip",49)},Iwb=function(a,b){a&1&&(K(0,"td",47),F(1,Gwb,2,3)(2,Hwb,1,0,"b-signal-chip",49),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:2))},Jwb=function(a){a&1&&(K(0,"th",51),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TIMEFRAME),B(),S(" ",a.getDisplayName(a.IssueFieldType.TIMEFRAME)," "))},Kwb=function(a,b){a&1&&(K(0,"td",30),M(1,"issue-timeframe",52),T(2,"async"),L());a&2&&(a=b.$implicit,
B(),I("issue",U(2,2,a.issue$))("showIcon",!1))},Lwb=function(a){a&1&&(K(0,"th",43),Q(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.PROGRESS),B(),S(" ",a.getDisplayName(a.IssueFieldType.PROGRESS)," "))},Mwb=function(a,b){a&1&&(K(0,"td",30),M(1,"progress-pie",36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Nwb=function(a){a&1&&M(0,"th",26)},Owb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"b-actions-menu",53);N("click",function(f){u(c);return v(f.stopPropagation())});
L()()}if(a&2){a=b.$implicit;b=P(2);B();var d,e;I("buttonLabel",(d=b.options.menu==null?null:b.options.menu.buttonLabel)!=null?d:b.DEFAULT_MENU_OPTIONS.buttonLabel)("buttonIcon",(e=b.options.menu==null?null:b.options.menu.buttonIcon)!=null?e:b.DEFAULT_MENU_OPTIONS.buttonIcon)("menuItems",b.getMenuItems(a.issueIds[0]))}},Pwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.COMPONENT_PATH)," "))},Qwb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-component-name-cell",
36),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},Rwb=function(a){a&1&&(K(0,"th",26),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.getDisplayName(a.IssueFieldType.ENRICHMENT_CATEGORIES)," "))},Swb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-enrichment-categories-cell",54),L());a&2&&(a=b.$implicit,b=P(2),B(),I("enrichmentCategoryNames",b.enrichmentCategoriesFunction(a.issueIds[0])))},Twb=function(a){a&1&&(K(0,"th",26)(1,"span"),Q(2),L()());if(a&2){a=P().$implicit;var b=P(2);B(2);S(" ",b.getCustomFieldName(a),
" ")}},Uwb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);B();S(" ",c.getCustomFieldValue(a,b)," ")}},Vwb=function(a){a&1&&F(0,Uwb,2,1,"span");a&2&&(P(4),G(0))},Wwb=function(a,b){a&1&&(K(0,"td",30),F(1,Vwb,1,1),T(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=U(2,1,a.issue$))?1:-1,c)}},Xwb=function(a,b){a&1&&(Uf(0,8),E(1,Twb,3,1,"th",5)(2,Wwb,3,3,"td",9),Vf());a&2&&(a=b.$implicit,b=P(2),I("matColumnDef",Fg("",b.IssueFieldType.CUSTOM_FIELD,"-",a)))},Ywb=function(a){a&
1&&M(0,"tr",55)},$wb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);T(2,"async");N("click",function(d){u(c);var e=qg(1),f=P(2);return v(Zwb(f,d,e))})("mouseup",function(d){u(c);var e=qg(1),f=P(2);return v(Zwb(f,d,e))})("focusin",function(){var d=u(c).$implicit,e=P(2);return v(e.focusManager==null?null:Cs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),wg("closed",b.options.deEmphasizeClosedIssues&&b.isClosed(U(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))},axb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);N("click",function(d){u(c);var e=qg(1),f=P(2);return v(Zwb(f,d,e))})("mouseup",function(d){u(c);var e=qg(1),f=P(2);return v(Zwb(f,d,e))})("focusin",function(){var d=u(c).$implicit,
e=P(2);return v(e.focusManager==null?null:Cs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),wg("active",b.options.activeRowMode===b.ActiveRowMode.REMAIN_ACTIVE&&b.idsToString(b.focusManager==null?null:b.focusManager.activeItem==null?null:b.focusManager.activeItem.row==null?null:b.focusManager.activeItem.row.issueIds)===b.idsToString(a.issueIds)),I("row",a))},cxb=function(a,b){if(a&1){var c=t();K(0,"table",3);T(1,
"async");T(2,"async");N("matSortChange",function(g){u(c);var k=P();return v(k.onSortChange(g))});Uf(3,4);E(4,tvb,1,0,"th",5)(5,uvb,1,0,"td",6);Vf();Uf(6,7);E(7,wvb,3,0,"th",5)(8,xvb,1,0,"td",6);Vf();Uf(9,8);E(10,yvb,2,0,"th",5)(11,Avb,2,1,"td",9);Vf();Uf(12,10);E(13,Cvb,2,2,"th",5)(14,Dvb,2,3,"td",9);Vf();Uf(15,11);E(16,Evb,2,2,"th",5)(17,Fvb,1,0,"td",9);Vf();Uf(18,8);E(19,Gvb,2,1,"th",5)(20,Hvb,5,15,"td",9);Vf();Uf(21,12);E(22,Ivb,2,1,"th",5)(23,Jvb,4,4,"td",9);Vf();Uf(24,8);E(25,Kvb,2,2,"th",13)(26,
Lvb,3,3,"td",9);Vf();Uf(27,8);E(28,Ovb,3,2,"th",13)(29,Uvb,3,1,"td",9);Vf();Uf(30,8);E(31,Vvb,2,2,"th",13)(32,Wvb,3,3,"td",9);Vf();Uf(33,8);E(34,Xvb,2,2,"th",14)(35,Zvb,4,4,"td",9);Vf();Uf(36,15);E(37,$vb,1,0,"th",16)(38,awb,2,0,"td",9);Vf();Uf(39,8);E(40,bwb,2,2,"th",13)(41,cwb,3,3,"td",9);Vf();Uf(42,8);E(43,dwb,2,1,"th",5)(44,ewb,3,3,"td",9);Vf();Uf(45,8);E(46,fwb,2,1,"th",5)(47,iwb,3,3,"td",9);Vf();Uf(48,8);E(49,jwb,2,1,"th",5)(50,mwb,3,3,"td",9);Vf();Uf(51,8);E(52,nwb,2,1,"th",5)(53,qwb,3,3,"td",
9);Vf();Uf(54,8);E(55,rwb,2,2,"th",17)(56,swb,3,4,"td",9);Vf();Uf(57,8);E(58,twb,2,2,"th",17)(59,vwb,4,3,"td",9);Vf();Uf(60,8);E(61,wwb,2,2,"th",18)(62,ywb,4,3,"td",19);Vf();Uf(63,8);E(64,zwb,2,1,"th",20)(65,Cwb,3,3,"td",19);Vf();Uf(66,8);E(67,Dwb,2,1,"th",5)(68,Iwb,3,1,"td",19);Vf();Uf(69,8);E(70,Jwb,2,2,"th",21)(71,Kwb,3,4,"td",9);Vf();Uf(72,8);E(73,Lwb,2,2,"th",17)(74,Mwb,3,3,"td",9);Vf();Uf(75,22);E(76,Nwb,1,0,"th",5)(77,Owb,2,3,"td",9);Vf();Uf(78,8);E(79,Pwb,2,1,"th",5)(80,Qwb,3,3,"td",9);Vf();
Uf(81,8);E(82,Rwb,2,1,"th",5)(83,Swb,2,1,"td",9);Vf();Of(84,Xwb,3,3,"ng-container",8,Nf);E(86,Ywb,1,0,"tr",23)(87,$wb,3,7,"tr",24)(88,axb,2,3,"tr",25);L()}if(a&2){var d,e;a=P();wg("hide-header",a.options.hideColumnHeaders);var f;I("dataSource",b)("trackBy",a.trackBy)("matSortDisabled",a.options.sortMode===a.SortMode.DISABLED)("matSortActive",(f=(d=U(1,32,a.activeSort$))==null?null:d.column)!=null?f:"")("matSortDirection",a.toMatSortDirection((e=U(2,34,a.activeSort$))==null?null:e.direction));B(9);
I("matColumnDef",a.IssueFieldType.ISSUE_ID);B(9);I("matColumnDef",a.IssueFieldType.TITLE);B(6);I("matColumnDef",a.IssueFieldType.TYPE);B(3);I("matColumnDef",a.IssueFieldType.ASSIGNEE);B(3);I("matColumnDef",a.IssueFieldType.REPORTER);B(3);I("matColumnDef",a.IssueFieldType.PRIORITY);B(6);I("matColumnDef",a.IssueFieldType.STATUS);B(3);I("matColumnDef",a.IssueFieldType.TEAM);B(3);I("matColumnDef",a.IssueFieldType.DUPLICATE_COUNT);B(3);I("matColumnDef",a.IssueFieldType.VOTE_COUNT);B(3);I("matColumnDef",
a.IssueFieldType.SEVEN_DAY_VIEW_COUNT);B(3);I("matColumnDef",a.IssueFieldType.CREATED_TIME);B(3);I("matColumnDef",a.IssueFieldType.MODIFIED_TIME);B(3);I("matColumnDef",a.IssueFieldType.RELATIVE_MODIFIED_TIME);B(3);I("matColumnDef",a.IssueFieldType.TRIAGER);B(3);I("matColumnDef",a.IssueFieldType.ALERTS);B(3);I("matColumnDef",a.IssueFieldType.TIMEFRAME);B(3);I("matColumnDef",a.IssueFieldType.PROGRESS);B(6);I("matColumnDef",a.IssueFieldType.COMPONENT_PATH);B(3);I("matColumnDef",a.IssueFieldType.ENRICHMENT_CATEGORIES);
B(3);Pf(a.customFieldIds);B(2);I("matHeaderRowDef",a.tableColumns);B();I("matRowDefColumns",a.tableColumns)("matRowDefWhen",a.isSingleIssue);B();I("matRowDefColumns",bxb(a))("matRowDefWhen",a.isMultiIssue)}},dxb=function(a){if(a&1){var b=t();K(0,"button",58);N("click",function(){u(b);var c=P(5);return v(c.rowLimit$.next(void 0))});Q(1," Show more ");L()}},exb=function(a){a&1&&F(0,dxb,2,0,"button",57);if(a&2){a=P();var b=P();G(a.length<b?0:-1)}},fxb=function(a){if(a&1){var b=t();K(0,"button",58);N("click",
function(){u(b);var c=P(5);return v(c.rowLimit$.next(c.options.rowLimit))});Q(1," Show less ");L()}},gxb=function(a){a&1&&F(0,fxb,2,0,"button",57);if(a&2){a=P();var b=P(3);G(a.length>b.options.rowLimit?0:-1)}},hxb=function(a){a&1&&(F(0,exb,1,1),T(1,"async"),Lf(2,gxb,1,1));if(a&2){var b;a=P(3);G((b=U(1,1,a.rowLimit$))?0:2,b)}},ixb=function(a){a&1&&(F(0,hxb,3,3),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.rows$))?0:-1,b)}},jxb=function(a){a&1&&(K(0,"div",2),F(1,ixb,2,3),T(2,"async"),L());if(a&2){var b;
a=P();B();G((b=U(2,1,a.rowCountAfterFilters$))?1:-1,b)}},kxb=function(a,b){return a===b?!0:a&&b?y_a(a.issueIds,b.issueIds):!1},lxb=function(a){var b;return(b=a==null?void 0:a.join(";"))!=null?b:""},lo=function(a){return yr(a.issue$)},mxb=function(a,b){if(!b)return a;switch(b.column){case "STATUS":return IUa()(a,b.direction);case "ASSIGNEE":return JUa()(a,b.direction);case "REPORTER":return LUa()(a,b.direction);case "TYPE":return KUa()(a,b.direction);case "CREATED_TIME":return MUa(lo)(a,b.direction);
case "MODIFIED_TIME":case "RELATIVE_MODIFIED_TIME":return NUa(lo)(a,b.direction);case "PRIORITY":return TUa(lo)(a,b.direction);case "PROGRESS":return UUa()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.column+"' not implemented"),a}},nxb=function(a,b){var c=a.views24h;var d=a.views7d;a=a.views30d;if(go(c[b],c))return{title:"Trending 24h",tooltip:c[b]+" Views in 24 hours",cssClass:"cyan"};if(go(d[b],d))return{title:"Trending 7d",tooltip:d[b]+" Views in 7 days",cssClass:"purple"};
if(go(a[b],a))return{title:"Trending 30d",tooltip:a[b]+" Views in the last 30 days",cssClass:"blue"}},pxb=function(a,b){if(a&1){var c=t();K(0,"b-issues-table",1);N("issueNavigated",function(d){u(c);var e=P();return v(oxb(e,e.EventType.EVENT_TYPE_GO_TO_ISSUE,d))});L()}a&2&&(a=P(),I("issueIds",b.issueIds)("tableColumns",b.tableColumns)("options",a.tableOptions)("enrichmentCategoriesFunction",b.categoriesFunction)("menuItemFactory",a.menuItemFactory))},qxb=function(a){a&1&&(K(0,"div"),M(1,"b-spinner"),
L())},rxb=function(a){a&1&&M(0,"b-issue-card",13,1);if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",b)}},sxb=function(a){a&1&&(K(0,"span",11),Q(1,"CURRENT ISSUE"),L())},txb=function(a,b){a&1&&Q(0);a&2&&zg(" ",b.length," comment",b.length===1?"":"s"," ")},uxb=function(a,b){a&1&&Q(0);a&2&&zg(" \u00b7 ",b.length," dupe",b.length===1?"":"s"," ")},vxb=function(a,b){a&1&&(K(0,"div",5),M(1,"div",6)(2,"b-issue-id-cell",7),K(3,"a",8)(4,"span",9),Q(5),L()(),K(6,"onedev-hovercard",null,
0),E(8,rxb,2,2,"b-issue-card",10),L(),F(9,sxb,2,0,"span",11),K(10,"div",12),F(11,txb,1,2),T(12,"async"),F(13,uxb,1,2),T(14,"async"),Q(15),L()());if(a&2){var c,d;a=qg(7);var e=P(),f=P();B(2);I("id",e);B();I("href",f.getIssueLink(e),Pe);B();I("onedevHovercardTrigger",a);B();yg(b.snapshot[0].title);B(4);G(e===f.currentIssue.issueId?9:-1);B(2);G((c=U(12,9,f.canonicalComments$))?11:-1,c);B(2);G((d=U(14,11,f.canonicalDuplicates$))?13:-1,d);b=(b==null?null:b.aggregatedData==null?null:b.aggregatedData.voteCount)||
0;B(2);zg(" \u00b7 ",b>9999?"9999+":b," vote",b===1?"":"s"," ")}},wxb=function(a,b){a&1&&(F(0,vxb,16,13,"div",5),T(1,"async"));if(a&2){var c;a=P();G((c=U(1,1,a.issue$(b)))?0:-1,c)}},xxb=function(a){a&1&&(K(0,"div",15)(1,"span",26),Q(2," \u2b90 "),L()())},yxb=function(a){a&1&&M(0,"span",17)},zxb=function(a){a&1&&M(0,"b-issue-card",13,3);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b.issueId)}},Axb=function(a){a&1&&(K(0,"span",11),Q(1,"CURRENT ISSUE"),L())},Dxb=function(a,
b){if(a&1){var c=t();K(0,"div",14);F(1,xxb,3,0,"div",15);K(2,"div",16);F(3,yxb,1,0,"span",17);M(4,"mat-icon",18);L();M(5,"b-issue-id-cell",7);K(6,"a",19)(7,"span",20);Q(8);L()();K(9,"onedev-hovercard",null,2);E(11,zxb,2,2,"b-issue-card",10);L();F(12,Axb,2,0,"span",11);K(13,"div",21)(14,"button",22);N("click",function(){var f=u(c),g=P(2);return v(Bxb(g,f))});M(15,"mat-icon",23);L();K(16,"button",24);N("click",function(){var f=u(c),g=P(2);return v(Cxb(g,f.issueId))});M(17,"mat-icon",25);L()()()}if(a&
2){a=qg(10);var d=P().$index,e=P();B();G(d===0?1:-1);B(2);G(d!==0?3:-1);B(2);I("id",b.issueId);B();I("href",e.getIssueLink(b.issueId),Pe);B();I("onedevHovercardTrigger",a);B();yg(b.snapshot[0].title);B(4);G(b.issueId===e.currentIssue.issueId?12:-1);B(2);Kf("aria-label","Make "+b.snapshot[0].title+" the canonical issue");B(2);I("disabled",e.draftActions.length<2);Kf("aria-label","Remove "+b.snapshot[0].title)}},Exb=function(a,b){a&1&&(F(0,Dxb,18,10,"div",14),T(1,"async"));if(a&2){var c;a=b.$implicit;
b=P();G((c=U(1,1,b.issue$(a.issueId)))?0:-1,c)}},Fxb=function(a){if(a&1){var b=t();K(0,"div")(1,"button",27);N("click",function(){u(b);P().showExpansionOption=!1;return v()});K(2,"span");Q(3);L()()()}a&2&&(a=P(),B(),Kf("aria-label","View "+a.hiddenActionCount+" more issues"),B(2),S("View ",a.hiddenActionCount," more"))},Gxb=function(a){a&1&&Wf(0)},Jxb=function(a){if(a&1){var b=t();K(0,"div",1);N("keydown",function(c){u(b);var d=P();return v(d.processKeydown(c))});K(1,"div",2);E(2,Gxb,1,0,"ng-container",
3);L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return v(Hxb(c))});Q(5,"Save");L();K(6,"button",6);N("click",function(){u(b);var c=P();return v(Ixb(c))});Q(7,"Cancel");L()()()}a&2&&(a=P(),I("cdkTrapFocusAutoCapture",!0),B(2),I("ngTemplateOutlet",a.editorTemplate),B(2),I("disabled",a.saveDisabled()))},Kxb=function(a){if(a&1){var b=t();K(0,"input",4,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});L()}a&2&&(a=P(),I("required",
a.required)("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("formControl",a.inputValue))},Lxb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.displayValueOverride," "))},Mxb=function(a){a&1&&Wf(0)},Oxb=function(a){a&1&&E(0,Mxb,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Ig(2,Nxb,a.email)))},Pxb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.email," "))},Qxb=function(a){a&1&&(Ad(),K(0,"svg",
5),M(1,"path",6),L())},Rxb=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)}},Sxb=function(a,b){a&1&&F(0,Rxb,1,4,"b-user-membership-chip",3);a&2&&(a=b.$implicit,b=P(),G(a&&b.user?0:-1))},Txb=function(a,b){return this.groupTrackBy(b)},Uxb=function(a){a&1&&M(0,"b-user-picker",13);if(a&2){P(2);a=bg(3);P(2);var b=bg(1),c=P();I("user",a)("teamId",c.getTeamId(b))("disabled",!0)}},Vxb=
function(a){a&1&&(K(0,"span",14),Q(1,"<none>"),L())},Wxb=function(a){a&1&&(F(0,Uxb,1,3,"b-user-picker",13)(1,Vxb,2,0,"span",14),K(2,"mat-icon",15),Q(3," -> "),L());a&2&&(P(),a=bg(3),G(a?0:1))},Xxb=function(a){a&1&&(K(0,"span",11),Q(1,"Reporter"),L())},Zxb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(){u(b);P();var f=qg(6);return v(f.openPopOver())});M(1,"mat-icon",17);L();Wf(2,18)}if(a&2){a=P(3).$implicit;var c=bg(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));
B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,Yxb,a))}},ayb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Assignee");L();K(2,"div",9);$f(3);F(4,Wxb,4,1);K(5,"b-user-picker",10,1);T(7,"emailToUser");N("emailChange",function(g){u(b);P(2);var k=bg(0),l=P();return v($xb(l,k,g))});L();F(8,Xxb,2,0,"span",11);L();K(9,"div",12);F(10,Zxb,3,5);L()}if(a&2){P(2);a=bg(0);var c=bg(1),d=P();B(3);var e=ag(d.getAssignee(c)),f=e&&!a.value&&a.actionType===d.ActionType.REMOVE;B();G(f||a.value&&(e==null?
null:e.emailAddress)!=a.value?4:-1);B();I("user",f?void 0:a.value?U(7,8,a.value):e)("displayValueOverride",f?"<none>":"")("teamId",d.getTeamId(c))("disabled",!a.allowEdit||d.excludedActions.has(a.actionKey));B(3);G(a.value===d.userToLossyEmail(d.getReporter(c))?8:-1);B(2);G(a.allowEdit?10:-1)}},byb=function(a){a&1&&(M(0,"b-edit-field",21),K(1,"mat-icon",15),Q(2," -> "),L());if(a&2){P(3);a=bg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getPriority(a))!=null?c:null)("choices",b.priorityChoices)("readonly",
!0)}},dyb=function(a){if(a&1){var b=t();K(0,"button",22);N("click",function(f){u(b);P();var g=qg(5);return v(Yr(g,f,!0,!0))});M(1,"mat-icon",17);L();Wf(2,18)}if(a&2){a=P(3).$implicit;var c=bg(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,cyb,a))}},eyb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Priority");L();K(2,"div",19);F(3,byb,3,4);K(4,"b-edit-field",20,2);N("valueChange",function(g){u(b);P(2);var k=bg(0),l=P();
return v($xb(l,k,g!=null?g:l.IssuePriority.P2))});L()();K(6,"div",12);F(7,dyb,3,5);L()}if(a&2){P(2);a=bg(0);var c=bg(1),d=P();c=d.getPriority(c);B(3);G(a.value&&c!==a.value?3:-1);B();var e,f;I("type",d.FieldType.ENUM)("value",(f=(e=a.value)!=null?e:c)!=null?f:null)("choices",d.priorityChoices)("readonly",!a.allowEdit);B(3);G(a.allowEdit?7:-1)}},hyb=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);P(4);var f=bg(0),g=bg(1),k=P();return v(fyb(k,f,g))});M(1,"mat-icon",17);L();
Wf(2,18)}if(a&2){a=P(4).$implicit;var c=bg(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,gyb,a))}},iyb=function(a){a&1&&(K(0,"div",8),Q(1,"Comment"),L(),K(2,"div",19),M(3,"b-live-preview",23),T(4,"async"),L(),K(5,"div",12),F(6,hyb,3,5),L());if(a&2){P(3);a=bg(0);var b=P();B(3);var c,d;I("comment",a.value)("issueId",a.issueId)("audience",(c=U(4,5,b.formattingAudience$))!=null?c:void 0)("formattingMode",(d=a.formattingMode)!=
null?d:b.FormattingMode.PLAIN);B(3);G(a.allowEdit?6:-1)}},jyb=function(a){a&1&&F(0,iyb,7,7);a&2&&(a=P(3),G(a.includeCommentByDefault?0:-1))},kyb=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",26),K(1,"mat-icon",15),Q(2," -> "),L());if(a&2){P(3);a=bg(0);var b=bg(1),c=P();I("issueId",a.issueId)("componentId",c.getComponentId(b))("compactMode",!0)("readOnly",!0)}},myb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);P();var f=qg(5);f.editing=!0;f.cdr.markForCheck();return v()});
M(1,"mat-icon",17);L();Wf(2,18)}if(a&2){a=P(3).$implicit;var c=bg(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,lyb,a))}},nyb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Component");L();K(2,"div",19);F(3,kyb,3,4);K(4,"b-component-breadcrumb-chip",25,3);N("componentChanged",function(d){u(b);P(2);var e=bg(0),f=P();return v($xb(f,e,d))});L()();K(6,"div",12);F(7,myb,3,5);L()}if(a&2){P(2);a=bg(0);var c=bg(1);c=P().getComponentId(c);
B(3);G(c!==a.value?3:-1);B();I("issueId",a.issueId)("componentId",a.value)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!1)("readOnly",!0);B(3);G(a.allowEdit?7:-1)}},oyb=function(a){a&1&&(K(0,"mat-icon",29),Q(1," + "),L(),M(2,"b-hotlist-chip",30));a&2&&(P(2),a=bg(1),B(2),I("hotlist",a)("removable",!1))},pyb=function(a){a&1&&F(0,oyb,3,2);a&2&&(P(),a=bg(1),G(a?0:-1))},qyb=function(a){a&1&&(K(0,"mat-icon",31),Q(1," - "),L(),M(2,"b-hotlist-chip",30));a&2&&(P(),a=bg(1),B(2),I("hotlist",
a)("removable",!1))},ryb=function(a,b){a&1&&(K(0,"div",28),$f(1),T(2,"async"),F(3,pyb,1,1)(4,qyb,3,2),L());if(a&2){a=b.$implicit;b=P().$implicit;P(3);var c=bg(1),d=P();B();ag(U(2,1,d.hotlist$(a)));B(2);G(b.actionType!==d.ActionType.ADD||d.hasHotlist(c,a)?b.actionType===d.ActionType.REMOVE&&d.hasHotlist(c,a)?4:-1:3)}},syb=function(a,b){a&1&&Of(0,ryb,5,4,"div",28,Nf);a&2&&(a=b.$implicit,b=P(4),Pf(b.split(a.value)))},uyb=function(a){if(a&1){var b=t();K(0,"button",32);N("click",function(){u(b);var f=
P(3).$implicit,g=P();return v(g.openHotlistPicker(f))});M(1,"mat-icon",17);L();Wf(2,18)}if(a&2){a=P(3).$implicit;var c=bg(0),d=P(),e=qg(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Ig(3,tyb,a))}},wyb=function(a){a&1&&(K(0,"span",8),Q(1,"Hotlist"),L(),K(2,"div",19),Of(3,syb,2,0,null,null,vyb),L(),K(5,"div",12),F(6,uyb,3,5),L());if(a&2){a=P(2).$implicit;var b=bg(0);B(3);Pf(a);B(3);G(b.allowEdit?6:-1)}},xyb=function(a){a&1&&(K(0,"mat-icon",
33),Q(1," + "),L(),M(2,"b-user-picker",13),T(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=bg(1),c=P();B(2);I("user",U(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},yyb=function(a){a&1&&(K(0,"mat-icon",34),Q(1," - "),L(),M(2,"b-user-picker",13),T(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=bg(1),c=P();B(2);I("user",U(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},Ayb=function(a,b){a&1&&(K(0,"div",28),F(1,xyb,4,5)(2,yyb,4,5),L());if(a&2){a=b.$implicit;b=P().$implicit;
P(3);var c=bg(1),d=P();B();G(b.actionType!==d.ActionType.ADD||zyb(c,a)?b.actionType===d.ActionType.REMOVE&&zyb(c,a)?2:-1:1)}},Byb=function(a,b){a&1&&Of(0,Ayb,3,1,"div",28,Nf);a&2&&(a=b.$implicit,b=P(4),Pf(b.split(a.value)))},Dyb=function(a){a&1&&(K(0,"span",8),Q(1,"CCs"),L(),K(2,"div",9),Of(3,Byb,2,0,null,null,vyb),L(),K(5,"div",12),Wf(6,18),L());if(a&2){a=P(2).$implicit;P();var b=qg(4);B(3);Pf(a);B(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Cyb,a))}},Eyb=function(a){a&1&&(M(0,"b-edit-field",
21),K(1,"mat-icon",15),Q(2," -> "),L());if(a&2){P(3);a=bg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getStatus(a))!=null?c:null)("choices",b.statusChoices)("readonly",!0)}},Gyb=function(a){if(a&1){var b=t();K(0,"span",8);Q(1,"Status");L();K(2,"div",9);F(3,Eyb,3,4);K(4,"b-edit-field",20,4);N("valueChange",function(l){u(b);P(2);var r=bg(0),w=P();return v($xb(w,r,l!=null?l:w.IssueStatus.NEW))});L()();K(6,"div",12);Wf(7,18);L()}if(a&2){a=P(2).$implicit;var c=bg(0),d=bg(1),e=P(),f=qg(4);d=
e.getStatus(d);B(3);G(c.value&&d!==c.value?3:-1);B();var g,k;I("type",e.FieldType.ENUM)("value",(k=(g=c.value)!=null?g:d)!=null?k:null)("choices",e.statusChoices)("readonly",!0);B(3);I("ngTemplateOutlet",f)("ngTemplateOutletContext",Ig(7,Fyb,a))}},Hyb=function(a){a&1&&F(0,ayb,11,10)(1,eyb,8,6)(2,jyb,1,1)(3,nyb,8,8)(4,wyb,7,1)(5,Dyb,7,4)(6,Gyb,8,9);if(a&2){var b;P();a=bg(0);var c=P();G((b=a.fieldName)===c.IssueFieldName.ASSIGNEE?0:b===c.IssueFieldName.PRIORITY?1:b===c.IssueFieldName.COMMENT?2:b===
c.IssueFieldName.COMPONENT_ID?3:b===c.IssueFieldName.HOTLISTS?4:b===c.IssueFieldName.CCS?5:b===c.IssueFieldName.STATUS?6:-1)}},Iyb=function(a,b){a&1&&($f(0)(1),T(2,"async"),K(3,"div",7),F(4,Hyb,7,1),L());if(a&2){b=b.$implicit;a=P();b=ag(b[0]);B();var c=ag(U(2,6,a.issue$(b.issueId)));B(2);wg("excluded",a.excludedActions.has(b.actionKey))("hide-comment",!a.includeCommentByDefault);B();G(c?4:-1)}},Jyb=function(a){if(a&1){var b=t();K(0,"button",37);N("click",function(){u(b);var c=P(2).group,d=P();c=m(c);
for(var e=c.next();!e.done;e=c.next())d.excludedActions.delete(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",38);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Eg("Include ",a)),Kf("aria-label","Include "+a))},Kyb=function(a){if(a&1){var b=t();K(0,"button",39);N("click",function(){u(b);var c=P(2).group,d=P();c=m(c);for(var e=c.next();!e.done;e=c.next())d.excludedActions.add(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",40);L()}a&2&&(a=P(2).fieldName,
I("matTooltip",Eg("Exclude ",a)),Kf("aria-label","Exclude "+a))},Lyb=function(a){a&1&&F(0,Jyb,2,3,"button",35)(1,Kyb,2,3,"button",36);if(a&2){P();a=bg(0);var b=P();G(b.excludedActions.has(a.actionKey)?0:1)}},Myb=function(a,b){a&1&&($f(0),F(1,Lyb,2,1));a&2&&(a=ag(b.group[0]),B(),G(a.allowExclude?1:-1))},Nyb=function(a,b){a=fo(a,function(f){return f.actionKey});var c=[];b=m(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 pm(c)},Oyb=
function(a){a&1&&(K(0,"div",1),Q(1),L());a&2&&(a=P(),B(),yg(a.getRecommendationText()))},Qyb=function(a,b){if(a&1){var c=t();K(0,"b-dedupe-actions-component",12);T(1,"async");N("actionsToAccept",function(e){u(c);var f=P(2);return v(f.updateActionsToAccept(e))});L()}if(a&2){a=P(2);var d;I("currentIssue",b)("actions",(d=U(1,2,a.actions$))!=null?d:Hg(4,Pyb))}},Ryb=function(a){a&1&&(F(0,Qyb,2,5,"b-dedupe-actions-component",11),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.currentIssue$))?0:-1,b)}},Syb=
function(a){if(a&1){var b=t();K(0,"b-issue-actions-component",13);T(1,"async");N("actionsToAccept",function(d){u(b);var e=P();return v(e.updateActionsToAccept(d))});L()}if(a&2){a=P();var c;I("actions",(c=U(1,2,a.actions$))!=null?c:Hg(4,Pyb))("includeCommentByDefault",a.includeComment||a.recommendation.type!==a.RecommendationType.ANY_ISSUE_EDIT)}},Tyb=function(a){a&1&&M(0,"b-formatted-comment-presenter",15);a&2&&(a=P(2),I("formattedComment",a.recommendation.rationale.formattedText)("canEditComment",
!1))},Uyb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),yg(a.recommendation.rationale.text))},Vyb=function(a){a&1&&(M(0,"mat-divider"),K(1,"div",14)(2,"b"),Q(3,"Rationale: "),L(),F(4,Tyb,1,2,"b-formatted-comment-presenter",15)(5,Uyb,2,1,"span"),L());a&2&&(a=P(),B(4),G(a.recommendation.rationale.formattedText?4:5))},Wyb=function(a){a&1&&M(0,"b-spinner",9)},Xyb=function(a){if(a&1){var b=t();K(0,"div",10)(1,"button",16);N("click",function(){u(b);var c=P(),d=bg(17);return v(c.openLink(d))});
M(2,"mat-icon",17);L()()}},Yyb=function(a){a&1&&M(0,"div",2)},Zyb=function(a){a&1&&(Uf(0),dg(1),Vf())},$yb=function(a){a&1&&(Ad(),K(0,"svg",1),M(1,"path",2),L());a&2&&(a=P(),I("matTooltip",a.warning))},azb=function(a){a&1&&M(0,"b-availability-chip",3);a&2&&(a=P(),I("user",a.user))},bzb=function(a){a&1&&(K(0,"div",4),dg(1,1),L());a&2&&(a=P(),I("id",Eg("expansion-panel-content-",a.instance)),Kf("aria-labelledby","expansion-panel-header-"+a.instance))},czb=function(a,b){a&1&&(K(0,"div")(1,"span",16),
Q(2,"Phase:\u00a0"),L(),K(3,"span",17),Q(4),L()());a&2&&(B(4),yg(b))},dzb=function(a,b){a&1&&(K(0,"div")(1,"span",16),Q(2,"Subphase:\u00a0"),L(),K(3,"span",17),Q(4),L()());a&2&&(B(4),yg(b))},ezb=function(a){a&1&&M(0,"b-issue-card",20,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b)}},fzb=function(a,b){a&1&&(K(0,"span",18),Q(1),L(),K(2,"onedev-hovercard",null,0),E(4,ezb,2,2,"b-issue-card",19),L());a&2&&(a=qg(3),I("onedevHovercardTrigger",a),B(),S("Duplicate of ",b))},hzb=
function(a,b){if(a&1){var c=t();K(0,"span",16);Q(1,"Triager:\u00a0");L();M(2,"b-user-image",22);K(3,"b-single-user-control",23,3);T(5,"async");N("valueChange",function(f){u(c);var g=P(3);return v(gzb(g,f.newEmail))})("emailChange",function(f){u(c);var g=P(3);return v(gzb(g,f))});L();K(6,"button",24);N("click",function(f){u(c);qg(4).openEditor();return v(f.stopPropagation())});M(7,"mat-icon",25);L()}if(a&2){P();a=qg(1);var d=P(2);B(2);I("email",b);B();var e;I("name","triager")("anchor",a)("title",
"Triager")("value",b)("user",(e=U(5,6,d.triager$))!=null?e:void 0)}},izb=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){u(b);var c=P(3);return v(c.claim())});Q(1," Claim ");L()}},jzb=function(a){a&1&&(K(0,"div",10,2),F(2,hzb,8,8),T(3,"async"),Lf(4,izb,2,0,"button",21),L());if(a&2){var b;a=P(2);B(2);G((b=U(3,1,a.triagerEmail$))?2:4,b)}},kzb=function(a,b){a&1&&(K(0,"span",45),Q(1,"Reporter:"),L(),M(2,"b-user-image",22)(3,"b-user-display",51),K(4,"onedev-hovercard",null,5),M(6,"b-issue-person-card",
52),L());if(a&2){a=qg(5);var c=P();B(2);I("email",b);B();I("onedevHovercardTrigger",a)("model",c);B(3);I("email",b)}},lzb=function(a){a&1&&(F(0,kzb,7,4),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.reporterEmail$))?0:-1,b)}},mzb=function(a){if(a&1){var b=t();K(0,"b-event-stream-header",53);N("click",function(c){u(b);return v(c.stopPropagation())});L()}},nzb=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Uf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),Q(5,"Deduplicate"),L()(),Vf(),M(6,"b-recommendation",
55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},ozb=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Uf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),Q(5,"Buganizer AI"),L()(),Vf(),M(6,"b-recommendation",55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},pzb=function(a){a&1&&(F(0,ozb,7,2,"b-expansion-panel",36),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.triageRecommendation$))?0:-1,b)}},rzb=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",Hg(4,qzb))("limit",c.MAX_SIMILAR_ISSUES)}},szb=function(a,b){a&1&&F(0,rzb,1,5,"suggested-similar-issues",56);a&2&&G(b.length?0:-1)},tzb=function(a,b){if(a&1){var c=t();K(0,"secondary-footer",58);N("cancelAction",function(){u(c);var d=P(4);return v(d.cancelAction())})("finalizeAction",function(d){u(c);var e=P(4);return v(e.finalizeSecondaryAction(d))});L()}a&2&&(a=P(4),I("needsInfoAutomaticChanges",b)("selectedTriageAction",a.selectedTriageAction))},
uzb=function(a){a&1&&(F(0,tzb,1,2,"secondary-footer",57),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.needsInfoAutomaticChanges$))?0:-1,b)}},vzb=function(a,b){if(a&1){var c=t();K(0,"button",61);T(1,"async");N("click",function(){var d=u(c).$implicit,e=P(4),f=P();return v(f.openSecondaryActionFooter(d.key,e))});Q(2);L()}a&2&&(a=b.$implicit,b=P(5),I("disabled",!U(1,2,b.hasAclToEdit$)),B(2),S(" ",a.displayAs," "))},xzb=function(a,b){if(a&1){var c=t();K(0,"triage-action-selector",59);N("onSelect",function(d){u(c);
var e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});L();Of(1,vzb,3,4,"button",60,wzb)}a&2&&(a=P(4),I("phase",b),B(),Pf(a.PHASE_TO_ACTIONS.get(b)))},yzb=function(a){a&1&&(F(0,xzb,3,1),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.issuePhase$))?0:-1,b)}},zzb=function(a,b){a&1&&(K(0,"div",27)(1,"div",28),M(2,"issue-title",29),T(3,"async"),K(4,"div",30)(5,"div")(6,"span",31),Q(7),T(8,"enumToHuman"),L()(),K(9,"div")(10,"span",32),M(11,"b-issue-priority-display",33),L()(),M(12,"mat-divider",
34)(13,"b-issue-hotlists",35),L()(),K(14,"b-expansion-panel",36),Uf(15,37),K(16,"div",38),M(17,"mat-icon",39),K(18,"h4",40),Q(19,"Description"),L(),F(20,lzb,2,3),T(21,"async"),L(),Vf(),M(22,"b-issue-description",41),L(),K(23,"b-expansion-panel",36,4),Uf(25,37),K(26,"div",42),M(27,"mat-icon",43),K(28,"h4",44),Q(29),T(30,"async"),L(),F(31,mzb,1,0,"b-event-stream-header",45),T(32,"async"),L(),Vf(),M(33,"b-event-stream",46),T(34,"async"),T(35,"async"),T(36,"async"),T(37,"async"),L(),F(38,nzb,7,2,"b-expansion-panel",
36),T(39,"async"),F(40,pzb,2,3),K(41,"b-expansion-panel",36),Uf(42,37),K(43,"div",42),M(44,"mat-icon",47),K(45,"h4",48),Q(46),T(47,"async"),L(),M(48,"mat-icon",49),T(49,"async"),L(),Vf(),F(50,szb,1,1),T(51,"async"),L()(),K(52,"div",50),F(53,uzb,2,3)(54,yzb,2,3),L());if(a&2){var c,d,e,f,g,k;a=qg(24);var l=P(),r=P();B(2);I("title",b.snapshot[0].title)("issueId",l)("componentId",b.snapshot[0].componentId)("hasAclToEdit",U(3,27,r.hasAclToEdit$));B(5);yg(U(8,29,b.snapshot[0].type));B(4);I("issuePriority",
b.snapshot[0].priority);B();I("vertical",!0);B();I("issueId",l);B();I("expanded",!0);B(6);G((c=U(21,31,r.reporterUser$))?20:-1,c);B(2);I("id",l);B();I("expanded",!0);B(6);S("Comments (",(d=U(30,33,r.comments$))==null?null:d.length,")");B(2);G(a.expanded&&((e=U(32,35,r.comments$))==null?0:e.length)?31:-1);B(2);I("issueId",l)("events",U(34,37,r.events$))("issueAccessLevel",U(35,39,r.accessLevel$))("showFullHistory",U(36,41,r.preferences.showFullHistory$));Kf("data-will-inline-screenshots",U(37,43,r.enableInlineScreenshots$)?
!0:null);B(5);G((f=U(39,45,r.dedupeRecommendation$))?38:-1,f);B(2);G(r.isPlaybookEnabled?40:-1);B();I("expanded",!0);B(5);S(" Similar issues (",(g=U(47,47,r.similarIssueIds$))==null?null:g.length,") ");B(2);var w;I("matTooltip",Eg("Similar issues found in query: ",(w=U(49,49,r.triageScope$))!=null?w:""));B(2);G((k=U(51,51,r.similarIssueIds$))?50:-1,k);B(3);G(r.displaySecondaryFooter?53:54)}},Azb=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",7)(2,"div",8);M(3,"b-issue-id-picker",9);F(4,czb,
5,1,"div");T(5,"async");F(6,dzb,5,1,"div");T(7,"async");F(8,fzb,5,2);T(9,"async");F(10,jzb,5,3,"div",10);T(11,"async");L();K(12,"div",11)(13,"a",12);M(14,"mat-icon",13);L();K(15,"button",14);N("click",function(){u(c);var k=P();return v(k.triageService.closeSidebar())});M(16,"mat-icon",15);L()()();F(17,zzb,55,53);T(18,"async");L()}if(a&2){var d,e,f,g;a=P();B(3);I("issueId",b)("showCopyOptions",!1);B();G((d=U(5,9,a.issuePhaseDisplay$))?4:-1,d);B(2);G((e=U(7,11,a.issueSubphaseDisplay$))?6:-1,e);B(2);
G((f=U(9,13,a.canonicalIssueId$))?8:-1,f);B(2);G(U(11,15,a.issuePhase$)===a.TriagePhase.NEW?10:-1);B(3);I("href",Eg("/issues/",b),Pe);B(4);G((g=U(18,17,a.issue$))?17:-1,g)}},Czb=function(a,b){if(a&1){var c=t();$f(0);T(1,"async");$f(2);T(3,"async");K(4,"button",1);N("click",function(){var e=u(c),f=bg(0),g=P();return v(Bzb(g,e,f))});Q(5);L()}if(a&2){a=P();ag(U(1,3,a.hasUserClaimedIssues$));var d=U(3,6,a.buttonText$);B(4);I("ariaLabel",d+" "+b.length+" issues")("disabled",a.isSaving);B();yg(d)}},Dzb=
function(a,b){a&1&&(K(0,"div",2)(1,"span",8),Q(2,"Phase:\u00a0"),L(),K(3,"span",9),Q(4),L()());a&2&&(B(4),yg(b))},Ezb=function(a,b){a&1&&(K(0,"span",10),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a))},Fzb=function(a){a&1&&(K(0,"div")(1,"span",8),Q(2,"Subphase:\u00a0"),L(),Of(3,Ezb,2,1,"span",10,Nf),L());a&2&&(a=P(),B(3),Pf(a))},Gzb=function(a,b){a&1&&F(0,Fzb,5,0,"div");a&2&&G(b.length?0:-1)},Hzb=function(a){if(a&1){var b=t();K(0,"secondary-footer",12);N("cancelAction",function(){u(b);var c=P(3);return v(c.cancelAction())})("finalizeAction",
function(c){u(b);var d=P(3);return v(d.finalizeSecondaryAction(c))});L()}a&2&&(a=P(3),I("selectedTriageAction",a.selectedTriageAction))},Izb=function(a,b){if(a&1){var c=t();K(0,"button",15);T(1,"async");N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});Q(2);L()}a&2&&(a=b.$implicit,b=P(4),I("disabled",!U(1,2,b.hasAclToEdit$)),B(2),S(" ",a.displayAs," "))},Jzb=function(a){a&1&&M(0,"claim-issues-button")},Lzb=function(a){if(a&1){var b=t();K(0,"triage-action-selector",
13);N("onSelect",function(d){u(b);var e=P(2),f=P();return v(f.openSecondaryActionFooter(d.key,e))});L();Of(1,Izb,3,4,"button",14,Kzb);F(3,Jzb,1,0,"claim-issues-button")}if(a&2){a=P();var c=P(2);I("phase",a);B();Pf(c.PHASE_TO_ACTIONS.get(a));B(2);G(a===c.TriagePhase.NEW?3:-1)}},Mzb=function(a){a&1&&F(0,Hzb,1,1,"secondary-footer",11)(1,Lzb,4,2);a&2&&(a=P(2),G(a.displaySecondaryFooter?0:1))},Nzb=function(a){a&1&&(F(0,Mzb,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issuePhase$))?0:-1,b)}},Ozb=
function(a){a&1&&M(0,"b-formatted-date-time",2);a&2&&(a=P(),I("date",a.value))},Pzb=function(a){a&1&&(Uf(0),Q(1,"---"),Vf())},Qzb=function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"mat-checkbox",8);N("change",function(){var d=u(c).$implicit,e=P();return v(e.changeSelection(d))})("click",function(d){u(c);return v(d.stopPropagation())});Q(2);L()()}a&2&&(a=b.$implicit,b=P(),I("title",b.getDisplayString(a)),B(),I("checked",!!b.valueMap.get(a))("indeterminate",b.valueMap.get(a)===null),B(),S(" ",b.getDisplayString(a),
" "))},Szb=function(a){if(a&1){var b=t();K(0,"input",9,1);N("keydown",function(c){u(b);var d=P();c.key==="Enter"&&(Rzb(d)&&d.addValue(),c.preventDefault());return v()})("click",function(c){u(b);return v(c.stopPropagation())});Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.filterValue,c)||(d.filterValue=c);return v(c)});L()}a&2&&(a=P(),I("type",a.type==="REPEATED_NUMERIC"?"number":"text"),Ag("ngModel",a.filterValue),I("placeholder",a.type==="REPEATED_ENUM"?"Filter values":"Add or filter values"))},
Tzb=function(a){a&1&&M(0,"mat-divider")},Uzb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(c){u(b);var d=P();c.stopPropagation();return v(d.addValue())});Q(1," Add ");L()}},Vzb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-date-time-input",11);Cg("valueChange",function(c){u(b);var d=P();Bg(d.currentSelectedDate,c)||(d.currentSelectedDate=c);return v(c)});L();K(2,"div",12);N("click",function(c){u(b);var d=P();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+
1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return v()});Q(3," Add ");L()()}a&2&&(a=P(),B(),Ag("value",a.currentSelectedDate))},Wzb=function(a){if(a&1){var b=t();K(0,"div",6);Ad();K(1,"svg",7);M(2,"path",8);L();Cd();K(3,"input",9,0);N("input",function(){u(b);var c=qg(4),d=P();return v(d.filterText$.next(c.value))});L()()}},Xzb=function(a){a&1&&Wf(0)},Zzb=function(a){if(a&1){var b=t();K(0,"div",12);N("click",function(){u(b);var d=P(2);return v(d.select(d.emptyOptionValue))});
E(1,Xzb,1,0,"ng-container",13);L()}if(a&2){P();a=qg(4);var c=P();I("option",c.emptyOptionValue);Kf("aria-selected",c.isSelected(c.emptyOptionValue));B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(4,Yzb,c.emptyOptionValue))}},$zb=function(a){a&1&&Wf(0)},aAb=function(a){if(a&1){var b=t();K(0,"div",12);N("click",function(){u(b);var e=P().$implicit,f=P(2);return v(f.select(e))});E(1,$zb,1,0,"ng-container",13);L()}if(a&2){a=P().$implicit;P();var c=qg(4),d=P();I("option",a);Kf("aria-selected",
d.isSelected(a));B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(4,Yzb,a))}},bAb=function(a,b){a&1&&(Uf(0),E(1,aAb,2,6,"div",10),Vf());a&2&&(a=b.$implicit,B(),I("ngIf",a))},cAb=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P(2).$implicit,B(),S(" ",a," "))},dAb=function(a){a&1&&(K(0,"span",15),Q(1,"--"),L())},eAb=function(a){a&1&&(Uf(0),E(1,cAb,2,1,"ng-container",14)(2,dAb,2,0,"ng-template",null,3,Mg),Vf());if(a&2){a=qg(3);var b=P().$implicit;B();I("ngIf",b!=null)("ngIfElse",a)}},fAb=function(a){a&
1&&Wf(0)},gAb=function(a){a&1&&E(0,fAb,1,0,"ng-container",13);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Ig(2,Yzb,a))}},hAb=function(a){a&1&&E(0,eAb,4,2,"ng-container",14)(1,gAb,1,4,"ng-template",null,2,Mg);if(a&2){a=qg(2);var b=P(2);I("ngIf",!b.optionTemplate)("ngIfElse",a)}},iAb=function(a,b){a&1&&(Uf(0),E(1,Zzb,2,6,"div",10)(2,bAb,2,1,"ng-container",11)(3,hAb,3,2,"ng-template",null,1,Mg),Vf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",b.includeEmptyOption),
B(),I("ngForOf",a))},jAb=function(a){a&1&&Wf(0)},lAb=function(a){a&1&&(Uf(0),E(1,jAb,1,0,"ng-container",11),Vf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ig(2,kAb,a.value)))},mAb=function(a){a&1&&Wf(0)},nAb=function(a){a&1&&(Uf(0),E(1,mAb,1,0,"ng-container",11),Vf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Ig(2,kAb,a.value)))},oAb=function(a){a&1&&E(0,nAb,2,4,"ng-container",7);if(a&2){a=P();var b=qg(8);I("ngIf",a.optionTemplate)("ngIfElse",
b)}},pAb=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P(2),B(),S(" ",a.value," "))},qAb=function(a){a&1&&(K(0,"span",12),Q(1,"--"),L())},rAb=function(a){a&1&&E(0,pAb,2,1,"ng-container",7)(1,qAb,2,0,"ng-template",null,4,Mg);if(a&2){a=qg(2);var b=P();I("ngIf",b.value!=null)("ngIfElse",a)}},sAb=function(a){a&1&&(Ad(),K(0,"svg",13),M(1,"path",14),L())},tAb=function(a){a&1&&(K(0,"div"),Q(1," The selected issues have no custom fields in common. "),L())},uAb=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},wAb=
function(a){if(a&1){var b=t();K(0,"input",10);Cg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Bg(d.textValue,c)||(d.textValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Ag("ngModel",a.textValue),Kf("aria-labelledby",vAb(a)))},xAb=function(a){if(a&1){var b=t();K(0,"input",11);Cg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Bg(d.numericValue,c)||(d.numericValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Ag("ngModel",a.numericValue),Kf("aria-labelledby",vAb(a)))},zAb=function(a){if(a&
1){var b=t();K(0,"div")(1,"b-date-time-input",12);N("valueChange",function(e){u(b);var f=P(2).$implicit;P();return v(f.dateValue=e?O1a(e):void 0)});L()()}if(a&2){a=P(2).$implicit;var c=P();B();var d;I("value",(d=yAb(a.dateValue))!=null?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",vAb(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},BAb=function(a){if(a&1){var b=t();K(0,"onedev-single-select",13);Cg("valueChange",function(d){u(b);var e=P(2).$implicit;Bg(e.enumValue,
d)||(e.enumValue=d);return v(d)});L()}if(a&2){a=P(2).$implicit;P();Ag("value",a.enumValue);var c;I("options",(c=a.allowedValue)!=null?c:Hg(3,AAb))("labelledById",vAb(a))}},DAb=function(a){if(a&1){var b=t();K(0,"b-bulk-repeated-field-picker",14);N("onSave",function(e){u(b);var f=P(2).$implicit,g=P();return v(CAb(g,f.customFieldId,e))});L()}if(a&2){a=P(2).$implicit;var c=P(),d;I("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",(d=a.allowedValue)!=
null?d:Hg(3,AAb))}},EAb=function(a){a&1&&F(0,wAb,1,2,"input",6)(1,xAb,1,2,"input",7)(2,zAb,2,4,"div")(3,BAb,1,4,"onedev-single-select",8)(4,DAb,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)}},FAb=function(a){if(a&1){var b=t();K(0,"span");Q(1," Multiple values ");L();K(2,"a",15);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.clearCustomFieldValue(c))});Q(3,"X");L()}},
GAb=function(a,b){a&1&&(K(0,"div",1)(1,"div",4)(2,"label",5),Q(3),F(4,uAb,2,0,"span"),L()(),F(5,EAb,5,1)(6,FAb,4,0),L());a&2&&(a=b.$implicit,P(),B(2),I("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]"),Kf("id",vAb(a)),B(),S(" ",a.name," "),B(),G(a.required?4:-1),B(),G(a.hasMultipleValues?6:5))},IAb=function(a){if(a&1){var b=t();K(0,"b-list-field",2);N("valuesChange",function(d){u(b);var e=P(2);return v(e.save.emit(d.values))});L()}if(a&2){a=P();var c=P();I("readonly",c.readonly)("defaultLineCount",
3)("title",c.field.name)("type",c.field.type)("customFieldId",c.field.customFieldId)("tooltip",c.getTooltip())("values",HAb(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},LAb=function(a){if(a&1){var b=t();K(0,"b-edit-field",3);N("valueChange",function(e){u(b);var f=P(2);return v(f.save.emit(e))});L()}if(a&2){a=P();var c=P(),d;I("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",
c.getTooltip())("clearable",!c.field.required)("value",JAb(c))("displayValueOverride",c.getDisplayValue())("choices",(d=a.choices)!=null?d:Hg(12,KAb))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},MAb=function(a,b){a&1&&F(0,IAb,1,10,"b-list-field",0)(1,LAb,1,13,"b-edit-field",1);a&2&&G(b.isRepeated()?0:1)},PAb=function(a,b){var c=new NAb;OAb(c,a,b);return c},OAb=function(a,b,c){var d=Ia(b.snapshot),e=b.aggregatedData,f=b.userActivityStats;var g=b&&b.accessLimit?
b.accessLimit.accessLevel:void 0;a.accessLevel=g;a.id=b.issueId;a.issueId=b.issueId;a.trackerId=b.trackerId;d.componentId&&(a.componentId=d.componentId);c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?a.componentPath=c.componentPathInfo:a.componentPath=[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var k;a.isClosed=!((k=jo.get(d.status))==null?0:k.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=um(d.reporterUser);
a.assignee=um(d.assigneeUser);a.assigneeEmail=xm(d.assigneeUser);a.verifier=um(d.verifierUser);a.verifierEmail=xm(d.verifierUser);a.cc=vm(d.ccUsers);a.collaborator=vm(d.collaboratorsUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:"";a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&
e.resolvedTimeMicros?Math.round(e.resolvedTimeMicros/1E3):null;a.verifiedTime=e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;
d.inProd&&(a.inProd=d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;a.starred=b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.collaboratorCount=d.collaboratorsUsers?d.collaboratorsUsers.length:0;var l;a.lastModifier=um((l=b.aggregatedData)==null?void 0:l.lastModifier);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&
c.componentPathInfo.allCustomField)for(c=m(c.componentPathInfo.allCustomField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldMap[String(g.customFieldId)]=g,a.customFieldNameToIdMap[g.name.toLowerCase()]=g.customFieldId;if(d.customField)for(c=m(d.customField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldValueMap[String(g.customFieldId)]=g;a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?e.sloStatus||null:null;a.sloStartTime=d.sloStartTime;a.sloEndTime=
d.sloEndTime;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort);a.issueAccessLevel=d.issueAccessLimitLevel;a.descendantCount=b.descendantCount;a.openDescendantCount=b.openDescendantCount;a.oneDayViewCount=f?f.oneDayViewCount:0;a.sevenDayViewCount=f?f.sevenDayViewCount:0;a.thirtyDayViewCount=f?f.thirtyDayViewCount:0;a.escalationOwner=um(b.escalationOwner)},RAb=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"div",2)(3,"label");Q(4," Custom fields ");
L()();K(5,"button",3);N("click",function(){var c=u(b),d=P(2);return v(QAb(d,c))});Q(6,"Edit custom fields");L()()()}},SAb=function(a){a&1&&(F(0,RAb,7,0,"div",0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.updatedIssueRows$))?0:-1,b)}},TAb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",5);mma();N("save",function(d){var e=u(c).$implicit,f=P(2);return v(f.updateCustomField(e.customFieldId,d))});L()}a&2&&(a=b.$implicit,b=P(2),I("issue",b.editableIssue),Cma(a))},UAb=function(a){a&1&&(Of(0,
TAb,1,3,"b-custom-field-editor",4,Nf),T(2,"async"));a&2&&(a=P(),Pf(U(2,0,a.customFields$)))},VAb=function(a){if(a&1){var b=t();K(0,"input",2,0);N("input",function(){u(b);var c=P();c.manualAutocomplete&&c.findWordAroundCursor()&&(c.candidateDenylist.includes(c.wordInfo.word)?c.manualAutocomplete.cancel():c.manualAutocomplete.query=c.wordInfo.word);return v(c.emitValueChange())})("blur",function(){u(b);var c=P();return v(c.cancel())})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();
return v(d.handleSelectionChange(c))});L()}a&2&&(a=P(),I("placeholder",a.placeholder)("ngModel",a.internalValue)("peoplekitAutocompleteConfig",uhb(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions),Kf("aria-label",a.ariaLabel))},WAb=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(),Kf("aria-label",Fg("",a.title," error: ",a.invalidMessage)),B(),S(" ",a.invalidMessage," "))},XAb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,
"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return v(c.closeAddPopup())});L()()()}a&2&&(a=P(),B(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},$Ab=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();YAb(c,d.onRemoveUsers);
ZAb(d);return v()})("onCancel",function(){u(b);var c=P();return v(ZAb(c))});L()()()}a&2&&(a=P(),B(2),I("actionName","remove")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},aBb=function(a,b){if(a&1){var c=t();K(0,"b-hotlist-chip-smart",7);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return v(e.removeHotlists([d]))});L()}a&2&&I("id",b.$implicit)},bBb=function(a){a&1&&Of(0,aBb,1,1,"b-hotlist-chip-smart",6,Nf);a&2&&(a=P(2),Pf(a.hotlistIdSet))},
cBb=function(a){a&1&&(K(0,"div",5),Q(1,"Multiple hotlists selected"),L())},eBb=function(a){if(a&1){var b=t();K(0,"b-hotlist-recommendation-chip",9);T(1,"async");N("onAccept",function(){u(b);var d=P().$implicit,e=P(3);return v(dBb(e,d))});L()}if(a&2){a=P().$implicit;var c=P(3);I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",U(1,4,c.issueId$))("updateHotlistsInstantly",!1)}},fBb=function(a,b){a&1&&F(0,eBb,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)}},hBb=function(a,b){a&1&&Of(0,fBb,1,1,null,null,gBb);a&2&&Pf(b)},jBb=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"label");Q(3,"Hotlists");L()();K(4,"div",2)(5,"button",3);N("click",function(){u(b);var d=P();return v(iBb(d))});M(6,"mat-icon",4);Q(7," Add ");L();F(8,bBb,2,0)(9,cBb,2,0,"div",5);
F(10,hBb,2,0);T(11,"async");L()()}if(a&2){var c;a=P();B(8);G(a.areAllHotlistsEqual?8:9);B(2);G((c=U(11,2,a.recommendations$))?10:-1,c)}},mBb=function(a){if(a&1){var b=t();K(0,"input",3);N("ngModelChange",function(c){u(b);var d=P(2);return v(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return v(kBb(d,c))})("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))})("focusout",function(c){u(b);var d=P(2);return v(lBb(d,c))});L()}a&2&&(a=P(2),I("name",
a.name)("required",a.required)("placeholder",a.placeholder)("disabled",a.disabled)("ngModel",a.email)("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Kf("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",a.cdkFocusInitial||null))},nBb=function(a){if(a&1){var b=t();K(0,"input",4);N("ngModelChange",function(c){u(b);var d=P(2);return v(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",function(c){u(b);
var d=P(2);return v(kBb(d,c))})("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))})("focusout",function(c){u(b);var d=P(2);return v(lBb(d,c))});L()}a&2&&(a=P(2),I("name",a.name)("required",a.required)("placeholder",a.placeholder)("disabled",a.disabled)("ngModel",a.email)("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Kf("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",a.cdkFocusInitial||
null))},oBb=function(a){a&1&&F(0,mBb,1,11,"input",1)(1,nBb,1,11,"input",2);a&2&&(a=P(),G(a.asMatInput?0:1))},pt=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},qt=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},pBb=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},rBb=function(a){a=cj(a);for(var b=0;b<qBb.length;++b){var c=
qBb[b],d=qt(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,pBb(a,c))}return a},sBb=function(a){a=cj(a);pBb(a,"X-Goog-Upload-Status");return a},uBb=function(a){if(a&1){var b=t();K(0,"button",3);N("fileSelected",function(c){u(b);var d=P();return v(tBb(d,c))});M(1,"mat-icon",4);L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},vBb=function(a){if(a&1){var b=t();K(0,"button",5);N("fileSelected",function(c){u(b);var d=P();return v(tBb(d,c))});
M(1,"mat-icon",4);Q(2," Add attachments ");L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},wBb=function(a){a&1&&(K(0,"span"),Q(1),T(2,"humanFileSize"),T(3,"humanFileSize"),L());if(a&2){a=P().$implicit;B();var b;zg(" ",U(2,2,a.transferredBytes)," of ",U(3,4,(b=a.size)!=null?b:0)," ")}},xBb=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.errorMessage," "))},yBb=function(a){a&1&&(K(0,"span",7),Q(1),
T(2,"humanFileSize"),L());if(a&2){a=P().$implicit;B();var b;S(" ",U(2,1,(b=a.size)!=null?b:0)," ")}},zBb=function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"div",3);M(2,"mat-icon",4);K(3,"span",5);Q(4);L();K(5,"span",6);F(6,wBb,4,6,"span");F(7,xBb,2,1,"span",7);F(8,yBb,3,3,"span",7);L()();K(9,"button",8);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.cancel(d))});L()()}a&2&&(a=b.$implicit,b=P(2),wg("attachment-error",a.state===b.uploadStates.ERROR),B(3),I("matTooltip",a.name),B(),yg(a.name),
B(2),G(a.state===b.uploadStates.UPLOADING?6:-1),B(),G(a.state===b.uploadStates.ERROR?7:-1),B(),G(a.state===b.uploadStates.COMPLETE?8:-1),B(),I("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),Kf("aria-label","Remove attachment"+a.name))},ABb=function(a){a&1&&(K(0,"div",0),Of(1,zBb,10,9,"div",1,Nf),L());a&2&&(a=P(),B(),Pf(a.uploads))},st=function(a){rt.call(this,a||"all")},CBb=function(a){BBb.call(this,a)},DBb=function(a){this.action=a;this.wfv=!1},EBb=function(a,
b){DBb.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},FBb=function(a){DBb.call(this,"visibility");this.visible=a},GBb=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},IBb=function(a,b){var c=b&&b.getWindow()||window;if(GBb(b))a();else if(HBb)HBb.push(a);else var d=HBb=[a],e=c.setInterval(function(){if(GBb(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();HBb=null}},100)},JBb=function(a,b,c){tt.call(this,a,b,c)},MBb=function(a,b){var c=new KBb(a);ut(b,c);
var d={passive:!1};b.listen(c,"mousewheel",function(e){return void LBb(a,e)},d).listen(a,"scroll",function(e){return void LBb(a,e)},d)},LBb=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=vt(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!NBb(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()},OBb=function(){var a;if(a=a===void 0?
window:a)return a!==a.parent&&a.hasOwnProperty("pangolinIframeGlobals");var b=Error("dg");setTimeout(function(){throw b;},1);return!1},At=function(a,b,c,d,e,f,g,k,l){k=k===void 0?!1:k;l=l===void 0?!1:l;tt.call(this,void 0,void 0,void 0);tt.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);PBb(a,"protocol");this.iframeManager_=new QBb;this.targetId_=RBb();this.rpcToken_=RBb();a=wt(a);xt(a,"hostId");this.useGapi_=!l&&!OBb();k&&yt(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=
d;this.preferredDialogHeight_=e;d!==void 0||e!==void 0?d=!0:(d=xt(wt(a.toString()),"hostId"),SBb||(SBb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!SBb.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=g||this.getDomHelper();b&&(g=this.gadgetsDomHelper_,b=xt(wt(this.url_),"grugl")=="true"?TBb:UBb,GBb(g)||(g=g||lj(document),d=g.createElement("SCRIPT"),pi(d,b),d.type="text/javascript",
g.document_.body.appendChild(d)));a=a.toString();b=null;g=a.indexOf("/picker?");g>-1?b=a.substring(0,g+8-1):va(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()):esa(this.buttonEl_,tj),zt(this.buttonEl_,!!this.buttons_))},VBb=function(a){if(a&1){var b=t();K(0,"div",0);M(1,"mat-icon",1);K(2,"div",2);Q(3," Comment and vote +1 on this issue to increase visibility ");
L();K(4,"div",3)(5,"button",4);N("click",function(c){u(b);var d=P();return v(d.onClick(c))});Q(6,"Comment and vote +1");L()()()}a&2&&(B(),I("matTooltip","The +1 button is located in the top right corner of the issue details page"))},WBb=function(a){if(a&1){var b=t();K(0,"b-plus-one-comment-callout",7);N("onSubmitComment",function(c){u(b);P().onSubmit.emit(c);return v()});L()}a&2&&(a=P(),I("isPlusOneText",a.comment.value.trim()==="+1"))},XBb=function(a){if(a&1){var b=t();K(0,"b-drive-attachment",11);
N("onPickDoc",function(c){u(b);var d=P(2);d.comment&&(d.comment.value=d.comment.formattingMode==="MARKDOWN"?d.comment.value+("\n\n["+c.name+"]("+c.url+")"):d.comment.value+("\n\n"+c.name+" - "+c.url));return v()})("onCloneBlob",function(c){u(b);var d=P(2);return v(d.addUpload(c))});L()}a&2&&(a=P(2),I("disabled",a.attachmentsDisabled))},YBb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(3);return v(c.onRestrict.emit())});M(1,"mat-icon",15);L()}a&2&&(a=P(3),I("disabled",
a.attachmentsDisabled))},ZBb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(){u(b);var c=P(3);return v(c.onRestrict.emit())});M(1,"mat-icon",15);Q(2);L()}a&2&&(a=P(3),B(2),S(" ",a.getRestrictedLabel()," "))},$Bb=function(a){a&1&&(K(0,"div",10),F(1,YBb,2,1,"button",12)(2,ZBb,3,1,"button",13),L());a&2&&(a=P(2),B(),G(a.isRestricted()?2:1))},aCb=function(a){if(a&1){var b=t();K(0,"div",6);dg(1,2,[1,"goog-inline-block"]);K(2,"b-attachment-selector",8);N("onSelect",function(c){u(b);var d=
P();return v(d.uploadFile(c))});L();F(3,XBb,1,1,"b-drive-attachment",9);F(4,$Bb,3,1,"div",10);L()}a&2&&(a=P(),B(2),I("disabled",a.attachmentsDisabled),B(),G(a.currentTracker?-1:3),B(),G(a.showRestrictionOptions?4:-1))},bCb=function(a){a&1&&(K(0,"div"),M(1,"b-live-preview",17),L());a&2&&(a=P(),B(),I("comment",a.comment.value)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},cCb=function(a){a&1&&(K(0,"p",6),Q(1),K(2,"a",14),Q(3," Learn more "),L()());a&2&&(a=
P(4),B(),S(" Your comment contains restricted words: ",As(a.bannedWordsChecker),". Review your comment before posting. "))},dCb=function(a){if(a&1){var b=t();K(0,"div",7)(1,"b-recaptcha",15);N("onUpdate",function(c){u(b);var d=P(4);return v(d.recaptchaResponse$.next(c))});L()()}},eCb=function(a){a&1&&Wf(0)},fCb=function(a){a&1&&E(0,eCb,1,0,"ng-container",16);a&2&&(P(4),a=qg(3),I("ngTemplateOutlet",a))},hCb=function(a){if(a&1){var b=t();K(0,"span")(1,"mat-checkbox",17);T(2,"async");T(3,"async");N("change",
function(){u(b);var c=P(4);return v(gCb(c))});Q(4," CC Me ");L()()}a&2&&(a=P(4),B(),I("checked",!!U(2,2,a.autoCcOnComment$))("disabled",!!U(3,4,a.isCurrentUserCCd$)))},iCb=function(a){a&1&&(K(0,"mat-checkbox",18),Q(1," CC Me "),L());a&2&&I("checked",!0)("disabled",!0)},jCb=function(a){a&1&&(K(0,"span",10),F(1,iCb,2,2,"mat-checkbox",18),T(2,"async"),L());a&2&&(a=P(4),B(),G(U(2,1,a.isCurrentUserCCd$)?1:-1))},kCb=function(a){if(a&1){var b=t();K(0,"b-markdown-toggle",19);N("change",function(c){u(b);var d=
P();return v(d.formattingMode=c)});L()}a&2&&(a=P(),I("initialValue",a.formattingMode))},lCb=function(a){a&1&&(M(0,"b-access-limits-chip",12),T(1,"async"));a&2&&(a=P(4),I("issueId",a.issueId)("componentId",a.componentIdString)("accessLimitLevel",U(1,3,a.issueAccessLimitLevel$)))},mCb=function(a,b){if(a&1){var c=t();K(0,"b-comment-box",5,1);T(2,"async");T(3,"async");T(4,"async");T(5,"async");T(6,"async");T(7,"async");N("onHotkey",function(){u(c);var r=qg(1);return v(Imb(r,"editpage-hotkey"))})("onChange",
function(){u(c);var r=P(3);return v(r.saveCommentDraft())})("onFocusEvent",function(){u(c);var r=P(3);return v(r.wasFocused=!0)})("onSubmit",function(r){u(c);var w=P(3);return v(w.submitCommentBox(r))})("onRestrict",function(){u(c);var r=P(3);return v(r.showNewContentJudgementDialog())})("onPlusOneTextEntered",function(r){u(c);var w=P(3);return v(w.isPlusOneText$.next(r))});F(8,cCb,4,1,"p",6);T(9,"async");F(10,dCb,2,0,"div",7);T(11,"async");K(12,"div",8);F(13,fCb,1,1,"ng-container");K(14,"div",9);
dg(15);F(16,hCb,5,6,"span");T(17,"async");T(18,"async");F(19,jCb,3,3,"span",10);T(20,"async");T(21,"async");F(22,kCb,1,1,"b-markdown-toggle",11);T(23,"async");F(24,lCb,2,5,"b-access-limits-chip",12);T(25,"async");L();M(26,"b-issue-visibility-chip",13);L()()}if(a&2){a=P(2);var d=P(),e,f,g,k,l;I("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",b)("placeholder",(e=U(2,19,d.commentPlaceholderText$))!=null?e:void 0)("judgementForNewContent",(f=U(3,21,d.judgementForNewContent$))!=
null?f:void 0)("audience",(g=U(4,23,d.audience$))!=null?g:void 0)("disabled",U(5,25,d.commentBoxEnabled$)===!1)("isPlusOneCalloutEnabled",(k=U(6,27,d.isPlusOneCalloutEnabled$))!=null?k:!1)("warn",(l=U(7,29,d.bannedWordsChecker.showWarning$))!=null?l:!1)("isLiteralModeSupported",!0);B(8);G(U(9,31,d.bannedWordsChecker.showWarning$)?8:-1);B(2);G(U(11,33,d.showRecaptcha$)?10:-1);B(3);G(d.showActionsAfterPreview?-1:13);B(3);G(!U(17,35,d.isCurrentUserCCd$)&&U(18,37,d.hasAclToEdit$)?16:-1);B(3);G(U(20,39,
d.isCurrentUserCCd$)||!U(21,41,d.hasAclToEdit$)?19:-1);B(3);G(U(23,43,d.hasAclToComment$)?22:-1);B(2);G(U(25,45,d.isAccessLimited$)?24:-1);B(2);I("issueId",d.issueId)}},nCb=function(a){a&1&&Wf(0)},oCb=function(a){a&1&&E(0,nCb,1,0,"ng-container",16);a&2&&(P(3),a=qg(3),I("ngTemplateOutlet",a))},pCb=function(a){a&1&&(K(0,"h3",2),Q(1,"Add comment"),L(),K(2,"div",3),T(3,"async"),F(4,mCb,27,47,"b-comment-box",4),T(5,"async"),L(),F(6,oCb,1,1,"ng-container"));if(a&2){var b;a=P(2);B(2);wg("empty",U(3,6,a.empty$))("never-focused",
!a.wasFocused);B(2);G((b=U(5,8,a.comment$))?4:-1,b);B(2);G(a.showActionsAfterPreview?6:-1)}},qCb=function(a,b){a&1&&F(0,pCb,7,10);a&2&&G(b.isDeleted?-1:0)},rCb=function(a){if(a&1){var b=t();K(0,"b-button",21);T(1,"async");T(2,"async");T(3,"async");N("onAction",function(d){u(b);var e=P(2);return v(e.submitCommentBox(d))})("click",function(d){u(b);var e=P(2);return v(e.submitCommentBox(d))});Q(4);T(5,"async");L()}if(a&2){a=P(2);var c;I("format",(c=U(1,4,a.commentButtonStyle$))!=null?c:"fill")("disabled",
U(2,6,a.commentButtonEnabled$)===!1)("color",U(3,8,a.bannedWordsChecker.showWarning$)?"warn":"primary");B(4);S(" ",U(5,10,a.bannedWordsChecker.showWarning$)?"Comment Anyway":"Comment"," ")}},sCb=function(a){a&1&&F(0,rCb,6,12,"b-button",20);a&2&&(a=P(),G(a.showCommentButton?0:-1))},tCb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" ",a.removeSelfActionDescription," "))},uCb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" ",a.includeSelfActionDescription," "))},vCb=function(a){if(a&
1){var b=t();K(0,"div",20);N("click",function(){u(b);var c=P(2);return v(c.userInclusionToggle.emit())})("keydown.enter",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return v()})("keydown.space",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return v()});F(1,tCb,2,1,"span");F(2,uCb,2,1,"span");L()}a&2&&(a=P(2),wg("disabled",!!a.isSaving),I("matTooltip",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:
a.includeSelfActionLongDescription),Kf("aria-disabled",!!a.isSaving)("aria-label",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),B(),G(a.isCurrentUserInCollection?1:-1),B(),G(!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?2:-1))},wCb=function(a){a&1&&(K(0,"div",18),F(1,vCb,3,7,"div",19),L());a&2&&(a=P(),B(),G(a.isCurrentUserInCollection||!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?1:-1))},xCb=function(a){if(a&1){var b=t();
K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",21);N("onAddItems",function(c){u(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return v(c.closeAddPopup(!0))});L()()()}a&2&&(a=P(),B(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},yCb=function(a){a&1&&(M(0,"b-user-membership-chip",23),T(1,"async"));if(a&2){a=P().$implicit;var b=P(),c;I("user",
b.getUser(a))("email",a)("teamId",(c=U(1,5,b.teamId$))!=null?c:"")("enableSmallChip",!0)("enableGroupIcon",!0)}},zCb=function(a){a&1&&M(0,"b-icon",25)},ACb=function(a){a&1&&(F(0,zCb,1,0,"b-icon",25),T(1,"async"),K(2,"b-person-hovercard",26),Q(3),L());if(a&2){var b;a=P().$implicit;var c=P();G(((b=U(1,3,c.groups$))==null?0:b.has(a))?0:-1);B(2);I("email",a);B();S(" ",a," ")}},BCb=function(a){if(a&1){var b=t();K(0,"button",27);T(1,"async");N("click",function(){u(b);var c=P(2);return v(c.toggleAccessLimits.emit())});
M(2,"b-icon",28);T(3,"async");L()}a&2&&(a=P(2),I("disabled",!U(1,3,a.hasAclToAdmin$)),B(2),wg("disabled-icon",!U(3,5,a.hasAclToAdmin$)))},CCb=function(a){if(a&1){var b=t();K(0,"button",30,4);N("click",function(){u(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});L()}if(a&2){a=P(2).$implicit;var c=P();Kf("aria-label",Fg("Remove ",a," from ",c.title));I("matTooltip","Remove item")}},DCb=function(a){a&1&&F(0,CCb,2,4,"button",29);a&2&&(a=P(2),G(a.isAllowedToEditCollection?0:-1))},ECb=function(a,
b){a&1&&(K(0,"div",10)(1,"div",22),F(2,yCb,2,7,"b-user-membership-chip",23)(3,ACb,4,5),L(),F(4,BCb,4,7,"button",24),T(5,"async"),Lf(6,DCb,1,1),L());if(a&2){var c;a=b.$implicit;b=P();B(2);G(b.enableTeamAnnotations?2:3);B(2);G(b.toggleAccessLimits.observed&&((c=U(5,2,b.groups$))==null?0:c.has(a))?4:6)}},FCb=function(a){a&1&&(K(0,"button",12),Q(1,"Add "),L());if(a&2){a=P();var b=qg(3);Kf("aria-label",Eg("Add item to ",a.title));I("dialogLabel",Eg("Add item to ",a.title))("matTooltip",Eg("Add item to ",
a.title))("xapInlineDialogClick",b)("overlayPositions",a.overlayPosition)}},GCb=function(a){a&1&&Wf(0)},HCb=function(a,b){return{originX:a,originY:b}},ICb=function(a,b){return{overlayX:a,overlayY:b}},JCb=function(a){a&1&&(M(0,"gpp-agent-chat",0),T(1,"async"));if(a&2){a=P();var b;I("useExperimentalOrcasAgent",a.useExperimentalOrcasAgent)("isDarkMode",a.isDarkMode())("query",a.query())("contextValues",(b=U(1,4,a.contextValues$))!=null?b:void 0)}},KCb=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return a[b]&&
a[b].hasOwnProperty("__@ngrx/effects_create__")?a[b]["__@ngrx/effects_create__"].hasOwnProperty("dispatch"):!1}).map(function(b){return Object.assign({},{propertyName:b},a[b]["__@ngrx/effects_create__"])})},LCb=function(a){return typeof a==="function"},MCb=function(a,b,c){var d=Object.getPrototypeOf(a),e=d&&d.constructor.name!=="Object"?d.constructor.name:null;d=KCb(a).map(function(f){var g=f.propertyName;var k=f.dispatch;f=f.useEffectsErrorHandler;var l=typeof a[g]==="function"?a[g]():a[g];f=f?c(l,
b):l;return k===!1?f.pipe(gla()):f.pipe(sla()).pipe(A(function(r){return{effect:a[g],notification:r,propertyName:g,sourceName:e,sourceInstance:a}}))});return ve.apply(null,q(d))},OCb=function(a){return NCb(a,"ngrxOnInitEffects")},NCb=function(a,b){return a&&b in a&&typeof a[b]==="function"},PCb=function(a,b,c){c=c===void 0?10:c;return a.pipe(jf(function(d){b&&b.handleError(d);return c<=1?a:PCb(a,b,c-1)}))},QCb=function(a){return NCb(a,"ngrxOnIdentifyEffects")?a.ngrxOnIdentifyEffects():""},RCb=function(a,
b){return function(c){var d=MCb(c,a,b);return NCb(c,"ngrxOnRunEffects")?c.ngrxOnRunEffects(d):d}},SCb=function(a,b){var c=[];a=m(a);for(var d=a.next();!d.done;d=a.next())c.push.apply(c,q(d.value));b=m(b);for(a=b.next();!a.done;a=b.next())c.push.apply(c,q(a.value));return c.map(function(e){return e instanceof fd||LCb(e)?p(e):e})},UCb=function(){var a=p(Bt,{optional:!0,skipSelf:!0}),b=p(TCb,{self:!0});if((b.length!==1||b[0].length!==0)&&a)throw new TypeError("ig");return"guarded"},VCb=function(a){a&
1&&(K(0,"div",6),M(1,"gpp-chat"),L())},WCb=function(a){a&1&&(K(0,"div",7),M(1,"b-duckie-chat"),L())},XCb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b.$implicit)},YCb=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P(2);return v(d.limit+=d.LIMIT_INCREMENT)});Q(1);L()}a&2&&(I("title",Eg("",b," more participant(s). Click to show.")),B(),S("",b," more"))},ZCb=function(a){a&1&&F(0,YCb,2,3,"button",1);if(a&2){var b;a=P();G((b=a.emails.length-a.limit)?0:-1,b)}},
aDb=function(a){a&1&&(K(0,"a",3),Q(1),L());a&2&&(a=P(2),I("href",a.makeCritiqueUrl(Hg(2,$Cb),a.pending),Pe),B(),S("(",a.pending.length," pending)"))},bDb=function(a,b){a&1&&(K(0,"div",0),M(1,"img",1),Q(2," \u00a0 "),K(3,"a",2),Q(4),L(),Q(5," \u00a0 "),F(6,aDb,2,3,"a",3),L());a&2&&(a=P(),B(3),I("href",a.makeCritiqueUrl(a.submitted,a.pending),Pe),B(),S("",b," CLs"),B(2),G(a.pending.length>0?6:-1))},cDb=function(a){a&1&&(K(0,"a",2),Q(1),L());a&2&&(a=P(2),I("routerLink",a.searchPageUrl),B(),S(" ",a.count,
" Issues "))},dDb=function(a){a&1&&F(0,cDb,2,2,"a",2);a&2&&(a=P(),G(a.count!=null?0:-1))},eDb=function(a){a&1&&Q(0);a&2&&(a=P(),S(" ",a.count," Issues "))},fDb=function(a){a&1&&(K(0,"div",0),M(1,"img",2),L());a&2&&(a=P(2),B(),I("src",a.SPACE_EMPTY_STATE,Pe))},gDb=function(a,b){a&1&&(K(0,"mat-panel-title"),Q(1),L());a&2&&(a=P().$index,B(),S(" ",b[a]," "))},hDb=function(a){a&1&&M(0,"mat-panel-title",3)},iDb=function(a,b){a&1&&(K(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),F(2,gDb,2,1,"mat-panel-title"),
T(3,"async"),Lf(4,hDb,1,0,"mat-panel-title",3),K(5,"mat-panel-description"),Q(6),L()(),M(7,"b-issues-table",4),L());if(a&2){var c;a=b.$implicit;b=P(3);B(2);G((c=U(3,5,b.titles$))?2:4,c);B(4);S("",a.length," issues");B();I("issueIds",a)("tableColumns",b.tableColumns)("options",b.tableOptions)}},jDb=function(a){a&1&&(K(0,"div",1),Of(1,iDb,8,7,"mat-expansion-panel",null,Nf),L());a&2&&(a=P(),B(),Pf(a))},kDb=function(a,b){a&1&&F(0,fDb,2,1,"div",0)(1,jDb,3,0,"div",1);a&2&&G(b.length===0?0:1)},lDb=function(a){a&
1&&(K(0,"div",2,1)(2,"div",5)(3,"span",6),Q(4),L()()());a&2&&(a=P(),B(4),yg(a.valueIndicatorText))},mDb=function(a,b){a&1&&M(0,"div");if(a&2){a=b.$implicit;b=b.$index;var c=P(3);xg(a===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive");vg("transform",c._calcTickMarkTransform(b))}},nDb=function(a){a&1&&Of(0,mDb,1,4,"div",8,Mf);a&2&&(a=P(2),Pf(a._tickMarks))},oDb=function(a){a&1&&(K(0,"div",6,1),F(2,nDb,2,0),L());a&2&&(a=P(),B(2),G(a._cachedWidth?2:-1))},pDb=function(a){a&1&&M(0,"mat-slider-visual-thumb",
7);a&2&&(a=P(),I("discrete",a.discrete)("thumbPosition",1)("valueIndicatorText",a.startValueIndicatorText))},qDb=function(a){a&1&&(K(0,"span"),Q(1,"All Components"),L())},rDb=function(a){a&1&&(K(0,"span"),Q(1,"Selected Components"),L())},sDb=function(a,b){if(a&1){var c=t();K(0,"button",19);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});K(1,"mat-checkbox",27);Q(2);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",b.selectComponents$.has(a)),B(),S(" ",
a.name," "))},tDb=function(a,b){if(a&1){var c=t();K(0,"button",19);N("click",function(){var d=u(c).$implicit;P().selectedDateRangeFilter$.next(d);return v()});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a.displayAs," "))},uDb=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"a",7);Q(2);T(3,"async");L();K(4,"button",8);N("click",function(){var e=u(c),f=P(),g=P();Ct(g.router,ps.viewTriage.makeHref(f,e,Dt[g.phase$.value]));return v()});Q(5," View issues ");M(6,"mat-icon",9);L()()}if(a&2){a=P();var d=P();B();
I("href",d.ROUTES.viewTriage.makeHref(a,b,d.phaseToUrlSlug[d.phase$.value]),Pe);B();S(" ",U(3,2,d.heading$)," ")}},vDb=function(a){a&1&&(F(0,uDb,7,4,"div",6),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageId$))?0:-1,b)}},wDb=function(a,b){a&1&&Q(0);a&2&&(a=P(),zg(" ",b.length,"",b.length===a.FETCH_SIZE?"+":""," "))},xDb=function(a){a&1&&Q(0," ... ")},yDb=function(a,b){a&1&&M(0,"i",11);if(a&2){a=b.$implicit;b=b.$index;var c=P(2);a=Eg("height: ",a*100,"%;");doa(boa,coa,a,!1);I("title",Fg("Modified ",
b," days ago: ",c[b]," Issues"))}},zDb=function(a,b){a&1&&Of(0,yDb,1,6,"i",10,Mf);a&2&&Pf(b)},ADb=function(a){a&1&&(F(0,zDb,2,0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.ratioDaysOld$))?0:-1,b)}},CDb=function(a){return(BDb-a/1E3)/864E5},DDb=function(a,b){a&1&&(K(0,"span",5),Q(1),L());a&2&&(I("title",b.description),B(),yg(b.name))},EDb=function(a){a&1&&(K(0,"code",6),Q(1),T(2,"async"),L());a&2&&(a=P(),B(),yg(U(2,1,a.id$)))},FDb=function(a,b){a&1&&(K(0,"div",7),M(1,"phase-card-contents",8)(2,
"phase-card-contents",8)(3,"phase-card-contents",8)(4,"phase-card-contents",8)(5,"phase-card-contents",8),L());if(a&2){a=P();var c=P();B();I("phase",c.TriagePhase.NEW)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.CONFIRMED)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.IN_PROGRESS)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.FIXED)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.WONT_FIX)("teamId",a)("triageId",b)}},GDb=function(a){a&1&&(F(0,FDb,6,15,"div",7),T(1,
"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageId$))?0:-1,b)}},HDb=function(a){if(!a.unlinkifiedComment)return Xm("Can't getClMetadata from an event with no unlinkifiedComment",a),{};if(VUa(a))if(no(a)){var b=a.unlinkifiedComment;var c=b.trim().split("\n");if(a.formattingMode==="MARKDOWN"){var d,e;var f=(e=(d=c[5])==null?void 0:d.trim())!=null?e:"";var g;c=(g=b.match(/^Link: &nbsp;&nbsp;&nbsp;&nbsp; (.+)/m))==null?void 0:g[1];var k;var l=(k=b.match(/^Author: .* \\<(.+)\\>/m))==null?void 0:k[1]}else{var r,
w;f=(w=(r=c[7])==null?void 0:r.trim())!=null?w:"";var x,C;c=(C=(x=c[c.length-1])==null?void 0:x.trim())!=null?C:"";var H;l=(H=b.match(/^Author: .* <(.+)>/m))==null?void 0:H[1]}f||Xm("failed to parse a title from GitWatcher comment, which is unexpected.",b);c||Xm("failed to parse a link from GitWatcher comment, which is unexpected.",b);l?l=l.endsWith("@google.com")?l.split("@")[0]:l:Xm("failed to parse an author from GitWatcher comment, which is unexpected.",b);b={author:l,title:f,link:c,reviewer:void 0,
delta:void 0}}else b={};else{k=a.unlinkifiedComment;g=k.trim().split("\n");var J,O;H=(O=(J=g[0])==null?void 0:J.trim())!=null?O:"";var R;g=(R=g[2])==null?void 0:R.trim();x=(l=H.match(/^Change\s+(\d+)/))==null?void 0:l[1];x==null&&Xm("failed to parse an id from Critique comment, which is unexpected.",k);H=(c=H.match(/^Change.*by (\S+)@/))==null?void 0:c[1];H==null&&Xm("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:Mm(x),author:H,title:g,reviewer:c,delta:Mm(f),link:"cl/"+x}}return b},IDb=function(a){var b;return(b=HDb(a).id)!=null?b:0},JDb=function(a){var b;return(b=HDb(a).link)!=null?b:""},KDb=function(a){return[].concat(q(a.preDiffs),q(a.postDiffs)).map(function(b){return"Changed "+(b.displayName||b.name)+" "+(b.newValue?"to "+b.newValue:"")}).join("\n")},MDb=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(mo(a)||no(a)){if(a=HDb(a).author)return a.includes("@")?a:a+"@google.com"}else if(f==="product-feedback-gathering@prod.google.com")return LDb(a,"reporter")||f;return f},NDb=function(a,b){var c,d,e;return(e=[].concat(q((c=a.preDiffs)!=null?c:[]),q((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.oldValue},LDb=function(a,b){var c,d,e;return(e=[].concat(q((c=a.preDiffs)!=null?c:[]),q((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===
b}))==null?void 0:e.newValue},ODb=function(a){if(a==null)return"default";if(ho(a)&&a.commentNumber===1)return"create";if(mo(a)||no(a))return"changelist";var b,c=(b=a.preDiffs)!=null?b:[],d;b=(d=a.postDiffs)!=null?d:[];c=new Set([].concat(q(c),q(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=LDb(a,"assignee");a=NDb(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":ho(a)?"comment":c.has("component")?"component":"default"},PDb=function(a){a&1&&(Q(0," created "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},QDb=function(a){a&1&&M(0,"changelist-link-plain",3);a&2&&(a=P(2),I("id",a.getChangelistNumber(a.event)))},
RDb=function(a){a&1&&(K(0,"a",4),Q(1),L());a&2&&(a=P(2),I("href",a.getLink(a.event),Pe),B(),yg(a.getLink(a.event)))},SDb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",5),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},TDb=function(a){a&1&&(Q(0," submitted "),F(1,QDb,1,1,"changelist-link-plain",3),F(2,RDb,2,2,"a",4),M(3,"b-formatted-date-time",2),F(4,SDb,3,2));if(a&2){var b;a=P();B();G(a.isCritiqueComment(a.event)?1:-1);B();G(a.isFullGerritComment(a.event)?2:-1);B();I("timestamp",a.event.modifiedDate);
B();G((b=a.getClMetadata(a.event).title)?4:-1,b)}},UDb=function(a){a&1&&(Q(0," commented on "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},VDb=function(a){a&1&&(Q(0," set priority "),M(1,"b-issue-priority-display",6),Q(2," on "),K(3,"b-issue-reference-widget",1),Q(4),L(),M(5,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("issuePriority",
a.toIssuePriority(a.getNewDiffValue(a.event,"priority"))),B(2),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},WDb=function(a,b){a&1&&(Q(0," set status "),K(1,"span"),Q(2),L(),Q(3," on "));a&2&&(a=P(2),B(),xg(Eg("chippy xs status-",a.STATUS_CODE_FROM_DISPLAY_STRING[b])),B(),S(" ",b," "))},XDb=function(a){a&1&&(F(0,WDb,4,4),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));if(a&2){var b;a=P();G((b=
a.getNewDiffValue(a.event,"status"))?0:-1,b);B();I("href",rs(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},YDb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",7),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},ZDb=function(a){a&1&&(Q(0," set status update on "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2),F(4,YDb,3,2));if(a&2){var b;a=P();B();I("href",rs(a.event.issueId))("issueId",a.event.issueId);B();S("b/",
a.event.issueId);B();I("timestamp",a.event.modifiedDate);B();G((b=a.event.statusUpdate==null?null:a.event.statusUpdate.updateText)?4:-1,b)}},$Db=function(a){a&1&&(Q(0," assigned "),K(1,"b-issue-reference-widget",1),Q(2),L(),Q(3," to "),M(4,"b-user-email",0)(5,"b-formatted-date-time",2));if(a&2){a=P();B();I("href",rs(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B(2);var b;I("ldapOnly",!0)("email",(b=a.getNewDiffValue(a.event,"assignee"))!=null?b:"");B();I("timestamp",a.event.modifiedDate)}},
aEb=function(a){a&1&&(Q(0," self-assigned "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},bEb=function(a){a&1&&(Q(0," unassigned self from "),K(1,"b-issue-reference-widget",1),Q(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",
a.event.modifiedDate))},cEb=function(a){a&1&&(Q(0," unassigned "),M(1,"b-user-email",0),Q(2," from "),K(3,"b-issue-reference-widget",1),Q(4),L(),M(5,"b-formatted-date-time",2));if(a&2){a=P();B();var b;I("ldapOnly",!0)("email",(b=a.getPreviousDiffValue(a.event,"assignee"))!=null?b:"");B(2);I("href",rs(a.event.issueId))("issueId",a.event.issueId);B();S("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},dEb=function(a){a&1&&(Q(0," moved "),K(1,"b-issue-reference-widget",1),Q(2),L(),Q(3,
" to another component "),M(4,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(2),I("timestamp",a.event.modifiedDate))},eEb=function(a){a&1&&(K(0,"span",8),Q(1," updated "),L(),K(2,"b-issue-reference-widget",1),Q(3),L(),M(4,"b-formatted-date-time",2));a&2&&(a=P(),I("title",a.shorthandAllDiffs(a.event)),B(2),I("href",rs(a.event.issueId))("issueId",a.event.issueId),B(),S("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},
fEb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",9),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},gEb=function(a){a&1&&F(0,fEb,3,2);if(a&2){var b;a=P();G((b=a.getComment())?0:-1,b)}},hEb=function(a,b){a&1&&(Q(0," \u2014 "),K(1,"span",10),Q(2),L());a&2&&(B(),I("title",b),B(),yg(b))},iEb=function(a){a&1&&F(0,hEb,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)}},jEb=function(a,b){a&1&&M(0,"recent-event-row",4);
a&2&&I("event",b.$implicit)},kEb=function(a,b){a&1&&(K(0,"p",3),Q(1),L(),Of(2,jEb,1,1,"recent-event-row",4,Nf));if(a&2){a=P();var c=P(3);B();S("Last 24 hours ",c.printStats(a["<24h"]));B();Pf(b)}},lEb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},mEb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Of(2,lEb,1,1,"recent-event-row",4,Nf));if(a&2){a=P();var c=P(3);B();S("1-7 days ago ",c.printStats(a["24h-7d"]));B();Pf(b)}},nEb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",
b.$implicit)},oEb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Of(2,nEb,1,1,"recent-event-row",4,Nf));if(a&2){a=P();var c=P(3);B();S("1-4 weeks ago ",c.printStats(a["7d-30d"]));B();Pf(b)}},pEb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},qEb=function(a,b){a&1&&(K(0,"p",5),Q(1),L(),Of(2,pEb,1,1,"recent-event-row",4,Nf));if(a&2){a=P();var c=P(3);B();S(">30 days ago ",c.printStats(a[">30d"]));B();Pf(b)}},rEb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);
var c=P(4);c.numDisplayed$.value<100?c.numDisplayed$.next(100):c.numDisplayed$.next(c.defaultNumEvents);return v()});Q(1);L()}a&2&&(a=P(4),B(),S(" ",a.numDisplayed$.value>a.defaultNumEvents?"Show less":"Show more"," "))},sEb=function(a){a&1&&(F(0,kEb,4,1),F(1,mEb,4,1),F(2,oEb,4,1),F(3,qEb,4,1),F(4,rEb,2,1,"button",2),T(5,"async"));if(a&2){var b,c,d,e,f;a=P();var g=P(2);G((b=a["<24h"])?0:-1,b);B();G((c=a["24h-7d"])?1:-1,c);B();G((d=a["7d-30d"])?2:-1,d);B();G((e=a[">30d"])?3:-1,e);B();var k;G(((k=(f=
U(5,5,g.events$))==null?null:f.length)!=null?k:0)>g.defaultNumEvents?4:-1)}},tEb=function(a){a&1&&(F(0,sEb,6,7),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.bucketedEventStats$))?0:-1,b)}},uEb=function(a){a&1&&(K(0,"div",0),Q(1," Recent activity "),M(2,"input",1),L(),F(3,tEb,2,3),T(4,"async"));if(a&2){var b;a=P();B(2);I("formControl",a.quickFilter);B();G((b=U(4,2,a.bucketedEvents$))?3:-1,b)}},vEb=function(a){return function(b){var c;if(a){var d="";if(mo(b)||no(b)){var e=HDb(b);d="submitted "+e.link+
" "+e.title}e="b/"+b.issueId;var f=MDb(b),g=ODb(b),k=KDb(b);b=b==null||mo(b)||no(b)?"":((c=b.unlinkifiedComment)!=null?c:"").slice(0,999);c=[e,f,g,d,k,b].join(" ").toLowerCase().includes(a.toLowerCase())}else c=!0;return c}},wEb=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(Qm);return a.length===0?"":"\u2014 "+a.join(", ")},xEb=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},yEb=function(a,b){var c;a=(c=b[a])!=null?c:[];var d={n:a.length,pptCounts:{}};a.forEach(function(e){var f=ODb(e),g=MDb(e);if(f!=="changelist"?e.isCommentEvent:e.unlinkifiedComment){var k;d.comment=((k=d.comment)!=null?k:0)+1;var l;d.pptCounts[g]=((l=d.pptCounts[g])!=null?l:0)+1}if(f==="changelist"){var r;d.clCount=((r=d.clCount)!=null?r:0)+1;var w;d.pptCounts[g]=
((w=d.pptCounts[g])!=null?w:0)+1}else if(f==="create"){var x;d.created=((x=d.created)!=null?x:0)+1;var C;d.pptCounts[g]=((C=d.pptCounts[g])!=null?C:0)+1}else if(f==="status"&&LDb(e,"status")==="Fixed"){var H;d.fixed=((H=d.fixed)!=null?H:0)+1}});return d},zEb=function(a){a&1&&(K(0,"p",11),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.description))},AEb=function(a,b){a&1&&(K(0,"mat-list-option",8)(1,"div",9)(2,"label",10),Q(3),L()(),F(4,zEb,2,1,"p",11),L());a&2&&(a=b.$implicit,b=P(2),vg("height","auto"),
I("selected",b.selectedIds.has(a.searchId))("value",a.searchId),B(3),yg(a.name),B(),G(a.description?4:-1))},DEb=function(a,b){if(a&1){var c=t();K(0,"mat-selection-list",6);N("selectionChange",function(d){u(c);var e=P();return v(BEb(e,d))});Of(1,AEb,5,6,"mat-list-option",7,CEb);L()}a&2&&(B(),Pf(b))},EEb=function(a,b){a&1&&M(0,"avatar-bunch",4);a&2&&I("emails",b)},FEb=function(a,b){a&1&&(K(0,"a",6),Q(1," View in TaskFlow "),M(2,"mat-icon",7),L());a&2&&I("href",b,Pe)},GEb=function(a,b){a&1&&M(0,"progress-pie",
1);a&2&&I("closed",b.closed)("total",b.total)},IEb=function(a,b){a&1&&(M(0,"cl-counts",3),T(1,"async"));if(a&2){a=P();var c;I("submitted",b.changelists)("pending",(c=U(1,2,a.pendingCls$))!=null?c:Hg(4,HEb))}},JEb=function(a){a&1&&M(0,"gerrit-changes-count",4);a&2&&(a=P(),I("changes",a))},KEb=function(a,b){a&1&&F(0,JEb,1,1,"gerrit-changes-count",4);a&2&&G(b&&b.length>0?0:-1)},LEb=function(a){a&1&&M(0,"avatar-bunch",5);a&2&&(a=P(),I("emails",a))},MEb=function(a,b){a&1&&F(0,LEb,1,1,"avatar-bunch",5);
a&2&&G(b.length>0?0:-1)},NEb=function(a){return a},OEb=function(a){a==="UNKNOWN_SOURCE"&&console.error("an UNKNOWN TaskSources snuck in");return a},PEb=function(a,b){return b.buganizerSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},QEb=function(a,b){return a?b.buganizerSignals.filter(function(c){return a.get(c)!==!1}):b.buganizerSignals},REb=function(a,b){return b.changelistSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},SEb=function(a,b){return a?b.changelistSignals.filter(function(c){return a.get(c)!==
!1}):b.changelistSignals},TEb=function(a,b){return b.driveSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},UEb=function(a,b){return a?b.driveSignals.filter(function(c){return a.get(c)!==!1}):b.driveSignals},VEb=function(a,b){return b.gerritSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},WEb=function(a,b){return a?b.gerritSignals.filter(function(c){return a.get(c)!==!1}):b.gerritSignals},XEb=function(a,b){return a?b.googleTasksSignals.filter(function(c){return a.get(c)!==
!1}):b.googleTasksSignals},YEb=function(a,b){return a?b.irmSignals.filter(function(c){return a.get(c)!==!1}):b.irmSignals},ZEb=function(a,b){return b.googleTasksSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},$Eb=function(a,b){return b.irmSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},aFb=function(a){a&1&&(K(0,"div",2),Q(1),L());if(a&2){a=P();wg("muted",!a.isNumeric(a.countDisplay)||a.isDisabled());B();var b;yg((b=a.countDisplay)!=null?b:"\u00a0")}},bFb=
function(a){a&1&&(K(0,"div",0),M(1,"qif-stat",1),T(2,"async"),M(3,"qif-stat",1),T(4,"async"),L());a&2&&(a=P(),B(),I("key",a.QuickFilterKey.OPEN)("prefKey",a.id)("metadata",U(2,6,a.metadata$)),B(2),I("key",a.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",a.id)("metadata",U(4,8,a.metadata$)))},cFb=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))},dFb=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:wb(a)}},fFb=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=eFb(b),f=b.nextElementSibling&&eFb(b.nextElementSibling),g=b.previousElementSibling&&eFb(b.previousElementSibling);if(a==="top"){var k;if(((k=b.previousElementSibling)==null?0:k.classList.contains("dragging"))&&
g===e)return d="none",c();d="before";return c()}if(a==="bottom"){if(f!=null&&e<f){var l;if((l=b.nextElementSibling)==null?0:l.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var r;if(((r=b.nextElementSibling)==null?0:r.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d="current";return c()},eFb=function(a){return Number(a.dataset.level)},gFb=function(a){var b;return Et((b=a.dataset.ancestorchain)!=null?b:"")},hFb=function(a){a&
1&&M(0,"th",25)},iFb=function(a){if(a&1){var b=t();K(0,"td",26,0);N("click",function(c){var d=u(b).$implicit,e=qg(1),f=P();e.focus();Cs(f.focusManager,d);return v(c.stopPropagation())});L()}},jFb=function(a){a&1&&M(0,"th",25)},kFb=function(a){if(a&1){var b=t();K(0,"td",27,1);N("click",function(c){var d=u(b).$implicit,e=qg(1),f=P();e.focus();Cs(f.focusManager,d);return v(c.stopPropagation())})("dragstart",function(c){u(b);var d=P();return v(d.handleDragStart(c))});M(2,"mat-icon",28);L()}},lFb=function(a){a&
1&&(K(0,"th",25),Q(1," Id "),L())},mFb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-id-cell",30),L());a&2&&(a=b.$implicit,B(),I("id",a.id))},nFb=function(a){a&1&&(K(0,"th",25),Q(1," Id "),L())},oFb=function(a){a&1&&(K(0,"td",29),Q(1,"--"),L())},pFb=function(a){a&1&&(K(0,"th",25),Q(1," Title "),L())},qFb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-expandable-issue-title-cell",31);T(2,"async");T(3,"async");N("expansionChange",function(){var d=u(c).$implicit,e=P();return v(e.toggleExpansion(d))})("onSaveOutput",
function(){var d=u(c).$implicit;return v(d.isEditMode=!1)})("onCancelOutput",function(){var d=u(c).$implicit;return v(d.isEditMode=!1)});L()()}a&2&&(a=b.$implicit,B(),I("isEditMode",a.isEditMode)("issue",U(2,5,a.issue$))("expandable",U(3,7,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},rFb=function(a){a&1&&(K(0,"th",25),Q(1," Type "),L())},sFb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-type-cell",32),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},tFb=
function(){},uFb=function(a){a&1&&Q(0," Assignee ")},vFb=function(a){a&1&&(K(0,"th",25),F(1,tFb,0,0)(2,uFb,1,0),L());a&2&&(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},wFb=function(a,b){a&1&&M(0,"b-user-image",33);a&2&&I("email",b)},xFb=function(a){a&1&&F(0,wFb,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)}},yFb=function(a,b){a&1&&F(0,xFb,1,1);a&2&&(a=P(3),G(a.isOpen(b)?0:-1))},zFb=function(a){a&1&&(F(0,yFb,
1,1),T(1,"async"));if(a&2){var b;a=P().$implicit;G((b=U(1,1,a.issue$))?0:-1,b)}},AFb=function(a){a&1&&(M(0,"b-issue-assignee-cell",32),T(1,"async"));a&2&&(a=P().$implicit,I("issue",U(1,1,a.issue$)))},BFb=function(a){a&1&&(K(0,"td",29),F(1,zFb,2,3)(2,AFb,2,3,"b-issue-assignee-cell",32),L());a&2&&(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},CFb=function(a){a&1&&(K(0,"th",25),Q(1," Status "),L())},DFb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-status-cell",
34),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,2,a.issue$))("showPendingFix",!0))},EFb=function(a){a&1&&(K(0,"th",25),Q(1," Team "),L())},FFb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-team-cell",32),T(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",U(2,1,a.issue$)))},GFb=function(a){a&1&&M(0,"th",25)},IFb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-actions-menu",35);T(2,"async");N("click",function(e){u(c);return v(e.stopPropagation())});L()()}if(a&2){a=b.$implicit;b=P();B();
var d;I("menuItems",(d=U(2,1,b.getMenuItems(a)))!=null?d:Hg(3,HFb))}},JFb=function(a){a&1&&M(0,"th",25)},LFb=function(a){if(a&1){var b=t();K(0,"b-actions-menu",35);N("click",function(d){u(b);return v(d.stopPropagation())});L()}if(a&2){a=P().$implicit;var c=P();I("menuItems",KFb(c,a))}},MFb=function(a){a&1&&M(0,"b-spinner")},NFb=function(a){a&1&&M(0,"b-spinner")},OFb=function(a,b){a&1&&(K(0,"td",36),F(1,LFb,1,1,"b-actions-menu",37)(2,MFb,1,0,"b-spinner"),E(3,NFb,1,0,"ng-template",null,2,Mg),L());a&
2&&(a=b.$implicit,B(),G(a.saving?2:1))},QFb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-async-data-placeholder",38);T(2,"async");K(3,"b-button",39);N("onAction",function(){var d=u(c).$implicit,e=P();return v(PFb(e,d))});K(4,"span",40);Q(5);L()()()()}a&2&&(a=b.$implicit,b=P(),vg("padding-left",a.level*24+b.TITLE_FIXED_OFFSET_PX,"px"),Kf("colspan",b.tableColumns.length),B(),I("isReady",!!U(2,5,a.parentIssue$)),B(4),S("Display ",a.truncatedSiblingCount," more"))},RFb=function(a){a&1&&(K(0,"th",
25),Q(1," Title "),L())},TFb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"div",41)(2,"b-text-input-cell",42);Cg("valueChange",function(d){var e=u(c).$implicit;Bg(e.title,d)||(e.title=d);return v(d)});N("commit",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});L();K(3,"b-button",43);N("onAction",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});Q(4," Create ");L();K(5,"b-button",44);N("onAction",function(){var d=u(c).$implicit,e=P();return v(SFb(e,d))});Q(6," Cancel ");
L()()()}a&2&&(a=b.$implicit,b=P(),vg("padding-left",(a.level+1)*24+b.EDITABLE_TITLE_OFFSET_PX,"px"),B(2),Ag("value",a.title),I("readonly",a.saving),B(),I("disabled",!a.title||a.saving),B(2),I("disabled",a.saving))},UFb=function(a){a&1&&M(0,"tr",18)},VFb=function(a){a&1&&E(0,UFb,1,0,"tr",45);a&2&&(a=P(),I("matHeaderRowDef",a.tableColumns))},XFb=function(a,b){if(a&1){var c=t();K(0,"tr",46);T(1,"async");T(2,"async");N("click",function(d){var e=u(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("mouseup",
function(d){var e=u(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Cs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(),wg("selected",U(1,8,WFb(b.selectionModel,a.ancestorChain)))("closed",b.isClosed(U(2,10,a.issue$))),I("row",a),Kf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},YFb=function(a,b){if(a&1){var c=t();
K(0,"tr",47);N("focusin",function(){var d=u(c).$implicit,e=P();return v(Cs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,I("row",a),Kf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},ZFb=function(a,b){if(a&1){var c=t();K(0,"tr",48);N("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=u(c).$implicit,e=P();return v(SFb(e,
d))})("keydown.backspace",function(d){var e=u(c).$implicit,f=P();return v(e.title||d.repeat||SFb(f,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Cs(e.focusManager,d))});L()}a&2&&(a=b.$implicit,I("row",a),Kf("data-type",a.type))},$Fb=function(a,b){if(a&&a.length)return a.map(b)},aGb=function(a){var b=a.getFilename();var c=Em(a,2,Di(Km));return{filename:b,lineNumber:c,changeNumber:Ym(a.getChangeNumber())}},cGb=function(a){var b=vi(a,1);a=Ci(a,bGb,2,Di(Km));return{packageName:b,fileMentionSet:$Fb(a,
aGb)}},eGb=function(a){var b=Cm(a,1,void 0,jb),c=Gi(a,2,void 0,jb);a=Ci(a,dGb,3,Di(Km),jb);return{totalMentions:b,truncated:c,packageMentionSet:$Fb(a,cGb)}},gGb=function(a){return{issueId:Number(a.getIssueId()),responseId:a.getResponseId(),response:a.getResponse(),issueCategory:fGb[a.getIssueCategory()]}},hGb=function(a){return{issueId:Number(a.getIssueId()),issueCategory:fGb[a.getIssueCategory()]}},jGb=function(a){if(!a)return!1;a=a.events;return[].concat(q(a.slice(0,1).filter(function(b){var c;
return(c=b.unlinkifiedComment)==null?void 0:c.trim()})),q(a.slice(1).filter(iGb).filter(function(b){var c;return(c=b.unlinkifiedComment)==null?void 0:c.trim()}))).length>=3},iGb=function(a){return!(!aUa(a.userPerformingAction)||!a.isMajorEvent)},lGb=function(a){var b=kGb(a.open);a=kGb(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},kGb=function(a){var b=a.count;a=a.exact;return b===0||a?""+b:b+"+"},mGb=function(a){return"("+kGb(a)+")"},Ft=function(a){return{count:a>99?99:a,exact:a>99?!1:!0}},nGb=
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:wb(b)}},oGb=function(a){a&1&&Wf(0)},pGb=function(a){a&1&&E(0,oGb,1,0,"ng-container",6);a&2&&(P(),a=qg(14),I("ngTemplateOutlet",a))},qGb=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))},rGb=function(a){a&1&&(F(0,qGb,1,6,"b-issues-table",7),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.blockerIds$))?0:-1,b)}},sGb=function(a){a&1&&Wf(0)},tGb=function(a){a&1&&(K(0,"div")(1,"span",5),Q(2,"This issue is not blocked "),K(3,"span",8),Q(4,"\ud83c\udf89"),L()(),E(5,sGb,1,0,"ng-container",6),L());a&2&&(P(),a=qg(14),B(5),I("ngTemplateOutlet",a))},uGb=function(a,b){if(a&1){var c=t();K(0,"p",5);Q(1);
K(2,"button",9);N("click",function(){u(c);var d=P();return v(d.shouldResetFilters.next())});Q(3,"Show all");L()()}a&2&&(B(),zg(" Filtering ",b," issue",b===1?"":"s",". "))},wGb=function(a){if(a&1){var b=t();K(0,"b-button",10);T(1,"async");N("onAction",function(){u(b);var c=P();return v(vGb(c))});Q(2," Add blocker ");L()}a&2&&(a=P(),I("disabled",!U(1,1,a.canEdit$)))},xGb=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))},yGb=function(a,b){a&1&&(K(0,"span",8),Q(1),L());a&2&&(I("title",Eg("",b," applied filter(s)")),B(),yg(b))},zGb=function(a){a&1&&(F(0,yGb,2,3,"span",8),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.internalSelectedOptions.size$))?0:-1,b)}},AGb=function(a){a&1&&(K(0,"h1",6),Q(1),L());a&2&&(a=P(),B(),yg(a.overlayTitle))},BGb=function(a){a&1&&(K(0,"h1"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.title))},
CGb=function(a){a&1&&(K(0,"p"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.description))},DGb=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"div",9)(2,"mat-checkbox",10);T(3,"async");N("change",function(d){var e=u(c).$implicit,f=P();e=e.key;d.checked?f.internalSelectedOptions.add(e):f.internalSelectedOptions.delete(e);f.onChange.emit(new Set(f.internalSelectedOptions));return v()});L();K(4,"div");F(5,BGb,2,1,"h1");F(6,CGb,2,1,"p");L()()()}a&2&&(a=b.$implicit,b=P(),B(2),I("checked",U(3,3,Bs(b.internalSelectedOptions,
a.key))),B(3),G(a.title?5:-1),B(),G(a.description?6:-1))},EGb=function(a){if(a&1){var b=t();M(0,"mat-divider");K(1,"div",11)(2,"button",12);N("click",function(){u(b);var c=P(),d=qg(1);return v(c.cancel(d))});Q(3);L();K(4,"button",13);N("click",function(){u(b);var c=P(),d=qg(1);return v(c.confirm(d))});Q(5);L()()}a&2&&(a=P(),B(3),yg(a.cancelButtonLabel),B(2),yg(a.confirmButtonLabel))},FGb=function(a){a&1&&M(0,"b-spinner")},GGb=function(a){a&1&&Wf(0)},HGb=function(a){a&1&&E(0,GGb,1,0,"ng-container",
23);a&2&&(P(2),a=qg(12),I("ngTemplateOutlet",a))},IGb=function(a){a&1&&(M(0,"b-parents-table",15),T(1,"async"),T(2,"async"));if(a&2){a=P();var b=P();I("issueId",a)("parentIds",U(1,3,b.parentIds$))("filters",U(2,5,b.issueFilters.value$))}},JGb=function(a){a&1&&Wf(0)},KGb=function(a){a&1&&(K(0,"div")(1,"span",24),Q(2,"This issue has no parents"),L(),E(3,JGb,1,0,"ng-container",23),L());a&2&&(P(2),a=qg(12),B(3),I("ngTemplateOutlet",a))},LGb=function(a){a&1&&Wf(0)},NGb=function(a){a&1&&(E(0,LGb,1,0,"ng-container",
25),T(1,"async"));if(a&2){a=P(2);var b=qg(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(4,MGb,U(1,2,a.parentsTable==null?null:a.parentsTable.hiddenRowCount$)))}},OGb=function(a){a&1&&Wf(0)},PGb=function(a){a&1&&E(0,OGb,1,0,"ng-container",23);a&2&&(P(2),a=qg(14),I("ngTemplateOutlet",a))},QGb=function(a){a&1&&(K(0,"div",20)(1,"section",26)(2,"div",27),Q(3," Progress: "),L(),K(4,"div",27),Q(5),T(6,"async"),T(7,"number"),T(8,"async"),T(9,"number"),L(),K(10,"div",28),T(11,"async"),K(12,"div",
29),M(13,"div",30),T(14,"async"),K(15,"onedev-hovercard",null,3)(17,"div",31)(18,"div",32),Q(19),T(20,"async"),L()()()()(),M(21,"mat-icon",33),K(22,"onedev-hovercard",null,4)(24,"div",31)(25,"div",34)(26,"p"),Q(27," The progress of child issues takes into consideration all child issues and descendant issues which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is not reflected in the progress bar. "),L()()()()()());if(a&2){a=qg(16);var b=qg(23),c=P(2);B(5);zg(" ",
Lg(7,11,U(6,9,c.totalDaysComplete$),"1.0-2")," of ",Lg(9,16,U(8,14,c.totalDaysCount$),"1.0-2")," days complete ");B(5);Kf("aria-label",Eg("",U(11,19,c.totalDaysDisplayPercent$)," Percentage of effort completed"));B(2);I("onedevHovercardTrigger",a);B();vg("width",U(14,21,c.totalDaysDisplayPercent$),"%");B(6);S(" ",U(20,23,c.progressHovercardContent$)," ");B(2);I("onedevHovercardTrigger",b)}},RGb=function(a){a&1&&M(0,"rollups-project",21);a&2&&(a=P(),I("id",a))},SGb=function(a){a&1&&Wf(0)},TGb=function(a){a&
1&&(E(0,SGb,1,0,"ng-container",25),T(1,"async"));if(a&2){a=P(2);var b=qg(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(4,MGb,U(1,2,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$)))}},UGb=function(a){a&1&&Wf(0)},VGb=function(a){a&1&&(K(0,"span",24),Q(1,"This issue has no children"),L(),E(2,UGb,1,0,"ng-container",23));a&2&&(P(3),a=qg(14),B(2),I("ngTemplateOutlet",a))},WGb=function(a){a&1&&(K(0,"p",35)(1,"a",36),Q(2," View as search results "),L()());if(a&2){a=P(2);var b=P();
B();I("href",b.makeIlpUrlForParentIssue(a),Pe)}},XGb=function(a){a&1&&(F(0,VGb,3,1),T(1,"async"),T(2,"async"),Lf(3,WGb,3,1,"p",35));if(a&2){var b;a=P(2);G(U(1,1,a.unarchivedChildIssueCount$)===0&&(((b=U(2,3,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:b.length)||0)===0?0:3)}},YGb=function(a,b){if(a&1){var c=t();K(0,"div",9)(1,"section",10)(2,"div",11)(3,"h4",12)(4,"div",13);M(5,"mat-icon",14);L();Q(6);T(7,"async");L();F(8,HGb,1,1,"ng-container");T(9,"async");L();F(10,IGb,3,7,"b-parents-table",
15);T(11,"async");Lf(12,KGb,4,1,"div");F(13,NGb,2,6,"ng-container");T(14,"async");L();K(15,"section")(16,"b-blockers-table",16);T(17,"async");N("shouldResetFilters",function(){u(c);var f=P();return v(f.shouldResetFilters())});L()();K(18,"section")(19,"div",17)(20,"h4",12)(21,"div",18);M(22,"mat-icon",19);L();Q(23);T(24,"async");L();F(25,PGb,1,1,"ng-container");T(26,"async");T(27,"async");L();F(28,QGb,28,25,"div",20);T(29,"async");T(30,"async");F(31,RGb,1,1,"rollups-project",21);M(32,"b-issue-relations-table",
22);T(33,"async");T(34,"async");T(35,"async");F(36,TGb,2,6,"ng-container");T(37,"async");F(38,XGb,4,5);T(39,"async");L()()}if(a&2){var d,e;a=P();B(6);S(" Parents ",U(7,17,a.counts.countParentsDisplay$)," ");B(2);G(U(9,19,a.parentsCount$)?8:-1);B(2);G(U(11,21,a.parentsCount$)?10:12);B(3);G(U(14,23,a.issueFilters.value$)?13:-1);B(3);I("filters",U(17,25,a.issueFilters.value$));B(7);S(" Child issues ",U(24,27,a.counts.countChildrenDisplay$)," ");B(2);G(U(26,29,a.unarchivedChildIssueCount$)||(((d=U(27,
31,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:d.length)||0)>0?25:-1);B(3);G(U(29,33,a.unarchivedChildIssueCount$)&&U(30,35,a.totalDaysCount$)?28:-1);B(3);G(a.isInternalSession?31:-1);B();wg("hidden",!((e=U(33,37,a.relationsTable==null?null:a.relationsTable.rows$))==null?0:e.length)&&!U(34,39,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$));I("saveExpansionAtKey",Eg("project-expansion-",b))("rootIssueId",b)("filters",U(35,41,a.issueFilters.value$));B(4);G(U(37,43,
a.issueFilters.value$)?36:-1);B(2);G(U(39,45,a.unarchivedChildIssueCount$)!==null?38:-1)}},ZGb=function(a){if(a&1){var b=t();K(0,"p",24);Q(1);K(2,"button",37);N("click",function(){u(b);var c=P(2);return v(c.issueFilters.reset([]))});Q(3,"Show all");L()()}a&2&&(a=P().filteredCount,B(),zg(" Filtering ",a," issue",a===1?"":"s",". "))},$Gb=function(a,b){a&1&&F(0,ZGb,4,2,"p",24);a&2&&G(b.filteredCount?0:-1)},bHb=function(a){if(a&1){var b=t();K(0,"b-button",38);T(1,"async");N("onAction",function(){u(b);
var c=P();return v(aHb(c))});Q(2," Add parent ");L()}a&2&&(a=P(),I("disabled",!U(1,1,a.canEdit$)))},cHb=function(a){if(a&1){var b=t();K(0,"b-button",41);T(1,"async");N("onAction",function(){u(b);var c=P(2);return v(c.createChild())});Q(2," Create new child ");L()}a&2&&(a=P(2),I("disabled",!U(1,1,a.canEdit$)))},dHb=function(a){if(a&1){var b=t();F(0,cHb,3,3,"b-button",39);K(1,"b-button",40);T(2,"async");N("onAction",function(){u(b);var c=P();return v(c.addChild())});Q(3," Add existing child ");L()}a&
2&&(a=P(),G(a.isNonPublicSession?0:-1),B(),I("disabled",!U(2,2,a.canEdit$)))},eHb=function(a,b){return le([a,b]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return d===0?0:Math.round(c*100/d*100)/100}))},fHb=function(a){return a===1?a+" day":a+" days"},gHb=function(a){a&1&&(M(0,"one-work-area-list",0),T(1,"async"));a&2&&(a=P(2),I("searchString",U(1,5,a.issueFilter$))("prefKey",a.entityReference)("reference",a.entityReference)("onlyShowTableWhenFiltered",a.onlyShowTableWhenFiltered)("entityType",
a.entityType))},hHb=function(a){a&1&&M(0,"rollups-project",2)(1,"stat-cards-project",2);a&2&&(a=P(2),I("id",a),B(),I("id",a))},jHb=function(a){if(a&1){var b=t();K(0,"aside",4)(1,"p",5);Q(2,"This issue has no children.");L();K(3,"button",6);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||iHb(c);return v()});Q(4," Create new child ");L();K(5,"button",7);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||c.addExistingChild();return v()});Q(6," Add existing ");L()()}},kHb=function(a,
b){a&1&&(F(0,jHb,7,0,"aside",4),T(1,"async"));if(a&2){var c;a=P(4);G(b.descendantCount===0&&(((c=U(1,1,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:c.length)||0)===0?0:-1)}},lHb=function(a){a&1&&(M(0,"b-issue-relations-table",3),F(1,kHb,2,3),T(2,"async"));if(a&2){var b;a=P(2);var c=P();I("saveExpansionAtKey",Eg("project-expansion-",a))("rootIssueId",a)("filters",c.getFilters())("tableColumns",c.TREE_COLUMNS)("options",c.TREE_OPTIONS)("defaultExpansionLevel",0);B();G((b=U(2,8,c.issue$))?
1:-1,b)}},mHb=function(a){a&1&&(F(0,hHb,2,2),F(1,lHb,3,10));a&2&&(a=P(2),G(a.isInternalSession?0:-1),B(),G(a.showTable()?1:-1))},nHb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" Unhandled entity type: ",a.entityType," "))},oHb=function(a){a&1&&(M(0,"recent-events",1),T(1,"async"));a&2&&(a=P(2),I("query",U(1,2,a.issueFilter$))("numEvents",a.numRecentActivityEvents))},pHb=function(a){a&1&&(F(0,gHb,2,7,"one-work-area-list",0)(1,mHb,2,2)(2,nHb,1,1),F(3,oHb,2,4,"recent-events",1));a&2&&(a=P(),G(a.entityType===
"hotlist"||a.entityType==="savedsearch"?0:a.entityType==="issue"?1:2),B(3),G(a.hideRecentActivity?-1:3))},qHb=function(a){return{filter:a!=null?a:void 0,pageSize:500,sort:"modified_time:desc"}},rHb=function(a){a&1&&(M(0,"rollups-list",0),T(1,"async"),M(2,"stat-cards-list",1),T(3,"async"));a&2&&(a=P(),I("ref",a.reference)("query",U(1,5,a.issueQuery$)),B(2),I("prefKey",a.prefKey)("query",U(3,7,a.issueQuery$))("entityType",a.entityType))},sHb=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))},tHb=function(a){a&1&&(F(0,sHb,1,5,"b-issues-table",2),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issueIds$))?0:-1,b)}},uHb=function(a){a&1&&(K(0,"button",9),M(1,"mat-icon",13),Q(2," Add "),L());a&2&&(P(),a=qg(9),I("matMenuTriggerFor",a))},vHb=function(a){a&1&&M(0,"b-tracker-chip-smart",17);a&2&&(a=P(2).$implicit,I("trackerId",
a.trackerId)("compactMode",!0))},wHb=function(a){a&1&&(K(0,"a",28),M(1,"mat-icon",29),Q(2," View Issue "),L(),K(3,"a",30),M(4,"mat-icon",29),Q(5," View as search results "),L());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));B(3);I("href",b.makeIlpUrlForParentIssue(a.workAreaUrl),Pe)}},xHb=function(a){a&1&&(K(0,"a",21),M(1,"mat-icon",29),Q(2),L());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));B(2);S(" View ",b.getEntityTypeName(a.workAreaUrl),
" ")}},yHb=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c),e=P(4);e.clipboard.copy(d);Pr(e.butterBar,"ID copied",2E3);return v()});M(1,"mat-icon",31);Q(2);L()}a&2&&(B(2),S(" Copy ID: ",b," "))},AHb=function(a){if(a&1){var b=t();F(0,vHb,1,2,"b-tracker-chip-smart",17);Q(1);K(2,"button",18);N("click",function(k){u(b);return v(k.stopPropagation())});M(3,"mat-icon",19);L();K(4,"mat-menu",20,1);F(6,wHb,6,2)(7,xHb,3,2,"a",21);F(8,yHb,3,1,"button",22);M(9,"mat-divider");K(10,
"button",23);N("click",function(){u(b);var k=P().$implicit,l=P(2);return v(zHb(l.prefsService,k.workAreaUrl,-1))});M(11,"mat-icon",24);Q(12," Move Left ");L();K(13,"button",23);N("click",function(){u(b);var k=P().$implicit,l=P(2);return v(zHb(l.prefsService,k.workAreaUrl,1))});M(14,"mat-icon",25);Q(15," Move Right ");L();K(16,"button",26);N("click",function(){u(b);var k=P().$implicit,l=P(2).prefsService,r=k.workAreaUrl;if(r!=null){var w;k=((w=l.prefs.workAreaUrls)!=null?w:[]).slice();w=k.indexOf(r);
w<0||(k.splice(w,1),Gt(l,{workAreaUrls:k}))}return v()});M(17,"mat-icon",27);Q(18," Remove ");L()()}if(a&2){var c;a=qg(5);var d=P(),e=d.$implicit,f=d.$index;d=d.$count;var g=P(2);G(g.currentTrackerId&&g.currentTrackerId!==e.trackerId&&g.inferEntityType(e.workAreaUrl)==="issue"?0:-1);B();S(" ",g.titles[e.workAreaUrl]||e.workAreaUrl," ");B();I("matMenuTriggerFor",a);B(4);G(g.inferEntityType(e.workAreaUrl)==="issue"?6:7);B(2);G((c=g.extractLastDigits(e.workAreaUrl))?8:-1,c);B(2);I("disabled",f===0);
B(3);I("disabled",f===d-1);B(3);I("title",Eg("Hide the work area '",e.workAreaUrl,"' from this section"))}},BHb=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)}},CHb=function(a){a&1&&(K(0,"mat-tab"),E(1,AHb,19,9,"ng-template",15)(2,BHb,1,2,"ng-template",16),L())},FHb=function(a){if(a&1){var b=t();K(0,"mat-tab-group",14);N("selectedIndexChange",function(c){u(b);var d=P();return v(DHb(d.prefsService,d.SECTION_SLUG,
c))});Of(1,CHb,3,0,"mat-tab",null,EHb);T(3,"async");L()}a&2&&(a=P(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Pf(U(3,1,a.refsForTemplate$)))},GHb=function(a){a&1&&M(0,"b-issue-card",44);a&2&&(a=P().$implicit,I("issueId",a.ref))},IHb=function(a,b){if(a&1){var c=t();K(0,"li",41);N("click",function(){var d=u(c).$implicit,e=P(3);return v(HHb(e,d.ref))});K(1,"p",42);Q(2);L();K(3,"p",43);Q(4);L();K(5,"onedev-hovercard",null,2);F(7,GHb,1,1,"b-issue-card",44);L()()}a&2&&(a=b.$implicit,b=qg(6),I("title",
Eg("Click to add\n\rWhy this? ",a.suggestionRationale)),B(2),yg(a.title),B(),I("onedevHovercardTrigger",b),B(),S("b/",a.ref),B(3),G(a.ref?7:-1))},JHb=function(a){a&1&&(K(0,"div",35)(1,"h4"),Q(2,"Suggestions:"),L(),K(3,"ol",39),Of(4,IHb,8,6,"li",40,Nf),L()());a&2&&(a=P(2),B(4),Pf(a.suggestions))},KHb=function(a){a&1&&(K(0,"section",12)(1,"div",33),M(2,"img",34),F(3,JHb,6,0,"div",35),L(),K(4,"p",36),Q(5," Use work areas to closely monitor a hotlist, saved search, or a parent/child project issue. "),
L(),K(6,"button",37),M(7,"mat-icon",38),Q(8," Add work area "),L()());if(a&2){a=P();var b=qg(9);B(2);I("src",a.EMPTY_STATE_IMG,Pe);B();G(a.suggestions.length>0?3:-1);B(3);I("matMenuTriggerFor",b)}},LHb=function(a,b){if(a&1){var c=t();K(0,"button",9);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.pageSizeChange.emit(d))});K(1,"span",10);M(2,"mat-icon",11);L();Q(3);L()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",a===b.pageSize),Kf("aria-checked",a===b.pageSize),B(3),S(" ",a," "))},
MHb=function(a){a&1&&(K(0,"button",5),M(1,"mat-icon",6),L(),K(2,"mat-menu",null,0)(4,"div",7),Q(5,"Results per page:"),L(),Of(6,LHb,4,4,"button",8,Nf),L());if(a&2){a=qg(3);var b=P();I("matMenuTriggerFor",a);B(6);Pf(b.pageSizeOptions)}},NHb=function(a){a&1&&(K(0,"span"),Q(1," - "),K(2,"strong"),Q(3),L()());a&2&&(a=P(),B(3),yg(a.endIndex))},OHb=function(a,b){a&1&&(K(0,"span",27),Q(1),L());a&2&&(B(),S("",b," "))},PHb=function(a){a&1&&(F(0,OHb,2,1,"span",27),T(1,"async"),Q(2," \u00a0/\u00a0 "));if(a&
2){var b;a=P();G((b=U(1,1,a.attentionCount$))?0:-1,b)}},QHb=function(a,b){a&1&&(K(0,"div",9)(1,"h2",7),Q(2),L(),K(3,"span",26),F(4,PHb,3,3),T(5,"async"),K(6,"span"),Q(7),T(8,"async"),L()()());if(a&2){var c;B(2);yg(b.displayName);B(2);G((c=U(5,3,b.attentionCount$))?4:-1,c);B(3);yg(U(8,5,b.totalCount$))}},SHb=function(a,b){if(a&1){var c=t();K(0,"button",13);N("click",function(){var d=u(c).$implicit,e=P();return v(RHb(e,d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(),B(),S(" ",b.SUBPHASE_TO_DISPLAY_NAME[a],
" "))},THb=function(a){a&1&&M(0,"mat-progress-bar",21)},UHb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" (",a.count,") "))},VHb=function(a,b){a&1&&(K(0,"mat-chip-option",30),T(1,"async"),K(2,"span",31),Q(3),F(4,UHb,1,1),L()());a&2&&(a=b.$implicit,b=P(4),I("value",a.key)("selected",U(1,5,Bs(b.selectedFilterKeys,a.key))),B(2),I("matTooltip",a.tooltip),B(),S(" ",a.displayAs," "),B(),G(a.showCount?4:-1))},XHb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",29);N("change",function(c){u(b);P(3).selectedFilterKeys.reset(c.value.filter(Qm));
return v()});Of(1,VHb,5,7,"mat-chip-option",30,WHb);L()}a&2&&(a=P(),I("multiple",!0),B(),Pf(a))},YHb=function(a,b){a&1&&F(0,XHb,3,1,"mat-chip-listbox",28);a&2&&G(b.length?0:-1)},ZHb=function(a){a&1&&(F(0,YHb,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.availableFiltersInCurrentPhase$))?0:-1,b)}},$Hb=function(a){a&1&&Wf(0)},bIb=function(a,b){a&1&&E(0,$Hb,1,0,"ng-container",32);if(a&2){a=P();var c=qg(53);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Jg(2,aIb,b,a.teamId))}},cIb=function(a){if(a&
1){var b=t();K(0,"selection-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(3);return v(c.refreshTable())});L()}},dIb=function(a){if(a&1){var b=t();K(0,"issue-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return v(c.refreshTable())});L()}},eIb=function(a){if(a&1){var b=t();K(0,"cluster-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return v(c.refreshTable())});L()}},fIb=function(a){a&1&&F(0,dIb,1,0,"issue-triage-sidebar")(1,eIb,1,0,"cluster-triage-sidebar");
a&2&&(a=P(),G(a.length===1?0:a.length>1?1:-1))},gIb=function(a){a&1&&F(0,cIb,1,0,"selection-triage-sidebar")(1,fIb,2,1);a&2&&(a=P(2),G(a.triageService.mode===a.TriageServiceMode.SELECTION?0:a.triageService.mode===a.TriageServiceMode.ACTIVATION?1:-1))},hIb=function(a){a&1&&(F(0,gIb,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.triageService.currentIssueIds$))?0:-1,b)}},lIb=function(a){if(a&1){var b=t();K(0,"b-issues-table",36);T(1,"async");T(2,"async");T(3,"async");N("activeIssueChange",function(k){u(b);
var l=P(2);return v(iIb(l,k))})("rowClick",function(k){u(b);var l=P(2);return v(iIb(l,k))})("selectedIssuesChange",function(k){u(b);var l=P(2);l.selectedIssues=k;k=l.selectedIssues.selected;l.triageService.setIssueIds(k);k.length?(l.triageService.setMode(1),l.triageService.openSidebar()):(l.triageService.setMode(0),l.triageService.closeSidebar());return v()})("sortChange",function(k){u(b);var l=P(2);return v(l.onSortChange(k))})("columnsChange",function(k){u(b);var l=P(2);return v(l.onColumnsChange(k))});
L()}if(a&2){var c=P();a=c.issueIds;c=c.teamId;var d=P(),e,f,g;I("issueIds",a)("tableColumns",(e=U(1,7,d.tableColumns$))!=null?e:Hg(13,jIb))("editableColumns",!0)("options",(f=U(2,9,d.tableOptions$))!=null?f:Hg(14,kIb))("teamId",c)("showReadStatus",!0)("alerts",(g=U(3,11,d.issueAlertsForCurrentPhase$))!=null?g:Hg(15,jIb))}},mIb=function(a){a&1&&(K(0,"div",35),M(1,"img",37),Q(2," All clean! There are no issues in this phase. "),L());a&2&&(a=P(2),B(),I("src",a.EMPTY_STATE_IMG,Pe))},nIb=function(a,b){a&
1&&F(0,lIb,4,16,"b-issues-table",34)(1,mIb,3,1,"div",35);a&2&&G(b.issueIds.length?0:1)},oIb=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 q7a(a,b).filter(function(e){return!d||d.check(e)||c.some(function(f){return o7a(e,f)})?!0:!1})},qIb=function(a,b,c,d){return c?function(){switch(c.column){case "CREATED_TIME":return MUa(OUa)(a,c.direction);case "RELATIVE_MODIFIED_TIME":return NUa(OUa)(a,c.direction);case "PRIORITY":return TUa(OUa)(a,
c.direction);case "TRIAGER":return QUa()(a,c.direction);default:return console.warn("b-triage-phase sort by '"+c.column+"' not implemented"),a}}().map(function(e){return e.issueId}):pIb(a,b,d)},pIb=function(a,b,c){var d=rIb.get(c),e=new Map(a.map(function(f){return[f.issueId,d.findIndex(function(g){return o7a(f,g)})]}));c=a.filter(function(f){return e.get(f.issueId)!==-1}).map(function(f){return f.issueId}).sort(function(f,g){return e.get(f)-e.get(g)});return uq([].concat(q(b),q(c),q(a.map(function(f){return f.issueId}))),
function(f){return Array.isArray(f)?f.join(";"):f})},sIb=function(a){a&1&&(K(0,"span",8),Q(1," > "),L())},vIb=function(a,b){if(a&1){var c=t();K(0,"span")(1,"a",7);N("click",function(e){var f=u(c).$implicit,g=P(2);f=new tIb(f.pathIds,f.pathNames);g.onTeamSelect.emit(f);e.stopPropagation();e.preventDefault();uIb(g.autocompleteTrigger);return v()});Q(2);L();F(3,sIb,2,0,"span",8);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;B();I("matTooltip",a.pathNameText);B();yg(a.name);B();G(d!==b-1?3:-1)}},
wIb=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div"),Of(2,vIb,4,3,"span",null,Nf),L(),K(4,"span",6),Q(5),T(6,"slice"),L()());a&2&&(a=b.$implicit,I("value",a),B(2),Pf(a.teamPath),B(2),I("matTooltip",a.description),B(),S("",Coa(6,3,a.description,100)," "))},xIb=function(a){a&1&&Q(0," Search results ")},yIb=function(a){a&1&&Q(0," Recommended ")},zIb=function(a){a&1&&(K(0,"th",18)(1,"span",19),Q(2,"Starred"),L()())},AIb=function(a,b){if(a&1){var c=t();K(0,"td",20)(1,"b-star-toggle",21);N("starClicked",
function(){var e=u(c).$implicit,f=P(2),g=P();return v(g.toggleStar(e.triageId,e.teamId,f))});L()()}if(a&2){a=b.$implicit;b=P(2);var d=P();B();I("disabled",d.starInProgress["row.triageId:row.teamId"])("starred",d.isTriageStarred(a.triageId,a.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},BIb=function(a){a&1&&(K(0,"th",18),Q(1,"Name"),L())},CIb=function(a,b){a&1&&(K(0,"td",22)(1,"a",23),Q(2),L()());a&2&&(a=b.$implicit,b=P(3),B(),I("href",b.getTriageLink(a.triageId,
a.teamId),Pe),B(),S(" ",a.triageName||a.teamName+" triage"," "))},DIb=function(a){a&1&&(K(0,"th",18),Q(1,"Team"),L())},EIb=function(a,b){a&1&&(K(0,"td",24),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.teamName," "))},FIb=function(a){a&1&&(K(0,"th",18),Q(1,"Scope"),L())},GIb=function(a,b){a&1&&(K(0,"td",25),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.scope," "))},HIb=function(a){a&1&&M(0,"tr",26)},IIb=function(a){a&1&&M(0,"tr",27)},JIb=function(a,b){a&1&&(K(0,"table",6),Uf(1,7),E(2,zIb,3,0,"th",8)(3,AIb,
2,4,"td",9),Vf(),Uf(4,10),E(5,BIb,2,0,"th",8)(6,CIb,3,2,"td",11),Vf(),Uf(7,12),E(8,DIb,2,0,"th",8)(9,EIb,2,1,"td",13),Vf(),Uf(10,14),E(11,FIb,2,0,"th",8)(12,GIb,2,1,"td",15),Vf(),E(13,HIb,1,0,"tr",16)(14,IIb,1,0,"tr",17),L());a&2&&(a=P(2),I("dataSource",b)("fixedLayout",!0),B(13),I("matHeaderRowDef",a.tableColumns),B(),I("matRowDefColumns",a.tableColumns))},KIb=function(a){a&1&&M(0,"b-spinner")},LIb=function(a){a&1&&(F(0,JIb,15,4,"table",6),T(1,"async"),Lf(2,KIb,1,0,"b-spinner"));if(a&2){var b;a=
P();G((b=U(1,1,a.triageRows$))?0:2,b)}},MIb=function(a){a&1&&(K(0,"button",9)(1,"span"),Q(2,"Edit"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=qg(7);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},NIb=function(a){a&1&&(K(0,"button",9)(1,"span"),Q(2,"Link"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=qg(74);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},OIb=function(a){a&1&&(K(0,"button",9)(1,"span"),Q(2,"CC"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=qg(90);I("disabled",a.isAnonymous)("matMenuTriggerFor",
b)}},PIb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P();return v(c.bulkEdit("ESTIMATED_EFFORT"))});Q(1,"Estimated Effort");L()}},QIb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("PRIORITY",d))});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a," "))},RIb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("SEVERITY",d))});Q(1);
L()}a&2&&(a=b.$implicit,B(),S(" ",a," "))},SIb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("STATUS",d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(),B(),S(" ",b.STATUS_JS_FULL_TEXT.get(a)," "))},TIb=function(a){a&1&&M(0,"mat-divider")},UIb=function(a){a&1&&M(0,"mat-icon",16);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},VIb=function(a,b){if(a&1){var c=t();F(0,TIb,1,0,"mat-divider");K(1,"button",15);N("click",function(){var f=u(c).$implicit,
g=P();return v(g.quickBulkEdit("TYPE",f.value))});F(2,UIb,1,1,"mat-icon",16);Q(3);L()}if(a&2){a=b.$implicit;b=b.$index;P();var d=bg(58);G(b>0&&d[b].group!=d[b-1].group?0:-1);B();var e;I("matTooltip",(e=a.altText)!=null?e:"");B();G(a.icon?2:-1);B();S(" ",a.displayText," ")}},WIb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P(2);return v(c.exportCsvClicked.emit())});Q(1,"Export issues to CSV ");L()}},XIb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);
var c=P(2);return v(c.flagAsSpamClicked.emit())});Q(1,"Flag issues as spam ");L()}},YIb=function(a){a&1&&(K(0,"button",1)(1,"span"),Q(2,"More"),L(),M(3,"b-icon",2),L(),K(4,"mat-menu",null,0),F(6,WIb,2,0,"button",3),F(7,XIb,2,0,"button",3),L());if(a&2){a=qg(5);var b=P();I("disabled",b.isAnonymous)("matMenuTriggerFor",a);B(6);G(b.showExportCsv?6:-1);B();G(b.showFlagIssuesAsSpam?7:-1)}},ZIb=function(a){a&1&&Q(0," Network connection has been interrupted. ")},$Ib=function(a){a&1&&Q(0," Network connection has been interrupted or login credentials may have expired. ")},
bJb=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(c){u(b);P(2);c.stopPropagation();c.preventDefault();var d={width:690,height:500,top:window.screenTop+(window.outerHeight-500)/2,left:window.screenLeft+(window.outerWidth-690)/2};c=window;var e=xh("/refreshSso")?"/refreshSso":yh(typeof"/refreshSso".href!="undefined"?"/refreshSso".href:"/refreshSso");var f=self.crossOriginIsolated!==void 0,g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var k=
d.noreferrer;if(f&&k&&g==="unsafe-url")throw Error("kg");g=k&&!f;k=d.target||"/refreshSso".target;var l=[],r=[],w=!1;for(C in d){var x=d[C];switch(C){case "width":case "height":case "top":case "left":l.push(C+"="+x);break;case "target":break;case "noopener":case "noreferrer":x?r.push(C):(w=!0,r.push(C+"=false"));break;case "attributionsrc":l.push(C+(x?"="+x:""));break;default:l.push(C+"="+(x?1:0))}}var C=k!==void 0&&!["_blank","_self","_top","_parent",""].includes(k);C=eba()&&C;aJb&&f&&l.length===
0&&r.length>0&&!C&&!w?(r.length===2&&(r=["noreferrer"]),oi(c,e,k,r[0])):(f=l.join(","),Fa()&&c.navigator&&c.navigator.standalone&&k&&k!="_self"?(f=Ws(document,"A"),$ra(f,e),f.target=k,g&&(f.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&f.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),f.dispatchEvent(d)):g?(c=oi(c,"",k,f),d=Oqa(e),c&&(c.opener=null,d===""&&(d="javascript:''"),d=Xta('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
Ht(d)+'">'),(c=c.document)&&c.write&&(c.write(rh(d)),c.close()))):((c=oi(c,e,k,f))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null)));return v()});Q(1," Log in again ");L()}},cJb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),F(2,ZIb,1,0)(3,$Ib,1,0),L(),K(4,"b-callout-actions"),F(5,bJb,2,0,"button",1),L()());a&2&&(a=P(),I("messageType","error"),B(2),G(a.isAnonymous?2:3),B(3),G(a.isAnonymous?-1:5))},dJb=function(a){a&1&&(K(0,"a",0),Q(1," Hiring! "),L())},eJb=function(a,b){a&
1&&(K(0,"tr")(1,"td",4),Q(2),L(),K(3,"td"),Q(4,":"),L(),K(5,"td",5),Q(6),L()());a&2&&(a=b.$implicit,B(2),yg(a.displayAs),B(4),yg(a.description))},fJb=function(a,b){a&1&&(K(0,"thead")(1,"tr"),M(2,"th",2),K(3,"th",3),Q(4),L()(),Of(5,eJb,7,2,"tr",null,Nf),L());a&2&&(a=b.$implicit,B(4),yg(a.title),B(),Pf(a.hotkeys))},gJb=function(a){a=a===void 0?!1:a;var b=E3a(),c=b.total,d=b.redundancyRatio;er("after-60s","xhr","redundant",b.redundant);er("after-60s","xhr","total",c);er("after-60s","xhr","redundancyRatio",
d);a&&(console.table(D3a()),console.log(b))},Jt=function(a){a==="duplicateOfIssueId"&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new It({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):b===0?a=null:(a={customFieldId:b},a=new It({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},hJb=function(a){a=Kt(a);if(ya(a))return null;var b=a.split(":");if(b.length!==2||ya(b[1]))return null;a=b[1].toLowerCase()==="asc"?"ASCENDING":"DESCENDING";return(b=Jt(b[0]))&&
a?new Lt(b,a):null},Mt=function(a,b){b=b===void 0?Xn():b;var c,d=(c=b.tracker)==null?void 0:c.name;b=b.config.appName;d=d||b;return a?a+" - "+d:d},iJb=function(a){a&1&&M(0,"bug-screensaver")},jJb=function(a){a&1&&(M(0,"img",3),K(1,"span",4),Q(2),L(),Q(3," Powered by Google "),K(4,"span",1),Q(5,"|"),L());a&2&&(a=P(2),I("src",a.trackerLogo,Pe),B(2),S("",a.trackerName," Issue Tracker"))},kJb=function(a){a&1&&(K(0,"div")(1,"span",1),Q(2,"|"),L(),K(3,"a",5),Q(4,"Code of Conduct"),L()());a&2&&(a=P(2),B(3),
I("href",a.trackerCoc,Pe))},lJb=function(a){a&1&&(K(0,"footer"),F(1,jJb,6,2),K(2,"a",0),Q(3,"Privacy"),L(),K(4,"span",1),Q(5,"|"),L(),K(6,"a",2),Q(7,"Terms"),L(),F(8,kJb,5,1,"div"),L());a&2&&(a=P(),B(),G(a.currentTracker?1:-1),B(7),G(a.trackerCoc?8:-1))},mJb=function(a,b){if(a&1){var c=t();K(0,"b-fab-segmented",1);N("clickMain",function(e){u(c);var f=P(2);return v(f.trackClick(e))})("clickSegment",function(e){u(c);var f=P(2);return v(f.trackClick(e))});L()}if(a&2){a=P();var d=P();I("label",b)("icon",
d.buttonIcon)("href",d.createIssuePath)("segments",a)}},nJb=function(a){a&1&&(F(0,mJb,1,4,"b-fab-segmented",0),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.buttonLabel$))?0:-1,b)}},oJb=function(a){a&1&&Wf(0)},pJb=function(a){a&1&&Wf(0)},qJb=function(a){a&1&&E(0,pJb,1,0,"ng-container",1);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},rJb=function(a){a&1&&(K(0,"ul",5)(1,"li")(2,"a",6),M(3,"mat-icon",7),Q(4," Triage "),L()()());a&2&&(a=P(2),B(),wg("selected",a.location.path().startsWith(ps.triageSettings.makeHref())),
B(),I("href",a.ROUTES.triageSettings.makeHref(),Pe))},sJb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(4);return v(c.goToTriageSettingsPage())});Q(1," Configure triage ");L()}},tJb=function(a){if(a&1){var b=t();Q(0," Triage ");K(1,"span",9);Q(2,"New");L();K(3,"button",10);N("click",function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",11);L();K(5,"mat-menu",null,2);E(7,sJb,2,0,"ng-template",12);L()}a&2&&(a=qg(6),B(3),I("matMenuTriggerFor",a))},uJb=function(a){a&
1&&(K(0,"div",17)(1,"span",18),Q(2),T(3,"async"),L()());a&2&&(a=P().$implicit,B(2),yg(U(3,1,a.displayName$)))},vJb=function(a,b){a&1&&(K(0,"span",26),Q(1),L());a&2&&(B(),S(" ",b," "))},wJb=function(a,b){if(a&1){var c=t();K(0,"a",25);N("click",function(f){var g=u(c),k=P(8);return v(k.onAnchorClick(g,f))});K(1,"span");Q(2);L();F(3,vJb,2,1,"span",26);T(4,"async");L()}if(a&2){var d;a=P().$implicit;var e=P();I("href",b,Pe);B(2);S(" ",e.phase(a).displayName," ");B();G((d=U(4,3,e.phase(a).attentionCount$))?
3:-1,d)}},xJb=function(a,b){a&1&&(K(0,"li",24),F(1,wJb,5,5,"a",22),L());if(a&2){var c;a=b.$implicit;b=P();var d=P(2).$implicit,e=P(4);wg("selected-indented",e.isTriageUrlFor(d.teamId,a,d.triageId));I("title",b.phase(a).displayName);B();G((c=e.ROUTES.viewTriage.makeHref(d.teamId,d.triageId,e.phaseToUrlSlug[a]))?1:-1,c)}},yJb=function(a){a&1&&(K(0,"ul",19),Of(1,xJb,2,4,"li",20,Nf),K(3,"li",21)(4,"a",22)(5,"span"),Q(6," Issue Themes "),M(7,"mat-icon",23),L()()()());if(a&2){a=P(2).$implicit;var b=P(4);
B();Pf(b.ALL_PHASES);B(2);wg("selected-indented",b.location.path().endsWith("issue-themes"));B();I("href",b.ROUTES.viewIssueThemes.makeHref(a.teamId,a.triageId),Pe)}},zJb=function(a){a&1&&F(0,yJb,8,3,"ul",19);if(a&2){var b;a=P().$implicit;var c=P(4);G((b=c.triageService.triageDataFactory.get(a.teamId,a.triageId))?0:-1,b)}},BJb=function(a,b){if(a&1){var c=t();K(0,"li",15);T(1,"async");K(2,"sidebar-zippy",16);T(3,"async");N("onExpand",function(){var g=u(c).$implicit;P(4).bLocation.setUrl(ps.viewTriage.makeHref(g.teamId,
g.triageId));return v()});E(4,uJb,4,3,"ng-template",null,3,Mg)(6,zJb,1,1,"ng-template",null,4,Mg);L()()}if(a&2){a=b.$implicit;b=qg(5);var d=qg(7),e=P(4);I("title",U(1,4,a.displayName$));B(2);var f;I("header",b)("content",d)("expanded",(f=U(3,6,AJb(e,a.teamId,a.triageId)))!=null?f:!1)}},CJb=function(a){a&1&&(K(0,"ul",14),Of(1,BJb,8,8,"li",15,Nf),L());a&2&&(a=P(2),B(),Pf(a))},DJb=function(a){a&1&&(M(0,"hr"),K(1,"sidebar-zippy",8),E(2,tJb,8,1,"ng-template",null,0,Mg)(4,CJb,3,0,"ng-template",null,1,Mg),
L());if(a&2){a=qg(3);var b=qg(5);B();I("header",a)("content",b)}},EJb=function(a,b){a&1&&F(0,rJb,5,3,"ul",5)(1,DJb,6,2);a&2&&G(b.length===0?0:1)},FJb=function(a){a&1&&Q(0," Archived ")},GJb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(c){u(b);return v(c.stopPropagation())});M(1,"mat-icon",16);L()}a&2&&(P(),a=qg(5),I("matMenuTriggerFor",a))},HJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unstar())});Q(1," Unstar ");
L()}},IJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unarchive())});Q(1," Unarchive ");L()}},JJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");L();K(2,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");L();K(4,"button",17);N("click",function(){u(b);
var c=P(2).$implicit,d=P(3);return v(d.openEditBookmarkGroup(c.id))});Q(5," Settings ");L();F(6,HJb,2,0,"button",18);F(7,IJb,2,0,"button",18)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?6:-1),B(),G(a.isEditable()?7:-1))},KJb=function(a){a&1&&(K(0,"div",11)(1,"span",12),Q(2),L(),F(3,GJb,2,1,"button",13),K(4,"mat-menu",null,4),E(6,JJb,8,2,"ng-template",14),L()());a&2&&(a=P().$implicit,Kf("id",Eg("bv2-user-archived-bookmarkgroup-item-",a.id)),B(2),yg(a.name),B(),G(a?3:-1))},LJb=function(a,b){if(a&
1){var c=t();K(0,"li",21)(1,"a",22);N("click",function(d){var e=u(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});K(2,"span",12);Q(3);L()()()}a&2&&(a=b.$implicit,b=P(2).$implicit,wg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Kf("id",poa("bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id)),I("title",a.name),B(),I("href",a.href,Pe),B(2),S(" ",a.name," "))},MJb=function(a){a&1&&(K(0,"ul",
19),Of(1,LJb,4,13,"li",20,Nf),L());a&2&&(a=P().$implicit,B(),Pf(a.items))},NJb=function(a,b){a&1&&(K(0,"li",8)(1,"sidebar-zippy",10),E(2,KJb,7,4,"ng-template",null,2,Mg)(4,MJb,3,0,"ng-template",null,3,Mg),L()());if(a&2){a=b.$implicit;b=qg(3);var c=qg(5);I("title",a.name);B();I("header",b)("content",c)}},OJb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",16),L());a&2&&(P(),a=qg(6),I("matMenuTriggerFor",a))},PJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;
return v(c.unstar())});Q(1," Unstar ");L()}},QJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unarchive())});Q(1," Unarchive ");L()}},RJb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P().$implicit,d=P(3);return v(d.openEditHotlist(c.id))});Q(1," Settings ");L();F(2,PJb,2,0,"button",18);F(3,QJb,2,0,"button",18)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isEditable()?3:-1))},SJb=function(a,
b){if(a&1){var c=t();K(0,"li",23)(1,"a",24);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",12);Q(3);L()();F(4,OJb,2,1,"button",25);K(5,"mat-menu",null,5);E(7,RJb,4,2,"ng-template",14);L()()}a&2&&(a=b.$implicit,wg("selected",a.isSelected()),I("id",Eg("bv2-user-hotlists-archived-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Pe),B(2),yg(a.name),B(),G(a?4:-1))},TJb=function(a){a&1&&(K(0,"ul",7),Of(1,NJb,6,3,"li",8,Nf),Of(3,SJb,8,8,"li",9,
Nf),L());a&2&&(a=P(2),B(),Pf(a.bookmarkGroups),B(2),Pf(a.hotlists))},UJb=function(a){a&1&&(K(0,"div"),M(1,"hr"),K(2,"sidebar-zippy",6),E(3,FJb,1,0,"ng-template",null,0,Mg)(5,TJb,5,0,"ng-template",null,1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},VJb=function(a){a&1&&M(0,"b-spinner")},WJb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",13);N("starClicked",function(){u(b);var c=P().$implicit,d=P();return v(d.toggleStar(c))});L()}a&2&&(a=P().$implicit,I("starMessage",
"Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},XJb=function(a){a&1&&M(0,"b-hotlist-card",10);a&2&&(a=P().$implicit,I("hotlist",a))},YJb=function(a){a&1&&M(0,"b-bookmark-group-card",11);a&2&&(a=P().$implicit,I("bookmarkGroup",a))},ZJb=function(a,b){a&1&&(K(0,"mat-option",6)(1,"div",8),F(2,WJb,1,3,"b-star-toggle",9),K(3,"onedev-hovercard",null,2),F(5,XJb,1,1,"b-hotlist-card",10)(6,YJb,1,1,"b-bookmark-group-card",11),L(),K(7,"span",12),Q(8),L()()());if(a&2){a=b.$implicit;
b=qg(4);var c=P();I("value",a);B();wg("bv2-bookmark-group",c.showHotlists&&a.isGroup);B();G(c.shouldShowStar(a)?2:-1);B(3);G(a.isGroup?6:5);B(2);I("onedevHovercardTrigger",b);B();yg(a.name)}},$Jb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);N("itemSelect",function(c){u(b);var d=P();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return v()});L()()()}a&2&&(a=P(),B(2),I("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",
a.allowStarring)("focusOnInit",!0))},aKb=function(a){if(a&1){var b=t();K(0,"span");Q(1,"Bookmark groups");L();K(2,"b-hotlist-search-popup",8);N("itemSelect",function(c){u(b);var d=P();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return v()})("click",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(B(2),I("showHotlists",!1))},bKb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(c){u(b);return v(c.stopPropagation())});M(1,"mat-icon",17);L()}a&2&&(P(),a=qg(5),I("matMenuTriggerFor",
a))},cKb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unstar())});Q(1," Unstar ");L()}},dKb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.archive())});Q(1," Archive ");L()}},eKb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");L()}},fKb=function(a){if(a&1){var b=t();K(0,"button",
18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");L();K(2,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");L();K(4,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.editBookmarkGroup(c.id))});Q(5," Settings ");L();F(6,cKb,2,0,"button",19);F(7,dKb,2,0,"button",19);F(8,eKb,2,0,"button",19)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?
6:-1),B(),G(a.isEditable()?7:-1),B(),G(a.isPreferredHomepage()?-1:8))},gKb=function(a){a&1&&(K(0,"div",12)(1,"span",13),Q(2),L(),F(3,bKb,2,1,"button",14),K(4,"mat-menu",null,4),E(6,fKb,9,3,"ng-template",15),L()());a&2&&(a=P().$implicit,Kf("id",Eg("bv2-user-bookmarkgroup-item-",a.id)),B(2),yg(a.name),B(),G(a?3:-1))},hKb=function(a){a&1&&(K(0,"button",24),M(1,"mat-icon",17),L());a&2&&(P(),a=qg(6),I("matMenuTriggerFor",a))},iKb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);
var c=P(2).$implicit;return v(c.unstar())});Q(1," Unstar ");L()}},jKb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");L()}},kKb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P().$implicit,d=P(5);c.type==="HOTLIST"?d.location.setUrl(ps.editHotlist.makeHref(c.id)):d.location.setUrl(d.paths.editSavedSearch(c.id));return v()});Q(1," Settings ");L();F(2,iKb,2,0,
"button",19);F(3,jKb,2,0,"button",19)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isPreferredHomepage()?-1:3))},lKb=function(a,b){if(a&1){var c=t();K(0,"li",22)(1,"a",23);N("click",function(d){var e=u(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});K(2,"span",13);Q(3);L()();F(4,hKb,2,1,"button",24);K(5,"mat-menu",null,5);E(7,kKb,4,2,"ng-template",15);L()()}a&2&&(a=b.$implicit,b=P(2).$implicit,wg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type==
"HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Kf("id",poa("bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id)),I("title",a.getDisplayName()),B(),I("href",a.href,Pe),B(2),S(" ",a.getDisplayName()," "),B(),G(b?4:-1))},mKb=function(a){a&1&&(K(0,"ul",20),Of(1,lKb,8,14,"li",21,Nf),L());a&2&&(a=P().$implicit,B(),Pf(a.items))},nKb=function(a,b){a&1&&(K(0,"li",10)(1,"sidebar-zippy",11),E(2,gKb,7,4,"ng-template",null,2,Mg)(4,mKb,3,0,"ng-template",null,3,Mg),L()());if(a&2){a=b.$implicit;
b=qg(3);var c=qg(5);I("title",a.name);B();I("header",b)("content",c)("expanded",!1)}},oKb=function(a){a&1&&(K(0,"ul",9),Of(1,nKb,6,4,"li",10,Nf),L());a&2&&(a=P(2),B(),Pf(a.bookmarkGroups))},pKb=function(a){a&1&&F(0,oKb,3,0,"ul",9);a&2&&(a=P(),G(a.bookmarkGroups?0:-1))},qKb=function(a){if(a&1){var b=t();K(0,"span");Q(1,"Hotlists");L();K(2,"b-hotlist-search-popup",5);N("itemSelect",function(c){u(b);var d=P();d.analytics.trackEvent("hotlistSearch","goToHotlist");d.location.setUrl(c.href);return v()})("click",
function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(B(2),I("showGroups",!1))},rKb=function(a){a&1&&(K(0,"button",11),M(1,"mat-icon",13),L());a&2&&(P(),a=qg(6),I("matMenuTriggerFor",a))},sKb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});M(1,"mat-icon",17);Q(2," Add to 'Home' screen ");L()}},tKb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});
M(1,"mat-icon",18);Q(2," Set as homepage ");L()}},uKb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unstar())});M(1,"mat-icon",19);Q(2," Unstar ");L()}},vKb=function(a){if(a&1){var b=t();F(0,sKb,3,0,"button",14);F(1,tKb,3,0,"button",14);K(2,"button",15);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(e.openEditHotlist(d.id))});M(3,"mat-icon",16);Q(4," Settings ");L();F(5,uKb,3,0,"button",14)}if(a&2){a=P().$implicit;var c=P(3);
G(c.ENABLE_MISSION_CONTROL?0:-1);B();G(a.isPreferredHomepage()?-1:1);B(4);G(a.isUnstarable()?5:-1)}},wKb=function(a,b){if(a&1){var c=t();K(0,"li",8)(1,"a",9);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",10);Q(3);L()();F(4,rKb,2,1,"button",11);K(5,"mat-menu",null,2);E(7,vKb,6,3,"ng-template",12);L()()}a&2&&(a=b.$implicit,wg("selected",a.isSelected()),I("id",Eg("bv2-user-hotlists-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Pe),B(2),
yg(a.name),B(),G(a?4:-1))},xKb=function(a){a&1&&(K(0,"ul",6),Of(1,wKb,8,8,"li",7,Nf),L());a&2&&(a=P(2),B(),Pf(a.hotlists))},yKb=function(a){a&1&&F(0,xKb,3,0,"ul",6);a&2&&(a=P(),G(a.hotlists?0:-1))},zKb=function(a){a&1&&(K(0,"span"),Q(1,"Saved searches"),L())},AKb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});M(1,"mat-icon",17);Q(2," Add to 'Home' screen ");L()}},BKb=function(a){if(a&1){var b=t();K(0,"button",
14);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});M(1,"mat-icon",18);Q(2," Set as homepage ");L()}},DKb=function(a){if(a&1){var b=t();F(0,AKb,3,0,"button",13);F(1,BKb,3,0,"button",13);K(2,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(e.openEditSavedSearch(d.id))});M(3,"mat-icon",15);Q(4," Settings ");L();K(5,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(CKb(e,d))});M(6,"mat-icon",16);Q(7," Delete ");
L()}if(a&2){a=P().$implicit;var c=P(3);G(c.ENABLE_MISSION_CONTROL?0:-1);B();G(a.isPreferredHomepage()?-1:1)}},EKb=function(a,b){if(a&1){var c=t();K(0,"li",7)(1,"a",8);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",9);Q(3);L()();K(4,"button",10);M(5,"mat-icon",11);L();K(6,"mat-menu",null,2);E(8,DKb,8,2,"ng-template",12);L()()}a&2&&(a=b.$implicit,b=qg(7),wg("selected",a.isSelected()),Kf("id",Eg("bv2-saved-searches-search-item-",a.id)),I("title",a.name),
B(),I("href",a.href,Pe),B(2),yg(a.name),B(),I("matMenuTriggerFor",b))},FKb=function(a){a&1&&(K(0,"ul",5),Of(1,EKb,9,8,"li",6,Nf),L());a&2&&(a=P(2),B(),Pf(a.searches))},GKb=function(a){a&1&&F(0,FKb,3,0,"ul",5);a&2&&(a=P(),G(a.searches?0:-1))},HKb=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")},IKb=function(a){a&1&&M(0,"mat-icon",24)},JKb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",
26),L());a&2&&(P(),a=qg(10),I("matMenuTriggerFor",a))},LKb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P(2);KKb(c,"MISSION_CONTROL");return v()});Q(1," Set as homepage ");L()}},MKb=function(a){if(a&1){var b=t();K(0,"li",22)(1,"a",8);N("click",function(d){u(b);var e=P();e.onAnchorClick(e.missionControlPath,d);return v()});F(2,HKb,1,3,"mat-icon",23);T(3,"async");T(4,"async");Lf(5,IKb,1,0,"mat-icon",24);Q(6," Home ");L();F(7,JKb,2,1,"button",25);T(8,"async");K(9,"mat-menu",
null,1);E(11,LKb,2,0,"ng-template",11);L()()}if(a&2){var c;a=P();wg("selected",!!a.location.path().match(/^\/home\b/));B();I("href",a.missionControlPath,Pe);B();G((c=!U(3,5,a.hideBadgeInNav$)&&U(4,7,a.missionControlTaskCount$))?2:5,c);B(5);G(U(8,9,a.isHomepageMissionControl$)?-1:7)}},NKb=function(a){a&1&&(K(0,"button",10),M(1,"mat-icon",26),L());a&2&&(P(),a=qg(13),I("matMenuTriggerFor",a))},OKb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P();KKb(c,"ASSIGNED_TO_ME");
return v()});Q(1," Set as homepage ");L()}},PKb=function(a){a&1&&M(0,"nav-sidebar-triage")},QKb=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},RKb=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)},TKb=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;SKb++;var d=156;d+=(SKb-1)*12;return function(e){e=e===void 0?b:e;var f,g=(f=document.getElementById(a))!=null?f:QKb(a,d);RKb(g,e,c)}},eLb=function(a,b){b=b===void 0?[]:b;var c=c===void 0?{}:c;if(a==null)return"(undefined)";var d=a.snapshot[0],e,f=(e=b[0])!=null?e:a.description;b=b.slice(1);b.sort(function(g,k){return k.modifiedDate-g.modifiedDate});return["## "+d.title,"ID: http://b/"+a.issueId,
"Priority: "+d.priority,"Status: "+d.status,"Modified: "+Zr(a.majorModifiedTimeMicros/1E3/1E3),UKb(a),VKb(a),WKb(a,c),XKb(a),YKb(a),ZKb(a),$Kb(a),aLb(a),bLb(f),cLb(a),dLb(b)].filter(Boolean).join("\n").trim()+"\n\n---\n\n"},WKb=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(", ")},dLb=function(a){if(a.length!==0){var b=a.map(function(c){a:{if(c!=null){var d=fLb(c);d=gLb(d);if(d!=null){var e,f=(e=c.lastCommentEditorUser)==
null?void 0:e.emailAddress;c=Zr(c.modifiedDate/1E3);c=f+": "+d+" ("+c+")";break a}}c=void 0}return c}).filter(Boolean).join("\n\n");return"\n### Comments ("+a.length+")\n"+b}},gLb=function(a,b){b=b===void 0?300:b;if(a!=null)return a=a.replaceAll(/\n/g," "),a=U7a(a,b)},fLb=function(a){var b=a.unlinkifiedComment;a=a.formattedComment;if(b)return b;if(a)return YTa(a)},bLb=function(a){if(a!=null&&(a=fLb(a),a=gLb(a,600),a!=null))return"\n### Description\n"+a},ZKb=function(a){a=a.descendantCount;if(!(a<=
0))return"Descendant count: "+a},XKb=function(a){var b;a=((b=m(a.snapshot).next().value.blockingIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocking "+a+" issue(s)"},YKb=function(a){var b;a=((b=m(a.snapshot).next().value.blockedByIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocked by "+a+" issue(s)"},UKb=function(a){var b;return(a=((b=m(a.snapshot).next().value.assigneeUser)!=null?b:{}).emailAddress)?"Assignee: "+a:void 0},VKb=function(a){var b;return(a=((b=m(a.snapshot).next().value.reporterUser)!=
null?b:{}).emailAddress)?"Reporter: "+a:void 0},$Kb=function(a){var b,c;a=(c=(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0;if(!(a<=0))return"Upvotes: "+a},cLb=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=Zr((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+")"}},aLb=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},hLb=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():"")},iLb=function(a){a&1&&(K(0,"div",0),M(1,"router-outlet"),L())},jLb=function(a){a&1&&(K(0,"div",0),M(1,"app-root-body"),L())},kLb=function(){},mLb=function(a){if(a&1){var b=t();K(0,"a",8);N("keydown.enter",function(){u(b);var c=P(2);return v(lLb(c))})("keydown.space",function(){u(b);
var c=P(2);return v(lLb(c))})("click",function(){u(b);var c=P(2);return v(lLb(c))});Q(1," Dismiss");L()}},nLb=function(a){a&1&&(K(0,"div",1)(1,"div",5),M(2,"span",6),F(3,mLb,2,0,"a",7),L()());a&2&&(a=P(),B(2),I("innerHtml",a.announcement.message,Oe),B(),G(a.announcement.dismissible?3:-1))},pLb=function(a){if(a&1){var b=t();K(0,"b-resizable-sidebar",9,0);N("widthChanged",function(c){u(b);var d=P();return v(oLb(d,c))});M(2,"b-sidebar");L()}a&2&&(a=P(),I("size",a.sidebarWidth))},qLb=function(a){switch(a){case "COMFORTABLE":return"d-comfort";
case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},rLb=function(a){return new Set(a.map(function(b){return vRa(b)}))},Nt=function(a,b,c){return a.has(b)?c:""},sLb=function(a,b,c){return a.has(b)?c:[]},Ot=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},vLb=function(a){if(!a)return"";var b=tLb.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=uLb.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},xLb=function(a){if(!a)return"";var b=a.inherit,c=wLb.get(a.source),d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},yLb=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},zLb=function(a,b){a&1&&(K(0,"mat-option",17),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a," "))},ALb=
function(a){if(a&1){var b=t();K(0,"mat-form-field",14)(1,"mat-select",16,0);N("selectionChange",function(c){u(b);var d=P(2);return v(d._changePageSize(c.value))});Of(3,zLb,2,2,"mat-option",17,Nf);L();K(5,"div",18);N("click",function(){u(b);var c=qg(2);return v(c.open())});L()()}a&2&&(a=P(2),I("appearance",a._formFieldAppearance)("color",a.color),B(),I("value",a.pageSize)("disabled",a.disabled),Jf("aria-labelledby",a._pageSizeLabelId),I("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",
a.selectConfig.disableOptionCentering),B(2),Pf(a._displayedPageSizeOptions))},BLb=function(a){a&1&&(K(0,"div",15),Q(1),L());a&2&&(a=P(2),B(),yg(a.pageSize))},CLb=function(a){a&1&&(K(0,"div",3)(1,"div",13),Q(2),L(),F(3,ALb,6,7,"mat-form-field",14),F(4,BLb,2,1,"div",15),L());a&2&&(a=P(),B(),Kf("id",a._pageSizeLabelId),B(),S(" ",a._intl.itemsPerPageLabel," "),B(),G(a._displayedPageSizeOptions.length>1?3:-1),B(),G(a._displayedPageSizeOptions.length<=1?4:-1))},DLb=function(a){if(a&1){var b=t();K(0,"button",
19);N("click",function(){u(b);var c=P();return v(c._buttonClicked(0,c._previousButtonsDisabled()))});Ad();K(1,"svg",8);M(2,"path",20);L()()}a&2&&(a=P(),I("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("disabled",a._previousButtonsDisabled())("tabindex",a._previousButtonsDisabled()?-1:null),Kf("aria-label",a._intl.firstPageLabel))},ELb=function(a){if(a&1){var b=t();K(0,"button",21);N("click",function(){u(b);var c=P();return v(c._buttonClicked((c.pageSize?Math.ceil(c.length/
c.pageSize):0)-1,c._nextButtonsDisabled()))});Ad();K(1,"svg",8);M(2,"path",22);L()()}a&2&&(a=P(),I("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("disabled",a._nextButtonsDisabled())("tabindex",a._nextButtonsDisabled()?-1:null),Kf("aria-label",a._intl.lastPageLabel))},FLb=function(a){if(a&1){var b=t();K(0,"mat-paginator",3);N("page",function(c){u(b);var d=P(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return v()});L()}a&2&&(a=P(),
I("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},GLb=function(a,b){if(a&1){var c=t();K(0,"li")(1,"a",4);N("click",function(){var e=u(c).$implicit,f=P();return v(f.onVisit.emit(e))});Q(2);L();K(3,"onedev-hovercard",null,0);M(5,"b-component-card",5);L()()}if(a&2){a=b.$implicit;b=qg(4);var d=P();B();I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponent.makeHref(a.componentId),Pe);B();S(" ",a.name," ");B(3);I("componentId",a.componentId)}},HLb=function(a){if(a&
1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.onClickCopyIssueShortLinks.emit())});Q(1);L()}a&2&&(a=P(),B(),S(" Copy '",a.shortLinkPrefix,"'' links "))},ILb=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",3);N("click",function(){u(b);var c=P();return v(c.action())});Q(2);L()()}a&2&&(a=P(),B(2),yg(a.data.action))},JLb=function(){},KLb=function(a){if(a&1){var b=t();K(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return v(c.showChildren=!1)});M(1,"mat-icon",
18);L()}},LLb=function(a){if(a&1){var b=t();K(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});M(1,"mat-icon",20);L()}},MLb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},OLb=function(a){a&1&&(K(0,"a",10),Q(1," (Recent Issues) "),L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Ig(1,NLb,"status:open componentid:"+a.componentId)),Pe)}},PLb=function(a){a&1&&(K(0,"a",15),Q(1," Create issue "),L());if(a&2){a=P().$implicit;var b=P();I("href",
b.paths.createIssue()+"?component="+a.componentId,Pe)}},QLb=function(a){a&1&&(K(0,"div",21),Q(1," No child components found. "),L())},RLb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},SLb=function(a){if(a&1){var b=t();K(0,"component-subtree-list",24);N("childClosed",function(d){u(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});L()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},
TLb=function(a){a&1&&(K(0,"div",16),F(1,QLb,2,0,"div",21),F(2,RLb,2,0,"div",22),F(3,SLb,1,4,"component-subtree-list",23),L());a&2&&(a=P().$implicit,B(),G(a.noChildren?1:-1),B(),G(a.noChildren||a.children?-1:2),B(),G(a.children?3:-1))},ULb=function(a,b){if(a&1){var c=t();K(0,"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});K(1,"div",3);M(2,"div",4);K(3,"div",5);F(4,KLb,2,0,"a",6)(5,LLb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);Q(9);L();F(10,MLb,
2,0,"span")(11,OLb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);L();K(14,"div",13);Q(15);L()();K(16,"div",14);F(17,PLb,2,1,"a",15);L()();F(18,TLb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id",Eg("component-",a.componentId)),B(4),G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),Pe),B(),S(" ",a.name," "),B(),G(a.archived?10:11),B(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",
a.trackerId),B(2),yg(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},VLb=function(a){if(a&1){var b=t();K(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return v(c.showChildren=!1)});M(1,"mat-icon",18);L()}},WLb=function(a){if(a&1){var b=t();K(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});M(1,"mat-icon",20);L()}},XLb=function(a){a&1&&(K(0,"span"),Q(1,"[Archived]"),L())},ZLb=function(a){a&1&&(K(0,"a",10),Q(1," (Recent Issues) "),
L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Ig(1,YLb,"status:open componentid:"+a.componentId)),Pe)}},$Lb=function(a){a&1&&(K(0,"a",15),Q(1," Create issue "),L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.createIssue()+"?component="+a.componentId,Pe)}},aMb=function(a){a&1&&(K(0,"div",21),Q(1," No child components found. "),L())},bMb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},cMb=function(a){if(a&1){var b=t();K(0,"component-subtree-list",24);N("childClosed",
function(d){u(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});L()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},dMb=function(a){a&1&&(K(0,"div",16),F(1,aMb,2,0,"div",21),F(2,bMb,2,0,"div",22),F(3,cMb,1,4,"component-subtree-list",23),L());a&2&&(a=P().$implicit,B(),G(a.noChildren?1:-1),B(),G(a.noChildren||a.children?-1:2),B(),G(a.children?3:-1))},eMb=function(a,b){if(a&1){var c=t();K(0,
"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});K(1,"div",3);M(2,"div",4);K(3,"div",5);F(4,VLb,2,0,"a",6)(5,WLb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);Q(9);L();F(10,XLb,2,0,"span")(11,ZLb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);L();K(14,"div",13);Q(15);L()();K(16,"div",14);F(17,$Lb,2,1,"a",15);L()();F(18,dMb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id","component-"+a.componentId),B(4),
G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),Pe),B(),S(" ",a.name," "),B(),G(a.archived?10:11),B(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),yg(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},fMb=function(a){a&1&&(K(0,"div"),Q(1," Loading custom fields... "),L())},gMb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2),B(),S(" There are no custom fields in component ",a.selectedComponent.name,
". "))},hMb=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a.name," "))},iMb=function(a){if(a&1){var b=t();K(0,"div")(1,"mat-form-field",4)(2,"mat-label");Q(3,"Custom field");L();K(4,"mat-select",5);N("selectionChange",function(c){u(b);var d=P(2);return v(d.fieldSelected.emit(c.value))});Of(5,hMb,2,2,"mat-option",6,Nf);L()()()}a&2&&(a=P(2),B(5),Pf(a.customFields))},jMb=function(a){a&1&&(K(0,"div",3),F(1,fMb,2,0,"div"),F(2,gMb,2,1,"div"),F(3,iMb,7,0,"div"),
L());a&2&&(a=P(),B(),G(a.customFields==null?1:-1),B(),G(a.customFields&&!a.customFields.length?2:-1),B(),G((a.customFields==null?0:a.customFields.length)?3:-1))},kMb=function(a){a&1&&Wf(0)},lMb=function(){},mMb=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P().value,B(),yg(a.textValue))},nMb=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))}},oMb=function(a){a&1&&(Uf(0),Q(1),Vf());a&2&&(a=P().value,B(),yg(a.enumValue))},pMb=function(a){a&1&&
(Uf(0),Q(1),Vf());a&2&&(a=P().value,B(),yg(a.numericValue))},qMb=function(a,b){a&1&&(Uf(0),Q(1),Vf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();zg("",a,"",c===b-1?"":", ")}},rMb=function(a){a&1&&Of(0,qMb,2,2,"ng-container",null,Nf);a&2&&(a=P().value,Pf(a.repeatedTextValue.values))},sMb=function(a,b){a&1&&(Uf(0),M(1,"b-formatted-date-time",4),Q(2),Vf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);B();I("date",d.toDate(a));B();yg(c===b-1?"":", ")}},tMb=function(a){a&1&&Of(0,
sMb,3,2,"ng-container",null,Nf);a&2&&(a=P().value,Pf(a.repeatedDateValue.values))},uMb=function(a,b){a&1&&(Uf(0),Q(1),Vf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();zg("",a,"",c===b-1?"":", ")}},vMb=function(a){a&1&&Of(0,uMb,2,2,"ng-container",null,Nf);a&2&&(a=P().value,Pf(a.repeatedEnumValue.values))},wMb=function(a,b){a&1&&(Uf(0),Q(1),Vf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();zg("",a,"",c===b-1?"":", ")}},xMb=function(a){a&1&&Of(0,wMb,2,2,"ng-container",null,Nf);a&2&&
(a=P().value,Pf(a.repeatedNumericValue.values))},yMb=function(a,b){a&1&&(F(0,mMb,2,1,"ng-container"),F(1,nMb,1,1,"b-formatted-date-time",4),F(2,oMb,2,1,"ng-container"),F(3,pMb,2,1,"ng-container"),F(4,rMb,2,0),F(5,tMb,2,0),F(6,vMb,2,0),F(7,xMb,2,0));a&2&&(a=b.value,b=P(),G(a.textValue!=null?0:-1),B(),G(b.isNonemptyJsonDateValue(a.dateValue)?1:-1),B(),G(a.enumValue!=null?2:-1),B(),G(a.numericValue!=null?3:-1),B(),G(a.repeatedTextValue!=null?4:-1),B(),G(a.repeatedDateValue!=null?5:-1),B(),G(a.repeatedEnumValue!=
null?6:-1),B(),G(a.repeatedNumericValue!=null?7:-1))},zMb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L()());a&2&&(a=P(),B(2),zg(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},AMb=function(a,b){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=b.$implicit,B(),zg(" ",a.issueId," - ",a.title," "))},BMb=function(a){a&1&&(K(0,"div")(1,"p"),Q(2),L(),K(3,"ul"),Of(4,AMb,2,2,"li",null,Nf),L()());a&2&&(a=P(),B(2),S(" You do not have permissions to mark ",
a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),Pf(a.protectedIssues))},CMb=function(a){if(a&1){var b=t();K(0,"div",1)(1,"label");Q(2);L();K(3,"onedev-single-select",4);Cg("valueChange",function(c){u(b);var d=P();Bg(d.currentEnumLabel,c)||(d.currentEnumLabel=c);return v(c)});L()()}a&2&&(a=P(),B(2),S(" ",a.effortSpecName," "),B(),Ag("value",a.currentEnumLabel),I("includeEmptyOption",!0)("options",a.allowedLabels))},DMb=function(a){if(a&1){var b=t();K(0,"mat-dialog-content")(1,
"mat-form-field")(2,"mat-label");Q(3);L();K(4,"input",5);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.numericEstimatedEffort,c)||(d.numericEstimatedEffort=c);return v(c)});N("keypress",function(c){u(b);var d=P();return v(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});L()()()}a&2&&(a=P(),B(3),S(" ",a.effortSpecName," "),B(),Ag("ngModel",a.numericEstimatedEffort))},JMb=function(a,b){if(a&1){var c=t();K(0,"div",20,4);N("click",function(){var e=u(c).$implicit,f=P(2);EMb(f,e)||FMb(f,e);
return v()});K(2,"mat-pseudo-checkbox",21);N("click",function(e){var f=u(c).$implicit,g=P(2);e.stopPropagation();return v(GMb(g,f))});L();K(3,"span");Q(4);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);vg("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");wg("focused",b===d.focusedRowIndex);I("title",Dg(a.name));Kf("id","hotlist-item-"+a.hotlistId)("aria-checked",HMb(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",EMb(d,a));B(2);I("state",IMb(d.selectedHotlistMap[a.hotlistId]))("disabled",
EMb(d,a));B(2);S(" ",a.name," ")}},KMb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(2),B(),S(" (",a.filterText,")"))},LMb=function(a){if(a&1){var b=t();K(0,"div",22,5);N("click",function(){u(b);var c=P(2);return v(c.loadHotlist())})("keydown.enter",function(){u(b);var c=P(2);return v(c.loadHotlist())});Q(2,"Load hotlist from id ");K(3,"span");Q(4);L()()}a&2&&(a=P(2),wg("focused",a.focusedRowIndex===a.choices.length+1),Kf("aria-label","Load hotlist from"+a.filterText),B(4),S("(",a.filterText,
")"))},NMb=function(a){if(a&1){var b=t();K(0,"div",23,6);N("click",function(){u(b);var c=P(2);return v(MMb(c))})("keydown.enter",function(){u(b);var c=P(2);return v(MMb(c))});Q(2,"Apply");L()}a&2&&(a=P(2),wg("focused",a.focusedRowIndex===a.choices.length+2))},OMb=function(a){if(a&1){var b=t();K(0,"div",11)(1,"div",15,2);Of(3,JMb,5,12,"div",16,Nf);L()();M(5,"mat-divider");K(6,"div",17,3);N("click",function(){u(b);var c=P();return v(c.createHotlist())})("keydown.enter",function(){u(b);var c=P();return v(c.createHotlist())});
Q(8,"Create new hotlist ");F(9,KMb,2,1,"span");L();F(10,LMb,5,4,"div",18);F(11,NMb,3,2,"div",19)}a&2&&(a=P(),B(3),Pf(a.choices),B(3),wg("focused",a.focusedRowIndex===a.choices.length),I("disabled",!a.canCreate),Kf("aria-label","Create new hotlist"+a.filterText),B(3),G(a.filterText?9:-1),B(),G(a.canLoad?10:-1),B(),G(a.pendingChanges?11:-1))},PMb=function(a){a&1&&(K(0,"li")(1,"a",1),Q(2),L(),M(3,"b-issue-visibility-chip",2),L());a&2&&(a=P().$implicit,B(),I("href",Eg("issues/",a.issueId),Pe),B(),S("b/",
a.issueId),B(),I("issueId",a.issueId))},QMb=function(a,b){a&1&&F(0,PMb,4,4,"li");a&2&&G(b.$implicit.type==="issue"?0:-1)},RMb=function(a){a&1&&(K(0,"li"),Q(1),M(2,"b-component-access-level-indicator",3),L());a&2&&(a=P().$implicit,B(),S(" ",a.path," "),B(),I("accessLevel",a.accessLevel))},SMb=function(a,b){a&1&&F(0,RMb,3,2,"li");a&2&&G(b.$implicit.type==="component"?0:-1)},TMb=function(a){a&1&&(K(0,"div",0)(1,"div")(2,"strong"),Q(3,"You are editing issues in components that may have external viewers:"),
L()(),K(4,"ul"),Of(5,QMb,1,1,null,null,Mf),L(),Q(7," within: "),K(8,"ul"),Of(9,SMb,1,1,null,null,Mf),L()());a&2&&(a=P(),B(5),Pf(a.externalWarnings),B(4),Pf(a.externalWarnings))},VMb=function(a,b){if(a&1){var c=t();K(0,"button",12);N("click",function(){var d=u(c).$implicit,e=P(3);return v(UMb(e.issueEditBuilder,d))});Q(1);L()}a&2&&(a=b.$implicit,b=P(3),I("disabled",b.issueEditBuilder.issueState==a),B(),S(" ",a.displayValue," "))},WMb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2,"Multiple");
L();K(3,"a",22);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");L()()}},XMb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2,"Possibly multiple");L();K(3,"a",22);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");L()()}},YMb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-single",23);N("emailChange",function(c){u(b);var d=P(4);return v(d.setAssignee(c))})("keydown.control.enter",function(){u(b);
var c=P(4);return v(Pt(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(Pt(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE)("email",a.issueEditBuilder.commonAssignee))},$Mb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2);L();K(3,"a",24);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");L()()}a&2&&(a=P(4),wg("bv2-invalid-multiple-user-chip",!ZMb(a.issueEditBuilder)),B(2),S(" Multiple ",ZMb(a.issueEditBuilder)?
"":"(some unset)"," "))},aNb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");Q(2);L();K(3,"a",24);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");L()()}a&2&&(a=P(4),wg("bv2-invalid-multiple-user-chip",!ZMb(a.issueEditBuilder)),B(2),S(" Possibly multiple ",ZMb(a.issueEditBuilder)?"":"(some unset)"," "))},bNb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-single",25);N("emailChange",function(c){u(b);var d=P(4);return v(d.issueEditBuilder.commonVerifier=
c)})("keydown.control.enter",function(){u(b);var c=P(4);return v(Pt(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(Pt(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER)("email",a.issueEditBuilder.commonVerifier)("required",(a.issueEditBuilder.issueState==null?null:a.issueEditBuilder.issueState.status)=="VERIFIED"))},cNb=function(a){a&1&&(K(0,"div")(1,"div",14)(2,"label",18),Q(3," Assignee "),L(),K(4,"div"),F(5,WMb,5,0,"div",19)(6,XMb,5,0,"div",19)(7,
YMb,2,2,"div"),L()(),K(8,"div",14)(9,"label",20),Q(10," Verifier "),L(),K(11,"div"),F(12,$Mb,5,3,"div",21)(13,aNb,5,3,"div",21)(14,bNb,2,3,"div"),L()()());if(a&2){var b,c;a=P(3);B(5);G((b=a.issueEditBuilder.selectedAssigneesStatus)==="MULTIPLE"?5:b==="POSSIBLY_MULTIPLE"?6:7);B(7);G((c=a.issueEditBuilder.selectedVerifiersStatus)==="MULTIPLE"?12:c==="POSSIBLY_MULTIPLE"?13:14)}},dNb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",26);Q(2," Issue ID ");L();K(3,"input",27);N("ngModelChange",function(c){u(b);
var d=P(3).issueEditBuilder;c=a8a(c);return v(d.commonDuplicateOf=c.length===1?c[0]:"")})("keydown.control.enter",function(){u(b);var c=P(3);return v(Pt(c))})("keydown.meta.enter",function(){u(b);var c=P(3);return v(Pt(c))});L()()}a&2&&(a=P(3),B(3),I("ngModel",a.issueEditBuilder.commonDuplicateOf),Kf("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},eNb=function(a){if(a&1){var b=t();K(0,"div",5)(1,"button",10)(2,"span");Q(3);L();M(4,"b-icon",11);L();K(5,"mat-menu",null,2)(7,"button",12);
N("click",function(){u(b);var d=P(2);return v(d.issueEditBuilder.issueState=void 0)});Q(8,"No change ");L();Of(9,VMb,2,2,"button",13,Nf);L();K(11,"div");F(12,cNb,15,2,"div")(13,dNb,4,2,"div",14);L();K(14,"div")(15,"b-comment-box",15);N("onSubmit",function(){u(b);var d;(d=P(2).matDialogRef)==null||d.close(!0);return v()});L()();M(16,"div",16)(17,"b-external-warnings",17);L()}if(a&2){a=qg(6);var c=P(2);B();I("matMenuTriggerFor",a);B(2);yg(c.issueEditBuilder.issueState?c.issueEditBuilder.issueState.displayValue:
"No change");B(4);I("disabled",!c.issueEditBuilder.issueState);B(2);Pf(c.issueStates);B(3);G((!c.issueEditBuilder.issueState||c.issueEditBuilder.issueState.status!=="DUPLICATE")===!0?12:13);B(3);I("comment",c.comment)("showToolbar",!1)("isLiteralModeSupported",!0);B(2);I("externalWarnings",c.externalWarnings)}},fNb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-recaptcha",28);N("onUpdate",function(c){u(b);var d=P(2);return v(d.issueEditBuilder.recaptchaResponse=c)});L()()}},hNb=function(a){a&1&&
(K(0,"form",null,1)(2,"h1",3),Q(3,"Change issue status"),L(),K(4,"div",4)(5,"span"),Q(6,"Enter updated issue status information below"),L(),F(7,eNb,18,8,"div",5),L(),F(8,fNb,2,0,"div",6),K(9,"div",7)(10,"button",8),Q(11," Cancel "),L(),K(12,"button",9),Q(13," Save "),L()()());a&2&&(a=P(),B(7),G(a.issueEditBuilder?7:-1),B(),G(a.issueEditBuilder&&a.enableRecaptcha?8:-1),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0)("disabled",!gNb(a)))},jNb=function(a){if(a&1){var b=t();K(0,"b-app-bar-bulk-edit-menus",
6);T(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();return v(d.bulkMarkIssueRead())});L()}if(a&2){a=P();var c;I("readStatePrompt",iNb(a))("enableBulkEstimatedEffortOption",(c=U(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)}},nNb=function(a){if(a&
1){var b=t();K(0,"b-copy-issue-id-button",7);N("onClickCopyIssueIds",function(){u(b);var c=P();return v(kNb(c.copyIssueIdService,Qt(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(lNb(c.copyIssueIdService,Qt(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(mNb(c.copyIssueIdService,Qt(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},oNb=function(a){if(a&
1){var b=t();K(0,"div",3)(1,"b-hotlist-picker",8);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);var d=P();return v(d.onLoadHotlist.emit(c))});L()()}a&2&&(a=P(),B(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},qNb=function(a){if(a&1){var b=t();K(0,"b-comment-box",15);Cg("commentChange",function(c){u(b);var d=P(2);Bg(d.comment,c)||(d.comment=
c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(pNb(c))});L()}a&2&&(a=P(2),Ag("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},rNb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"b-recaptcha",16);N("onUpdate",function(c){u(b);var d=P(2);return v(d.recaptchaResponse=c)});L()()}},sNb=function(a){a&1&&(K(0,"h1",9),Q(1,"Add comment"),L(),K(2,"mat-dialog-content"),F(3,qNb,1,3,"b-comment-box",10),M(4,"b-external-warnings",11),L(),F(5,rNb,2,0,"div",12),K(6,"mat-dialog-actions")(7,
"button",13),Q(8," Cancel "),L(),K(9,"button",14),Q(10," Save "),L()());a&2&&(a=P(),B(3),G(a.comment?3:-1),B(),I("externalWarnings",a.externalWarnings),B(),G(a.enableRecaptcha?5:-1),B(2),I("mat-dialog-close",!1),B(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},tNb=function(a){a&1&&M(0,"tr",16)},uNb=function(a){a&1&&M(0,"tr",17)},vNb=function(a){a&1&&(K(0,"th",18),Q(1,"User"),L())},wNb=function(a,b){a&1&&(K(0,"div",20),M(1,"b-user-image",21)(2,"b-user-display-name",
22),L());a&2&&(a=P(2),B(),I("email",a.userToLossyEmail(b)),B(),I("user",b)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},xNb=function(a,b){a&1&&(K(0,"td",19),F(1,wNb,3,4,"div",20),L());if(a&2){var c;a=b.$implicit;B();G((c=a[0].user.user)?1:-1,c)}},yNb=function(a){a&1&&(K(0,"th",18)(1,"span",23),Q(2," Role "),M(3,"b-icon",24),L()());a&2&&(P(),a=bg(10),B(3),I("matTooltip",a),Kf("aria-label",a))},zNb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),
B(),yg(a.displayText))},DNb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-select",25);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return v(ANb(f,e[0],d.value))});K(2,"mat-select-trigger");Q(3);L();Of(4,zNb,2,2,"mat-option",26,BNb);T(6,"async");L()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].user.role),B(2),S(" ",CNb(a[0])," "),B(),Pf(U(6,3,b.roleOptions$)))},ENb=function(a){a&1&&(K(0,"th",18)(1,"span",27),Q(2," Lead "),M(3,"b-icon",24),L()());
a&2&&(P(),a=bg(14),B(3),I("matTooltip",a),Kf("aria-label",a))},GNb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-checkbox",28);N("change",function(e){var f=u(c).$implicit,g=P();return v(FNb(g,f[0],e.checked))});L()()}if(a&2){a=b.$implicit;b=P();var d="Click to "+(a[0].user.isLead?"unset ":"set ")+a[0].user.user.emailAddress+" as a lead for this issue.";B();Jf("aria-label",Dg(d));I("checked",a[0].user.isLead)("disabled",!b.isAllowedToEdit)}},HNb=function(a){a&1&&(K(0,"th",18)(1,"span",29),Q(2,
" Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=bg(18),B(3),I("matTooltip",a),Kf("aria-label",a))},INb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},JNb=function(a){a&1&&(K(0,"mat-option",26),Q(1,"Percentage"),L());a&2&&(a=P(2),I("value",a.Involvement.INVOLVEMENT_UNSPECIFIED))},LNb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-select",30);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return v(KNb(f,e,e[0],
d.value))});Of(2,INb,2,2,"mat-option",26,BNb);F(4,JNb,2,1,"mat-option",26);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].allocation.involvement),B(),Pf(b.involvementOptions),B(2),G(b.staffingEnhancementsEnabled?4:-1))},MNb=function(a){a&1&&(K(0,"th",18)(1,"span",31),Q(2," Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=bg(22),B(3),I("matTooltip",a),Kf("aria-label",a))},PNb=function(a){if(a&1){var b=t();K(0,"button",33,0);N("click",function(){u(b);var d=P().$implicit,
e=P();return v(NNb(e,d[0]))});Q(2);M(3,"mat-icon",34);L()}if(a&2){a=P().$implicit;var c=P();I("disabled",!c.isAllowedToEdit);B(2);S(" ",ONb(a[0])," ")}},QNb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),yg(a.displayText))},SNb=function(a){if(a&1){var b=t();K(0,"input",35,1);Cg("ngModelChange",function(d){u(b);var e=P(2);Bg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",function(d){u(b);var e=P().$implicit,
f=P();return v(Rt(f,e,d))})("input",function(){u(b);var d=P(2);return v(d.allocationInputChanges$.next(d.allocationFromInputPlain||""))})("blur",function(d){u(b);var e=P().$implicit,f=P();d.relatedTarget&&Rt(f,e);return v()});L();K(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P().$implicit,f=P();f.allocationFromInputPlain=po[d.option.value];Rt(f,e);return v()});Of(4,QNb,2,2,"mat-option",26,RNb);L()}if(a&2){a=qg(3);var c=P(2);I("matAutocomplete",a);Ag("ngModel",c.allocationFromInputPlain);
I("disabled",!c.isAllowedToEdit);B(4);Pf(c.involvementOptions)}},TNb=function(a,b){a&1&&(K(0,"td",19),F(1,PNb,4,2,"button",32)(2,SNb,6,3),L());a&2&&(a=b.$implicit,b=P(),B(),G(b.allocationUnderEdit===a[0]?2:1))},UNb=function(a){a&1&&(K(0,"th",18),Q(1),M(2,"b-icon",24),L());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=bg(1);xg(Eg("timebound-allocation ",b%2===1?"blue":""));B();S(" ",a.displayText," ");B();I("matTooltip",c);Kf("aria-label",c)}},VNb=function(a){if(a&1){var b=t();K(0,"button",42,0);
N("click",function(){u(b);P(2);var d=bg(1),e=P(2);return v(NNb(e,d))});Q(2);M(3,"mat-icon",34);L()}if(a&2){P(2);a=bg(1);var c=P(2);I("disabled",!c.isAllowedToEdit);B(2);S(" ",ONb(a)," ")}},WNb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),yg(a.displayText))},YNb=function(a){if(a&1){var b=t();K(0,"input",43,1);Cg("ngModelChange",function(d){u(b);var e=P(4);Bg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",
function(d){u(b);var e=P(2).$implicit,f=P(2);return v(Rt(f,e,d))})("keyup",function(){u(b);var d=P(4);return v(XNb(d))})("blur",function(d){u(b);var e=P(2).$implicit,f=P(2);d.relatedTarget&&Rt(f,e);return v()});L();K(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P(2).$implicit,f=P(2);f.allocationFromInputPlain=po[d.option.value];Rt(f,e);return v()});Of(4,WNb,2,2,"mat-option",26,RNb);L()}if(a&2){a=qg(3);var c=P(4);I("matAutocomplete",a);Ag("ngModel",c.allocationFromInputPlain);
I("disabled",!c.isAllowedToEdit);B(4);Pf(c.involvementOptions)}},ZNb=function(a){a&1&&F(0,VNb,4,2,"button",41)(1,YNb,6,3);if(a&2){P();a=bg(1);var b=P(2);G(b.allocationUnderEdit===a?1:0)}},$Nb=function(a,b){a&1&&(K(0,"mat-option",26),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},aOb=function(a){if(a&1){var b=t();K(0,"mat-select",30);N("selectionChange",function(d){u(b);var e=P().$implicit,f=bg(1),g=P(2);return v(KNb(g,e,f,d.value))});Of(1,$Nb,2,2,"mat-option",26,BNb);K(3,
"mat-option",26);Q(4,"Percentage");L()()}if(a&2){P();a=bg(1);var c=P(2);I("disabled",!c.isAllowedToEdit)("value",a.allocation==null?null:a.allocation.involvement);B();Pf(c.involvementOptions);B(2);I("value",c.Involvement.INVOLVEMENT_UNSPECIFIED)}},bOb=function(a,b){a&1&&(K(0,"td",39),$f(1),F(2,ZNb,2,1)(3,aOb,5,3,"mat-select",40),L());if(a&2){a=b.$implicit;b=P();var c=b.$implicit;xg(Eg("timebound-allocation ",b.$index%2===1?"blue":""));B();ag(c.extractPlannedAllocation(a));B();G(c.displayInvolvementAsPercentage?
2:3)}},cOb=function(a,b){a&1&&(Uf(0,14),$f(1),E(2,UNb,3,6,"th",37)(3,bOb,4,5,"td",38),Vf());a&2&&(a=b.$implicit,I("matColumnDef",a.columnDef),B(),ag("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."))},dOb=function(a){a&1&&(K(0,"th",18),Q(1,"Delete"),
L())},fOb=function(a){if(a&1){var b=t();K(0,"td",19)(1,"button",44);N("click",function(){var c=u(b).$implicit,d=P();return v(eOb(d,c[0]))});M(2,"mat-icon",45);L()()}a&2&&(a=P(),B(),I("disabled",!a.isAllowedToEdit))},gOb=function(a,b){a&1&&(K(0,"span",5)(1,"mat-option",11)(2,"span",12),Q(3),L()()());a&2&&(a=b.$implicit,I("matTooltip","The "+a.displayText+" role has already been allocated.")("matTooltipDisabled",!a.disabled),B(),I("value",a.value)("disabled",a.disabled),B(2),S(" ",a.displayText," "))},
hOb=function(a){a&1&&(K(0,"mat-error"),Q(1," Must be an integer between 1 and 300,000. "),L())},iOb=function(a){a&1&&(K(0,"b-callout",2)(1,"b-callout-body"),Q(2," You do not have edit access "),L()())},kOb=function(a,b){if(a&1){var c=t();K(0,"b-placeholder-chip",15);N("editPlaceholder",function(){var e=u(c).$implicit,f=P(),g=bg(6);return v(jOb(f,g,e.role))})("removePlaceholder",function(){var e=u(c).$implicit,f=P();return v(f.removePlaceholder(e))});L()}if(a&2){a=b.$implicit;b=P();var d=bg(2);I("placeholder",
a)("isAllowedToEdit",b.isAllowedToEdit&&!d)}},lOb=function(a){var b=a.assigneeUser===a.currentUserEmail,c=a.verifierUser===a.currentUserEmail,d,e=!((d=a.collaboratorsUsers)==null||!d.some(function(g){return g===a.currentUserEmail})),f;d=!((f=a.ccUsers)==null||!f.some(function(g){return g===a.currentUserEmail}));return!b&&!c&&!e&&!d},mOb=function(a){a&1&&(K(0,"span"),Q(1,"Cancel"),L())},nOb=function(a){a&1&&(K(0,"span"),Q(1,"Edit"),L())},tOb=function(a){if(a&1){var b=t();K(0,"td")(1,"div")(2,"div",
16);Q(3);L();K(4,"div",17)(5,"a",18);Q(6);L()()()();K(7,"td",12)(8,"mat-radio-button",19);N("change",function(d){u(b);var e=P(2);return v(oOb(e,d.value))});L()();K(9,"td",12)(10,"b-button",20);N("onAction",function(){u(b);var d=P().$implicit,e=P();return v(e.toggleRow(d))});F(11,mOb,2,0,"span")(12,nOb,2,0,"span");L()();K(13,"td",12)(14,"b-button",21);N("onAction",function(){u(b);var d=P().$implicit,e=P();return v(pOb(e,d))});Q(15," Delete ");L()()}if(a&2){a=P().$implicit;var c=P();B(2);wg("selected",
qOb(c,a));B();S(" ",a.name," ");B(2);I("href",rOb(c,a),Pe);Kf("aria-label",a.name+"- Click to create a new issue");B();S(" ",rOb(c,a)," ");B(2);I("id",Eg("template-default-radio-",a.index))("checked",c.defaultIndex===a.index);Jf("aria-label","Make template "+a.name+" as default template");I("value",a.index);B(2);I("bAriaLabel",qOb(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B();G(qOb(c,a)?11:12);B(3);I("bAriaLabel","Delete "+a.name)("disabled",!sOb(c,a))}},uOb=function(a){a&1&&(K(0,"h2",23),Q(1,
" Create Template "),L())},vOb=function(a){a&1&&(K(0,"h2",23),Q(1),L());a&2&&(a=P(2).$implicit,B(),zg(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},wOb=function(a,b){a&1&&(K(0,"mat-option",82),Q(1),L());a&2&&(a=b.$implicit,I("value",Dg(a)),B(),S(" ",a," "))},xOb=function(a){if(a&1){var b=t();K(0,"div",38)(1,"div",25)(2,"label",78);Q(3,"Collaborator Groups");L();M(4,"mat-icon",79);L();K(5,"mat-form-field",80)(6,"mat-select",81);Cg("ngModelChange",function(d){u(b);
var e=P(2).$implicit;Bg(e.editableTemplate.collaboratorGroups,d)||(e.editableTemplate.collaboratorGroups=d);return v(d)});N("ngModelChange",function(){u(b);P(2).$implicit.editableTemplate.dirty=!0;return v()});K(7,"mat-select-trigger");Q(8);L();Of(9,wOb,2,3,"mat-option",82,Nf);L()()()}if(a&2){a=P(2).$implicit;var c=P();B(4);I("matTooltip",Dg(c.COLLABORATOR_GROUPS_TOOLTIP));B(2);Ag("ngModel",a.editableTemplate.collaboratorGroups);B(2);S(" ",a.editableTemplate.getCollaboratorGroupsString()," ");B();
Pf(c.trackerCollaboratorGroups)}},zOb=function(a,b){if(a&1){var c=t();K(0,"button",83);N("click",function(){var e=u(c).$implicit,f=P(2).$implicit,g=P();f.issueType=e.value;return v(yOb(g))});Q(1);L()}if(a&2){a=b.$implicit;b=P(2).$implicit;var d;I("disabled",b.issueType===a.value)("matTooltip",(d=a.altText)!=null?d:"");B();S(" ",a.displayText," ")}},AOb=function(a,b){if(a&1){var c=t();K(0,"button",84);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=
!0;return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.priority===a.value),B(),S(" ",a.displayText," "))},BOb=function(a,b){if(a&1){var c=t();K(0,"button",84);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.severity===a.value),B(),S(" ",a.displayText," "))},COb=function(a,b){if(a&1){var c=t();K(0,
"div",55)(1,"b-hotlist-chip",85);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return v(e.removeHotlist(d.hotlistId))});L()()}a&2&&(a=b.$implicit,B(),I("hotlist",a))},DOb=function(a){if(a&1){var b=t();$f(0);T(1,"staffingSummary");K(2,"div",72)(3,"div",25)(4,"label",86);Q(5,"Staffing");L();M(6,"mat-icon",87);L();K(7,"button",88);N("click",function(){u(b);var c=P(3);return v(c.editStaffing())});K(8,"span",89);Q(9);L();M(10,"div",90);L()()}a&2&&(a=P(2).$implicit,a=U(1,2,a.editableTemplate.staffing==
null?null:a.editableTemplate.staffing.plannedAllocations),B(7),Kf("aria-label","Staffing: "+a),B(2),S(" ",a," "))},EOb=function(a){a&1&&(K(0,"h3"),Q(1,"Custom issue fields"),L())},FOb=function(a){if(a&1){var b=t();K(0,"input",97);Cg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Bg(f.editableTemplate.customFieldValues[e.id].textValue,d)||(f.editableTemplate.customFieldValues[e.id].textValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=
!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Kf("id",Eg("template-cf-",a.id));Ag("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},GOb=function(a){if(a&1){var b=t();K(0,"input",98);Cg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Bg(f.editableTemplate.customFieldValues[e.id].numericValue,d)||(f.editableTemplate.customFieldValues[e.id].numericValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;
return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Kf("id",Eg("template-cf-",a.id));Ag("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},IOb=function(a){if(a&1){var b=t();K(0,"b-edit-field",99);N("valueChange",function(g){u(b);var k=P().$implicit,l=P(2).$implicit,r=P();return v(r.setCustomField(l,k.id,g))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Kf("id",Eg("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:Hg(7,HOb))}},JOb=function(a){if(a&1){var b=t();K(0,"bv2-input-date-picker",100);N("boundValueChange",function(e){u(b);var f=P().$implicit,g=P(2).$implicit,k=P();return v(g.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&
2){a=P().$implicit;var c=P(2).$implicit;Kf("id",Eg("template-cf-",a.id));var d;I("boundValue",(d=c.editableTemplate.customFieldValues[a.id].dateValue)!=null?d:void 0)}},LOb=function(a){if(a&1){var b=t();K(0,"b-list-field",101);N("valuesChange",function(e){u(b);var f=P().$implicit,g=P(2).$implicit,k=P();return v(k.setCustomField(g,f.id,e.values))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Kf("id",Eg("template-cf-",a.id));I("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",
KOb(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},MOb=function(a,b){a&1&&(K(0,"div")(1,"div",25)(2,"label",91),Q(3),L()(),K(4,"div"),F(5,FOb,1,3,"input",92)(6,GOb,1,3,"input",93)(7,IOb,1,8,"b-edit-field",94)(8,JOb,1,3,"bv2-input-date-picker",95)(9,LOb,1,7,"b-list-field",96),L()());if(a&2){var c;a=b.$implicit;xg(Eg("cell-",a.cellType));B(2);I("for",Eg("template-cf-",a.id));B();zg("",a.name," (id=",a.id,")");B(2);G((c=a.type)==="TEXT"?5:c==="NUMERIC"?6:c===
"ENUM"?7:c==="DATE"?8:9)}},SOb=function(a){if(a&1){var b=t();K(0,"td",15)(1,"div",22);F(2,uOb,2,0,"h2",23)(3,vOb,2,2,"h2",23);K(4,"div",24)(5,"div",25)(6,"label",26);Q(7,"Template Name");L()();K(8,"input",27);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.name,g)||(k.editableTemplate.name=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(9,"div",24)(10,"b-slide-toggle",28);N("modelChange",function(){u(b);
var g=P().$implicit.editableTemplate;g.inheritable=!g.inheritable;g.dirty=!0;return v()});L();K(11,"span",25)(12,"label",29);Q(13,"Inherited by all child components");L();M(14,"mat-icon",30);L()();K(15,"div",24)(16,"div",25)(17,"label",31);Q(18,"Description of Template");L()();K(19,"input",32);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.description,g)||(k.editableTemplate.description=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=
!0;return v()});L()();K(20,"div",33)(21,"h3");Q(22," Standard issue fields ");L();K(23,"div",34)(24,"div",35)(25,"div",25)(26,"label",36);Q(27,"Issue Access Level");L()();K(28,"b-issue-access-limits-dropdown",37);N("updatedAccessLimitLevel",function(g){u(b);var k=P().$implicit;return v(k.editableTemplate.onAccessLimitLevelSelected(g))});L()();F(29,xOb,11,4,"div",38);L();K(30,"div",24)(31,"div",25)(32,"label",39);Q(33,"Title");L()();K(34,"input",40);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;
Bg(k.editableTemplate.title,g)||(k.editableTemplate.title=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(35,"div",41)(36,"div",25)(37,"label",42);Q(38,"Type");L()();K(39,"button",43)(40,"span");Q(41);L();M(42,"b-icon",44);L();K(43,"mat-menu",45,2);Of(45,zOb,2,3,"button",46,Nf);L()();K(47,"div",41)(48,"div",25)(49,"label",47);Q(50,"Priority");L()();K(51,"button",48)(52,"span");Q(53);L();M(54,"b-icon",44);L();K(55,"mat-menu",45,3);Of(57,
AOb,2,2,"button",49,Nf);L()();K(59,"div",41)(60,"div",25)(61,"label",50);Q(62,"Severity");L()();K(63,"button",51)(64,"span");Q(65);L();M(66,"b-icon",44);L();K(67,"mat-menu",45,4);Of(69,BOb,2,2,"button",49,Nf);L()();K(71,"div",52)(72,"div",25)(73,"label",53);Q(74,"Default Hotlists");L()();K(75,"b-hotlist-picker",54);N("onApply",function(g){u(b);var k=P(2);return v(k.handleHotlistPickerSave(g))})("onCreate",function(g){u(b);var k=P(2);return v(k.createHotlist(g))})("onLoad",function(g){u(b);var k=P(2);
return v(k.loadHotlist(g))});L();Of(76,COb,2,1,"div",55,Nf);L();M(78,"div",56);K(79,"div",57)(80,"div",25)(81,"label",58);Q(82,"Assignee");L()();K(83,"b-peoplekit-single",59);N("emailChange",function(g){u(b);var k=P().$implicit,l=P();return v(l.handleAutocompleteSelection(g,k,"assignee"))});L()();K(84,"div",57)(85,"div",25)(86,"label",60);Q(87,"Verifier");L()();K(88,"b-peoplekit-single",61);N("emailChange",function(g){u(b);var k=P().$implicit,l=P();return v(l.handleAutocompleteSelection(g,k,"verifier"))});
L()();K(89,"div",24)(90,"div",25)(91,"label",62);Q(92,"Collaborators");L();M(93,"mat-icon",63);L();K(94,"b-peoplekit-multi",64,5);N("valueChange",function(g){u(b);var k=P().$implicit;return v(NOb(k.editableTemplate,g))});L()();K(96,"div",24)(97,"div",25)(98,"label",65);Q(99,"CC");L()();K(100,"b-peoplekit-multi",66,6);N("valueChange",function(g){u(b);var k=P().$implicit;return v(OOb(k.editableTemplate,g))});L()();K(102,"div",24)(103,"div",25)(104,"label",67);Q(105,"Initial Comment");L()();K(106,"textarea",
68);Cg("ngModelChange",function(g){u(b);var k=P().$implicit;Bg(k.editableTemplate.comment,g)||(k.editableTemplate.comment=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});Q(107,"                  ");L();K(108,"b-markdown-toggle",69);N("change",function(g){u(b);var k=P().$implicit;return v(k.editableTemplate.setFormattingMode(g))});L()();K(109,"div",24)(110,"div",25)(111,"label",70);Q(112,"In Prod");L()();K(113,"b-slide-toggle",71);N("modelChange",
function(){u(b);var g=P().$implicit.editableTemplate;g.inProd=!g.inProd;g.dirty=!0;return v()});L()();F(114,DOb,11,4,"div",72);L();K(115,"div",73);F(116,EOb,2,0,"h3");Of(117,MOb,10,8,"div",74,Nf);L();K(119,"div",75)(120,"b-button",76);N("onAction",function(){u(b);var g=P(2);return v(POb(g))});Q(121," Save ");L();K(122,"b-button",77);N("onAction",function(){u(b);var g=P(2);return v(QOb(g))});Q(123," Cancel ");L()()()()}if(a&2){a=qg(44);var c=qg(56),d=qg(68),e=P().$implicit,f=P();B(2);G(e.editableTemplate.new?
2:3);B(6);Ag("ngModel",e.editableTemplate.name);B(2);I("model",e.editableTemplate.inheritable);B(9);Ag("ngModel",e.editableTemplate.description);B(9);I("disabled",!1)("defaultAccessLimitLevel",e.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);B();G(f.trackerCollaboratorGroups.length?29:-1);B(5);Ag("ngModel",e.editableTemplate.title);B(5);I("matMenuTriggerFor",a);B(2);yg(ROb(e.issueType));B(2);I("overlapTrigger",!0);B(2);Pf(f.issueTypeChoices);B(6);I("matMenuTriggerFor",
c);B(2);yg(e.editableTemplate.priority);B(2);I("overlapTrigger",!0);B(2);Pf(f.priorityChoices);B(6);I("matMenuTriggerFor",d);B(2);yg(e.editableTemplate.severity);B(2);I("overlapTrigger",!0);B(2);Pf(f.severityChoices);B(6);I("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);B();Pf(f.selectedHotlists);B(7);I("ariaLabel","The user assigned to this issue")("email",e.editableTemplate.assignee);B(5);I("ariaLabel","The user who will verify this issue")("email",e.editableTemplate.verifier);
B(6);I("ariaLabel","Addition to Collaborators")("value",e.editableTemplate.collaborators.join(", "));B(6);I("ariaLabel","Addition to CCs")("value",e.editableTemplate.cc.join(", "));B(6);Ag("ngModel",e.editableTemplate.comment);B(2);I("initialValue",e.editableTemplate.formattingMode);B(5);I("model",e.editableTemplate.inProd);B();G(f.sessionIsInternal?114:-1);B(2);G(f.customFieldRows.length>0?116:-1);B();Pf(f.customFieldRows);B(3);I("disabled",!e.editableTemplate.isDirty())}},TOb=function(a,b){a&1&&
(K(0,"tr"),F(1,tOb,16,15)(2,SOb,124,34,"td",15),L());a&2&&(a=b.$implicit,B(),G(a.editableTemplate?2:1))},UOb=function(a){a&1&&(K(0,"tr")(1,"td",15)(2,"div",102)(3,"strong"),Q(4,"Templates inherited from parent components"),L()()()())},VOb=function(a){a&1&&(Uf(0),M(1,"b-component-card",108,8),Vf());if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},WOb=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td")(2,"div")(3,"div",16);Q(4);L();K(5,"div",17)(6,
"a",18);Q(7);L()()()();K(8,"td",12)(9,"mat-radio-button",19);N("change",function(e){u(c);var f=P(2);return v(oOb(f,e.value))});L()();K(10,"td",103)(11,"div",104)(12,"div",105);Q(13,"Inherited From");L();K(14,"a",106);Q(15);L();K(16,"onedev-hovercard",null,7);E(18,VOb,3,2,"ng-container",107);L()()()()}if(a&2){a=b.$implicit;b=qg(17);var d=P(2);B(3);wg("selected",qOb(d,a));B();S(" ",a.name," ");B(2);I("href",rOb(d,a),Pe);Kf("aria-label",a.name+"- Click to create a new issue");B();S(" ",rOb(d,a)," ");
B(2);I("id",Eg("template-default-radio-",a.index))("checked",d.defaultIndex===a.index);Jf("aria-label","Make template "+a.name+" as default template");I("value",a.index);B(5);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentTemplates.makeHref(a.componentId),Pe);Kf("aria-label","Inherited from "+d.componentIdsToPaths[a.componentId]);B();S(" ",d.componentIdsToPaths[a.componentId]," ")}},XOb=function(a,b){a&1&&(F(0,UOb,5,0,"tr"),Of(1,WOb,19,15,"tr",null,Nf));a&2&&(G(b.length?0:-1),B(),Pf(b))},
YOb=function(a,b){a&1&&(K(0,"div",109),Q(1),L(),K(2,"div",110)(3,"button",111),Q(4," Cancel "),L(),K(5,"button",112),Q(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),S(' Are you sure you want to delete the template "',a.name,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},ZOb=function(a,b){a&1&&(K(0,"div",109),Q(1),L(),K(2,"div",110)(3,"button",113),Q(4," Cancel "),L(),K(5,"button",113),Q(6," Don't Save "),L(),K(7,"button",114),Q(8," Save "),L()());a&2&&(a=b.$implicit,B(),S(' Do you want to save changes to template "',
a.name,'" before closing? '),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},$Ob=function(a){a&1&&(K(0,"div"),Q(1),L(),K(2,"div"),Q(3),L());a&2&&(a=P(),B(),S(" Policy: ",a.rawObjectiveDisplayText," (business) "),B(2),S("Effective: ",a.objectiveDisplayText," (calendar)"))},aPb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(),B(),S("Policy: ",a.rawObjectiveDisplayText," (calendar)"))},bPb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",0),L());
a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.assignmentSlo)("includeObjective",!0))},cPb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",1),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.responseSlo)("includeObjective",!0))},dPb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",2),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.closureSlo)("includeObjective",
!0))},ePb=function(a){a&1&&(K(0,"div",5),M(1,"b-slo-status-summary",7),L());a&2&&(a=P(),B(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",a.onlyShowMetric))},fPb=function(a){a&1&&Q(0," No applicable SLO rules ")},gPb=function(a){a&1&&Q(0," No SLO set on issue component ")},hPb=function(a){a&1&&(K(0,"div",6),F(1,fPb,1,0)(2,gPb,1,0),L());a&2&&(a=P(),B(),G(a.editSloLink?1:2))},iPb=function(a){if(a&1){var b=t();K(0,"a",9);N("click",function(){u(b);var c=P(2);return v(c.trackOpenSlo())});
Q(1);L()}a&2&&(a=P(2),I("href",a.editSloLink,Pe),B(),S(" ",a.sloName," "))},jPb=function(a){a&1&&(K(0,"span"),Q(1," (private) "),L())},kPb=function(a){a&1&&(K(0,"span"),Q(1," SLO definition: "),F(2,iPb,2,2,"a",8)(3,jPb,2,0,"span"),L());a&2&&(a=P(),B(2),G(a.sloName?2:3))},nPb=function(a){if(a.type==="CUSTOM_FIELD")return new St({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:a.customFieldId!==
void 0,tooltip:""});a=vRa(a.type);a==="canonicalIssueId"&&(a="duplicateOfIssueId");return lPb.includes(a)?mPb(a):null},pPb=function(a){return oPb(a.map(nPb).filter(function(b){return!!b}))},qPb=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:sm(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})},oPb=
function(a){return uq(a,function(b){return b.name})},mPb=function(a){var b={name:a,label:a.toUpperCase()},c=rPb[a];c?Object.assign(b,c):lPb.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new St(b)},sPb=function(a,b){a&1&&M(0,"col");a&2&&xg(Eg("",b.$implicit.name,"-col"))},tPb=function(a){a&1&&Wf(0)},vPb=function(a,b){a&1&&E(0,tPb,1,0,"ng-container",7);a&2&&(a=b.$implicit,b=P(),I("ngTemplateOutlet",b.headerCellTemplates[a.name]||
b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Ig(2,uPb,a)))},wPb=function(a){a&1&&Wf(0)},yPb=function(a,b){a&1&&E(0,wPb,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",Kg(2,xPb,d,a,c))}},APb=function(a,b){if(a&1){var c=t();K(0,"tr",9,3);N("click",function(){var e=u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("focus",function(){var e=
u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("mouseover",function(){var e=u(c).$index;P(2).hoveredRowIndex.emit(e);return v()})("mouseleave",function(){u(c);P(2).hoveredRowIndex.emit(null);return v()});Of(2,yPb,1,6,"ng-container",null,zPb);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);wg("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);Kf("data-row-id",
a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);Pf(d.columns)}},CPb=function(a){a&1&&Of(0,APb,4,11,"tr",8,BPb);a&2&&(a=P(),Pf(a.list))},DPb=function(a,b){a&1&&(K(0,"th"),M(1,"pop-grid-default-th",10),L());a&2&&(a=b.column,B(),I("column",a))},EPb=function(a,b){a&1&&(K(0,"td"),M(1,"pop-grid-default-cell",11),L());a&2&&(a=b.row,b=b.column,B(),I("row",a)("column",b))},FPb=function(a){if(a&1){var b=t();K(0,"b-sortable-header",3);N("sortChanged",function(c){u(b);
var d=P();d.grid&&d.grid.sortChange.emit(c);return v()});L()}a&2&&(a=P(),I("columnLabel",a.column.label)("columnName",a.column.name)("defaultSortDirection",a.column.defaultSortDirection||"ASC")("sort",a.grid==null?null:a.grid.sort)("matTooltip",a.column.tooltip||""))},GPb=function(a){a&1&&(K(0,"span",4),Q(1),L());a&2&&(a=P(2),B(),S("column-",a.column.name))},HPb=function(a){a&1&&(K(0,"div",2),F(1,GPb,2,1,"span",4),Q(2),L());a&2&&(a=P(),Kf("aria-label",a.column.label),B(),G(a.column.label?-1:1),B(),
S(" ",a.column.label," "))},IPb=function(a){if(a&1){var b=t();K(0,"div",13,3);N("menuOpened",function(){u(b);var d=P();return v(d.menuOpen=!0)})("menuClosed",function(){u(b);var d=P();return v(d.menuOpen=!1)})("keydown.enter",function(d){u(b);qg(1).openMenu();d.preventDefault();return v(d.stopPropagation())})("keydown.space",function(){u(b);var d=qg(1);return v(d.openMenu())});L()}if(a&2){a=P();var c=qg(5);wg("columnpicker-button-active",a.menuOpen);Kf("aria-label",Eg("",a.column.fullLabel," column configuration"));
I("matMenuTriggerFor",c)}},LPb=function(a,b){if(a&1){var c=t();K(0,"button",14);N("click",function(){var d=u(c).$implicit,e=P();return v(JPb(e,d.name))});M(1,"b-icon",15);K(2,"span",16);Q(3);L()()}a&2&&(a=b.$implicit,b=P(),wg("b-menu-item-checked",KPb(a.name).get(b.listViewPrefs)),B(3),S(" ",a.menuItem," "))},MPb=function(a){a&1&&M(0,"mat-divider")},NPb=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P().$implicit,d=P().before,e=P();return v(e.add(c,d))})("keydown.enter",
function(c){u(b);var d=P().$implicit,e=P().before;P().add(d,e);c.preventDefault();return v(c.stopPropagation())});Q(1);L()}a&2&&(a=P().$implicit,I("matTooltip",a.tooltip),B(),S(" ",a.fullLabel," "))},PPb=function(a){a&1&&(K(0,"button",11)(1,"span"),Q(2),L()());if(a&2){a=P().$implicit;var b=P().before;P();var c=qg(19);I("matMenuTriggerFor",c)("matMenuTriggerData",Jg(3,OPb,a.columns,b));B(2);yg(a.label)}},QPb=function(a,b){a&1&&F(0,NPb,2,2,"button",18)(1,PPb,3,6,"button",11);a&2&&(a=b.$implicit,b=P(2),
G(b.isIssueGridColumn(a)?0:1))},SPb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){var c=u(b).before,d=P();return v(RPb(d,c))});Q(1," Custom Field ");L();M(2,"mat-divider");Of(3,QPb,2,1,null,null,Nf)}a&2&&(a=P(),B(3),Pf(a.currentAvailableItems))},TPb=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){var d=u(c).$implicit,e=P().before,f=P();return v(f.add(d,e))})("keydown.enter",function(d){var e=u(c).$implicit,f=P().before;P().add(e,f);d.preventDefault();return v(d.stopPropagation())});
Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a.fullLabel," "))},UPb=function(a,b){a&1&&Of(0,TPb,2,1,"button",20,Nf);a&2&&Pf(b.columns)},KPb=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("og`"+a);}},VPb=function(a){a&1&&(K(0,"p",5),Q(1),L());a&2&&(a=P(),B(),S(" * Status update must be less than ",a.CHAR_LIMIT,
" characters. "))},WPb=function(a){a&1&&(K(0,"p",6),Q(1),K(2,"a",12),Q(3," Learn more "),L()());a&2&&(a=P(),B(),S(" Your status update contains restricted words: ",As(a.bannedWordsChecker),". Review your status update before posting. "))},XPb=function(a){a&1&&(K(0,"div",8),M(1,"b-live-preview",13),L());a&2&&(a=P(),B(),I("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},YPb=function(a,
b){a&1&&(K(0,"button",8),M(1,"mat-icon",9),L(),K(2,"onedev-hovercard",null,0)(4,"div",10)(5,"div",11)(6,"span",12),Q(7),M(8,"br")(9,"br"),Q(10),L()()()());if(a&2){a=qg(3);var c=P();I("onedevHovercardTrigger",a)("onedevHovercardActive",!0)("onedevHovercardConfig",c.CATEGORY_INFO_HOVERCARD_CONFIG);B(7);S(" ",b.displayName," ");B(3);S(" ",b.description," ")}},ZPb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P();return v(c.copyContent())});M(1,"mat-icon",14);L()}},$Pb=
function(a){a&1&&M(0,"mat-icon",16)},aQb=function(a){a&1&&M(0,"mat-icon",17)},bQb=function(a){a&1&&M(0,"mat-icon",19)},cQb=function(a){a&1&&M(0,"mat-icon",20)},gQb=function(a,b){if(a&1){var c=t();K(0,"button",15);N("click",function(){u(c);var d=P();return v(dQb(d))});F(1,$Pb,1,0,"mat-icon",16)(2,aQb,1,0,"mat-icon",17);L();K(3,"button",18);N("click",function(){u(c);var d=P();return v(eQb(d))});F(4,bQb,1,0,"mat-icon",19)(5,cQb,1,0,"mat-icon",20);L()}a&2&&(a=P(),I("disabled",a.hasFeedbackBeenGiven(b)),
B(),G(fQb(a.insightsActionsService,b,a.enrichment.category).hasThumbsUpped?1:2),B(2),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(fQb(a.insightsActionsService,b,a.enrichment.category).hasThumbsDowned?4:5))},hQb=function(a){a&1&&M(0,"b-actions-menu",7);a&2&&(P(),a=bg(10),I("menuItems",a))},iQb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.displayName," "))},jQb=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",12,0);a&2&&(a=P(5),wg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",
b))},lQb=function(a,b){if(a&1){var c=t();K(0,"b-formatted-comment-presenter",13,0);N("contentRendered",function(){u(c);var d=P(6);return v(kQb(d))});L()}a&2&&(a=P(6),wg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b.formattedContent))},mQb=function(a){a&1&&M(0,"b-spinner")},nQb=function(a){a&1&&(F(0,lQb,2,3,"b-formatted-comment-presenter",8),T(1,"async"),Lf(2,mQb,1,0,"b-spinner"));if(a&2){var b;a=P(2).$implicit;G((b=U(1,1,a.asyncContent))?0:2,b)}},oQb=function(a){a&1&&(K(0,"div"),
Q(1,"No content was found for this enrichment."),L())},pQb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(5);c.isTruncated=!c.isTruncated;c.maybeSetupOnScreenDetection();return v()});Q(1);L()}a&2&&(a=P(5),B(),S(" ",a.isTruncated?"Show more":"Show less"," "))},qQb=function(a){a&1&&(F(0,jQb,2,3,"b-formatted-comment-presenter",8)(1,nQb,3,3)(2,oQb,2,0,"div"),K(3,"div",9),F(4,pQb,2,1,"button",10),M(5,"insights-actions",11),L());if(a&2){var b;a=P().$implicit;var c=P(3);
G((b=a.general==null?null:a.general.formattedContent)?0:a.asyncContent?1:2,b);B(4);G(c.shouldTruncate?4:-1);B();I("enrichment",a)}},rQb=function(a,b){a&1&&(K(0,"expandable-tab",5),E(1,iQb,1,1,"ng-template",6)(2,qQb,6,3,"ng-template",7),L());a&2&&(a=b.$implicit,I("key",a.displayName)("ariaLabel",a.displayName))},wQb=function(a,b){if(a&1){var c=t();$f(0);T(1,"async");K(2,"expandable-tabs",4);N("expandedTabsChanged",function(e){u(c);var f=P(2);f.manualSelectedTab$.next([].concat(q(e)));kQb(f);sQb(f);
return v()})("showAllClicked",function(){u(c);var e=P(),f=P();return v(tQb(f,e[0].issueId))});Of(3,rQb,3,2,"expandable-tab",5,uQb);L()}if(a&2){a=P();var d=U(1,4,P().tabKeys$)||Hg(6,vQb);B(2);I("showMultiple",!1)("showIcons",!1)("tabKeys",d)("expandedTabs",b);B();Pf(a)}},xQb=function(a){a&1&&(F(0,wQb,5,7,"expandable-tabs",3),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.expandedTab$))?0:-1,b)}},zQb=function(a){return function(b){b=X(b,yQb,1);var c,d=b==null?void 0:(c=b.getData())==null?void 0:c.getWorkspacesMap(),
e,f;return((f=b==null?void 0:(e=b.getContextsMap().get("b/"+a))==null?void 0:e.getTypedWorkspaceIdsList())!=null?f:[]).map(function(g){g=g.getWorkspaceId();var k=d==null?void 0:d.get(g),l;return{workspaceId:Ym(g),workspaceName:(l=k==null?void 0:k.getName())!=null?l:"",issueId:a}})}},AQb=function(a){a&1&&Wf(0)},CQb=function(a){a&1&&(Uf(0),E(1,AQb,1,0,"ng-container",8),Vf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ig(2,BQb,a.value)))},DQb=function(a){a&1&&Q(0);
a&2&&(a=P(),yg(a.value!=null?a.value:"--"))},EQb=function(a){a&1&&(Ad(),K(0,"svg",9),M(1,"path",10),L())},FQb=function(a){a&1&&M(0,"input",11);a&2&&(a=P(),I("required",a.required())("formControl",a.editingValue),Kf("aria-labelledby",a.labelledById))},GQb=function(a){return a!=null?Number(a):void 0},HQb=function(a){a&1&&M(0,"mat-icon",4);a&2&&(P(),a=qg(5),I("onedevHovercardTrigger",a))},IQb=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",10);N("valueChange",function(d){u(b);var e=P(2);e.selectedNumericEstimate=
d;d==null?e.effortChange.emit(void 0):e.effortChange.emit({estimate:String(d)});return v()});L()}if(a&2){a=P(2);var c=qg(2);I("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},JQb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a.label," "))},KQb=function(a){a&1&&Q(0," -- ")},LQb=function(a,b){a&1&&F(0,JQb,1,1)(1,KQb,1,0);a&2&&G(b.$implicit?0:1)},NQb=function(a){if(a&1){var b=t();K(0,"onedev-single-select",11);N("valueChange",function(e){u(b);
var f=P(2);return v(f.selectOption(e))});L();E(1,LQb,2,1,"ng-template",null,2,Mg)}if(a&2){a=qg(2);var c=P(2),d;I("value",c.selectedOption)("options",(d=c.effortSpec.enumSpec==null?null:c.effortSpec.enumSpec.options)!=null?d:Hg(6,MQb))("includeEmptyOption",!0)("optionTemplate",a)("disabled",c.disabled)("displayArrowIcon",!c.disabled)}},OQb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" ",a.effort==null?null:a.effort.estimate," "))},PQb=function(a){a&1&&(K(0,"onedev-edit-field")(1,"onedev-field-label",3),Q(2),
F(3,HQb,1,1,"mat-icon",4),L(),K(4,"onedev-hovercard",null,1)(6,"div",5)(7,"div",6),Q(8," This estimate was made under a different configuration and needs to be updated. "),K(9,"a",7),Q(10,"Learn more"),L()()()(),K(11,"onedev-field-value",8),F(12,IQb,1,4,"onedev-numeric-field",9)(13,NQb,3,7)(14,OQb,1,1),L()());if(a&2){var b;a=P();B();I("thinking",a.thinking);B();S(" ",a.fieldName," ");B();G(a.isCompatibleValue?-1:3);B(8);I("thinking",a.thinking);B();G((b=a.fieldType)==="NUMERIC"?12:b==="DROPDOWN"?
13:14)}},QQb=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" ",a.effort==null?null:a.effort.estimate," "))},RQb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" ",a!=null?a:"--"," "))},SQb=function(a,b){a&1&&F(0,QQb,1,1)(1,RQb,1,1);a&2&&(a=b.$implicit,b=P(),G(b.isNaN(a)?0:1))},TQb=function(a){a&1&&Q(0," -- ")},UQb=function(a){a&1&&(K(0,"div",12),Q(1),L(),K(2,"div",13),Q(3),L());a&2&&(a=P(),B(),yg(a.staffingUserSummary),B(2),yg(a.staffingPlaceholderSummary))},VQb=function(a){a&1&&M(0,"mat-icon",4)},WQb=function(a){a&
1&&M(0,"mat-icon",11)},XQb=function(a){a&1&&M(0,"mat-icon",12)},YQb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),L());a&2&&(a=P(2),B(),I("timestamp",a.sloStartTime))},ZQb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),K(2,"span"),Q(3," (default)"),L()());a&2&&(a=P(2),B(),I("timestamp",a.issueCreationTimestamp/1E3))},$Qb=function(a){if(a&1){var b=t();K(0,"slo-edit-date-time-picker",27);N("closePicker",function(){u(b);var c=P(2);return v(c.isSloStartEditTimePickerOpen=
!1)})("sloEditCommit",function(c){u(b);var d=P(2);return v(d.updateSloStartTime(c))});L()}a&2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloStartTime)("noneButtonEnabled",a.hasSloStartTime))},aRb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"a",23);Q(2," Start Date: ");L();K(3,"div",20)(4,"a",24,1);N("keydown.enter",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("keydown.space",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=
!d.isSloStartEditTimePickerOpen;return v()})("click",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()});F(6,YQb,2,1,"span")(7,ZQb,4,1,"span");L();E(8,$Qb,1,3,"ng-template",25);L()()}if(a&2){a=qg(5);var c=P();B(6);G(c.hasSloStartTime?6:7);B(2);I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloStartEditTimePickerOpen)}},bRb=function(a){a&1&&(K(0,"span"),Q(1," Set closure SLO "),L())},cRb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",
26),L());a&2&&(a=P(2),B(),I("timestamp",a.sloEndTime))},dRb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),K(2,"span"),Q(3," (default)"),L()());a&2&&(a=P(2),B(),I("timestamp",a.closureSloTarget*1E3))},eRb=function(a){if(a&1){var b=t();K(0,"slo-edit-date-time-picker",27);N("closePicker",function(){u(b);var c=P(2);return v(c.isSloEndEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return v(d.updateSloEndTime(c))});L()}a&2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",
a.sloEndTime)("noneButtonEnabled",a.hasSloEndTime))},fRb=function(a){if(a&1){var b=t();K(0,"div",15)(1,"a",23);Q(2," End Date: ");L();K(3,"div",20)(4,"a",28,1);N("click",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.enter",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.space",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()});F(6,bRb,
2,0,"span");F(7,cRb,2,1,"span");F(8,dRb,4,1,"span");L();E(9,eRb,1,3,"ng-template",25);L()()}if(a&2){a=qg(5);var c=P();B(6);G(c.hasClosureSlo?-1:6);B();G(c.hasClosureSlo&&c.hasSloEndTime?7:-1);B();G(c.hasClosureSlo&&!c.hasSloEndTime?8:-1);B();I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloEndEditTimePickerOpen)}},gRb=function(a){a&1&&M(0,"b-user-membership-chip",21);a&2&&(a=P(),I("user",a.escalationOwner)("email",a.userToDisplayString(a.escalationOwner))("enableSmallChip",!0))},
hRb=function(a){a&1&&Q(0," None ")},iRb=function(a,b){if(a&1){var c=t();K(0,"a",30);N("click",function(){u(c);var d=P(2);return v(d.trackOpenSlo())});Q(1);L()}a&2&&(a=P(2),Kf("href",a.editSloLink,Pe),B(),S(" ",b.name," "))},jRb=function(a){a&1&&(K(0,"div",22),Q(1," SLO definition: "),F(2,iRb,2,2,"a",29),T(3,"async"),L());if(a&2){var b;a=P();B(2);G((b=U(3,1,a.slo$))?2:-1,b)}},kRb=function(a){if(a&1){var b=t();K(0,"div",22)(1,"a",31);N("click",function(){u(b);P();er("component","open","fromIssueSloBox");
return v()});Q(2,"Select an SLO");L()()}a&2&&(a=P(),B(),Kf("href",a.componentSloLink,Pe))},lRb=function(a){return a&&a.teamId!=="0"?a.deleted?"DELETED":"VALID":"MISSING"},mRb=function(a){a&1&&Wf(0)},nRb=function(a){if(a&1){var b=t();K(0,"div",3);Q(1," Select a team from the suggestions below, or edit in ");K(2,"a",6);N("click",function(){u(b);var d=P();return v(d.trackClick("viewTeamAssociationOnComponent"))});Q(3,"component settings");L();Q(4,". ");K(5,"mat-radio-group",7);Cg("ngModelChange",function(d){u(b);
var e=P();Bg(e.teamAction,d)||(e.teamAction=d);return v(d)});K(6,"p")(7,"mat-radio-button",8);Q(8," Don't make any changes ");L()();K(9,"p")(10,"mat-radio-button",9);Q(11," Map component to selected team ");L()()();E(12,mRb,1,0,"ng-container",10);L()}if(a&2){a=P();var c=qg(5);B(2);I("href",a.componentSetting,Pe);B(3);Ag("ngModel",a.teamAction);B(7);I("ngTemplateOutlet",c)}},oRb=function(a){a&1&&Wf(0)},pRb=function(a){a&1&&(K(0,"div",3),Q(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),
K(2,"a",11),Q(3,"component settings"),L(),Q(4,". "),E(5,oRb,1,0,"ng-container",10),L());if(a&2){a=P();var b=qg(5);B(2);I("href",a.componentSetting,Pe);B(3);I("ngTemplateOutlet",b)}},qRb=function(a){a&1&&(K(0,"span",16),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.teamPath))},rRb=function(a){a&1&&Q(0," -- ")},sRb=function(a,b){a&1&&F(0,qRb,2,1,"span",16)(1,rRb,1,0);a&2&&G(b.$implicit?0:1)},tRb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"onedev-single-select",13);Cg("valueChange",function(d){u(b);var e=
P(2);Bg(e.selectedTeam,d)||(e.selectedTeam=d);return v(d)});N("valueChange",function(d){u(b);var e=P(2);return v(e.selectOption(d))});L();E(2,sRb,2,1,"ng-template",null,1,Mg);K(4,"a",14);N("click",function(){u(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});M(5,"mat-icon",15);L()()}if(a&2){a=qg(3);var c=P(2);B();I("disabled",c.teamAction==="NONE");Ag("value",c.selectedTeam);I("options",c.teamOptions)("includeEmptyOption",!1)("optionTemplate",a);B(3);Kf("href",c.getMomaTeamLink(),Pe)}},uRb=
function(a){a&1&&F(0,tRb,6,6,"div",12);a&2&&(a=P(),G(a.teamOptions.length>0?0:-1))},vRb=function(a){if(a&1){var b=t();K(0,"b-callout-actions")(1,"b-button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});Q(2);L()()}a&2&&(a=P(),B(2),yg(a.buttonName))},wRb=function(a){a&1&&Wf(0)},xRb=function(a){a&1&&E(0,wRb,1,0,"ng-container",47);a&2&&(P(),a=qg(96),I("ngTemplateOutlet",a))},zRb=function(a,b){a&1&&(M(0,"b-list-field",48),T(1,"async"));a&2&&(a=P(3),I("readonly",!0)("defaultLineCount",
3)("title","Team")("type",a.ListFieldType.TEAM)("values",Ig(8,yRb,b))("showInternalOnlyFieldBadge",!U(1,6,a.issueIsOnInternalComponent$)))},ARb=function(a){a&1&&(F(0,zRb,2,10,"b-list-field",48),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.teamHovercardInputs$))?0:-1,b)}},CRb=function(a){if(a&1){var b=t();K(0,"div",49)(1,"b-team-warning",50);T(2,"async");T(3,"async");N("updateTeam",function(){u(b);var g=P(3);g.issueFullFridge.poke(g.issueId);return v()});L()()}if(a&2){var c;a=P();var d=P(),e=P();
B();var f;I("warningType",a)("componentId",d.componentId||void 0)("parentComponentId",((c=U(2,4,e.component$))==null?null:c.parentComponentId)||void 0)("teamSuggestions",(f=U(3,6,e.teamSuggestions$))!=null?f:Hg(8,BRb))}},DRb=function(a){a&1&&(F(0,CRb,4,9,"div",49),T(1,"async"));a&2&&(a=P(2),G(U(1,1,a.shouldDisplayTeamSuggestions$)?0:-1))},ERb=function(a){a&1&&Wf(0)},FRb=function(a){a&1&&E(0,ERb,1,0,"ng-container",47);a&2&&(P(),a=qg(98),I("ngTemplateOutlet",a))},GRb=function(a,b){if(a&1){var c=t();
K(0,"div",51);M(1,"div",52);K(2,"span",53);T(3,"async");T(4,"async");N("click",function(){var d=u(c),e=P(3);return v(Tt(e,d))})("keydown.enter",function(d){var e=u(c);Tt(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);Tt(P(3),e);d.stopPropagation();return v(d.preventDefault())});Q(5);L()()}a&2&&(a=P(3),B(2),wg("disabled",!!U(3,6,a.isSaving$(a.IssueFieldName.STATUS))),I("matTooltip",b.description||""),Kf("aria-disabled",!!U(4,8,a.isSaving$(a.IssueFieldName.STATUS)))("aria-label",
b.displayText||null),B(3),S(" ",b.displayText," "))},HRb=function(a){a&1&&(F(0,GRb,6,10,"div",51),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issueStatusQuickAction$))?0:-1,b)}},IRb=function(a){a&1&&(K(0,"div",24),M(1,"b-edit-field",54,15),T(3,"async"),K(4,"div",51),M(5,"div",52),K(6,"a",55),T(7,"async"),Q(8," Open triage "),L()()());a&2&&(a=P(2),B(),I("name","phase")("title","Triage phase")("type",a.FieldType.ENUM)("value",U(3,8,a.triagePhase$))("choices",a.phaseChoices)("showHotkeyHint",!1)("disabled",
!0),B(5),I("href",U(7,10,a.triagePhaseUrl$),Pe))},JRb=function(a){a&1&&(M(0,"b-issue-card",56,16),T(2,"async"));if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",U(2,2,b.canonicalIssueId$))}},LRb=function(a){if(a&1){var b=t();K(0,"b-estimated-effort-row",57);T(1,"async");T(2,"async");T(3,"async");N("effortChange",function(e){u(b);var f=P(2);return v(KRb(f.editIssueService,f.issueId,e))});L()}if(a&2){a=P(2);var c,d;I("effort",(c=U(1,3,a.effort$))!=null?c:void 0)("effortSpec",
(d=U(2,5,a.effortSpec$))!=null?d:void 0)("disabled",!U(3,7,a.hasAclToEdit$))}},MRb=function(a){a&1&&(K(0,"div"),Q(1," Expanded access is turned on for this component. Assignees, verifiers and collaborators can edit issues in this component, and CC'd users can comment on them. "),K(2,"a",61),Q(3,"Learn more"),L()());a&2&&(a=P(3),B(2),I("href",ls(a.documentationLinks)+"#expanded-access",Pe))},NRb=function(a){a&1&&(K(0,"div",38)(1,"span",58),Q(2,"Expanded Access"),L(),K(3,"xap-bubble",59)(4,"xap-icon-trigger"),
M(5,"mat-icon",60),L(),E(6,MRb,4,1,"ng-template",null,17,Mg),L()());a&2&&(a=qg(7),B(3),I("panelTemplate",a))},ORb=function(a){a&1&&(K(0,"span",65),T(1,"async"),Q(2),L());if(a&2){a=P();var b=P(3);wg("disabled",!!U(1,3,b.isSaving$(b.IssueFieldName.ASSIGNEE)));B(2);S(" ",a.displayText," ")}},PRb=function(a,b){if(a&1){var c=t();K(0,"div",63);T(1,"async");N("onHotkey",function(){var d=u(c),e=P(3);return v(Tt(e,d))})("click",function(){var d=u(c),e=P(3);return v(Tt(e,d))})("keydown.enter",function(d){var e=
u(c);Tt(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);Tt(P(3),e);d.stopPropagation();return v(d.preventDefault())});M(2,"div",52);F(3,ORb,3,5,"span",64);T(4,"async");L()}a&2&&(a=P(3),I("hotkey",a.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",b.description),Kf("aria-disabled",!!U(1,5,a.isSaving$(a.IssueFieldName.ASSIGNEE)))("aria-label",b.description),B(3),G(U(4,7,a.hasAclToEdit$)?3:-1))},QRb=function(a){a&1&&(F(0,PRb,5,9,"div",62),T(1,"async"));
if(a&2){var b;a=P(2);G((b=U(1,1,a.issueAssigneeQuickAction$))?0:-1,b)}},RRb=function(a){a&1&&Wf(0)},SRb=function(a){a&1&&E(0,RRb,1,0,"ng-container",47);a&2&&(P(),a=qg(100),I("ngTemplateOutlet",a))},TRb=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")}},URb=function(a,b){a&1&&(F(0,TRb,1,6,"b-list-field",
44),T(1,"async"));a&2&&(a=P(2),G(U(1,1,a.shouldDisplayWtdmUi$)&&b.length?0:-1))},VRb=function(a){a&1&&(M(0,"b-staffing-row",43),T(1,"async"),T(2,"async"));if(a&2){a=P(2);var b;I("staffing",(b=U(1,3,a.staffing$))!=null?b:void 0)("issueId",a.issueId)("isAllowedToEdit",U(2,5,a.hasAclToEdit$))}},WRb=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)")}},
YRb=function(a,b){a&1&&(K(0,"div"),Wf(1,66),L());a&2&&(a=b.$implicit,P(),b=qg(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,XRb,a)))},ZRb=function(a,b){a&1&&(K(0,"div"),Wf(1,66),L());a&2&&(a=b.$implicit,P(),b=qg(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,XRb,a)))},$Rb=function(a){a&1&&Wf(0)},aSb=function(a){a&1&&E(0,$Rb,1,0,"ng-container",47);a&2&&(P(),a=qg(110),I("ngTemplateOutlet",a))},bSb=function(a){a&1&&M(0,"hr",45)},cSb=function(a){a&1&&Wf(0)},dSb=function(a){a&
1&&E(0,cSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(96),I("ngTemplateOutlet",a))},eSb=function(a){a&1&&Wf(0)},fSb=function(a){a&1&&E(0,eSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(98),I("ngTemplateOutlet",a))},gSb=function(a){a&1&&Wf(0)},hSb=function(a){a&1&&E(0,gSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(100),I("ngTemplateOutlet",a))},iSb=function(a,b){a&1&&(K(0,"div"),Wf(1,66),L());a&2&&(a=b.$implicit,P(2),b=qg(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,XRb,a)))},jSb=function(a){a&
1&&Wf(0)},kSb=function(a){a&1&&E(0,jSb,1,0,"ng-container",47);a&2&&(P(2),a=qg(110),I("ngTemplateOutlet",a))},lSb=function(a){a&1&&(K(0,"collapsible-panel",46),T(1,"async"),F(2,dSb,1,1,"ng-container"),T(3,"async"),F(4,fSb,1,1,"ng-container"),T(5,"async"),F(6,hSb,1,1,"ng-container"),T(7,"async"),Of(8,iSb,2,4,"div",null,t()[15][8].trackCustomField,!0),T(10,"async"),F(11,kSb,1,1,"ng-container"),T(12,"async"),L());if(a&2){a=P(2);var b;I("titleWhenCollapsed",(b=U(1,6,a.showHiddenFieldsLabel$))!=null?b:
"")("titleWhenExpanded","Hide additional fields");B(2);G(a.showSloStatus&&!U(3,8,a.isSloStatusPrimary$)?2:-1);B(2);G(U(5,10,a.isSeverityPrimary$)?-1:4);B(2);G(U(7,12,a.isChangelistPrimary$)?-1:6);B(2);Pf(U(10,14,a.hiddenCustomFields$));B(3);G(U(12,16,a.isForgottenFourPrimary$)?-1:11)}},mSb=function(a){if(a&1){var b=t();K(0,"b-issue-slo-box",68);T(1,"async");T(2,"async");T(3,"async");T(4,"async");T(5,"async");N("onSloStartTimeChange",function(g){u(b);var k=P(3);return v(k.editIssueService.updateSloStartTime(k.issueId,
g.date))})("onSloEndTimeChange",function(g){u(b);var k=P(3);return v(k.editIssueService.updateSloEndTime(k.issueId,g.date))});L()}if(a&2){a=P(2);var c=P(),d,e,f;I("sloStatus",(d=U(1,9,c.sloStatus$))!=null?d:void 0)("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloId",(e=U(2,11,c.sloId$))!=null?e:void 0)("componentId",a.componentId||void 0)("isEditable",!!U(3,13,c.hasAclToEdit$))("issueCreationTimestamp",(f=U(4,15,c.createdTimeMicros$))!=null?f:0)("showInternalOnlyFieldBadge",!U(5,17,
c.issueIsOnInternalComponent$))("escalationOwner",a.escalationOwner)}},nSb=function(a){a&1&&E(0,mSb,6,19,"ng-template",67);a&2&&(a=P(2),I("refreshable",a.refreshMonitor.getObservable()))},pSb=function(a){if(a&1){var b=t();K(0,"b-edit-field",69);T(1,"async");T(2,"async");N("valueChange",function(d){u(b);var e=P(2);return v(oSb(e.editIssueService,e.issueId,d!=null?d:""))});L()}if(a&2){a=P();var c=P();I("name","severity")("title","Severity")("type",c.FieldType.ENUM)("tooltip","Set severity, which reflects how much the issue affects the use of the product")("value",
a.severity)("choices",c.severityChoices)("readonly",!U(1,8,c.hasAclToEdit$))("disabled",!!U(2,10,c.isSaving$(c.IssueFieldName.SEVERITY)))}},sSb=function(a){if(a&1){var b=t();K(0,"b-list-field",70);T(1,"async");T(2,"async");N("valuesChange",function(g){u(b);var k=P(2),l=[],r=[];g=m(g.values);for(var w=g.next();!w.done;w=g.next()){w=w.value;var x=Xq(w);x?l.push(x):r.push(w)}qSb(k.editIssueService,k.issueId,r);rSb(k.editIssueService,k.issueId,l);return v()});L();M(3,"b-list-field",44);T(4,"async");T(5,
"async");T(6,"async")}if(a&2){var c,d,e;a=P();var f=P();I("readonly",!U(1,15,f.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",f.codeChangesValidator)("type",f.ListFieldType.CODE_CHANGES)("values",Dmb(a,f.sessionIsExternal))("listFieldDisabled",!!U(2,17,f.isSaving$(f.IssueFieldName.CHANGELISTS)));B(3);wg("bv2-issue-metadata-error",(c=U(4,19,f.pendingCodeChanges$))==null?null:c.hasError);I("readonly",!0)("defaultLineCount",3)("title","Pending Code Changes")("type",f.ListFieldType.CODE_CHANGES)("values",
((d=U(5,21,f.pendingCodeChanges$))==null?null:d.changes)||Hg(25,BRb))("tooltip",((e=U(6,23,f.pendingCodeChanges$))==null?0:e.hasError)?"Error fetching pending changelists":"Pending code changes (auto-populated)")}},uSb=function(a){if(a&1){var b=t();K(0,"b-list-field",71);T(1,"async");T(2,"async");N("valuesChange",function(d){u(b);var e=P(2);return v(tSb(e.editIssueService,e.issueId,d.values))});L()}if(a&2){a=P();var c=P();I("readonly",!U(1,7,c.hasAclToEdit$))("defaultLineCount",3)("title","Found In")("type",
c.ListFieldType.REPEATED_TEXT)("values",a.foundInVersion)("tooltip","Set the version(s) of the product affected by this issue")("listFieldDisabled",!!U(2,9,c.isSaving$(c.IssueFieldName.FOUND_IN_VERSION)))}},wSb=function(a){if(a&1){var b=t();K(0,"b-list-field",71);T(1,"async");T(2,"async");N("valuesChange",function(d){u(b);var e=P(2);return v(vSb(e.editIssueService,e.issueId,d.values))});L()}if(a&2){a=P();var c=P();I("readonly",!U(1,7,c.hasAclToEdit$))("defaultLineCount",3)("title","Targeted To")("type",
c.ListFieldType.REPEATED_TEXT)("values",a.targetedToVersion)("tooltip","Set the version(s) of the product in which the issue should be fixed")("listFieldDisabled",!!U(2,9,c.isSaving$(c.IssueFieldName.TARGETED_TO_VERSION)))}},ySb=function(a){if(a&1){var b=t();K(0,"b-list-field",71);T(1,"async");T(2,"async");N("valuesChange",function(d){u(b);var e=P(2);return v(xSb(e.editIssueService,e.issueId,d.values))});L()}if(a&2){a=P();var c=P();I("readonly",!U(1,7,c.hasAclToEdit$))("defaultLineCount",3)("title",
"Verified In")("type",c.ListFieldType.REPEATED_TEXT)("values",a.verifiedInVersion)("tooltip","Set the version(s) of the product in which the issue fix was verified")("listFieldDisabled",!!U(2,9,c.isSaving$(c.IssueFieldName.VERIFIED_IN_VERSION)))}},ASb=function(a){if(a&1){var b=t();K(0,"b-edit-field",72);T(1,"async");T(2,"async");N("valueChange",function(d){u(b);var e=P(2);return v(zSb(e.editIssueService,e.issueId,d!=null?d:!1))});L()}if(a&2){a=P();var c=P();I("name","inProd")("title","In Prod")("type",
c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!U(1,7,c.hasAclToEdit$))("disabled",!!U(2,9,c.isSaving$(c.IssueFieldName.IN_PROD)))}},BSb=function(a){a&1&&Wf(0)},CSb=function(a){a&1&&Wf(0)},DSb=function(a){a&1&&Wf(0)},ESb=function(a){a&1&&Wf(0)},FSb=function(a){a&1&&(K(0,"div",20),E(1,BSb,1,0,"ng-container",47)(2,CSb,1,0,"ng-container",47)(3,DSb,1,0,"ng-container",47)(4,ESb,1,0,"ng-container",47),L());if(a&2){P();a=qg(102);var b=qg(104),c=qg(106),
d=qg(108);B();I("ngTemplateOutlet",a);B();I("ngTemplateOutlet",b);B();I("ngTemplateOutlet",c);B();I("ngTemplateOutlet",d)}},HSb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",73);T(1,"async");T(2,"async");mma();N("save",function(e){var f=u(c).$implicit,g=P(2);return v(g.editIssueService.updateCustomField(g.issueId,f.customFieldId,e))});L()}if(a&2){a=b.$implicit;b=P();var d=P();I("issue",b);Cma(a);I("readonly",!U(1,5,d.hasAclToEdit$))("disabled",!!U(2,7,d.isSaving$(Ig(9,GSb,a.customFieldId))))}},
TSb=function(a,b){if(a&1){var c=t();F(0,xRb,1,1,"ng-container");T(1,"async");F(2,ARb,2,3);F(3,DRb,2,3);T(4,"async");K(5,"b-single-user-control",18);T(6,"async");N("valueChange",function(x){u(c);var C=P();return v(ISb(C,x))})("emailChange",function(x){u(c);var C=P();return v(JSb(C.editIssueService,C.issueId,x))});L();K(7,"b-edit-field",19,0);T(9,"async");T(10,"async");N("valueChange",function(x){u(c);var C=qg(8),H=P();return v(KSb(H,C,x!=null?x:""))});L();K(11,"div",20)(12,"b-edit-field",21,1);T(14,
"async");T(15,"async");N("onHotkey",function(){u(c);var x=qg(13);return v(Yr(x,null,!0,!1))})("valueChange",function(x){u(c);var C=P();return v(LSb(C.editIssueService,C.issueId,x!=null?x:""))});L();F(16,FRb,1,1,"ng-container");T(17,"async");L();K(18,"div",22)(19,"b-edit-field",23,2);T(21,"async");T(22,"async");T(23,"async");T(24,"async");N("onHotkey",function(){u(c);var x=qg(20);return v(Yr(x,null,!0,!1))})("valueChange",function(x){u(c);var C=P();return v(C.onStatusChanged(x!=null?x:""))});L();F(25,
HRb,2,3);T(26,"async");L();F(27,IRb,9,12,"div",24);T(28,"async");K(29,"onedev-hovercard",null,3);E(31,JRb,3,4,"b-issue-card",25);L();F(32,LRb,4,9,"b-estimated-effort-row",26);T(33,"async");K(34,"div",27)(35,"div",28)(36,"div",29)(37,"label");Q(38,"Access");L()();K(39,"div",30)(40,"span",31);Q(41);T(42,"async");L();K(43,"div",32);T(44,"async");T(45,"async");N("click",function(){u(c);var x=P();return v(x.toggleAccessLimits())})("keydown.enter",function(x){u(c);var C=P();return v(C.toggleAccessLimitsWithKeystroke(x))})("keydown.space",
function(x){u(c);var C=P();return v(C.toggleAccessLimitsWithKeystroke(x))});K(46,"span");Q(47);T(48,"async");L()()()();K(49,"onedev-hovercard",null,4)(51,"div",33)(52,"div",34)(53,"span",35);Q(54," Issue access level can only be set by Issue admins and it enables issue-level access control. ");K(55,"a",36);Q(56,"Learn more");L()()()()()();K(57,"div",37);T(58,"async");F(59,NRb,8,1,"div",38);T(60,"async");K(61,"b-single-user-control",39,5);T(63,"async");N("onHotkey",function(){u(c);var x=qg(62);return v(x.openEditor())})("valueChange",
function(x){u(c);var C=P();return v(MSb(C,x))})("emailChange",function(x){u(c);var C=P();return v(NSb(C.editIssueService,C.issueId,x))});L();F(64,QRb,2,3);T(65,"async");K(66,"b-single-user-control",40);T(67,"async");N("valueChange",function(x){u(c);var C=P();return v(OSb(C,x))})("emailChange",function(x){u(c);var C=P();return v(PSb(C.editIssueService,C.issueId,x))});L();Uf(68);K(69,"b-multi-user-control",41);T(70,"async");T(71,"async");T(72,"async");N("userInclusionToggle",function(){u(c);var x=P();
return v(x.toggleCollaborators())})("valueChange",function(x){u(c);var C=P();return v(QSb(C,x))})("toggleAccessLimits",function(){u(c);var x=P();return v(x.toggleAccessLimits())});L();K(73,"b-multi-user-control",42);T(74,"async");T(75,"async");T(76,"async");N("userInclusionToggle",function(){u(c);var x=P();return v(RSb(x))})("valueChange",function(x){u(c);var C=P();return v(SSb(C,x))});L();Vf();L();F(77,SRb,1,1,"ng-container");T(78,"async");F(79,URb,2,3);T(80,"async");F(81,VRb,3,7,"b-staffing-row",
43);F(82,WRb,1,6,"b-list-field",44);Of(83,YRb,2,4,"div",null,t()[15][8].trackCustomField,!0);T(85,"async");Of(86,ZRb,2,4,"div",null,t()[15][8].trackCustomField,!0);T(88,"async");F(89,aSb,1,1,"ng-container");T(90,"async");F(91,bSb,1,0,"hr",45);T(92,"async");F(93,lSb,13,18,"collapsible-panel",46);T(94,"async");E(95,nSb,1,1,"ng-template",null,6,Mg)(97,pSb,3,12,"ng-template",null,7,Mg)(99,sSb,7,26,"ng-template",null,8,Mg)(101,uSb,3,11,"ng-template",null,9,Mg)(103,wSb,3,11,"ng-template",null,10,Mg)(105,
ySb,3,11,"ng-template",null,11,Mg)(107,ASb,3,11,"ng-template",null,12,Mg)(109,FSb,5,4,"ng-template",null,13,Mg)(111,HSb,3,11,"ng-template",null,14,Mg)}if(a&2){var d,e;a=qg(30);var f=qg(50),g=P();G(g.showSloStatus&&U(1,97,g.isSloStatusPrimary$)?0:-1);B(2);G(g.sessionIsInternal?2:-1);B();G((d=U(4,99,g.teamWarningType$))?3:-1,d);B(2);var k;I("name","reporter")("title","Reporter")("value",b.reporter)("user",(k=b.reporterUser)!=null?k:void 0)("isSaving",U(6,101,g.isSaving$(g.IssueFieldName.REPORTER)));
B(2);I("name","type")("title","Type")("type",g.FieldType.ENUM)("value",b.type)("choices",g.typeChoices)("readonly",!U(9,103,g.hasAclToEdit$))("disabled",!!U(10,105,g.isSaving$(g.IssueFieldName.TYPE)));B(5);I("name","priority")("title","Priority")("type",g.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",b.priority)("choices",g.priorityChoices)("hotkey",g.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!U(14,107,g.hasAclToEdit$))("disabled",!!U(15,109,
g.isSaving$(g.IssueFieldName.PRIORITY)))("showHotkeyHint",!0);B(4);G(U(17,111,g.isSeverityPrimary$)?16:-1);B(3);var l;I("name","status")("title","Status")("type",g.FieldType.ENUM)("value",b.status)("choices",(l=U(21,113,g.statusChoices$))!=null?l:Hg(171,BRb))("showHotkeyHint",!0)("hotkey",g.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!U(22,115,g.hasAclToEdit$))("disabled",!!U(23,117,g.isSaving$(g.IssueFieldName.STATUS)))("onedevHovercardActive",!!U(24,119,g.canonicalIssueId$))("onedevHovercardTrigger",
a);B(6);G(U(26,121,g.hasAclToEdit$)?25:-1);B(2);G(U(28,123,g.showTriagePhaseRow$)?27:-1);B(5);G(U(33,125,g.isEffortEnabled$)?32:-1);B(3);I("onedevHovercardTrigger",f)("onedevHovercardActive",!0)("onedevHovercardConfig",g.ACCESS_LIMITS_HOVERCARD_CONFIG);B(6);yg(g.getAccessLimitLevelDisplay(U(42,127,g.accessLimitLevel$)));B(2);I("matTooltip",U(44,129,g.hasAclToAdmin$)?"Manage issue level access limits(Press Alt + Right arrow for more information)":"View issue level access limits(Press Alt + Right arrow for more information)");
Kf("aria-label",U(45,131,g.hasAclToAdmin$)?"Edit":"View");B(4);S(" ",U(48,133,g.hasAclToAdmin$)?"Edit":"View"," ");B(8);I("href",g.documentationLinks.getIssueAccessLimit(),Pe);B(2);wg("implicit-access-box",U(58,135,g.isImplicitAccessEnabled$));B(2);G(U(60,137,g.isImplicitAccessEnabled$)?59:-1);B(2);var r;I("name","assignee")("title","Assignee")("hotkey",g.HOTKEYS.CHANGE_ASSIGNEE)("value",b.assignee)("user",(r=b.assigneeUser)!=null?r:void 0)("isSaving",U(63,139,g.isSaving$(g.IssueFieldName.ASSIGNEE)));
B(3);G(g.defaultAssigneeQuickActionEnabled&&U(65,141,g.hasAclToEdit$)?64:-1);B(2);var w;I("name","verifier")("title","Verifier")("value",b.verifier)("user",(w=b.verifierUser)!=null?w:void 0)("isSaving",U(67,143,g.isSaving$(g.IssueFieldName.VERIFIER)));B(3);I("title","Collaborators")("values",b.collaborators)("users",b.collaboratorsUsers)("includeSelfActionDescription","Add me")("includeSelfActionLongDescription","Add yourself to collaborators")("removeSelfActionDescription","Remove me")("removeSelfActionLongDescription",
"Remove yourself from collaborators")("collectionHovercardDescription","Collaborators are people directly working on this issue.")("isSaving",U(70,145,g.isSaving$(g.IssueFieldName.COLLABORATORS)))("isCurrentUserInCollection",U(71,147,g.isCurrentUserCollaborator$))("isAllowedToEditCollection",U(72,149,g.hasAclToEdit$))("iconName","groups_24px")("inputValidator",g.collaboratorUserPrincipalValidator)("checkAccessLimits",!0);B(4);I("title","CC")("values",b.cc)("users",b.ccUsers)("includeSelfActionDescription",
"CC me")("includeSelfActionLongDescription","Add yourself to CC")("removeSelfActionDescription","Un-CC me")("removeSelfActionLongDescription","Remove yourself from CC")("collectionHovercardDescription","CC are users who want to receive updates.")("isSaving",U(74,151,g.isSaving$(g.IssueFieldName.CCS)))("isCurrentUserInCollection",U(75,153,g.isCurrentUserCCd$))("isAllowedToEditCollection",U(76,155,g.isAllowedToEditCC$))("inputValidator",g.emailsValidator)("iconName","add_alert_24px");B(4);G(U(78,157,
g.isChangelistPrimary$)?77:-1);B(2);G((e=U(80,159,g.workspaces$))?79:-1,e);B(2);G(g.sessionIsInternal?81:-1);B();G(!g.sessionIsExternal&&(b.postmortems==null?0:b.postmortems.length)?82:-1);B();Pf(U(85,161,g.visibleGlobalCustomFields$));B(3);Pf(U(88,163,g.visibleCustomFields$));B(3);G(U(90,165,g.isForgottenFourPrimary$)?89:-1);B(2);G(U(92,167,g.hasHiddenFields$)?91:-1);B(2);G(U(94,169,g.hasHiddenFields$)?93:-1)}},USb=function(a,b){if(a&1){var c=t();K(0,"a",18);N("click",function(){u(c);P().analytics.trackEvent("issueSidebar",
"navigate","issueDetailsPage");return v()});K(1,"span",19);Q(2,"Navigate to issue ");L();Q(3);L();K(4,"button",20);N("click",function(){var d=u(c),e=P();return v(e.copyIssueId(d))});M(5,"mat-icon",21);L()}a&2&&(I("href",Eg("/issues/",b),Pe),B(3),S(" ",b," "))},VSb=function(a,b){if(a&1){var c=t();K(0,"b-app-vote-button",22);N("onVote",function(d){u(c);var e=P();return v(e.upvoted(d))});L()}a&2&&I("issueId",b.issueId)("upvoted",!(b.userData==null||!b.userData.voted))("voteCount",(b.aggregatedData==
null?null:b.aggregatedData.voteCount)||0)},XSb=function(a){if(a&1){var b=t();K(0,"span");Q(1);L();K(2,"button",24);N("click",function(){u(b);var c=P(2);return v(WSb(c))});M(3,"mat-icon",25);L()}a&2&&(a=P(),Kf("title",a.snapshot[0].title),B(),S(" ",a.snapshot[0].title," "))},ZSb=function(a){if(a&1){var b=t();K(0,"button",31);N("click",function(){u(b);var c=P(3);return v(YSb(c))});Q(1,"Cancel");L()}},$Sb=function(a){a&1&&Q(0," Update title ")},aTb=function(a){a&1&&Wf(0)},bTb=function(a){a&1&&E(0,aTb,
1,0,"ng-container",32);a&2&&(P(3),a=qg(23),I("ngTemplateOutlet",a))},cTb=function(a){if(a&1){var b=t();K(0,"mat-form-field",26)(1,"textarea",27);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.draftTitle,c)||(d.draftTitle=c);return v(c)});L()();K(2,"div",28);F(3,ZSb,2,0,"button",29);K(4,"button",30);N("click",function(){u(b);var c=P(2);return v(c.saveTitle())});F(5,$Sb,1,0)(6,bTb,1,1,"ng-container");L()()}a&2&&(a=P(2),B(),I("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1),Ag("ngModel",a.draftTitle),
I("bFocus",!0),B(2),G(a.isSavingTitle?-1:3),B(),I("disabled",a.isSavingTitle),B(),G(a.isSavingTitle?6:5))},dTb=function(a){a&1&&(K(0,"div",15)(1,"div",23),F(2,XSb,4,2),F(3,cTb,7,7),L()());a&2&&(a=P(),B(2),G(a.editTitleMode?-1:2),B(),G(a.editTitleMode?3:-1))},eTb=function(a){a&1&&(K(0,"span"),Q(1," No update yet "),L())},fTb=function(a){if(a&1){var b=t();K(0,"button",49);N("click",function(){u(b);var c=P(2);return v(c.editStatusUpdate())});M(1,"mat-icon",25);L()}},gTb=function(a){a&1&&M(0,"mat-icon",
46)},hTb=function(a){a&1&&M(0,"mat-icon",47)},iTb=function(a){if(a&1){var b=t();K(0,"button",50);N("click",function(){u(b);var c=P(2);return v(c.isStatusUpdateExpanded=!c.isStatusUpdateExpanded)});F(1,gTb,1,0,"mat-icon",46);F(2,hTb,1,0,"mat-icon",47);L()}a&2&&(a=P(2),Kf("aria-expanded",a.isStatusUpdateExpanded),B(),G(a.isStatusUpdateExpanded?-1:1),B(),G(a.isStatusUpdateExpanded?2:-1))},jTb=function(a,b){a&1&&(M(0,"b-note-container",52),T(1,"async"));if(a&2){a=P();var c=P(),d=P(2);I("issueId",b)("note",
c)("issueAccessLevel",U(1,4,d.accessLevel$))("formattingMode",a.formattingMode)}},kTb=function(a){a&1&&(K(0,"div",51),F(1,jTb,2,6,"b-note-container",52),T(2,"async"),L());if(a&2){var b;a=P();var c=P(2);B();G((b=a.unlinkifiedComment!==""&&U(2,1,c.issueId$))?1:-1,b)}},lTb=function(a){a&1&&(F(0,kTb,3,3,"div",51),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.statusUpdate$))?0:-1,b)}},mTb=function(a){a&1&&(K(0,"span"),Q(1," No description yet "),L())},oTb=function(a){if(a&1){var b=t();K(0,"button",56);
N("click",function(){u(b);var c=P(3);return v(nTb(c))});M(1,"mat-icon",25);L()}},pTb=function(a){a&1&&M(0,"mat-icon",46)},qTb=function(a){a&1&&M(0,"mat-icon",47)},rTb=function(a){if(a&1){var b=t();K(0,"button",57);N("click",function(){u(b);var c=P(3);return v(c.isDescriptionExpanded=!c.isDescriptionExpanded)});F(1,pTb,1,0,"mat-icon",46);F(2,qTb,1,0,"mat-icon",47);L()}a&2&&(a=P(3),Kf("aria-expanded",a.isDescriptionExpanded),B(),G(a.isDescriptionExpanded?-1:1),B(),G(a.isDescriptionExpanded?2:-1))},
sTb=function(a,b){a&1&&(M(0,"b-note-container",52),T(1,"async"));if(a&2){a=P();var c=P(2),d=P(2),e;I("issueId",b)("note",a)("issueAccessLevel",U(1,4,d.accessLevel$))("formattingMode",(e=c[0].formattingMode)!=null?e:d.FormattingMode.PLAIN)}},tTb=function(a){if(a&1){var b=t();K(0,"div",59)(1,"a",60);N("click",function(){u(b);var c=P(5);c.analytics.trackEvent("issueSidebar","showMoreDescription");c.showFullDescription=!0;return v()});Q(2," Show more ");L()()}},uTb=function(a){a&1&&(K(0,"div",58),F(1,
sTb,2,6,"b-note-container",52),T(2,"async"),T(3,"async"),L(),F(4,tTb,3,0,"div",59));if(a&2){var b;a=P(4);wg("full-height",a.showFullDescription);B();G((b=U(2,4,a.hasDescription$)&&U(3,6,a.issueId$))?1:-1,b);B(3);G(!a.showFullDescription&&a.descriptionHasMore?4:-1)}},vTb=function(a){a&1&&(K(0,"div",55,3),F(2,uTb,5,8),T(3,"async"),T(4,"async"),L());if(a&2){var b;a=P(3);B(2);G((b=U(3,1,a.hasDescription$)&&U(4,3,a.firstNote$))?2:-1,b)}},wTb=function(a){a&1&&(K(0,"div",41)(1,"div",35)(2,"div",36)(3,"span"),
Q(4,"DESCRIPTION"),L()(),K(5,"div",38),F(6,mTb,2,0,"span"),T(7,"async"),F(8,oTb,2,0,"button",53),T(9,"async"),T(10,"async"),F(11,rTb,3,3,"button",54),T(12,"async"),L()(),F(13,vTb,5,5,"div",55),L());a&2&&(a=P(2),B(6),G(U(7,4,a.hasDescription$)?-1:6),B(2),G(!a.isDescriptionExpanded&&U(9,6,a.hasDescription$)||!U(10,8,a.userCanEditDescription$)?-1:8),B(3),G(U(12,10,a.hasDescription$)?11:-1),B(2),G(a.isDescriptionExpanded?13:-1))},xTb=function(a){a&1&&Wf(0)},yTb=function(a){a&1&&E(0,xTb,1,0,"ng-container",
32);a&2&&(P(2),a=qg(23),I("ngTemplateOutlet",a))},zTb=function(a){a&1&&Q(0," 1 suggestion available ")},ATb=function(a){a&1&&Q(0," 2 suggestions available ")},BTb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=bg(26),B(),I("recommendation",a)("showTitle",!0))},CTb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=bg(23),B(),I("recommendation",a)("showTitle",!0))},DTb=function(a){a&1&&(K(0,"div",42)(1,"div",35)(2,"div",36),M(3,"mat-icon",61),
K(4,"span"),Q(5," AI SUGGESTIONS "),L()(),K(6,"div",38),F(7,zTb,1,0)(8,ATb,1,0),L()(),F(9,BTb,2,2,"div",62),F(10,CTb,2,2,"div",62),L());if(a&2){P();a=bg(25);var b=bg(26);B(7);G(a&&b?8:7);B(2);G(b?9:-1);B();G(a?10:-1)}},ETb=function(a){a&1&&M(0,"mat-icon",46)},FTb=function(a){a&1&&M(0,"mat-icon",47)},GTb=function(a){a&1&&(K(0,"div",48),M(1,"edit-issue-metadata",64),L());a&2&&(a=P(),B(),I("issueId",a.issueId))},HTb=function(a){if(a&1){var b=t();K(0,"div",17);M(1,"b-insights-enrichments",33,2);T(3,"async");
K(4,"div",34)(5,"div",35)(6,"div",36);M(7,"mat-icon",37);K(8,"span");Q(9," STATUS UPDATE ");L()();K(10,"div",38);F(11,eTb,2,0,"span");T(12,"async");F(13,fTb,2,0,"button",39);T(14,"async");T(15,"async");F(16,iTb,3,3,"button",40);T(17,"async");L()();F(18,lTb,2,3);T(19,"async");L();F(20,wTb,14,12,"div",41);T(21,"async");Lf(22,yTb,1,1,"ng-container");$f(23);T(24,"async");$f(25)(26);T(27,"async");F(28,DTb,11,3,"div",42);K(29,"div",43)(30,"div",35)(31,"div",36);M(32,"mat-icon",44);K(33,"span");Q(34,"FIELDS");
L()();K(35,"button",45);N("click",function(){u(b);var f=P();return v(f.isFieldsExpanded=!f.isFieldsExpanded)});F(36,ETb,1,0,"mat-icon",46);F(37,FTb,1,0,"mat-icon",47);L()();F(38,GTb,2,1,"div",48);L()()}if(a&2){var c,d,e=qg(2);a=P();B();wg("hidden",!U(3,13,e.shouldShowInsights$));I("initiallyCollapsed",!0);B(10);G(U(12,15,a.hasStatusUpdate$)?-1:11);B(2);G(!a.isStatusUpdateExpanded&&U(14,17,a.hasStatusUpdate$)||!U(15,19,a.userCanEditStatusUpdate$)?-1:13);B(3);G(U(17,21,a.hasStatusUpdate$)?16:-1);B(2);
G((c=a.isStatusUpdateExpanded&&U(19,23,a.statusUpdateNote$))?18:-1,c);B(2);G((d=U(21,25,a.events$))?20:22,d);B(3);c=ag(U(24,27,a.playbookRecommendation$));B(2);c=ag(a.isPlaybookEnabled&&!!c);B();d=ag(U(27,31,a.dedupeRecommendation$));B(2);G(c||d?28:-1);B(7);Kf("aria-expanded",a.isFieldsExpanded);B();G(a.isFieldsExpanded?-1:36);B();G(a.isFieldsExpanded?37:-1);B();G(a.isFieldsExpanded?38:-1)}},ITb=function(a){a&1&&Wf(0)},JTb=function(a){a&1&&E(0,ITb,1,0,"ng-container",32);a&2&&(P(),a=qg(23),I("ngTemplateOutlet",
a))},KTb=function(a){a&1&&(K(0,"div",65),M(1,"b-spinner"),L())},LTb=function(a){a&1&&(Q(0," This issue has not been modified since "),M(1,"b-formatted-date-time",1),Q(2," and is scheduled for deletion on "),K(3,"strong"),M(4,"b-formatted-date-time",1),L(),Q(5,". "));a&2&&(a=P(2),B(),I("mode","date")("timestamp",a.modifiedTime)("paddingLeftPx",0),B(3),I("mode","date")("timestamp",a.retentionExpireTime)("paddingLeftPx",0))},MTb=function(a){a&1&&Q(0," This issue is retained indefinitely. ")},NTb=function(a){a&
1&&(F(0,LTb,6,6)(1,MTb,1,0),K(2,"a",0),Q(3,"Learn more"),L());a&2&&(a=P(),G(a.retentionState.retentionPeriod?0:1),B(2),I("href",a.documentationLink,Pe))},OTb=function(a){a&1&&(K(0,"b-base-chip",0)(1,"div",1),M(2,"retention-text",2),L(),K(3,"div",3),M(4,"retention-help-text",4),L()());a&2&&(a=P(),I("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),B(2),I("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),I("retentionState",
a.retentionState)("modifiedTime",a.modifiedTime))},PTb=function(a){var b=b===void 0?new Date:b;var c=a.retentionPeriod;return b.getTime()>=ao(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?c.seconds*1E3+(c.nanos||0)/1E6:0))},STb=function(a){if(a&1){var b=t();K(0,"issue-sidebar",10);N("closeSidebar",function(){u(b);var d=P(2);return v(d.isIssueSidebarOpen=!1)})("navigateToNextIssue",function(){u(b);var d=P(2);return v(QTb(d))})("navigateToPreviousIssue",function(){u(b);var d=P(2);return v(RTb(d))});
L()}if(a&2){var c;a=P(2);I("issueId",(c=a.getFocusedIssue())==null?null:c.issueId)}},TTb=function(a){a&1&&Wf(0)},UTb=function(a){if(a&1){var b=t();K(0,"mat-sidenav-container",6,2)(2,"mat-sidenav",7);N("openedChange",function(d){u(b);P().anayltics.trackEvent("issueSidebar",d?"open":"close");return v()});F(3,STb,1,1,"issue-sidebar",8);L();K(4,"mat-sidenav-content");E(5,TTb,1,0,"ng-container",9);L()()}if(a&2){a=P();var c=qg(4);wg("sidebar-enabled",a.isIssueSidebarEnabled);B(2);I("opened",a.isIssueSidebarOpen)("disableClose",
!0);B();G(a.isIssueSidebarOpen?3:-1);B(2);I("ngTemplateOutlet",c)}},VTb=function(a){a&1&&Wf(0)},WTb=function(a){a&1&&E(0,VTb,1,0,"ng-container",9);a&2&&(P(),a=qg(4),I("ngTemplateOutlet",a))},XTb=function(a,b){a&1&&M(0,"th",32);a&2&&Kf("data-stable-column-name",b.column.name)},YTb=function(a,b){a&1&&M(0,"th",33);a&2&&Kf("data-stable-column-name",b.column.name)},bUb=function(a){if(a&1){var b=t();K(0,"mat-pseudo-checkbox",36);N("click",function(c){u(b);var d=P(3);c.stopPropagation();return v(ZTb(d))})("keydown.enter",
function(c){u(b);var d=P(3);c.stopPropagation();return v(ZTb(d))})("keydown.space",function(c){u(b);var d=P(3);c.stopPropagation();return v(ZTb(d))});L()}a&2&&(a=P(3),I("state",$Tb(a)),Kf("aria-checked",aUb(a)))},cUb=function(a,b){a&1&&(K(0,"th",34),F(1,bUb,1,2,"mat-pseudo-checkbox",35),L());a&2&&(a=b.column,b=P(2),Kf("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},dUb=function(a,b){a&1&&M(0,"th");a&2&&Kf("data-stable-column-name",b.column.name)},eUb=function(a){a&1&&M(0,"pop-grid-default-th",
37);a&2&&(a=P().column,I("column",a))},fUb=function(a,b){a&1&&(K(0,"th"),F(1,eUb,1,1,"pop-grid-default-th",37),L());a&2&&(a=b.column,b=P(2),Kf("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},gUb=function(a){if(a&1){var b=t();K(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 v()});L()}if(a&2){a=P(2).column;var c=P(2);I("column",a)("availableColumns",c.availableColumns)("selectedColumns",
c.columns)}},hUb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P(2).column,I("column",a))},iUb=function(a){a&1&&F(0,gUb,1,3,"b-column-picker",38)(1,hUb,1,1,"pop-grid-default-th",37);a&2&&(a=P(3),G(a.enableColumnSaving?0:1))},jUb=function(a,b){a&1&&(K(0,"th"),F(1,iUb,2,1),L());a&2&&(a=b.column,b=P(2),Kf("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},kUb=function(a){a&1&&M(0,"td",32)},lUb=function(a){a&1&&M(0,"td",40)},mUb=function(a){if(a&1){var b=t();K(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 g=d+1;var k=f.lastCheckedIndex+1}else g=f.lastCheckedIndex,k=d;g=m(f.searchResults.issues.slice(g,k));for(k=g.next();!k.done;k=g.next())k.value.selected=!c;Ut(f)}e.selected=!e.selected;f.lastCheckedIndex=d;Ut(f);return v()});L()}a&2&&(a=P().row,I("state",a.selected?"checked":"unchecked"),Kf("aria-label","Select issue "+
a.issueId)("aria-checked",a.selected))},nUb=function(a){a&1&&(K(0,"td",34),F(1,mUb,1,3,"mat-pseudo-checkbox",41),L());a&2&&(P(2),B(),G(1))},oUb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",45);N("starClicked",function(){u(b);var d=P().row,e=P(2);return v(e.toggleStar(d))});L()}if(a&2){a=P().row;var c=P(2);I("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},pUb=function(a){a&1&&(K(0,"td",43),F(1,oUb,1,4,"b-star-toggle",
44),L());a&2&&(P(2),B(),G(1))},qUb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().row,Kf("title",a.position),B(),S(" ",a.position," "))},rUb=function(a){a&1&&(K(0,"td"),F(1,qUb,2,2,"span"),L());a&2&&(P(2),B(),G(1))},sUb=function(a){if(a&1){var b=t();K(0,"b-issue-id-picker",49);N("click",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(a=P(2).row,I("issueId",a.issueId)("showCopyOptions",!1),Kf("title",a.title))},tUb=function(a){a&1&&(K(0,"a",48),Q(1),L());a&2&&(a=P(2).row,P(2),I("href",
rs(a.issueId),Pe),Kf("title",a.title),B(),S(" ",a.issueId," "))},uUb=function(a){a&1&&F(0,sUb,1,3,"b-issue-id-picker",47)(1,tUb,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))},vUb=function(a){a&1&&(K(0,"td",46),F(1,uUb,2,1),L());a&2&&(P(2),B(),G(1))},wUb=function(a){a&1&&M(0,"archived-issue-indicator")},xUb=function(a){a&1&&M(0,"mat-icon",58)},yUb=function(a,b){a&1&&M(0,"b-hotlist-chip-smart",61);a&2&&
I("id",b.$implicit)("removable",!1)},zUb=function(a){a&1&&(K(0,"div",59),Of(1,yUb,1,2,"b-hotlist-chip-smart",61,Nf),L());a&2&&(a=P(2).row,B(),Pf(a.hotlistId))},BUb=function(a){if(a&1){var b=t();K(0,"recommendation-chip",64);N("onClick",function(){u(b);var e=P(6);AUb(e);return v()});L()}if(a&2){P();a=bg(0);var c=P(3).index,d=P(2);I("recommendation",a)("isParentRowActive",d.hoveredRowIndex===c||d.focusedRowIndex===c&&d.isIssueSidebarOpen)}},CUb=function(a){a&1&&($f(0),F(1,BUb,1,2,"recommendation-chip",
63));if(a&2){a=P(3).row;P();var b=bg(1);a=ag(b.get(a.issueId));B();G(a?1:-1)}},DUb=function(a){if(a&1){var b=t();K(0,"b-sidebar-toggle",65);N("onClick",function(){u(b);var d=P(5);return v(AUb(d))});L()}if(a&2){a=P(3).index;var c=P(2);I("isParentRowActive",c.hoveredRowIndex===a||c.focusedRowIndex===a&&c.isIssueSidebarOpen)}},EUb=function(a){a&1&&(K(0,"div",60),F(1,CUb,2,2),T(2,"async"),F(3,DUb,1,1,"b-sidebar-toggle",62),L());if(a&2){P(3);a=bg(1);var b=P();B();G(b.isPlaybookEnabled&&a&&U(2,2,b.hasPlaybook$)?
1:-1);B(2);G(b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled?3:-1)}},FUb=function(a){a&1&&(K(0,"div",52),F(1,wUb,1,0,"archived-issue-indicator"),M(2,"b-issue-visibility-chip",53)(3,"b-tracker-chip-smart",54)(4,"b-retention-chip",55),K(5,"div",56)(6,"a",57),Q(7),F(8,xUb,1,0,"mat-icon",58),L()(),F(9,zUb,3,0,"div",59),F(10,EUb,4,4,"div",60),L());if(a&2){a=P().row;var b=P(2);wg("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles)("no-padding",b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled)("align-items-center",
b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled);B();G(a.archived?1:-1);B();I("issueId",a.issueId)("compactMode",!0);B();I("trackerId",a.trackerId)("compactMode",!0);B();I("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);I("href",rs(a.issueId),Pe);Kf("title",a.title);B();S(" ",a.title," ");B();G(b.isIssueSidebarEnabled&&!b.isSidebarIlpIconEnabled?8:-1);B();G(b.listViewPrefs&&b.listViewPrefs.showHotlists?9:-1);B();G(b.isPlaybookEnabled||
b.isIssueSidebarEnabled&&b.isSidebarIlpIconEnabled?10:-1)}},GUb=function(a){a&1&&(K(0,"td",50),F(1,FUb,11,21,"div",51),L());a&2&&(a=P(2),wg("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles)("bv2-grid-cell-recommendation",a.isPlaybookEnabled),B(),G(1))},HUb=function(a){a&1&&(K(0,"div",68),Q(1),L());a&2&&(a=P().row,P(2),wg("low",Number(a.priority)>=2)("high",Number(a.priority)<2)("p0",Number(a.priority)===0),B(),S(" P",a.priority," "))},IUb=function(a){a&1&&(K(0,"td",66),
F(1,HUb,2,7,"div",67),L());a&2&&(P(2),B(),G(1))},JUb=function(a){a&1&&(K(0,"div",68),Q(1),L());a&2&&(a=P().row,P(2),wg("low",Number(a.severity)>=2)("high",Number(a.severity)<2)("p0",Number(a.severity)===0),B(),S(" S",a.severity," "))},KUb=function(a){a&1&&(K(0,"td",69),F(1,JUb,2,7,"div",67),L());a&2&&(P(2),B(),G(1))},LUb=function(a){a&1&&M(0,"mat-icon",72);if(a&2){a=P();var b=P(4),c;I("svgIcon",(c=b.ISSUE_STATUS_JS_ICON_NAME.get(a))!=null?c:"")}},MUb=function(a){a&1&&Q(0);if(a&2){a=P();var b=P(4),
c;S(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},NUb=function(a){a&1&&(K(0,"span"),Q(1),L());if(a&2){a=P();var b=P(4);xg(Eg("chippy status-",a," margin-left-auto"));B();var c;S(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},OUb=function(a,b){a&1&&(K(0,"span",71),F(1,LUb,1,1,"mat-icon",72)(2,MUb,1,1)(3,NUb,2,4,"span",73),L());if(a&2){var c;a=P(4);var d,e,f;I("title",((d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"")===((e=a.STATUS_JS_TERSE.get(b))!=null?e:"")?"":(f=a.STATUS_JS_FULL_TEXT.get(b))!=
null?f:"");B();G((c=a.listViewPrefs==null?null:a.listViewPrefs.fieldStatus==null?null:a.listViewPrefs.fieldStatus.mode)==="icon"?1:c==="plain"?2:3)}},PUb=function(a){a&1&&F(0,OUb,4,2,"span",71);if(a&2){var b;a=P().row;G((b=a.status)?0:-1,b)}},QUb=function(a){a&1&&(K(0,"td",70),F(1,PUb,1,1),L());a&2&&(P(2),B(),G(1))},RUb=function(a){a&1&&(Q(0),T(1,"enumToHuman"));a&2&&(a=P().row,S(" ",U(1,1,a.type)," "))},SUb=function(a){a&1&&(K(0,"td",74),F(1,RUb,2,3),L());a&2&&(P(2),B(),G(1))},TUb=function(a){a&
1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",U(1,2,a.reporter)),B(2),S(" ",a.reporter," "))},UUb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},VUb=function(a){a&1&&(F(0,TUb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,UUb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.reporter)?0:-1),B(2),G(a.reporter?-1:2))},WUb=function(a){a&1&&(K(0,"td",75),F(1,VUb,3,4),L());a&2&&(P(2),B(),G(1))},XUb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),
Q(2),L());a&2&&(a=P(2).row,I("email",U(1,2,a.assignee)),B(2),S(" ",a.assignee," "))},YUb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},ZUb=function(a){a&1&&(F(0,XUb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,YUb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.assignee)?0:-1),B(2),G(a.assignee?-1:2))},$Ub=function(a){a&1&&(K(0,"td",75),F(1,ZUb,3,4),L());a&2&&(P(2),B(),G(1))},aVb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",U(1,
2,a.verifier)),B(2),S(" ",a.verifier," "))},bVb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},cVb=function(a){a&1&&(F(0,aVb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,bVb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.verifier)?0:-1),B(2),G(a.verifier?-1:2))},dVb=function(a){a&1&&(K(0,"td",75),F(1,cVb,3,4),L());a&2&&(P(2),B(),G(1))},eVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,Kf("title",U(1,2,a.cc)),B(2),S(" ",U(3,4,a.cc)," "))},fVb=
function(a){a&1&&(K(0,"td",75),F(1,eVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},gVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,Kf("title",U(1,2,a.changelist)),B(2),S(" ",U(3,4,a.changelist)," "))},hVb=function(a){a&1&&(K(0,"td",75),F(1,gVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},iVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,Kf("title",U(1,2,a.postmortem)),B(2),S(" ",U(3,4,a.postmortem)," "))},jVb=
function(a){a&1&&(K(0,"td",75),F(1,iVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},kVb=function(a){a&1&&Wf(0)},lVb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},nVb=function(a,b){a&1&&(E(0,kVb,1,0,"ng-container",77),F(1,lVb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=qg(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(3,mVb,a));B();G(c!==b-1?1:-1)}},oVb=function(a){a&1&&Of(0,nVb,2,5,null,null,Nf);a&2&&(a=P().row,Pf(a.blockingIssueId))},pVb=function(a){a&1&&(K(0,"td",
75),F(1,oVb,2,0),L());a&2&&(P(2),B(),G(1))},qVb=function(a){a&1&&Wf(0)},rVb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},sVb=function(a,b){a&1&&(E(0,qVb,1,0,"ng-container",77),F(1,rVb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=qg(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(3,mVb,a));B();G(c!==b-1?1:-1)}},tVb=function(a){a&1&&Of(0,sVb,2,5,null,null,Nf);a&2&&(a=P().row,Pf(a.blockedByIssueId))},uVb=function(a){a&1&&(K(0,"td",75),F(1,tVb,2,0),L());a&2&&(P(2),
B(),G(1))},vVb=function(a){a&1&&Wf(0)},wVb=function(a){a&1&&E(0,vVb,1,0,"ng-container",77);if(a&2){a=P(2).row;P(2);var b=qg(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,mVb,a.duplicateOfIssueId))}},xVb=function(a){a&1&&F(0,wVb,1,4,"ng-container");a&2&&(a=P().row,G(a.duplicateOfIssueId?0:-1))},yVb=function(a){a&1&&(K(0,"td",75),F(1,xVb,1,1),L());a&2&&(P(2),B(),G(1))},zVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.createdTime))},AVb=function(a){a&1&&
(K(0,"td",78),F(1,zVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},BVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.modifiedTime))},CVb=function(a){a&1&&(K(0,"td",78),F(1,BVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},DVb=function(a){a&1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.resolvedTime))},EVb=function(a){a&1&&(K(0,"td",78),F(1,DVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},FVb=function(a){a&
1&&M(0,"b-formatted-date-time",79);a&2&&(a=P().row,I("timestamp",a.verifiedTime))},GVb=function(a){a&1&&(K(0,"td",78),F(1,FVb,1,1,"b-formatted-date-time",79),L());a&2&&(P(2),B(),G(1))},HVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,Kf("title",U(1,2,a.foundInVersion)),B(2),S(" ",U(3,4,a.foundInVersion)," "))},IVb=function(a){a&1&&(K(0,"td",75),F(1,HVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},JVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),
T(3,"arrayToHuman"),L());a&2&&(a=P().row,Kf("title",U(1,2,a.targetedToVersion)),B(2),S(" ",U(3,4,a.targetedToVersion)," "))},KVb=function(a){a&1&&(K(0,"td",75),F(1,JVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},LVb=function(a){a&1&&(K(0,"span"),T(1,"arrayToHuman"),Q(2),T(3,"arrayToHuman"),L());a&2&&(a=P().row,Kf("title",U(1,2,a.verifiedInVersion)),B(2),S(" ",U(3,4,a.verifiedInVersion)," "))},MVb=function(a){a&1&&(K(0,"td",75),F(1,LVb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},NVb=function(a){a&1&&(Q(0),T(1,
"yesNo"));a&2&&(a=P().row,S(" ",U(1,1,a.inProd)," "))},OVb=function(a){a&1&&(K(0,"td",75),F(1,NVb,2,3),L());a&2&&(P(2),B(),G(1))},PVb=function(a){a&1&&(Q(0),T(1,"yesNo"));a&2&&(a=P().row,S(" ",U(1,1,a.archived)," "))},QVb=function(a){a&1&&(K(0,"td",75),F(1,PVb,2,3),L());a&2&&(P(2),B(),G(1))},RVb=function(a){a&1&&(K(0,"div",52)(1,"div",56)(2,"span"),Q(3),L()()());if(a&2){a=P().row;var b=P(2);B(2);Kf("title",b.getComponentPath(a.componentPath));B();yg(b.getComponentPath(a.componentPath))}},SVb=function(a){a&
1&&(K(0,"td",80),F(1,RVb,4,2,"div",52),L());if(a&2){var b=P(2);a=wg("bv2-grid-cell-variable-height",b.listViewPrefs&&b.listViewPrefs.wrapComponents);var c;b=!((c=b.listViewPrefs)==null||!c.rtlComponentPath);a("rtl-component-path",b);B();G(1)}},TVb=function(a){a&1&&(K(0,"slo-status-card",82),M(1,"b-aggregated-slo-status-indicator",83),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime),B(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime))},UVb=
function(a){a&1&&F(0,TVb,2,5,"slo-status-card",82);a&2&&(a=P().row,G(a.sloStatus?0:-1))},VVb=function(a){a&1&&(K(0,"td",81),F(1,UVb,1,1),L());a&2&&(P(2),B(),G(1))},WVb=function(a){a&1&&(K(0,"slo-status-card",84),M(1,"b-slo-time-indicator",85),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","RESPONSE"),B(),I("sloBounds",a.sloStatus.responseBounds))},XVb=function(a){a&1&&F(0,WVb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?
0:-1))},YVb=function(a){a&1&&(K(0,"td",81),F(1,XVb,1,1),L());a&2&&(P(2),B(),G(1))},ZVb=function(a){a&1&&(K(0,"slo-status-card",84),M(1,"b-slo-time-indicator",85),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","ASSIGNMENT"),B(),I("sloBounds",a.sloStatus.assignmentBounds))},$Vb=function(a){a&1&&F(0,ZVb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},aWb=function(a){a&1&&(K(0,"td",81),F(1,$Vb,1,1),L());a&2&&(P(2),B(),
G(1))},bWb=function(a){a&1&&(K(0,"slo-status-card",84),M(1,"b-slo-time-indicator",85),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","CLOSURE"),B(),I("sloBounds",a.sloStatus.closureBounds))},cWb=function(a){a&1&&F(0,bWb,2,5,"slo-status-card",84);a&2&&(a=P().row,G(a.sloStatus?0:-1))},dWb=function(a){a&1&&(K(0,"td",81),F(1,cWb,1,1),L());a&2&&(P(2),B(),G(1))},eWb=function(a,b){a&1&&M(0,"b-formatted-date-time",86);a&2&&(P(4),I("timestamp",
b.seconds*1E3))},fWb=function(a){a&1&&F(0,eWb,1,1,"b-formatted-date-time",86);if(a&2){var b;a=P().row;G((b=a.retentionState==null?null:a.retentionState.scheduledDeletionTime)?0:-1,b)}},gWb=function(a){a&1&&(K(0,"td",75),F(1,fWb,1,1),L());a&2&&(P(2),B(),G(1))},hWb=function(a){a&1&&M(0,"div",87)},iWb=function(a){a&1&&(K(0,"div"),M(1,"b-team-display",88),L());a&2&&(a=P(2).row,B(),I("teamId",a.teamId.toString())("componentId",a.componentId)("anchorLinkEnabled",!1))},jWb=function(a){a&1&&F(0,hWb,1,0,"div",
87)(1,iWb,2,3,"div");a&2&&(a=P(3),G(a.isLoadingTeams?0:1))},kWb=function(a){a&1&&(K(0,"td",75),F(1,jWb,2,1),L());a&2&&(P(2),B(),G(1))},lWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.effort==null?null:a.effort.estimate," "))},mWb=function(a){a&1&&(K(0,"td",75),F(1,lWb,1,1),L());a&2&&(P(2),B(),G(1))},nWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",(a.effort==null?null:a.effort.totalOpen)||""," "))},oWb=function(a){a&1&&(K(0,"td",75),F(1,nWb,1,1),L());a&2&&(P(2),B(),G(1))},pWb=function(a){a&1&&Q(0);
a&2&&(a=P().row,S(" ",(a.effort==null?null:a.effort.totalComplete)||""," "))},qWb=function(a){a&1&&(K(0,"td",75),F(1,pWb,1,1),L());a&2&&(P(2),B(),G(1))},rWb=function(a){a&1&&Q(0);if(a&2){a=P().row;var b=P(2);S(" ",b.GET_ISSUE_ACCESS_LEVEL_TITLE(a.issueAccessLevel)," ")}},sWb=function(a){a&1&&(K(0,"td",81),F(1,rWb,1,1),L());a&2&&(P(2),B(),G(1))},tWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.descendantCount," "))},uWb=function(a){a&1&&(K(0,"td",75),F(1,tWb,1,1),L());a&2&&(P(2),B(),G(1))},vWb=function(a){a&
1&&Q(0);a&2&&(a=P().row,S(" ",a.openDescendantCount," "))},wWb=function(a){a&1&&(K(0,"td",75),F(1,vWb,1,1),L());a&2&&(P(2),B(),G(1))},xWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.oneDayViewCount," "))},yWb=function(a){a&1&&(K(0,"td",75),F(1,xWb,1,1),L());a&2&&(P(2),B(),G(1))},zWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.sevenDayViewCount," "))},AWb=function(a){a&1&&(K(0,"td",75),F(1,zWb,1,1),L());a&2&&(P(2),B(),G(1))},BWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.thirtyDayViewCount,
" "))},CWb=function(a){a&1&&(K(0,"td",75),F(1,BWb,1,1),L());a&2&&(P(2),B(),G(1))},DWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.voteCount&&a.voteCount>0?a.voteCount:""," "))},EWb=function(a){a&1&&(K(0,"td",75),F(1,DWb,1,1),L());a&2&&(P(2),B(),G(1))},FWb=function(a){a&1&&Q(0);a&2&&(a=P().row,S(" ",a.position," "))},GWb=function(a){a&1&&(K(0,"td",75),F(1,FWb,1,1),L());a&2&&(P(2),B(),G(1))},HWb=function(a){a&1&&(K(0,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),Q(2),L());a&2&&(a=P(2).row,I("email",
U(1,2,a.escalationOwner)),B(2),S(" ",a.escalationOwner," "))},IWb=function(a){a&1&&(K(0,"span"),Q(1,"--"),L())},JWb=function(a){a&1&&(F(0,HWb,3,4,"b-person-hovercard",76),T(1,"omitObfuscatedEmail"),F(2,IWb,2,0,"span"));a&2&&(a=P().row,G(U(1,2,a.escalationOwner)?0:-1),B(2),G(a.escalationOwner?-1:2))},KWb=function(a){a&1&&(K(0,"td",75),F(1,JWb,3,4),L());a&2&&(P(2),B(),G(1))},MWb=function(a){if(a&1){var b=t();K(0,"pop-grid",11);N("columnsChange",function(c){u(b);var d=P();d.columns=c;d.columnsChange.emit(c);
d.cdr.detectChanges();return v()})("focusedRowIndexChange",function(c){u(b);var d=P();d.focusedRowIndex=c;return v(d.focusedRowIndexChange.emit(d.focusedRowIndex))})("hoveredRowIndex",function(c){u(b);P().hoveredRowIndex=c;return v()})("sortChange",function(c){u(b);var d=P();return v(d.sortChange.emit(c))})("rowClick",function(c){u(b);var d=P(),e=c.event.target,f,g=(f=e==null?void 0:e.closest(".title-cell"))!=null?f:!1,k;f=(k=e==null?void 0:e.closest(".issue-id-cell"))!=null?k:!1;var l;e=(l=e==null?
void 0:e.closest(".recommendation-chip"))!=null?l:!1;g&&!e||f||dq(c.event)||!d.isIssueSidebarEnabled?d.rowClick.emit(c):AUb(d);return v()});$f(1);T(2,"async");E(3,XTb,1,1,"th",12)(4,YTb,1,1,"th",13)(5,cUb,2,2,"th",14)(6,dUb,1,1,"th",15)(7,fUb,2,2,"th",15)(8,jUb,2,2,"th",16)(9,kUb,1,0,"td",17)(10,lUb,1,0,"td",18)(11,nUb,2,1,"td",19)(12,pUb,2,1,"td",20)(13,rUb,2,1,"td",21)(14,vUb,2,1,"td",22)(15,GUb,2,5,"td",23)(16,IUb,2,1,"td",24)(17,KUb,2,1,"td",25)(18,QUb,2,1,"td",26)(19,SUb,2,1,"td",27)(20,WUb,
2,1,"td",28)(21,$Ub,2,1,"td",28)(22,dVb,2,1,"td",28)(23,fVb,2,1,"td",28)(24,hVb,2,1,"td",28)(25,jVb,2,1,"td",28)(26,pVb,2,1,"td",28)(27,uVb,2,1,"td",28)(28,yVb,2,1,"td",28)(29,AVb,2,1,"td",29)(30,CVb,2,1,"td",29)(31,EVb,2,1,"td",29)(32,GVb,2,1,"td",29)(33,IVb,2,1,"td",28)(34,KVb,2,1,"td",28)(35,MVb,2,1,"td",28)(36,OVb,2,1,"td",28)(37,QVb,2,1,"td",28)(38,SVb,2,5,"td",30)(39,VVb,2,1,"td",31)(40,YVb,2,1,"td",31)(41,aWb,2,1,"td",31)(42,dWb,2,1,"td",31)(43,gWb,2,1,"td",28)(44,kWb,2,1,"td",28)(45,mWb,2,
1,"td",28)(46,oWb,2,1,"td",28)(47,qWb,2,1,"td",28)(48,sWb,2,1,"td",31)(49,uWb,2,1,"td",28)(50,wWb,2,1,"td",28)(51,yWb,2,1,"td",28)(52,AWb,2,1,"td",28)(53,CWb,2,1,"td",28)(54,EWb,2,1,"td",28)(55,GWb,2,1,"td",28)(56,KWb,2,1,"td",28);L()}a&2&&(a=P(),wg("sidebar-open",a.isIssueSidebarOpen),I("list",(a.searchResults==null?null:a.searchResults.issues)||Hg(64,LWb))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",".bv2-view")("sort",a.sort)("rowLabelRenderer",a.issueDescription),
B(),ag(U(2,61,a.issueRecommendations$)),B(2),I("forHeaderCell","focused"),B(),I("forHeaderCell","draghandle"),B(),I("forHeaderCell","selected"),B(),I("forHeaderCell","starred"),B(),I("forHeaderCell","position"),B(2),I("forViewCell","focused"),B(),I("forViewCell","draghandle"),B(),I("forViewCell","selected"),B(),I("forViewCell","starred"),B(),I("forViewCell","position"),B(),I("forViewCell","issueId"),B(),I("forViewCell","title"),B(),I("forViewCell","priority"),B(),I("forViewCell","severity"),B(),I("forViewCell",
"status"),B(),I("forViewCell","type"),B(),I("forViewCell","reporter"),B(),I("forViewCell","assignee"),B(),I("forViewCell","verifier"),B(),I("forViewCell","cc"),B(),I("forViewCell","changelist"),B(),I("forViewCell","postmortem"),B(),I("forViewCell","blockingIssueId"),B(),I("forViewCell","blockedByIssueId"),B(),I("forViewCell","duplicateOfIssueId"),B(),I("forViewCell","createdTime"),B(),I("forViewCell","modifiedTime"),B(),I("forViewCell","resolvedTime"),B(),I("forViewCell","verifiedTime"),B(),I("forViewCell",
"foundInVersion"),B(),I("forViewCell","targetedToVersion"),B(),I("forViewCell","verifiedInVersion"),B(),I("forViewCell","inProd"),B(),I("forViewCell","archived"),B(),I("forViewCell","componentPath"),B(),I("forViewCell","minSlo"),B(),I("forViewCell","responseSlo"),B(),I("forViewCell","assignmentSlo"),B(),I("forViewCell","closureSlo"),B(),I("forViewCell","deletionTime"),B(),I("forViewCell","team"),B(),I("forViewCell","estimate"),B(),I("forViewCell","estimateTotalOpen"),B(),I("forViewCell","estimateTotalComplete"),
B(),I("forViewCell","accessLevel"),B(),I("forViewCell","descendantCount"),B(),I("forViewCell","openDescendantCount"),B(),I("forViewCell","oneDayViewCount"),B(),I("forViewCell","sevenDayViewCount"),B(),I("forViewCell","thirtyDayViewCount"),B(),I("forViewCell","voteCount"),B(),I("forViewCell","position"),B(),I("forViewCell","escalationOwner"))},NWb=function(a){a&1&&M(0,"b-issue-card",91,4);if(a&2){a=qg(1);var b=P().id;I("onedevIsHovercardReady",a.init)("issueId",b)}},OWb=function(a,b){a&1&&(K(0,"onedev-hovercard",
null,3),E(2,NWb,2,2,"b-issue-card",89),L(),K(3,"span",90),Q(4),L());a&2&&(a=b.id,b=qg(1),B(3),I("onedevHovercardTrigger",b),B(),yg(a))},PWb=function(a){if(a&1){var b=t();K(0,"b-app-bar-bulk-edit-menus",10);T(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();
return v(d.bulkMarkIssueRead())});L()}if(a&2){a=P();var c;I("enableBulkEstimatedEffortOption",(c=U(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)("readStatePrompt",iNb(a))}},RWb=function(a){a&1&&M(0,"playbook-controls",4);a&2&&(a=P(),I("issueIds",QWb(a)))},SWb=function(a){if(a&1){var b=t();K(0,"b-copy-issue-id-button",11);N("onClickCopyIssueIds",function(){u(b);var c=P();return v(kNb(c.copyIssueIdService,Qt(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(lNb(c.copyIssueIdService,
Qt(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(mNb(c.copyIssueIdService,Qt(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},TWb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-hotlist-picker",12);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);
var d=P();return v(d.onLoadHotlist.emit(c))});L()()}a&2&&(a=P(),B(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},UWb=function(a){if(a&1){var b=t();K(0,"hotlist-add-issue-btn",14);N("issueAddedToHotlist",function(){u(b);var c=P(2);return v(c.refresh())});L()}a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},VWb=function(a){a&1&&M(0,"hotlist-archive-btn",13);a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},WWb=function(a){a&1&&(F(0,UWb,1,1,"hotlist-add-issue-btn",13),F(1,VWb,
1,1,"hotlist-archive-btn",13));a&2&&(a=P(),G(a.enableBulkEditUi?0:-1),B(),G(a.isHotlistAdmin?1:-1))},XWb=function(a){a&1&&(K(0,"span",17),Q(1,"Reporting"),L())},YWb=function(a){if(a&1){var b=t();K(0,"b-button",15);N("onAction",function(){u(b);var c=P();return v(c.openInEstado())});M(1,"b-icon",16);F(2,XWb,2,0,"span",17);L()}a&2&&(a=P(),I("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),B(2),G(a.hasSelectedIssues()?-1:2))},ZWb=function(a){if(a&1){var b=t();
K(0,"b-comment-box",24);Cg("commentChange",function(c){u(b);var d=P(2);Bg(d.comment,c)||(d.comment=c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(pNb(c))});L()}a&2&&(a=P(2),Ag("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},$Wb=function(a){if(a&1){var b=t();K(0,"div",21)(1,"b-recaptcha",25);N("onUpdate",function(c){u(b);var d=P(2);return v(d.recaptchaResponse=c)});L()()}},aXb=function(a){a&1&&(K(0,"h1",18),Q(1,"Add comment"),L(),K(2,"mat-dialog-content"),
F(3,ZWb,1,3,"b-comment-box",19),M(4,"b-external-warnings",20),L(),F(5,$Wb,2,0,"div",21),K(6,"mat-dialog-actions")(7,"button",22),Q(8," Cancel "),L(),K(9,"button",23),Q(10," Save "),L()());a&2&&(a=P(),B(3),G(a.comment?3:-1),B(),I("externalWarnings",a.externalWarnings),B(),G(a.enableRecaptcha?5:-1),B(2),I("mat-dialog-close",!1),B(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},bXb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"button",7);N("click",function(){u(b);
var c=P();return v(c.onPressSave())});Q(2," Save ");L();K(3,"button",8);N("click",function(){u(b);var c=P();return v(c.onPressRevert())});Q(4," Revert changes ");L()()}a&2&&(a=P(),B(),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},
cXb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"button",7);N("click",function(){u(b);var d=P();return v(d.save())});Q(2," Save ");L();K(3,"button",8);N("click",function(){u(b);var d=P();return v(d.revert())});Q(4," Revert changes ");L();M(5,"hotlist-archive-btn",9);T(6,"async");L()}if(a&2){a=P();B();I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?
"No changes":"Go back to the last saved state");B(2);var c;I("hotlistId",(c=U(6,5,a.id$))!=null?c:void 0)}},dXb=function(a,b){a&1&&Q(0);a&2&&S(" ",b.name," ")},eXb=function(a){a&1&&(K(0,"strong",2),Q(1,"(archived)"),L())},fXb=function(a){a&1&&M(0,"b-spinner")},gXb=function(a){a&1&&(M(0,"hotlist-add-issue-btn",4),T(1,"async"));if(a&2){a=P();var b;I("hotlistId",(b=U(1,1,a.id$))!=null?b:void 0)}},hXb=function(a){a&1&&(K(0,"p",6),Q(1," This hotlist cannot be edited because you are not an administrator of it. "),
L())},iXb=function(a){a&1&&(M(0,"b-edit-hotlist-toolbar",0),K(1,"div",1),M(2,"b-edit-hotlist-header",0),K(3,"mat-tab-group",2)(4,"mat-tab",3),M(5,"b-edit-hotlist-basic",4),T(6,"async"),L(),K(7,"mat-tab",5),M(8,"b-edit-hotlist-acl",4),T(9,"async"),L()(),F(10,hXb,2,0,"p",6),T(11,"async"),L());a&2&&(a=P(),I("hotlistId",a.id),B(2),I("hotlistId",a.id),B(),I("selectedIndex",a.tabIndex),B(2),I("hotlistId",a.id)("isReadOnly",U(6,8,a.isAdmin$)===!1),B(3),I("hotlistId",a.id)("isReadOnly",U(9,10,a.isAdmin$)===
!1),B(2),G(U(11,12,a.isAdmin$)===!1?10:-1))},jXb=function(a,b){a&1&&(M(0,"empty-toolbar"),K(1,"div",7)(2,"h2"),Q(3,"Error"),L(),K(4,"p"),Q(5),L()());a&2&&(B(5),yg(b))},kXb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),Q(2),L()());a&2&&(a=P(),B(2),yg(a.error))},lXb=function(a){a&1&&(Uf(0),Q(1,", "),Vf())},mXb=function(a,b){a&1&&(Q(0),F(1,lXb,2,0,"ng-container"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(2);S(" ",d.convertUserToString(a)," ");B();G(c!==b-1?1:-1)}},nXb=function(a,
b){if(a&1){var c=t();K(0,"tr",7);N("click",function(){var e=u(c).$implicit,f=P();return v(f.editHotlist(e))})("focus",function(){var e=u(c).$index,f=P();return v(f.setFocusOnIndex(e))});M(1,"td",2);K(2,"td",8)(3,"a",9);N("click",function(e){u(c);return v(e.stopPropagation())});Q(4);L()();K(5,"td",10);Q(6);L();K(7,"td",11);Of(8,mXb,2,2,null,null,Nf);L();K(10,"td",12);Q(11);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();wg("grid-focus",d.isFocused(b));Kf("aria-selected",d.isFocused(b))("aria-label",
d.renderRowLabel(b));B(3);I("href",ps.editHotlist.makeHref(a.hotlistId),Pe);B();S(" ",a.name," ");B(2);S(" ",a.description," ");B(2);Pf(a.adminUsers);B(3);S(" ",a.hotlistId," ")}},oXb=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});Q(1," Move to top ");L()}},pXb=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});
Q(1," Move up ");L()}},qXb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});Q(1," Move down ");L()}},rXb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});Q(1," Move to bottom ");L()}},sXb=function(a){if(a&1){var b=t();F(0,oXb,2,0,"button",4);F(1,pXb,2,0,"button",5);F(2,qXb,2,0,"button",6);F(3,rXb,
2,0,"button",7);K(4,"button",8);N("click",function(){u(b);var c=P();return v(c.removePanel())});Q(5," Remove ");L()}a&2&&(a=P(),G(a.first?-1:0),B(),G(a.first?-1:1),B(),G(a.last?-1:2),B(),G(a.last?-1:3))},tXb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),Kf("title",a.getValue()),B(),S(" ",a.getValue()," "))},uXb=function(a){a&1&&M(0,"b-custom-field-value-display",0);a&2&&(a=P(),I("customFieldValue",a.getCustomFieldValue()))},vXb=function(a){a&1&&M(0,"edit-issue-metadata",4);a&2&&(a=P(),I("issueId",
a.issueId))},wXb=function(a){a&1&&M(0,"b-actions-menu",1);a&2&&(a=P(),I("menuItems",a.menuItems))},xXb=function(a){a&1&&(K(0,"span",2)(1,"strong"),Q(2),L(),Q(3,"\u00a0of\u00a0"),K(4,"strong"),Q(5),L()());a&2&&(a=P(),B(2),zg("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex),B(3),yg(a.searchResults.totalText))},yXb=function(a){a&1&&(K(0,"div"),Q(1," Hotlist not found. "),L())},zXb=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},AXb=function(a){a&1&&M(0,"b-panel-controls",
5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},BXb=function(a){a&1&&(K(0,"span",9),Q(1," \u00a0(changed) "),L())},CXb=function(a){a&1&&(K(0,"div"),F(1,AXb,1,1,"b-panel-controls",5),K(2,"span",6),Q(3," Hotlist: "),K(4,"a",7)(5,"span",8),Q(6),L()()(),F(7,BXb,2,0,"span",9),L());a&2&&(a=P(),B(),G(a.isDashboardEditable?1:-1),B(3),I("href",a.ROUTES.viewHotlist.makeHref(a.hotlistId),Pe),B(),I("matTooltip",Dg(a.resource.description)),B(),yg(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},DXb=function(a){if(a&
1){var b=t();K(0,"div",3)(1,"button",10);N("click",function(){u(b);var c=P();return v(c.save())});Q(2,"Save ");L();K(3,"button",11);N("click",function(){u(b);var c=P();return v(c.discardChanges())});Q(4," Discard changes ");L()()}},EXb=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S("Searching for ",a.searchParams.query," ..."))},FXb=function(a){a&1&&(K(0,"div",12),M(1,"b-spinner",15),F(2,EXb,2,1,"span"),L());a&2&&(a=P(2),B(),I("large",!1),B(),G(a.searchParams&&a.searchParams.query?2:-1))},
GXb=function(a){a&1&&(K(0,"div",13),Q(1," No issues in hotlist. "),L())},IXb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"b-issues-grid",16);N("init",function(c){u(b);var d=P(2);return v(HXb(d,c))});Cg("focusedRowIndexChange",function(c){u(b);var d=P(2);Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(2);Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("onRowDragDrop",
function(c){u(b);var d=P(2);return v(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},
JXb=function(a){a&1&&(K(0,"div"),F(1,FXb,3,2,"div",12),F(2,GXb,2,0,"div",13),F(3,IXb,2,5,"div",14),L());a&2&&(a=P(),B(),G(a.isLoading?1:-1),B(),G(a.isLoading||(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?-1:2),B(),G(!a.isLoading&&(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?3:-1))},KXb=function(a){a&1&&(K(0,"div"),Q(1," Saved search not found. "),L())},LXb=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},
MXb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},NXb=function(a){a&1&&(K(0,"span",8),Q(1," \u00a0(changed) "),L())},OXb=function(a){a&1&&(K(0,"div",3),F(1,MXb,1,1,"b-panel-controls",5),K(2,"span",3),Q(3," Saved search: "),K(4,"a",6)(5,"span",7),Q(6),L()()(),F(7,NXb,2,0,"span",8),L());a&2&&(a=P(),B(),G(a.isDashboardEditable?1:-1),B(3),I("href",a.paths.viewSavedSearch(a.savedSearchId),Pe),B(),I("matTooltip",Dg(a.resource.description)),B(),yg(a.resource.name),
B(),G(a.hasParamChanges()?7:-1))},PXb=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(B(),S("Searching for ",b,"..."))},QXb=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",12),F(2,PXb,2,1,"span"),L());if(a&2){var b;a=P(2);B();I("large",!1);B();G((b=a.searchParams==null?null:a.searchParams.query)?2:-1,b)}},RXb=function(a){a&1&&(K(0,"div",10),Q(1," No issues in saved search. "),L())},SXb=function(a){if(a&1){var b=t();K(0,"div",11)(1,"b-issues-grid",13);N("init",function(c){u(b);var d=P(2);return v(HXb(d,
c))});Cg("focusedRowIndexChange",function(c){u(b);var d=P(2);Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)});N("columnsChange",function(c){u(b);var d=P(2);return v(d.columnsChange(c))})("sortChange",function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-
1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex),I("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},TXb=function(a){a&1&&(K(0,"div"),F(1,QXb,3,2,"div",9),F(2,RXb,2,0,"div",10),F(3,SXb,2,5,"div",11),L());a&2&&(a=P(),B(),G(a.isLoading?1:-1),B(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length===0?2:-1),B(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length!==0?3:-1))},UXb=function(a,
b){a&1&&(K(0,"span",2)(1,"a",3),Q(2),L()());a&2&&(a=b.$implicit,B(),I("routerLink",Eg("/teams/",a.id,"/edit"))("preserveFragment",!0),B(),yg(a.name))},VXb=function(a){a&1&&M(0,"span",25)(1,"b-icon",26);a&2&&(a=P(),I("innerHTML",a.menuLabel,Oe))},WXb=function(a){a&1&&(K(0,"div",27),Q(1," This includes emails about major updates and: "),K(2,"ul",28)(3,"li"),Q(4,"All title, hotlist, and status changes."),L(),K(5,"li"),Q(6,"Blocking, Blocked By, or Duplicate changes."),L(),K(7,"li"),Q(8,"Changes to Reporter, Verifier, and CCs."),
L(),K(9,"li"),Q(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),L(),K(11,"li"),Q(12,"Changes to custom fields marked as minor."),L()()())},XXb=function(a){a&1&&(K(0,"div",29),Q(1," This includes emails about: "),K(2,"ul",28)(3,"li"),Q(4,"New comments."),L(),K(5,"li"),Q(6,"New status updates."),L(),K(7,"li"),Q(8,"Priority or Severity changes."),L(),K(9,"li"),Q(10,"Assignee changes."),L(),K(11,"li"),Q(12,"Component changes."),L(),K(13,"li"),Q(14,"Issue closure or reopening."),
L(),K(15,"li"),Q(16,"Changes to custom fields marked as major."),L()()())},YXb=function(a,b){a&1&&(K(0,"mat-option",5),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a.name," "))},ZXb=function(a){a&1&&(K(0,"span",3),Q(1," (must be between 30 days and 20 years) "),L())},aYb=function(a){if(a&1){var b=t();K(0,"div",4)(1,"b-duration-picker",12);N("durationDaysChange",function(c){u(b);var d=P();d.model.retentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Vt(d);return v()});L();K(2,"div",
13);Q(3);L()()}a&2&&(a=P(),B(),I("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),B(2),S(" Issues will be marked for deletion when they have not been modified for ",$Xb(a.model.retentionPeriodDays),". "))},bYb=function(a){a&1&&(K(0,"div",5)(1,"p"),Q(2,"Please note this extended retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),K(3,"b"),Q(4,"one or more"),L(),Q(5," of the following is true:"),L(),K(6,"ol")(7,"li"),
Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),L(),K(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),L(),K(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),L()()())},cYb=function(a){a&1&&(K(0,"div",7)(1,"p"),Q(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),K(3,"b"),Q(4,"one or more"),
L(),Q(5," of the following is true:"),L(),K(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),L(),K(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),L(),K(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),L()()())},dYb=function(a){a&1&&(K(0,"span",3),Q(1," (Issue Retention is shorter than default Restricted Retention) "),L())},fYb=function(a){a&
1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),S(" ",eYb(a)," "))},gYb=function(a){a&1&&(K(0,"div",18)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),L()())},jYb=function(a){if(a&1){var b=t();K(0,"div",4)(1,"div")(2,"span",14);Q(3,"Restricted retention:");
L();K(4,"b-duration-picker",15);N("durationDaysChange",function(c){u(b);var d=P();d.model.piiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Vt(d);return v()});L()();K(5,"div",16)(6,"p");Q(7);L()();K(8,"div")(9,"span",14);Q(10,"Restricted+ retention:");L();K(11,"b-duration-picker",17);N("durationDaysChange",function(c){u(b);var d=P();d.model.spiiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Vt(d);return v()});L()();K(12,"div",16)(13,"p");Q(14);L()();F(15,gYb,3,0,"div",
18);L()}a&2&&(a=P(),B(4),I("disabled",!hYb(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),S(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",$Xb(a.model.piiRetentionPeriodDays),". "),B(4),I("disabled",!hYb(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),S(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",$Xb(a.model.spiiRetentionPeriodDays),
". "),B(),G(a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&iYb(a)?15:-1))},kYb=function(a){a&1&&(K(0,"div",11)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),L()())},lYb=function(a,b,c){a=Wt(a.slice(b),c,"[()|]","[()|,\\s]");
a.idx+=b;return a},Wt=function(a,b,c,d){var e=mYb(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}},mYb=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},Xt=function(a,b){return(b===void 0?0:b)?a.search(/^\d+\+?$/)>-1:a.search(/^\d+$/)>-1},nYb=function(a){return a.charAt(0)==="-"?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},Yt=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(l){l=l.name.toLowerCase();return l!==e||d?c?l.startsWith(e):za(l,e):!1});b=b.idx;for(var f=b+e.length,g=m(a),k=g.next();!k.done;k=g.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},Zt=function(a){var b=a.name;var c=a.label;var d=a.type;var e=a.enableShadowPlaceholder;var f=a.id;var g;return{trackId:((g=a.trackIdPrefix)!=null?g:d)+":"+b,name:b,id:f!=null?f:b,label:c,completionCfg:{enableShadowPlaceholder:e!=
null?e:!0,completionValue:f!=null?f:b,type:d}}},oYb=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"div",9);N("click",function(d){var e=u(c).$implicit,f=P();e=e.key;if(d=d===void 0?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;f.onSelectionChanged();return v()});K(2,"mat-checkbox",10);N("change",function(d){var e=u(c).$implicit,f=P();e.value.value=d.checked;return v(f.onSelectionChanged())})("click",function(d){u(c);return v(d.stopPropagation())});Q(3);
L()()()}a&2&&(a=b.$implicit,Kf("aria-checked",a.value.value),B(2),I("checked",a.value.value),B(),S(" ",a.value.displayString," "))},pYb=function(a){a&1&&(K(0,"div",8),Q(1),L());a&2&&(a=P(),B(),S(" ",a.errorString," "))},qYb=function(a){a&1&&(K(0,"span",2),Q(1),L());a&2&&(a=P(2),B(),zg(" ",a.objectiveBusinessDays," day",a.objectiveBusinessDays!=1?"s":""," "))},rYb=function(a){a&1&&(K(0,"span"),Q(1,", "),L())},tYb=function(a){a&1&&(K(0,"span"),F(1,rYb,2,0,"span"),K(2,"span"),Q(3),L()());a&2&&(a=P(2),
B(),G(a.objectiveBusinessDays?1:-1),B(2),zg("",a.intervalString," ",sYb(a,a.intervalUnit)))},uYb=function(a){a&1&&(K(0,"span",0),F(1,qYb,2,2,"span",2),F(2,tYb,4,3,"span"),L());a&2&&(a=P(),B(),G(a.objectiveBusinessDays?1:-1),B(),G(a.intervalString&&a.intervalString!="0"?2:-1))},wYb=function(a){if(a&1){var b=t();K(0,"span",3)(1,"input",4);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.businessDayString,c)||(d.businessDayString=c);return v(c)});N("ngModelChange",function(){u(b);var c=P(2);return v(vYb(c))});
L();K(2,"span",7);Q(3,"days,");L()()}a&2&&(a=P(2),B(),wg("ng-invalid",!!a.errorString),Ag("ngModel",a.businessDayString))},xYb=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,b=P(2),I("value",a),B(),S(" ",sYb(b,a)," "))},EYb=function(a){if(a&1){var b=t();K(0,"span",1);F(1,wYb,4,3,"span",3);K(2,"span",3)(3,"input",4);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.intervalString,c)||(d.intervalString=c);return v(c)});N("ngModelChange",function(){u(b);var c=P();return v(vYb(c))});
L();K(4,"mat-select",5);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.intervalUnit,c)||(d.intervalUnit=c);return v(c)});N("selectionChange",function(){u(b);var c=P();yYb(c);zYb(c);return v()});Of(5,xYb,2,2,"mat-option",6,Nf);L()()()}a&2&&(a=P(),B(),G(AYb(a)?1:-1),B(2),wg("invalid",!!a.errorString),Ag("ngModel",a.intervalString),B(),Ag("ngModel",a.intervalUnit),B(),Pf(AYb(a)?[BYb,CYb]:[BYb,CYb,DYb]))},GYb=function(a){if(a&1){var b=t();K(0,"b-icon",22);N("click",function(){u(b);var c=P(2);return v(FYb(c,
0))});L()}a&2&&I("name","add")("size","small")},IYb=function(a){if(a&1){var b=t();K(0,"span",5)(1,"span",18)(2,"span",19);F(3,GYb,1,2,"b-icon",20);L();K(4,"span",19)(5,"b-icon",21);N("click",function(c){u(b);var d=P();return v(HYb(d,c))});L()()()()}a&2&&(a=P(),B(3),G(a.canPerformActions?3:-1),B(2),I("name","delete")("size","small"))},JYb=function(a){a&1&&M(0,"td",26)},KYb=function(a){a&1&&M(0,"td",27)},LYb=function(a){if(a&1){var b=t();K(0,"td",28)(1,"slo-element-property-picker",42);Cg("optionsChange",
function(c){u(b);var d=P().$implicit;Bg(d.typePickerValues,c)||(d.typePickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any type")("validator",a.validateTypePicker),Ag("options",a.typePickerValues))},MYb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},NYb=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),yg(a))},PYb=function(a){a&1&&(K(0,"span",43),Of(1,NYb,3,1,"span",44,Nf),L());
if(a&2){a=P(2).$implicit;B();if(a.parseResult.types.length===0)a=["Any"];else{for(var b=[],c=m(a.controllerReference.sloParseService.enumTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(OYb(a.controllerReference,d));a=b}Pf(a)}},QYb=function(a){a&1&&(K(0,"td",29),F(1,MYb,2,1,"div")(2,PYb,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},RYb=function(a){if(a&1){var b=t();K(0,"td",30)(1,"slo-element-property-picker",46);Cg("optionsChange",
function(c){u(b);var d=P().$implicit;Bg(d.priorityPickerValues,c)||(d.priorityPickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any priority")("validator",a.validatePriorityPicker),Ag("options",a.priorityPickerValues))},SYb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},TYb=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),yg(a))},VYb=function(a){a&1&&(K(0,"span",43),Of(1,TYb,3,
1,"span",44,Nf),L());if(a&2){a=P(2).$implicit;B();if(a.parseResult.priorities.length===0)a=["Any"];else{for(var b=[],c=m(a.controllerReference.sloParseService.enumPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(UYb(a.controllerReference,d));a=b}Pf(a)}},WYb=function(a){a&1&&(K(0,"td",31),F(1,SYb,2,1,"div")(2,VYb,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},XYb=function(a){if(a&1){var b=t();K(0,"td",32)(1,"slo-element-property-picker",
47);Cg("optionsChange",function(d){u(b);var e=P().$implicit;Bg(e.postmortemPickerValues,d)||(e.postmortemPickerValues=d);return v(d)});L()()}if(a&2){a=P().$implicit;var c=P(2);B();I("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker);Ag("options",a.postmortemPickerValues)}},YYb=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P(2).$implicit,B(),S("ERROR: ",a.parseResult.error))},ZYb=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),Q(2),L()());a&2&&(a=b.$implicit,B(2),
yg(a))},$Yb=function(a){a&1&&(K(0,"span",43),Of(1,ZYb,3,1,"span",44,Nf),L());if(a&2){a=P(2).$implicit;B();var b=a.parseResult.postmortemValues.includes("ANY"),c=a.parseResult.postmortemValues.includes("NONE");a=b===c?["Either"]:[a.controllerReference.anyNoneDisplayValues.get(a.parseResult.postmortemValues[0])];Pf(a)}},aZb=function(a){a&1&&(K(0,"td",33),F(1,YYb,2,1,"div")(2,$Yb,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},cZb=function(a,b){a&1&&(K(0,"mat-option",50),Q(1),
L());a&2&&(a=b.$implicit,P(4),I("value",a),B(),S(" ",bZb(a)," "))},dZb=function(a){if(a&1){var b=t();K(0,"td",34)(1,"mat-form-field",48)(2,"mat-select",49);Cg("ngModelChange",function(d){u(b);var e=P().$implicit;Bg(e.selectedMetric,d)||(e.selectedMetric=d);return v(d)});Of(3,cZb,2,2,"mat-option",50,Nf);L()()()}if(a&2){a=P().$implicit;var c=P(2);B(2);Ag("ngModel",a.selectedMetric);I("customValidators",a.metricValidators);B();Pf(c.metricChoices)}},eZb=function(a){a&1&&(K(0,"td",35),Q(1),L());a&2&&(a=
P().$implicit,P(2),B(),S(" ",bZb(a.sloElement.metric)," "))},fZb=function(a){if(a&1){var b=t();K(0,"td",36)(1,"slo-objective-selector",51);Cg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),
Ag("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("validator",a.validateObjective)("isDisabled",!1))},gZb=function(a){if(a&1){var b=t();K(0,"td",37)(1,"slo-objective-selector",52);Cg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;Bg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=
c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),Ag("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("isDisabled",!a.isEditing()))},iZb=function(a,b){a&1&&(K(0,"mat-option",50),Q(1),L());a&2&&(a=b.$implicit,P(4),I("value",a),B(),S(" ",hZb.get(a||"CALENDAR")," "))},jZb=function(a){if(a&1){var b=t();K(0,"td",38)(1,"mat-form-field",48)(2,"mat-select",53);Cg("ngModelChange",function(d){u(b);var e=P().$implicit;Bg(e.selectedDayType,
d)||(e.selectedDayType=d);return v(d)});N("selectionChange",function(){u(b);var d=P().$implicit;d.selectedDayType==="BUSINESS"?d.selectedObjectiveDuration.seconds%86400===0&&(d.selectedObjectiveBusinessDays=d.selectedObjectiveDuration.seconds/86400,d.selectedObjectiveDuration.seconds=0):(d.selectedObjectiveDuration.seconds===0&&(d.selectedObjectiveDuration.seconds=d.selectedObjectiveBusinessDays*86400),d.selectedObjectiveBusinessDays=0);return v()});Of(3,iZb,2,2,"mat-option",50,Nf);L()()()}if(a&2){a=
P().$implicit;var c=P(2);B(2);Ag("ngModel",a.selectedDayType);B();Pf(c.dayTypes)}},kZb=function(a){a&1&&(K(0,"td",39),Q(1),L());a&2&&(a=P().$implicit,P(2),B(),S(" ",hZb.get(a.sloElement.dayType||"CALENDAR")," "))},oZb=function(a){if(a&1){var b=t();K(0,"td",40)(1,"span",18)(2,"span",19)(3,"b-icon",54);N("click",function(){u(b);var c=P(3);if(c.openRow)if(c.openRow.isValid())lZb(c.openRow.typePickerValues)&&lZb(c.openRow.priorityPickerValues)&&lZb(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",
content:Bh("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}):mZb(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:Bh('An SLO rule must specify a valid duration.\nFor "Calendar" day objectives, the duration must be a positive integer.\nFor "Business" day objectives, a day and/or hour/minute duration must be specified.'),
confirmButtonText:"Ok",showCancelButton:!1})}return v()});L()();K(4,"span",19)(5,"b-icon",55);N("click",function(){u(b);var c=P().$implicit,d=P(2);return v(nZb(d,c))});L()()()()}a&2&&(B(3),I("name","done")("size","small"),B(2),I("name","delete")("size","small"))},qZb=function(a){if(a&1){var b=t();K(0,"b-icon",63);N("click",function(c){u(b);var d=P(2).$implicit,e=P(2);return v(pZb(e,d,c))});L()}a&2&&I("name","edit")("size","small")},rZb=function(a){a&1&&M(0,"b-icon",57);a&2&&(P(),a=qg(8),I("name",
"more-settings-vertical")("size","small")("matMenuTriggerFor",a))},tZb=function(a){if(a&1){var b=t();K(0,"button",64);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return v(sZb(d,c,1))});Q(1," Move row down ");L()}},uZb=function(a){if(a&1){var b=t();K(0,"button",65);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return v(sZb(d,c,-1))});Q(1," Move row up ");L()}},wZb=function(a){if(a&1){var b=t();K(0,"td",41)(1,"span",18)(2,"span",19);F(3,qZb,1,2,"b-icon",56);L();K(4,"span",19)(5,"span");
F(6,rZb,1,3,"b-icon",57);L();K(7,"mat-menu",null,0);F(9,tZb,2,0,"button",58);F(10,uZb,2,0,"button",59);K(11,"button",60);N("click",function(){u(b);var d=P().$implicit,e=P(2);FYb(e,e.collection.indexOf(d)+1);return v()});Q(12," Add row below ");L();K(13,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(2);FYb(e,e.collection.indexOf(d)+-1+1);return v()});Q(14," Add row above ");L();K(15,"button",62);N("click",function(){u(b);var d=P().$implicit,e=P(2);return v(nZb(e,d))});Q(16," Remove ");
L()()()()()}if(a&2){a=P().$implicit;var c=P(2);B(3);G(a.canEdit?3:-1);B(3);G(a.canEdit?6:-1);B(3);G(vZb(c,a,1).valid?9:-1);B();G(vZb(c,a,-1).valid?10:-1)}},xZb=function(a,b){a&1&&(K(0,"tr",25),F(1,JYb,1,0,"td",26)(2,KYb,1,0,"td",27),F(3,LYb,2,3,"td",28)(4,QYb,3,1,"td",29),F(5,RYb,2,3,"td",30)(6,WYb,3,1,"td",31),F(7,XYb,2,3,"td",32)(8,aZb,3,1,"td",33),F(9,dZb,5,2,"td",34)(10,eZb,2,1,"td",35),F(11,fZb,2,5,"td",36)(12,gZb,2,4,"td",37),F(13,jZb,5,1,"td",38)(14,kZb,2,1,"td",39),F(15,oZb,6,4,"td",40)(16,
wZb,17,4,"td",41),L());a&2&&(a=b.$implicit,b=P(2),wg("draggable",!b.isDisabled&&b.openRow==null),B(),G(a.isEditing()?1:2),B(2),G(a.isEditing()?3:4),B(2),G(a.isEditing()?5:6),B(2),G(a.isEditing()?7:8),B(2),G(a.isEditing()?9:10),B(2),G(a.isEditing()?11:12),B(2),G(a.isEditing()?13:14),B(2),G(a.isEditing()?15:16))},yZb=function(a){if(a&1){var b=t();K(0,"tbody",23);N("cdkDropListDropped",function(c){u(b);var d=P();return v(d.onDrop(c))});Of(1,xZb,17,10,"tr",24,Nf);L()}a&2&&(a=P(),I("cdkDropListData",a.collection)("cdkDropListDisabled",
a.isDisabled||a.openRow!=null),B(),Pf(a.collection))},zZb=function(a){a&1&&(K(0,"div",17),Q(1," There are currently no rules for this SLO "),L())},AZb=function(a,b){if(a&1){var c=t();K(0,"tr",7);N("click",function(){var e=u(c).$implicit,f=P();return v(f.editSlo(e))})("focus",function(){var e=u(c).$index,f=P();return v(f.setFocusOnIndex(e))});M(1,"td",2);K(2,"td",8)(3,"a",9);Q(4);L()();K(5,"td",10);Q(6);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();wg("grid-focus",d.isFocused(b));Kf("aria-selected",
d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);I("href",ps.editSlo.makeHref(a.sloId),Pe);B();S(" ",a.name," ");B(2);S(" ",a.description," ")}},BZb=function(a){if(a)return(Array.isArray(a)?a.map(function(b){return sm(b)}):[sm(a)]).filter(function(b){return!isNaN(b)})},CZb=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!wa(c,b)})},DZb=function(a,b){typeof a==="string"&&(a=a.trim())&&b(ym(a))},EZb=function(a,b){if(!a)return[];a=m(typeof a==="string"?a.split(","):a);for(var c=
a.next();!c.done;c=a.next())DZb(c.value,function(d){return b.push(d)});return mRa(b)},FZb=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("rg");}},GZb=function(a){a&1&&(K(0,"a",1),Q(1),T(2,"async"),L());if(a&2){var b;a=P();I("href",a.manageComponentLink,Pe);B();yg((b=U(2,2,a.component$))==null?null:b.name)}},HZb=function(a){a&1&&(K(0,"output"),Q(1),L());a&2&&(a=P(),
B(),yg(a.componentId))},IZb=function(a){a&1&&Wf(0)},JZb=function(a){a&1&&E(0,IZb,1,0,"ng-container",4);a&2&&(P(),a=qg(6),I("ngTemplateOutlet",a))},KZb=function(a){a&1&&Wf(0)},LZb=function(a){a&1&&E(0,KZb,1,0,"ng-container",4);a&2&&(P(),a=qg(8),I("ngTemplateOutlet",a))},MZb=function(a){a&1&&(K(0,"li")(1,"label"),Q(2,"Component"),L(),M(3,"b-async-component",8),L());a&2&&(a=P(2),B(3),I("componentId",a.issueComponentId))},NZb=function(a){a&1&&(K(0,"li")(1,"label"),Q(2,"Team"),L(),M(3,"b-team-display",
9),L());a&2&&(a=P(2),B(3),I("teamId",a.issueTeamId))},OZb=function(a){a&1&&(K(0,"ol",5)(1,"li")(2,"label"),Q(3,"ID"),L(),K(4,"output"),Q(5),L()(),K(6,"li")(7,"label"),Q(8,"Type"),L(),K(9,"output"),Q(10),L()(),K(11,"li")(12,"label"),Q(13,"Priority"),L(),M(14,"b-issue-priority-display",6),L(),K(15,"li")(16,"label"),Q(17,"Severity"),L(),K(18,"output"),Q(19),L()(),K(20,"li")(21,"label"),Q(22,"Status"),L(),K(23,"output"),Q(24),L()(),K(25,"li")(26,"label"),Q(27,"Last modified"),L(),K(28,"output"),Q(29),
T(30,"date"),L()(),K(31,"li")(32,"label"),Q(33,"Issue access limit"),L(),K(34,"output"),Q(35),K(36,"a",7),Q(37,"Learn more"),L()()(),F(38,MZb,4,1,"li"),F(39,NZb,4,1,"li"),L());a&2&&(a=P(),B(5),yg(a.issueId),B(5),yg(a.issueType),B(4),I("issuePriority",a.issuePriority),B(5),yg(a.issueSeverity),B(5),yg(a.issueStatus),B(5),yg(Lg(30,10,a.issueLastModified,"medium")),B(6),S("",a.accessLimitLevel," "),B(),I("href",a.documentationLinks.getIssueAccessLimit(),Pe),B(2),G(a.issueComponentId?38:-1),B(),G(a.issueTeamId?
39:-1))},PZb=function(a){a&1&&(Uf(0),Q(1,"Signing in..."),Vf(),M(2,"b-spinner"))},QZb=function(a){a&1&&(Uf(0),Q(1,"Sign in"),Vf())},RZb=function(a){if(a&1){var b=t();K(0,"h3");Q(1,"Access to this issue may be resolved by signing in.");L();K(2,"button",10);N("click",function(){u(b);var c=P();c.signInProgressing=!0;c.loginRedirector.redirect();return v()});F(3,PZb,3,0)(4,QZb,2,0,"ng-container");L()}a&2&&(a=P(),B(3),G(a.signInProgressing?3:4))},SZb=function(a){return a.startsWith('"')&&a.endsWith('"')||
a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},TZb=function(a){a.label||(a=pm(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},VZb=function(a){return{type:UZb[a.getType()],value:a.getValue()}},XZb=function(a){var b,c=WZb[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(XZb);a=Ci(a,YZb,3,Di());return{type:c,values:d,simpleValues:(a!=null?a:[]).map(VZb)}},b_b=function(a){var b,c=ZZb[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(XZb);
b=Gi(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:$Zb[e.getField()],customFieldId:Number(e.getCustomFieldId_asString())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:a_b[xi(a,5)]}},g_b=function(a){switch(a.getKindCase()){case 2:var b=$l(a,c_b,2,d_b,jb);return{syntaxErrorResponse:{syntaxError:vi(b,1,void 0,jb)},queryBuilderResponse:void 0};case 1:return a=$l(a,$t,1,d_b,jb),{syntaxErrorResponse:void 0,queryBuilderResponse:{type:e_b[a.getType()],expressions:((b=Ci(a,f_b,2,Di(),
jb))!=null?b:[]).map(b_b)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},h_b=function(a){if(a&1){var b=t();K(0,"mat-checkbox",8);N("click",function(d){u(b);return v(d.stopPropagation())})("change",function(){u(b);var d=P().$implicit,e=P();return v(e.toggleSelection(d))});Q(1);L()}if(a&2){a=P().$implicit;var c=P();I("checked",c.selectedValuesMap[a]);B();S(" ",a," ")}},i_b=function(a){a&1&&(K(0,"div",7),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a," "))},j_b=function(a,b){a&
1&&(K(0,"mat-option",4),F(1,h_b,2,2,"mat-checkbox",6)(2,i_b,2,1,"div",7),L());a&2&&(a=b.$implicit,b=P(),I("value",a),B(),G(b.allowMultiSelect?1:2))},l_b=function(a){if(a&1){var b=t();K(0,"div",5)(1,"button",9);N("click",function(){u(b);var c=P();return v(k_b(c))})("keydown.enter",function(){u(b);var c=P();return v(k_b(c))});M(2,"mat-icon",10);L();K(3,"button",11);N("click",function(){u(b);var c=P();return v(c.cancel())})("keydown.esc",function(){u(b);var c=P();return v(k_b(c))});M(4,"mat-icon",12);
L()()}a&2&&(a=P(),B(),Kf("aria-label",Eg("Apply changes to ",a.customFieldTitle)),I("disabled",!a.hasPendingChanges),B(2),Kf("aria-label",Eg("Discard changes to ",a.customFieldTitle)))},m_b=function(a,b){a&1&&(K(0,"mat-option",4)(1,"div",5),Q(2),L()());a&2&&(a=b.$implicit,I("value",a),B(2),S(" ",a.name," "))},n_b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a.key),B(),S(" ",a.value," "))},o_b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",
10);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.expressionType,c)||(d.expressionType=c);return v(c)});Of(2,n_b,2,2,"mat-option",11,Nf);T(4,"keyvalue");L()()}a&2&&(a=P(2),B(),Ag("ngModel",a.expressionType),B(),Pf(U(4,1,a.globalTypeLabels)))},p_b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a[0]),B(),S(" ",a[1]," "))},q_b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());if(a&2){a=b.$implicit;b=P(2).$implicit;var c=P(2);I("value",a);B();S(" ",c.getTypeLabel(b,
a)," ")}},r_b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",18);Cg("ngModelChange",function(c){u(b);var d=P().$implicit;Bg(d.type,c)||(d.type=c);return v(c)});Of(2,q_b,2,2,"mat-option",11,Nf);L()()}a&2&&(a=P().$implicit,B(),Ag("ngModel",a.type),B(),Pf(a.getLegalTypes()))},t_b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var c=P(2).$implicit,d=P(5);return v(s_b(d,c))});K(1,"span",27);Q(2);L()()}a&2&&(a=P(2).$implicit,P(5),I("title",a.value),B(2),S(" ",
a.value.replace(/"/g,"")," "))},u_b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-custom-repeated-enum-picker",28);N("onValueChange",function(e){u(b);var f=P(7);f.chipUnderEdit.value='"'+e+'"';au(f);return v()});L()()}if(a&2){a=P(2).$implicit;var c=P(3).$implicit,d=P(2);B();I("showPlaceholder",!0)("customFieldTitle",d.getCustomFieldName(c))("currentInputValue",a.value.replace(/"/g,""))("allowedValues",c.getOptions())}},v_b=function(a){if(a&1){var b=t();K(0,"div",22);F(1,t_b,3,2,"div",23);F(2,u_b,
2,4,"div",24);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(bu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},w_b=function(a,b){a&1&&F(0,v_b,4,2,"div",22);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},x_b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),
S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},y_b=function(a){a&1&&(K(0,"div",19),Of(1,w_b,1,1,null,null,Nf),F(3,x_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Pf(a.values),B(2),G(a.type?3:-1))},z_b=function(a,b){if(a&1){var c=t();K(0,"div",30)(1,"mat-checkbox",31);N("change",function(d){var e=u(c).$implicit,f=P(3).$implicit;return v(f.enumValues[e.id]=d.checked)});Q(2);L()()}a&2&&(a=b.$implicit,b=P(3).$implicit,B(),I("checked",b.enumValues[a.id])("matTooltip",a.tooltip),B(),S(" ",
a.label||a.id," "))},A_b=function(a){a&1&&(K(0,"div",20),Of(1,z_b,3,3,"div",30,Nf),L());a&2&&(a=P(2).$implicit,B(),Pf(a.getOptions()))},B_b=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-multi",32);Cg("valueChange",function(d){u(b);var e=P(3).$implicit;Bg(e.csv,d)||(e.csv=d);return v(d)});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();Ag("value",a.csv);I("candidateDenylist",c.candidateEmailAutocompleteDenylist)}},C_b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",33);Cg("ngModelChange",
function(c){u(b);var d=P(3).$implicit;Bg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Ag("ngModel",a.csv))},D_b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",34);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Ag("ngModel",a.csv))},E_b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",35);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&
(a=P(3).$implicit,B(),Ag("ngModel",a.csv))},F_b=function(a){a&1&&(K(0,"div"),F(1,B_b,2,2,"div"),F(2,C_b,2,1,"div"),F(3,D_b,2,1,"div"),F(4,E_b,2,1,"div"),L());a&2&&(a=P(2).$implicit,B(),G(a.getWidgetType()=="user"?1:-1),B(),G(a.getWidgetType()=="csv"?2:-1),B(),G(a.getWidgetType()=="id"?3:-1),B(),G(a.getWidgetType()=="number"?4:-1))},G_b=function(a,b){if(a&1){var c=t();K(0,"div",36)(1,"div",24)(2,"input",35);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.value,d)||(e.value=d);return v(d)});
L()();K(3,"button",37);N("click",function(){var d=u(c).$implicit,e=P(3).$implicit,f=P(2);return v(bu(f,e,d))});L()()}a&2&&(a=b.$implicit,B(2),Ag("ngModel",a.value))},H_b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NOR"?"OR":"AND"," "))},I_b=function(a){a&1&&(K(0,"div",19),Of(1,G_b,4,1,"div",36,Nf),F(3,H_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Pf(a.values),
B(2),G(a.type?3:-1))},K_b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(J_b(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.getComponentPath(c.components[a.value]));B(2);S(" ",c.getComponentPath(c.components[a.value])," ")}},L_b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-team-component-picker",41);N("selectedComponentChange",function(c){u(b);var d=P(7);d.componentUnderEdit=c!=null?c:null;d.componentUnderEdit&&
(d.chipUnderEdit.value=d.componentUnderEdit.componentId,d.components[d.componentUnderEdit.componentId]=d.componentUnderEdit);d.componentUnderEdit=null;au(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},M_b=function(a){if(a&1){var b=t();K(0,"div",38);F(1,K_b,3,2,"div",23);F(2,L_b,2,3,"div",24);K(3,"button",39);N("click",function(){u(b);var d=P().$implicit;P(5);d.includeSubs=!d.includeSubs;return v()});M(4,"mat-icon",
40);L();K(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(bu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1);B();I("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");Kf("aria-checked",a.includeSubs);B();I("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},N_b=function(a,b){a&1&&F(0,M_b,6,5,"div",38);a&2&&(a=b.$implicit,b=P(5),
G(b.chipUnderEdit===a||a.value?0:-1))},O_b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},P_b=function(a){a&1&&(K(0,"div",19),Of(1,N_b,1,1,null,null,Nf),F(3,O_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Pf(a.values),B(2),G(a.type?3:-1))},R_b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,
e=P(5);return v(Q_b(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.trackers[a.value]==null?null:c.trackers[a.value].name);B(2);S(" ",c.trackers[a.value]==null?null:c.trackers[a.value].name," ")}},S_b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-tracker-picker",43);N("onTrackerSelect",function(c){u(b);var d=P(7);d.analytics.trackEvent("search","builder-autocomplete-select","tracker",isNaN(Number(c.trackerId))?0:Number(c.trackerId));d.chipUnderEdit.value=c.trackerId;
d.trackers[c.trackerId]=c;d.trackerUnderEdit=null;au(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedTracker",a.trackerUnderEdit))},T_b=function(a){if(a&1){var b=t();K(0,"div",42);F(1,R_b,3,2,"div",23);F(2,S_b,2,1,"div",24);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(bu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},U_b=function(a,b){a&1&&F(0,T_b,4,2,"div",42);a&2&&(a=b.$implicit,
b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},V_b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},W_b=function(a){a&1&&(K(0,"div",19),Of(1,U_b,1,1,null,null,Nf),F(3,V_b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Pf(a.values),B(2),G(a.type?3:-1))},Y_b=function(a){if(a&1){var b=t();K(0,"div",26);T(1,"teamPath");N("click",function(){u(b);
var d=P(2).$implicit,e=P(6);return v(X_b(e,d))});K(2,"span",27);Q(3);T(4,"teamPath");L()()}if(a&2){a=P(2).$implicit;var c=P(6);I("title",U(1,2,c.teams[a.value]));B(3);S(" ",U(4,4,c.teams[a.value])," ")}},$_b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-team-picker",46);N("onTeamSelect",function(c){u(b);var d=P(8);return v(Z_b(d,c))});L()()}a&2&&(a=P(8),B(),I("teamSelected",a.teamUnderEdit))},a0b=function(a){if(a&1){var b=t();K(0,"div",44);F(1,Y_b,5,6,"div",23);F(2,$_b,2,1,"div",24);K(3,"button",
45);N("click",function(){u(b);var d=P().$implicit;P(6);d.includeSubs=!d.includeSubs;return v()});M(4,"mat-icon",40);L();K(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(4).$implicit,f=P(2);return v(bu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(6);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1);B();I("title",a.includeSubs?"Subteams are included":"Subteams are not included");Kf("aria-checked",a.includeSubs);B();I("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},
b0b=function(a,b){a&1&&F(0,a0b,6,5,"div",44);a&2&&(a=b.$implicit,b=P(6),G(b.chipUnderEdit===a||a.value?0:-1))},c0b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(4).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(4).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},d0b=function(a){a&1&&(Of(0,b0b,1,1,null,null,Nf),F(2,c0b,2,1,"button",21));a&2&&(a=P(3).$implicit,Pf(a.values),B(2),G(a.type?2:-1))},e0b=function(a){a&1&&(K(0,"div",19),F(1,d0b,
3,1),L());a&2&&(a=P(4),B(),G(a.sessionIsInternal?1:-1))},g0b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=f0b(d);return v()});L();Q(2," and ");K(3,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateTo=f0b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0);B(2);I("boundValue",c.getDateValue(a.dateTo))("isRequired",
!0)}},h0b=function(a){if(a&1){var b=t();K(0,"div");Q(1," the last ");K(2,"input",48);Cg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Bg(d.duration,c)||(d.duration=c);return v(c)});L();Q(3," days. ");L()}a&2&&(a=P(3).$implicit,B(2),Ag("ngModel",a.duration))},i0b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=f0b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",
!0)}},j0b=function(a){a&1&&(K(0,"div"),F(1,g0b,4,4,"div"),F(2,h0b,4,1,"div"),F(3,i0b,2,2,"div"),L());a&2&&(a=P(2).$implicit,B(),G(a.type=="RANGE"||a.type=="NRANGE"?1:-1),B(),G(a.type=="DURATION"||a.type=="NDURATION"?2:-1),B(),G(a.type=="LE"||a.type=="LT"||a.type=="GE"||a.type=="GT"||a.type=="OR"?3:-1))},k0b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(du(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",(c.hotlists[a.value]==
null?null:c.hotlists[a.value].name)||a.value);B(2);S(" ",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value," ")}},l0b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a.hotlistId),B(),S(" ",a.name," "))},m0b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",51);Cg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Bg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(au(d))});Of(2,l0b,
2,2,"mat-option",11,Nf);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Ag("ngModel",a.value);B();Pf(c.userHotlists)}},n0b=function(a){if(a&1){var b=t();K(0,"div",49);F(1,k0b,3,2,"div",23);F(2,m0b,4,1,"mat-form-field",50);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(bu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},o0b=function(a,b){a&1&&F(0,n0b,4,2,"div",49);a&2&&(a=b.$implicit,
b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},p0b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},q0b=function(a){a&1&&(K(0,"div",19),Of(1,o0b,1,1,null,null,Nf),F(3,p0b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Pf(a.values),B(2),G(a.type?3:-1))},r0b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,
e=P(5);return v(du(e,d))});K(1,"span",27);Q(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value);B(2);S(" ",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value," ")}},s0b=function(a,b){a&1&&(K(0,"mat-option",11),Q(1),L());a&2&&(a=b.$implicit,I("value",a.searchId),B(),S(" ",a.name," "))},t0b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",52);Cg("ngModelChange",function(d){u(b);
var e=P(2).$implicit;Bg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(au(d))});Of(2,s0b,2,2,"mat-option",11,Nf);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Ag("ngModel",a.value);B();Pf(c.userSavedSearches)}},u0b=function(a){if(a&1){var b=t();K(0,"div",49);F(1,r0b,3,2,"div",23);F(2,t0b,4,1,"mat-form-field",50);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(bu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=
P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},v0b=function(a,b){a&1&&F(0,u0b,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},w0b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(cu(d,c))});Q(1);L()}a&2&&(a=P(3).$implicit,B(),S(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},x0b=function(a){a&1&&(K(0,"div",19),Of(1,v0b,1,1,null,null,Nf),F(3,w0b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,
B(),Pf(a.values),B(2),G(a.type?3:-1))},y0b=function(a){a&1&&(K(0,"div",14),F(1,y_b,4,1,"div",19),F(2,A_b,3,0,"div",20),F(3,F_b,5,4,"div"),F(4,I_b,4,1,"div",19),F(5,P_b,4,1,"div",19),F(6,W_b,4,1,"div",19),F(7,e0b,2,1,"div",19),F(8,j0b,4,3,"div"),F(9,q0b,4,1,"div",19),F(10,x0b,4,1,"div",19),L());if(a&2){a=P().$implicit;var b=P(2);B();G(a.getWidgetType()==="repeated-enum"?1:-1);B();G(a.getWidgetType()==="enum"?2:-1);B();G(a instanceof eu?3:-1);B();G(a.getWidgetType()=="text"?4:-1);B();G(a.getWidgetType()==
"component"?5:-1);B();G(b.isTrackerSearchEnabled&&a.getWidgetType()=="tracker"?6:-1);B();G(a.getWidgetType()=="team"?7:-1);B();G(a.getWidgetType()==="date"?8:-1);B();G(a.getWidgetType()=="hotlist"?9:-1);B();G(a.getWidgetType()=="savedsearch"?10:-1)}},z0b=function(a){a&1&&(K(0,"div",15),Q(1),L());if(a&2){a=P().$implicit;var b=P(2);B();S(" ",b.getCustomFieldName(a)," ")}},C0b=function(a){if(a&1){var b=t();K(0,"div",16)(1,"b-custom-field-picker",53);N("fieldSelected",function(c){u(b);var d=P().$index,
e=P(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=A0b(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);B0b(e,e.expressions[d]);return v()});L()()}},E0b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"div",12)(2,"mat-form-field",4)(3,"mat-select",13);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.label.field,d)||(e.label.field=d);return v(d)});N("selectionChange",function(){var d=u(c).$index,e=P(2);return v(D0b(e,d))});Of(4,p_b,2,2,"mat-option",11,Nf);L()();F(6,r_b,4,1,"mat-form-field",
4);L();F(7,y0b,11,10,"div",14);F(8,z0b,2,1,"div",15);F(9,C0b,2,0,"div",16);K(10,"button",17);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.removeExpression(d))});L()()}a&2&&(a=b.$implicit,b=P(2),B(3),Ag("ngModel",a.label.field),B(),Pf(b.availableLabels),B(2),G(a.isPendingCustomField?-1:6),B(),G(a.isPendingCustomField?-1:7),B(),G(a.label.customFieldId?8:-1),B(),G(a.isPendingCustomField?9:-1))},F0b=function(a,b){if(a&1){var c=t();K(0,"button",54);N("click",function(){var d=u(c).$implicit,
e=P(2);return v(e.addExpression(d[0]))});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a[1]," "))},G0b=function(a){a&1&&(K(0,"div",1)(1,"div",2)(2,"span",3),Q(3,"Advanced search query builder"),L(),F(4,o_b,5,3,"mat-form-field",4),L(),Of(5,E0b,11,5,"div",5,Mf),K(7,"div",6)(8,"button",7),Q(9),L(),K(10,"mat-menu",8,0),Of(12,F0b,2,1,"button",9,Nf),L()()());if(a&2){a=qg(11);var b=P();B(4);G(b.expressions.length?4:-1);B();Pf(b.expressions);B(3);I("matMenuTriggerFor",a);B();S(" ",b.expressionType," ... ");B(3);
Pf(b.availableLabels)}},I0b=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(H0b(c))});Q(1);L()}a&2&&(a=P(),B(),S(" ",a.buttonLabel," "))},J0b=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(H0b(c))});M(1,"mat-icon",4);Q(2);L()}a&2&&(a=P(),I("matTooltip","Open release notes"),B(),I("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(),S(" ",a.buttonLabel," "))},K0b=function(a){if(a&1){var b=t();
K(0,"button",9);N("click",function(c){u(b);var d=P();return v(d.manageSlos(c))});Q(1,"Manage SLOs");L()}},L0b=function(a){a&1&&M(0,"mat-divider")(1,"b-whats-new-button",11);a&2&&(B(),I("menuMode",!0))},M0b=function(a){a&1&&M(0,"b-whats-new-button",0);a&2&&(a=P(),I("alertMode",a.majorReleaseNotesUpdated))},N0b=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);P().userFeedback.startFeedback();return v()});M(1,"mat-icon",5);L()}},O0b=function(a){if(a&1){var b=t();K(0,"button",5);
N("click",function(){u(b);var c=P();return v(c.clickMenu.emit())});M(1,"mat-icon",6);L()}},R0b=function(a,b){a&1&&(K(0,"output",7),Q(1),L());a&2&&(a=b.$implicit,xg(a.color?Ig(3,P0b,a.color):Hg(5,Q0b)),B(),yg(a.name))},S0b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected hotlist: "),K(2,"strong"),Q(3),L()());a&2&&(a=P(3),B(3),yg(a.header.hotlist.name))},T0b=function(a){a&1&&Q(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},U0b=function(a){a&1&&F(0,S0b,4,
1,"span")(1,T0b,1,0);a&2&&(a=P(2),G(a.header.hotlist?0:1))},V0b=function(a){a&1&&(K(0,"span"),Q(1,"Currently selected saved search: "),K(2,"strong"),Q(3),L()());a&2&&(a=P(3),B(3),yg(a.header.savedSearch.name))},W0b=function(a){a&1&&Q(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},X0b=function(a){a&1&&F(0,V0b,4,1,"span")(1,W0b,1,0);a&2&&(a=P(2),G(a.header.savedSearch?0:1))},Y0b=function(a){a&1&&(K(0,"span"),Q(1," and "),K(2,"strong"),Q(3,"subcomponents"),L()())},
Z0b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected component: "),K(2,"strong",3),Q(3),L(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),F(6,Y0b,4,0,"span"),L());if(a&2){a=P(3);B(3);var b=a.header.component,c=fu(a.trackerHelpers,b.componentPathInfo);yg(c&&c.componentPathName?c.componentPathName.join(" > "):b.name);B();I("accessLevel",a.header.component.accessLimit==null?null:a.header.component.accessLimit.accessLevel);B();I("trackerId",a.header.component.trackerId);
B();G(a.header.includeChildren?6:-1)}},$0b=function(a){a&1&&Q(0," Start typing a component name or ID to see auto-complete suggestions. ")},a1b=function(a){a&1&&F(0,Z0b,7,4,"span")(1,$0b,1,0);a&2&&(a=P(2),G(a.header.component?0:1))},b1b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected tracker: "),K(2,"strong"),Q(3),L()());a&2&&(a=P(3),B(3),yg(a.header.tracker.name))},c1b=function(a){a&1&&Q(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},d1b=function(a){a&1&&F(0,b1b,
4,1,"span")(1,c1b,1,0);a&2&&(a=P(2),G(a.header.tracker?0:1))},e1b=function(a){a&1&&(K(0,"span"),Q(1," and "),K(2,"strong"),Q(3,"subteams"),L()())},f1b=function(a){a&1&&(K(0,"span"),Q(1," Currently selected team: "),K(2,"strong"),Q(3),L(),F(4,e1b,4,0,"span"),L());a&2&&(a=P(3),B(3),yg(a.header.team.name),B(),G(a.header.includeChildren?4:-1))},g1b=function(a){a&1&&Q(0," Start typing a team name or ID to see auto-complete suggestions. ")},h1b=function(a){a&1&&F(0,f1b,5,2,"span")(1,g1b,1,0);a&2&&(a=P(2),
G(a.header.team?0:1))},i1b=function(a,b){a&1&&(K(0,"span"),Q(1," Currently selected custom field: "),K(2,"strong"),Q(3),L(),Q(4," of type "),K(5,"strong"),Q(6),T(7,"lowercase"),L(),Q(8,". "),L());a&2&&(B(3),yg(b.name),B(3),yg(U(7,2,b.type)))},j1b=function(a){a&1&&Q(0," Start typing a custom field name or ID to see auto-complete suggestions. ")},k1b=function(a){a&1&&F(0,i1b,9,4,"span")(1,j1b,1,0);if(a&2){var b;a=P(2);G((b=a.header.customField)?0:1,b)}},l1b=function(a){a&1&&(K(0,"div",0),F(1,U0b,2,
1),F(2,X0b,2,1),F(3,a1b,2,1),F(4,d1b,2,1),F(5,h1b,2,1),F(6,k1b,2,1),L());a&2&&(a=P(),B(),G(a.header.type==="hotlist"?1:-1),B(),G(a.header.type==="savedsearch"?2:-1),B(),G(a.header.type==="component"?3:-1),B(),G(a.header.type==="tracker"?4:-1),B(),G(a.header.type==="team"?5:-1),B(),G(a.header.type==="customfield"?6:-1))},m1b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),zg(" ",a.id,": ",a.name," "))},n1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L()());a&2&&(a=P().$implicit,
B(),S(" Hotlist ",a.id,": "),B(2),yg(a.name))},o1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L(),M(4,"br"),K(5,"span",7),Q(6),L()());a&2&&(a=P().$implicit,B(),S(" Saved search ",a.id,": "),B(2),yg(a.name),B(3),yg(a.query))},p1b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),S(" ",a.name," "))},q1b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},s1b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;r1b(f);return v(e.stopPropagation())});
Q(1);L();F(2,q1b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Fg("",a.id,": ",a.name));B();yg(a.name);B();G(d!==b-1?2:-1)}},t1b=function(a){a&1&&(K(0,"span"),Q(1," Component "),K(2,"strong",3),Q(3),L(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),K(6,"span",8),Of(7,s1b,3,5,null,null,Nf),L()());a&2&&(a=P().$implicit,B(3),yg(a.id),B(),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),Pf(a.componentPath))},
u1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L()());a&2&&(a=P().$implicit,B(),S(" Tracker ",a.id,": "),B(2),yg(a.name))},v1b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},w1b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;r1b(f);return v(e.stopPropagation())});Q(1);L();F(2,v1b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Fg("",a.id,": ",a.name));B();yg(a.name);B();G(d!==b-1?2:-1)}},x1b=function(a){a&1&&(K(0,"span"),Q(1,
" Team "),K(2,"strong"),Q(3),L(),K(4,"span",8),Of(5,w1b,3,5,null,null,Nf),L()());a&2&&(a=P().$implicit,B(3),yg(a.id),B(2),Pf(a.teamPath))},y1b=function(a){a&1&&(K(0,"span"),Q(1," > "),L())},z1b=function(a,b){a&1&&(K(0,"span"),Q(1),L(),F(2,y1b,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();yg(a);B();G(c!==b-1?2:-1)}},A1b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"span"),Q(3),L(),K(4,"span",10),Of(5,z1b,3,2,null,null,Nf),L()());a&2&&(a=P().$implicit,B(),S(" Custom Field ",a.id,": "),
B(2),yg(a.name),B(2),Pf(a.componentPathNames))},B1b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P().$implicit,B(),zg(" ",a.label,": ",a.name," "))},D1b=function(a,b){if(a&1){var c=t();K(0,"b-app-search-auto-complete-option",6);N("optionClicked",function(e){u(c);var f=P();e>=0&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&C1b(e),f.itemSelected.emit(e));return v()});F(1,m1b,2,2,"span");F(2,n1b,4,2,"span");F(3,o1b,7,3,"span");F(4,p1b,2,1,"span");F(5,t1b,9,3,"span");F(6,u1b,4,2,"span");
F(7,x1b,7,1,"span");F(8,A1b,7,2,"span");F(9,B1b,2,2,"span");L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();Kf("id",Eg("b-app-search-option-",b));I("index",b)("isActive",b>=0&&b<d.items.length?b===d.activeItemIndex:!1);B();G(a.completionCfg.type==="issue"?1:-1);B();G(a.completionCfg.type==="hotlist"?2:-1);B();G(a.completionCfg.type==="savedsearch"?3:-1);B();G(a.completionCfg.type==="atom"?4:-1);B();G(a.completionCfg.type==="component"?5:-1);B();G(a.completionCfg.type==="tracker"?6:-1);B();G(a.completionCfg.type===
"team"?7:-1);B();G(a.completionCfg.type==="customField"?8:-1);B();G(d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type)?-1:9)}},F1b=function(a,b){var c=0,d=0;E1b(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},E1b=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}},H1b=function(a){if(a&1){var b=t();K(0,"div",21)(1,"input",22,2);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.searchName,c)||(d.searchName=c);return v(c)});N("keydown.Tab",function(){u(b);var c=
P();return v(G1b(c))})("keydown.enter",function(){u(b);var c=P();return v(c.saveSearch())});L();K(3,"button",18);N("click",function(){u(b);var c=P();return v(c.saveSearch())});Q(4," Save ");L()()}a&2&&(a=P(),B(),Ag("ngModel",a.searchName),B(2),I("disabled",!a.searchName))},I1b=function(a){a&1&&(K(0,"span",9),Q(1),L());a&2&&(a=P(),wg("muted",a.disabled),B(),yg(a.cardTitle))},J1b=function(a){a&1&&(K(0,"mat-select-trigger"),M(1,"mat-icon",15),K(2,"span"),Q(3),L()());a&2&&(a=P(3),B(),I("svgIcon",a.selectedOption.icon),
B(2),yg(a.selectedOption.displayText))},K1b=function(a){a&1&&M(0,"mat-icon",15);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},L1b=function(a,b){a&1&&(K(0,"mat-option",14),F(1,K1b,1,1,"mat-icon",15),Q(2),L());a&2&&(a=b.$implicit,I("value",a),B(),G(a.icon?1:-1),B(),S(" ",a.displayText," "))},M1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",12)(1,"mat-label");Q(2," Choose type... ");L();K(3,"mat-select",13);Cg("valueChange",function(c){u(b);var d=P(2);Bg(d.selectedOption,c)||(d.selectedOption=c);
return v(c)});N("selectionChange",function(c){u(b);P(2).dropdownSelectionChanged.emit(c.value);return v()});F(4,J1b,4,2,"mat-select-trigger");Of(5,L1b,3,3,"mat-option",14,Nf);L()()}a&2&&(a=P(2),B(3),I("disabled",a.disabled),Ag("value",a.selectedOption),B(),G(a.selectedOption&&a.selectedOption.icon?4:-1),B(),Pf(a.dropdownOptions))},N1b=function(a){if(a&1){var b=t();K(0,"mat-form-field",10)(1,"input",11);N("ngModelChange",function(c){u(b);var d=P();return v(d.cardTitleChange.emit(c))});L()();F(2,M1b,
7,3,"mat-form-field",12)}a&2&&(a=P(),B(),wg("muted",a.disabled||!a.selected),I("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),Kf("aria-label",a.ariaLabelForCardTitle),B(),G(a.dropdownOptions.length?2:-1))},O1b=function(a){a&1&&M(0,"mat-icon",5)},P1b=function(a){a&1&&M(0,"mat-icon",6)},Q1b=function(a){a&1&&(K(0,"div",7),dg(1),L())},R1b=function(a){a&1&&(K(0,"button",18),M(1,"mat-icon",22),L());a&2&&(a=P(2),I("disabled",a.disabled))},S1b=function(a){a&
1&&M(0,"mat-divider",19);a&2&&I("vertical",!0)},T1b=function(a){a&1&&(K(0,"mat-slide-toggle",20),Q(1," Required "),L());a&2&&(a=P(2),I("disabled",a.disabled))},U1b=function(a){if(a&1){var b=t();K(0,"mat-slide-toggle",23);N("change",function(c){u(b);var d=P(2);return v(d.isInheritedChange.emit(c))});Q(1," Inherited ");L()}a&2&&(a=P(2),I("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},V1b=function(a){if(a&
1){var b=t();K(0,"div",8)(1,"button",16);N("click",function(){u(b);var c=P();return v(c.onSave())});Q(2," Save ");L();K(3,"button",17);N("click",function(){u(b);var c=P();return v(c.onCancel())});Q(4," Cancel ");L();F(5,R1b,2,1,"button",18);F(6,S1b,1,1,"mat-divider",19);F(7,T1b,2,1,"mat-slide-toggle",20);F(8,U1b,2,4,"mat-slide-toggle",21);L()}a&2&&(a=P(),B(),I("disabled",a.isSaveButtonDisabled),B(2),I("disabled",a.disabled),B(2),G(a.showDeleteButton?5:-1),B(),G(a.showDeleteButton&&a.showRequiredToggle?
6:-1),B(),G(a.showRequiredToggle?7:-1),B(),G(a.showInheritedToggle?8:-1))},W1b=function(a,b){a&1&&(K(0,"mat-option",6),Q(1),L());a&2&&(a=b.$implicit,I("value",a),B(),yg(a.name))},X1b=function(a){if(a&1){var b=t();K(0,"mat-form-field")(1,"mat-select",5);Cg("valueChange",function(c){u(b);var d=P();Bg(d.selected,c)||(d.selected=c);return v(c)});Of(2,W1b,2,2,"mat-option",6,Nf);L()()}a&2&&(a=P(),B(),Ag("value",a.selected),B(),Pf(a.options))},Y1b=function(a){a&1&&Q(0," All the available shared fields have been activated. ")},
Z1b=function(a){a&1&&(K(0,"div"),Q(1," Once activated, the shared field will appear in the right panel of all issues. This only affects the visibility of the shared field in Buganizer UI. "),K(2,"a",7),Q(3,"Learn more"),L()())},$1b=function(a){a&1&&(K(0,"h3"),Q(1),L());a&2&&(a=P(2),B(),S(" Edit Custom Field ",a.editableField.customFieldId," "))},a2b=function(a){a&1&&(K(0,"h3"),Q(1," Create Custom Field "),L())},b2b=function(a){a&1&&(K(0,"div",10),Q(1),L());a&2&&(a=P(2),B(),S(" ",a.serverError," "))},
d2b=function(a,b){a&1&&(K(0,"button",24),Q(1),T(2,"enumToHuman"),L());a&2&&(a=b.$implicit,P(),b=qg(33),I("matMenuTriggerFor",b)("matMenuTriggerData",Ig(5,c2b,a)),B(),S(" ",U(2,3,a)," "))},e2b=function(a,b){if(a&1){var c=t();K(0,"button",40);N("click",function(){var d=u(c).$implicit,e=P().type,f=P(2);return v(f.setType(e,d==="Multiple"))});Q(1);L()}a&2&&(a=b.$implicit,B(),S(" ",a," "))},f2b=function(a){a&1&&Of(0,e2b,2,1,"button",39,Nf);a&2&&(a=P(2),Pf(a.secondaryTypes))},h2b=function(a){if(a&1){var b=
t();K(0,"td",12)(1,"label",41);Q(2," Allowed Values: ");L();K(3,"b-list-field",42);N("valuesChange",function(c){u(b);var d=P(2);return v(g2b(d,c.values))});L()()}a&2&&(a=P(2),B(3),I("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue||null)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},i2b=function(a){a&1&&(K(0,"label",26),Q(1," Default Value: "),L())},l2b=function(a,b){if(a&1){var c=t();K(0,"b-edit-field",
43);N("valueChange",function(d){u(c);var e=P(2);j2b(e,d);return v()});L()}a&2&&(a=P(2),I("name","Default")("type",b)("tooltip","Set default value")("value",k2b(a))("choices",a.allowedValues)("showEnumTitle",!0)("disabled",a.isSaving)("truncate",!0)("clearable",!0))},m2b=function(a){a&1&&(K(0,"label",28),Q(1," Default Values: "),L())},n2b=function(a,b){if(a&1){var c=t();K(0,"b-list-field",44);N("valuesChange",function(d){u(c);var e=P(2);j2b(e,d.values);return v()});L()}a&2&&(a=P(2),I("defaultLineCount",
3)("type",b)("tooltip","Set default values")("values",a.getListFieldValues())("enumChoices",a.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",a.isSaving)("truncate",!0))},o2b=function(a,b){if(a&1){var c=t();K(0,"button",45);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.setFieldSignificance(d))});Q(1);T(2,"enumToHuman");L()}a&2&&(a=b.$implicit,B(),S(" ",U(2,1,a)," "))},p2b=function(a){if(a&1){var b=t();K(0,"div",8);F(1,$1b,2,1,"h3")(2,a2b,2,0,"h3");F(3,b2b,2,1,"div",
10);K(4,"form",11)(5,"div",12)(6,"label",13);Q(7,"Name:");L();K(8,"input",14);Cg("ngModelChange",function(l){u(b);var r=P();Bg(r.editableField.name,l)||(r.editableField.name=l);return v(l)});L()();K(9,"div",12)(10,"label",15);Q(11,"Description:");L();K(12,"textarea",16);Cg("ngModelChange",function(l){u(b);var r=P();Bg(r.editableField.description,l)||(r.editableField.description=l);return v(l)});L()();K(13,"table",17)(14,"tr")(15,"td",12)(16,"div",18)(17,"label",19);Q(18," Type: ");L();K(19,"onedev-hovercard",
null,0)(21,"div",20)(22,"div",21);Q(23," You can only choose type of field when creating a new custom field. You won't be able to edit it after the custom field is created. ");L()()()();K(24,"button",22);Q(25);T(26,"enumToHuman");M(27,"b-icon",23);L();K(28,"mat-menu",null,1);Of(30,d2b,3,7,"button",24,Nf);L();K(32,"mat-menu",null,2);E(34,f2b,2,0,"ng-template",25);L()();F(35,h2b,4,7,"td",12);K(36,"td",12);F(37,i2b,2,0,"label",26);F(38,l2b,1,9,"b-edit-field",27);F(39,m2b,2,0,"label",28);F(40,n2b,1,8,
"b-list-field",29);L();K(41,"td",12)(42,"label",30);Q(43," Required: ");L();K(44,"b-edit-field",31);N("valueChange",function(l){u(b);var r=P();return v(r.editableField.required=!!l)});L()();K(45,"td",12)(46,"div",18)(47,"label",32);Q(48," Field Significance: ");L();K(49,"onedev-hovercard",null,3)(51,"div",33)(52,"div",21);Q(53," This affects whether users will receive notifications when changes are made to this field. ");M(54,"br");Q(55," See\u00a0 ");K(56,"a",34);Q(57,"Email Settings ");L()()()()();
K(58,"button",35);Q(59);T(60,"enumToHuman");M(61,"b-icon",23);L();K(62,"mat-menu",null,4);Of(64,o2b,3,3,"button",36,Nf);L()()()();K(66,"button",37);N("click",function(){u(b);var l=P();return v(l.save())});Q(67," Save ");L();K(68,"button",38);N("click",function(){u(b);var l=P();return v(l.cancel())});Q(69," Cancel ");L()()()}if(a&2){var c,d;a=qg(20);var e=qg(29),f=qg(50),g=qg(63),k=P();B();G(k.editableField.customFieldId?1:2);B(2);G(k.serverError?3:-1);B(5);I("bFocus",k.editableField&&!k.isLoading);
Ag("ngModel",k.editableField.name);I("disabled",k.isSaving);B(4);Ag("ngModel",k.editableField.description);I("disabled",k.isSaving);B(5);I("onedevHovercardTrigger",a);B(7);I("matMenuTriggerFor",e)("disabled",!!k.editableField.customFieldId);B();S(" ",U(26,25,k.editableField.type)," ");B(5);Pf(k.typeChoices);B(5);G(["REPEATED_ENUM","ENUM"].includes(k.editableField.type)?35:-1);B(2);G(k.isRepeated(k.editableField)?-1:37);B();G((c=k.getSingleEditFieldType(k.editableField))?38:-1,c);B();G(k.isRepeated(k.editableField)?
39:-1);B();G((d=k.getListFieldType(k.editableField))?40:-1,d);B(4);I("name","Required")("type",k.FieldType.BOOL)("tooltip","Whether the field is required")("value",k.editableField.required);B(3);I("onedevHovercardTrigger",f);B(9);I("href",k.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Pe);B(2);I("matMenuTriggerFor",g);B();S(" ",U(60,27,k.editableField.fieldSignificance)," ");B(5);Pf(k.significanceChoices);B(2);I("disabled",!k.hasUnsavedChanges()||!k.editableField.name)}},q2b=
function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",46),L());a&2&&(B(),I("large",!0))},r2b=function(a){a&1&&(K(0,"th"),Q(1,"Actions"),L())},t2b=function(a){if(a&1){var b=t();K(0,"td",51)(1,"button",52);N("click",function(){u(b);var c=P().$index,d=P(2);return v(d.editField(c))});Q(2,"Edit");L();K(3,"button",52);N("click",function(){u(b);var c=P().$index,d=P(2);return v(s2b(d,c))});Q(4,"Delete");L()()}},u2b=function(a,b){a&1&&(K(0,"tr",48)(1,"td"),Q(2),L(),K(3,"td"),Q(4),L(),K(5,"td"),Q(6),T(7,"enumToHuman"),
L(),K(8,"td"),Q(9),L(),K(10,"td"),Q(11),T(12,"yesNo"),L(),K(13,"td"),M(14,"b-custom-field-value-display",50),L(),K(15,"td"),Q(16),T(17,"arrayToHuman"),L(),K(18,"td"),Q(19),T(20,"enumToHuman"),L(),F(21,t2b,5,0,"td",51),L());a&2&&(a=b.$implicit,b=P(2),B(2),yg(a.name),B(2),yg(a.customFieldId),B(2),yg(U(7,9,a.type)),B(3),yg(a.description),B(2),yg(U(12,11,a.required)),B(3),I("customFieldValue",a.typedDefaultValue),B(2),yg(U(17,13,a.allowedValue)),B(3),yg(U(20,15,a.fieldSignificance)),B(2),G(b.editMode?
21:-1))},v2b=function(a){a&1&&(K(0,"tr")(1,"td",53),Q(2," There are no custom fields defined on this component. "),L()())},w2b=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),Q(3,"Fields inherited from parent components"),L()()())},x2b=function(a){a&1&&(Uf(0),M(1,"b-component-card",60,6),Vf());if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},y2b=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td");Q(2);L();K(3,"td");Q(4);L();K(5,
"td");Q(6);T(7,"enumToHuman");L();K(8,"td");Q(9);L();K(10,"td");Q(11);T(12,"yesNo");L();K(13,"td");M(14,"b-custom-field-value-display",50);L();K(15,"td");Q(16);T(17,"arrayToHuman");L();K(18,"td");Q(19);T(20,"enumToHuman");L();K(21,"td",51)(22,"div",56)(23,"div",57);Q(24,"Inherited From");L();K(25,"a",58);N("click",function(){u(c);var e=P(3);return v(e.trackClick("parentCustomFields"))});Q(26);L();K(27,"onedev-hovercard",null,5);E(29,x2b,3,2,"ng-container",59);L()()()()}if(a&2){a=b.$implicit;b=qg(28);
var d=P(3);xg(a.enabledOnIssues?"enabled-field":"disabled-field");B(2);yg(a.name);B(2);yg(a.customFieldId);B(2);yg(U(7,13,a.type));B(3);yg(a.description);B(2);yg(U(12,15,a.required));B(3);I("customFieldValue",a.typedDefaultValue);B(2);yg(U(17,17,a.allowedValue));B(3);yg(U(20,19,a.fieldSignificance));B(6);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentFields.makeHref(a.componentId),Pe);B();S(" ",d.componentIdsToNames[a.componentId]," ")}},z2b=function(a){a&1&&Of(0,y2b,30,21,"tr",55,Nf);
a&2&&(a=P(2),Pf(a.inheritedCustomFields))},A2b=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),Q(3,"Shared fields"),L()()())},C2b=function(a){if(a&1){var b=t();K(0,"div",51)(1,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(B2b(e,d.customFieldId))});Q(2," Deactivate ");L()()}if(a&2){a=P().$implicit;var c=P(3);B();I("disabled",c.fieldsEnabledOnParentComponent.has(a.customFieldId))("matTooltip",c.fieldsEnabledOnParentComponent.has(a.customFieldId)?a.name+" is inherited from its parent component.\n        To deactivate this field, go to the parent component\n        that activates this shared field.":
"")}},D2b=function(a,b){a&1&&(K(0,"tr",48)(1,"td"),Q(2),L(),K(3,"td"),Q(4),L(),K(5,"td"),Q(6),T(7,"enumToHuman"),L(),K(8,"td"),Q(9),L(),K(10,"td"),Q(11),T(12,"yesNo"),L(),K(13,"td"),M(14,"b-custom-field-value-display",50),L(),K(15,"td"),Q(16),T(17,"arrayToHuman"),L(),K(18,"td"),Q(19),T(20,"enumToHuman"),L(),K(21,"td"),F(22,C2b,3,2,"div",51),L()());a&2&&(a=b.$implicit,b=P(3),B(2),yg(a.name),B(2),yg(a.customFieldId),B(2),yg(U(7,9,a.type)),B(3),yg(a.description),B(2),yg(U(12,11,a.required)),B(3),I("customFieldValue",
a.typedDefaultValue),B(2),yg(U(17,13,a.allowedValue)),B(3),yg(U(20,15,a.fieldSignificance)),B(3),G(b.editMode?22:-1))},E2b=function(a){a&1&&Of(0,D2b,23,17,"tr",48,Nf);a&2&&(a=P(2),Pf(a.sharedFields))},F2b=function(a){a&1&&(K(0,"tfoot")(1,"tr")(2,"td",54),Q(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),K(4,"a",62),Q(5,"Field Ordering"),L(),Q(6," tab."),M(7,"br"),Q(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
L()()())},I2b=function(a){if(a&1){var b=t();K(0,"div",49)(1,"button",63);N("click",function(){u(b);var c=P(2);c.editableField={customFieldId:0,componentId:void 0,name:"",type:"TEXT",description:"",typedDefaultValue:void 0,required:!1,fieldSignificance:"MINOR",allowedValue:void 0,stateOnIssues:"INHERIT",enabledOnIssues:!1,shared:!1};c.originalEditableFieldValue=pm(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return v()});Q(2," Add a Custom Field ");L();K(3,"button",64);
N("click",function(){u(b);var c=P(2);return v(G2b(c))});Q(4," Activate a Shared Field ");L()()}a&2&&(a=P(2),B(3),I("disabled",H2b(a).length==0))},J2b=function(a){a&1&&(K(0,"div")(1,"table",47)(2,"tr")(3,"th"),Q(4,"Name"),L(),K(5,"th"),Q(6,"ID"),L(),K(7,"th"),Q(8,"Type"),L(),K(9,"th"),Q(10,"Description"),L(),K(11,"th"),Q(12,"Required?"),L(),K(13,"th"),Q(14,"Default Value"),L(),K(15,"th"),Q(16,"Allowed Values"),L(),K(17,"th"),Q(18,"Field Significance"),L(),F(19,r2b,2,0,"th"),L(),Of(20,u2b,22,17,"tr",
48,Nf),F(22,v2b,3,0,"tr"),F(23,w2b,4,0,"tr"),F(24,z2b,2,0),F(25,A2b,4,0,"tr"),F(26,E2b,2,0),F(27,F2b,9,0,"tfoot"),L(),F(28,I2b,5,1,"div",49),L());a&2&&(a=P(),B(19),G(a.editMode?19:-1),B(),Pf(a.customFields),B(2),G(a.customFields.length?-1:22),B(),G(a.inheritedCustomFields.length?23:-1),B(),G(a.inheritedCustomFields.length?24:-1),B(),G(a.sharedFields.length?25:-1),B(),G(a.sharedFields.length?26:-1),B(),G(a.customFields.length?27:-1),B(),G(a.editMode?28:-1))},K2b=function(a){if(a&1){var b=t();K(0,"button",
17);N("click",function(){u(b);var c=P().$index,d=P();return v(d.removeAtIndex.emit(c))});M(1,"mat-icon",18);L()}a&2&&(a=P().$implicit,Kf("aria-label","Delete row "+a.label))},L2b=function(a,b){if(a&1){var c=t();K(0,"div",9)(1,"div",11);M(2,"mat-icon",12);K(3,"div",3)(4,"mat-form-field",13)(5,"input",14,0);N("change",function(d){var e=u(c).$index,f=P();f.options[e].label=d.target.value;f.optionsChange.emit(f.options);return v()});L()()();K(7,"div",3)(8,"mat-form-field",13)(9,"input",15,1);N("change",
function(d){var e=u(c).$index,f=P();return v(f.valueChange(d,e))});L()()();F(11,K2b,2,1,"button",16);L()()}a&2&&(a=b.$implicit,b=P(),B(4),I("appearance","outline"),B(),wg("muted",b.disabled),I("value",a.label)("placeholder",a.label==null?"Dropdown value":"")("disabled",b.disabled),B(3),I("appearance","outline"),B(),wg("muted",b.disabled),I("value",a.value)("placeholder",a.value==null?"Average days":"")("disabled",b.disabled),B(2),G(b.disabled?-1:11))},M2b=function(a){if(a&1){var b=t();K(0,"button",
19);N("click",function(){u(b);var c=P();return v(c.addRow.emit())});Q(1," Add row ");L()}},N2b=function(a){a&1&&Wf(0)},O2b=function(a){a&1&&E(0,N2b,1,0,"ng-container",5);a&2&&(P(),a=qg(7),I("ngTemplateOutlet",a))},P2b=function(a){if(a&1){var b=t();K(0,"b-numeric-config",6);Cg("valueChange",function(c){u(b);var d=P();Bg(d.numericSpecMultiplier,c)||(d.numericSpecMultiplier=c);return v(c)});L()}a&2&&(a=P(),I("disabled",a.disabled),Ag("value",a.numericSpecMultiplier))},Q2b=function(){},R2b=function(a){if(a&
1){var b=t();K(0,"div",4)(1,"label",7);Q(2,"Aggregation Rule");L();K(3,"a",8);M(4,"mat-icon",9);L();M(5,"br");K(6,"mat-form-field",10)(7,"mat-select",11);Cg("valueChange",function(c){u(b);var d=P();Bg(d.selectedAggregationRule,c)||(d.selectedAggregationRule=c);return v(c)});K(8,"mat-select-trigger");Q(9);T(10,"aggregationRuleText");L();K(11,"mat-option",12)(12,"div",13);Q(13);T(14,"aggregationRuleText");L();K(15,"div",14);Q(16,"All parents and children are added to the total");L()();K(17,"mat-option",
12)(18,"div",13);Q(19);T(20,"aggregationRuleText");L();K(21,"div",14);Q(22,"Take the assigned estimate if larger than total of all immediate children");L()()()()()}a&2&&(a=P(),B(7),Ag("value",a.selectedAggregationRule),I("disabled",a.disabled),B(2),S(" ",U(10,7,a.selectedAggregationRule)," "),B(2),I("value",a.aggregationRules.SUM),B(2),yg(U(14,9,a.aggregationRules.SUM)),B(4),I("value",a.aggregationRules.MAX),B(2),yg(U(20,11,a.aggregationRules.MAX)))},S2b=function(a){if(a&1){var b=t();K(0,"b-config-grid",
15);Cg("optionsChange",function(c){u(b);var d=P();Bg(d.enumSpecOptions,c)||(d.enumSpecOptions=c);return v(c)});N("addRow",function(){u(b);var c=P();return v(c.addRow())})("removeAtIndex",function(c){u(b);P().enumSpecOptions.splice(c,1);return v()});L()}a&2&&(a=P(),Ag("options",a.enumSpecOptions),I("disabled",a.disabled||a.inherit))},T2b=function(a){a&1&&(K(0,"div",4),M(1,"b-team-warning",5),L());a&2&&(a=P(),B(),I("warningType",a)("messageOnly",!0))},U2b=function(a,b){a&1&&F(0,T2b,2,2,"div",4);a&2&&
(a=P(),G(!a.isAdmin||b!=="MISSING"&&b!=="DELETED"?-1:0))},V2b=function(a){if(a&1){var b=t();K(0,"div",0)(1,"mat-checkbox",6);N("change",function(c){u(b);var d=P();d.inherit=!c.checked;d.model.inherit=d.inherit;!d.isTopLevel&&d.inherit&&d.parentModel&&(d.model.id=d.parentModel.id);d.teamIdChanged$.next(d.model.id);d.modelChange.emit(d.model);return v()});Q(2," Override the inherited team ");L()()}a&2&&(a=P(),B(),I("disabled",!a.isAdmin)("checked",!a.inherit))},X2b=function(a){if(a&1){var b=t();K(0,
"a",8);N("click",function(){u(b);P(2);er("component","navigate","to-internal-team-page");return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),I("routerLink",W2b(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},Y2b=function(a){a&1&&F(0,X2b,2,2,"a",7);a&2&&(a=P(),G(W2b(a)?0:-1))},Z2b=function(a){if(a&1){var b=t();K(0,"a",11);N("click",function(){u(b);var c=P(2);er("component","linkout-moma","team",Number(c.model.id));return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),Kf("href",a.getMomaTeamLink(),
Pe))},$2b=function(a){a&1&&F(0,Z2b,2,1,"a",10);a&2&&(a=P(),G(W2b(a)?0:-1))},a3b=function(a){a&1&&(K(0,"th",14),Q(1," Order"),L())},b3b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.index,B(),S(" ",a+1," "))},c3b=function(a){a&1&&(K(0,"th",14),Q(1," Name"),L())},d3b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.name," "))},e3b=function(a){a&1&&(K(0,"th",14),Q(1," Type"),L())},f3b=function(a,b){a&1&&(K(0,"td",15),Q(1),T(2,"toCustomFieldTypeDisplayValue"),L());a&2&&
(a=b.$implicit,B(),S(" ",U(2,1,a.type)," "))},g3b=function(a){a&1&&(K(0,"th",14),Q(1," Required"),L())},h3b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.required?"Yes":"No"," "))},i3b=function(a){a&1&&(K(0,"th",14),Q(1," ID"),L())},j3b=function(a,b){a&1&&(K(0,"td",15),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customFieldId," "))},k3b=function(a){a&1&&M(0,"tr",16)},l3b=function(a){a&1&&M(0,"tr",17)},m3b=function(a){a&1&&(K(0,"div",12),Q(1," There are no custom fields defined on this component. "),
L())},p3b=function(a){if(a&1){var b=t();K(0,"div",13)(1,"div")(2,"button",18);N("click",function(){u(b);var c=P();return v(n3b(c))});Q(3," Reorder fields ");L();K(4,"button",18);N("click",function(){u(b);var c=P();return v(o3b(c))});Q(5," Reset ordering ");L()()()}a&2&&(a=P(),B(2),I("disabled",a.fields.length===0),B(2),I("disabled",a.fieldOrdering!=="CUSTOMIZED"))},q3b=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),B(),a=a.lineNumbers.length,S(" (",a+(a==1?" TODO":" TODOs"),") "))},s3b=function(a,
b){if(a&1){var c=t();K(0,"li",3)(1,"a",4);N("click",function(){u(c);var d=P(2);return v(d.trackClick("lineNumber"))});Q(2);L()()}a&2&&(a=b.$implicit,b=P(2),B(),I("href",r3b(b,a),Pe),B(),yg(a))},t3b=function(a){a&1&&(K(0,"span"),Q(1," ("),K(2,"ul",2),Of(3,s3b,3,2,"li",3,Nf),L(),Q(5,") "),L());a&2&&(a=P(),B(3),Pf(a.lineNumbers))},u3b=function(a){a&1&&(K(0,"section",2)(1,"div",4),M(2,"img",5),K(3,"p",6),Q(4," This issue has no insights "),L(),K(5,"p",7),Q(6," Automated tools can provide insights with detailed information about an issue. No insights were found for this issue. "),
L()()());a&2&&(a=P(),B(2),I("src",a.ROBOT_SLEEPING,Pe))},v3b=function(a){a&1&&M(0,"img",13);a&2&&(a=P(3),I("src",a.LOGO_PURPLE,Pe))},w3b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14);a&2&&I("formattedComment",b)},x3b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14,1);a&2&&I("formattedComment",b.formattedContent)},y3b=function(a){a&1&&M(0,"b-spinner")},z3b=function(a){a&1&&(F(0,x3b,2,1,"b-formatted-comment-presenter",14),T(1,"async"),Lf(2,y3b,1,0,"b-spinner"));if(a&2){var b;
a=P().$implicit;G((b=U(1,1,a.asyncContent))?0:2,b)}},A3b=function(a){a&1&&(K(0,"div"),Q(1,"No content was found for this enrichment."),L())},B3b=function(a,b){if(a&1){var c=t();K(0,"mat-expansion-panel",12,0);N("opened",function(){var e=u(c).$implicit,f=qg(1),g=P(2);return v(g.onExpand(e,f))})("closed",function(){var e=u(c).$implicit,f=P(2);f.logIssueUserEventForIssueEnrichment("EVENT_TYPE_CLOSE",e.category);var g=f.onScreenSubscriptions.get(e.category);g&&(g.unsubscribe(),f.onScreenSubscriptions.delete(e.category));
return v()});K(2,"mat-expansion-panel-header")(3,"mat-panel-title");F(4,v3b,1,1,"img",13);Q(5);L()();F(6,w3b,1,1,"b-formatted-comment-presenter",14)(7,z3b,3,3)(8,A3b,2,0,"div");K(9,"mat-action-row")(10,"span",15);M(11,"b-formatted-date-time",16);L();M(12,"insights-actions",17);L()()}if(a&2){var d;a=b.$implicit;b=P(2);I("id",Eg("insight-",a.category))("expanded",!0);B(4);G(b.FIRST_PARTY_ENRICHMENTS.includes(a.category)?4:-1);B();S(" ",a.displayName," ");B();G((d=a.general==null?null:a.general.formattedContent)?
6:a.asyncContent?7:8,d);B(5);I("timestamp",a.timestamp);B();I("enrichment",a)}},D3b=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P().accordion;c.multi&&c._openCloseAllActions.next(!0);return v()});Q(1," Expand all ");L();K(2,"button",9);N("click",function(){u(b);P().accordion.closeAll();return v()});Q(3," Collapse all ");L();K(4,"mat-accordion",10);Of(5,B3b,13,8,"mat-expansion-panel",11,C3b);L()}a&2&&(P(),a=bg(0),B(5),Pf(a))},E3b=function(a){a&1&&(K(0,"div",3),M(1,
"b-spinner"),L())},F3b=function(a){a&1&&(K(0,"a",4),Q(1," Create Component "),L());a&2&&(a=P(),I("href",a.createComponentPath,Pe))},G3b=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout",10)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",11);T(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(ps.editComponent.makeHref(d.componentId)));return v()});
L()()()}if(a&2){a=P();B(2);var c;I("includeArchived",(c=U(3,4,a.includeArchived$))!=null?c:!1)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1)}},I3b=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-slide-toggle",12);T(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)&&H3b(e,d,ie(e.topLevelComponents$));return v()});L()()}if(a&2){a=P();B();var c;I("model",(c=U(2,2,a.includeArchived$))!=null?c:!1)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components.")}},J3b=function(a){a&1&&(K(0,"div",8),M(1,"b-spinner",13),L())},K3b=function(a){a&1&&(K(0,"p",1),Q(1),L());a&2&&(a=P(),B(),yg(a.packageMentionSet.packageName))},L3b=function(a,b){a&1&&(K(0,"li"),M(1,"b-file-mention",2),L());a&2&&(a=b.$implicit,b=P(),B(),I("issueId",b.issueId)("packageName",
b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},M3b=function(a){a&1&&(K(0,"div",4),Q(1),L());a&2&&(a=P(),B(),S(" Signed in as ",a.activeSession.getUserEmail()," "))},N3b=function(a){a&1&&(K(0,"span",3),Q(1," Select at least one tracker "),L())},O3b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"mat-checkbox",6);N("change",function(d){var e=u(c).$implicit,f=P();return v(f.trackerCheckboxValues[e.trackerId]=d.checked)});Q(2);L()()}a&
2&&(a=b.$implicit,b=P(),B(),I("checked",b.trackerCheckboxValues[a.trackerId]||!1),B(),S(" ",a.name," "))},P3b=function(a){a&1&&M(0,"b-top-bar-outlet-body")},Q3b=function(a){a&1&&(M(0,"b-tracker-search",1),T(1,"async"));a&2&&(a=P(),I("currentTrackerId",a.currentTracker.trackerId)("availableTrackers",U(1,2,a.availableTrackers$)))},R3b=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),K(2,"span"),Q(3,"Initializing query builder..."),L()())},S3b=function(a){a&1&&(K(0,"div",6),M(1,"mat-icon",7),K(2,"p"),
Q(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),L()())},T3b=function(a){a&1&&(K(0,"div"),Q(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),L())},U3b=function(a){a&1&&(K(0,"div",4),F(1,S3b,4,0,"div",6),F(2,T3b,2,0,"div"),L());a&2&&(a=P(),B(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"?
1:-1),B(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?2:-1))},V3b=function(a){a&1&&(K(0,"div",4),Q(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),L())},W3b=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))},X3b=function(a){a&1&&M(0,"b-user-display-name",
8);a&2&&(a=P().$implicit,I("user",a.author))},Y3b=function(a){a&1&&(K(0,"span"),Q(1),M(2,"span",13),L());a&2&&(a=P(2).$implicit,B(),S(" ",a.diff.oldValue," "))},Z3b=function(a){a&1&&(K(0,"span")(1,"label"),Q(2),L(),F(3,Y3b,3,1,"span"),Q(4),L());a&2&&(a=P().$implicit,B(2),S("",a.fieldName,":"),B(),G(a.diff.oldValue?3:-1),B(),S(" ",a.diff.newValue," "))},$3b=function(a,b){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Q(3),L());a&2&&(a=b.$implicit,b=P(3).$implicit,B(2),S("-",b.fieldName,":"),B(),S(" ",a," "))},
a4b=function(a){a&1&&Of(0,$3b,4,2,"div",null,Nf);a&2&&(a=P(2).$implicit,Pf(a.diff.removed))},b4b=function(a,b){a&1&&(K(0,"div")(1,"label"),Q(2),L(),Q(3),L());a&2&&(a=b.$implicit,b=P(3).$implicit,B(2),S("+",b.fieldName,":"),B(),S(" ",a," "))},c4b=function(a){a&1&&Of(0,b4b,4,2,"div",null,Nf);a&2&&(a=P(2).$implicit,Pf(a.diff.added))},d4b=function(a){a&1&&(K(0,"div"),F(1,a4b,2,0),F(2,c4b,2,0),L());a&2&&(a=P().$implicit,B(),G(a.diff.removed?1:-1),B(),G(a.diff.added?2:-1))},e4b=function(a,b){a&1&&(K(0,
"div",12),F(1,Z3b,5,3,"span"),F(2,d4b,3,2,"div"),L());a&2&&(a=b.$implicit,b=P(2),B(),G(a.diffType==b.DiffType.SINGLE_VALUE?1:-1),B(),G(a.diffType==b.DiffType.COLLECTION?2:-1))},f4b=function(a,b){a&1&&(K(0,"li",2)(1,"div",5),M(2,"b-user-image",6),L(),K(3,"div",7)(4,"h4"),F(5,X3b,1,1,"b-user-display-name",8),K(6,"span",9),M(7,"b-formatted-date-time",10),L()(),K(8,"div",11),Of(9,e4b,3,2,"div",12,Nf),L()()());a&2&&(a=b.$implicit,b=P(),B(2),I("email",b.userToDisplay(a.author)),B(3),G(a.author?5:-1),B(2),
I("timestamp",a.timestamp),B(2),Pf(a.diffs))},g4b=function(a){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""))},h4b=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"},i4b=function(a,
b){a&1&&(K(0,"mat-option",2),Q(1),M(2,"br"),K(3,"span",3),Q(4),L()());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",a.title),B(3),yg(a.description))},k4b=function(a,b){a&1&&Wf(0,4);a&2&&(a=b.$implicit,P(),b=qg(3),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,j4b,a)))},l4b=function(a){a&1&&Wf(0,4);if(a&2){a=P().question;P();var b=qg(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,j4b,a))}},m4b=function(a){a&1&&Wf(0,4);if(a&2){a=P().question;P();var b=qg(7);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Ig(2,j4b,a))}},n4b=function(a){a&1&&Wf(0,4);if(a&2){a=P().question;P();var b=qg(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,j4b,a))}},o4b=function(a,b){a&1&&F(0,l4b,1,4,"ng-container",4)(1,m4b,1,4,"ng-container",4)(2,n4b,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)}},q4b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",6)(2,"input",7);N("ngModelChange",
function(d){var e=u(c).question,f=P();e.response=d;return v(p4b(f))});L()()}a&2&&(a=b.question,I("innerHtml",a.question,Oe),B(2),I("ngModel",a.response),Kf("aria-label",a.question))},r4b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",8)(2,"textarea",7);N("ngModelChange",function(d){var e=u(c).question,f=P();e.response=d;return v(p4b(f))});Q(3,"    ");L()()}a&2&&(a=b.question,I("innerHtml",a.question,Oe),B(2),I("ngModel",a.response),Kf("aria-label",a.question))},t4b=function(a,b){a&
1&&(K(0,"mat-option",10),Q(1),L());a&2&&(a=b.$implicit,P(2),I("value",a),B(),S(" ",s4b(a)?a.text:a," "))},u4b=function(a){a&1&&Wf(0,4);if(a&2){a=P().question;P();var b=qg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,j4b,a.response.child))}},v4b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",6)(2,"mat-select",9);N("valueChange",function(d){var e=u(c).question,f=P();e.response=d;return v(p4b(f))});Of(3,t4b,2,2,"mat-option",10,Nf);L()();F(5,u4b,1,4,"ng-container",4)}a&
2&&(a=b.question,P(),I("innerHtml",a.question,Oe),B(),Kf("aria-label",a.question),B(),I("value",a.response),B(),Pf(a.options),B(2),G(s4b(a.response)?5:-1))},w4b=function(a){a&1&&dg(0)},y4b=function(a){a&1&&Wf(0,2);a&2&&(a=P(),I("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",Kg(2,x4b,a.index,a.active,a.optional)))},z4b=function(a){a&1&&(K(0,"span",7),Q(1),L());a&2&&(a=P(2),B(),yg(a._getDefaultTextForState(a.state)))},A4b=function(a){a&1&&(K(0,"span",8),Q(1),L());a&2&&(a=P(3),
B(),yg(a._intl.completedLabel))},B4b=function(a){a&1&&(K(0,"span",8),Q(1),L());a&2&&(a=P(3),B(),yg(a._intl.editableLabel))},C4b=function(a){a&1&&(F(0,A4b,2,1,"span",8)(1,B4b,2,1,"span",8),K(2,"mat-icon",7),Q(3),L());a&2&&(a=P(2),G(a.state==="done"?0:a.state==="edit"?1:-1),B(3),yg(a._getDefaultTextForState(a.state)))},D4b=function(a){a&1&&F(0,z4b,2,1,"span",7)(1,C4b,4,2);a&2&&(a=P(),G(a.state==="number"?0:1))},E4b=function(a,b){a&1&&(K(0,"div",4),Wf(1,9),L());a&2&&(B(),I("ngTemplateOutlet",b.template))},
F4b=function(a){a&1&&(K(0,"div",4),Q(1),L());a&2&&(a=P(),B(),yg(a.label))},G4b=function(a){a&1&&(K(0,"div",5),Q(1),L());a&2&&(a=P(),B(),yg(a._intl.optionalLabel))},H4b=function(a){a&1&&(K(0,"div",6),Q(1),L());a&2&&(a=P(),B(),yg(a.errorMessage))},I4b=function(){},J4b=function(a){a&1&&(dg(0),E(1,I4b,0,0,"ng-template",0));a&2&&(a=P(),B(),I("cdkPortalOutlet",a._portal))},K4b=function(a){a&1&&dg(0)},M4b=function(a){a&1&&(K(0,"div",5),Wf(1,9)(2,6),L());if(a&2){a=P(2);var b=qg(6);B();I("ngTemplateOutlet",
a.headerPrefix());B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(3,L4b,a.steps))}},N4b=function(a){a&1&&Wf(0,6);if(a&2){a=P(2);var b=qg(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,L4b,a.steps))}},O4b=function(a,b){a&1&&(K(0,"div",10,2),Wf(2,9),L());if(a&2){a=b.$implicit;b=b.$index;var c=P(2);xg("mat-horizontal-stepper-content-"+c._getAnimationDirection(b));I("id",c._getStepContentId(b));Kf("aria-labelledby",c._getStepLabelId(b))("inert",c.selectedIndex===b?null:"");B(2);I("ngTemplateOutlet",
a.content)}},P4b=function(a){a&1&&(K(0,"div",3),F(1,M4b,3,5,"div",5)(2,N4b,1,4,"ng-container",6),K(3,"div",7),Of(4,O4b,3,6,"div",8,Nf),L()());a&2&&(a=P(),B(),G(a.headerPrefix()?1:2),B(3),Pf(a.steps))},Q4b=function(a){a&1&&Wf(0,9);a&2&&(a=P(2),I("ngTemplateOutlet",a.headerPrefix()))},S4b=function(a,b){a&1&&(K(0,"div",11),Wf(1,6),K(2,"div",12,2)(4,"div",13)(5,"div",14),Wf(6,9),L()()()());if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;var e=P(2),f=qg(4);B();I("ngTemplateOutlet",f)("ngTemplateOutletContext",
Ig(10,R4b,a));B();wg("mat-stepper-vertical-line",d!==b-1)("mat-vertical-content-container-active",e.selectedIndex===c);Kf("inert",e.selectedIndex===c?null:"");B(2);I("id",e._getStepContentId(c));Kf("aria-labelledby",e._getStepLabelId(c));B(2);I("ngTemplateOutlet",a.content)}},T4b=function(a){a&1&&(K(0,"div",4),F(1,Q4b,1,1,"ng-container",9),Of(2,S4b,7,12,"div",11,Nf),L());a&2&&(a=P(),B(),G(a.headerPrefix()?1:-1),B(),Pf(a.steps))},U4b=function(a,b){if(a&1){var c=t();K(0,"mat-step-header",15);N("click",
function(){var d=u(c).step;return v(d.select())})("keydown",function(d){u(c);var e=P();return v(e._onKeydown(d))});L()}a&2&&(a=b.step,b=P(),wg("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),Kf("role",b.orientation==="horizontal"?"tab":"button")("aria-posinset",b.orientation==="horizontal"?a.index()+1:null)("aria-setsize",b.orientation==="horizontal"?b.steps.length:null)("aria-selected",b.orientation==="horizontal"?a.isSelected():null)("aria-current",b.orientation==="vertical"&&a.isSelected()?"step":null)("aria-disabled",b.orientation==="vertical"&&a.isSelected()?
"true":null)("aria-expanded",b.orientation==="vertical"?a.isSelected():null)("aria-controls",b._getStepContentId(a.index()))("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",a.isNavigable()?null:!0))},V4b=function(a){a&1&&M(0,"div",17)},W4b=function(a,b){a&1&&(Wf(0,6),F(1,V4b,1,0,"div",17));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(2);var d=qg(4);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Ig(3,R4b,a));B();G(c!==
b-1?1:-1)}},X4b=function(a,b){a&1&&(K(0,"div",16),Of(1,W4b,2,5,null,null,Nf),L());a&2&&(a=b.steps,B(),Pf(a))},Y4b=function(a){a&1&&(K(0,"li"),Q(1,"I have read "),K(2,"a",57),Q(3,"Chrome Security FAQ"),L(),Q(4,"."),L(),K(5,"li"),Q(6,"I have read "),K(7,"a",58),Q(8,"Reporting Security Bugs"),L(),Q(9,"."),L(),K(10,"li"),Q(11,"I understand reports may be eligible for reward payments under the "),K(12,"a",59),Q(13,"Chrome VRP"),L(),Q(14,"."),L(),K(15,"li"),Q(16,"I understand issues are normally publicized once a fix has been widely deployed."),
L())},$4b=function(a){if(a&1){var b=t();K(0,"h4",5);Q(1,"Which of the following best describes the issue that you are reporting?");L();K(2,"wizard-category-select",52);Cg("categoryChange",function(c){u(b);var d=P();Bg(d.model.category,c)||(d.model.category=c);return v(c)});L();K(3,"mat-card",53)(4,"mat-card-header");Q(5," Ensure quality of issue reports: ");L();K(6,"mat-card-content")(7,"mat-checkbox",54);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.ackIssueQuality,c)||(d.ackIssueQuality=c);
return v(c)});Q(8," By checking this box, I'm acknowledging that: ");K(9,"ul")(10,"li");Q(11,"I have searched for ");K(12,"a",55);Q(13,"existing issues");L();Q(14," that already report this problem.");L();F(15,Y4b,17,0);L()()()();K(16,"div",36)(17,"button",39);Q(18," Next ");M(19,"mat-icon",56);L()()}a&2&&(a=P(),B(2),I("persona",a.model.persona),Ag("category",a.model.category),B(5),Ag("ngModel",a.ackIssueQuality),B(5),I("href",a.existingIssuesLink,Pe),B(3),G(a.model.persona===a.Persona.VULN_REPORTER?
15:-1),B(2),I("disabled",!Z4b(a,0)))},b5b=function(a){a&1&&(K(0,"div")(1,"h3"),Q(2,"Prefer to file an issue manually?"),L(),K(3,"p"),Q(4," It's usually best to work through this short wizard so that your issue is given the labels needed for the right team to see it. Otherwise it might take longer for your issue to be triaged and resolved. "),L(),K(5,"p"),Q(6," However, if you are a Chromium contributor and none of the other options apply, you may use the regular issue entry "),K(7,"a",55),Q(8,"form"),
L(),Q(9,". "),L()());a&2&&(a=P(),B(7),I("href",a.paths.createIssue(Hg(1,a5b)),Pe))},c5b=function(a){a&1&&(K(0,"mat-error"),Q(1," Summary is required "),L())},d5b=function(a){a&1&&(K(0,"mat-error"),Q(1," Steps to reproduce are required "),L())},e5b=function(a){a&1&&(K(0,"mat-error"),Q(1," Issue description is required "),L())},f5b=function(a){if(a&1){var b=t();K(0,"wizard-custom-questions",60);N("responses",function(c){u(b);var d=P();return v(d.model.customQuestionResponses=c)});L()}a&2&&(a=P(),I("category",
a.model.category.value))},g5b=function(a){if(a&1){var b=t();K(0,"div",47)(1,"b-recaptcha",61);N("onUpdate",function(c){u(b);var d=P();return v(d.recaptchaResponse=c)});L()()}},h5b=function(){},i5b=function(){},j5b=function(){},k5b=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},m5b=function(a){return a.length?"# Custom Questions\n"+l5b(a).map(function(b){var c;
return"#### "+((c=b.answerPrefix)!=null?c:b.question)+"\n"+b.response}).join("\n\n"):""},l5b=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,s4b(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,q(l5b([c.response.child])))):b.push(c);return b},n5b=function(a){a&1&&(K(0,"a",8),Q(1," Create Component "),L())},o5b=function(a){a&1&&(K(0,"p",16),Q(1," None found. "),K(2,"a",18),Q(3,"Learn More"),L()())},p5b=function(a){a&1&&(Uf(0),
M(1,"b-component-path-card",28,1),Vf());if(a&2){a=qg(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},q5b=function(a,b){a&1&&(K(0,"li")(1,"a",19)(2,"div",20)(3,"span",21),Q(4),M(5,"b-component-access-level-indicator",22)(6,"b-tracker-chip-smart",23),L(),K(7,"p",24),Q(8),L()(),K(9,"div",25)(10,"a",26),Q(11," Edit "),L(),K(12,"a",26),Q(13," Create Issue "),L()()(),K(14,"onedev-hovercard",null,0),E(16,p5b,3,2,"ng-container",27),L()());if(a&2){a=b.$implicit;
b=qg(15);var c=P(2);B();I("routerLinkObj",c.viewIssues(a.componentId));B();I("onedevHovercardTrigger",b);B(2);S(" ",a.name||a.componentId," ");B();I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel)("labelOnlyMode",!0);B();I("trackerId",a.trackerId)("showHovercard",!1);B(2);yg(a.description);B(2);I("routerLinkObj",c.componentSettings(a.componentId));B(2);I("routerLinkObj",c.createIssue(a.componentId))}},r5b=function(a,b){a&1&&(F(0,o5b,4,0,"p",16),K(1,"ol",17),Of(2,q5b,17,10,"li",null,
Nf),L());a&2&&(G(b.length===0?0:-1),B(2),Pf(b))},t5b=function(a){a&1&&(K(0,"a",23),Q(1," Learn more "),L());a&2&&(P(),I("href",s5b(),Pe))},u5b=function(a){a&1&&(Q(0),T(1,"async"));a&2&&(a=P(2),S(" ",U(1,1,a.suggestedTitle$)," "))},v5b=function(a){a&1&&M(0,"b-spinner")},w5b=function(a,b){if(a&1){var c=t();K(0,"button",17);N("click",function(){var d=u(c).$implicit;P();var e=qg(19),f=P();f.llmSuggestTitleService.generatedTitle.next(null);f.analytics.trackEvent("llm","reject","title-"+String(d));Pr(f.butterBar,
"Thanks for the feedback!",3E3);var g;(g=e.trigger)==null||g.close();return v()});K(1,"span");Q(2);L()()}a&2&&(a=b.$implicit,b=P(2),B(2),yg(b.REJECT_REASON_TO_DISPLAY.get(a)))},y5b=function(a){if(a&1){var b=t();K(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4);Q(4,"Suggested title");L();K(5,"div",5)(6,"button",6);N("click",function(){u(b);P().llmSuggestTitleService.suggestTitleRequested.next();return v()});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){u(b);var c=P();return v(c.close())});
M(9,"mat-icon",9);L()()();K(10,"div",10);F(11,u5b,2,3);T(12,"async");Lf(13,v5b,1,0,"b-spinner");L();K(14,"div",11)(15,"button",12);T(16,"async");N("click",function(){u(b);var c=P();return v(x5b(c))});Q(17," Accept ");L();K(18,"split-button",13,0);T(20,"async");K(21,"button",14);T(22,"async");N("click",function(){u(b);var c=P();c.llmSuggestTitleService.generatedTitle.next(null);c.analytics.trackEvent("llm","reject","title");return v()});Q(23," Reject ");L();K(24,"div",15);Of(25,w5b,3,1,"button",16,
Nf);L()()()()()}a&2&&(a=P(),B(11),G(U(12,5,a.isGeneratingTitle$)?13:11),B(4),I("disabled",U(16,7,a.isGeneratingTitle$)),B(3),I("size","small")("disabled",!!U(20,9,a.isGeneratingTitle$)),B(3),I("disabled",U(22,11,a.isGeneratingTitle$)),B(4),Pf(a.suggestedTitleRejectionReasons))},z5b=function(a){a&1&&(K(0,"a",3),M(1,"mat-icon",5),L())},A5b=function(a){a&1&&M(0,"b-spinner")},B5b=function(a,b){a&1&&M(0,"b-issues-table",4);a&2&&(a=P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions))},
C5b=function(a){var b=a.similarIssues;var c=a.scores;return b.filter(function(d,e){return c[e]>=.65})},D5b=function(a){a&1&&Wf(0)},F5b=function(a){a&1&&(Uf(0),E(1,D5b,1,0,"ng-container",9),Vf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Ig(2,E5b,a.value)))},G5b=function(a){a&1&&Q(0);a&2&&(a=P(),yg(a.value||"--"))},H5b=function(a){a&1&&(Ad(),K(0,"svg",10),M(1,"path",11),L());a&2&&(a=P(),wg("centered",a.centerEditIcon))},I5b=function(a){a&1&&M(0,"textarea",15);
a&2&&(a=P(3),I("formControl",a.editingValue)("required",a.required())("cdkAutosizeMaxRows",a.multilineMaxLines),Kf("aria-labelledby",a.labelledById))},J5b=function(a){a&1&&M(0,"input",16);a&2&&(a=P(3),I("formControl",a.editingValue),Kf("aria-labelledby",a.labelledById))},K5b=function(a){a&1&&(Uf(0),K(1,"div",13),E(2,I5b,1,4,"textarea",14)(3,J5b,1,2,"ng-template",null,4,Mg),L(),Vf());if(a&2){a=qg(4);var b=P(2);B(2);I("ngIf",b.allowMultipleLines)("ngIfElse",a)}},L5b=function(a){a&1&&Wf(0)},N5b=function(a){a&
1&&(Uf(0),E(1,L5b,1,0,"ng-container",9),Vf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",Ig(2,M5b,a.editingValue)))},O5b=function(a){a&1&&E(0,K5b,5,2,"ng-container",12)(1,N5b,2,4,"ng-container",12);a&2&&(a=P(),I("ngIf",!a.editorTemplate),B(),I("ngIf",a.editorTemplate))},P5b=function(a){if(a&1){var b=t();K(0,"b-hotlist-picker",28);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onLoad",function(c){u(b);var d=P();return v(d.loadHotlist(c))})("onCreate",
function(c){u(b);var d=P();return v(d.createHotlist(c))});L()}a&2&&(a=P(),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},Q5b=function(a,b){a&1&&(K(0,"a",13),Q(1,"View recent issues"),L());a&2&&(a=P(),I("routerLinkObj",a.recentIssuesInComponent(b)))},U5b=function(a){a&1&&(K(0,"div",29),M(1,"b-icon",30),K(2,"span"),Q(3),L(),K(4,"a",31),Q(5,"View access settings"),L()());a&2&&(a=P(),wg("partner",R5b(a))("public",S5b(a)),B(),I("name","alert")("size","small"),B(2),S("",T5b(a),"\u00a0"),
B(),I("href",a.selectedComponent?ps.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Pe))},X5b=function(a){a&1&&(K(0,"div",32),Q(1),L());a&2&&(a=P(2),B(),S(" Error: The following required field(s) have not been filled: ",V5b(a).concat(W5b(a)).join(", ")," "))},Y5b=function(a){a&1&&(K(0,"li"),Q(1),L());if(a&2){a=P(3);B();var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||b.push('"Parents"');yg(b?b.join(" & ")+
" must be"+((b.length<=1?" a":"")+" comma separated list")+((b.length>1?"s":"")+" of issue IDs"):"")}},Z5b=function(a){a&1&&(K(0,"li"),Q(1),L());a&2&&(a=P(3),B(),S(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},$5b=function(a){a&1&&(K(0,"div",32),Q(1," Error: The following field(s) have invalid values: "),K(2,"ul"),F(3,Y5b,2,1,"li"),F(4,Z5b,2,1,"li"),L()());a&2&&(a=P(2),B(3),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid?-1:3),B(),G(a.isCollaboratorsValid?
-1:4))},a6b=function(a){a&1&&(K(0,"div",32),Q(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),L())},c6b=function(a){a&1&&(K(0,"div",18),F(1,X5b,2,1,"div",32),F(2,$5b,5,2,"div",32),F(3,a6b,2,0,"div",32),L());a&2&&(a=P(),B(),G(V5b(a).length!==0||W5b(a).length!==0?1:-1),B(),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid&&a.isCollaboratorsValid?-1:2),B(),G(b6b(a.comment)?3:-1))},d6b=function(a,b){if(a&1){var c=t();K(0,"div",
33)(1,"b-hotlist-chip",34);N("removeHotlist",function(){var d=u(c).$implicit,e=P(2);return v(e.removeHotlist(d.hotlistId))});L()()}a&2&&(a=b.$implicit,B(),I("hotlist",a))},e6b=function(a){a&1&&(K(0,"div",19),Of(1,d6b,2,1,"div",33,Nf),L());a&2&&(a=P(),B(),Pf(a.selectedHotlists))},f6b=function(a,b){if(a&1){var c=t();K(0,"button",40);N("click",function(){var d=u(c).$implicit;P(2).selectedTemplate=d;return v()});Q(1);L()}a&2&&(a=b.$implicit,B(),yg(a.name))},g6b=function(a){if(a&1){var b=t();K(0,"button",
40);N("click",function(){u(b);var c=P(2);c.selectedTemplate=c.availableExistingIssueTemplate;return v()});Q(1);L()}a&2&&(a=P(2),B(),yg(a.availableExistingIssueTemplate.name))},h6b=function(a){a&1&&(K(0,"div",26)(1,"div",22)(2,"label",35),Q(3,"Template"),L()(),K(4,"button",36),Q(5),M(6,"mat-icon",37),L(),K(7,"mat-menu",38,2),Of(9,f6b,2,1,"button",39,Nf),F(11,g6b,2,1,"button",39),L()());if(a&2){a=qg(8);var b=P();B(4);I("matMenuTriggerFor",a);B();var c;S("",(c=b.selectedTemplate==null?null:b.selectedTemplate.name)!=
null?c:""," ");B(2);I("overlapTrigger",!0);B(2);Pf(b.availablePredefinedTemplates);B(2);G(b.availableExistingIssueTemplate?11:-1)}},i6b=function(a){a&1&&(K(0,"div",27)(1,"div",32),Q(2," You do not have permission to create issues in this component. "),L()())},j6b=function(a){a&1&&M(0,"llm-suggest-title-button",44);a&2&&(a=P(2),I("description",a.comment))},l6b=function(a){if(a&1){var b=t();K(0,"llm-suggest-title-preview",63);N("suggestionAccepted",function(c){u(b);var d=P(2);d.setTitle(c);return v(k6b(d))});
L()}},m6b=function(a){a&1&&(K(0,"p",45),Q(1),K(2,"a",64),Q(3," Learn more "),L()());a&2&&(a=P(2),B(),S(" Your title contains restricted words: ",As(a.titleBannedWordsChecker),". Review your title before posting. "))},n6b=function(a,b){if(a&1){var c=t();K(0,"button",67);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.setPriority(d.value))});Q(1);L()}a&2&&(a=b.$implicit,B(),yg(a.displayText))},o6b=function(a){if(a&1){var b=t();K(0,"div",26)(1,"div",22)(2,"label",65);Q(3,"Priority");L()();
K(4,"button",66);Q(5);M(6,"mat-icon",37);L();K(7,"mat-menu",38,3)(9,"button",67);N("click",function(){u(b);var d=P(2);return v(d.setPriority())});Q(10,"--");L();Of(11,n6b,2,1,"button",68,Nf);L()()}if(a&2){a=qg(8);var c=P(2);B(4);I("matMenuTriggerFor",a);Kf("aria-label","Priority, required"+(c.issue.priority?", "+c.issue.priority:""));B();S("",c.issue.priority?c.issue.priority:"--"," ");B(2);I("overlapTrigger",!0);B(4);Pf(c.priorityChoices)}},p6b=function(a){a&1&&M(0,"mat-divider")},q6b=function(a){a&
1&&M(0,"mat-icon",71);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},r6b=function(a,b){if(a&1){var c=t();F(0,p6b,1,0,"mat-divider");K(1,"button",70);N("click",function(){var e=u(c).$implicit,f=P(3);return v(f.setIssueType(e.value))});F(2,q6b,1,1,"mat-icon",71);Q(3);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(3);G(b>0&&d.issueTypeChoices[b].group!=d.issueTypeChoices[b-1].group?0:-1);B();I("matTooltip",a.altText||"");B();G(a.icon?2:-1);B();S(" ",a.displayText," ")}},s6b=function(a){if(a&1){var b=t();
K(0,"div",26)(1,"div",22)(2,"label",69);Q(3,"Type");L()();K(4,"button",66);T(5,"enumToHuman");Q(6);T(7,"enumToHuman");M(8,"mat-icon",37);L();K(9,"mat-menu",38,4)(11,"button",67);N("click",function(){u(b);var d=P(2);return v(d.setIssueType())});Q(12,"--");L();Of(13,r6b,4,4,null,null,Nf);L()()}if(a&2){a=qg(10);var c=P(2);B(4);I("matMenuTriggerFor",a);Kf("aria-label","Type, required"+(c.issue.type?U(5,4,", "+c.issue.type):""));B(2);S("",U(7,6,c.issue.type||"--")," ");B(3);I("overlapTrigger",!0);B(4);
Pf(c.issueTypeChoices)}},t6b=function(a){if(a&1){var b=t();K(0,"div",46)(1,"div",22)(2,"label",72);Q(3,"Assignee");L()();K(4,"div",73)(5,"b-peoplekit-single",74);N("emailChange",function(d){u(b);var e=P(2);return v(e.handleAutocompleteSelection(d,"assignee"))});L()()()}if(a&2){a=P(2);B(5);var c;I("email",(c=a.assigneeText)!=null?c:"")}},u6b=function(a){a&1&&(K(0,"mat-error"),Q(1," Collaborators only accepts individual users. "),L())},v6b=function(a){if(a&1){var b=t();K(0,"div",47)(1,"div",22)(2,"label",
75);Q(3,"Collaborators");L();M(4,"mat-icon",76);L();K(5,"div",73)(6,"b-peoplekit-multi",77,5);Cg("valueChange",function(c){u(b);var d=P(2);Bg(d.collaboratorsText,c)||(d.collaboratorsText=c);return v(c)});L()();F(8,u6b,2,0,"mat-error");L()}a&2&&(a=P(2),B(6),wg("invalid",!a.isCollaboratorsValid),I("ariaLabel","Addition to Collaborators"),Ag("value",a.collaboratorsText),B(2),G(!a.isCollaboratorsValid&&a.submitRequested?8:-1))},w6b=function(a){if(a&1){var b=t();K(0,"div",48)(1,"div",22)(2,"label",78);
Q(3,"CC");L()();K(4,"div",73)(5,"b-peoplekit-multi",79,5);Cg("valueChange",function(c){u(b);var d=P(2);Bg(d.ccsText,c)||(d.ccsText=c);return v(c)});L()()()}a&2&&(a=P(2),B(5),I("ariaLabel","Addition to CCs"),Ag("value",a.ccsText))},x6b=function(a){a&1&&(K(0,"p",52),Q(1),K(2,"a",64),Q(3," Learn more "),L()());a&2&&(a=P(2),B(),S(" Your description contains restricted words: ",As(a.descriptionBannedWordsChecker),". Review your description before posting. "))},y6b=function(a){a&1&&Wf(0)},z6b=function(a){a&
1&&(K(0,"div",21)(1,"div",22)(2,"label",82),Q(3," Collaborator Groups "),L(),M(4,"mat-icon",83),L(),E(5,y6b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=qg(30);B(4);I("matTooltip",Dg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},A6b=function(a){if(a&1){var b=t();K(0,"div",54)(1,"div",21)(2,"div",22)(3,"label",80);Q(4," Issue access level ");L()();K(5,"b-issue-access-limits-dropdown",81);N("updatedAccessLimitLevel",function(c){u(b);var d=P(2);return v(d.onAccessLimitLevelSelected(c))});
L()();F(6,z6b,6,3,"div",21);L()}a&2&&(a=P(2),B(5),I("disabled",!1)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled)("defaultAccessLimitLevel",a.selectedAccessLimitLevel),B(),G(a.trackerCollaboratorGroups.length>0?6:-1))},B6b=function(a,b){if(a&1){var c=t();K(0,"button",67);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.issue.severity=e.toIssueSeverity(d.value))});Q(1);L()}a&2&&(a=b.$implicit,B(),yg(a.displayText))},D6b=function(a){if(a&1){var b=t();K(0,"div",108)(1,"div",
22)(2,"label",109);Q(3," Staffing ");L()();K(4,"button",110);T(5,"staffingSummary");N("click",function(){u(b);var d=P(3);return v(d.editStaffing())});K(6,"span",111);Q(7);T(8,"staffingSummary");L();M(9,"mat-icon",112);L()();M(10,"div",55)}if(a&2){a=P(3);B(4);var c;Kf("aria-label","Staffing: "+U(5,2,(c=a.issue.staffing==null?null:a.issue.staffing.plannedAllocations)!=null?c:Hg(6,C6b)));B(3);S(" ",U(8,4,a.issue.staffing==null?null:a.issue.staffing.plannedAllocations)," ")}},E6b=function(a){a&1&&(K(0,
"span"),Q(1,"*"),L())},F6b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},G6b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},I6b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",113);Q(3," Parents ");F(4,G6b,2,0,"span");L()();K(5,"input",114);N("ngModelChange",function(c){u(b);var d=P(3);d.parentIssueIds=H6b(d,c).map(Eab);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(gu(d.parentIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isParentIssueIdsValid?-1:4),B(),I("ngModel",a.joinStringArray(a.parentIssueIds)))},
J6b=function(a){a&1&&(K(0,"span"),Q(1,"*"),L())},K6b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",115);Q(3," Children ");F(4,J6b,2,0,"span");L()();K(5,"input",116);N("ngModelChange",function(c){u(b);var d=P(3);d.childrenIssueIds=H6b(d,c).map(Eab);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(gu(d.childrenIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isChildIssueIdsValid?-1:4),B(),I("ngModel",a.joinStringArray(a.childrenIssueIds)))},L6b=function(a){if(a&1){var b=t();
K(0,"div",92)(1,"div",22)(2,"label",80);Q(3," Issue access level ");L()();K(4,"b-issue-access-limits-dropdown",117);N("updatedAccessLimitLevel",function(c){u(b);var d=P(3);return v(d.onAccessLimitLevelSelected(c))});L()()}a&2&&(a=P(3),B(4),I("disabled",!1)("defaultAccessLimitLevel",a.selectedAccessLimitLevel)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled))},M6b=function(a){a&1&&Wf(0)},N6b=function(a){a&1&&(K(0,"div",21)(1,"div",22)(2,"label",82),Q(3," Collaborator Groups "),L(),M(4,
"mat-icon",83),L(),E(5,M6b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=qg(30);B(4);I("matTooltip",Dg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},O6b=function(a){if(a&1){var b=t();K(0,"onedev-text-field",122);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Eg("bv2-custom-field-",a.customFieldId))("value",a.textValue)("required",c.isCustomFieldRequired(a))("labelledById","bv2-custom-field-"+
a.customFieldId+"-label")}},P6b=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",123);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Eg("bv2-custom-field-",a.customFieldId))("value",a.numericValue)("required",c.isCustomFieldRequired(a));Kf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},Q6b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",124);N("boundValueChange",
function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()()}if(a&2){a=P(2).$implicit;var c=P(3);B();I("bv2AriaLabelledby",Dg("bv2-custom-field-"+a.customFieldId+"-label"))("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},R6b=function(a){if(a&1){var b=t();K(0,"onedev-single-select",125);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;
var c=P(3);I("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0)("labelledById","bv2-custom-field-"+a.customFieldId+"-label")}},S6b=function(a,b){a&1&&(K(0,"div"),F(1,O6b,1,5,"onedev-text-field",119),F(2,P6b,1,5,"onedev-numeric-field",120),F(3,Q6b,2,5,"div"),F(4,R6b,1,4,"onedev-single-select",121),L());a&2&&(a=P(4),B(),G(b===a.FieldType.TEXT?1:-1),B(),G(b===a.FieldType.NUMERIC?2:-1),B(),G(b===a.FieldType.DATE?3:-1),B(),G(b===a.FieldType.ENUM?4:-1))},T6b=function(a,
b){if(a&1){var c=t();K(0,"div")(1,"b-list-field",126);N("valuesChange",function(e){u(c);var f=P().$implicit,g=P(3);return v(g.setCustomFieldValue(f,e.values))});L()()}if(a&2){a=P().$implicit;var d=P(3);B();I("defaultLineCount",2)("type",b)("values",d.getListFieldValues(a))("enumChoices",d.customFieldAllowedValuesMap[a.customFieldId]||null)("truncate",!0)("isRequired",d.isCustomFieldRequired(a));Kf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},U6b=function(a,b){a&1&&(K(0,"div",
92)(1,"div",22)(2,"label",118),Q(3),L()(),F(4,S6b,5,4,"div"),F(5,T6b,2,7,"div"),L());if(a&2){var c,d;a=b.$implicit;b=P(3);B(2);wg("required",b.isCustomFieldRequired(a));var e=I("id",Eg("bv2-custom-field-",a.customFieldId,"-label")),f=b.customFieldMap[a.customFieldId];e("matTooltip",Dg((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");
Kf("aria-label",f);B();S(" ",b.getCustomFieldName(a)," ");B();G((c=b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]))?4:-1,c);B();G((d=b.getListFieldType(b.customFieldMap[a.customFieldId]))?5:-1,d)}},V6b=function(a){if(a&1){var b=t();K(0,"mat-expansion-panel",57)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",85);Q(4,"Advanced fields (Required fields marked with");K(5,"span",86);Q(6,"*");L();Q(7,")");L()()();K(8,"div",87)(9,"div",88)(10,"div",22)(11,"label",89);Q(12," Severity ");
L()();K(13,"button",90);Q(14);M(15,"b-icon",91);L();K(16,"mat-menu",38,6);Of(18,B6b,2,1,"button",68,Nf);L()();K(20,"div",92)(21,"div",22)(22,"label",93);Q(23," Found in ");L()();K(24,"input",94);N("ngModelChange",function(f){u(b);var g=P(2);return v(g.issue.foundInVersion=g.parseStringArray(f))});L()();K(25,"div",95)(26,"div",22)(27,"label",96);Q(28," In prod ");L()();K(29,"mat-slide-toggle",97);Cg("ngModelChange",function(f){u(b);var g=P(2);Bg(g.issue.inProd,f)||(g.issue.inProd=f);return v(f)});
L()();M(30,"div",55);F(31,D6b,11,7);K(32,"div",92)(33,"div",22)(34,"label",98);Q(35," Reporter ");L()();K(36,"b-peoplekit-single",99);N("emailChange",function(f){u(b);var g=P(2);return v(g.handleAutocompleteSelection(f,"reporter"))});L()();K(37,"div",92)(38,"div",22)(39,"label",100);Q(40," Verifier ");L()();K(41,"b-peoplekit-single",101);N("emailChange",function(f){u(b);var g=P(2);return v(g.handleAutocompleteSelection(f,"verifier"))});L()();K(42,"div",92)(43,"div",22)(44,"label",102);Q(45," Targeted to ");
L()();K(46,"input",103);N("ngModelChange",function(f){u(b);var g=P(2);return v(g.issue.targetedToVersion=g.parseStringArray(f))});L()();M(47,"div",55);K(48,"div",92)(49,"div",22)(50,"label",104);Q(51," Blocked by ");F(52,E6b,2,0,"span");L()();K(53,"input",105);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockedByIssueId=H6b(g,f);g.isBlockedByIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(gu(g.issue.blockedByIssueId));return v()});L()();K(54,"div",92)(55,"div",22)(56,"label",106);Q(57," Blocking ");
F(58,F6b,2,0,"span");L()();K(59,"input",107);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockingIssueId=H6b(g,f);g.isBlockingIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(gu(g.issue.blockingIssueId));return v()});L()();F(60,I6b,6,2,"div",92);F(61,K6b,6,2,"div",92);M(62,"div",55);F(63,L6b,5,3,"div",92);F(64,N6b,6,3,"div",21);M(65,"div",55);Of(66,U6b,6,10,"div",92,Nf);L()()}if(a&2){a=qg(17);var c=P(2);B(13);I("matMenuTriggerFor",a);Kf("aria-label","Severity"+(c.issue.severity?", "+c.issue.severity:
""));B();yg(c.issue.severity);B(2);I("overlapTrigger",!0);B(2);Pf(c.severityChoices);B(6);I("ngModel",c.joinStringArray(c.originalIssueCopy.foundInVersion));B(5);Ag("ngModel",c.issue.inProd);B(2);G(c.sessionIsExternal?-1:31);B(5);var d;I("email",(d=c.reporterText)!=null?d:"");B(5);var e;I("email",(e=c.verifierText)!=null?e:"");B(5);I("ngModel",c.joinStringArray(c.originalIssueCopy.targetedToVersion));B(6);G(c.isBlockedByIssueIdValid?-1:52);B();I("ngModel",c.joinStringArray(c.issue.blockedByIssueId));
B(5);G(c.isBlockingIssueIdValid?-1:58);B();I("ngModel",c.joinStringArray(c.issue.blockingIssueId));B();G(c.sessionIsExternal?-1:60);B();G(c.sessionIsExternal?-1:61);B(2);G(lt(c.selectedComponent)?-1:63);B();G(c.trackerCollaboratorGroups.length>0&&!lt(c.selectedComponent)?64:-1);B(2);Pf(c.issue.customField)}},W6b=function(a,b){a&1&&M(0,"similar-issues",127);a&2&&(a=P(3),I("context",b)("componentId",a.issue.componentId))},X6b=function(a){a&1&&(F(0,W6b,1,2,"similar-issues",127),T(1,"async"));if(a&2){var b;
a=P(2);G((b=U(1,1,a.similarIssuesSearchString$))?0:-1,b)}},Y6b=function(a){a&1&&(K(0,"div",29),M(1,"b-icon",30),K(2,"span"),Q(3),L(),K(4,"a",31),Q(5,"View access settings"),L()());a&2&&(a=P(2),wg("partner",R5b(a))("public",S5b(a)),B(),I("name","alert")("size","small"),B(2),S("",T5b(a),"\u00a0"),B(),I("href",a.selectedComponent?ps.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Pe))},Z6b=function(a){if(a&1){var b=t();K(0,"div",58)(1,"b-recaptcha",128);N("onUpdate",function(c){u(b);
var d=P(2);return v(d.recaptchaResponse=c)});L()()}},b7b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",20)(2,"div",21)(3,"div",22)(4,"label",41);Q(5,"Title");L()();K(6,"div",42)(7,"input",43);T(8,"async");N("ngModelChange",function(e){u(b);var f=P();return v(f.setTitle(e))})("blur",function(){u(b);var e=P();return v(k6b(e))});L();F(9,j6b,1,1,"llm-suggest-title-button",44);L();F(10,l6b,1,0,"llm-suggest-title-preview");F(11,m6b,4,1,"p",45);T(12,"async");L();F(13,o6b,13,4,"div",26);F(14,s6b,15,8,
"div",26);L();Uf(15);K(16,"div",20);F(17,t6b,6,1,"div",46);F(18,v6b,9,5,"div",47);L();K(19,"div",20);F(20,w6b,7,2,"div",48);L();Vf();K(21,"div",49)(22,"div",20)(23,"div",21)(24,"div",22)(25,"label",50);Q(26,"Description");L()();K(27,"b-comment-box",51);T(28,"async");Cg("commentChange",function(e){u(b);var f=P();Bg(f.comment,e)||(f.comment=e);return v(e)});N("onChange",function(){u(b);var e=P();return v(e.saveCommentDraft())})("onSubmit",function(e){u(b);var f=P();return v($6b(f,e,!e.shiftKey))})("onRestrict",
function(){u(b);var e=P();return v(e.showNewContentJudgementDialog())});F(29,x6b,4,1,"p",52);T(30,"async");K(31,"b-markdown-toggle",53);N("change",function(e){u(b);var f=P();return v(f.comment.formattingMode=e)});L()()()();F(32,A6b,7,4,"div",54);M(33,"div",55);K(34,"div",56);F(35,V6b,68,18,"mat-expansion-panel",57);L();F(36,X6b,2,3);F(37,Y6b,6,8,"div",17);F(38,Z6b,2,0,"div",58);K(39,"div",59)(40,"b-button",60);T(41,"async");T(42,"async");N("onAction",function(e){u(b);var f=P();return v($6b(f,e,!0))});
Q(43);T(44,"async");T(45,"async");L();K(46,"b-button",61);T(47,"async");T(48,"async");N("onAction",function(e){u(b);var f=P();return v($6b(f,e,!1))});Q(49);T(50,"async");T(51,"async");L();K(52,"b-button",62);N("onAction",function(){u(b);var e=P();return v(e.discard())});Q(53," Discard ");L()()()()}if(a&2){a=P();B(7);var c;wg("invalid",(c=U(8,39,a.titleBannedWordsChecker.showWarning$))!=null?c:!1);I("ngModel",a.issue.title)("bFocus",a.newIssueStarted);B(2);G(a.enableSuggestTitle?9:-1);B();G(a.enableSuggestTitle?
10:-1);B();G(U(12,41,a.titleBannedWordsChecker.showWarning$)?11:-1);B(2);G(a.canEditIssuesInComponent?13:-1);B();G(a.canEditIssuesInComponent?14:-1);B(3);G(a.canEditIssuesInComponent?17:-1);B();G(a.canEditIssuesInComponent?18:-1);B(2);G(a.canEditIssuesInComponent?20:-1);B(7);wg("bv2-upload-ongoing",b6b(a.comment));I("supportsPreview",!0);Ag("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=U(28,43,a.descriptionBannedWordsChecker.showWarning$))!=null?d:!1)("canEditIssuesInComponent",a.canEditIssuesInComponent)("isLiteralModeSupported",a.isLiteralModeSupported());B(2);G(U(30,45,a.descriptionBannedWordsChecker.showWarning$)?29:-1);B(2);I("initialValue",a.comment.formattingMode);B();G(a.canEditIssuesInComponent&&lt(a.selectedComponent)?32:-1);B(3);G(a.canEditIssuesInComponent?35:-1);B();G(a.issue.componentId&&!a.submitRequested?
36:-1);B();G(R5b(a)||S5b(a)?37:-1);B();G(a.enableRecaptcha?38:-1);B(2);I("disabled",a7b(a))("color",U(41,47,a.titleBannedWordsChecker.showWarning$)||U(42,49,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");B(3);S(" ",U(44,51,a.titleBannedWordsChecker.showWarning$)||U(45,53,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway":"Create"," ");B(3);I("disabled",a7b(a))("color",U(47,55,a.titleBannedWordsChecker.showWarning$)||U(48,57,a.descriptionBannedWordsChecker.showWarning$)?
"warn":"primary");B(3);S(" ",U(50,59,a.titleBannedWordsChecker.showWarning$)||U(51,61,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway & Start Another":"Create & Start Another"," ");B(3);I("disabled",a7b(a))}},c7b=function(a,b){a&1&&(K(0,"h2",129),Q(1,"This component has a default description"),L(),K(2,"mat-dialog-content"),Q(3," You have already entered a description, but the component you chose has a default description: "),K(4,"div",130),Q(5),L()(),K(6,"mat-dialog-actions")(7,"button",
131),Q(8,"Use component description"),L(),K(9,"button",132),Q(10,"Keep my description"),L()());a&2&&(a=b.$implicit,B(5),yg(a),B(2),I("mat-dialog-close",!0))},d7b=function(a,b){a&1&&(K(0,"mat-option",135),Q(1),L());a&2&&(a=b.$implicit,I("value",Dg(a)),B(),S(" ",a," "))},f7b=function(a){if(a&1){var b=t();K(0,"mat-form-field",133)(1,"mat-select",134);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.collaboratorGroupsText,c)||(d.collaboratorGroupsText=c);return v(c)});K(2,"mat-select-trigger");Q(3);
L();Of(4,d7b,2,3,"mat-option",135,Nf);L()()}a&2&&(a=P(),B(),Ag("ngModel",a.collaboratorGroupsText),I("ngModelOptions",Hg(3,e7b)),B(2),yg(a.getCollaboratorGroupsString()),B(),Pf(a.trackerCollaboratorGroups))},g7b=function(a,b){b.assigneeText=um(a.assigneeUser);b.reporterText=um(a.reporterUser);b.verifierText=um(a.verifierUser);var c;b.collaboratorsText=gu(((c=a.collaboratorsUsers)!=null?c:[]).map(um));var d;b.ccsText=gu(((d=a.ccUsers)!=null?d:[]).map(um))},h7b=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=ym(a.assigneeText));a.reporterText!=null&&(b.reporterUser=ym(a.reporterText));a.verifierText!=null&&(b.verifierUser=ym(a.verifierText));b.collaboratorsUsers=HRa(hu(a.collaboratorsText));b.ccUsers=HRa(hu(a.ccsText))},j7b=function(a,b){for(var c=m(Object.keys(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=b[d],f=i7b[d];d==="customField"||mm(e,f)||(Array.isArray(e)?a[d]?(e=mRa([].concat(q(e),
q(a[d]))),a[d]=e):a[d]=e:e!==""&&(a[d]=e))}},k7b=function(a){a=Object.assign({},a);return delete a.hotlistId,a},l7b=function(a){var b={};a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.customFieldId]=c;return b},m7b=function(a){var b={};a=m(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},hu=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},gu=
function(a){return a?a.join(", "):""},n7b=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)},o7b=function(a){if(a&1){var b=t();K(0,"b-star-toggle",10);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())});L()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",
a.isStarred))},p7b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",5);F(2,n7b,1,4,"b-star-toggle",6)(3,o7b,1,3,"b-star-toggle",7);K(4,"span",8);Q(5);K(6,"span")(7,"button",9);N("click",function(){u(b);var c=P();return v(c.editBookmarkGroup())});L()()()()()}a&2&&(a=P(),B(2),G(a.isAdmin?2:3),B(3),S("",a.bookmarkGroup.name," "))},s7b=function(a){if(a&1){var b=t();K(0,"b-saved-search-panel",13);N("focusedRowIndexChange",function(f){u(b);var g=P().$implicit,k=P();return v(q7b(k,g,f))})("selectionChange",
function(f){u(b);var g=P(2);return v(r7b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",e.String(a.resourceId))("first",d===0)("last",d===c-1)}},t7b=function(a){if(a&1){var b=t();K(0,"b-hotlist-panel",14);N("focusedRowIndexChange",function(f){u(b);var g=P().$implicit,k=P();return v(q7b(k,g,f))})("selectionChange",
function(f){u(b);var g=P(2);return v(r7b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",e.Number(a.resourceId))("first",d===0)("last",d===c-1)}},u7b=function(a,b){a&1&&(K(0,"div"),F(1,s7b,1,6,"b-saved-search-panel",11)(2,t7b,1,6,"b-hotlist-panel",12),L());if(a&2){var c;a=b.$implicit;B();G((c=a.type)===
"SAVED_SEARCH"?1:c==="HOTLIST"?2:-1)}},v7b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P();return v(c.archive())});Q(1," Archive bookmark group ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},w7b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P();return v(c.unarchive())});Q(1," Unarchive bookmark group ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},x7b=function(a){a&1&&(K(0,"span",12),
Q(1," (archived) "),L())},z7b=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-hotlist-chip-smart",44);N("removeHotlist",function(){var d=u(c),e=P(4);return v(y7b(e,d))});L()()}a&2&&(B(),I("id",b))},B7b=function(a,b){if(a&1){var c=t();K(0,"div",42)(1,"a",45);Q(2);L();K(3,"span",46);N("click",function(){var e=u(c),f=P(4);return v(A7b(f,e))})("keydown.enter",function(){var e=u(c),f=P(4);return v(A7b(f,e))})("keydown.space",function(){var e=u(c),f=P(4);return v(A7b(f,e))});Q(4," \u00d7 ");L()()}if(a&
2){a=P().$implicit;var d=P(3);B();I("href",d.paths.viewSavedSearch(b),Pe)("matTooltip","Go to saved search: "+d.getDisplayName(a));B();S(" S: ",d.getDisplayName(a)," ");B();I("matTooltip","Remove item: "+d.getDisplayName(a));Kf("aria-label","Remove item: "+d.getDisplayName(a))}},C7b=function(a){a&1&&(K(0,"span",43),Q(1,"<None>"),L())},D7b=function(a,b){a&1&&(K(0,"div",33),F(1,z7b,2,1,"div"),F(2,B7b,5,5,"div",42),F(3,C7b,2,0,"span",43),L());if(a&2){var c;a=b.$implicit;b=P(3);B();var d;var e=a.resourceType===
"HOTLIST"?(d=a.hotlistId)==null?void 0:d.toString():void 0;G(e?1:-1,e);B();G((c=a.resourceType==="SAVED_SEARCH"?a.savedSearchId:void 0)?2:-1,c);B();G(b.bookmarkGroupUnderEdit.item.length?-1:3)}},F7b=function(a,b){if(a&1){var c=t();K(0,"button",53);N("click",function(){var d=u(c).$implicit,e=P(5);return v(E7b(e,d))});Q(1);L()}a&2&&(a=b.$implicit,B(),S("",a.name," "))},G7b=function(a){a&1&&Of(0,F7b,2,1,"button",52,Nf);a&2&&(a=P(4),Pf(a.savedSearchChoices))},H7b=function(a){a&1&&(K(0,"div",41)(1,"label",
47),Q(2,"Add from saved searches:"),L(),K(3,"button",48)(4,"span",49),Q(5,"Select"),L(),M(6,"mat-icon",50),L(),K(7,"mat-menu",null,2),E(9,G7b,2,0,"ng-template",51),L()());a&2&&(a=qg(8),B(3),I("matMenuTriggerFor",a))},M7b=function(a){if(a&1){var b=t();K(0,"div",18)(1,"label",31)(2,"span",20);Q(3,"Selected items");L()();K(4,"div",32,1);Of(6,D7b,4,3,"div",33,Nf);L()();K(8,"div",34)(9,"div",35)(10,"label",36);Q(11,"Add hotlist from favorites:");L();K(12,"b-hotlist-picker",37);N("onApply",function(c){u(b);
var d=P(2);return v(I7b(d,c))})("onCreate",function(c){u(b);var d=P(2);return v(J7b(d,c))})("onLoad",function(c){u(b);var d=P(2);return v(K7b(d,c))});L()();K(13,"div",38)(14,"label",39);Q(15,"Add hotlist by query:");L();K(16,"b-hotlist-search",40);N("itemSelect",function(c){u(b);var d=P(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(L7b(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return v()});L()();F(17,H7b,10,
1,"div",41);L()}a&2&&(a=P(2),B(6),Pf(a.bookmarkGroupUnderEdit.item),B(6),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),I("showGroups",!1)("allowStarring",!1),B(),G(a.savedSearchChoices.length>0?17:-1))},O7b=function(a){a&1&&(K(0,"span"),Q(1),K(2,"a",55),Q(3),L()());if(a&2){a=P().$implicit;var b=P(3);B();S(" Hotlist ",a.hotlistId,": ");B();I("href",N7b(b,a),Pe);B();S(" ",a.name||"(name not available)"," ")}},P7b=function(a){a&1&&(K(0,"span"),Q(1),K(2,
"a",55),Q(3),L()());if(a&2){a=P().$implicit;var b=P(3);B();S(" Saved search ",a.savedSearchId,": ");B();I("href",N7b(b,a),Pe);B();S(" ",a.name||"(name not available)"," ")}},Q7b=function(a,b){a&1&&(K(0,"li"),F(1,O7b,4,3,"span"),F(2,P7b,4,3,"span"),L());a&2&&(a=b.$implicit,B(),G(a.resourceType==="HOTLIST"?1:-1),B(),G(a.resourceType==="SAVED_SEARCH"?2:-1))},R7b=function(a){a&1&&(K(0,"div",24)(1,"label")(2,"span",20),Q(3,"Items"),L()(),K(4,"div",54)(5,"ul"),Of(6,Q7b,3,2,"li",null,Nf),L()()());a&2&&(a=
P(2),B(6),Pf(a.bookmarkGroup.item))},S7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return v(c.saveMetadata())});Q(2," Update ");L();K(3,"button",57);N("click",function(){u(b);var c=P(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},T7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});
Q(2," Update ");L();K(3,"button",57);N("click",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},W7b=function(a){if(a&1){var b=t();K(0,"div",11)(1,"h2");Q(2);L();F(3,x7b,2,0,"span",12);K(4,"a",13);Q(5," (View Dashboard)");L()();K(6,"mat-tab-group",14);Cg("selectedIndexChange",function(c){u(b);var d=P();Bg(d.selectedTabIndex,
c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(7,"mat-tab",15)(8,"div",16);M(9,"b-error-banner",17);K(10,"div",18)(11,"label",19)(12,"span",20);Q(13,"Name");L()();K(14,"input",21,0);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.bookmarkGroupUnderEdit.name,c)||(d.bookmarkGroupUnderEdit.name=c);return v(c)});L()();K(16,"div",18)(17,"label",22)(18,"span",20);Q(19,"Description");L()();K(20,"textarea",23);Cg("ngModelChange",
function(c){u(b);var d=P();Bg(d.bookmarkGroupUnderEdit.description,c)||(d.bookmarkGroupUnderEdit.description=c);return v(c)});L()();F(21,M7b,18,6)(22,R7b,8,0,"div",24);F(23,S7b,5,1,"div",25);L()();K(24,"mat-tab",26)(25,"div",16)(26,"div",18)(27,"label")(28,"span",20);Q(29,"Admins");L();K(30,"p",27);Q(31," Edit access controls, edit name and description, reorder items, add/remove items ");L()();K(32,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.admins=
c)})("isValid",function(c){u(b);var d=P();return v(d.isAdminsFieldValid=c)});L()();K(33,"div",18)(34,"label")(35,"span",20);Q(36,"View only");L();K(37,"p",27);Q(38," View the bookmark group ");L();K(39,"b-multi-user-input",29);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.isReaderFieldValid=c)});L()()();K(40,"div",18);Q(41," See ");K(42,"a",30);Q(43,"access control documentation");L();Q(44," for an explanation of the settings. ");
L();F(45,T7b,5,1,"div",25);L()()()}a&2&&(a=P(),B(2),zg(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," "),B(),G(a.isArchived()?3:-1),B(),I("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Pe),B(2),Ag("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",a.bookmarkGroupUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",
a.bookmarkGroupUnderEdit.description),I("disabled",a.isEditDisabled()),B(),G(a.isAdmin?21:22),B(2),G(a.isAdmin?23:-1),B(3),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(33,U7b,Ig(31,V7b,a.accessPolicyUnderEdit.admins))),
B(3),I("href",ls(a.documentationLinks)+"#bookmark-groups",Pe),B(3),G(a.isAdmin?45:-1))},X7b=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P();return v(c.delete())});Q(1," Delete saved search ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},Y7b=function(a){a&1&&(K(0,"div",8)(1,"h2"),Q(2," Saved search not found "),L()())},Z7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return v(c.saveMetadata())});
Q(2," Update ");L();K(3,"button",33);N("click",function(){u(b);var c=P(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},$7b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");L();K(3,"button",33);N("click",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");L()()}a&
2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},c8b=function(a){if(a&1){var b=t();K(0,"div",8)(1,"h2");Q(2);L();K(3,"a",10);Q(4," (View Issues)");L()();K(5,"mat-tab-group",11);Cg("selectedIndexChange",function(c){u(b);var d=P();Bg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(6,"mat-tab",12)(7,"div",13);M(8,"b-error-banner",14);
K(9,"div",15)(10,"label",16)(11,"span",17);Q(12,"Name");L()();K(13,"input",18,0);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.savedSearchUnderEdit.name,c)||(d.savedSearchUnderEdit.name=c);return v(c)});L()();K(15,"div",15)(16,"label",19)(17,"span",17);Q(18,"Description");L()();K(19,"textarea",20);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.savedSearchUnderEdit.description,c)||(d.savedSearchUnderEdit.description=c);return v(c)});Q(20,"            ");L()();K(21,"div",21)(22,"label",22)(23,
"span",17);Q(24,"Query");L();K(25,"p",23);Q(26," To modify query and display preferences, run the saved search and modify its parameters ");L();K(27,"div",24);Q(28);L()()();F(29,Z7b,5,1,"div",25);L()();K(30,"mat-tab",26)(31,"div",13)(32,"div",15)(33,"label",27)(34,"span",17);Q(35,"Admins");L();K(36,"p",23);Q(37," Edit access controls, edit name and description, edit query ");L()();K(38,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.admins=c)})("isValid",
function(c){u(b);var d=P();return v(d.isAdminsFieldValid=c)});L()();K(39,"div",15)(40,"label",29)(41,"span",17);Q(42,"View and execute search");L()();K(43,"b-multi-user-input",30);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.isReaderFieldValid=c)});L()();K(44,"div",15);Q(45," See ");K(46,"a",31);Q(47,"access control documentation");L();Q(48," for an explanation of the settings. ");L();F(49,$7b,5,1,"div",25);
L()()()}a&2&&(a=P(),B(2),zg(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(),I("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Pe),B(2),Ag("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",a.savedSearchUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Ag("ngModel",a.savedSearchUnderEdit.description),I("disabled",a.isEditDisabled()),
B(9),S(" ",a.savedSearch.query," "),B(),G(a.isAdmin?29:-1),B(3),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),wg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(32,a8b,Ig(30,b8b,a.accessPolicyUnderEdit.admins))),B(3),I("href",ls(a.documentationLinks)+"#saved-searches",
Pe),B(3),G(a.isAdmin?49:-1))},d8b=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),L())},e8b=function(a){if(a&1){var b=t();K(0,"div",35)(1,"span",36)(2,"mat-checkbox",37);N("change",function(c){u(b);var d=P(2);return v(d.alertState.setValue(c.checked))});L()();K(3,"div")(4,"strong",38);Q(5,"SLO Notifications");L();K(6,"div",39);Q(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");L()()()}a&2&&(a=P(2),wg("bv2-edit-resource-readonly",
a.isEditDisabled()),B(2),I("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},f8b=function(a){a&1&&(K(0,"div",20),Q(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),K(2,"a",40),Q(3," Learn more "),L()())},h8b=function(a){if(a&1){var b=t();K(0,"b-button",45);N("onAction",function(){u(b);var c=P(3);return v(g8b(c,!0))});Q(1," Archive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},i8b=function(a){if(a&1){var b=
t();K(0,"b-button",46);N("onAction",function(){u(b);var c=P(3);return v(g8b(c,!1))});Q(1," Unarchive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},j8b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-button",41);N("onAction",function(){u(b);var d=P(2);return v(d.saveMetadata())});Q(2," Update ");L();K(3,"b-button",42);N("onAction",function(){u(b);var d=P(2);return v(d.revertMetadataChanges())});Q(4," Revert changes ");L();F(5,h8b,2,1,"b-button",43);F(6,i8b,2,1,"b-button",
44);L()}if(a&2){P();a=qg(9);var c=P();B();I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!c.elementPickerIsValid||!!a.pending||!!a.invalid);B(2);I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!!a.pending||!!a.invalid);B(2);G(c.slo&&!c.slo.isArchived?5:-1);B();G(c.slo&&c.slo.isArchived?6:-1)}},k8b=function(a){if(a&1){var b=t();K(0,"div",23)(1,"b-button",47);N("onAction",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");L();K(3,"b-button",48);N("onAction",
function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},n8b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",7)(2,"h2")(3,"span",8);Q(4);L()()();K(5,"mat-tab-group",9);Cg("selectedIndexChange",function(c){u(b);var d=P();Bg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});
K(6,"mat-tab",10)(7,"div",11)(8,"form",12,0)(10,"div",13)(11,"label",14)(12,"span",15);Q(13,"Name");L()();K(14,"input",16);N("ngModelChange",function(c){u(b);var d=P();return v(d.editableCopy.name=c)});L()();K(15,"div",13)(16,"label",17)(17,"span",15);Q(18,"Description");L()();K(19,"textarea",18);N("ngModelChange",function(c){u(b);var d=P();return v(d.editableCopy.description=c)});Q(20,"                ");L()();F(21,e8b,8,4,"div",19);L();F(22,f8b,4,0,"div",20);K(23,"div",13)(24,"slo-elements-picker",
21);N("onCollectionUpdate",function(c){u(b);var d=P();return v(d.updateCollection(c))})("onValidation",function(c){u(b);var d=P();return v(d.elementPickerIsValid=c)});L()();K(25,"div",22)(26,"div",23)(27,"div",24)(28,"b-button",25);N("onAction",function(){u(b);var c=P();return v(c.showUpdateHistoryModal())});Q(29," View history ");L()()();K(30,"div",23);F(31,j8b,7,4,"div",24);L()()()();K(32,"mat-tab",26)(33,"div",27)(34,"form",28)(35,"div",13)(36,"label",29)(37,"span",15);Q(38,"Admins");L();K(39,
"p",30);Q(40," Edit name, description and metrics ");L()();K(41,"b-multi-user-input",31);N("usersChange",function(c){u(b);var d=P();return v(d.editableAccessPolicy.admins=c)})("isValid",function(c){u(b);var d=P();return v(d.validity.admins=c)});L()();K(42,"div",13)(43,"label",32)(44,"span",15);Q(45,"Readers");L();K(46,"p",30);Q(47," View the SLO definition (this is not required to see an issue's SLO status) ");L()();K(48,"b-multi-user-input",33);N("usersChange",function(c){u(b);var d=P();return v(d.editableAccessPolicy.readers=
c)})("isValid",function(c){u(b);var d=P();return v(d.validity.readers=c)});L()()();K(49,"div",13);Q(50," See ");K(51,"a",34);Q(52,"access control documentation");L();Q(53," for an explanation of the settings. ");L();F(54,k8b,5,1,"div",23);L()()()()}a&2&&(a=P(),B(4),zg(" SLO ",a.slo.sloId,": ",a.slo.name," "),B(),Ag("selectedIndex",a.selectedTabIndex),B(5),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),I("required",!0)("ngModel",a.editableCopy.name)("disabled",a.isEditDisabled()),B(),wg("bv2-edit-resource-readonly",
a.isEditDisabled()),B(4),I("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),B(2),G(a.isImportedFromBugScope||a.alertState.getSavedValue()?21:-1),B(),G(a.isUneditedFromBugScope&&a.isAdmin()?22:-1),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(),I("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),B(7),G(a.isAdmin()?31:-1),B(4),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),I("users",a.editableAccessPolicy.admins),Kf("disabled",a.isEditDisabled()?
!0:null),B(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),I("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(35,l8b,Ig(33,m8b,a.editableAccessPolicy.admins))),Kf("disabled",a.isEditDisabled()?!0:null),B(3),I("href",Eg("",ls(a.documentationLinks),"#slos"),Pe),B(3),G(a.isAdmin()?54:-1))},p8b=function(a){if(a&1){var b=t();K(0,"div",2);M(1,"img",3)(2,"img",4);K(3,"p",5);Q(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");
L();K(5,"p",6);Q(6," If this issue blocks other issues, this issue should be resolved before the others. ");K(7,"a",7);Q(8,"Learn more");L()();K(9,"button",8);N("click",function(){u(b);var c=P(2);return v(o8b(c))});Q(10," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.TEA_LIGHT,Pe),B(),I("src",a.TEA_DARK,Pe))},q8b=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},r8b=function(a){a&1&&(F(0,q8b,1,2,"b-issues-table",13),T(1,"async"));if(a&2){var b;
a=P(5);G((b=U(1,1,a.blockedAndOpenIds$))?0:-1,b)}},s8b=function(a){a&1&&(K(0,"p",12),Q(1,"Not blocking any open issues \ud83e\udd73"),L())},t8b=function(a,b){a&1&&(K(0,"h4",11),Q(1),L(),F(2,r8b,2,3)(3,s8b,2,0,"p",12));a&2&&(B(),S("Open (",b.length,")"),B(),G(b.length>0?2:3))},u8b=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},v8b=function(a){a&1&&(K(0,"h4",11),Q(1),L(),F(2,u8b,1,2,"b-issues-table",13),T(3,"async"));if(a&2){var b;a=P();
var c=P(4);B();S("Closed (",a.length,")");B();G((b=U(3,2,c.blockedAndClosedIds$))?2:-1,b)}},w8b=function(a,b){a&1&&F(0,v8b,4,4);a&2&&G(b.length>0?0:-1)},x8b=function(a){a&1&&(F(0,t8b,4,2),T(1,"async"),F(2,w8b,1,1),T(3,"async"));if(a&2){var b,c;a=P(3);G((b=U(1,2,a.blockedAndOpen$))?0:-1,b);B(2);G((c=U(3,4,a.blockedAndClosed$))?2:-1,c)}},y8b=function(a,b){a&1&&(K(0,"li")(1,"a",15)(2,"span",6),Q(3),L(),K(4,"aside",16),M(5,"button",17),L()()());a&2&&(a=b.$implicit,B(),Kf("aria-label",Eg("Issue ",a)),
I("routerLink",Eg("/issues/",a)),B(2),S("b/",a))},z8b=function(a){a&1&&(K(0,"h4",11),Q(1,"Loading..."),L(),K(2,"ol",14),Of(3,y8b,6,5,"li",null,Nf),L());a&2&&(a=P(2),B(3),Pf(a))},A8b=function(a,b){a&1&&(K(0,"a",10),Q(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},B8b=function(a){if(a&1){var b=t();F(0,x8b,4,6);T(1,"async");Lf(2,z8b,5,0);K(3,"aside",9)(4,"button",8);N("click",function(){u(b);var d=P(2);return v(o8b(d))});Q(5," Add ");L();F(6,A8b,2,2,"a",10);T(7,
"async");L()}if(a&2){var c;a=P(2);G(U(1,2,a.issuesBeingBlocked$)?0:2);B(6);G((c=U(7,4,a.searchUrl$))?6:-1,c)}},C8b=function(a,b){a&1&&F(0,p8b,11,2,"div",2)(1,B8b,8,6);a&2&&G(b.length===0?0:1)},D8b=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},E8b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",3),K(2,"span",4),Q(3),L()());a&2&&(a=P(),B(3),S("",a.length," parent issues"))},F8b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",5),K(2,"span",4),Q(3),L()());a&2&&(a=P(),B(3),S("Blocked by ",a.length,
" issues"))},G8b=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(4),xg(Eg("chippy status-",b," margin-s-left")),B(),S(" ",a.STATUS_JS_TERSE.get(b)," "))},H8b=function(a){a&1&&(K(0,"a",6)(1,"div",7)(2,"div",8)(3,"div",9),Q(4),L(),K(5,"div",10),Q(6),L()(),K(7,"div",8)(8,"div",11),Q(9),L(),F(10,G8b,2,4,"span",12),L()()());if(a&2){var b,c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P(2);I("routerLink",Eg("/issues/",a.issueId));B();wg("border-bottom",d!==c-1);B(3);yg(a.issueId);B(2);yg(a.snapshot[0].title);
B(2);xg(e.priorityClass(a.snapshot[0].priority));B();yg(a.snapshot[0].priority);B();G((b=a.snapshot[0].status)?10:-1,b)}},I8b=function(a,b){a&1&&F(0,H8b,11,10,"a",6);a&2&&G(b.$index<5?0:-1)},K8b=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2);return v(J8b(c))});Q(2,"View all parent issues");L()()}},L8b=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2),d;(d=c.hovercardInstance)==null||d.closeHovercard$.next();
Ct(c.router,"/issues/"+c.currentIssueId+"/dependencies");return v()});Q(2,"View all blockers");L()()}},N8b=function(a,b){a&1&&(K(0,"div",0),F(1,E8b,4,1,"div",1),F(2,F8b,4,1,"div",1),K(3,"div"),Of(4,I8b,1,1,null,null,M8b),F(6,K8b,3,0,"div",2),F(7,L8b,3,0,"div",2),L()());a&2&&(a=P(),B(),G(a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?1:-1),B(),G(a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?2:-1),B(2),Pf(b),B(2),G(b.length>5&&a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?6:-1),B(),G(b.length>
5&&a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?7:-1))},O8b=function(a){a&1&&M(0,"mat-icon",4)},P8b=function(a){a&1&&(Uf(0),M(1,"b-list-issues-card",6,1),Vf());if(a&2){a=qg(2);P();var b=qg(4),c=P();B();I("onedevIsHovercardReady",a.init)("hovercardInstance",b)("currentIssueId",c.issueId)("issueIds",c.multiParentIssueIds)("mode",c.ListIssuesHovercardMode.PARENT_ISSUES)}},Q8b=function(a){a&1&&(K(0,"a",3),Q(1),L(),F(2,O8b,1,0,"mat-icon",4),K(3,"onedev-hovercard",null,0),E(5,P8b,3,5,"ng-container",
5),L());if(a&2){a=qg(4);var b=P();I("title",Eg("",b.multiParentIssueIds.length," parents at this position"))("onedevHovercardTrigger",a);B();S("",b.multiParentIssueIds.length," Parents\u2026");B();G(b.multiParentIssueIds.length>1?2:-1)}},R8b=function(a,b){a&1&&(K(0,"b-issue-reference-widget",7),Q(1),L(),M(2,"mat-icon",4));if(a&2){var c=b.$implicit;a=b.$index;b=b.$count;var d=P();I("href",d.getIssueLink(c))("issueId",c);B();d.issueIdToTitle.has(c)?(c=d.issueIdToTitle.get(c),c=U7a(c)):c=String(c);yg(c);
B();wg("last",a===b-1)}},T8b=function(a,b){if(a&1){var c=t();K(0,"button",1);T(1,"async");N("click",function(){u(c);var d=P();return v(S8b(d))});Q(2);L()}a&2&&(a=P(),I("disabled",a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)||U(1,3,a.canEdit$)===!1)("title",b.isDupe?a.TOOLTIP_UNMARK_DUPE:a.TOOLTIP_MARK_DUPE),B(2),S(" ",b.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},U8b=function(a){a&1&&Wf(0)},V8b=function(a){a&1&&E(0,U8b,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},
W8b=function(a,b){if(a&1){var c=t();K(0,"button",12);N("click",function(e){var f=u(c).$implicit,g=P(2);return v(g.onAction(f,e))});M(1,"mat-icon",13);Q(2);L()}if(a&2){a=b.$implicit;I("disabled",a.disabled)("title",a.title);Kf("aria-label",a.title);B();var d;I("svgIcon",(d=a.icon)!=null?d:"");B();S(" ",a.label," ")}},X8b=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(d){u(b);var e=P(2);d.stopPropagation();d.preventDefault();var f;(f=e.helpHover)==null||f.toggle();return v()});M(1,
"mat-icon",15);Q(2," Retention: ");M(3,"retention-text",16);Q(4," \u00a0 ");M(5,"help-hover",17);L()}if(a&2){a=P();var c=qg(13);B(3);I("retentionState",a.retentionState);B(2);I("content",c)}},Y8b=function(a){a&1&&M(0,"retention-help-text",18);a&2&&(a=P(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},Z8b=function(a){a&1&&F(0,Y8b,1,2,"retention-help-text",18);a&2&&(a=P(),G(a.retentionState&&a.modifiedTimeMilliseconds?0:-1))},a9b=function(a,b){if(a&1){var c=t();M(0,
"b-app-vote-button",3)(1,"hotlist-picker-btn",4);K(2,"smart-dupe-btn",5,0);N("onHotkey",function(){u(c);var e=qg(3);return v(S8b(e))});L();K(4,"b-notification-menu",6);N("subscriptionChange",function(e){u(c);var f=P();return v(f.updateSubscription(e))})("showNotificationSettings",function(e){u(c);var f=P();return v(f.showNotificationSettings(e))});L();K(5,"button",7);M(6,"mat-icon",8);L();K(7,"mat-menu",9,1);Of(9,W8b,3,5,"button",10,$8b);F(11,X8b,6,2,"button",11);L();E(12,Z8b,1,1,"ng-template",null,
2,Mg)}if(a&2){a=qg(8);var d=P();I("issueId",b.issueId)("voteCount",b.voteCount)("upvoted",b.voted);B();I("issueId",b.issueId);B();I("issueId",b.issueId)("hotkey",d.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);I("subscription",b.notificationSubscription)("issueId",b.issueId)("iconOnly",!0);B();I("matMenuTriggerFor",a);B(4);Pf(b.menuItems);B(2);G(d.retentionEnabled?11:-1)}},b9b=function(){},c9b=function(a){a&1&&(K(0,"output"),Q(1),T(2,"async"),L());if(a&2){a=P();var b=P();B();zg(" ",a," of ",U(2,2,b.currentSearchResults.totalText$),
" ")}},f9b=function(a,b){if(a&1){var c=t();F(0,c9b,3,4,"output");K(1,"span")(2,"button",0);T(3,"async");N("onHotkey",function(){u(c);var d=P();return v(d9b(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(d9b(d.currentSearchResults))});M(4,"mat-icon",1);L();K(5,"button",2);T(6,"async");N("onHotkey",function(){u(c);var d=P();return v(e9b(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(e9b(d.currentSearchResults))});M(7,"mat-icon",3);L()()}a&2&&(a=P(),G(b!==
-1?0:-1),B(),wg("invisible",b===-1)("zero-width",b===-1),B(),I("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!U(3,9,a.currentSearchResults.hasPreviousIssue$)),B(3),I("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!U(6,11,a.currentSearchResults.hasNextIssue$)))},g9b=function(a){a&1&&M(0,"b-issue-visibility-chip",1);a&2&&(a=P(2),I("issueId",a.issueId))},h9b=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))},
i9b=function(a){a&1&&M(0,"b-retention-chip",3);a&2&&(a=P(2),I("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},j9b=function(a){a&1&&(K(0,"div",0),F(1,g9b,1,1,"b-issue-visibility-chip",1),F(2,h9b,1,3,"b-access-limits-chip",2),F(3,i9b,1,3,"b-retention-chip",3),L());a&2&&(a=P(),B(),G(a.hasAccessIndicator?1:-1),B(),G(a.isAccessLimited?2:-1),B(),G(a.isShowingRetention?3:-1))},k9b=function(a,b){a&1&&F(0,j9b,4,3,"div",0);a&2&&G(b.isShowingPublicPartner||b.isShowingRetention||
b.isAccessLimited?0:-1)},l9b=function(a){a&1&&(K(0,"div",2),M(1,"mat-icon",4),Q(2),T(3,"async"),L());if(a&2){a=P();var b=qg(4);I("onedevHovercardTrigger",b);B(2);S("",U(3,2,a.teamName$)," ")}},m9b=function(a){a&1&&Wf(0)},n9b=function(a){a&1&&E(0,m9b,1,0,"ng-container",20);a&2&&(P(),a=qg(13),I("ngTemplateOutlet",a))},o9b=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",22),T(1,"async"),K(2,"div",23),M(3,"b-issue-id-picker",24),T(4,"async"),T(5,"async"),T(6,"async"),L());a&2&&(a=P(2),I("componentId",
U(1,6,a.componentId$))("issueId",a.issueId),B(3),I("issueId",a.issueId)("componentId",U(4,8,a.componentId$))("issueTitle",U(5,10,a.issueTitle$))("isExternalIssue",!!U(6,12,a.isWithinExternalComponent$)))},p9b=function(a){if(a&1){var b=t();K(0,"b-team-chip",21);T(1,"async");T(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return v(c.isTeamLoaded=!0)});L();F(3,o9b,7,14)}a&2&&(a=P(),I("componentId",U(1,3,a.componentId$))("teamId",U(2,5,a.teamId$)),B(3),G(a.isTeamLoaded?3:-1))},q9b=function(a,
b){a&1&&M(0,"ancestors-breadcrumbs",27);a&2&&(a=P(3),I("ancestors",b)("issueId",a.issueId))},r9b=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",25),T(1,"async"),K(2,"div",26),F(3,q9b,1,2,"ancestors-breadcrumbs",27),T(4,"async"),M(5,"b-issue-id-picker",28),T(6,"async"),T(7,"async"),T(8,"async"),L());if(a&2){var b;a=P(2);I("componentId",U(1,8,a.componentId$))("compactMode",!0)("issueId",a.issueId);B(3);G((b=U(4,10,a.ancestors$))?3:-1,b);B(2);I("issueId",a.issueId)("componentId",U(6,12,a.componentId$))("issueTitle",
U(7,14,a.issueTitle$))("isExternalIssue",!!U(8,16,a.isWithinExternalComponent$))}},s9b=function(a){if(a&1){var b=t();K(0,"b-team-chip",21);T(1,"async");T(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return v(c.isTeamLoaded=!0)});L();F(3,r9b,9,18)}a&2&&(a=P(),I("componentId",U(1,3,a.componentId$))("teamId",U(2,5,a.teamId$)),B(3),G(a.isTeamLoaded?3:-1))},t9b=function(a,b){a&1&&(K(0,"div",17),M(1,"mat-icon",29),Q(2),L());a&2&&(P(),a=qg(36),I("onedevHovercardTrigger",a),B(2),S(" ",b," "))},u9b=
function(a){a&1&&(Uf(0),M(1,"b-list-issues-card",30,2),T(3,"async"),Vf());if(a&2){a=qg(2);var b=P(),c=qg(36);B();I("onedevIsHovercardReady",a.init)("hovercardInstance",c)("currentIssueId",b.issueId)("issueIds",U(3,5,b.blockedByids$))("mode",b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},v9b=function(a){if(a.length!==0)return a.length===1?ps.viewIssue.makeHref(a[0]):ps.listIssues.makeHref()},w9b=function(a){a&1&&(K(0,"h3",10),Q(1,"Thinking text:"),L(),K(2,"p",11),Q(3),L());a&2&&(a=P().$implicit,B(3),
S(" ",a.text," "))},x9b=function(a){a&1&&(K(0,"span",14),Q(1),L(),Q(2," : "),K(3,"span",15),Q(4),L(),Q(5,", "));a&2&&(a=P().$implicit,B(),yg(a.key),B(3),S('"',a.value,'"'))},y9b=function(a,b){a&1&&F(0,x9b,6,2);a&2&&G(b.$implicit.value?0:-1)},z9b=function(a){a&1&&(K(0,"p"),Q(1," [ "),Of(2,y9b,1,1,null,null,Nf),T(4,"keyvalue"),Q(5," ] "),L());a&2&&(a=P().$implicit,B(2),Pf(U(4,0,a.arguments)))},A9b=function(a){a&1&&(K(0,"p",16)(1,"span",14),Q(2),L(),Q(3," : "),K(4,"span",15),Q(5),L(),Q(6,", "),L());
a&2&&(a=P().$implicit,B(2),yg(a.key),B(3),S('"',a.value,'"'))},B9b=function(a,b){a&1&&F(0,A9b,7,2,"p",16);a&2&&G(b.$implicit.value?0:-1)},C9b=function(a,b){a&1&&(K(0,"div",12)(1,"p")(2,"span",13),Q(3),L(),Q(4," was called with: "),L(),F(5,z9b,6,2,"p"),K(6,"p")(7,"span",13),Q(8,"Output:"),L()(),Of(9,B9b,1,1,null,null,Nf),T(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),yg(a.name),B(2),G(a.arguments?5:-1),B(4),Pf(U(11,2,a.outputs)))},D9b=function(a){a&1&&Of(0,C9b,12,4,"div",12,Nf);a&2&&(a=P().$implicit,
Pf(a.functionCalls))},E9b=function(a,b){a&1&&(K(0,"div",6)(1,"p",9),Q(2),L(),F(3,w9b,4,1),F(4,D9b,2,0),L());a&2&&(a=b.$implicit,b=b.$index,B(2),S("Step ",b+1),B(),G(a.text?3:-1),B(),G(a.functionCalls?4:-1))},F9b=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Oe)},G9b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Problem Identification"),L()(),K(4,"ul",3),Of(5,F9b,1,1,"li",4,Mf),L());a&2&&(a=P(),B(5),Pf(a.problemIdentificationSummaries))},H9b=function(a,b){a&1&&M(0,
"li",4);a&2&&I("innerHTML",b.$implicit,Oe)},I9b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Solution summary"),L()(),K(4,"ul",3),Of(5,H9b,1,1,"li",4,Mf),L());a&2&&(a=P(),B(5),Pf(a.solutionSummaries))},J9b=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Oe)},K9b=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Code change"),L()(),K(4,"ul",3),Of(5,J9b,1,1,"li",4,Mf),L());a&2&&(a=P(),B(5),Pf(a.codeChangeSummaries))},L9b=function(a){if(a&1){var b=t();K(0,
"button",10);N("click",function(){u(b);var c=P(3),d=P();return v(d.openTailwindInfoDialog(c.trajectory))});Q(1," View Details ");L()}},M9b=function(a){a&1&&F(0,L9b,2,0,"button",9);a&2&&(a=P(2),G(a.trajectory.prompt!==""&&a.trajectory.steps.length>0?0:-1))},N9b=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){var c=u(b),d=P(3);c&&(d.domSafe.openInNewTab("https://cider.corp.google.com/?createWs=tailwind-"+c+"&patchCl="+c),d.analytics.trackEvent("tailwind","editInCider",d.issueId));
return v()});Q(1,"Edit in Cider");L();K(2,"button",12);N("click",function(){var c=u(b),d=P(3);return v(d.handleViewInCritique(c))});Q(3,"View in Critique");L()}},O9b=function(a,b){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),Q(3,"Validation passed"),L()(),K(4,"ul",3)(5,"li",5)(6,"a",6),Q(7,"View build results."),L()(),K(8,"li",5)(9,"a",6),Q(10,"View test results."),L()()(),M(11,"span",7),K(12,"div",8),F(13,M9b,1,1),F(14,N9b,4,0),L());if(a&2){var c;a=P();B(6);I("href",Eg("https://fusion2.corp.google.com/invocations/",
b.buildInvocationId),Pe);B(3);I("href",Eg("https://fusion2.corp.google.com/invocations/",b.testSpongeInvocationId),Pe);B(4);G(a.trajectory?13:-1);B();G((c=a.runResults==null?null:a.runResults.oclNumber)?14:-1,c)}},P9b=function(a,b){a&1&&(F(0,G9b,7,0),F(1,I9b,7,0),F(2,K9b,7,0),F(3,O9b,15,6));if(a&2){var c;G(b.problemIdentificationSummaries?0:-1);B();G(b.solutionSummaries?1:-1);B();G(b.codeChangeSummaries?2:-1);B();G((c=b.runResults==null?null:b.runResults.validation)?3:-1,c)}},Q9b=function(a,b){a&
1&&M(0,"b-bug2code-sidebar",9);a&2&&I("issueId",b)},R9b=function(a){a&1&&(K(0,"div",10),Q(1,"View an issue details to gain AI insights."),L())},S9b=function(a,b){a&1&&(K(0,"div",0),M(1,"img",1),K(2,"h3"),Q(3),L(),K(4,"a",2),T(5,"async"),Q(6),L()());a&2&&(a=P(),B(),I("src",b.branding==null?null:b.branding.logoUrl,Pe),B(2),S("This issue is a part of the ",b.name," tracker."),B(),I("href",U(5,4,a.trackerRedirectUrl$),Pe),B(2),S(" View in ",b.name," Tracker "))},T9b=function(a){a&1&&(K(0,"div")(1,"ol")(2,
"li")(3,"label"),Q(4,"Issue ID"),L(),K(5,"output"),Q(6),L()(),K(7,"li")(8,"label"),Q(9,"Type"),L(),K(10,"output"),Q(11),L()(),K(12,"li")(13,"label"),Q(14,"Status"),L(),K(15,"output"),Q(16),L()()()());a&2&&(a=P(2),B(6),yg(a.issueId),B(5),yg(a.issueType),B(5),yg(a.issueStatus))},U9b=function(a){a&1&&(K(0,"div",0)(1,"div",1),M(2,"img",2),T(3,"async"),M(4,"mat-icon",3)(5,"img",2),T(6,"async"),L(),K(7,"h3",4),Q(8),T(9,"async"),L(),F(10,T9b,17,3,"div"),K(11,"div",5)(12,"a",6),T(13,"async"),Q(14,"Continue"),
L()()());a&2&&(a=P(),B(2),I("src",U(3,5,a.currentTrackerLogo$),Pe),B(3),I("src",U(6,7,a.trackerLogo$),Pe),B(3),S(" Redirecting to ",U(9,9,a.trackerName$)," "),B(2),G(a.issue!=null?10:-1),B(2),I("href",U(13,11,a.trackerRedirectUrl$),Pe))},V9b=function(a,b){if(a instanceof Element){var c=Mm(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)}}},W9b=function(a,
b){a&1&&(K(0,"h2",7),Q(1),L());a&2&&(B(),S("Issue ",b))},X9b=function(a){a&1&&Wf(0,10);a&2&&(P(3),a=qg(12),I("ngTemplateOutlet",a))},Y9b=function(a){a&1&&Wf(0,10);a&2&&(P(4),a=qg(16),I("ngTemplateOutlet",a))},$9b=function(a){a&1&&Wf(0,12);if(a&2){a=P(2);P(3);var b=qg(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Z9b,a.monorailRedirectUrl))}},a$b=function(a){a&1&&F(0,$9b,1,4,"ng-container",12);a&2&&(a=P(),G(a.monorailRedirectUrl?0:-1))},b$b=function(a,b){a&1&&F(0,Y9b,1,1,"ng-container",
10)(1,a$b,1,1);if(a&2){var c;G((c=b.status)===403?0:c===404?1:-1)}},c$b=function(a,b){a&1&&(F(0,X9b,1,1,"ng-container",10),F(1,b$b,2,1),T(2,"async"));if(a&2){var c;a=P(2);G(b.success?0:-1);B();G((c=U(2,2,a.mainIssueLoadError$))?1:-1,c)}},d$b=function(a){a&1&&(F(0,c$b,3,4),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.readyForView$))?0:-1,b)}},e$b=function(a){a&1&&M(0,"tailwind-sidebar")},f$b=function(a){a&1&&M(0,"llm-chat")},g$b=function(a){a&1&&F(0,e$b,1,0,"tailwind-sidebar")(1,f$b,1,0,"llm-chat");
a&2&&(a=P(),G(a.enableTailwindSidebar?0:a.enableLlmChat?1:-1))},h$b=function(a,b){a&1&&F(0,g$b,2,1);a&2&&G(b.isIssueDetailsPageSidebarOpen?0:-1)},i$b=function(a){a&1&&(F(0,h$b,1,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.issueDetailsOptions$))?0:-1,b)}},j$b=function(a){a&1&&(K(0,"a",24),Q(1,"Learn more"),L())},k$b=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){var c=u(b),d=P(4);return v(d.editIssueService.unarchive(c))});Q(1," Unarchive ");L()}},l$b=function(a){a&1&&(K(0,
"b-callout",16)(1,"b-callout-body"),Q(2,"This issue has been archived. "),F(3,j$b,2,0,"a",24),L(),K(4,"b-callout-actions"),F(5,k$b,2,0,"button",25),T(6,"async"),L()());if(a&2){var b;a=P(3);I("messageType","caution")("format","app")("iconOverride","archive_24px");B(3);G(a.activeSession.isInternalSession()?3:-1);B(2);G((b=U(6,5,a.id$))?5:-1,b)}},m$b=function(a){a&1&&(K(0,"a",27),Q(1,"Learn more"),L())},n$b=function(a){a&1&&(K(0,"b-callout",17)(1,"b-callout-body"),Q(2," This issue is in an archived component. "),
F(3,m$b,2,0,"a",27),L()());a&2&&(a=P(3),I("format","app")("iconOverride","archive_24px"),B(3),G(a.activeSession.isInternalSession()?3:-1))},o$b=function(a,b){a&1&&(Q(0," Reason: "),K(1,"code"),Q(2),L(),Q(3,". "));a&2&&(B(2),yg(b))},p$b=function(a){a&1&&(K(0,"a",28),Q(1,"Learn more"),L())},r$b=function(a){if(a&1){var b=t();K(0,"button",30);T(1,"async");T(2,"async");N("click",function(){var d=u(b),e=P(4);return v(q$b(e.editIssueService,d))});Q(3," Undelete ");L()}if(a&2){a=P(4);var c;I("matTooltip",
(c=U(1,2,a.undeleteButtonTooltip$))!=null?c:"")("disabled",!U(2,4,a.permissions.canUndeleteIssue$))}},s$b=function(a){a&1&&(K(0,"b-callout",18)(1,"b-callout-body"),Q(2," This issue has been deleted. "),F(3,o$b,4,1),T(4,"async"),F(5,p$b,2,0,"a",28),L(),K(6,"b-callout-actions"),F(7,r$b,4,6,"button",29),T(8,"async"),L()());if(a&2){var b,c;a=P(3);B(3);G((b=(b=U(4,3,a.snapshot$))==null?null:b.deletionReason)?3:-1,b);B(2);G(a.activeSession.isInternalSession()?5:-1);B(2);G((c=U(8,5,a.id$))?7:-1,c)}},t$b=
function(a){a&1&&(K(0,"a",31),Q(1,"Major updates"),L())},u$b=function(a){a&1&&(K(0,"a",32),Q(1,"Major edits"),L())},v$b=function(a){a&1&&(K(0,"a",33),Q(1,"Learn more"),L())},w$b=function(a){a&1&&(K(0,"b-callout",19)(1,"b-callout-body"),Q(2," This issue has been marked as inactive. "),F(3,t$b,2,0,"a",31)(4,u$b,2,0,"a",32),Q(5," will reopen the issue. "),F(6,v$b,2,0,"a",33),L()());a&2&&(a=P(3),I("format","app"),B(3),G(a.activeSession.isInternalSession()?3:4),B(3),G(a.activeSession.isInternalSession()?
6:-1))},x$b=function(a,b){a&1&&(K(0,"output",37),Q(1),L());a&2&&(B(),S(" ",b," "))},z$b=function(a,b){a&1&&(K(0,"a",36,6),Q(2),F(3,x$b,2,1,"output",37),T(4,"async"),L());if(a&2){var c;a=b.$implicit;b=qg(1);I("routerLink",a.link)("active",b.isActive)("routerLinkActiveOptions",Hg(7,y$b));B(2);S(" ",a.title," ");B();G((c=U(4,5,a.count$))?3:-1,c)}},A$b=function(a,b){a&1&&(K(0,"header",20),M(1,"b-tracker-banner",34),T(2,"async"),T(3,"async"),M(4,"issue-header",23),K(5,"nav",35),Of(6,z$b,5,8,"a",36,Nf),
L(),M(8,"mat-tab-nav-panel",null,5),L());if(a&2){a=qg(9);var c=P(3);B();I("issueId",U(2,4,c.id$))("trackerId",U(3,6,c.issueTrackerId$));B(3);I("issueId",b);B();I("tabPanel",a);B();Pf(c.tabs)}},B$b=function(a,b){a&1&&M(0,"issue-metadata-sidebar",23);a&2&&I("issueId",b)},C$b=function(a){a&1&&(K(0,"div",15),T(1,"async"),F(2,l$b,7,7,"b-callout",16),T(3,"async"),F(4,n$b,4,3,"b-callout",17),T(5,"async"),F(6,s$b,9,7,"b-callout",18),T(7,"async"),F(8,w$b,7,3,"b-callout",19),T(9,"async"),F(10,A$b,10,8,"header",
20),T(11,"async"),K(12,"div",21)(13,"article",22),M(14,"router-outlet"),L(),F(15,B$b,1,1,"issue-metadata-sidebar",23),T(16,"async"),L()());if(a&2){var b,c;a=P(2);wg("issue-editor-false",!U(1,8,a.permissions.hasAclToEdit$));B(2);G(U(3,10,a.archived$)?2:-1);B(2);G(U(5,12,a.inArchivedComponent$)?4:-1);B(2);G(U(7,14,a.deleted$)?6:-1);B(2);G(U(9,16,a.isInactive$)?8:-1);B(2);G((b=U(11,18,a.id$))?10:-1,b);B(5);G((c=U(16,20,a.id$))?15:-1,c)}},D$b=function(a){a&1&&(K(0,"div",14),M(1,"b-tracker-redirect",38),
T(2,"async"),L());a&2&&(a=P(2),B(),I("issue",U(2,1,a.issue$)))},E$b=function(a){a&1&&(F(0,C$b,17,22,"div",13),T(1,"async"),Lf(2,D$b,3,3,"div",14));a&2&&(a=P(),G(U(1,1,a.showTrackerRedirect$)?2:0))},F$b=function(a,b){a&1&&(K(0,"h3"),Q(1," Redirecting to "),K(2,"a",39),Q(3),L()());a&2&&(a=b.monorailRedirectUrl,B(2),I("href",a,Pe),B(),S(" ",a," "))},G$b=function(a){a&1&&(M(0,"b-access-denied-metadata",40),T(1,"async"));a&2&&(a=P(2),I("issueMetadata",U(1,1,a.issueMetadata$)))},H$b=function(a){a&1&&M(0,
"b-access-denied-metadata",41)},I$b=function(a){a&1&&(K(0,"div",14),F(1,G$b,2,3,"b-access-denied-metadata",40)(2,H$b,1,0,"b-access-denied-metadata",41),L());a&2&&(a=P(),B(),G(a.activeSession.isInternalSession()?1:2))},J$b=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))},L$b=function(a){if(a&1){var b=t();K(0,"div",2);M(1,"img",3);K(2,"p",4);Q(3," This issue has no duplicates ");L();
K(4,"p",5);Q(5," A duplicate is an issue with similar content. ");L();K(6,"p",5);Q(7,' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');K(8,"a",6);Q(9,"Learn more");L()();K(10,"button",7);N("click",function(){u(b);var c=P(2);return v(K$b(c))});Q(11," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.ROBOT_SLEEPING,Pe))},M$b=function(a,b){a&1&&M(0,"b-duplicates-table",10);a&2&&(a=P(2),I("issueId",b)("duplicateIds",a))},N$b=function(a,b){a&1&&(K(0,"a",12),
Q(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},O$b=function(a){if(a&1){var b=t();K(0,"h4",8);Q(1);T(2,"async");K(3,"button",9);N("click",function(){u(b);var e=P(2);return v(K$b(e))});Q(4," Add ");L()();F(5,M$b,1,2,"b-duplicates-table",10);T(6,"async");K(7,"aside",11);F(8,N$b,2,2,"a",12);T(9,"async");L()}if(a&2){var c,d;a=P(2);B();S("Duplicates ",U(2,3,a.counts.countDuplicateDisplay$)," ");B(4);G((c=U(6,5,a.id$))?5:-1,c);B(3);G((d=U(9,7,a.dupeUrl$))?8:-1,
d)}},P$b=function(a){a&1&&(F(0,L$b,12,1,"div",2),T(1,"async"),Lf(2,O$b,10,9));a&2&&(a=P(),G(U(1,1,a.showTable$)?2:0))},Q$b=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},R$b=function(a,b){a&1&&(K(0,"span",9),Q(1," of "),K(2,"a",10),Q(3),L()());a&2&&(P(2),a=qg(11),B(2),I("routerLink",Eg("/issues/",b))("onedevHovercardTrigger",a),B(),S(" ",b," "))},S$b=function(a,b){a&1&&(K(0,"div")(1,"div",8),T(2,"async"),Q(3),L(),F(4,R$b,4,4,"span",9),T(5,"async"),L());if(a&2){var c;a=P();B();xg(Eg("chippy ",
U(2,6,a.statusCssClass$)));var d;I("title",(d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"");B(2);var e;S(" ",(e=a.STATUS_JS_TERSE.get(b))!=null?e:""," ");B();G((c=U(5,8,a.canonicalId$))?4:-1,c)}},T$b=function(a,b){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(),xg(Eg("b-chip squared issue-type-",b)),B(),S(" ",a.issueTypeToDisplay(b)," "))},U$b=function(a,b){a&1&&M(0,"b-issue-hotlists",6);a&2&&I("issueId",b)},V$b=function(a){a&1&&(M(0,"b-issue-card",11,1),T(2,"async"));if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",
a.init)("issueId",U(2,2,b.canonicalId$))}},W$b=function(a){a&1&&Wf(0)},Y$b=function(a){a&1&&(K(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),Q(3,"View Steps Taken"),L()(),E(4,W$b,1,0,"ng-container",12),L());if(a&2){a=P();var b=qg(23);B(4);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,X$b,a.data.trajectory))}},Z$b=function(a){a&1&&(K(0,"h3",19),Q(1,"Thinking text:"),L(),K(2,"p",20),Q(3),L());a&2&&(a=P().$implicit,B(3),S(" ",a.text," "))},$$b=function(a){a&
1&&(K(0,"span",23),Q(1),L(),Q(2," : "),K(3,"span",24),Q(4),L(),Q(5,", "));a&2&&(a=P().$implicit,B(),yg(a.key),B(3),S('"',a.value,'"'))},aac=function(a,b){a&1&&F(0,$$b,6,2);a&2&&G(b.$implicit.value?0:-1)},bac=function(a){a&1&&(K(0,"p"),Q(1," [ "),Of(2,aac,1,1,null,null,Nf),T(4,"keyvalue"),Q(5," ] "),L());a&2&&(a=P().$implicit,B(2),Pf(U(4,0,a.arguments)))},cac=function(a){a&1&&(K(0,"p",25)(1,"span",23),Q(2),L(),Q(3," : "),K(4,"span",24),Q(5),L(),Q(6,", "),L());a&2&&(a=P().$implicit,B(2),yg(a.key),B(3),
S('"',a.value,'"'))},dac=function(a,b){a&1&&F(0,cac,7,2,"p",25);a&2&&G(b.$implicit.value?0:-1)},eac=function(a,b){a&1&&(K(0,"div",21)(1,"p")(2,"span",22),Q(3),L(),Q(4," was called with: "),L(),F(5,bac,6,2,"p"),K(6,"p")(7,"span",22),Q(8,"Output:"),L()(),Of(9,dac,1,1,null,null,Nf),T(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),yg(a.name),B(2),G(a.arguments?5:-1),B(4),Pf(U(11,2,a.outputs)))},fac=function(a){a&1&&Of(0,eac,12,4,"div",21,Nf);a&2&&(a=P().$implicit,Pf(a.functionCalls))},gac=function(a,b){a&
1&&(K(0,"div",17)(1,"p",18),Q(2),L(),F(3,Z$b,4,1),F(4,fac,2,0),L());a&2&&(a=b.$implicit,b=b.$index,B(2),S("Step ",b+1),B(),G(a.text?3:-1),B(),G(a.functionCalls?4:-1))},hac=function(a,b){a&1&&(K(0,"div",13)(1,"div",14)(2,"h3",15),Q(3,"Prompt:"),L(),K(4,"p",16),Q(5),L()(),Of(6,gac,5,3,"div",17,Nf),L());a&2&&(a=b.data,B(5),S(" ",a.prompt," "),B(),Pf(a.steps))},iac=function(a){a&1&&M(0,"div",9)},jac=function(a){a&1&&(K(0,"div"),Q(1," AI-generated code changes may contain inaccurate or offensive information that doesn't represent Google's views. "),
L())},kac=function(a){a&1&&Wf(0)},lac=function(a){a&1&&E(0,kac,1,0,"ng-container",17);a&2&&(P(2),a=qg(5),I("ngTemplateOutlet",a))},mac=function(a){a&1&&Wf(0)},nac=function(a){a&1&&E(0,mac,1,0,"ng-container",17);a&2&&(P(2),a=qg(7),I("ngTemplateOutlet",a))},oac=function(a){a&1&&Wf(0)},pac=function(a){a&1&&E(0,oac,1,0,"ng-container",18);if(a&2){P(2);a=qg(9);var b=bg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,iu,b))}},qac=function(a){a&1&&Wf(0)},rac=function(a){a&1&&E(0,qac,1,0,"ng-container",
18);if(a&2){P(2);a=qg(9);var b=bg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,iu,b))}},sac=function(a){a&1&&Wf(0)},tac=function(a){a&1&&E(0,sac,1,0,"ng-container",18);if(a&2){P(2);a=qg(11);var b=bg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,iu,b))}},uac=function(a){a&1&&Wf(0)},vac=function(a){a&1&&E(0,uac,1,0,"ng-container",18);if(a&2){P(2);a=qg(11);var b=bg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Ig(2,iu,b))}},wac=function(a){a&1&&(K(0,"div",6)(1,"div",7),
M(2,"mat-icon",8),F(3,iac,1,0,"div",9),L(),K(4,"h4",10),Q(5),T(6,"async"),K(7,"xap-bubble",11)(8,"xap-icon-trigger",12),M(9,"mat-icon",13),L(),E(10,jac,2,0,"ng-template",null,5,Mg),L(),K(12,"a",14),M(13,"mat-icon",15),L()(),K(14,"div",16),F(15,lac,1,1,"ng-container")(16,nac,1,1,"ng-container")(17,pac,1,4,"ng-container")(18,rac,1,4,"ng-container")(19,tac,1,4,"ng-container")(20,vac,1,4,"ng-container"),L()());if(a&2){a=qg(11);var b=P(),c=bg(0);B(3);G(c===b.LlmSuggestionStatus.GENERATING||c===b.LlmSuggestionStatus.LOADING?
3:-1);B(2);S(" ",U(6,4,b.statusMessage$)," ");B(2);I("panelTemplate",a);B(8);G(c===b.LlmSuggestionStatus.INITIAL?15:c===b.LlmSuggestionStatus.GENERATING?16:c===b.LlmSuggestionStatus.GENERATION_SUCCESS?17:c===b.LlmSuggestionStatus.GENERATION_SUCCESS_INELIGIBLE?18:c===b.LlmSuggestionStatus.ERROR?19:c===b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?20:-1)}},yac=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P();return v(xac(c))});Q(1," Start AI fix ");L();K(2,"button",
20);N("click",function(){u(b);var c=P();return v(c.ignore())});Q(3," Ignore ");L()}},zac=function(){},Aac=function(a){a&1&&Wf(0)},Cac=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){u(c);var d=P();d.openSidebar();d.analytics.trackEvent("tailwind","display",d.issueId);Bac(d.issueId);return v()});Q(1," View Summary ");L();K(2,"button",22);N("click",function(){u(c);var d=P();return v(d.handleViewInCritique())});Q(3," View in Critique ");L();E(4,Aac,1,0,"ng-container",18)}a&2&&(a=
b.status,P(),b=qg(13),B(4),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,iu,a)))},Dac=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(2);return v(c.openTailwindInfoDialog())});Q(1," View details ");L()}},Eac=function(a){a&1&&Wf(0)},Gac=function(a,b){a&1&&(F(0,Dac,2,0,"button",23),E(1,Eac,1,0,"ng-container",18));if(a&2){a=b.status;b=P();var c=qg(13);G(Fac(b)?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(3,iu,a))}},Iac=function(a){if(a&1){var b=
t();K(0,"button",26);N("click",function(){u(b);var c=P(2);return v(Hac(c))});Q(1," Retry ");L()}},Jac=function(a,b){a&1&&F(0,Iac,2,0,"button",25);a&2&&(a=b.status,b=P(),G(a!==b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?0:-1))},Kac=function(a,b){a&1&&M(0,"b-issue-person-card",4);a&2&&I("email",b)},Lac=function(a,b){a&1&&(K(0,"span",3),Q(1),T(2,"shortenEmail"),L(),K(3,"onedev-hovercard",null,0),F(5,Kac,1,1,"b-issue-person-card",4),L());if(a&2){var c;a=qg(4);var d=P(2);I("onedevHovercardTrigger",
a);B();S(" ",Lg(2,3,d.userToLossyEmail(b),30)," ");B(4);G((c=b.emailAddress)?5:-1,c)}},Mac=function(a,b){if(a&1){var c=t();K(0,"a",5);N("click",function(d){var e=u(c),f=P(2);return v(f.scrollCommentIntoView(d,e))});Q(1);L()}a&2&&(a=P(2),Kf("aria-label",Eg("Comment number ",b)),I("routerLinkObj",a.getCommentNumberLink(b)),B(),S(" #",b))},Nac=function(a){a&1&&(Uf(0),Q(1,","),Vf())},Oac=function(a,b){a&1&&(K(0,"span",1),F(1,Lac,6,6),K(2,"span"),F(3,Mac,2,4,"a",2),F(4,Nac,2,0,"ng-container"),L()());if(a&
2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;B();G((c=a.userPerformingActionUser)?1:-1,c);B(2);G((d=a.commentNumber)?3:-1,d);B();G(e!==b-1?4:-1)}},Pac=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),T(2,"removePngExtension"),M(3,"b-secure-image-widget",4),L(),M(4,"comments-info",5),L());a&2&&(a=b.$implicit,b=P(3),B(),I("href",Dg(U(2,6,a.src)),Pe),B(2),I("showByDefault",!0)("src",a.srcCorp),B(),I("issueId",b.issueId)("comments",a.comments))},Rac=function(a){if(a&1){var b=t();K(0,"button",8);N("click",
function(){u(b);var c=P(2),d=P(2);return v(Qac(d,c.length))});Q(1," Load more ");L()}},Sac=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all screenshots ");L()}},Tac=function(a){a&1&&F(0,Rac,2,0,"button",6)(1,Sac,2,0,"button",7);a&2&&(a=P(3),G(a.paginate?0:1))},Uac=function(a,b){a&1&&(K(0,"div",1),Of(1,Pac,5,8,"div",2,Mf),T(3,"async"),L(),F(4,Tac,2,1));if(a&2){a=P();var c=P();wg("show-all-images",c.paginate);B();Pf(U(3,
3,c.imagesToRender$));B(3);G(a.length!==b.length?4:-1)}},Vac=function(a){a&1&&(F(0,Uac,5,5),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.imagesToRender$))?0:-1,b)}},Wac=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=b.get(c.src))!=null?d:[];e.push(c.comment);b.set(c.src,e)}return Array.from(b.entries()).map(function(f){var g=m(f);f=g.next().value;g=g.next().value;return{src:f,comments:vq(g)}})},Xac=function(a){a&1&&(K(0,"span",1)(1,"span",4),
Q(2),L()());a&2&&(a=P(),B(2),S(" ",a.leftText," "))},Yac=function(a){a&1&&(K(0,"b-external-hyperlink-widget",2),Q(1),L());a&2&&(a=P(),I("href",a.redirectedHref)("originalHref",a.originalHref),B(),yg(a.linkText))},Zac=function(a){a&1&&(K(0,"b-issue-reference-widget",5),Q(1),L());a&2&&(a=P(2),I("href",a.redirectedHref)("issueId",a.issueId),B(),yg(a.linkText))},$ac=function(a){a&1&&(K(0,"a",6),Q(1),L());a&2&&(a=P(2),I("href",Dg(a.redirectedHref),Pe),B(),yg(a.linkText))},abc=function(a){a&1&&F(0,Zac,
2,3,"b-issue-reference-widget",5)(1,$ac,2,3,"a",6);a&2&&(a=P(),G(a.issueId?0:1))},bbc=function(a){a&1&&(K(0,"span",3),Q(1),L());a&2&&(a=P(),B(),yg(a.rightText))},cbc=function(a){var b=document.createElement("div");a&&esa(b,a);return b},dbc=function(a){a&1&&(K(0,"td"),M(1,"b-issue-priority-display",0),L(),K(2,"td",1)(3,"span",2),Q(4),L(),M(5,"mentioned-link-with-context",3),L(),K(6,"td"),M(7,"comments-info",4),T(8,"toComments"),L());if(a&2){a=P().$implicit;var b=P(3);B();I("matTooltip",a.hasViewAccess?
"":"Access is denied to this issue")("issuePriority",a.priority);B(2);I("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");B();var c;S(" ",(c=a.title)!=null?c:"--"," ");B();I("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);B(2);I("issueId",b.issueId)("comments",U(8,8,a.sourceComments))}},ebc=function(a,b){a&1&&(K(0,"tr"),F(1,dbc,9,10),L());a&2&&(a=b.$implicit,B(),G(a.sourceComments&&a.relatedLinks?1:-1))},fbc=function(a){if(a&1){var b=t();K(0,"button",
7);N("click",function(){u(b);var c=P(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+100);return v()});Q(1," Load more ");L()}},gbc=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all mentioned issues ");L()}},hbc=function(a){a&1&&(K(0,"div"),F(1,fbc,2,0,"button",5)(2,gbc,2,0,"button",6),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},ibc=function(a,b){a&1&&(K(0,"section")(1,"table"),Of(2,ebc,
2,1,"tr",null,Nf),L(),F(4,hbc,3,1,"div"),L());a&2&&(a=P(),B(2),Pf(a),B(2),G(b.length!==a.length?4:-1))},jbc=function(a){a&1&&(F(0,ibc,5,1,"section"),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.allMentionedIssues$))?0:-1,b)}},kbc=function(a,b){a&1&&(K(0,"div",0),M(1,"mentioned-link-with-context",1)(2,"comments-info",2),T(3,"toComments"),L());a&2&&(a=b.$implicit,b=P(3),B(),I("sourceComment",a[0].comment)("relatedLink",a[0]),B(),I("issueId",b.issueId)("comments",U(3,4,a)))},lbc=function(a){if(a&1){var b=
t();K(0,"button",5);N("click",function(){u(b);var c=P(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+100);return v()});Q(1," Load more ");L()}},mbc=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all related links ");L()}},nbc=function(a){a&1&&(K(0,"div"),F(1,lbc,2,0,"button",3)(2,mbc,2,0,"button",4),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},pbc=function(a,b){a&1&&(Of(0,kbc,4,6,"div",0,obc),
F(2,nbc,3,1,"div"));a&2&&(a=P(),Pf(b),B(2),G(a.length!==b.length?2:-1))},qbc=function(a){a&1&&(F(0,pbc,3,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.linkGroupsToRender$))?0:-1,b)}},sbc=function(a,b){var c=a.filter(function(d){return W8a(d[0])});a=a.filter(function(d){return!W8a(d[0])});return rbc([].concat(q(c),q(a)).slice(0,b),"ASCENDING")},tbc=function(a){a&1&&M(0,"mat-icon",13)},ubc=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=P(2);var b;S("Screenshots (",(b=U(1,1,a.distinctImageLinksCount$))!=
null?b:0,")")}},xbc=function(a,b){if(a&1){var c=t();K(0,"inline-images-summary",15);T(1,"async");N("click",function(){u(c);var e=P(3);vbc(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return v()});L()}if(a&2){a=P(3);var d;I("issueId",b)("imageLinks",(d=U(1,2,a.imageLinks$))!=null?d:Hg(4,wbc))}},ybc=function(a){a&1&&(F(0,xbc,2,5,"inline-images-summary",14),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issueId$))?0:-1,b)}},zbc=function(a){a&1&&M(0,"mat-icon",16)},Abc=function(a){a&1&&(Q(0),T(1,
"async"));if(a&2){a=P(2);var b;S("Mentioned issues (",(b=U(1,1,a.distinctIssuesCount$))!=null?b:0,")")}},Bbc=function(a,b){if(a&1){var c=t();K(0,"b-mentioned-issues",18);N("click",function(){u(c);var d=P(3);vbc(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return v()});L()}a&2&&(a=P(3),I("issueReferences",b)("currentIssueId",a.issueId))},Cbc=function(a){a&1&&(F(0,Bbc,1,2,"b-mentioned-issues",17),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.issues$))?0:-1,b)}},Dbc=function(a){a&1&&
M(0,"mat-icon",19)},Ebc=function(a){a&1&&(Q(0),T(1,"async"));if(a&2){a=P(2);var b;S("Links (",(b=U(1,1,a.distinctOtherLinksCount$))!=null?b:0,")")}},Fbc=function(a){if(a&1){var b=t();K(0,"related-links-widget",20);T(1,"async");N("click",function(){u(b);var d=P(2);vbc(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);return v()});L()}if(a&2){a=P(2);var c;I("links",(c=U(1,2,a.otherLinks$))!=null?c:Hg(4,wbc))("issueId",a.issueId)}},Gbc=function(a){a&1&&M(0,"mat-icon",21)},Hbc=function(a){a&1&&Q(0,"Similar issues")},
Ibc=function(a,b){if(a&1){var c=t();K(0,"suggested-similar-issues",23);N("click",function(){u(c);var e=P(5);vbc(e.issueSummaryTracking,e.issueId,e.TabKeys.SIMILAR_ISSUES);return v()});L()}if(a&2){a=P();var d=P(4);I("issueId",d.issueId)("similarIssueIds",a)("similarIssuesEnrichments",b)}},Jbc=function(a){a&1&&(F(0,Ibc,1,3,"suggested-similar-issues",22),T(1,"async"));if(a&2){var b;a=P(4);G((b=U(1,1,a.similarIssuesEnrichments$))?0:-1,b)}},Kbc=function(a){a&1&&(F(0,Jbc,2,3),T(1,"async"));if(a&2){var b;
a=P(3);G((b=U(1,1,a.similarIssueIds$))?0:-1,b)}},Lbc=function(a){a&1&&(K(0,"expandable-tab",9),E(1,Gbc,1,0,"ng-template",4)(2,Hbc,1,0,"ng-template",5)(3,Kbc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.SIMILAR_ISSUES))},Mbc=function(a){a&1&&M(0,"mat-icon",24)},Nbc=function(a){a&1&&Q(0,"Deduplicate")},Obc=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},Pbc=function(a){a&1&&(F(0,Obc,1,1,"b-recommendation",25),T(1,"async"));if(a&2){var b;a=P(2);G((b=U(1,1,a.dedupeRecommendation$))?
0:-1,b)}},Qbc=function(a){a&1&&M(0,"mat-icon",26)},Rbc=function(a){a&1&&Q(0,"Assign to reporter")},Sbc=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},Tbc=function(a){a&1&&(F(0,Sbc,1,1,"b-recommendation",25),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.assignToReporterRecommendation$))?0:-1,b)}},Ubc=function(a){a&1&&(K(0,"expandable-tab",11),E(1,Qbc,1,0,"ng-template",4)(2,Rbc,1,0,"ng-template",5)(3,Tbc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.ASSIGN_TO_REPORTER))},
Vbc=function(a){a&1&&M(0,"mat-icon",27)},Wbc=function(a){a&1&&Q(0,"Reroute")},Xbc=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},Ybc=function(a){a&1&&(F(0,Xbc,1,1,"b-recommendation",25),T(1,"async"));if(a&2){var b;a=P(3);G((b=U(1,1,a.componentRoutingRecommendation$))?0:-1,b)}},Zbc=function(a){a&1&&(K(0,"expandable-tab",12),E(1,Vbc,1,0,"ng-template",4)(2,Wbc,1,0,"ng-template",5)(3,Ybc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.COMPONENT_ROUTING))},acc=function(a,
b){if(a&1){var c=t();K(0,"expandable-tabs",2);N("expandedTabsChanged",function(d){var e=u(c),f=P();return v(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){u(c);var e=P(),f=e.issueSummaryTracking;e=e.issueId;for(var g=m($bc),k=g.next();!k.done;k=g.next())k=k.value,d.has(k)?(ju(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-not-shown")):(ju(f.issueInteractionsTracking,e,k+"-content-not-shown"),
f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));d.size>0?(f.recordImpressionOnce(),ju(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(ju(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));return v()});K(1,"expandable-tab",3);E(2,tbc,1,0,"ng-template",4)(3,ubc,2,3,"ng-template",5)(4,ybc,2,3,"ng-template",
6);L();K(5,"expandable-tab",7);E(6,zbc,1,0,"ng-template",4)(7,Abc,2,3,"ng-template",5)(8,Cbc,2,3,"ng-template",6);L();K(9,"expandable-tab",8);E(10,Dbc,1,0,"ng-template",4)(11,Ebc,2,3,"ng-template",5)(12,Fbc,2,5,"ng-template",6);L();F(13,Lbc,4,1,"expandable-tab",9);T(14,"async");K(15,"expandable-tab",10);E(16,Mbc,1,0,"ng-template",4)(17,Nbc,1,0,"ng-template",5)(18,Pbc,2,3,"ng-template",6);L();F(19,Ubc,4,1,"expandable-tab",11);F(20,Zbc,4,1,"expandable-tab",12);L()}a&2&&(a=P(),I("tabKeys",b)("expandedTabs",
a.initiallyExpandedTabs),B(),I("key",a.TabKeys.IMAGES),B(4),I("key",a.TabKeys.MENTIONED_ISSUES),B(4),I("key",a.TabKeys.LINKS),B(4),G(U(14,9,a.shouldShowSimilarIssues$)?13:-1),B(2),I("key",a.TabKeys.DUPES),B(4),G(a.enableNeedsInfoUi?19:-1),B(),G(a.activeSession.isInternalSession()?20:-1))},bcc=function(a,b){a&1&&(K(0,"li",3)(1,"div",6),M(2,"b-user-image",7),L(),K(3,"div",8),M(4,"b-user-display",9)(5,"b-formatted-date-time",10),K(6,"p",11),Q(7," Formatting: "),K(8,"code",12),Q(9),L()(),M(10,"br"),K(11,
"span",13)(12,"b-person-hovercard",14),T(13,"omitObfuscatedEmail"),Q(14),T(15,"appendDomain"),L()(),Q(16),L(),K(17,"pre"),Q(18),L()());a&2&&(a=b.$implicit,b=b.$index,B(2),I("email",a.author==null?null:a.author.emailAddress),B(2),I("model",a.author),B(),I("timestamp",a.updateTime),B(4),S(" ",a.formattingMode," "),B(3),I("email",U(13,8,a.author==null?null:a.author.emailAddress)),B(2),S(" <",U(15,10,a.author==null?null:a.author.emailAddress),"> "),B(2),S(" #",b+1," "),B(2),yg(a.updateText))},ccc=function(a){if(a&
1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(3);return v(c.editStatusUpdate())});Q(1," Edit ");L()}},dcc=function(a){a&1&&(K(0,"header",4)(1,"h4",6),Q(2,"Status Update"),L(),K(3,"p",7),Q(4,"No update yet."),L(),F(5,ccc,2,0,"button",8),T(6,"async"),L());a&2&&(a=P(2),B(5),G(U(6,1,a.showEditButton$)?5:-1))},fcc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(4);return v(ecc(c))});Q(1," Mark as fresh ");L()}},gcc=function(a){if(a&1){var b=t();K(0,"button",
16);N("click",function(){u(b);var c=P(3);return v(c.editStatusUpdate())});Q(1," Edit ");L();F(2,fcc,2,0,"button",17);T(3,"async")}a&2&&(a=P(3),B(2),G(U(3,1,a.freshnessIndicator$)===a.Freshness.STALE?2:-1))},hcc=function(a){a&1&&M(0,"mat-icon",19)},icc=function(a,b){a&1&&(F(0,hcc,1,0,"mat-icon",19),T(1,"async"),Q(2," Updated by "),K(3,"span",20),Q(4),T(5,"shortenEmail"),L(),M(6,"b-formatted-date-time",21),K(7,"onedev-hovercard",null,0),M(9,"b-issue-person-card",22),L());if(a&2){a=qg(8);var c=P(3);
G(U(1,5,c.freshnessIndicator$)===c.Freshness.FRESH?0:-1);B(3);I("onedevHovercardTrigger",a);B();var d;S(" ",U(5,7,(d=b.author==null?null:b.author.emailAddress)!=null?d:"")," ");B(2);I("timestamp",b.updateTime);B(3);var e;I("email",(e=b.author==null?null:b.author.emailAddress)!=null?e:"")}},jcc=function(a,b){a&1&&M(0,"b-actions-menu",14);a&2&&I("buttonLabel","Status Update actions")("menuItems",b)},kcc=function(a,b){a&1&&(M(0,"b-note-container",23),T(1,"async"),T(2,"async"));if(a&2){a=P();var c=P(3),
d;I("issueId",a.issueId)("issueAccessLevel",U(1,4,c.accessLevel$))("note",b)("formattingMode",(d=U(2,6,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)}},lcc=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(4);return v(c.isCollapsed=!1)});Q(1," Show More ");L()}},mcc=function(a){a&1&&(K(0,"div",15)(1,"div",null,1),F(3,kcc,3,8,"b-note-container",23),T(4,"async"),L(),F(5,lcc,2,0,"button",24),L());if(a&2){var b;a=P(3);B();wg("collapsed",a.isCollapsed);B(2);G((b=U(4,
4,a.statusUpdateAsNote$))?3:-1,b);B(2);G(a.isCollapsed?5:-1)}},ncc=function(a){a&1&&(K(0,"div",5)(1,"header",10)(2,"div",11)(3,"h4",12),Q(4,"Status Update"),L(),F(5,gcc,4,3),T(6,"async"),L(),K(7,"div",13),F(8,icc,10,9),T(9,"async"),F(10,jcc,1,2,"b-actions-menu",14),T(11,"async"),L()(),F(12,mcc,6,6,"div",15),T(13,"async"),L());if(a&2){var b,c,d;a=P(2);B(5);G(U(6,4,a.showEditButton$)?5:-1);B(3);G((b=U(9,6,a.statusUpdate$))?8:-1,b);B(2);G((c=U(11,8,a.menuItems$))?10:-1,c);B(2);G((d=U(13,10,a.statusUpdate$))?
12:-1,d)}},pcc=function(a,b){a&1&&(K(0,"div"),T(1,"async"),M(2,"mat-icon",3),F(3,dcc,7,3,"header",4),F(4,ncc,14,12,"div",5),L());a&2&&(a=P(),xg(Eg("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",U(1,9,a.semanticClass$))),wg("display-none",Ig(11,occ,a.UiState.LOADING).includes(b))("short-height",a.UiState.EMPTY===b),B(3),G(b===a.UiState.EMPTY?3:-1),B(),G(b===a.UiState.NORMAL?4:-1))},qcc=function(a){switch(a){case 1:return"noUpdate";case 2:return"hasUpdate";case 0:return"";
default:return""}},rcc=function(a){a&1&&M(0,"llm-suggested-bug-fix",7);a&2&&(a=P(),I("issueId",a))},scc=function(a,b){a&1&&(M(0,"issue-description-area",5),K(1,"div",6),T(2,"async"),M(3,"b-insights-enrichments",null,0),L(),M(5,"status-update",7),F(6,rcc,1,1,"llm-suggested-bug-fix",7),M(7,"b-issue-description",8));if(a&2){a=qg(4);var c=P();I("id",b);B();wg("hidden",!U(2,6,a.shouldShowInsights$));B(4);I("issueId",b);B();G(c.enableTailwind?6:-1);B();I("id",b)}},tcc=function(a,b){a&1&&(M(0,"issue-summary-card",
9,1),T(2,"async"));a&2&&(a=qg(1),wg("hidden",!U(2,3,a.shouldShowSummaryCard$)),I("issueId",b))},ucc=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},vcc=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},wcc=function(a,b){a&1&&(K(0,"div",10),M(1,"b-event-stream-header"),F(2,ucc,1,1,"issue-event-list",11),M(3,"b-post-comment",7),F(4,vcc,1,1,"issue-event-list",11),L());a&2&&(a=P(),wg("recent-first",a.showRecentEventsFirst),B(2),G(a.showRecentEventsFirst?-1:2),B(),
I("issueId",b),B(),G(a.showRecentEventsFirst?4:-1))},xcc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,"mat-icon",1),Q(3),L(),M(4,"inline-images-summary",2)(5,"br")(6,"hr",3),L());if(a&2){a=P(2);var b=P();B(3);S(" Screenshots (",a.length,") ");B();I("issueId",b.issueId)("imageLinks",a)("paginate",!0)}},ycc=function(a){a&1&&F(0,xcc,7,4,"section");a&2&&(a=P(),G(a.length?0:-1))},zcc=function(a){a&1&&F(0,ycc,1,1);a&2&&(a=P(2),G(a.isInternalSession?0:-1))},Acc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,
"mat-icon",4),Q(3),L(),M(4,"b-mentioned-issues",5)(5,"br")(6,"hr",3),L());if(a&2){a=P();var b=P();B(3);S(" Mentioned issues (",a.length,") ");B();I("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0)}},Bcc=function(a,b){a&1&&F(0,Acc,7,4,"section");a&2&&G(b.length?0:-1)},Ccc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,"mat-icon",6),Q(3),L(),M(4,"related-links-widget",7),L());if(a&2){a=P();var b=P();B(3);S(" Links (",a.length,") ");B();I("links",a)("issueId",b.issueId)("paginate",!0)}},
Dcc=function(a,b){a&1&&F(0,Ccc,5,4,"section");a&2&&G(b.length?0:-1)},Ecc=function(a){a&1&&(F(0,zcc,1,1),T(1,"async"),F(2,Bcc,1,1),T(3,"async"),F(4,Dcc,1,1),T(5,"async"));if(a&2){var b,c,d;a=P();G((b=U(1,3,a.imageLinks$))?0:-1,b);B(2);G((c=U(3,5,a.issueReferences$))?2:-1,c);B(2);G((d=U(5,7,a.otherLinks$))?4:-1,d)}},Fcc=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))}},
Gcc=function(a){if(a&1){var b=t();Of(0,Fcc,1,3,"b-package-mentions-listing",2,Nf);K(2,"p",3)(3,"a",4);N("click",function(){u(b);var c=P(3);return v(c.trackSqueegeeClick())});Q(4,"View in Squeegee");L()()}a&2&&(a=P(),Pf(a.mentions.packageMentionSet),B(3),I("href",a.link,Pe))},Hcc=function(a){a&1&&(K(0,"div",1),M(1,"img",5),K(2,"p",6),Q(3," This issue has no TODOs "),L(),K(4,"p",7),Q(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),K(6,"a",8),Q(7,"Learn more"),
L()()());a&2&&(a=P(3),B(),I("src",a.ROBOT_SLEEPING,Pe))},Icc=function(a,b){a&1&&F(0,Gcc,5,1)(1,Hcc,8,1,"div",1);a&2&&G(b.mentions&&b.mentions.totalMentions>0?0:1)},Jcc=function(a){a&1&&(F(0,Icc,2,1),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.codeMentionsState$))?0:-1,b)}},Kcc=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},Lcc=function(a){a&1&&M(0,"b-hotlist-grid",5);a&2&&(a=P(),I("hotlists",a.hotlists))},Mcc=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),K(2,"span"),Q(3),L()());a&2&&
(a=P(),B(3),S(" Searching",a.query?" for "+a.query:"","..."))},Ncc=function(a){a&1&&Q(0," No issues match your search. ")},Occ=function(a){a&1&&Q(0," Use search box to find issues. ")},Qcc=function(a){a&1&&(K(0,"a",10),Q(1," Click to see all open issues"),L());a&2&&I("queryParams",Hg(1,Pcc))},Rcc=function(a){a&1&&(K(0,"a",11),Q(1,"Learn more about searching"),L())},Scc=function(a){a&1&&(K(0,"div",7),M(1,"img",9),F(2,Ncc,1,0)(3,Occ,1,0),F(4,Qcc,2,2,"a",10)(5,Rcc,2,0,"a",11),L());a&2&&(a=P(),I("bFocus",
!0),B(),I("src",a.SPACE_EMPTY_STATE,Pe),B(),G(a.query?2:3),B(2),G(a.currentTracker?4:5))},Tcc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",12);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Cg("columnsChange",function(c){u(b);var d=P();Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("columnsChange",function(){u(b);var c=P();return v(c.onColumnsChange())})("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);
var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P();return v(ku(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(ku(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex),Ag("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},Ucc=function(a){a&1&&(K(0,"div",3)(1,"h2"),Q(2,"Manage SLOs"),L(),K(3,"p",5),Q(4,"You have admin rights for all SLOs listed below."),
L()())},Vcc=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},Wcc=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(2),I("slos",a.activeSlos))},Xcc=function(a){a&1&&(K(0,"div",7),Q(1,"You have no Active SLOs"),L())},Ycc=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(3),I("slos",a.archivedSlos))},Zcc=function(a){a&1&&(K(0,"p",12),Q(1," You have no archived SLOs. "),L())},$cc=function(a){a&1&&(K(0,"div",11),F(1,Ycc,1,1,"b-slo-grid",6)(2,Zcc,2,0,"p",12),L());a&2&&(a=P(2),B(),G(a.archivedSlos.length?
1:2))},adc=function(a){if(a&1){var b=t();F(0,Wcc,1,1,"b-slo-grid",6)(1,Xcc,2,0,"div",7);K(2,"button",8);N("click",function(){u(b);var c=P();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return v()});K(3,"h4",9);M(4,"mat-icon",10);Q(5);L()();F(6,$cc,3,1,"div",11)}a&2&&(a=P(),G(a.activeSlos.length?0:1),B(4),wg("rotate-180",a.areArchivedSlosExpanded),I("svgIcon","arrow-dropdown"),B(),S(" Archived SLOs (",a.archivedSlos.length,") "),B(),G(a.areArchivedSlosExpanded?6:-1))},bdc=function(a){if(a&
1){var b=t();K(0,"button",21);N("click",function(){u(b);var c=P();return v(c.save())});Q(1," Save ");L()}a&2&&(a=P(),I("disabled",a.validationForm.invalid))},cdc=function(a,b){a&1&&(K(0,"b-callout",22)(1,"b-callout-body"),Q(2),L()());a&2&&(B(2),S(" Other existing configurations in this component already apply for these issue types: ",b," "))},ddc=function(a){a&1&&M(0,"mat-icon",28);a&2&&(P(),a=bg(2),I("svgIcon",a))},edc=function(a,b){a&1&&(K(0,"mat-checkbox",26)(1,"div",27),$f(2),F(3,ddc,1,1,"mat-icon",
28),Q(4),L()());if(a&2){var c=b.$implicit;a=P(2);b=c.key;I("formControl",c.value);B(2);c=ag(a.constants.issueTypeIcons.get(b));B();G(c?3:-1);B();S(" ",a.issueTypeToDisplay(b)," ")}},gdc=function(a){a&1&&(F(0,cdc,3,1,"b-callout",22),T(1,"async"),K(2,"h2",23),Q(3,"Issue types"),L(),K(4,"div",24),Q(5," Select one or more issue types that this field configuration applies to. "),L(),K(6,"div",25),Of(7,edc,5,4,"mat-checkbox",26,fdc),T(9,"keyvalue"),L());if(a&2){var b;a=P();G((b=U(1,1,a.conflictingIssueTypes$))?
0:-1,b);B(7);Pf(U(9,3,a.issueTypesForms))}},hdc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,b=P(),Kf("colspan",b.displayedColumns.length),B(2),yg(a.text))},idc=function(a){if(a&1){var b=t();K(0,"th",30)(1,"mat-checkbox",31);N("change",function(){u(b);var d=P(),e=bg(11);d=m(d.customFieldRows);for(var f=d.next();!f.done;f=d.next())f.value.formControl.setValue((e==="all"?"hidden":"visible")==="visible");return v()});Q(2," Is Visible? ");L()()}if(a&2){a=P();var c=bg(11);
B();I("disabled",a.isReadOnly)("checked",c==="all")("indeterminate",c==="some")}},jdc=function(a,b){a&1&&(K(0,"td",29),M(1,"mat-checkbox",32),L());a&2&&(a=b.$implicit,B(),I("formControl",a.formControl))},kdc=function(a){a&1&&(K(0,"th",30),Q(1," Name"),L())},ldc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customField.name," "))},mdc=function(a){a&1&&(K(0,"th",30),Q(1," ID"),L())},ndc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,B(2),yg(a.customField.customFieldId))},
odc=function(a){a&1&&(K(0,"th",30),Q(1," Type"),L())},pdc=function(a,b){a&1&&(K(0,"td",29),Q(1),T(2,"enumToHuman"),L());if(a&2){a=b.$implicit;B();var c;S(" ",U(2,1,(c=a.customField.type)!=null?c:null)," ")}},qdc=function(a){a&1&&(K(0,"th",30),Q(1," Description"),L())},rdc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.customField.description," "))},sdc=function(a){a&1&&(K(0,"th",30),Q(1," Required?"),L())},tdc=function(a,b){a&1&&(K(0,"td",29),Q(1),T(2,"yesNo"),L());a&2&&
(a=b.$implicit,B(),S(" ",U(2,1,a.customField.required)," "))},udc=function(a){a&1&&(K(0,"th",30),Q(1," Default"),L())},vdc=function(a,b){a&1&&(K(0,"td",29),M(1,"b-custom-field-value-display",33),L());a&2&&(a=b.$implicit,B(),I("customFieldValue",a.customField.typedDefaultValue))},wdc=function(a){a&1&&M(0,"tr",34)},xdc=function(a,b){a&1&&M(0,"tr",35);a&2&&wg("disabled-field",!b.$implicit.formControl.value)},ydc=function(a){a&1&&M(0,"tr",35)},Cdc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",
8);N("onSave",function(e){u(b);var f=P(2),g=bg(0);return v(zdc(f,g.config,e))})("onCancel",function(){u(b);var e=P(2);return v(Adc(e))});L()}if(a&2){a=P(2);var c=bg(0),d=Bdc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("configUnderEdit",c.config)("isReadOnly",!a.isAdmin)("existingConfiguredIssueTypes",d)}},Edc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",9);N("onCancel",function(){u(b);var d=P(2);return v(Adc(d))});L()}if(a&2){a=P(2);
var c=bg(0);I("currentComponentId",c.config.componentId)("customFields",Ddc(a,c.config))("configUnderEdit",c.config)("isReadOnly",!0)}},Gdc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",10);N("onSave",function(e){u(b);var f=P(2);return v(Fdc(f,e))})("onCancel",function(){u(b);var e=P(2);return v(Adc(e))});L()}if(a&2){a=P(2);var c=bg(0),d=Bdc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("disallowIssueTypes",c.disallowIssueTypes)("configUnderEdit",
c.config)("existingConfiguredIssueTypes",d)}},Idc=function(a){a&1&&(K(0,"a",12),Q(1," Learn more "),L());a&2&&(P(3),I("href",Hdc(),Pe))},Jdc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),Q(2),L()());a&2&&(a=b.$implicit,Kf("colspan",5),B(2),yg(a.text))},Kdc=function(a){a&1&&(K(0,"th",30),Q(1," Name"),L())},Ldc=function(a,b){a&1&&(K(0,"td",29),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.name," "))},Mdc=function(a){a&1&&(K(0,"th",30)(1,"div",31),Q(2," Applicable Issue Types "),M(3,"mat-icon",32),K(4,"onedev-hovercard",
null,3)(6,"div",33)(7,"div",34),Q(8," Configurations with applicable issue types appearing crossed out will not be applied to those types, due to another configuration taking precedence. "),L()()()()());a&2&&(a=qg(5),B(3),I("onedevHovercardTrigger",a))},Ndc=function(a){a&1&&Wf(0)},Pdc=function(a,b){a&1&&(K(0,"td",29),E(1,Ndc,1,0,"ng-container",35),L());a&2&&(a=b.$implicit,P(),b=qg(36),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Odc,a)))},Qdc=function(a){a&1&&(K(0,"th",30),Q(1," Inherited From"),
L())},Rdc=function(a){a&1&&(Uf(0),M(1,"b-component-card",40,4),Vf());if(a&2){a=qg(2);P(2);var b=bg(1);B();I("onedevIsHovercardReady",a.init)("componentId",b.toString())}},Sdc=function(a){a&1&&(K(0,"div",36)(1,"div",37),Q(2,"Inherited From"),L(),K(3,"a",38),Q(4),L(),K(5,"onedev-hovercard",null,3),E(7,Rdc,3,2,"ng-container",39),L()());if(a&2){a=qg(6);P();var b=bg(1),c=bg(2),d=P(3);B(3);I("onedevHovercardTrigger",a)("href",d.ROUTES.editComponentFieldConfigurations.makeHref(b),Pe);Kf("aria-label","Inherited from "+
c);B();S(" ",c," ")}},Tdc=function(a,b){a&1&&(K(0,"td",29),$f(1)(2),F(3,Sdc,8,4,"div",36),L());a&2&&(b=b.$implicit,a=P(3),B(),b=ag(b.owningComponentId),B(),ag(a.componentIdsToPaths[b]),B(),G(b!==a.currentComponentId?3:-1))},Udc=function(a){a&1&&(K(0,"th",30),Q(1," Actions"),L())},Vdc=function(a){a&1&&Wf(0)},Wdc=function(a,b){a&1&&(K(0,"td",29),E(1,Vdc,1,0,"ng-container",35),L());a&2&&(a=b.$implicit,P(),b=qg(34),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Odc,a)))},Xdc=function(a){a&
1&&M(0,"tr",41)},Ydc=function(a){a&1&&M(0,"tr",42)},Zdc=function(a){a&1&&M(0,"tr",43)},$dc=function(a){a&1&&(K(0,"div",24),Q(1," No custom fields found in this component. Please add custom fields to create a field configuration. "),L())},aec=function(a,b){a&1&&(K(0,"div",44),Q(1),L(),K(2,"div",45)(3,"button",46),Q(4," Cancel "),L(),K(5,"button",47),Q(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),S(' Are you sure you want to delete the config "',a.name,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",
!0))},bec=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(2).row,d=P(3);c=pm(c.data);c.name+=" (Copy)";Fdc(d,c);return v()});Q(1," Create Copy ");L()}},dec=function(a){if(a&1){var b=t();K(0,"button",52);N("click",function(){u(b);var c=P(2).row;P(3).state$.next({view:"edit",config:c.data});return v()});Q(1," Edit ");L();K(2,"button",53);N("click",function(){u(b);var c=P(2).row,d=P(3);return v(cec(d,c.data))});Q(3," Delete ");L()}},eec=function(a){a&1&&(F(0,bec,2,0,
"button",50),F(1,dec,4,0));a&2&&(a=P().row,G(a.isDefault?-1:0),B(),G(a.inherited?-1:1))},fec=function(a){if(a&1){var b=t();K(0,"button",54);N("click",function(){u(b);var c=P().row;P(3).state$.next({view:"readonly",config:c.data});return v()});Q(1," View ");L()}},gec=function(a,b){a&1&&(K(0,"div",48),F(1,eec,2,2),F(2,fec,2,0,"button",49),L());a&2&&(a=b.row,b=P(3),B(),G(b.isAdmin?1:-1),B(),G(a.inherited||!b.isAdmin?2:-1))},hec=function(a){a&1&&M(0,"mat-icon",57);if(a&2){P();a=bg(1);var b=bg(2);wg("non-applicable",
a);I("svgIcon",b)}},iec=function(a,b){a&1&&(K(0,"div",31),$f(1)(2),F(3,hec,1,3,"mat-icon",56),K(4,"span"),Q(5),L()());if(a&2){a=b.$implicit;var c=P().row;b=P(3);B();c=ag(!c.effectiveIssueTypes.has(a));B();var d=ag(b.constants.issueTypeIcons.get(a));B();G(d?3:-1);B();wg("non-applicable",c);B();yg(b.issueTypeToDisplay(a))}},jec=function(a,b){a&1&&(K(0,"div",55),Of(1,iec,6,6,"div",31,Nf),L());a&2&&(a=b.row,B(),Pf(a.issueTypes))},nec=function(a){if(a&1){var b=t();K(0,"div")(1,"div",11);Q(2," Field visibility is determined by configurations made on a per-issue-type basis. Matching configurations higher in the table will supersede those further down. ");
F(3,Idc,2,1,"a",12);L();K(4,"table",13);Uf(5,14);E(6,Jdc,3,2,"td",15);Vf();Uf(7,16);E(8,Kdc,2,0,"th",17)(9,Ldc,2,1,"td",15);Vf();Uf(10,18);E(11,Mdc,9,1,"th",17)(12,Pdc,2,4,"td",15);Vf();Uf(13,19);E(14,Qdc,2,0,"th",17)(15,Tdc,4,3,"td",15);Vf();Uf(16,20);E(17,Udc,2,0,"th",17)(18,Wdc,2,4,"td",15);Vf();E(19,Xdc,1,0,"tr",21)(20,Ydc,1,0,"tr",22)(21,Zdc,1,0,"tr",23);L();M(22,"mat-divider");F(23,$dc,2,0,"div",24);K(24,"div",25)(25,"button",26);N("click",function(){u(b);var c=P(2);return v(kec(c))});Q(26,
" Create New Typed Configuration ");L();K(27,"button",27);N("click",function(){u(b);var c=P(2);kec(c,void 0,"disallowIssueTypes");return v()});Q(28," Create New Default Configuration ");L();K(29,"button",28);N("click",function(){u(b);var c=P(2);return v(lec(c))});Q(30," Reorder Configurations ");L()();E(31,aec,7,3,"ng-template",null,0,Mg)(33,gec,3,2,"ng-template",null,1,Mg)(35,jec,3,0,"ng-template",null,2,Mg);L()}a&2&&(a=P(2),B(3),G(a.isInternalSession?3:-1),B(),I("dataSource",a.allTableRows$),B(15),
I("matHeaderRowDef",a.displayedColumns),B(),I("matRowDefColumns",a.displayedColumns),B(),I("matRowDefColumns",Hg(10,mec))("matRowDefWhen",a.isSectionTitleRow),B(2),G(a.customFields.length?-1:23),B(2),I("disabled",!a.isAdmin||!a.customFields.length),B(2),I("disabled",!a.isAdmin||!a.customFields.length||a.ownDefaultFieldConfig),B(2),I("disabled",!a.isAdmin||a.ownTypedFieldConfigs.length<2))},oec=function(a){a&1&&F(0,Cdc,1,5,"b-field-configuration-editor",5)(1,Edc,1,4,"b-field-configuration-editor",
6)(2,Gdc,1,5,"b-field-configuration-editor",7)(3,nec,37,11,"div");a&2&&(P(),a=bg(0),G(a.view=="edit"?0:a.view=="readonly"?1:a.view=="create"?2:3))},pec=function(a){a&1&&(K(0,"p"),Q(1,"Team inheritance path:"),L(),M(2,"b-team-breadcrumb",0));a&2&&(a=P(),B(2),I("teamPath",a.teamPath))},qec=function(a){a&1&&(K(0,"p"),Q(1,"Component inheritance path:"),L(),M(2,"b-component-breadcrumb",1));a&2&&(a=P(),B(2),I("componentPathInfo",a.componentPath))},rec=function(a){var b={};a=m(a.groupMetadata);for(var c=
a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},uec=function(a){return{approximateSize:Ym(pn(a,2)),groupEmail:vi(a,1),sizeCategory:sec[xi(a,3)],permissionCategory:tec[xi(a,5)]}},wec=function(a){a=Ci(a,vec,1,Di(),jb);return{groupMetadata:(a!=null?a:[]).map(uec)}},yec=function(a,b){var c=[];if(!b||!a)return c;for(var d=m(xec),e=d.next();!e.done;e=d.next()){e=e.value;var f=tm(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},Aec=function(a,
b){if(!a.appenders||!b||mm(b.appenders,a.appenders))return!1;a=m(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,zec.has(c)&&!b.appenders.includes(c))return!0;return!1},Bec=function(a){var b=new Map;a=m(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},Cec=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"},Dec=function(a){if(a.size===0)return tj;for(var b=a.size===1?Eh("p",{},"The following large group is added: "):Eh("p",{},"The following large groups are added: "),c=[],d=m(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Eh("p",{},Dh([Eh("b",{},e)," has approximately ",Eh("b",{},f)," Googlers."])))}return Dh([b].concat(q(c)))},
Eec=function(a){if(a.size===0)return tj;var b=a.size===1?Eh("p",{},"The following open group is added: "):Eh("p",{},"The following open groups are added: "),c=[];a=m(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Eh("p",{},Eh("b",{},d.value)));return Dh([b].concat(q(c)))},Fec=function(a){var b=new Map;a=m(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},Gec=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},Hec=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},lu=function(a){var b=a.split(":");a=b[0];return a==="ALIAS"?(b=b[1],{value:b,displayText:FRa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],
principalType:a,detailedUserType:null}},Iec=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))},Jec=function(a,b){a&1&&(K(0,"tr",2)(1,"th",3),Q(2),L(),K(3,"td"),Of(4,Iec,1,5,"b-contact-chip",4,Nf),L()());a&2&&(a=b.$implicit,B(2),yg(a.permission),B(2),Pf(a.principals))},Nec=function(a){var b="minimal";b=b===void 0?"expanded":b;a=Kec(a);
a=mUa(a,function(c){c=Lec(c);return Mec(c,b)});return Kec(a)},Pec=function(a){a=Kec(a);a=mUa(a,function(b){b=Oec(b);return Lec(b)});return Kec(a)},Mec=function(a,b){var c=b==="expanded"?Qec:Rec;return new Set([].concat(q(a)).flatMap(function(d){return[].concat(q(c.get(d)))}))},Oec=function(a){return new Set(Sec.filter(function(b){return jRa(a,Rec.get(b))}))},Lec=function(a){a=Mec(a,"expanded");var b=Oec(a);return new Set([].concat(q(b)).filter(function(c){return[].concat(q(Tec.get(c))).every(function(d){return!b.has(d)})}))},
Kec=function(a){var b=new Map;a=m(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d=m(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},Vec=function(){function a(f,g){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(g);var l;g=m((l=b.get(g))!=null?l:[]);for(l=g.next();!l.done;l=g.next())l=l.value,k.has(l)||a(f,l)}var b=Uec,c=new Map,d=[].concat(q(b.values())).flatMap(function(f){return[].concat(q(f))});
d=m(new Set([].concat(q(b.keys()),q(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,a(e,e);return c},Wec=function(a){var b=Nec(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(q((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")}}},Xec=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return vq([].concat(q(b?[].concat(q(b.inheritedAdmins||[]),q(b.admins||[]),q(b.appenders||[])):[]),q(a?[].concat(q(a.admins||[]),q(a.editors||[]),q(a.appenders||[]),q(a.readers||[]),q(a.restrictedReaders||[]),q(a.restrictedPlusReaders||[])):[]))).sort()},Zec=function(a){function b(e){var f;return[].concat(q((f=d.get(e))!=null?f:[])).sort()}
if(!a)return Yec;var c=a.issueAccessPolicy;a=a.componentAccessPolicy;var d=Pec(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}},$ec=function(a,b){var c;(c=!b)||(c=!(!mm([].concat(q(b.admins)).sort(),[].concat(q(a.admins)).sort())||
!mm([].concat(q(b.appenders)).sort(),[].concat(q(a.appenders)).sort())||!mm(b.implicitAccess,a.implicitAccess)));return!c},afc=function(a,b){return b&&a?!mm([].concat(q(a.admins)).sort(),[].concat(q(b.admins)).sort())||!mm([].concat(q(a.editors)).sort(),[].concat(q(b.editors)).sort())||!mm([].concat(q(a.appenders)).sort(),[].concat(q(b.appenders)).sort())||!mm([].concat(q(a.readers)).sort(),[].concat(q(b.readers)).sort())||!mm([].concat(q(a.restrictedReaders)).sort(),[].concat(q(b.restrictedReaders)).sort())||
!mm([].concat(q(a.restrictedPlusReaders)).sort(),[].concat(q(b.restrictedPlusReaders)).sort()):!1},bfc=function(a,b){var c=Object.keys(a);c=m(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!z_a(a[d],b[d]))return!0;return!1},cfc=function(a){if(a&1){var b=t();K(0,"input",15);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin),
Ag("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},dfc=function(a){if(a&1){var b=t();K(0,"input",16);Cg("ngModelChange",function(c){u(b);var d=P(2);Bg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner()),Ag("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},efc=function(a){if(a&1){var b=t();K(0,"input",17);Cg("ngModelChange",function(c){u(b);
var d=P(2);Bg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic()),Ag("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},ffc=function(a,b){a&1&&(K(0,"p",14)(1,"a",18),Q(2," Learn more "),L()());a&2&&(B(),I("href",b,Pe))},gfc=function(a){a&1&&(K(0,"div",0)(1,"div",3)(2,"span",4),Q(3,"Component visibility: "),L()(),K(4,"div",5)(5,"div",6),F(6,cfc,1,2,
"input",7),K(7,"label",8),Q(8),L()(),K(9,"div",6),F(10,dfc,1,2,"input",9),K(11,"label",10),Q(12),L()(),K(13,"div",11),F(14,efc,1,2,"input",12),K(15,"label",13),Q(16),L()()(),F(17,ffc,3,1,"p",14),L());if(a&2){var b;a=P();B(6);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?6:-1);B(2);S(" ",fsb(a.AccessLevelStrings.INTERNAL)," ");B(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?10:-1);B(2);S(" ",fsb(a.AccessLevelStrings.EXTERNAL_PARTNER)," ");B(2);G(a.rolesEditor.component&&
a.rolesEditor.component.accessLimit?14:-1);B(2);S(" ",fsb(a.AccessLevelStrings.EXTERNAL_PUBLIC)," ");B();G((b=Nhb(a.documentationLinks))?17:-1,b)}},lfc=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td")(2,"div",1)(3,"div",2)(4,"label",3);Q(5);L();K(6,"button",4);M(7,"mat-icon",5);L()();K(8,"b-multi-user-input",6);N("usersChange",function(e){var f=u(c).$implicit,g=P();return v(g.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=u(c).$implicit,g=P();g.aclFormValidity.set(f.roleType,e);e=[].concat(q(g.aclFormValidity.values())).every(Boolean);
g.formIsValid.emit(e);return v()});L()()();K(9,"td");M(10,"b-icon",7);L();K(11,"td");M(12,"b-icon",7);L();K(13,"td");M(14,"b-icon",8);L();K(15,"td");M(16,"b-icon",8);L();K(17,"td");M(18,"b-icon",8);L();K(19,"td");M(20,"b-icon",8);L();K(21,"td");M(22,"b-icon",8);L();K(23,"td");M(24,"b-icon",8);L()()}if(a&2){a=b.$implicit;b=P();B(2);wg("bv2-edit-resource-readonly",b.canEdit);B(2);I("htmlFor",a.roleType);B();yg(a.label);B();I("matTooltip",a.tooltip);B(2);var d;I("idForInputBox",a.roleType)("users",a.users)("ariaLabel",
a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",(d=a.customValidators)!=null?d:Hg(24,hfc))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(a.chips==null?0:a.chips.values)&&a.chips.values.length>0?Ig(28,ifc,Jg(25,jfc,a.chips.displayText,a.chips.values)):Hg(30,kfc));Kf("disabled",b.canEdit?null:!0);B(2);I("name",b.getIconName(a,"componentAdmin"))("matTooltip",b.getTooltip(a,"componentAdmin"));B(2);I("name",b.getIconName(a,"createIssues"))("matTooltip",
b.getTooltip(a,"createIssues"));B(2);I("name",b.getIconName(a,"issueAdmin"));B(2);I("name",b.getIconName(a,"issueEditor"));B(2);I("name",b.getIconName(a,"issueCommenter"));B(2);I("name",b.getIconName(a,"issueReader"));B(2);I("name",b.getIconName(a,"restrictedReader"));B(2);I("name",b.getIconName(a,"restrictedPlusReader"))}},mfc=function(a){a&1&&(K(0,"div",0),M(1,"b-spinner"),L())},ofc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",1)(2,"mat-tab-group",2);N("selectedIndexChange",function(c){u(b);
var d=P();return v(d.tabChange(c))});K(3,"mat-tab",3)(4,"roles-view",4);N("saveRolesMap",function(c){u(b);var d=P();nfc(d.rolesEditor,c);return v()});L()();K(5,"mat-tab",5);M(6,"permissions-view",6);L()()()()}a&2&&(a=P(),B(2),I("selectedIndex",a.selectedTabIndex),B(2),I("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),B(2),I("componentReaders",a.rolesEditor.componentReaders)("componentAccessPolicy",a.rolesEditor.componentFlattenedAccessPolicy)("issueAccessPolicy",
a.rolesEditor.issueDefaultFlattenedAccessPolicy)("accessLevel",a.rolesEditor.component==null?null:a.rolesEditor.component.accessLimit==null?null:a.rolesEditor.component.accessLimit.accessLevel))},qfc=function(a){if(a&1){var b=t();K(0,"b-button",20,1);N("onAction",function(){u(b);var c=P(3);return v(pfc(c))});Q(2);L()}a&2&&(a=P(3),I("disabled",a.isSaving()),B(2),S(" ",a.archiveAction," Component "))},rfc=function(a){if(a&1){var b=t();K(0,"b-button",21);N("onAction",function(){u(b);var c=P(3);return v(c.createIssue())});
Q(1," Create Issue ");L()}a&2&&(a=P(3),I("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},sfc=function(a){a&1&&(K(0,"a",17),Q(1," Browse Components "),L(),F(2,qfc,3,2,"b-button",18),F(3,rfc,2,2,"b-button",19));a&2&&(a=P(2),I("routerLinkObj",a.componentListRoute(a.component.componentId)),B(2),G(a.isAdmin()?2:-1),B(),G(a.isAnonymous?-1:3))},tfc=function(a){a&1&&(K(0,"div",16),M(1,"b-spinner"),L())},ufc=function(a){a&1&&(K(0,"span",23),Q(1," (archived) "),
L())},vfc=function(a){a&1&&Wf(0)},wfc=function(a){a&1&&Wf(0)},xfc=function(a){a&1&&Wf(0)},yfc=function(a){a&1&&Wf(0)},zfc=function(a){a&1&&Wf(0)},Afc=function(a){a&1&&Wf(0)},Cfc=function(a){if(a&1){var b=t();K(0,"div",54)(1,"div",46)(2,"label",70)(3,"span",43);Q(4,"Parent Component");L()();K(5,"span",48)(6,"div",71)(7,"strong");Q(8,"Careful!");L();Q(9," Moving this component can have significant consequences. If this component has custom fields that are defined on the parent or ancestor components, those fields will be lost, and issues in this component will no longer display those fields. ");
K(10,"div",50);M(11,"div",51)(12,"div",52);L()()()();K(13,"b-team-component-picker",72);N("selectedComponentChange",function(c){u(b);var d=P(4);return v(d.parentComponent=c!=null?c:null)});L()()}a&2&&(a=P(4),B(2),wg("required",a.isParentComponentRequired&&!Bfc(a)),B(11),I("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!Bfc(a)))},Dfc=function(a){a&1&&(K(0,"a",60),Q(1," Learn more "),L());a&2&&(P(4),I("href",s5b(),Pe))},Efc=function(a){if(a&
1){var b=t();K(0,"div",73)(1,"label",74)(2,"span",43);Q(3,"Retention Settings");L()();K(4,"div",75)(5,"p");Q(6,"Please choose a period of time to retain the data stored in this component.");M(7,"br");K(8,"a",76);Q(9," Learn more ");L()()();K(10,"div",77)(11,"b-retention-settings-form",78);N("modelChange",function(c){u(b);var d=P(4);return v(d.component.retentionSettings=c)})("validChange",function(c){u(b);P(4).retentionIsValid=c;return v()});L()()()}a&2&&(a=P(4),wg("bv2-edit-resource-readonly",!a.isAdmin()),
B(8),I("href",mu(),Pe),B(3),I("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("componentPathInfo",a.component.componentPathInfo)("componentId",a.component.componentId)("initialModel",a.component.retentionSettings))},Gfc=function(a){if(a&1){var b=t();K(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&&Ffc(d);return v()});L()()}a&2&&(a=P(5),B(),I("anchorTarget",
Dg(a.hasUnsavedChanges()?"_blank":"_self"))("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",a.parentComponent==null?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},Hfc=function(a){a&1&&(K(0,"div",79)(1,"label",80)(2,"span",43),Q(3,"Team Configuration"),L()(),F(4,Gfc,2,7,"div",81),L());a&2&&(a=P(4),wg("bv2-edit-resource-readonly",!a.isAdmin()),B(4),G(a.component.team?4:-1))},Ifc=function(a){a&1&&(K(0,"a",92),Q(1),L());if(a&2){a=P();var b=
P(5);I("routerLinkObj",b.getSloManagementLink(a.id));B();var c;S(" ",(c=a.slo==null?null:a.slo.name)!=null?c:a.id," ")}},Jfc=function(a){a&1&&Q(0," None ")},Kfc=function(a,b){a&1&&(K(0,"div",87),Q(1," Inherited SLO Policy: "),F(2,Ifc,2,2,"a",92)(3,Jfc,1,0),L());a&2&&(B(2),G(b.id!=="0"?2:3))},Lfc=function(a){a&1&&(K(0,"a",93),Q(1),T(2,"titlecase"),L());a&2&&(a=P(),I("routerLinkObj",a.link),B(),zg(" (",U(2,3,a.type),") ",a.name," "))},Mfc=function(a){a&1&&Q(0," None ")},Nfc=function(a){a&1&&(K(0,"div",
95),M(1,"slo-inheritance-breadcrumbs",96),L());a&2&&(a=P(),B(),I("componentPath",a.componentPath)("teamPath",a.teamPath))},Ofc=function(a){a&1&&F(0,Nfc,2,2,"div",95);a&2&&(a=P(6),G(a.showSloInheritancePath?0:-1))},Pfc=function(a,b){if(a&1){var c=t();K(0,"div",88);Q(1," Policy Source: ");F(2,Lfc,3,5,"a",93)(3,Mfc,1,0);K(4,"button",94);N("click",function(){u(c);var e=P(5);return v(e.showSloInheritancePath=!e.showSloInheritancePath)});Q(5);L();F(6,Ofc,1,1);T(7,"async");L()}if(a&2){var d;a=P(5);B(2);
G(b.link?2:3);B(2);Kf("aria-expanded",a.showSloInheritancePath);B();S(" ",a.showSloInheritancePath?"Hide":"Show"," full path ");B();G((d=U(7,4,a.policySourcePath$))?6:-1,d)}},Qfc=function(a){a&1&&(Q(0," , "),K(1,"a",97),Q(2,"Team Leads"),L());a&2&&(a=P(6),B(),I("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:a.tabsService.Tab.ACCESS}))},Rfc=function(a){a&1&&(K(0,"div",89),Q(1," SLO Admins: "),K(2,"a",97),Q(3,"Component Admins"),L(),F(4,Qfc,3,1),L());a&2&&(a=P(5),B(2),I("routerLinkObj",
a.componentPermissions(a.componentId)),B(2),G(a.component.team&&a.component.team.id!=="0"?4:-1))},Sfc=function(a){a&1&&(M(0,"mat-icon",98),Q(1," on "))},Tfc=function(a){a&1&&(M(0,"mat-icon",99),Q(1," off "))},Ufc=function(a){a&1&&(Q(0," Lock: "),F(1,Sfc,2,0),T(2,"async"),Lf(3,Tfc,2,0));a&2&&(a=P(5),B(),G(U(2,1,a.sloLocked$)?1:3))},Wfc=function(a){if(a&1){var b=t();K(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||Ffc(d);return v()});
K(2,"span");Q(3,"Override the inherited SLO policy");L()()()}a&2&&(a=P(5),B(),I("checked",!a.component.slo.inherit)("disabled",!Vfc(a)))},Xfc=function(a){if(a&1){var b=t();K(0,"div",101)(1,"label",107);Q(2," Justification ");L();M(3,"mat-icon",108);K(4,"textarea",109);Cg("ngModelChange",function(c){u(b);var d=P(6);Bg(d.component.slo.comment,c)||(d.component.slo.comment=c);return v(c)});L()()}a&2&&(a=P(6),B(4),Ag("ngModel",a.component.slo.comment),I("disabled",!a.isComponentSloEditor))},Yfc=function(a){a&
1&&(K(0,"a",106),M(1,"mat-icon",110),L());a&2&&(a=P(6),I("target",Dg(a.hasUnsavedChanges()?"_blank":"_self"))("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},bgc=function(a){if(a&1){var b=t();F(0,Xfc,5,2,"div",101);K(1,"mat-slide-toggle",102);Cg("ngModelChange",function(d){u(b);var e=P(5);Bg(e.isEnableSloChecked,d)||(e.isEnableSloChecked=d);return v(d)});N("change",function(d){u(b);var e=P(5);d=d.checked;e.isEnableSloChecked=d;d||(e.component.slo.id=void 0);return v()});Q(2," Enable SLO ");
L();K(3,"div",103)(4,"label",104);Q(5,"SLO policy");L();K(6,"slo-picker",105);N("onSloSelect",function(d){u(b);var e=P(5);return v(e.onSloChange(d))});L();F(7,Yfc,2,3,"a",106);L()}if(a&2){a=P(5);G(Zfc(a)?0:-1);B();wg("indented",$fc(a));Ag("ngModel",a.isEnableSloChecked);I("disabled",!agc(a));B(5);var c;I("bv2Disabled",!a.isEnableSloChecked||!agc(a))("boundId",(c=a.component.slo.id)!=null?c:null)("bv2Placeholder",a.isEnableSloChecked&&agc(a)?"Type to search for an SLO":"SLO disabled");B();G(a.component.slo.id&&
a.component.slo.id!=="0"?7:-1)}},cgc=function(a){a&1&&(K(0,"div",83)(1,"div",46)(2,"label",84)(3,"span",43),Q(4,"SLO Configuration"),L()(),K(5,"span",48)(6,"div",85)(7,"strong"),Q(8,"Careful!"),L(),Q(9," Changing the SLO (service level objective) of a component has the potential to impact the Buganizer SLO compliance status of every issue under that component. "),K(10,"div",50),M(11,"div",51)(12,"div",52),L()()()(),K(13,"div",86),F(14,Kfc,4,1,"div",87),T(15,"async"),F(16,Pfc,8,6,"div",88),T(17,"async"),
F(18,Rfc,5,2,"div",89),K(19,"div",90),F(20,Ufc,4,3),L()(),F(21,Wfc,4,2,"div",91),F(22,bgc,8,9),L());if(a&2){var b,c;a=P(4);wg("bv2-edit-resource-readonly",!a.isComponentSloEditor);B(14);G((b=U(15,8,a.inheritedSlo$))?14:-1,b);B(2);G((c=U(17,10,a.sloPolicySource$))?16:-1,c);B(2);G(a.sessionIsInternal?18:-1);B(2);G(a.enableSloLockingUi?20:-1);B();G($fc(a)?21:-1);B();a.component&&a.component.slo?(b=!!a.component.team&&a.component.team.id!=="0",c=!a.component.slo.inherit,a=!a.component.parentComponentId&&
!b||c):a=!1;G(a?22:-1)}},dgc=function(a){if(a&1){var b=t();K(0,"mat-slide-toggle",111);N("change",function(c){u(b);P(4).component.spamProtection=c.checked?"ALL_PROTECTIONS":"NO_PROTECTIONS";return v()});Q(1," Enable Spam Protections ");L()}a&2&&(a=P(4),I("checked",a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?a.component.spamProtection==="ALL_PROTECTIONS"||a.component.spamProtection==="SPAM_PROTECTION_UNSPECIFIED":!1)("disabled",a.isAccessEditDisabled()))},egc=function(a){if(a&
1){var b=t();K(0,"div",66)(1,"b-button",112);N("onAction",function(){u(b);var c=P(4);return v(c.saveMetadata())});Q(2," Update ");L();K(3,"b-button",113);N("onAction",function(){u(b);var c=P(4);return v(c.revertMetadataChanges())});Q(4," Revert Changes ");L();K(5,"b-button",113);N("onAction",function(){u(b);var c=P(4);return v(c.createChild())});Q(6," Create Child Component ");L()()}a&2&&(a=P(4),B(),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),
B(2),I("disabled",a.hasUnsavedMetadataChanges()))},fgc=function(a){if(a&1){var b=t();K(0,"b-button",114);N("onAction",function(){u(b);var c=P(4);return v(c.showUpdateHistoryModal())});Q(1," View History ");L()}},ggc=function(a){a&1&&M(0,"b-spinner")},hgc=function(a){if(a&1){var b=t();K(0,"b-component-children-list",115);N("onVisit",function(){u(b);var c=P(4);return v(c.trackClick("openChildComponent"))});L()}a&2&&(a=P(4),I("children",a.childComponents))},igc=function(a){a&1&&(K(0,"span"),Q(1," No child components. "),
L())},kgc=function(a){if(a&1){var b=t();K(0,"div",38)(1,"form",39,8);M(3,"b-error-banner",40);K(4,"div",41)(5,"label",42)(6,"span",43);Q(7,"Name");L()();K(8,"input",44);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.component.name,c)||(d.component.name=c);return v(c)});L()();K(9,"div",45)(10,"div",46)(11,"label",47)(12,"span",43);Q(13,"Description");L()();K(14,"span",48)(15,"div",49);Q(16," The description will be used during component searches. You can add previous project names or keywords that will help users search for your component. ");
K(17,"div",50);M(18,"div",51)(19,"div",52);L()()()();K(20,"textarea",53);Cg("ngModelChange",function(c){u(b);var d=P(3);Bg(d.component.description,c)||(d.component.description=c);return v(c)});Q(21,"                ");L()();F(22,Cfc,14,5,"div",54);K(23,"div",55)(24,"div",56)(25,"mat-checkbox",57);N("change",function(c){u(b);var d=P(3);return v(d.setCommentEditState(c.checked))});L()();K(26,"div")(27,"strong",58);Q(28,"Editable Comments");L();K(29,"div",59);Q(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,Dfc,2,1,"a",60);L()()();F(33,Efc,12,8,"div",61);F(34,Hfc,5,3,"div",62);F(35,cgc,23,12,"div",63);F(36,dgc,2,2,"mat-slide-toggle",64);K(37,"div",65);F(38,egc,7,3,"div",66);K(39,"div",66);F(40,fgc,2,0,"b-button",67);L()();K(41,"div",68)(42,"label")(43,"span",43);Q(44,"Child Components");L()();F(45,ggc,1,0,"b-spinner");F(46,hgc,1,1,"b-component-children-list",69);F(47,igc,2,0,"span");L()()()}a&2&&(a=P(3),B(),wg("show-errors",a.error),B(2),I("error",a.error),B(),wg("bv2-edit-resource-readonly",
jgc(a)),B(4),Ag("ngModel",a.component.name),I("disabled",jgc(a)),B(),wg("bv2-edit-resource-readonly",jgc(a)),B(11),Ag("ngModel",a.component.description),I("disabled",jgc(a)),B(2),G(a.isAdmin()?22:-1),B(),wg("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),I("checked",a.commentEditsEnabled)("disabled",jgc(a)),B(7),G(a.sessionIsExternal?-1:32),B(),G(a.sessionIsExternal?-1:33),B(),G(a.sessionIsInternal?34:-1),B(),G(a.component.slo&&a.sessionIsInternal?35:-1),B(),G(a.sessionIsInternal&&a.getComponentAccessLevel()===
"EXTERNAL_PUBLIC"?36:-1),B(2),G(a.isEditorInternal||a.isComponentSloEditor?38:-1),B(2),G(a.componentHistoryUiEnabled?40:-1),B(5),G(a.childComponents===void 0?45:-1),B(),G(a.childComponents&&a.childComponents.length>0?46:-1),B(),G(a.childComponents&&a.childComponents.length===0?47:-1))},mgc=function(a){if(a&1){var b=t();K(0,"div",116);Q(1," Standard Fields ");L();K(2,"b-component-standard-fields",117);N("updateComponent",function(c){u(b);var d=P(3);return v(lgc(d,c))});L();K(3,"div",118);Q(4," Custom Fields ");
L();M(5,"b-component-custom-fields",119)}a&2&&(a=P(3),B(2),I("effortSpec",a.component.effortSpec)("parentEffortSpec",a.parentComponent==null?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal),B(3),I("editMode",a.isEditorInternal)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},ngc=function(a){a&1&&(K(0,"a",121),Q(1," Learn more "),L());a&2&&(P(4),I("href",Hdc(),Pe))},pgc=function(a){if(a&1){var b=t();K(0,"div",38)(1,"div",120);Q(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,ngc,2,1,"a",121);L();K(4,"b-field-reorder",122);N("onReload",function(){u(b);var c=P(3);return v(ogc(c))});L()()}a&2&&(a=P(3),B(3),G(a.sessionIsInternal?3:-1),B(),I("fields",a.orderedCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},qgc=function(a){a&1&&(K(0,"div",38),M(1,"b-field-configuration",123),L());a&2&&(a=P(4),B(),I("isAdmin",a.isAdmin())("componentPathInfo",a.component.componentPathInfo))},rgc=function(a){a&1&&F(0,qgc,2,2,"div",
38);a&2&&(a=P(3),G(a.component.componentPathInfo?0:-1))},sgc=function(a){a&1&&M(0,"b-edit-templates",124);a&2&&(a=P(4),I("componentId",a.componentId)("supportCustomFields",!0))},tgc=function(a){a&1&&(K(0,"div"),Q(1),L());a&2&&(a=P().$implicit,B(),yg(a.description))},ugc=function(a,b){a&1&&(K(0,"div",125)(1,"label"),Q(2),L(),F(3,tgc,2,1,"div"),K(4,"div")(5,"a",126),Q(6),L()()());a&2&&(a=b.$implicit,B(2),yg(a.name),B(),G(a.description?3:-1),B(2),I("href",a.url,Pe),Kf("aria-label","Click to open the template "+
a.name),B(),yg(a.url))},vgc=function(a){a&1&&Of(0,ugc,7,5,"div",125,Nf);a&2&&(a=P(4),Pf(a.templates))},wgc=function(a){a&1&&(K(0,"div",38),F(1,sgc,1,2,"b-edit-templates",124)(2,vgc,2,0),L());a&2&&(a=P(3),B(),G(a.isEditorInternal?1:2))},ygc=function(a){if(a&1){var b=t();K(0,"role-based-permissions",127);N("onTabChange",function(c){u(b);var d=P(3).tabsService;d.selectedAccessSubTabIndex=c;xgc(d);return v()});L()}a&2&&(a=P(3),I("tabIndex",a.tabsService.selectedAccessSubTabIndex))},zgc=function(a){if(a&
1){var b=t();K(0,"div")(1,"div",22)(2,"h2");Q(3);L();F(4,ufc,2,0,"span",23);K(5,"a",24);N("click",function(){u(b);var l=P(2);return v(l.trackClick("recentIssues"))});Q(6," (Recent Issues)");L();M(7,"b-component-access-level-indicator",25)(8,"b-tracker-chip-smart",26);L();K(9,"div",27);M(10,"b-component-breadcrumb",28)(11,"div",29);L();K(12,"mat-tab-group",30);N("selectedIndexChange",function(l){u(b);var r=P(2);return v(r.tabsService.tabChange(l))});K(13,"mat-tab",31);E(14,vfc,1,0,"ng-container",32);
L();K(15,"mat-tab",33);E(16,wfc,1,0,"ng-container",32);L();K(17,"mat-tab",34);E(18,xfc,1,0,"ng-container",32);L();K(19,"mat-tab",35);E(20,yfc,1,0,"ng-container",32);L();K(21,"mat-tab",36);E(22,zfc,1,0,"ng-container",32);L();K(23,"mat-tab",37);E(24,Afc,1,0,"ng-container",32);L()();E(25,kgc,48,26,"ng-template",null,2,Mg)(27,mgc,6,7,"ng-template",null,3,Mg)(29,pgc,5,5,"ng-template",null,4,Mg)(31,rgc,1,1,"ng-template",null,5,Mg)(33,wgc,3,1,"ng-template",null,6,Mg)(35,ygc,1,1,"ng-template",null,7,Mg);
L()}if(a&2){a=qg(26);var c=qg(28),d=qg(30),e=qg(32),f=qg(34),g=qg(36),k=P(2);B(3);zg(" Component ",k.component.componentId,": ",k.currentName," ");B();G(k.isArchived()?4:-1);B();I("routerLinkObj",k.getRecentIssuesLink());B(2);I("accessLevel",k.getComponentAccessLevel());B();I("trackerId",k.component.trackerId);B(2);I("componentPathInfo",k.component.componentPathInfo)("isArchived",k.isArchived())("label","Parent Component");B(2);I("selectedIndex",k.tabsService.selectedTabIndex);B();I("id",k.tabsService.Tab.BASIC);
B();I("ngTemplateOutlet",a);B();I("id",k.tabsService.Tab.CUSTOM_FIELDS)("label","Fields");B();I("ngTemplateOutlet",c);B();I("id",k.tabsService.Tab.FIELD_ORDERING);B();I("ngTemplateOutlet",d);B();I("id",k.tabsService.Tab.FIELD_VISIBILITY);B();I("ngTemplateOutlet",e);B();I("id",k.tabsService.Tab.TEMPLATES);B();I("ngTemplateOutlet",f);B();I("id",k.tabsService.Tab.ACCESS);B();I("ngTemplateOutlet",g)}},Agc=function(a){a&1&&(K(0,"span")(1,"p"),Q(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),
M(3,"br"),K(4,"strong"),Q(5,"This action cannot be easily reverted."),L(),K(6,"a",132),Q(7," Learn more "),L()(),K(8,"p"),Q(9," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),M(10,"br"),Q(11," so they can be scheduled for deletion. "),K(12,"a",133),Q(13," Learn more "),L()()());a&2&&(P(3),B(6),I("href","http://go/archived-components",Pe),B(6),I("href",mu(),Pe))},Bgc=function(a){a&1&&(K(0,"span")(1,"p"),Q(2," Unarchiving a component will NOT cause its subcomponents to be unarchived."),
M(3,"br"),Q(4," If you need to recursively unarchive subcomponents please use the buganizer_admin tool. "),K(5,"a",134),Q(6," Learn more "),L()()());a&2&&(P(3),B(5),I("href","http://go/buganizer-admin",Pe))},Cgc=function(a,b){a&1&&(K(0,"span")(1,"span"),Q(2),L(),K(3,"span"),Q(4," : "),K(5,"b"),Q(6),L()(),M(7,"br"),L());a&2&&(a=b.$implicit,b=P(4),B(2),yg(a.componentPath),B(),wg("b-archive-warning-indef",!a.retentionSettings.retentionPeriodDays),B(3),yg(b.getRetentionPeriod(a)))},Dgc=function(a){a&
1&&(K(0,"span"),Of(1,Cgc,8,4,"span",null,Nf),L());a&2&&(a=P(3),B(),Pf(a.descendants))},Egc=function(a){a&1&&(K(0,"span")(1,"span"),Q(2),L()());a&2&&(a=P(3),B(2),yg(a.descendants[0].componentPath))},Fgc=function(a){if(a&1){var b=t();K(0,"h2",128);Q(1);L();K(2,"mat-dialog-content");F(3,Agc,14,2,"span");F(4,Bgc,7,1,"span");K(5,"p");Q(6," The following components will be affected: ");L();K(7,"div",129);F(8,Dgc,3,0,"span");F(9,Egc,3,1,"span");L()();K(10,"mat-dialog-actions")(11,"button",130);N("click",
function(){u(b);P(2).isArchiving=!1;return v()});Q(12," Cancel ");L();K(13,"button",131);N("click",function(){u(b);var c=P(2);c.archive();c.isArchiving=!1;return v()});Q(14," Confirm ");L()()}a&2&&(a=P(2),B(),yg(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'"'+(a.archiveAction==="Archive"?" and its subcomponents?":"?"):""),B(2),G(a.archiveAction==="Archive"?3:-1),B(),G(a.archiveAction==="Unarchive"?4:-1),B(4),G(a.archiveAction==="Archive"?
8:-1),B(),G(a.archiveAction==="Unarchive"?9:-1))},Ggc=function(a){if(a&1){var b=t();K(0,"div",10)(1,"div",11)(2,"div",12)(3,"b-button",13);N("onAction",function(){u(b);var c=P();return v(c.back())});M(4,"b-icon",14);L();F(5,sfc,4,3);L()()();K(6,"div",15);F(7,tfc,2,0,"div",16);F(8,zgc,37,23,"div");L();E(9,Fgc,15,5,"ng-template",null,0,Mg)}a&2&&(a=P(),B(5),G(a.component?5:-1),B(2),G(a.isLoading?7:-1),B(),G(!a.isLoading&&a.component&&a.component.componentId?8:-1))},Hgc=function(a){a&1&&(K(0,"div",9),
M(1,"b-tracker-redirect",135),L());a&2&&(a=P(),B(),I("component",a.component))},Igc=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}},Jgc=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}},Kgc=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},Lgc=function(a){return a?a.filter(function(b){return!b.shared}):[]},Mgc=function(a,b){a&1&&(K(0,"div",10),M(1,"b-team-breadcrumb",39),L());a&2&&(B(),I("teamPath",b))},Ngc=
function(a,b){a&1&&(Uf(0),Q(1),Vf());a&2&&(B(),yg(b.trim()))},Ogc=function(a){a&1&&Q(0," No description ")},Pgc=function(a,b){a&1&&M(0,"b-multi-user-input",25);a&2&&(I("users",b),Kf("disabled",!0))},Qgc=function(a){a&1&&(K(0,"p"),Q(1,"No child teams"),L())},Rgc=function(a,b){a&1&&(M(0,"br"),K(1,"a",40),Q(2),L());a&2&&(a=b.$implicit,B(),I("routerLink",Eg("/teams/",a.id,"/edit")),B(),yg(a.name))},Sgc=function(a){a&1&&Of(0,Rgc,3,3,null,null,Nf);a&2&&(a=P(),Pf(a))},Tgc=function(a,b){a&1&&F(0,Qgc,2,0,
"p")(1,Sgc,2,0);a&2&&G(b.length===0?0:1)},Ugc=function(a){a&1&&(K(0,"a",41),Q(1),L());if(a&2){a=P();I("routerLinkObj",a.link);B();var b;S(" ",(b=a.slo==null?null:a.slo.name)!=null?b:a.id," ")}},Vgc=function(a){a&1&&Q(0," None ")},Wgc=function(a,b){a&1&&(K(0,"div",29),Q(1," Inherited SLO Policy: "),F(2,Ugc,2,2,"a",41)(3,Vgc,1,0),L());a&2&&(B(2),G(b.link?2:3))},Xgc=function(a,b){a&1&&(K(0,"a",31),Q(1),L());a&2&&(I("routerLinkObj",b.link),B(),S(" ",b.name," "))},Ygc=function(a){a&1&&Q(0," None ")},Zgc=
function(a){a&1&&(M(0,"mat-icon",42),Q(1," on "))},$gc=function(a){a&1&&(M(0,"mat-icon",43),Q(1," off "))},ahc=function(a){a&1&&(Q(0," Lock: "),F(1,Zgc,2,0)(2,$gc,2,0));a&2&&(a=P(2),B(),G(a.originalSloLock?1:2))},bhc=function(a){if(a&1){var b=t();K(0,"div",44)(1,"mat-checkbox",45);N("change",function(c){u(b);var d=P(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.slo.sloId);return v()});K(2,"span");Q(3,"Override the inherited SLO");L()()()}a&2&&(a=P(3),B(),I("disabled",
!a.hasSloEditAccess)("checked",!a.isSloInheritEnabled))},chc=function(a){if(a&1){var b=t();K(0,"div",46)(1,"label",50);Q(2," Justification to override the org SLO ");L();M(3,"mat-icon",51);K(4,"textarea",52);T(5,"async");N("ngModelChange",function(c){u(b);var d=P(4);return v(d.sloJustification$.next(c))});L()()}a&2&&(a=P(4),B(3),I("matTooltip",a.justificationRequiredText),Kf("aria-label",a.justificationRequiredText),B(),I("ngModel",U(5,4,a.sloJustification$))("disabled",!a.hasSloEditAccess))},dhc=
function(a,b){a&1&&(K(0,"a",49),T(1,"async"),M(2,"mat-icon",9),L());a&2&&(a=P(4),I("target",Dg(U(1,3,a.hasUnsavedChanges$)?"_blank":"_self"))("routerLinkObj",b))},ehc=function(a){if(a&1){var b=t();F(0,chc,6,6,"div",46);K(1,"div",14)(2,"mat-slide-toggle",47);Cg("ngModelChange",function(e){u(b);var f=P(3);Bg(f.enableSloChecked,e)||(f.enableSloChecked=e);return v(e)});N("change",function(e){u(b);var f=P(3);return v(f.enableSloChecked=e.checked)});Q(3," Enable SLO ");L();K(4,"slo-picker",48);N("onSloSelect",
function(e){u(b);var f=P(3);return v(f.onSloChange(e))});L();F(5,dhc,3,5,"a",49);T(6,"async");L()}if(a&2){var c;a=P();var d=P(2);G(a.value?-1:0);B(2);wg("indented",!a.value);Ag("ngModel",d.enableSloChecked);I("disabled",!d.hasSloEditAccess);B(2);I("boundId",d.sloId)("bv2Disabled",!d.hasSloEditAccess||!d.enableSloChecked||d.isSloInheritEnabled)("bv2Placeholder",d.enableSloChecked?"Type to search for an SLO":"SLO disabled");B();G((c=U(6,9,d.sloPickerLink$))?5:-1,c)}},fhc=function(a,b){a&1&&(F(0,bhc,
4,2,"div",44),F(1,ehc,7,11));a&2&&(a=P(2),G(b.value?-1:0),B(),G(a.isSloInheritEnabled?-1:1))},ghc=function(a){if(a&1){var b=t();K(0,"div",14)(1,"mat-checkbox",53);N("change",function(c){u(b);var d=P(2);return v(d.sloLocked=c.checked)});K(2,"span");Q(3,"Lock for all child teams");L()()()}a&2&&(a=P(2),B(),I("checked",a.sloLocked)("disabled",!a.canEditSloLock))},ihc=function(a){if(a&1){var b=t();K(0,"div",14)(1,"mat-checkbox",56);N("change",function(c){u(b);var d=P(3);d.isOwnerInheritEnabled=!c.checked;
d.isOwnerInheritEnabled&&hhc(d);return v()});K(2,"span");Q(3,"Override the inherited owner");L()()()}a&2&&(a=P(3),B(),I("checked",!a.isOwnerInheritEnabled)("disabled",!a.hasSloEditAccess))},lhc=function(a,b){if(a&1){var c=t();F(0,ihc,4,2,"div",14);K(1,"div",14)(2,"div")(3,"label");Q(4);L();K(5,"b-multi-user-input",54);N("usersChange",function(d){u(c);var e=P(2);d.length>1||(e.escalationOwner=d.length===1?d[0]:"");return v()})("isValid",function(d){u(c);var e=P(2);return v(e.isEscalationOwnerValid=
d)});L();K(6,"div",55);Q(7);L()()()}a&2&&(a=P(2),G(b.value?-1:0),B(4),yg(a.isOwnerInheritEnabled&&!b.value?"Inherited owner":"Owner"),B(),I("users",a.escalationOwner?Ig(9,jhc,a.escalationOwner):Hg(11,khc))("customValidators",a.escalationOwnerUserValidators)("detailedUserValidators",a.escalationOwnerGooglerValidators)("maxUserAllowed",1),Kf("disabled",a.isOwnerInheritEnabled||!a.hasSloEditAccess?!0:null),B(),Kf("aria-hidden",!a.escalationOwnerInvalidErrorMessage),B(),S(" ",a.escalationOwnerInvalidErrorMessage,
" "))},ohc=function(a){if(a&1){var b=t();K(0,"div",34)(1,"div",57)(2,"button",58);T(3,"async");N("click",function(){u(b);var c=P(),d=P();return v(mhc(d,c))});Q(4," Update ");L();K(5,"button",59);T(6,"async");N("click",function(){u(b);var c=P(2);return v(nhc(c))});Q(7," Revert changes ");L()()()}a&2&&(a=P(2),B(2),I("disabled",!U(3,2,a.hasUnsavedChanges$)),B(3),I("disabled",!U(6,4,a.hasUnsavedChanges$)))},phc=function(a){a&1&&(K(0,"p"),Q(1,"No mapped components"),L())},qhc=function(a,b){a&1&&(K(0,"ul")(1,
"li")(2,"a",40),Q(3),L()()());a&2&&(a=b.$implicit,B(2),I("routerLink",Eg("/components/",a.componentId,"/edit")),B(),S(" ",a.name," "))},rhc=function(a){a&1&&(Of(0,qhc,4,3,"ul",null,Nf),T(2,"async"));a&2&&(a=P(3),Pf(U(2,0,a.associatedComponents$)))},shc=function(a,b){a&1&&F(0,phc,2,0,"p")(1,rhc,3,2);a&2&&G(b.length===0?0:1)},thc=function(a){a&1&&(K(0,"th",70)(1,"span",71),Q(2,"Starred"),L()())},uhc=function(a,b){if(a&1){var c=t();K(0,"td",72)(1,"b-star-toggle",73);N("starClicked",function(){var f=
u(c).$implicit,g=P(),k=P(2),l=P();return v(l.toggleStar(f.id,k.teamId,g))});L()()}if(a&2){a=b.$implicit;b=P();var d=P(2),e=P();B();I("starred",e.isTriageStarred(a.id,d.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},vhc=function(a){a&1&&(K(0,"th",70),Q(1,"Name"),L())},whc=function(a,b){a&1&&(K(0,"td",74)(1,"a",75),Q(2),L()());if(a&2){a=b.$implicit;b=P(3);var c=P();B();I("href",c.getTriageLink(a.id,b.teamId),Pe);B();S(" ",a.displayName||b.name+" triage",
" ")}},xhc=function(a){a&1&&(K(0,"th",70)(1,"span",71),Q(2,"Actions"),L()())},yhc=function(a){a&1&&M(0,"div",79)},Ahc=function(a){if(a&1){var b=t();K(0,"button",81);N("click",function(){u(b);var c=P().$implicit,d=P(4);return v(zhc(d,c))});M(1,"mat-icon",82);L()}a&2&&(a=P(5),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},Chc=function(a,b){if(a&1){var c=t();K(0,"td",72)(1,"div",76)(2,"button",77);N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return v(Bhc(f,d.id,e))});M(3,"mat-icon",
78);L();F(4,yhc,1,0,"div",79)(5,Ahc,2,1,"button",80);L()()}a&2&&(a=b.$implicit,b=P(4),B(2),I("disabled",!b.hasTeamEditAccess&&!b.enableTeamAdmin),B(2),G(a.id===0?4:5))},Dhc=function(a){a&1&&M(0,"tr",83)},Ehc=function(a){a&1&&M(0,"tr",84)},Ghc=function(a){if(a&1){var b=t();K(0,"h3");Q(1,"Triage views");L();K(2,"table",60);Uf(3,61);E(4,thc,3,0,"th",62)(5,uhc,2,3,"td",63);Vf();Uf(6,64);E(7,vhc,2,0,"th",62)(8,whc,3,2,"td",65);Vf();Uf(9,66);E(10,xhc,3,0,"th",62)(11,Chc,6,2,"td",63);Vf();E(12,Dhc,1,0,"tr",
67)(13,Ehc,1,0,"tr",68);L();K(14,"button",69);N("click",function(){u(b);var c=P(2),d=P();return v(Fhc(d,c))});Q(15," Add new view ");L()}a&2&&(a=P(3),B(2),I("dataSource",a.teamExperiments.triage),B(10),I("matHeaderRowDef",a.tableColumns),B(),I("matRowDefColumns",a.tableColumns),B(),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},Hhc=function(a){a&1&&(K(0,"mat-tab",36)(1,"div",13),F(2,Ghc,16,4),T(3,"async"),L()());if(a&2){var b;a=P(2);I("id",a.Tab.TRIAGE);B(2);G((b=U(3,2,a.starredTriageViews$))?
2:-1,b)}},Khc=function(a){if(a&1){var b=t();K(0,"div",34)(1,"div",57)(2,"button",58);N("click",function(){u(b);var c=P(2);return v(Ihc(c))});Q(3," Update ");L();K(4,"button",59);N("click",function(){u(b);var c=P(2);return v(Jhc(c))});Q(5," Revert changes ");L()()()}a&2&&(a=P(2),B(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()),B(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()))},Mhc=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"h2");Q(2);K(3,"a",8);Q(4);M(5,
"mat-icon",9);L()()();F(6,Mgc,2,1,"div",10);T(7,"async");K(8,"mat-tab-group",11);Cg("selectedIndexChange",function(C){u(c);var H=P();Bg(H.selectedTabIndex,C)||(H.selectedTabIndex=C);return v(C)});N("selectedIndexChange",function(C){u(c);var H=P();return v(H.tabChange(C))});K(9,"mat-tab",12)(10,"div",13);Q(11," Team information on this page comes from ");K(12,"a",8);Q(13," Team Graph ");M(14,"mat-icon",9);L();Q(15," and is view only. ");K(16,"div",14)(17,"div",15)(18,"label")(19,"span",16);Q(20,"Description");
L()();K(21,"div",17);F(22,Ngc,2,1,"ng-container")(23,Ogc,1,0);L()()();K(24,"div",14)(25,"div",18)(26,"label",19)(27,"span",16);Q(28," Team admins ");L();K(29,"span",20)(30,"div",21);Q(31," Team admins are team leads from Team Graph. ");K(32,"div",22);M(33,"div",23)(34,"div",24);L()()()();F(35,Pgc,1,2,"b-multi-user-input",25);T(36,"async");L()();K(37,"div",14)(38,"div",15)(39,"label")(40,"span",16);Q(41,"Child team(s)");L()();F(42,Tgc,2,1);T(43,"async");L()()()();K(44,"mat-tab",26)(45,"div",13)(46,
"div",18)(47,"label",19)(48,"span",16);Q(49,"SLO configuration");L()();K(50,"span",20)(51,"div",27)(52,"strong");Q(53,"Careful!");L();Q(54," Changing the SLO (service level objective) of a component has the potential to impact the compliance status of every issue under this team's components. ");K(55,"div",22);M(56,"div",23)(57,"div",24);L()()()();K(58,"div",28);F(59,Wgc,4,1,"div",29);T(60,"async");K(61,"div",30);Q(62," Policy Source: ");F(63,Xgc,2,2,"a",31);T(64,"async");Lf(65,Ygc,1,0);L();K(66,
"div",32);F(67,ahc,3,1);L()();M(68,"b-error-banner",33);F(69,fhc,2,2);T(70,"async");F(71,ghc,4,2,"div",14);K(72,"div",14)(73,"div",18)(74,"label",19)(75,"span",16);Q(76," Owner configuration ");L()();K(77,"span",20)(78,"div",21);Q(79," Single team lead receiving SLO reports of unassigned issues. ");K(80,"div",22);M(81,"div",23)(82,"div",24);L()()()()();F(83,lhc,8,12);T(84,"async");F(85,ohc,8,6,"div",34);L()();K(86,"mat-tab",35)(87,"div",13)(88,"div",14)(89,"div",15)(90,"label")(91,"span",16);Q(92,
" Component(s) that have mapped to this team ");L()()();F(93,shc,2,1);T(94,"async");L()()();F(95,Hhc,4,4,"mat-tab",36);K(96,"mat-tab",37)(97,"div",13)(98,"div",14)(99,"div",18)(100,"label",19)(101,"span",16);Q(102," SLO delegates ");L();K(103,"span",20)(104,"div",21);Q(105," SLO delegates can manage the SLO policy for the team and its children, as well as all associated components and their children. ");K(106,"div",22);M(107,"div",23)(108,"div",24);L()()()()();K(109,"b-multi-user-input",38);N("usersChange",
function(C){u(c);P().sloDelegates=C;return v()});L()();F(110,Khc,6,2,"div",34);L()()()}if(a&2){var d,e,f,g,k,l,r,w,x;a=P();B(2);S(" Team ",b.teamId,": ");B();I("href",Eg("https://moma.corp.google.com/team/",b.teamId),Pe);B();S(" ",b.name," ");B(2);G((d=U(7,30,a.teamPath$))?6:-1,d);B(2);Ag("selectedIndex",a.selectedTabIndex);B();I("id",a.Tab.BASIC);B(3);I("href",Eg("https://moma.corp.google.com/team/",b.teamId),Pe);B(10);G((e=b.description)?22:23,e);B(13);G((f=U(36,32,a.adminsAndLeads$))?35:-1,f);
B(7);G((g=U(43,34,a.childTeams$))?42:-1,g);B(2);I("id",a.Tab.SLO);B(15);G((k=U(60,36,a.inheritedSlo$))?59:-1,k);B(4);G((l=U(64,38,a.sloPolicySource$))?63:65,l);B(4);G(a.enableSloLockingUi?67:-1);B();I("error",a.error);B();G((r=Ig(46,Lhc,U(70,40,a.isRootTeam$)))?69:-1,r);B(2);G(a.enableSloLockingUi?71:-1);B(12);G((w=Ig(48,Lhc,U(84,42,a.isRootTeam$)))?83:-1,w);B(2);G(a.hasSloEditAccess?85:-1);B();I("id",a.Tab.MAPPINGS);B(7);G((x=U(94,44,a.associatedComponents$))?93:-1,x);B(2);G(a.enableTeamScope?95:
-1);B();I("id",a.Tab.ACCESS);B(13);I("users",a.sloDelegates)("includeAliases",!0)("includeViewAliases",!0);Kf("disabled",a.hasTeamEditAccess?null:!0);B();G(a.hasTeamEditAccess?110:-1)}},Nhc=function(a,b){a&1&&(K(0,"div",85),Q(1),L(),K(2,"div",86)(3,"button",87),Q(4," Cancel "),L(),K(5,"button",88),Q(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),S(' Are you sure you want to delete this triage view: "',a.displayName,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},Ohc=function(a){a&
1&&(K(0,"a",9),Q(1,"Learn more"),L())},Phc=function(a){a&1&&(K(0,"mat-error"),Q(1),L());a&2&&(a=P(2),B(),yg(a.validationErrorMessage))},Qhc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"p");Q(2," Input a URL from a supported source to add a task. ");F(3,Ohc,2,0,"a",9);L()();K(4,"mat-form-field",10);M(5,"input",11,3);F(7,Phc,2,1,"mat-error");L();K(8,"div",12)(9,"div",13)(10,"button",14);N("click",function(){u(b);var c=P();return v(c.cancelClicked.emit())});Q(11,"Cancel");L();K(12,"button",15);N("click",
function(){u(b);var c=P();return v(c.saveChanges())});Q(13,"Add Task");L()()()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1),B(2),I("formControl",a.addTasksForm)("placeholder",a.urlPlaceholder),B(2),G(a.validationErrorMessage?7:-1),B(5),I("disabled",a.addTasksForm.invalid||a.saving))},Rhc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Title is required"),L())},Shc=function(a,b){a&1&&(K(0,"mat-option",25),Q(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),S(" ",a.title," "))},Thc=function(a){a&1&&(K(0,"mat-error",
26),Q(1,"Task list is required"),L())},Vhc=function(a){if(a&1){var b=t();K(0,"div",16)(1,"form",17);N("ngSubmit",function(){u(b);var f=P();return v(f.onSubmit())});K(2,"mat-form-field",18);M(3,"input",19,3);K(5,"mat-hint",20);Q(6);L();F(7,Rhc,2,0,"mat-error");L();K(8,"mat-form-field",18);M(9,"textarea",21,4);K(11,"mat-hint",20);Q(12);L()();K(13,"mat-form-field",22);M(14,"mat-icon",23);K(15,"mat-select",24);Of(16,Shc,2,2,"mat-option",25,Uhc);T(18,"async");L();F(19,Thc,2,0,"mat-error",26);L();K(20,
"mat-form-field",27);M(21,"mat-datepicker-toggle",28);K(22,"input",29);N("click",function(){u(b);var f=qg(24);return v(f.open())});L();M(23,"mat-datepicker",null,5);L();K(25,"div",30)(26,"button",14);N("click",function(){u(b);var f=P();return v(f.cancelClicked.emit())});Q(27,"Cancel");L();K(28,"button",31);Q(29,"Add");L()()()()}if(a&2){a=qg(4);var c=qg(10),d=qg(24),e=P();B();I("formGroup",e.gTaskForm);B(5);S("",a.value.length," / 1024");B();G((e.title==null?0:e.title.hasError("required"))?7:-1);B(5);
S("",c.value.length," / 8192");B(4);Pf(U(18,8,e.gtaskListIds$));B(3);G((e.taskListId==null?0:e.taskListId.hasError("required"))?19:-1);B(2);I("for",d);B();I("matDatepicker",d);B(6);I("disabled",e.gTaskForm.invalid)}},Whc=function(a){a&1&&Wf(0)},Xhc=function(a){a&1&&Wf(0)},Yhc=function(a){a&1&&(K(0,"mat-tab-group",7)(1,"mat-tab",32),E(2,Whc,1,0,"ng-container",33),L(),K(3,"mat-tab",34),E(4,Xhc,1,0,"ng-container",33),L()());if(a&2){P();a=qg(3);var b=qg(5);B(2);I("ngTemplateOutlet",a);B(2);I("ngTemplateOutlet",
b)}},Zhc=function(a){a&1&&Wf(0)},$hc=function(a){a&1&&E(0,Zhc,1,0,"ng-container",33);a&2&&(P(),a=qg(3),I("ngTemplateOutlet",a))},aic=function(a){a&1&&(K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),Q(3),L(),K(4,"div",3),M(5,"mat-icon",4),K(6,"span")(7,"a",5),Q(8),L(),Q(9," \u00b7 "),M(10,"b-formatted-date-time",6),Q(11," \u2010 "),M(12,"b-formatted-date-time",6),L()()());if(a&2){a=P();B(3);S(" ",a.iteration.workspace.name," ");B(4);var b,c,d;var e=a.getBaseUrl()+"/workspaces/"+((b=a.iteration)==null?void 0:
(c=b.workspace)==null?void 0:c.workspaceId)+"/iterations/"+((d=a.iteration)==null?void 0:d.iterationId);I("href",e,Pe);B();S(" ",a.iteration.name," ");B(2);I("paddingLeftPx",0)("timestamp",a.iteration.startTimestamp);B(2);I("paddingLeftPx",0)("timestamp",a.iteration.endTimestamp)}},bic=function(a){a&1&&M(0,"iteration-card",4,1);if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("iteration",b.iteration)}},cic=function(a){if(a&1){var b=t();K(0,"div",2);N("onedevHovercardShown",
function(){u(b);var c=P();return v(c.trackHoverEvent())})("click",function(c){u(b);var d=P();c.stopPropagation();d.analytics.trackEvent("missionControl","click","iteration-chip");var e,f,g;c=d.iteration||d.iteration.workspace||d.iteration.iterationId?d.getBaseUrl()+"/workspaces/"+((e=d.iteration)==null?void 0:(f=e.workspace)==null?void 0:f.workspaceId)+"/iterations/"+((g=d.iteration)==null?void 0:g.iterationId):d.getBaseUrl();d.domSafe.openInNewTab(c);return v()});Q(1," Current ");L();K(2,"onedev-hovercard",
null,0);E(4,bic,2,2,"iteration-card",3);L()}a&2&&(a=qg(3),I("onedevHovercardTrigger",a))},jic=function(a,b,c,d,e){return dic(a).map(function(f){var g=f.task,k=eic(f.signals,b,e);if(g&&k&&k.length!==0){var l,r,w,x,C,H,J=g.taskId,O=g.taskResourceType,R=g.title,V=fic(k);f=gic(f,k);if(g.issueResource){var ca=g.issueResource.priority;ca=ca==="P0"||ca==="P1"?ca:null}else ca=null;return{id:J,type:O,description:R,lastAlertTimestamp:V,signals:f,link:g.externalLink,icon:X2a(g),priority:ca,accessLevel:(w=(l=
g.issueResource)==null?void 0:l.accessLevel)!=null?w:null,hotlistIds:g.issueResource?g.issueResource.hotlistIds:[],issueId:a8a(g.taskId).length===1?a8a(g.taskId)[0]:null,futureAvailability:hic(k),reviewEstimate:iic(k),lastMentionLink:((r=g.driveResource)==null?0:r.lastMentionLink)&&g.driveResource.lastMentionLink!==""?g.driveResource.lastMentionLink:void 0,isStaleTask:(x=g.isStaleTask)!=null?x:!1,snoozeUntilTimestamp:(C=g.snoozeUntilTimestamp)!=null?C:void 0,manualSignalTimestamp:(H=g.manualSignalTimestamp)!=
null?H:void 0,iteration:c.get(g.taskId),okrIds:d.get(g.taskId)}}}).filter(Qm)},eic=function(a,b,c){return kic(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})},dic=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})},gic=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})},kic=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"})},fic=function(a){return a.sort(function(b,c){var d,e;return((d=ao(c.timestamp))!=null?d:0)-((e=ao(b.timestamp))!=null?e:0)})[0].timestamp},lic=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}},mic=function(a){var b=a[0],c=lic(b);a=m(a);for(var d=a.next();!d.done;d=a.next())d=d.value,lic(d)<c&&(b=d,c=lic(b));return b},hic=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(Qm)},iic=function(a){return a.map(function(b){var c;return(c=b.changelistAlert)==null?void 0:c.reviewEstimate}).find(Qm)},nic=function(a){var b=g5a(a.getFrequency()),c=a.getTimeZone(),d=a.getTimeOfDay(),
e=a.getLastUpdatedTimestamp();if(!b)throw Error("ie");if(!c)throw Error("je");if(!d)throw Error("ke");if(!e)throw Error("Bg");return{id:a.getId_asString(),frequency:b,ordinal:a.getOrdinal(),timeZone:i5a(c),timeOfDay:k5a(d),displayName:a.getDisplayName(),query:a.getQuery(),sendEmail:Gi(a,8),showInBuganizerHome:Gi(a,9),baselineIssueIds:[].concat(q(Sm(a,10))),isOverflowing:Gi(a,11),lastUpdated:bn(e)}},oic=function(a){var b=(new nu).setId(a.id).setFrequency(h5a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(j5a(a.timeZone)).setTimeOfDay(l5a(a.timeOfDay)).setDisplayName(a.displayName).setQuery(a.query);
b=$o(b,8,a.sendEmail);b=$o(b,9,a.showInBuganizerHome);b=ur(b,10,a.baselineIssueIds);b=$o(b,11,a.isOverflowing);a=cn(a.lastUpdated);return Ni(b,Ti,12,a)},tic=function(a,b){a&1&&(K(0,"div",0)(1,"h1"),Q(2),L(),K(3,"div",1)(4,"pre"),Q(5),L()(),K(6,"div",2)(7,"a",3),Q(8," Edit alert "),L(),K(9,"a",4),Q(10," View issues "),L()()());a&2&&(B(2),yg(b.displayName),B(3),yg(b.query),B(2),I("routerLinkObj",Ig(6,pic,Ig(4,qic,b.id))),B(2),I("routerLinkObj",Ig(10,ric,Ig(8,sic,b.query))))},uic=function(a){if(a&1){var b=
t();K(0,"a",5);N("click",function(){u(b);P(2).analytics.trackEvent("mentionsCard","navigate","comment");return v()});Q(1," a comment ");L()}a&2&&(a=P(2),I("href",a.lastMentionLink,Pe))},vic=function(a){a&1&&Q(0," a comment ")},wic=function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"span"),M(3,"b-user-display",2),Q(4," mentioned you in "),F(5,uic,2,1,"a",3)(6,vic,1,0),L(),K(7,"span"),M(8,"b-formatted-date-time",4),L()(),K(9,"div"),Q(10),L()());a&2&&(a=P(),B(3),I("model",{emailAddress:b.authorDisplayName}),
B(2),G(a.lastMentionLink?5:6),B(3),I("timestamp",b.lastModifiedTimestamp),B(2),yg(b.content))},xic=function(a,b){if(a&1){var c=t();K(0,"a",7);T(1,"async");N("click",function(){u(c);P(3).analytics.trackEvent("mentionsCard","navigate","commentNumber");return v()});Q(2);L()}if(a&2){a=P(3);var d;I("routerLinkObj",a.getCommentNumberLink((d=U(1,2,a.issueId$))!=null?d:"",b));B(2);S(" comment #",b," ")}},yic=function(a){if(a&1){var b=t();K(0,"div",9)(1,"span",10);Q(2," Was this 'Needs Response' alert accurate? ");
L();K(3,"button",11);N("click",function(){u(b);var c=P(4);return v(c.trackThumbsUp())});M(4,"mat-icon",12);L();K(5,"button",13);N("click",function(){u(b);var c=P(4);return v(c.trackThumbsDown())});M(6,"mat-icon",14);L()()}a&2&&(a=P(4),B(3),I("disabled",a.hasReacted),B(),wg("has-reacted-icon",a.thumbsUpClicked),B(),I("disabled",a.hasReacted),B(),wg("has-reacted-icon",a.thumbsDownClicked))},zic=function(a,b){a&1&&(K(0,"div"),M(1,"b-note-container",8),T(2,"async"),F(3,yic,7,6,"div",9),L());if(a&2){a=
P().$implicit;var c=P(2);B();var d;I("issueId",(d=U(2,4,c.issueId$))!=null?d:"")("note",b)("formattingMode",a.formattingMode);B(2);G(c.needsResponse&&!a.commentRedacted?3:-1)}},Aic=function(a,b){a&1&&(K(0,"div")(1,"div",2)(2,"span",3),M(3,"b-user-display",4),K(4,"span"),Q(5," mentioned you in "),F(6,xic,3,4,"a",5),L()(),K(7,"span"),M(8,"b-formatted-date-time",6),L()(),F(9,zic,4,6,"div"),L());if(a&2){var c;a=b.$implicit;var d=b.$index;b=b.$count;P(2);wg("margin-s-bottom",d!==b-1)("padded-s-bottom",
d!==b-1)("border-bottom",d!==b-1);B(3);I("model",a.lastCommentEditorUser);B(3);G((c=a.commentNumber)?6:-1,c);B(2);I("timestamp",a.commentLastModifiedAtDate);B();var e;c={commentNumber:(e=a.commentNumber)!=null?e:void 0,unlinkifiedComment:a.commentRedacted?"Comment access restricted. Please reach out to the issue owner to view.":a.unlinkifiedComment,formattedComment:a.commentRedacted?void 0:a.formattedComment};G(c?9:-1,c)}},Cic=function(a,b){a&1&&(K(0,"div",0),Of(1,Aic,10,10,"div",1,Bic),K(3,"div"),
Wf(4),L()());a&2&&(B(),Pf(b))},Dic=function(a){a&1&&Wf(0)},Fic=function(a){a&1&&E(0,Dic,1,0,"ng-container",5);if(a&2){a=P().$implicit;P(2);var b=qg(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Ig(2,Eic,a))}},Gic=function(a,b){a&1&&F(0,Fic,1,4,"ng-container");a&2&&(a=b.$implicit,b=P(2),G(b.SIGNAL_TO_DISPLAY_TEXT.has(a.type)?0:-1))},Iic=function(a){a&1&&(K(0,"div",4),Of(1,Gic,1,1,null,null,Hic),L());a&2&&(a=P(),B(),Pf(a.signals))},Jic=function(a){a&1&&Wf(0)},Lic=function(a,b){a&1&&(K(0,"div",
6),E(1,Jic,1,0,"ng-container",5),K(2,"div",7),Q(3),L()());if(a&2){a=P(2);var c=qg(3);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ig(4,Eic,b));B();I("matTooltip",Kic(a.signals,b));B();S(" and ",a.signals.length-1," more ")}},Mic=function(a){a&1&&F(0,Lic,4,6,"div",6);if(a&2){var b;a=P();G((b=a.getHighestPrioritySignal(a.signals))?0:-1,b)}},Nic=function(a){a&1&&Q(0);if(a&2){var b=P().signal;a=P();b=b.type;a=a.tailwindRunStatus&&b==="ISSUE_SNOOZE_EXPIRED"?"AI Fix":ou.get(b);S(" ",a," ")}},Oic=
function(a){a&1&&Q(0);if(a&2){a=P().signal;var b=P();S(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a.type)," ")}},Qic=function(a){a&1&&M(0,"mentioned-issue-comments-card",9,3);if(a&2){a=qg(1);var b=P(2).signal,c=P(),d;I("onedevIsHovercardReady",a.contentReady$)("issueId",c.issueId)("commentNumbers",(d=b.commentNumbers)!=null?d:Hg(4,Pic))("needsResponse",b.type==="MENTIONED_NEEDS_RESPONSE")}},Ric=function(a){a&1&&E(0,Qic,2,5,"mentioned-issue-comments-card",12)},Sic=function(a){a&1&&M(0,"mentioned-drive-comments-card",
10,3);if(a&2){a=qg(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("fileId",b.driveFileId)("commentId",b.driveCommentId)("lastMentionLink",b.driveCommentLink)}},Tic=function(a){a&1&&E(0,Sic,2,4,"mentioned-drive-comments-card",13)},Uic=function(a){a&1&&M(0,"configurable-alert-card",11,3);if(a&2){a=qg(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("subscriptionId",b.configurableAlertSubscriptionId)}},Vic=function(a){a&1&&E(0,Uic,2,2,"configurable-alert-card",14)},
$ic=function(a,b){if(a&1){var c=t();$f(0);K(1,"div",8,1);N("mouseenter",function(){u(c);var f=qg(2),g=bg(0);return v(g?f.disabled=!0:null)})("mouseleave",function(){u(c);var f=qg(2),g=bg(0);return v(g?f.disabled=!1:null)});F(3,Nic,1,1)(4,Oic,1,1);L();K(5,"onedev-hovercard",null,2);F(7,Ric,1,0,"mentioned-issue-comments-card",9)(8,Tic,1,0,"mentioned-drive-comments-card",10)(9,Vic,1,0,"configurable-alert-card",11);L()}if(a&2){a=b.signal;b=qg(6);var d=P(),e=ag(Wic(d,a)||Xic(a)||Yic(a));B();xg(Eg("signal-chip type-button urgent-",
d.getSignalUrgency(a)));wg("keep-focus-ring",e);I("onedevHovercardActive",e)("onedevHovercardTrigger",b)("matTooltip",Wic(d,a)||Xic(a)||Yic(a)?'Press "Alt/Option + Right Arrow Key" to show comment':d.enableTailwindMissionControl&&d.tailwindRunStatus&&a.type==="ISSUE_SNOOZE_EXPIRED"?"This issue has a AI Fix":Zic.get(a.type));Kf("tabindex",e?"0":"-1");B(2);G(d.enableTailwindMissionControl?3:4);B(4);G(Wic(d,a)?7:Xic(a)?8:Yic(a)?9:-1)}},bjc=function(a,b){a&1&&(K(0,"div",3)(1,"div",5),Q(2),L(),K(3,"div")(4,
"a",6),Q(5),L()()());a&2&&(P(3),B(2),S(" O ",ajc(b==null?null:b.priorityRating)),B(2),I("href",b==null?null:b.url,Pe),B(),yg(b==null?null:b.title))},cjc=function(a,b){a&1&&(K(0,"div",4)(1,"div",7),Q(2),L(),K(3,"div")(4,"a",6),Q(5),L()()());a&2&&(P(3),B(2),S(" KR ",ajc(b.priorityRating)),B(2),I("href",b.url,Pe),B(),S(" ",b==null?null:b.title))},fjc=function(a,b){a&1&&(K(0,"div",2),F(1,bjc,6,3,"div",3),F(2,cjc,6,3,"div",4),L());if(a&2){var c,d;a=b.$implicit;b=P();P();B();G((c=djc(b,a))?1:-1,c);B();
G((d=ejc(b,a))?2:-1,d)}},gjc=function(a){a&1&&(K(0,"div",0)(1,"div",1),Of(2,fjc,3,2,"div",2,Nf),L()());a&2&&(a=P(),B(2),Pf(a.okrIds))},hjc=function(a){a&1&&M(0,"okr-card",4,1);if(a&2){a=qg(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("okrIds",b.okrIds)}},ijc=function(a){if(a&1){var b=t();K(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return v(c.trackHoverEvent())});Q(1,"OKR");L();K(2,"onedev-hovercard",null,0);E(4,hjc,2,2,"okr-card",3);L()}a&2&&(a=qg(3),I("onedevHovercardTrigger",
a))},jjc=function(a){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),Q(4," Your response time is longer than usual for similar items. Respond to unblock others ("),K(5,"a",3),Q(6,"see more"),L(),Q(7,"). "),L()()()())},kjc=function(a){a&1&&M(0,"stale-task-card",5,1);if(a&2){a=qg(1);var b=P();I("onedevIsHovercardReady",a.hovercardReady$)("taskId",b.taskId)}},ljc=function(a,b){if(a&1){var c=t();K(0,"button",5);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});
K(1,"mat-checkbox",8);Q(2);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",b.currentSelectedSignals.has(a)),B(),S(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a)," "))},mjc=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),xg(Eg("icon-s checkmark ",a.displayName)))},pjc=function(a,b){if(a&1){var c=t();K(0,"span",2)(1,"button",3);N("click",function(){u(c);var e=P().$implicit,f=P();return v(f.sourceFilterChange(e))});F(2,mjc,1,3,"mat-icon",4);K(3,"span",5);Q(4);L()();K(5,"signal-list-dropdown",6);N("changeFilteredSignals",
function(e){u(c);var f=P().$implicit,g=P();return v(g.signalFilterChange(e,f))})("chipSelectionStateChanged",function(e){u(c);var f=P().$implicit;P().chipsSelected[f]=e;return v()});L()()}if(a&2){a=P().$implicit;var d=P();wg("expanded",d.chipsSelected[a]);B();Kf("aria-pressed",d.chipsSelected[a]);B();G(d.chipsSelected[a]?2:-1);B();I("matTooltip",b.tooltipText);B();S(" ",d.activeSession.isInternalSession()?b.displayName:b.externalDisplayName," ");B();I("signalFilterKeys",njc(d,a))("selectedSignals",
ojc(d,a))("source",a)}},qjc=function(a,b){a&1&&F(0,pjc,6,9,"span",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},rjc=function(a,b){if(a&1){var c=t();K(0,"button",7);N("click",function(){var d=u(c).$implicit,e=P();d=d.numberOfDays;e.selectedTimeBoundary=d;e.change.emit(d);return v()});Q(1);L()}a&2&&(a=b.$implicit,b=P(),I("disabled",a.numberOfDays===b.selectedTimeBoundary),B(),S(" ",a.label," "))},sjc=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=
P();c.unsnooze.emit();c.onOpen(!1);return v()});M(1,"mat-icon",12);Q(2,"Unsnooze now ");L()}},tjc=function(a){if(a&1){var b=t();K(0,"div",13);N("clickOutside",function(){u(b);P().timePickerOpen=!1;return v()});K(1,"b-date-time-picker-content",14);N("cancelClicked",function(){u(b);P().timePickerOpen=!1;return v()})("dateTimeChange",function(c){u(b);P().currentPickerDateTime=c;return v()})("saveClicked",function(){u(b);var c=P(),d=c.currentPickerDateTime;d&&c.snooze.emit(d);c.timePickerOpen=!1;return v()});
L()()}a&2&&(a=P(),B(),I("required",!0)("renderPanel",!0)("dateTime",a.currentPickerDateTime)("includeTimePicker",!0)("todayButtonEnabled",!1))},ujc=function(a){if(a&1){var b=t();Uf(0);K(1,"div",1)(2,"span",2)(3,"a",3);N("click",function(){u(b);P().onChipClicked.emit();return v()});Q(4,"DMA");L()()();Vf()}a&2&&(a=P(),B(),I("matTooltip",a.DMA_TOOLTIP_TEXT))},vjc=function(a){a&1&&(K(0,"label",11),Q(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),yg(a.label))},wjc=function(a){a&1&&(K(0,
"mat-tab"),E(1,vjc,2,2,"ng-template",10),L())},xjc=function(a,b){if(a&1){var c=t();K(0,"signal-filter-chips",13);N("changeSourceAndFilteredSignals",function(e){u(c);var f=P(2).missionControlPrefs,g=e.selectedSignals;f.prefs.needsAttentionSources=e.selectedSources.map(NEb);f.prefs.needsAttentionBuganizerFilteredSignals=PEb(g.buganizerSignals,f.filteredSignalsOptions);f.prefs.needsAttentionDriveFilteredSignals=TEb(g.driveSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGerritFilteredSignals=
VEb(g.gerritSignals,f.filteredSignalsOptions);f.prefs.needsAttentionChangelistFilteredSignals=REb(g.changelistSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGoogleTasksFilteredSignals=ZEb(g.googleTasksSignals,f.filteredSignalsOptions);f.prefs.needsAttentionIrmFilteredSignals=$Eb(g.irmSignals,f.filteredSignalsOptions);Gt(f,{needsAttentionSources:f.prefs.needsAttentionSources,isNeedsAttentionSourcesConfigured:!0,needsAttentionBuganizerFilteredSignals:f.prefs.needsAttentionBuganizerFilteredSignals,
needsAttentionDriveFilteredSignals:f.prefs.needsAttentionDriveFilteredSignals,needsAttentionGerritFilteredSignals:f.prefs.needsAttentionGerritFilteredSignals,needsAttentionGoogleTasksFilteredSignals:f.prefs.needsAttentionGoogleTasksFilteredSignals,needsAttentionChangelistFilteredSignals:f.prefs.needsAttentionChangelistFilteredSignals,needsAttentionIrmFilteredSignals:f.prefs.needsAttentionIrmFilteredSignals});return v()})("changeSourceFilter",function(e){u(c);var f=P(2).missionControlPrefs;e=e.map(NEb);
f.prefs.needsAttentionSources=e;Gt(f,{needsAttentionSources:e,isNeedsAttentionSourcesConfigured:!0});return v()});L()}if(a&2){a=P();var d=P();I("sourceFilterKeys",d.SOURCE_FILTERS)("selectedSources",a)("selectedSignals",b)}},yjc=function(a){a&1&&(F(0,xjc,1,3,"signal-filter-chips",12),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.filteredSignals$))?0:-1,b)}},zjc=function(a,b){if(a&1){var c=t();K(0,"time-boundary-filter",14);N("change",function(d){u(c);var e=P().missionControlPrefs;e.prefs.needsAttentionDaysOld=
d;Gt(e,{needsAttentionDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},Ajc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",15,0);N("taskAdded",function(){u(b);var c=P();return v(c.refreshTaskData())});Q(3," Add a task ");L()()}},Bjc=function(a){a&1&&(K(0,"p",16),Q(1," No alerts "),L())},Cjc=function(a){if(a&1){var b=t();K(0,"th",32)(1,"mat-checkbox",33);N("change",function(d){u(b);var e=P(2),f=P(2);return v(d?f.toggleAllRows(e):null)});L()()}if(a&2){a=P(2);var c=P(2);B();I("checked",
c.selection.hasValue()&&c.selection.selected.length===a.length)("indeterminate",c.selection.hasValue()&&c.selection.selected.length!==a.length)}},Djc=function(a,b){if(a&1){var c=t();K(0,"td",34)(1,"mat-checkbox",35);N("click",function(d){u(c);return v(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(4);return v(d?f.selection.toggle(e.id):null)});L()()}a&2&&(a=b.$implicit,b=P(4),B(),I("checked",b.selection.isSelected(a.id)))},Ejc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=
P(4),B(),yg(a.selection.hasValue()?"":"Source"))},Fjc=function(a,b){a&1&&(K(0,"td",34),M(1,"mat-icon",36),L());a&2&&(a=b.$implicit,B(),xg(Eg("product-icon ",a.icon)),I("matTooltip",a.type)("svgIcon",a.icon),Kf("aria-label",a.type))},Hjc=function(a){if(a&1){var b=t();K(0,"button",39);N("click",function(){u(b);var c=P(5);Gjc(c,c.selection.selected);c.selection.clear();return v()});Q(1);T(2,"async");L()}a&2&&(a=P(5),B(),yg(U(2,1,a.dismissButtonLabel$)))},Ijc=function(a){a&1&&(K(0,"span"),Q(1,"Description"),
L())},Kjc=function(a){if(a&1){var b=t();K(0,"button",40,1);Q(2);T(3,"async");L();K(4,"snooze-menu",41,2);N("snooze",function(e){u(b);var f=P(5);Jjc(f,f.selection.selected,e);f.selection.clear();return v()})("unsnooze",function(){u(b);var e=P(5);Jjc(e,e.selection.selected);e.selection.clear();return v()});L()}if(a&2){a=qg(1);var c=qg(5),d=P(5);I("matMenuTriggerFor",c.menu);B(2);yg(U(3,4,d.snoozeButtonLabel$));B(2);I("isSnoozed",d.signalStatusFilter$.getValue()===d.SignalStatus.SNOOZED)("datePickerAnchor",
a)}},Njc=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(Ljc(c))});Q(1);L()}a&2&&(a=P(5),B(),yg(Mjc(a)?"Trigger manual signal":"Remove manual signal"))},Ojc=function(a){a&1&&(K(0,"th",32),F(1,Hjc,3,3,"button",37)(2,Ijc,2,0,"span"),F(3,Kjc,6,6),F(4,Njc,2,1,"button",38),L());a&2&&(a=P(4),B(),G(a.selection.hasValue()?1:2),B(2),G(a.selection.hasValue()?3:-1),B(),G(a.selection.hasValue()?4:-1))},Pjc=function(a){a&1&&M(0,"b-issue-visibility-chip",45);if(a&2){a=
P(2).$implicit;var b=P(4);I("issueId",b.extractLastDigits(a.id))}},Qjc=function(a){a&1&&M(0,"okr-chip",46);a&2&&(a=P(2).$implicit,I("okrIds",a.okrIds))},Rjc=function(a){a&1&&M(0,"iteration-chip",47);a&2&&(a=P(2).$implicit,I("iteration",a.iteration))},Sjc=function(a){a&1&&(K(0,"div",48),T(1,"futureAvailability"),M(2,"mat-icon",53),L());a&2&&(a=P(2).$implicit,I("matTooltip",U(1,1,a.futureAvailability)))},Tjc=function(a){a&1&&(K(0,"div",49),Q(1),T(2,"number"),L());a&2&&(a=P(2).$implicit,B(),S(" <",Lg(2,
1,a.reviewEstimate.seconds/60,"1.0-0"),"m "))},Ujc=function(a){a&1&&M(0,"b-issue-priority-display",50);a&2&&(a=P(2).$implicit,I("issuePriority",a.priority))},Wjc=function(a){if(a&1){var b=t();K(0,"div",43);F(1,Pjc,1,1,"b-issue-visibility-chip",45);F(2,Qjc,1,1,"okr-chip",46);F(3,Rjc,1,1,"iteration-chip",47);F(4,Sjc,3,3,"div",48);F(5,Tjc,3,4,"div",49);F(6,Ujc,1,1,"b-issue-priority-display",50);K(7,"a",51);N("auxclick",function(){u(b);var d=P().$implicit,e=P(2),f=P(2);return v(f.sendClickAnalytics(d,
e.slice(0,f.numDisplayedRows)))});Q(8);L();K(9,"onedev-dma-chip",52);N("onChipClicked",function(){u(b);var d=P(5);return v(d.sendDmaAnalytics())});L()()}if(a&2){a=P().$implicit;var c=P(4);B();G(a.type===c.TaskResourceType.ISSUE?1:-1);B();G(a.okrIds&&a.okrIds.length>0?2:-1);B();G(a.iteration?3:-1);B();G(c.hasFutureAvailability(a)?4:-1);B();G(a.reviewEstimate&&a.reviewEstimate.seconds>=60?5:-1);B();G(a.priority?6:-1);B();I("href",Vjc(a),Pe);Kf("target",a.type!==c.TaskResourceType.ISSUE?"_blank":null);
B();S(" ",a.description," ");B();I("hotlistIds",a.hotlistIds)}},Xjc=function(a){a&1&&(K(0,"span",44),Q(1,"No access to linked file"),L())},Yjc=function(a,b){a&1&&(K(0,"td",34),F(1,Wjc,10,10,"div",43)(2,Xjc,2,0,"span",44),L());a&2&&(a=b.$implicit,B(),G(a.description&&a.description!==""?1:2))},Zjc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":"Most recent alert"))},$jc=function(a){if(a&1){var b=t();K(0,"div")(1,"stale-task-indicator",54);N("click",function(){u(b);
P();P(4).analytics.trackEvent("missionControl","click","stalenessChip-{{row.type}}");return v()});L()()}a&2&&(a=P().$implicit,B(),I("taskId",a.id)("lastAlertTimestamp",a.lastAlertTimestamp))},akc=function(a){a&1&&M(0,"b-formatted-date-time",55);a&2&&(a=P(2).$implicit,I("timestamp",a.lastAlertTimestamp)("paddingLeftPx",6))},bkc=function(a){a&1&&F(0,akc,1,2,"b-formatted-date-time",55);a&2&&(a=P().$implicit,G(a.lastAlertTimestamp?0:-1))},ckc=function(a,b){a&1&&(K(0,"td",34),F(1,$jc,2,2,"div")(2,bkc,
1,1),L());a&2&&(a=b.$implicit,B(),G(a.isStaleTask?1:2))},dkc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=P(4),B(),S(" ",a.selection.hasValue()?"":"Alert"," "))},ekc=function(a,b){a&1&&(K(0,"td",34),M(1,"needs-attention-signals-cell",56),L());a&2&&(a=b.$implicit,B(),I("issueId",a.issueId)("signals",a.signals)("tailwindRunStatus",a.tailwindRunStatus))},fkc=function(a){a&1&&(K(0,"th",32),Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":"Action"))},gkc=function(a){a&1&&(K(0,"a",57),Q(1),L());
if(a&2){a=P().$implicit;var b=P(4);I("href",Vjc(a),Pe);Kf("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",a.action+(a.type!==b.TaskResourceType.ISSUE?", opens in new tab":""));B();S(" ",a.action," ")}},hkc=function(a){a&1&&(K(0,"a",57),Q(1),L());if(a&2){a=P().$implicit;var b=P(4),c=b.SIGNAL_TO_ACTION_TEXT.get(b.getHighestPrioritySignal(a.signals).type);I("href",Vjc(a),Pe);Kf("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",c+(a.type!==b.TaskResourceType.ISSUE?
", opens in new tab":""));B();S(" ",c," ")}},ikc=function(a,b){a&1&&(K(0,"td",34),F(1,gkc,2,4,"a",57)(2,hkc,2,4,"a",57),L());a&2&&(a=b.$implicit,b=P(4),B(),G(b.enableTailwindMissionControl&&a.action?1:2))},jkc=function(a){a&1&&(K(0,"th",58),Q(1),L());a&2&&(a=P(4),B(),yg(a.selection.hasValue()?"":a.signalStatusFilter$.getValue()!==a.SignalStatus.SNOOZED?"Options":"Snooze Until"))},lkc=function(a){a&1&&(K(0,"span",59),Q(1),L());a&2&&(a=P().$implicit,P(4),B(),S("",kkc(a)," "))},mkc=function(a,b){if(a&
1){var c=t();K(0,"td",34);F(1,lkc,2,1,"span",59);K(2,"div",60)(3,"button",61);N("click",function(k){var l=u(c).$implicit,r=P(4);k.preventDefault();return v(r.copyIdOrLink(l))});M(4,"mat-icon",62);L();$f(5);T(6,"async");K(7,"button",63);N("click",function(k){var l=u(c).$implicit,r=P(4);k.preventDefault();return v(r.dismissAlert(l))});M(8,"mat-icon",64);L();$f(9);T(10,"async");K(11,"button",65,3);N("click",function(k){u(c);return v(k.preventDefault())});M(13,"mat-icon",66);L();K(14,"snooze-menu",41,
2);N("snooze",function(k){var l=u(c).$implicit,r=P(4);Jjc(r,[l.id],k);return v()})("unsnooze",function(){var k=u(c).$implicit,l=P(4);Jjc(l,[k.id]);return v()});L()()()}if(a&2){var d=b.$implicit;a=qg(12);b=qg(15);var e=P(4);B();G(e.signalStatusFilter$.getValue()===e.SignalStatus.SNOOZED?1:-1);B(2);I("matTooltip",d.type===e.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");Kf("aria-label",d.type===e.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");var f;
d=(f=U(6,10,e.dismissButtonTooltip$))!=null?f:"";B(4);I("ariaLabel",d)("matTooltip",d);var g;f=(g=U(10,12,e.snoozeButtonTooltip$))!=null?g:"";B(4);I("ariaLabel",f)("matTooltip",f)("matMenuTriggerFor",b.menu);B(3);I("isSnoozed",e.signalStatusFilter$.getValue()===e.SignalStatus.SNOOZED)("datePickerAnchor",a)}},nkc=function(a){a&1&&M(0,"tr",67)},okc=function(a){if(a&1){var b=t();K(0,"tr",68);N("click",function(c){var d=u(b).$implicit,e=P(2),f=P(2);return v(f.navigateToResource(c,d,e.slice(0,f.numDisplayedRows)))});
L()}},pkc=function(a){a&1&&(K(0,"tr",69)(1,"td",70),Q(2," No alerts found "),L()())},qkc=function(a){a&1&&M(0,"mat-icon",72)},rkc=function(a){a&1&&M(0,"mat-icon",73)},skc=function(a){if(a&1){var b=t();K(0,"button",71);N("click",function(){u(b);var d=P(2),e=P(2);return v(e.setNumDisplayedRows(d))});Q(1);F(2,qkc,1,0,"mat-icon",72);F(3,rkc,1,0,"mat-icon",73);L()}if(a&2){a=P(2);var c=P(2);B();S(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");B();G(a.length>c.numDisplayedRows?2:-1);B();G(a.length===
c.numDisplayedRows?3:-1)}},tkc=function(a){a&1&&(K(0,"table",17),Uf(1,18),E(2,Cjc,2,2,"th",19)(3,Djc,2,1,"td",20),Vf(),Uf(4,21),E(5,Ejc,2,1,"th",19)(6,Fjc,2,6,"td",20),Vf(),Uf(7,22),E(8,Ojc,5,3,"th",19)(9,Yjc,3,1,"td",20),Vf(),Uf(10,23),E(11,Zjc,2,1,"th",19)(12,ckc,3,1,"td",20),Vf(),Uf(13,24),E(14,dkc,2,1,"th",19)(15,ekc,2,3,"td",20),Vf(),Uf(16,25),E(17,fkc,2,1,"th",19)(18,ikc,3,1,"td",20),Vf(),Uf(19,26),E(20,jkc,2,1,"th",27)(21,mkc,16,14,"td",20),Vf(),E(22,nkc,1,0,"tr",28)(23,okc,1,0,"tr",29)(24,
pkc,3,0,"tr",30),L(),F(25,skc,4,3,"button",31));if(a&2){a=P();var b=P(2);I("dataSource",a.slice(0,b.numDisplayedRows));B(22);I("matHeaderRowDef",b.displayedColumns);B();I("matRowDefColumns",b.displayedColumns);B(2);G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?25:-1)}},ukc=function(a,b){a&1&&(F(0,Bjc,2,0,"p",16),F(1,tkc,26,4));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},vkc=function(a){a&1&&(F(0,ukc,2,2),T(1,"async"));if(a&2){var b;a=P();G((b=U(1,1,a.allNeedsAttention$))?0:-1,b)}},wkc=function(a){a&
1&&(K(0,"div",9),M(1,"b-spinner",74),L());a&2&&(B(),I("ariaLabel","loading needs attention alerts"))},xkc=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=vq(a).filter(function(d){return!c.includes(d)}).sort();return[c.join(","),a.join(",")]},ykc=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)},zkc=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)},Akc=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(Qm)},Bkc=function(a,b){return a.issueId&&a.type==="ISSUE"&&b.has(a.issueId)&&a.signals.some(function(c){return c.type==="ISSUE_SNOOZE_EXPIRED"})},Ckc=function(a,b){a&1&&(K(0,"div",6)(1,"span",8),Q(2),L()());a&2&&(B(2),yg(b))},Dkc=function(a){a&1&&
(K(0,"div",7),M(1,"b-needs-attention-table",9),L());a&2&&(a=P(),B(),I("refreshTable",a.refreshData))},Ekc=function(a,b){a&1&&(K(0,"mat-chip-option",1)(1,"span",2),Q(2),L()());if(a&2){a=P().$implicit;var c=P();I("value",a)("selected",c.selectedSources.includes(a));B();I("matTooltip",b.tooltipText);B();S(" ",b.displayName," ")}},Fkc=function(a,b){a&1&&F(0,Ekc,3,4,"mat-chip-option",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},Gkc=function(a,b){return{label:"Viewed",description:"Issues you recently viewed",
issues:a.watchMany({custom:"viewed",pageSize:50}).pipe(A(function(c){c=c.results;return b?c.filter(function(d){return d.trackerId===b}):c})),loading:!1}},Hkc=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"},Ikc=function(a){a&1&&(K(0,"label",11),Q(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),yg(a.label))},Jkc=function(a,b){if(a&1){var c=t();K(0,"source-filter-chips",
14);N("change",function(d){u(c);var e=P(5).prefsService;d=d.map(NEb);e.prefs.myTasksSources=d;Gt(e,{myTasksSources:d,isMyTasksSourcesConfigured:!0});return v()});L()}a&2&&(a=P(5),I("sourceFilterKeys",a.MY_TASK_FILTERS)("selectedSources",b))},Kkc=function(a){a&1&&(K(0,"span",2),Q(1,"Sources"),L(),F(2,Jkc,1,2,"source-filter-chips",13),T(3,"async"));if(a&2){var b;a=P(4);B(2);G((b=U(3,1,a.sources$))?2:-1,b)}},Lkc=function(a,b){if(a&1){var c=t();K(0,"time-boundary-filter",15);N("change",function(d){u(c);
var e=P(4).prefsService;e.prefs.myTasksDaysOld=d;Gt(e,{myTasksDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},Mkc=function(a){a&1&&(K(0,"div",9),F(1,Kkc,4,3),F(2,Lkc,1,1,"time-boundary-filter",12),T(3,"async"),L());if(a&2){var b;a=P(3);B();G(a.isInternalSession?1:-1);B();G((b=U(3,2,a.timeBoundary$))?2:-1,b)}},Nkc=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))},Okc=function(a,b){a&1&&(K(0,"p",
18),Q(1),L());a&2&&(B(),S(" ",b.length===0?"Enable source filters to see tasks":"No tasks"," "))},Pkc=function(a){a&1&&(F(0,Okc,2,1,"p",18),T(1,"async"));if(a&2){var b;a=P(5);G((b=U(1,1,a.sources$))?0:-1,b)}},Qkc=function(a){a&1&&(K(0,"th",36),Q(1,"Source"),L())},Rkc=function(a,b){a&1&&(K(0,"td",37),M(1,"mat-icon",38),L());a&2&&(a=b.$implicit,b=P(6),B(),xg(Eg("product-icon ",b.taskResourceTypeToIcon(a))),I("matTooltip",a.taskResourceType)("svgIcon",b.taskResourceTypeToIcon(a)))},Skc=function(a){a&
1&&(K(0,"th",36),Q(1,"Description"),L())},Tkc=function(a){a&1&&M(0,"b-issue-visibility-chip",40);a&2&&(a=P(2).$implicit,I("issueId",a.issueId)("compactMode",!0))},Ukc=function(a){a&1&&M(0,"b-issue-priority-display",41);a&2&&(a=P(2).$implicit,I("issuePriority",a.issueResource.priority))},Vkc=function(a){if(a&1){var b=t();K(0,"onedev-dma-chip",44);N("onChipClicked",function(){u(b);var c=P(8);return v(c.sendDmaAnalytics())});L()}a&2&&(a=P(2).$implicit,I("hotlistIds",a.issueResource.hotlistIds))},Xkc=
function(a){if(a&1){var b=t();F(0,Tkc,1,2,"b-issue-visibility-chip",40);F(1,Ukc,1,1,"b-issue-priority-display",41);K(2,"a",42);N("auxclick",function(){u(b);var d=P().$implicit,e=P(6);return v(e.sendClickAnalytics(d))});Q(3);L();F(4,Vkc,1,1,"onedev-dma-chip",43)}if(a&2){a=P().$implicit;var c=P(6);G(a.issueId?0:-1);B();G(a.issueResource&&a.issueResource.priority&&Wkc(a.issueResource.priority)?1:-1);B();I("href",a.taskResourceType===c.TaskResourceType.ISSUE?"/issues/"+c.extractLastDigits(a.taskId):a.externalLink,
Pe);Kf("target",a.taskResourceType!==c.TaskResourceType.ISSUE?"_blank":null);B();yg(a.title);B();G(a.issueResource&&a.issueResource.hotlistIds?4:-1)}},Ykc=function(a){a&1&&(K(0,"span",39),Q(1,"No access to linked file"),L())},Zkc=function(a,b){a&1&&(K(0,"td",37),F(1,Xkc,5,6)(2,Ykc,2,0,"span",39),L());a&2&&(a=b.$implicit,B(),G(a.title&&a.title!==""?1:2))},$kc=function(a){a&1&&(K(0,"th",36),Q(1,"Last modified"),L())},alc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",
a.lastModifiedTimestamp)("paddingLeftPx",0))},blc=function(a,b){a&1&&(K(0,"td",37),F(1,alc,1,2,"b-formatted-date-time",45),L());a&2&&(a=b.$implicit,B(),G(a.lastModifiedTimestamp?1:-1))},clc=function(a){a&1&&(K(0,"th",36),Q(1,"My role"),L())},dlc=function(a,b){a&1&&(K(0,"td",37),Q(1),L());a&2&&(a=b.$implicit,B(),yg(a.resourceRelationships[0].roleName))},elc=function(a){a&1&&(K(0,"th",36),Q(1,"Creation date"),L())},flc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",
a.createdTimestamp)("paddingLeftPx",0))},glc=function(a){a&1&&Q(0," -- ")},hlc=function(a,b){a&1&&(K(0,"td",37),F(1,flc,1,2,"b-formatted-date-time",45)(2,glc,1,0),L());a&2&&(a=b.$implicit,B(),G(a.createdTimestamp?1:2))},ilc=function(a){a&1&&(K(0,"th",46),Q(1," Options "),L())},klc=function(a,b){if(a&1){var c=t();K(0,"td",47)(1,"div",48)(2,"button",49);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return v(jlc(f,e))});M(3,"mat-icon",50);L();K(4,"button",51);N("click",function(d){var e=
u(c).$implicit,f=P(6);d.preventDefault();return v(f.copyIdOrLink(e))});M(5,"mat-icon",52);L()()()}a&2&&(a=b.$implicit,b=P(6),B(2),I("disabled",b.isSavingManualSignal)("matTooltip","Trigger a needs attention alert on this task"),B(2),I("matTooltip",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"),Kf("aria-label",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"))},llc=function(a){a&1&&M(0,"tr",53)},mlc=function(a){if(a&
1){var b=t();K(0,"tr",54);N("click",function(c){var d=u(b).$implicit,e=P(6);return v(e.navigateToResource(c,d))});L()}},nlc=function(a){a&1&&M(0,"mat-icon",58)},olc=function(a){a&1&&M(0,"mat-icon",59)},plc=function(a){if(a&1){var b=t();K(0,"button",57);N("click",function(){u(b);var d=P(3),e=P(4);return v(e.setNumDisplayedRows(d))});Q(1);F(2,nlc,1,0,"mat-icon",58);F(3,olc,1,0,"mat-icon",59);L()}if(a&2){a=P(3);var c=P(4);B();S(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");B();G(a.length>
c.numDisplayedRows?2:-1);B();G(a.length===c.numDisplayedRows?3:-1)}},qlc=function(a){a&1&&(K(0,"td",55),F(1,plc,4,3,"button",56),L());if(a&2){a=P(2);var b=P(4);B();G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?1:-1)}},rlc=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))}},slc=function(a,b){a&1&&(K(0,"td",62),Q(1),L());a&2&&(B(),S(" ",b.length===0?"Enable source filters to see tasks":"No tasks found"," "))},tlc=function(a){a&1&&(K(0,"tr",61),F(1,
slc,2,1,"td",62),T(2,"async"),L());if(a&2){var b;a=P(6);B();G((b=U(2,1,a.sources$))?1:-1,b)}},wlc=function(a){a&1&&(K(0,"table",19),Uf(1,20),E(2,Qkc,2,0,"th",21)(3,Rkc,2,5,"td",22),Vf(),Uf(4,23),E(5,Skc,2,0,"th",21)(6,Zkc,3,1,"td",22),Vf(),Uf(7,24),E(8,$kc,2,0,"th",21)(9,blc,2,1,"td",22),Vf(),Uf(10,25),E(11,clc,2,0,"th",21)(12,dlc,2,1,"td",22),Vf(),Uf(13,26),E(14,elc,2,0,"th",21)(15,hlc,3,1,"td",22),Vf(),Uf(16,27),E(17,ilc,2,0,"th",28)(18,klc,6,4,"td",29),Vf(),E(19,llc,1,0,"tr",30)(20,mlc,1,0,"tr",
31),Uf(21,32),E(22,qlc,2,1,"td",33),Vf(),E(23,rlc,1,1,"tr",34)(24,tlc,3,3,"tr",35),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);xg(Eg("table-",b.label));I("dataSource",a.slice(0,c.numDisplayedRows)||Hg(7,ulc));B(19);I("matHeaderRowDef",c.displayColumns);B();I("matRowDefColumns",c.displayColumns);B(3);I("matFooterRowDef",Hg(8,vlc))}},xlc=function(a,b){a&1&&(F(0,Pkc,2,3),F(1,wlc,25,9,"table",17));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},ylc=function(a){a&1&&(F(0,Nkc,1,3,"b-issues-table",
16),T(1,"async"),F(2,xlc,2,2),T(3,"async"));if(a&2){var b,c;a=P().$implicit;G((b=U(1,2,a.issues))?0:-1,b);B(2);G((c=U(3,4,a.liteTasks))?2:-1,c)}},zlc=function(a){a&1&&(K(0,"div",10),M(1,"b-spinner",63),L());a&2&&(B(),I("ariaLabel","loading tasks"))},Alc=function(a,b){a&1&&(K(0,"mat-tab"),E(1,Ikc,2,2,"ng-template",8),F(2,Mkc,4,4,"div",9),F(3,ylc,4,6)(4,zlc,2,1,"div",10),L());a&2&&(a=b.$implicit,B(2),G(a.liteTasks?2:-1),B(),G(a.loading?4:3))},Blc=function(a){if(a&1){var b=t();K(0,"div",6)(1,"mat-tab-group",
7);N("selectedIndexChange",function(c){u(b);var d=P();return v(d.onTabIndexChange(c))});Of(2,Alc,5,2,"mat-tab",null,Nf);L()()}a&2&&(a=P(),B(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Pf(a.tabData))},Clc=function(a,b){return a.lastModifiedTimestamp?b.lastModifiedTimestamp?ao(b.lastModifiedTimestamp)-ao(a.lastModifiedTimestamp):1:-1},Elc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",9);N("click",function(){u(b);var c=P();Dlc(c.userFeedback);return v()});Q(2,"Give feedback");L()()}},Flc=function(a,
b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),S(" ",a.displayName," "))},Glc=function(a,b){return a.gmt===b.gmt?a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},Hlc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.frequency),B(),S(" ",a.display," "))},Ilc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Frequency ");L();K(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return v(e.frequency$.next(d))});
Of(5,Hlc,2,2,"mat-option",2,Nf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),Pf(a.frequencyOptions))},Jlc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.ordinal),B(),S(" ",a.display," "))},Klc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Repeat on ");L();K(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return v(e.ordinal$.next(d))});Of(5,Jlc,2,2,"mat-option",2,Nf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),
Pf(a.repeatOnOptions.get(a.frequency$.value)))},Llc=function(a,b){a&1&&(K(0,"mat-option",2),Q(1),L());a&2&&(a=b.$implicit,I("value",a.timeOfDay),B(),S(" ~",a.display," "))},Mlc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Repeat at ");L();K(4,"mat-select",3);N("ngModelChange",function(d){u(c);var e=P();return v(e.timeOfDay$.next(d))});Of(5,Llc,2,2,"mat-option",2,Nf);L()()()}a&2&&(a=P(),B(4),I("ngModel",b)("compareWith",a.compareTimeOfDay),B(),Pf(a.repeatAtOptions))},
Nlc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-timezone-picker",4);N("timezoneIdChange",function(d){u(c);var e=P();return v(e.timeZoneId$.next(d))});L()()}a&2&&(B(),I("timezoneId",b)("fullWidth",!0))},Olc=function(a,b){return a.hours===b.hours&&a.minutes===b.minutes&&a.seconds===b.seconds&&a.nanos===b.nanos},Plc=function(a){a&1&&Wf(0)},Qlc=function(a){a&1&&(K(0,"th",17),Q(1,"Name"),L())},Rlc=function(a,b){a&1&&(K(0,"td",18),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.displayName," "))},Slc=function(a){a&
1&&(K(0,"th",17),Q(1,"Status"),L())},Tlc=function(a){a&1&&M(0,"mat-icon",19);a&2&&(a=P(3),I("matTooltip",a.warningTooltipText))},Ulc=function(a,b){a&1&&(K(0,"td",18),F(1,Tlc,1,1,"mat-icon",19),L());a&2&&(a=b.$implicit,B(),G(a.isOverflowing?1:-1))},Vlc=function(a){a&1&&(K(0,"th",17),Q(1,"Actions"),L())},Wlc=function(a,b){if(a&1){var c=t();K(0,"td",18)(1,"button",20);M(2,"mat-icon",21);L();K(3,"mat-menu",null,2)(5,"a",22);Q(6," Search issues with query ");L();M(7,"mat-divider");K(8,"button",23);N("click",
function(){var d=u(c).$implicit,e=P(2);return v(e.openDialog(d))});Q(9," Edit subscription ");L();K(10,"button",24);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.openConfirmDeleteDialog(d))});Q(11," Delete subscription ");L()()()}a&2&&(a=b.$implicit,b=qg(4),P(2),B(),I("matMenuTriggerFor",b),B(4),I("routerLinkObj",{path:"/issues",queryParams:{q:a.query,s:"modified_time:desc"}}))},Xlc=function(a){a&1&&M(0,"tr",25)},Ylc=function(a,b){a&1&&M(0,"tr",26);a&2&&(a=b.$implicit,Kf("aria-label",
"Subscription "+a.id+": "+a.displayName))},Zlc=function(a){a&1&&(K(0,"div",8)(1,"table",9),Uf(2,10),E(3,Qlc,2,0,"th",11)(4,Rlc,2,1,"td",12),Vf(),Uf(5,13),E(6,Slc,2,0,"th",11)(7,Ulc,2,1,"td",12),Vf(),Uf(8,14),E(9,Vlc,2,0,"th",11)(10,Wlc,12,2,"td",12),Vf(),E(11,Xlc,1,0,"tr",15)(12,Ylc,1,1,"tr",16),L()());a&2&&(a=P(),B(),I("dataSource",a.ownedSubscriptions$),B(10),I("matHeaderRowDef",a.columnsToDisplay),B(),I("matRowDefColumns",a.columnsToDisplay))},$lc=function(a){a&1&&Q(0," Add configurable alert ")},
amc=function(a){a&1&&Q(0," Update configurable alert ")},bmc=function(a){a&1&&Q(0," Create a new configurable alert. ")},cmc=function(a){a&1&&Q(0," Update a configurable alert. ")},dmc=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,S(" Subscription ID: ",a.id," "))},emc=function(a){a&1&&M(0,"b-spinner")},fmc=function(a,b){if(a&1){var c=t();K(0,"h1",27);F(1,$lc,1,0)(2,amc,1,0);L();K(3,"mat-dialog-content")(4,"p",28);F(5,bmc,1,0)(6,cmc,1,0);L();K(7,"mat-form-field",29)(8,"mat-label");Q(9,"Name");L();K(10,
"input",30);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.displayName,d)||(e.displayName=d);return v(d)});L()();K(11,"mat-form-field",29)(12,"mat-label");Q(13,"Search query");L();K(14,"input",31);Cg("ngModelChange",function(d){var e=u(c).$implicit;Bg(e.query,d)||(e.query=d);return v(d)});L()();K(15,"b-delivery-frequency-subform",32);N("frequencyChange",function(d){var e=u(c).$implicit,f=P();return v(f.setFrequency(e,d))});Cg("ordinalChange",function(d){var e=u(c).$implicit;Bg(e.ordinal,
d)||(e.ordinal=d);return v(d)})("timeOfDayChange",function(d){var e=u(c).$implicit;Bg(e.timeOfDay,d)||(e.timeOfDay=d);return v(d)})("timeZoneIdChange",function(d){var e=u(c).$implicit;Bg(e.timeZone.id,d)||(e.timeZone.id=d);return v(d)});L();K(16,"div",29)(17,"mat-slide-toggle",33);N("change",function(d){var e=u(c).$implicit;return v(e.sendEmail=d.checked)});Q(18," Send email when newly matching issues are found. ");L()();K(19,"div",34)(20,"span",35);F(21,dmc,1,1);L();F(22,emc,1,0,"b-spinner");T(23,
"async");L()();K(24,"mat-dialog-actions")(25,"button",36);Q(26,"Cancel");L();K(27,"button",7);N("click",function(){var d=u(c).$implicit,e=P();return v(e.save(d))});Q(28);L()()}a&2&&(a=b.$implicit,b=P(),B(),G(a.id==="0"?1:2),B(4),G(a.id==="0"?5:6),B(5),Ag("ngModel",a.displayName),B(4),Ag("ngModel",a.query),B(),I("frequency",a.frequency),Ag("ordinal",a.ordinal)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id),B(2),I("checked",a.sendEmail),B(4),G(a.id!=="0"?21:-1),B(),G(U(23,12,b.isSaving$)?22:-1),
B(6),S(" ",a.id==="0"?"Add":"Update"," "))},gmc=function(a){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=P().$implicit,I("value",a),B(),S(" ",a.name," "))},hmc=function(a,b){a&1&&F(0,gmc,2,2,"mat-option",21);a&2&&G(b.$implicit.shouldDisplay()?0:-1)},imc=function(a,b){a&1&&(K(0,"mat-option",23),Q(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),S(" ",a.name," "))},kmc=function(a){if(a&1){var b=t();K(0,"mat-form-field",5)(1,"mat-select",22);Cg("ngModelChange",function(c){u(b);var d=P();Bg(d.preferredHomepage.selectedOptionId,
c)||(d.preferredHomepage.selectedOptionId=c);return v(c)});N("selectionChange",function(){u(b);var c=P();return v(jmc(c.preferredHomepage))});Of(2,imc,2,2,"mat-option",23,Nf);L()()}a&2&&(a=P(),B(),Ag("ngModel",a.preferredHomepage.selectedOptionId),B(),Pf(a.preferredHomepage.selectedMainOption.options))},lmc=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),S(" ",a.label," "))},mmc=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,I("value",
a.value),B(),S(" ",a.label," "))},nmc=function(a,b){a&1&&(K(0,"mat-option",13),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),S(" ",a.label," "))},omc=function(a){if(a&1){var b=t();K(0,"div",19)(1,"mat-slide-toggle",24);N("change",function(c){u(b);var d=P();c=c.checked;d.userPreferences.showInlineImages=c;d.save("showInlineImages",c.toString());return v()});Q(2," Show trusted images (e.g. SnipIt screenshots) inline in comments ");L()()}a&2&&(a=P(),B(),I("checked",a.getShowInlineImages()))},
rmc=function(a){if(a&1){var b=t();M(0,"hr",9);K(1,"div",0)(2,"div",1)(3,"p",2);Q(4,"Comment formatting settings");L()();K(5,"div")(6,"div",19)(7,"mat-slide-toggle",25);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.save("saveCommentFormattingPreferences.commentDisplayOverride"));return v()});Q(8," Force comments to display as plain text ");L()();
K(9,"div",19)(10,"mat-slide-toggle",26);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentCreateOverride=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.save("saveCommentFormattingPreferences.commentCreateOverride"));return v()});Q(11," Force comments to be created as plain text ");L()()()()}a&2&&(a=P(),B(7),I("checked",pmc(a)),B(3),I("checked",qmc(a)))},smc=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,
"p",2);Q(3,"Other");L()();K(4,"div")(5,"div")(6,"mat-slide-toggle",27);N("change",function(c){u(b);var d=P();d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c.checked;return v(d.save("saveBugScreensaverPreferences"))});Q(7," Enable bug screensaver ");L()()()()}a&2&&(a=P(),B(6),I("checked",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},tmc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,
2,a)," "))},umc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},vmc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},wmc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},xmc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),
L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},ymc=function(a,b){a&1&&(K(0,"mat-option",8),Q(1),T(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),S(" ",U(2,2,a)," "))},zmc=function(a){a&1&&M(0,"b-spinner")},Amc=function(a){a&1&&(K(0,"mat-hint"),Q(1,"This field is read-only"),L())},Bmc=function(a,b){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},Dmc=function(a,b){if(a&1){var c=t();K(0,"div",24)(1,"a",26);Q(2);
L();K(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P(2),f=P(2);return v(Cmc(f,e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Pe),B(),yg(a),B(),I("matTooltip","Remove SLO ID "+a))},Emc=function(a){a&1&&(K(0,"div",25),Q(1),L());a&2&&(a=P(2),B(),S(" Subscription ID: ",a.id," "))},Gmc=function(a){if(a&1){var b=t();K(0,"b-delivery-frequency-subform",17);N("frequencyChange",function(e){u(b);var f=P(),g=P(2);return v(g.setFrequency(e,f))})("ordinalChange",function(e){u(b);
var f=P(),g=P(2);pu(g,Object.assign({},f,{ordinal:e}));return v()})("timeOfDayChange",function(e){u(b);var f=P(),g=P(2);pu(g,Object.assign({},f,{timeOfDay:e}));return v()})("timeZoneIdChange",function(e){u(b);var f=P(),g=P(2);return v(g.setTimeZone(e,f))});L();K(1,"div")(2,"mat-form-field",18)(3,"mat-label");Q(4,"Days remaining");L();K(5,"input",19);Cg("ngModelChange",function(e){u(b);var f=P(3);Bg(f.inputDaysRemaining,e)||(f.inputDaysRemaining=e);return v(e)});N("blur",function(){u(b);var e=P(),
f=P(2);return v(f.setDaysRemaining(e))})("keydown.enter",function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))});L()()();K(6,"div")(7,"mat-form-field",18)(8,"mat-label");Q(9,"Types");L();K(10,"mat-select",20);N("ngModelChange",function(e){u(b);var f=P(),g=P(2);return v(g.setIssueType(e,f))});Of(11,Bmc,2,2,"mat-option",21,Nf);L()()();K(13,"div",8)(14,"mat-form-field",22)(15,"mat-label");Q(16,"Add SLO ID");L();K(17,"input",23);Cg("ngModelChange",function(e){u(b);var f=P(3);Bg(f.newSloId,
e)||(f.newSloId=e);return v(e)});N("keydown.enter",function(){u(b);var e=P(),f=P(2);return v(Fmc(f,e))})("blur",function(){u(b);var e=P(),f=P(2);return v(Fmc(f,e))});L()();Of(18,Dmc,5,3,"div",24,Nf);L();F(20,Emc,2,1,"div",25)}if(a&2){a=P();var c=P(2),d;I("frequency",a.frequency)("ordinal",(d=a.ordinal)!=null?d:0)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Ag("ngModel",c.inputDaysRemaining);B(5);I("ngModel",a.types);B();Pf(c.typeChoices);B(6);Ag("ngModel",c.newSloId);B();Pf(a.sloIds);
B(2);G(a.id?20:-1)}},Imc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",8)(2,"mat-slide-toggle",14);T(3,"async");N("change",function(){u(c);var d=P(2);return v(Hmc(d))});Q(4," Subscribe to your own reports ");F(5,zmc,1,0,"b-spinner");T(6,"async");L()();K(7,"div")(8,"mat-form-field",15)(9,"mat-label");Q(10,"Scope");L();K(11,"input",16);N("focus",function(){u(c);var d=P(2);return v(d.inputHasFocus=!0)})("blur",function(){u(c);var d=P(2);return v(d.inputHasFocus=!1)});L();F(12,Amc,2,0,"mat-hint");
L()();F(13,Gmc,21,8);L()}a&2&&(a=P(2),B(2),I("disabled",U(3,6,a.isThinking$))("checked",b.id!==0),B(3),G(U(6,8,a.isThinking$)?5:-1),B(6),I("ngModel",a.currentUser.email),B(),G(a.inputHasFocus?12:-1),B(),G(b.id!==0?13:-1))},Jmc=function(a){a&1&&(K(0,"div",2)(1,"div",3)(2,"p",4),Q(3,"Frequency settings"),L(),K(4,"p",11),Q(5," Choose when to receive your own reports. "),K(6,"a",12),Q(7,"Learn more"),L()()(),F(8,Imc,14,10,"div"),T(9,"async"),L(),M(10,"hr",13));if(a&2){var b;a=P();B(8);G((b=U(9,1,a.userSubscription$))?
8:-1,b)}},Kmc=function(a){a&1&&M(0,"b-spinner")},Lmc=function(a){a&1&&(K(0,"th",36),Q(1,"Scope"),L())},Mmc=function(a,b){a&1&&(K(0,"td",37),Q(1),L());a&2&&(a=b.$implicit,B(),S(" ",a.lead.emailAddress," "))},Nmc=function(a){a&1&&(K(0,"th",36),Q(1,"Frequency"),L())},Pmc=function(a,b){a&1&&(K(0,"td",37),Q(1),T(2,"async"),T(3,"async"),L());if(a&2){var c;a=b.$implicit;b=P(2);B();var d=b.frequencyDisplayMap.get(a.frequency);if(a.ordinal)if(a.frequency==="weekly")var e="- "+Omc[a.ordinal-1].display;else if(a.frequency===
"monthly"){e=a.ordinal;var f=e%10,g=e%100;e="- "+(f===1&&g!==11?String(e)+"st":f===2&&g!==12?String(e)+"nd":f===3&&g!==13?String(e)+"rd":String(e)+"th")}else e="";else e="";ooa(" ",d," ",e," - ",(c=U(2,4,b.hourOfDayDisplayMap$))==null?null:c.get(a.timeOfDay.hours)," - ",(c=U(3,6,b.timeZoneDisplayMap$))==null?null:c.get(a.timeZone.id)," ")}},Qmc=function(a){a&1&&M(0,"th",36)},Rmc=function(a){if(a&1){var b=t();K(0,"td",37)(1,"button",38);M(2,"mat-icon",39);L();K(3,"mat-menu",null,1)(5,"button",40);
N("click",function(){var c=u(b).$implicit,d=P(2);return v(d.openDialog(c))});Q(6," Edit subscription ");L();K(7,"button",41);N("click",function(){var c=u(b).$implicit,d=P(2);return v(d.openConfirmDeleteDialog(c))});Q(8," Delete subscription ");L()()()}a&2&&(a=qg(4),B(),I("matMenuTriggerFor",a))},Smc=function(a){a&1&&M(0,"tr",42)},Tmc=function(a,b){a&1&&M(0,"tr",43);a&2&&(a=b.$implicit,Kf("aria-label","Subscription with ID "+a.id+" and scoped to "+a.lead.emailAddress))},Umc=function(a){a&1&&(K(0,"table",
10),Uf(1,29),E(2,Lmc,2,0,"th",30)(3,Mmc,2,1,"td",31),Vf(),Uf(4,32),E(5,Nmc,2,0,"th",30)(6,Pmc,4,8,"td",31),Vf(),Uf(7,33),E(8,Qmc,1,0,"th",30)(9,Rmc,9,1,"td",31),Vf(),E(10,Smc,1,0,"tr",34)(11,Tmc,1,1,"tr",35),L());a&2&&(a=P(),I("dataSource",a.subscriptions$),B(10),I("matHeaderRowDef",a.columns),B(),I("matRowDefColumns",a.columns))},Vmc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Please select a valid, single user"),L())},Wmc=function(a){a&1&&(K(0,"mat-error"),Q(1,"Report for sundar@ cannot be generated"),
L())},Xmc=function(a,b){a&1&&(K(0,"mat-option",21),Q(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),yg(a.displayText))},Zmc=function(a,b){if(a&1){var c=t();K(0,"div",24)(1,"a",26);Q(2);L();K(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P().$implicit;P();return v(Ymc(e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Pe),B(),yg(a),B(),I("matTooltip","Remove SLO ID "+a))},$mc=function(a){a&1&&(K(0,"div",25),Q(1),L());a&2&&(a=P().$implicit,B(),S(" Subscription ID: ",
a.id," "))},cnc=function(a,b){if(a&1){var c=t();K(0,"h1",44);Q(1,"Add report subscription");L();K(2,"mat-dialog-content")(3,"p",45);Q(4," Select the user (scope) and frequency of the report you wish to receive. ");L();K(5,"div")(6,"mat-form-field",46)(7,"mat-label");Q(8,"Scope");L();K(9,"b-peoplekit-single",47);N("emailChange",function(f){var g=u(c).$implicit,k=P();return v(g.lead=k.emailToUser(f))});L();F(10,Vmc,2,0,"mat-error");F(11,Wmc,2,0,"mat-error");L()();K(12,"b-delivery-frequency-subform",
17);N("frequencyChange",function(f){var g=u(c).$implicit;P();g.frequency=f;f!=="daily"?g.ordinal=1:delete g.ordinal;return v()})("ordinalChange",function(f){var g=u(c).$implicit;return v(g.ordinal=f)});Cg("timeOfDayChange",function(f){var g=u(c).$implicit;Bg(g.timeOfDay,f)||(g.timeOfDay=f);return v(f)})("timeZoneIdChange",function(f){var g=u(c).$implicit;Bg(g.timeZone.id,f)||(g.timeZone.id=f);return v(f)});L();K(13,"div")(14,"mat-form-field",15)(15,"mat-label");Q(16,"Days remaining");L();K(17,"input",
48);Cg("ngModelChange",function(f){var g=u(c).$implicit;Bg(g.daysRemaining,f)||(g.daysRemaining=f);return v(f)});L()()();K(18,"div")(19,"mat-form-field",15)(20,"mat-label");Q(21,"Types");L();K(22,"mat-select",20);Cg("ngModelChange",function(f){var g=u(c).$implicit;Bg(g.types,f)||(g.types=f);return v(f)});Of(23,Xmc,2,2,"mat-option",21,Nf);L()()();K(25,"div",8)(26,"mat-form-field",49)(27,"mat-label");Q(28,"Add SLO ID");L();K(29,"input",23);Cg("ngModelChange",function(f){u(c);var g=P();Bg(g.newSloId,
f)||(g.newSloId=f);return v(f)});N("keydown.enter",function(){var f=u(c).$implicit,g=P();return v(anc(g,f))})("blur",function(){var f=u(c).$implicit,g=P();return v(anc(g,f))});L()();Of(30,Zmc,5,3,"div",24,Nf);L();F(32,$mc,2,1,"div",25);K(33,"p",50);Q(34," You are the only recipient of your subscription. Anyone else wishing to receive this report will need to subscribe for themselves. ");L();K(35,"a",51);Q(36,"Learn more");L()();K(37,"mat-dialog-actions")(38,"button",52);Q(39,"Cancel");L();K(40,"button",
9);N("click",function(){var f=u(c).$implicit,g=P();return v(bnc(g,f))});Q(41);L()()}if(a&2){a=b.$implicit;b=P();B(9);var d;I("asMatInput",!0)("email",(d=a.lead==null?null:a.lead.emailAddress)!=null?d:"")("required",!0)("placeholder","Search users...");B();G(b.dialogInvalidEmailFormat?10:-1);B();G(b.ceoSelected?11:-1);B();var e;I("frequency",a.frequency)("ordinal",(e=a.ordinal)!=null?e:0);Ag("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Ag("ngModel",a.daysRemaining);B(5);Ag("ngModel",a.types);
B();Pf(b.typeChoices);B(6);Ag("ngModel",b.newSloId);B();Pf(a.sloIds);B(2);G(a.id?32:-1);B(8);I("disabled",!a.lead||!a.lead.emailAddress);B();S(" ",a.id===0?"Add":"Update"," ")}},dnc=function(a){a&1&&(K(0,"div",7),M(1,"b-general-settings"),L())},enc=function(a){a&1&&(K(0,"div",7),M(1,"b-notification-settings"),L())},fnc=function(a){a&1&&(K(0,"div",7),M(1,"b-configurable-alert-settings"),L())},gnc=function(a){a&1&&(K(0,"div",7),M(1,"b-slo-reports-settings"),L())},hnc=function(a){a&1&&(K(0,"mat-tab",
6),E(1,gnc,2,0,"ng-template",3),L())},inc=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)},jnc=function(a){if(a&1){var b=t();K(0,"b-star-toggle",11);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())});L()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",
a.isStarred))},knc=function(a,b){a&1&&(K(0,"li")(1,"a",12),Q(2),L()());a&2&&(a=b.$implicit,b=P(2),B(),I("href",b.getUrl(a),Pe),B(),yg(b.getDisplayName(a)))},lnc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",3)(2,"div",4);F(3,inc,1,4,"b-star-toggle",5)(4,jnc,1,3,"b-star-toggle",6);K(5,"span",7);Q(6);L();K(7,"button",8);N("click",function(){u(b);var c=P();return v(c.openEditBookmarkGroup())});L()();K(8,"div",9);Q(9);L()();K(10,"ul",10);Of(11,knc,3,2,"li",null,Nf);L()()}a&2&&(a=P(),B(3),G(a.userIsAdmin?
3:4),B(3),S("Bookmark Group: ",a.bookmarkGroup.name," "),B(3),yg(a.bookmarkGroup.description),B(2),Pf(a.bookmarkGroup.item))},mnc=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P(2);return v(c.addToMissionControl(c.hotlistId))});Q(1," Hotlist insights in Home ");L()}},nnc=function(a,b){a&1&&F(0,mnc,2,0,"button",9);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},onc=function(a){if(a&1){var b=t();K(0,"b-star-toggle",16);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())})("keydown.space",
function(c){u(b);return v(c.stopPropagation())})("keydown.enter",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(a=P(2),I("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},pnc=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)},qnc=function(a){a&1&&M(0,"b-star-toggle",
12);a&2&&I("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},rnc=function(a){a&1&&(K(0,"div",14),Q(1," Hotlist not found. "),L());a&2&&I("bFocus",!0)},snc=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},tnc=function(a){a&1&&(K(0,"span",19),Q(1," (archived) "),L())},unc=function(a){a&1&&(K(0,"span",22),Q(1," \u00a0(changed) "),L())},vnc=function(a){if(a&1){var b=t();K(0,"div")(1,"span",17);Q(2," Hotlist: ");K(3,"span",18);Q(4);L()();F(5,tnc,2,0,"span",19);K(6,"div",
20)(7,"button",21);N("click",function(){u(b);var c=P(2);return v(c.openEditHotlist())});L()();F(8,unc,2,0,"span",22);L()}a&2&&(a=P(2),B(3),I("matTooltip",a.hotlist.description),B(),S(" ",a.hotlist.name," "),B(),G(a.hotlist.archived?5:-1),B(3),G(a.hasParamChanges()?8:-1))},wnc=function(a){if(a&1){var b=t();K(0,"div",15)(1,"button",23);N("click",function(){u(b);var c=P(2);return v(c.save())});Q(2,"Save ");L();K(3,"button",24);N("click",function(){u(b);var c=P(2);return v(c.discardChanges())});Q(4,"Discard changes ");
L()()}},xnc=function(a){a&1&&(K(0,"div",5),F(1,onc,1,3,"b-star-toggle",11),F(2,pnc,1,4,"b-star-toggle",12),F(3,qnc,1,4,"b-star-toggle",12),K(4,"div",13),F(5,rnc,2,1,"div",14),F(6,snc,2,0,"div"),F(7,vnc,9,4,"div"),L(),F(8,wnc,5,0,"div",15),L());a&2&&(a=P(),B(),G(a.isDirectAdmin()||!a.hotlist||a.hotlist.archived?-1:1),B(),G(a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived?2:-1),B(),G(a.hotlist?-1:3),B(2),G(a.hotlist||a.hotlistLoading?-1:5),B(),G(a.hotlistLoading?6:-1),B(),G(a.hotlist&&!a.hotlistLoading?
7:-1),B(),G(a.hasParamChanges()?8:-1))},ync=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),K(2,"span"),Q(3),L()());a&2&&(a=P(),B(3),S(" Loading hotlist: ",a.hotlistId))},znc=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" No issues found on this page for hotlist ",a.hotlistId,". There may be issues visible on the next page. "))},Anc=function(a){a&1&&Q(0);a&2&&(a=P(2),S(" No issues in hotlist ",a.hotlistId,". "))},Bnc=function(a){a&1&&(K(0,"div",7),F(1,znc,1,1)(2,Anc,1,1),L());a&2&&(a=P(),I("bFocus",!0),B(),
G((a.searchResults==null?0:a.searchResults.hasNextPage())?1:2))},Cnc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",25);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Cg("focusedRowIndexChange",function(c){u(b);var d=P();Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P();Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",
function(c){u(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){u(b);var d=P();return v(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){u(b);var c=P();return v(ku(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(ku(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",
!0))},Dnc=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(2);return v(c.addToMissionControl(c.savedSearchId))});Q(1," Saved Search insights in Home ");L()}},Enc=function(a,b){a&1&&F(0,Dnc,2,0,"button",8);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},Fnc=function(a){a&1&&(K(0,"span",13),Q(1," \u00a0(changed) "),L())},Gnc=function(a){if(a&1){var b=t();K(0,"div",10);Q(1," Saved search: ");K(2,"span",11);Q(3);L();K(4,"button",12);N("click",function(){u(b);var c=P(2);return v(c.openEditSavedSearch())});
L();F(5,Fnc,2,0,"span",13);L()}a&2&&(a=P(2),B(2),I("matTooltip",a.savedSearch.description),B(),S(" ",a.savedSearch.name," "),B(2),G(a.hasParamChanges()?5:-1))},Hnc=function(a){a&1&&(K(0,"div"),Q(1," Loading details... "),L())},Inc=function(a){a&1&&(K(0,"div"),Q(1," Saved search not found. "),L())},Jnc=function(a){a&1&&F(0,Hnc,2,0,"div")(1,Inc,2,0,"div");a&2&&(a=P(2),G(a.isLoading?0:1))},Knc=function(a){a&1&&(K(0,"div",6),F(1,Gnc,6,3,"div",10)(2,Jnc,2,1),L());a&2&&(a=P(),B(),G(a.savedSearch?1:2))},
Lnc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2);return v(c.save())});Q(1,"Save ");L()}},Mnc=function(a){if(a&1){var b=t();K(0,"div",7);F(1,Lnc,2,0,"button",14);K(2,"button",15);N("click",function(){u(b);var c=P();return v(c.discardChanges())});Q(3,"Discard changes ");L();K(4,"span",16)(5,"a",17);N("click",function(){u(b);var c=P();c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"backToNormalSearch");return v()});Q(6," Back to normal search");L()()()}a&2&&(a=P(),
B(),G(a.isEditable()?1:-1),B(4),I("href",a.exitLink,Pe))},Nnc=function(a){a&1&&(K(0,"span"),Q(1),L());a&2&&(a=P(3),B(),S(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},Onc=function(a){a&1&&(K(0,"div",19),M(1,"b-spinner"),F(2,Nnc,2,1,"span"),L());a&2&&(a=P(2),B(2),G(a.searchParams?2:-1))},Pnc=function(a){if(a&1){var b=t();K(0,"div",20)(1,"b-issues-grid",22);N("init",function(c){u(b);var d=P(3);return v(d.resultsGrid=c)});Cg("focusedRowIndexChange",function(c){u(b);var d=
P(3);Bg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(3);Bg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P(3);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(3);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(3);return v(ku(c,c.page,1))})("onPrevPage",function(){u(b);var c=P(3);return v(ku(c,c.page,-1))});L()()}a&2&&(a=P(3),B(),I("searchResults",
a.searchResults),Ag("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},Qnc=function(a){a&1&&(K(0,"div",21),Q(1," No issues in saved search. "),L());a&2&&I("bFocus",!0)},Rnc=function(a){a&1&&F(0,Pnc,2,6,"div",20)(1,Qnc,2,1,"div",21);a&2&&(a=P(2),G(a.hasResults()?0:1))},Snc=function(a){a&1&&(K(0,"div"),F(1,Onc,3,1,"div",19)(2,Rnc,2,1),L());a&2&&(a=P(),B(),G(a.isLoading?1:2))},Unc=function(a,b){return Tnc(function(){return IVa(a)},
b)},Tnc=function(a,b){return a()?[b]:[]},Vnc=function(){var a=p(qu).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY="Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},Xnc=function(a){a=a.internal;var b,c,d;(b=X(a,Wnc,11))==null?d=void 0:d=xn(b,1,Di(Km)).sort().join("-");b=(c=d)!=null?c:"";var e,f,g;(e=X(a,Wnc,11))==null?g=void 0:g=xn(e,2,Di(Km)).sort().join("-");c=(f=g)!=null?f:"";return vi(a,10,"all_features")+(":enabled-"+b)+(":disabled-"+c)},$nc=function(a,b){for(var c=[],d=a.length,e=0,f=[],g,
k,l=0;l<d;){switch(e){case 0:var r=a.indexOf("<",l);if(r<0){if(c.length===0)return a;c.push(a.substring(l));l=d}else c.push(a.substring(l,r)),k=r,l=r+1,Ync?(Znc.lastIndex=l,r=Znc.exec(a)):(Znc.lastIndex=0,r=Znc.exec(a.substring(l))),r?(f=["<",r[0]],g=r[1],e=1,l+=r[0].length):c.push("<");break;case 1:r=a.charAt(l++);switch(r){case "'":case '"':var w=a.indexOf(r,l);w<0?l=d:(f.push(r,a.substring(l,w+1)),l=w+1);break;case ">":f.push(r);c.push(b(f.join(""),g));e=0;f=[];k=g=null;break;default:f.push(r)}break;
default:throw Error();}e===1&&l>=d&&(l=k+1,c.push("<"),e=0,f=[],k=g=null)}return c.join("")},ru=function(a,b){b=a(b||aoc,void 0);a=lj();if(b&&b.renderAsElement)a=b.renderAsElement();else{a=a.createElement("DIV");b:if(Oa(b)){if(b.toSafeHtml&&(b=b.toSafeHtml(),b instanceof oh))break b;b=Bh("zSoyz")}else b=Bh(String(b));a.innerHTML=rh(b)}a.childNodes.length==1&&(b=a.firstChild,b.nodeType==1&&(a=b));return a},su=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},boc=function(a,b){return Array.from(a.querySelectorAll('[peoplekit-id="'+
b+'"]'))},coc=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"))})},foc=function(a,b){if(/-[a-z]/.test(b))return null;if(doc&&a.dataset){if(hba()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+eoc(b))},goc=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";
return a},tu=function(a,b,c,d,e,f){e=e===void 0?new hoc:e;f=(f===void 0?"":f)||"https://lh3.googleusercontent.com/a/default-user";b=b.length?b.map(function(g){return g||"https://lh3.googleusercontent.com/a/default-user"}):[f];c=ru(ioc,{imageUrls:b,backupUrl:f,size:c,preloadSize:d,pixelRatio:joc()});e=new koc(c,e);a.appendChild(c);return e},moc=function(a,b){var c="",d=0;b=m(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 loc(loc(Ht(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},noc=function(a){var b=a.getDisplayName();return b?moc(b,a.getMatchInfo().getDisplayNameMatches()):""},ooc=function(a){var b=a.getDisplayValue();return b?moc(b,a.getMatchInfo().getDisplayValueMatches()):""},poc=function(a,b){var c=b?noc(a):Ht(a.getDisplayName());b=
b?ooc(a):Ht(a.getDisplayValue());c=c||b;b=b||Ht(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()]}},qoc=function(a){var b=a.result();b=poc(b,!1);a=a.getDisplayNameWithOverrideApplied();return{label:Ht(a)||b.sublabel,sublabel:b.sublabel,name:a,photos:b.photos,hovercardId:b.hovercardId}},roc=function(a){var b;switch(((b=a.statefulChipConfig)==null?void 0:b.chipState)||
0){case 3:return"isError";default:return""}},soc=function(a){var b;return((b=a.statefulChipConfig)==null?void 0:b.customChipClass)||""},uoc=function(a,b,c){var d=qoc(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=roc(c);c=soc(c);return{id:uu(toc),label:d.label,name:d.name,photos:e,
hovercardId:d.hovercardId,stateClass:f,isWarning:a,isDeletionDisabled:!b.getAllowChipDeletion(),customChipClass:c}},woc=function(a,b,c,d){var e="",f=Ht(a.getDescription()),g=!1,k=a.getMemberList().length;if(k>1||a.getDisplayName())e=a.getMemberList().map(function(l){var r=l.getPrimaryTarget().getName(),w="";if(r){if(b){var x;var C=(r=(C=l.getPrimaryTarget())==null?void 0:(x=C.getName())==null?void 0:x.getGivenName())?moc(r,l.getMatchInfo().getGivenNameMatches()):""}else C=Ht(r.getGivenName());(w=
C)||(w=b?noc(l):Ht(l.getDisplayName()))}w||(w=b?ooc(l):Ht(l.getDisplayValue()));return w}),c&&(e=e.reverse()),e=b?noc(a)||e.join(", "):Ht(a.getDisplayName())||e.join(", "),f||d||a.getTotalMemberCount()===null||(f=Number(a.getTotalMemberCount()),f=voc({memberCount:f}),g=!0);else if(k===1)return e=a.getMemberList()[0],f=poc(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(l){return l.getPhotoUrl()});
return{hovercardId:"",label:e,sublabel:f,type:a.getPrimaryTarget().getTargetType(),photos:c,allowSublabelTranslation:g}},wu=function(a){return new vu(a)},xoc=function(a,b,c){b=b.ownerDocument.createEvent(c);b.initEvent(a,!0,!0);return b},yoc=function(a,b){return xoc(a,b,"CustomEvent")},zoc=function(a){return a.resultType===4||a.resultType===5},Doc=function(a){xu.addCoreFactory({type:0,configurationKey:a,factory:{create:function(b){var c=b.selection;var d=b.chipConfig;var e=b.chipCustomization,f=b.isRightToLeft;
f=woc(c.result(),!1,f,!1);if(f.flatResult){var g=Object;c=g.assign;var k=f.flatResult,l=k.getPrimaryTarget(),r=d.getWarnForExternalSelections()&&l.getOrgState()===2;l=d.getShouldDisplayExternalSelectionIcon()&&r&&l.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:f.photos;var w=roc(e);e=soc(e);d={id:uu(toc),label:f.label,name:k.getDisplayName(),photos:l,hovercardId:f.hovercardId,stateClass:w,isWarning:r,isDeletionDisabled:!d.getAllowChipDeletion(),
customChipClass:e};d=c.call(g,{},d,{type:f.type})}else k=c.result().getPrimaryTarget(),c=d.getWarnForExternalSelections()&&k.getOrgState()===2,k=d.getShouldDisplayExternalSelectionIcon()&&c&&k.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:f.photos,d=Object.assign({},{id:uu(Aoc),isDeletionDisabled:!d.getAllowChipDeletion(),stateClass:"",isWarning:c,name:f.label},f,{customChipClass:((g=e.statefulChipConfig)==null?void 0:g.customChipClass)||
"",photos:k});f=ru(Boc,d);tu(su(f,"d6MZcd"),d.photos,b.avatarSize,b.resultListItemAvatarSize,b.appearanceConfig);b.parent.appendChild(f);return{chip:new Coc(f,b.selection,b.selectionsState),root:f,state:0}},shouldCreate:zoc}})},Eoc=function(a){return 0===a.resultType},Hoc=function(a){xu.addCoreFactory({type:1,configurationKey:a,factory:{create:function(b){var c=uoc(b.selection,b.chipConfig,b.chipCustomization);c=ru(Foc,Object.assign({},c,{avatarSize:b.avatarSize}));b.parent.appendChild(c);return{chip:new Goc(c,
b.selection,b.selectionsState),root:c,state:0}},shouldCreate:Eoc}})},Woc=function(a,b,c,d,e){var f;if(f=c.offsetParent){var g=f.tagName=="HTML"||f.tagName=="BODY";if(!g||Ioc(f)!="static"){var k=yu(f);if(!g){g=zu(f);var l;if(l=g){l=Joc&&$aa(Koc,10)>=0;var r;if(r=Loc)r=$aa(Moc,10)>=0;var w=Noc&&$aa(Koc,85)>=0;l=gj||l||r||w}g=l?-f.scrollLeft:g&&vt(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft;k=Ooc(k,new Au(g,f.scrollTop))}}}f=k||new Au;k=Poc(a);(g=Qoc(a))&&k.intersection(Roc(g));
g=lj(a);l=lj(c);if(g.document_!=l.document_){g=g.document_.body;l=l.getWindow();r=new Au(0,0);w=Bu(Cu(g));if(Soc(w,"parent")){var x=g;do{if(w==l)var C=yu(x);else C=Toc(x),C=new Au(C.left,C.top);r.x+=C.x;r.y+=C.y}while(w&&w!=l&&w!=w.parent&&(x=w.frameElement)&&(w=w.parent))}g=Ooc(r,yu(g));k.left+=g.x;k.top+=g.y}a=Uoc(a,b);b=k.left;a&4?b+=k.width:a&2&&(b+=k.width/2);b=new Au(b,k.top+(a&1?k.height:0));b=Ooc(b,f);a=Uoc(c,d);k=Voc(c);b=b.clone();k=k.clone();a!=0&&(a&4?b.x-=k.width:a&2&&(b.x-=k.width/2),
a&1&&(b.y-=k.height));a=new Du(0,0,0,0);a.left=b.x;a.top=b.y;a.width=k.width;a.height=k.height;c=Qoc(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;a.left<c.left?a.left=c.left:a.left+a.width>c.right&&(a.left=c.right-a.width);e&&(e=a,d&1?e.top<c.top&&(d=c.top-e.top,e.top+=d,e.height-=d):(d=e.top+e.height,d>c.bottom&&(e.height-=d-c.bottom)),a=e);return a},Xoc=function(a,b){Eu(a,new Au(b.left,b.top));b=b.getSize();var c=Voc(a);c==b||c&&b&&c.width==b.width&&c.height==b.height||(a=a.style,gj?a.MozBoxSizing=
"border-box":fj?a.WebkitBoxSizing="border-box":a.boxSizing="border-box",a.width=Math.max(b.width,0)+"px",a.height=Math.max(b.height,0)+"px")},Yoc=function(a,b){return new Fu(a,b)},bpc=function(a,b,c){b=ru(Zoc,{label:c.label,id:b,ariaLabel:c.ariaLabel});a.appendChild(b);a=c.showDelayMs;c=c.hideDelayMs;c=new $oc(b,a===void 0?500:a,c===void 0?300:c);return new apc(b,c)},cpc=function(a){return!a.chipCustomization.statefulChipConfig||a.chipCustomization.statefulChipConfig.chipState===0||a.chipConfig.getWarnForExternalSelections()&&
a.chipCustomization.statefulChipConfig.chipState!==3?!1:!0},dpc=function(a){xu.addDecoratorFactory({type:0,factory:{create:function(b,c){return{chip:new Gu(c.chip,b.chipCustomization.statefulChipConfig.tooltipLabel,b.chipCustomization.statefulChipConfig.ariaLabel),root:c.root,state:b.chipCustomization.statefulChipConfig.chipState}},shouldCreate:cpc},configurationKey:a})},hpc=function(a,b,c){var d=ru(epc,{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("Ng`"+f);}}e.call(a,f);if(c.tooltipLabel){var g=d.getAttribute("data-tooltip-id")||"";g=bpc(b,g,{label:c.tooltipLabel,ariaLabel:c.ariaLabel});fpc(g,d)}return new gpc(d,c.icon,c.disabledIcon,g,c.disableDomNavigation,c.onClick)},Hu=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)},Iu=function(a){return yoc("pcw-click",a)},jpc=function(a,b,c,d,e){var f=Object.assign({},c);f.onClick=function(g){d.select(a.getSelection(),1);var k;
(k=c.onClick)==null||k.call(c,g)};return new ipc(a,b,f,e)},kpc=function(a){Ju.addDecoratorFactory({type:1,factory:{create:function(b,c){return jpc(c,b.appearanceConfig,b.resultCustomizationConfig.secondaryActionButtonConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return!!b.resultCustomizationConfig.secondaryActionButtonConfig}},configurationKey:a})},lpc=function(a){a=Xnc(a);Hoc(a);dpc(a);Doc(a);kpc(a)},mpc=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},npc=function(a,
b,c){b=[b,c].map(function(d){return d!=null?d:""}).join(";");a.setAttribute("pkd-ac-state",String(Bh(b)))},opc=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Bh(b)))},ppc=function(a,b){a.setAttribute("pkd-ps-state",String(Bh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(Bh("2")))},function(){a.setAttribute("pkd-ps-state",String(Bh("3")))})},spc=function(a,b){qpc(rpc,b).create(a)},vpc=function(a){a=a===void 0?new tpc:a;return new upc(a)},
xpc=function(a,b,c,d,e){var f=vpc(new tpc(function(){var k=e();k&&!k.hasFocus()&&k.getNavigatable().reset()})),g=new wpc;spc({injectableAutocompleteGrouping:g,injectableResultConfig:f,autocompleteConfig:a,clientConfig:b,peopleStore:c,searchSession:d,getAutocomplete:e},Xnc(b));return{injectableResultConfig:f,injectableAutocompleteGrouping:g}},Bpc=function(a){var b=ru(ypc,{id:uu(zpc)});a.appendChild(b);return new Apc(b)},Epc=function(a){if(Ku){var b=Cpc(a);Dpc(a,b)}else a.scrollIntoView({block:"nearest"})},
Gpc=function(a){return new Fpc(a)},Jpc=function(a,b){b=ru(Hpc,{label:b.label});a.appendChild(b);return new Ipc(b)},Lpc=function(a,b){for(var c=m(Kpc.values()),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=Kpc.get(b))&&a.classList.add(b)},Npc=function(a,b){for(var c=m(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=Mpc.get(b))&&a.classList.add(b)},Qpc=function(a,b,c,d){b=ru(Opc,{content:b,header:d});a.appendChild(b);a=su(b,"Sx9Kwc");
d=Jpc(su(b,"IbE0S"),{label:"Close"});Npc(b,c.getTheme());Lpc(a,c.getStyle());return new Ppc(b,d)},Vpc=function(a,b){var c=a.headerText,d=a.infoGroupConfig;a=a.collapsibleGroupConfig;if(c){var e=uu(Lu.getInstance());e=ru(Rpc,{id:e,header:c});c=new Spc(e,c);d&&(e={},d.infoType===1&&(e={infoIconVeId:185198,learnMoreLinkVeId:185199}),c=new Tpc(c,d,b,e));a&&(c=new Mu(c,a.isInitiallyCollapsed));c.getActionItems().length>0&&(b=c,b.getRoot().setAttribute("role","group"),c=new Upc(b));return c}},Xpc=function(){return new (Function.prototype.bind.apply(Wpc,
[null].concat(q(bd.apply(0,arguments)))))},Ypc=function(a){var b,c;return(c=a==null?void 0:(b=a.collapsibleGroupConfig)==null?void 0:b.isDemoted)!=null?c:!1},$pc=function(){return new (Function.prototype.bind.apply(Zpc,[null].concat(q(bd.apply(0,arguments)))))},aqc=function(a){return Object.values(a).filter(function(b){return b!=null}).length},bqc=function(a){return Object.values(a.groupConfigs).every(function(b){return b&&aqc(b)!==0?b.headerText!=null&&aqc(b)===1:!0})},eqc=function(a,b,c,d,e,f){f?
bqc(f)?f=$pc(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=Xpc(a,b,c,d,e,f),Object.values(f.groupConfigs).some(Ypc)&&(a=new cqc(a,f)),f=a):f=new dqc(a,b,c,e);return f},fqc=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Ng`"+a);}},gqc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";
case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Ng`"+a);}},Nu=function(a){return a==null?"":typeof a==="number"?isFinite(a)?String(a):"":a&&(a=String(a),a.length<=254)?a:""},kqc=function(){var a=Ou("gapi.config.get");if((a=Nu(a&&a("googleapis.config/sessionIndex")))||(a=Nu(ra.__X_GOOG_AUTHUSER))||(a=Nu(Ou("google.authuser"))))return a;var b=ra.location.href||"",c=hqc.exec(b);try{a=Nu(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;
c=iqc.exec(b);try{a=Nu(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=jqc.exec(b);return(a=Nu(a&&a[1]))?a:""},lqc=function(){var a=Ou("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Ou("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}},nqc=function(a){a=a===void 0?"":a;var b;if(!(b=lqc())){b=a;var c=
c===void 0?kqc():c;a={};var d=mqc([]);d&&(a.Authorization=d);b||(b=(b=Ou("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},oqc=function(a,b){b=b===void 0?0:b;var c;if(c=b===0)c=(c=Ou("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=Ou("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},pqc=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},qqc=function(a){var b,c=(b=a.getClient())==null?void 0:b.getApplication();a=a.getRequestType();return c&&a?[c,a]:null},rqc=function(a){return(a=qqc(a))?JSON.stringify(a):null},sqc=function(a,
b){b=b===void 0?null:b;b=a.getProfileId()||b;return b?(a=qqc(a))?JSON.stringify([a,b]):null:null},tqc=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null},uqc=function(){var a=null;try{a=ra.localStorage||null}catch(b){}tqc.call(this,a)},Pu=function(a,b){this.mechanism_=a;this.prefix_=b+"::"},wqc=function(a){return vqc.map(function(b){return new Pu(a,b)})},xqc=function(a,b){window.setTimeout(a,b)},yqc=function(a,b){return new Promise(function(c){b>0?xqc(function(){return c(a)},b):c(a)})},
zqc=function(a){return new Promise(function(b,c){a>0?xqc(function(){return c("TIMEOUT")},a):c("TIMEOUT")})},Aqc=function(a,b,c){b=yqc(b,c);return Promise.race([a,b])},Bqc=function(a,b){b=zqc(b);return Promise.race([a,b])},Cqc=function(a){a=Math.round(a*1E3);return isFinite(a)?a:null},Dqc=function(a){var b=new Qu;if(a instanceof Ru)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},Fqc=function(a){a=a===void 0?null:a;var b=(new Eqc).setExperimentFlags(new Su).setSource(3);a&&b.setError(Dqc(a));return b},Oqc=function(a){var b=b===void 0?new uqc:b;if(Gqc)return Gqc;var c=
new Hqc(a),d=new Iqc(a),e;b.isAvailable()?e=new Jqc(a,b):e=new Kqc(a);b=e;try{b.clean()}catch(f){}c=new Lqc(new Mqc(b,c),d,a.runtime_);return Gqc=new Nqc(a,c)},Qqc=function(a){var b=a.resultCustomizationConfig,c=poc(a.result,!0);a=Pqc(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}},Pqc=function(a,b){var c=a.result,d=a.resultConfig;a=gqc(a.appearanceConfig.getDensity());var e=[],f=Rqc.getExperiments();Gi(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:uu(Sqc),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:a,tags:e,allowSublabelTranslation:!1}},
Uqc=function(a){var b=a.result,c=a.resultCustomizationConfig,d=a.appearanceConfig,e=a.isRightToLeft,f=Gi(a.clientConfig.internal,6);d=gqc(d.getDensity());b=woc(b,!0,e,f);if(b.flatResult)return d=Object.assign({},a,{result:b.flatResult}),d=Pqc(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:uu(Tqc),hovercardId:b.hovercardId,label:b.label,sublabel:c.shouldHideSublabel?"":a,type:b.type,photos:b.photos,densityClass:d,tags:[],allowSublabelTranslation:e}},Wqc=function(a,b,c){return ys(new Vqc(a===void 0?0:a,b!=null?b:[],c!=null?c:null))},Tu=function(a){return(a||"").trim()},Yqc=function(a,b,c,d){return new Xqc(a,
b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},Zqc=function(a){return a.resultCustomizationConfig.shouldDisable?2:a.selectionsState.get(a.result.getPrimaryTarget().getId())&&!a.resultConfig.getAllowResultDeselection()?1:0},arc=function(a){return new $qc(a)},crc=function(a,b,c,d){return new brc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},drc=function(a){var b=-1;(a=Uu(a))&&kn(a,2)&&(b=Cm(a,2));return"index:"+b},frc=function(a,b,c,d,e,f,g,k,l){return new erc(a,b,c,d,e,f,g,k,l)},hrc=function(){return new (Function.prototype.bind.apply(grc,
[null].concat(q(bd.apply(0,arguments)))))},Vu=function(a){return a instanceof TypeError?4:3},irc=function(){return"https://support.google.com/contacts/answer/7345608"},krc=function(a){return jrc.some(function(b){return a instanceof b})},qrc=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=d.getAutocompleteHeader(),H=d.getAutocompleteCustomGrouping();if(k.internal.getEnableAutocompleteLegalese()){var J=d.getAutocompleteGroupingType()===4||d.getAutocompleteGroupingType()===5;var O=H&&krc(H);J=J&&O?H:new lrc}else switch(d.getAutocompleteGroupingType()){case 1:J=
new lrc;break;case 2:J=new mrc(d.getAutocompleteGroupingLabel());break;case 3:J=new nrc(d.getAutocompleteGroupingLabel());break;case 4:case 5:J=H}H=d.getAutocompleteGroupingType();e=m(e.groupingDecorators);for(O=e.next();!O.done;O=e.next())O=O.value,J=O(H,J);e=J;C=ru(orc,{header:C||""});a.appendChild(C);a=Bpc(su(C,"tjneg"));b=hrc(a,f,g,d,k,b,c,l,r,w,e);return new prc(b,c,x)},rrc=function(a){var b=Ha()&&a.event.keyCode===121&&a.event.shiftKey;b||(b=Ha()&&a.event.ctrlKey&&a.event.keyCode===13);b||(b=
a.event.shiftKey&&a.event.ctrlKey&&a.event.keyCode===88);b||(b=Ha()&&a.event.metaKey&&a.event.shiftKey&&a.event.keyCode===220);b||(b=a.event.shiftKey&&a.event.ctrlKey&&a.event.keyCode===220);return b},src=function(a,b){return new Wu(a,b)},trc=function(a){return a.getAttribute("peoplekit-id")==="XLuqBd"},vrc=function(a,b){return new urc(a,b)},wrc=function(){return!1},xrc=function(){},zrc=function(){return new (Function.prototype.bind.apply(yrc,[null].concat(q(bd.apply(0,arguments)))))},Crc=function(a,
b){b=ru(Arc,b);a.appendChild(b);return new Brc},Irc=function(a,b,c,d,e,f,g,k,l,r,w){var x=ru(Drc);Hu({element:x,veid:85843,actions:["impression"],componentId:"peoplekitweb"});Lpc(x,g.getStyle());a.appendChild(x);a=su(x,"tjneg");var C=new Erc(x),H;w||(w=xpc(g,k,r,c,function(){return H}));r=w;d=qrc(a,d,e,g,r.injectableAutocompleteGrouping,g,r.injectableResultConfig,k,l,b,C,f);e=su(a,"rymPhb");b.setAttribute("aria-owns",e.id);b.setAttribute("aria-controls",e.id);e.setAttribute("aria-labelledby",b.id);
l=g.getNoResultsMessage();e=ru(Frc);l=l?l.display?new Grc(e,l):Crc(e,l):new Hrc;x.appendChild(e);return H=zrc(x,b,d,c,f,g,l,k)},Lrc=function(a,b,c,d,e,f,g,k,l,r){var w=ru(Jrc);Lpc(w,g.getStyle());a.appendChild(w);var x;a=xpc(g,k,r,c,function(){return x});c=Irc(w,b,c,d,e,f,g,k,l,r,a);return x=new Krc(w,b,c,d,g)},Nrc=function(a,b){return new Mrc(a,b)},Orc=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},Xu=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},
Prc=function(a,b,c){switch(b){case 1:a.reporter.reportProceed(Xu(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(Xu(c))}},Rrc=function(a,b,c){return new Qrc(a,b,c)},Xrc=function(a,b){a=a.internal.getClearcut();b=new Src(a,b);b=new Trc(Urc(b));a=a.getInterfaceType();return new Vrc(new Wrc(b,a))},Yrc=function(a,b,c,d){var e;d=m(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{f(a,b,c)}catch(g){e||(e=g)}}if(e)throw e;},
Zrc=function(a,b,c,d,e){e=m(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},fsc=function(a,b,c){var d=new Yu,e=kqc();c=(new $rc).setClientId(b.getClientId()).setApplication(b.getSocialApplicationOrUndefined()).setEntryPoint(c).setVersionName("1.0").setBaselineCl(828123362);d=new asc(d,1394,e,void 0,void 0,void 0,new bsc(c));d.setClientSideLogOnlyForDevelopment(!b.getEnableClearcut()||!1);b=csc(new dsc,Rqc.getExperimentIds());d.clearcut_.setClearExperimentIds(b);d.setComponentID("peoplekitweb");
d.clearcut_.setProductID(109303191);return new esc(a,d)},msc=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=gsc(hsc||(hsc=isc('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));f=new jsc(f,7)}else f=new Zu;else f=new Zu;d=d.getExperiments();a=f.loadExperiments(d.getApplication(),(new ksc).setPeopleApiEnv(a.apiEnv_),e);
Rqc=new lsc(d,a);c&&c(b)},osc=function(a,b,c,d,e,f){var g=c.beginSession(function(){},f.sessionOptions||new $u);return nsc(a,b,c,g,d,e,f)},nsc=function(a,b,c,d,e,f,g){msc({clientConfig:f,commonConfig:e,initializeIoC:lpc});f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=ru(psc,{classes:"aU4VQc"});a.appendChild(k);Gi(f.internal,14,!0)&&e.setStyle(1);Npc(k,e.getTheme());Hu({element:k,veid:64611,actions:["impression"],componentId:"peoplekitweb"});a=new av;
var l=Rrc(d,a,e.getEntryPoint()),r=Xrc(f,e.getEntryPoint());b=Lrc(k,b,d,a,l,r,e,f,new qsc(g.intelligence),c);ppc(b.getRoot(),c);c=fsc(k,f.internal.getClearcut(),e.getEntryPoint());c.start(rsc);return new ssc(k,b,a,l,c,e)},tsc=function(a){switch(a){case 0:return 28;case 1:return 24;case 2:return 20;default:throw Error("Ng`"+a);}},usc=function(a){var b=Number("2"),c=Number("4");return tsc(a)+2*b+2*c},vsc=function(a){var b;return Object.freeze({id:"jCCvxc",iconUrl:(b=bv.get(a))==null?void 0:b.get("jCCvxc"),
label:"Copy",keyboardShortcut:[512,67],veid:108906})},wsc=function(a){var b;return Object.freeze({id:"UkZFS",iconUrl:(b=bv.get(a))==null?void 0:b.get("UkZFS"),label:"Cut",keyboardShortcut:[512,88],veid:119506})},xsc=function(a){var b;return Object.freeze({id:"YCRBfe",iconUrl:(b=bv.get(a))==null?void 0:b.get("YCRBfe"),label:"Change name",keyboardShortcut:[16,69],veid:120676})},ysc=function(a){var b;return Object.freeze({id:"l1309",iconUrl:(b=bv.get(a))==null?void 0:b.get("l1309"),label:"Change email address",
keyboardShortcut:[16,70],veid:135428})},zsc=function(a){var b=cv?"Option":"Alt",c,d=Object,e=d.freeze;a=(c=bv.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"})},Asc=function(a){return a.map(function(b){if(cv)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)}})},Dsc=function(a,b){var c=uu(Lu.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=Asc(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("Ng`"+b);}d=ru(Bsc,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&Hu({element:d,veid:a.veid,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
return new Csc(d,a)},Gsc=function(a,b,c,d){var e=ru(Esc);Hu({element:e,veid:28041,actions:["impression"],componentId:"peoplekitweb"});var f=new Fsc(e);a.appendChild(e);return new dv(e,b,c,f,d)},Osc=function(a,b){var c=a.getPrimaryTarget().getContactId(),d=a.getPrimaryTarget().getProfileId();if(c)return Hsc(Isc(Jsc(),Ksc(c).setEdit(!0)));if(d)return Hsc(Lsc(Jsc(),(new ev).setObfuscatedGaiaId(d).setEdit(!0)));var e;c=((e=a.getPrimaryTarget().getName())==null?void 0:e.getGivenName())||b;var f;b=((f=
a.getPrimaryTarget().getName())==null?void 0:f.getFamilyName())||"";f=a.getTargetList().filter(function(g){return g.getTargetType()===1||g.getTargetType()===6}).map(function(g){return g.getDisplayValue()});a=a.getTargetList().filter(function(g){return g.getTargetType()===2||g.getTargetType()===7}).map(function(g){return g.getDisplayValue()});return Hsc(Msc(new fv,Nsc((new gv).setGivenName(c).setFamilyName(b).setEmailList(f),a)))},Psc=function(a){return(a==null?0:hv(a).isValid())?{isValid:!1,errorMessage:"Name can't be an email address"}:
{isValid:!0}},Vsc=function(a,b,c,d){var e=qoc(b);var f=Osc(b.result(),b.getDisplayNameWithOverrideApplied());var g=e.hovercardId;var k=e.label;var l=e.sublabel;b=e.photos;e=e.name;var r=d.description;d='<div peoplekit-id="'+iv("bN97Pc")+'"><div class="'+iv("peoplekitComponentsNameeditdialogImplDescription")+'">';r?(d+=jv(r)+" ",f='To edit this contact permanently, use <a href="'+(iv(kv(f))+'" target="_blank" class="'+iv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),
d+=f):(f='Show a different name to recipients of this message. To edit this contact permanently, use <a href="'+(iv(kv(f))+'" target="_blank" class="'+iv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f);d+='</div><div peoplekit-id="'+iv("PN08Xe")+'"></div></div>';f=lv(d);g=mv(nv(),'<div peoplekit-id="'+iv("tJHJj")+'" class="'+iv("peoplekitComponentsDialogImplAvatarHeader")+'" data-hovercard-id="'+iv(g)+'" data-name="'+iv(e)+'"><div class="'+iv("peoplekitComponentsDialogImplHeaderRow")+
'"><div class="'+iv("peoplekitComponentsDialogImplLeft")+'" aria-hidden="true">');d=lv('<div class="'+iv("peoplekitComponentsDialogImplAvatar")+'"><div class="'+iv("peoplekitComponentsDialogImplAvatarContainer")+'" peoplekit-id="'+iv("d6MZcd")+'"></div></div>');g=mv(ov(g,d),'</div><div class="'+iv("peoplekitComponentsDialogImplCenter")+'">');k=lv('<div class="'+iv("peoplekitComponentsDialogImplLabelContainer")+'"><div peoplekit-id="'+iv("E0kCZc")+'" class="'+iv("peoplekitComponentsDialogImplLabel")+
" "+iv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+Qsc(pv(k))+"</div>"+(l?'<div class="'+iv("peoplekitComponentsDialogImplSublabel")+" "+iv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+Qsc(pv(l))+"</div>":"")+"</div>");k=mv(ov(g,k),"</div></div></div>");k=ru(Opc,{content:f,header:k,confirmAction:!0,labelId:void 0});a.appendChild(k);a=su(k,"Sx9Kwc");l=Jpc(su(k,"IbE0S"),{label:"Cancel"});g=g={confirmButtonText:void 0};g=g.confirmButtonText;f="";switch(Oa(g)?g.toString():
g){case "Confirm":f+="Confirm";break;case "Hide":f+="Hide";break;case "Show":f+="Show";break;default:f+="Apply"}g=Jpc(su(k,"McfNlf"),{label:f});Npc(k,c.getTheme());Lpc(a,c.getStyle());g.getRoot();a=new Rsc(k,l,g);k=su(a.getRoot(),"d6MZcd");tu(k,b,36,36,c);c=su(a.getRoot(),"PN08Xe");b=ru(Ssc,{label:"Name",initialValue:e||"",id:uu(Tsc)});c.appendChild(b);c=new qv(b);return new Usc(a,c)},Wsc=function(a,b,c,d,e,f,g,k,l,r){a={resultType:c.result().getResultType(),avatarSize:tsc(f.getDensity()),resultListItemAvatarSize:fqc(f.getDensity()),
parent:a,ariaParent:b,selection:c,selectionsState:d,actionRequestCallbacks:e,appearanceConfig:f,chipConfig:g,chipCustomization:l,isRightToLeft:r,clientConfig:k};k=Xnc(k);return qpc(xu,k).create(a)},Xsc=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}}))},$sc=function(a){return JSON.parse(a).map(function(b){var c=Ysc(rv(b.id));b.dn&&c.setDisplayName(b.dn);b.fdn&&Zsc(c,!0);return c})},atc=function(a){return Zsc(Ysc(a.id()).setDisplayName(a.getDisplayNameOverride()),
a.getForceDisplayNameOverride())},ctc=function(a,b,c,d,e,f,g,k,l,r){return new btc(a,b,c,d,e,f,g,k,l,r)},ftc=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=dtc.height;if(!f){var g=etc();f=g;if(a.style[g]===void 0){var k=yua()+hj(g);a.style[k]!==
void 0&&(f=k)}dtc.height=f}(e=f)&&(a.style[e]=0);c.body.appendChild(d);var l=b.getSelection();l&&(l.selectAllChildren(d),c.execCommand("copy"))}finally{d&&c.body.removeChild(d)}},gtc=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 sv(c,e)});ftc(a.join(", "),b)},itc=function(a,b,c,d,e,f,g,k,l,r,w){a=new tv(a,b,c,d,e,f,g,k,l,r,w);return new htc(a,w)},ltc=function(a,b,
c,d,e,f,g,k,l,r,w){var x=new Fsc(a),C=new jtc({getPrevKeyCode:function(){return zu(a)?39:37},getNextKeyCode:function(){return zu(a)?37:39},navigatePastBegin:l.navigatePastBegin,navigatePastEnd:l.navigatePastEnd});e=itc(b,c,x,d,e,f,g,k,{chipClick:function(H,J){return C.onClick(H,new uv(J))},chipContextMenu:function(H,J){C.onContextMenu(new uv(J))},chipDrop:l.chipDrop||function(){},chipEditContactMethod:l.chipEditContactMethod||function(){}},r,w);C.attach(a,e.getNavigatable());return new ktc(e,b,c,
d,r,w)},mtc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Ng`"+a);}},otc=function(a){a=a.replace(/\\"/g,"%%").matchAll(ntc);return[].concat(q(a)).map(function(b){var c=b[0].replace(RegExp("%%","g"),'\\"');return{value:c,startIndex:b.index||0,length:c.length}})},ptc=function(a,b){var c=otc(a);c=m(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}},qtc=function(a,b){return a.length!==b.length?!1:a.length===b.length&&a.every(function(c,d){return c.equals(b[d])})},wtc=function(a,b,c,d,e,f,g,k,l){var r=new rtc(c,new vv(c,d,k,l),f),w=ru(stc,{max_height:void 0});Lpc(w,e.getStyle());a.appendChild(w);a=su(w,"kE8AEc");var x=ru(ttc,{multiSelectable:!0,orientation:"horizontal",isKeyboardFocusable:!1,ariaLabel:"Search Field"});a.appendChild(x);a=ru(utc,{id:uu(vtc),ariaLabel:"",helpText:e.helpText,
shouldAutofocus:e.shouldAutofocus,height:usc(e.getDensity()),densityClass:mtc(e.getDensity())});var C=su(a,"BbVjBd");x.appendChild(a);f=ltc(x,c,r,d,g,e,e,f,{navigatePastEnd:function(){C.focus()},chipDrop:function(){C.focus()},chipEditContactMethod:function(H){C.value=H;H=C.dispatchEvent;var J=xoc("input",C,"Event");H.call(C,J);C.focus()}},k,l);b=b(C);return new wv(w,f,a,b,c,r,d,k,e,l)},Atc=function(a,b,c,d,e,f){e.internal.getClearcut().setInterfaceType(4);e.internal.getClearcut().setComponentFlow(4);
d.setAllowContactMethodEditing(Gi(e.internal,5));var g=ru(xtc,{classes:"aU4VQc"});a.appendChild(g);Gi(e.internal,14,!0)&&d.setStyle(1);Npc(g,d.getTheme());Hu({element:g,veid:64611,actions:["impression"],componentId:"peoplekitweb"});ppc(g,b);var k=Xrc(e,d.getEntryPoint()),l=new av,r=Rrc(c,l,d.getEntryPoint()),w=new qsc(f.intelligence);a=(new ytc).setFilter(c.options_.getFilter()).setUseOriginalDisplayValue(d.getUseOriginalDisplayValue());a=wtc(g,function(x){return Lrc(g,x,c,l,r,k,d,e,w,b)},l,b,d,e,
w,a,k);f=fsc(g,e.internal.getClearcut(),d.getEntryPoint());f.start(rsc);return new ztc(g,a,l,r,f)},Ctc=function(a,b,c,d,e){var f=b.beginSession(function(){},e.sessionOptions||new $u);return Btc(a,b,f,c,d,e)},Btc=function(a,b,c,d,e,f){msc({clientConfig:e,commonConfig:d,initializeIoC:lpc});return Atc(a,b,c,d,e,f)},Dtc=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&xv(a.id)&&a.id.getType()!==9?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},Gtc=function(a,b,c){if(xv(a.id)||
xv(b.id)){var d=Etc.has(a.id.getType()),e=Etc.has(b.id.getType());if(d!==e)return d?-1:1;if(xv(a.id)&&xv(b.id))return Ftc(a,b,c,!1)}d=Dtc(a,c);c=Dtc(b,c);(c=d!==c?d>c?-1:1:0)||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},Ftc=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?Gtc(a,b,c):0},Itc=function(a){return a?Htc.get(a)||0:0},Mtc=function(a){switch(a.getValueCase()){case 2:return Av(a.getEmail().getValue()||
"");case 3:var b=a.getPhone();return b.getOriginalValue()&&b.getCanonicalValue()?(a=Jtc(b.getOriginalValue()||""),b=Jtc(b.getCanonicalValue()||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):Jtc(b.getCanonicalValue()||b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=$l(a,Ktc,4,Bv);if(a.hasProfileId())return a=a.getProfileId()||"",new Cv(8,xs(a).toLowerCase(),a);switch(xo(a,Dv)){case 2:return a=a.getEmail()||"",new Cv(6,xs(a).toLowerCase(),a);case 3:return Ltc(a.getPhone()||"")}}return Ev},
Qtc=function(a){return Ci(a,Ntc,5,Di()).map(function(b){switch(b.getIdCase()){case 1:return Otc(b.getProfileId()||"");case 2:return Ptc(b.getContactId()||"");default:return null}}).filter(Boolean)},Rtc=function(a,b){return yi(a,Fv,3)&&X(a,Fv,3).getIsPlaceholder()?3:Gv(b,8)?1:0},Stc=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},Ttc=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},Utc=function(a){return!!a&&
!!Gv(a,4)},Wtc=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"+Vtc(a):""},$tc=function(a){var b=void 0;if(X(a,Fv,3)){var c;b=(c=b)!=null?c:new Hv;Iv(b,Xtc,X(a,Fv,3))}if(X(a,Ytc,5)){var d;b=(d=b)!=null?d:new Hv;Iv(b,Ztc,X(a,Ytc,5))}return b},cuc=function(a){var b=
void 0;if(X(a,auc,9)){var c;b=(c=b)!=null?c:new Hv;Iv(b,buc,X(a,auc,9))}return b},euc=function(a){var b=new Jv,c=a?2:1;duc(b.setEventType(4),c).setToken(a);return b},guc=function(a,b){var c=new Kv;c=(new Jv).setLookupInfo(c);Lv(c.setEventType(6),9).setItemCount(a.length).setQueryScope(fuc.get(b)||0);return c},huc=function(){var a=new Jv;Lv(a.setEventType(6),10);return a},iuc=function(){var a=new Jv;Lv(a.setEventType(6),2);return a},juc=function(){var a=new Jv;Lv(a.setEventType(6),13);return a},kuc=
function(a,b){var c=new Jv;Lv(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(fuc.get(b)||0);return c},luc=function(a){var b=new Jv;Lv(b.setEventType(6),5).setQueryScope(fuc.get(a)||0);return b},muc=function(a,b){switch(a){case 8:case 3:case 17:return(new Mv).setProfileId(b);case 1:case 6:return(new Mv).setEmail(b);case 7:case 2:return(new Mv).setPhone(b);case 13:case 14:return a=new Mv,Co(a,4,Nv,b);case 4:case 9:return(new Mv).setContactId(b);default:return null}},puc=function(a){return((a=
Ci(a,nuc,2,Di()).find(function(b){return Ov(b,1)===1}))?ouc.get(Ov(a,2)):0)||0},Pv=function(a){return(a||"").trim()},uuc=function(a,b){if(b.hasAffinity()){var c=a.setFieldLoggingId;var d=b.getAffinity();d=Wsa(fm(d,1,void 0,Qv,uc));c.call(a,quc(Pv(d)))}if(b.hasName()){var e=b.getName();c=a.setName;d=(new ruc).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 suc).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(tuc.get(b.getType())||0)))},wuc=function(a,b){if(b.hasProfileId())switch(xo(b,Dv)){case 2:var c=Pv(b.getEmail());return vuc(Rv(a.id).setValue(Pv(b.getProfileId())),(new Sv).setType(1).setValue(c));case 3:return c=Pv(b.getPhone()),vuc(Rv(a.id).setValue(Pv(b.getProfileId())),(new Sv).setType(2).setValue(c));default:return b=Pv(b.getProfileId()),Rv(a.id).setValue(b)}switch(xo(b,
Dv)){case 2:return b=Pv(b.getEmail()),vuc(Rv(a.id).setValue(b),(new Sv).setType(1).setValue(b));case 3:return b=Pv(b.getPhone()),vuc(Rv(a.id).setValue(b),(new Sv).setType(2).setValue(b));default:return b=Pv(b.getProfileId()),Rv(a.id).setValue(b)}},zuc=function(a,b){var c=Rv(a.id).setIsMe(!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&uuc(c,b);a.group&&((b=Ci(a.group,xuc,6,Di()).find(function(d){return mr(d,1,yuc)!=null}))?c.setValue(Pv(Tv(b,1,yuc))):a.group.hasGroupId()&&c.setValue(Pv(a.group.getGroupId())));
a.targetExtendedData&&c.setExtendedData(a.targetExtendedData);a.target=c},Cuc=function(a){return function c(){var d,e;return Auc(c,function(f){switch(f.nextAddress){case 1:$d(f,2),d=0;case 4:if(!(d<a)){f.jumpTo(2);break}e=Buc;return z(f,d,7);case 7:e(f.yieldResult);d++;f.jumpTo(4);break;case 2:Zd(f),ae(f,0)}})}()},Euc=function(a){return new Duc(a)},Huc=function(a){if(a.getTargetType()===8){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=Fuc.get(b)))return b}return(b=Guc.get(a.getTargetType()))?
b:xv(a.getId())?8:0},Juc=function(a,b,c){var d=new Uv,e=new Vv;Ni(d,Vv,2,e);e.setProvenance(b);b=new Wv;Ni(d,Wv,1,b);Pi(b,9,c===1);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=Huc(a)===8?8:a.getProfileId()?3:4;Hn(b,8,c);c=null;a.getTargetType()===8&&(e=a.getOriginatingField())&&Fuc.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);xv(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=Huc(a);Hn(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||
null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(a.getDataSource()===3);xp(b,7)===8&&b.setGroupId(a.getId().getValue());return new Iuc(a,d)},Luc=function(a){a=Kuc.indexOf(a.provenance);return a<0?Kuc.length:a},Muc=function(a){return a.containerIds&&a.containerIds.some(function(b){return b.getType()===3})},Nuc=function(a){var b;return(new Set(((b=a.containerIds)!=null?b:[]).map(String))).size},Puc=function(a,b){b.getUseOriginalDisplayValue()&&(a=new Map(Array.from(a,function(c){var d=
m(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=ghb(d,new Ouc(f,e))}return[c,d]})));return a},Suc=function(a){return Gi(a,21)?new Quc:Ruc},Tuc=function(a){return a!==0&&a!==12},Vuc=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&&Uuc(b,d.substring(c+
1));a=a.substring(0,c+1)}if(a==="@")return b;Uuc(b,a);return b},Uuc=function(a,b){a.push(b);var c=b.length+1;Wuc.lastIndex=0;for(var d=Wuc.exec(b);d&&d.index<c;d=Wuc.exec(b))a.push(b.substring(Number(Wuc.lastIndex)))},Xv=function(a){a=Xuc(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=Yuc[e];f?e=f:(f="AAAAAA*CEEEEIIIIDNOOOOOx0UUUUYpBaaaaaa*ceeeeiiiionooooo^ouuuuypyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi**JjKkkLlLlLLLlllNnNnNnnNnOoOoOo**RrRrRrSsSsSsSsTtTtttUuUuUuUuUuUuWwYyYZzZzZz"[e-
192],e=f==="^"?null:f)}e&&(c!==d&&b.push(a.substr(c,d-c)),c=d+1,b.push(e))}b.length>0&&(b.push(a.substr(c)),a=b.join(""));return a.replace(Zuc,"").toUpperCase().toLowerCase()},avc=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split($uc)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=Xv(c.value);c=m(Vuc(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})},bvc=function(a){return a.substring(a.indexOf("@")+1)},cvc=function(a){return a.substring(0,a.indexOf("@")+1)},fvc=function(a,b){a=a.match(dvc);b=Av(b);return a&&a.length&&(a=a[0]||"")&&!b.equals(Av(a.replace(evc,"")))?!0:!1},gvc=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)}}},kvc=function(a,
b,c,d){b=hvc(a,b).map(function(e){var f=m(e);e=f.next().value;f=f.next().value;return new ivc(e,f)});c=hvc(a,c).map(function(e){var f=m(e);e=f.next().value;f=f.next().value;return new ivc(e,f)});a=hvc(a,d).map(function(e){var f=m(e);e=f.next().value;f=f.next().value;return new ivc(e,f)});return new jvc(b,c,a)},lvc=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}},mvc=
function(a){return a.reduce(function(b,c){var d=lvc(c);if(b.has(d)){var e;(e=b.get(d))==null||e.push(c)}else b.set(d,[c]);return b},new Map)},nvc=function(a,b){b=b===void 0?new Yv:b;var c=new Map;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=m(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}},pvc=function(a,b){return!a||a instanceof ovc?a:new ovc(a,b)},rvc=function(a){var b=new qvc,c=b.setQueryId(Zm(Qb(fm(a,3)))).setSelectionId(Zm(Qb(fm(a,
4)))),d=Zm(Qb(fm(a,5)));wn(c,3,d).setInstanceId(a.getInstanceIdOrUndefined()).setAffinityVersion(a.getAffinityVersionOrUndefined());return b},tvc=function(a){var b=new svc,c;if(a=(c=X(a,Zv,18))==null?void 0:c.getSessionState())c=rvc(a),Ni(b,qvc,2,c);return b},vvc=function(a){return uvc.get(a)||0},yvc=function(a,b){var c=wvc(xvc("PeopleStore").setLogSource(xi(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(828123362).setEnableClearcut(a.getEnableClearcut()),
[].concat(q(b.getExperiments().getExperimentIdsList()),q($v?$v.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());if(a=Ci(a,aw,5,Di()).find(function(d){return d.getEntryPoint()===0}))c.setEventSource(xp(a,4)),c.setEventSourceId(xp(a,4));return c},Avc=function(a,b){return new zvc(a,b)},Bvc=function(a){yi(a,bw,12)?(a=X(a,bw,12),a=X(a,aw,2)):a=X(a,aw,10);return a||new aw},Cvc=function(a){yi(a,bw,12)?(a=X(a,bw,12),a=X(a,aw,3)):a=X(a,aw,10);return a||new aw},
Dvc=function(a){return a.filter(function(b){var c,d=(c=Uu(b))==null?void 0:xi(c,4),e;return((e=b.getInfo())==null?void 0:xi(e,8))!==3||d!==2&&d!==1?!0:!1})},Fvc=function(a){return a.filter(function(b){var c;return(b=(c=b.getInfo())==null?void 0:c.getFieldType())&&Evc.has(b)?!1:!0})},Gvc=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)},Hvc=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return pn(a,3)+":"+pn(a,4)+":"+
pn(a,5)+":"+a.getInstanceId()},Ivc=function(a){return yi(a,Vv,2)?Uu(a).getContext()||0:0},Jvc=function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?pn(d,3)+"-"+pn(d,4)+"-"+pn(d,5)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},cw=function(a,b,c,d){d=d===void 0?!1:d;a=a.filter(function(g){return!Gi(g,4)});if(d){d=m(a);for(var e=d.next();!e.done;e=d.next())Pi(e.value,4,!0)}if(c)for(d=a.filter(function(g){return g&&
!g.hasSessionState()}),d=m(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=Jvc(a);c=[];a=m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(g){return g&&g.hasSessionState()})){e=e.getSessionState();var f=new Kvc;f.setSessionState(e);f.setEventType(b);Oi(f,3,d);f.setEventSources(X(e,aw,10));c.push(f)}return c},Lvc=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new dw},Pvc=function(a,b,
c){var d=Mvc(b.getTargetType(),b.getValue()),e=[],f=e.concat;var g=Dm(b,5,Di());g=q(g.map(Otc));var k=q(Dm(b,6,Di()).map(Ptc));var l=Dm(b,13,Di());e=f.call(e,g,k,q(l.map(Nvc)));Ovc.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:Dm(b,6,Di()).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}},Qvc=function(a){return(a||"").trim()},Tvc=function(a){var b=a.resultData,c=a.targetData,d=Rv(a.id).setDataSource(a.dataSource||0).setIsMe(!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);jm(b,1)&&d.setResultType(b.getResultType());c.hasValue()&&d.setValue(Qvc(c.getValue()));c.hasCanonicalValue()&&d.setCanonicalValue(Qvc(c.getCanonicalValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();
d.setName((new ruc).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&(e=c.getPhoto(),d.setPhoto((new suc).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(kn(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()||
"");jm(c,10)&&d.setOrgState(c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&d.setTagList(c.getTagList().map(function(g){return(new ew).setAltText(g.getAltText()).setIconUrl(g.getIconUrl())}));c.hasExtendedData()&&d.setExtendedData(c.getExtendedData());yi(c,fw,9)&&(a=c.getEmailSecurityInfo(),d.setEmailSecurityInfo(Rvc(a.getCertificateStatus(),Ym(a.getCertificateExpirySec()),a.getEncryptionSupport()==4||a.getEncryptionSupport()==2)));yi(c,gw,17)&&(c=c.getReachabilityInfo(),
d.setReachabilityInfo(new Svc(c.getReachabilityStatus(),c.getClientData())));return d},Vvc=function(a){a.cacheConfigurators_.push(new Uvc);return a},Wvc=function(){var a=window.gapi;if(!a)return Promise.reject(Error("fh"));if(a.client&&a.client.load)return Promise.resolve(a);Vm("loading gapi client");return new Promise(function(b,c){a.load("client",{callback:function(){Vm("gapi client has finished loading");b(a)},onerror:c})})},Xvc=function(a,b){var c={};return Eh("a",(c.href=b,c.target="_blank",
c.rel="noopener noreferrer nofollow",c),a)},$vc=function(){return p(qu).getEnvironmentType()==="QA"?Yvc:Zvc},cwc=function(){return p(qu).getEnvironmentType()==="QA"?awc:bwc},fwc=function(){return p(qu).getEnvironmentType()==="QA"?dwc:ewc},gwc=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},hwc=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},
iwc=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("a");},da=iwc(this),jwc="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");da.BigInt64Array&&(jwc.push("BigInt64"),jwc.push("BigUint64"));
var lwc=function(a,b){if(b)for(var c=0;c<jwc.length;c++)kwc(jwc[c]+"Array.prototype."+a,b)},hw=function(a,b){b&&kwc(a,b)},kwc=function(a,b){var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&hwc(c,a,{configurable:!0,writable:!0,value:b})},mwc=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=gwc(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),nwc;if(typeof Object.setPrototypeOf=="function")nwc=Object.setPrototypeOf;else{var owc;a:{var pwc={a:!0},qwc={};try{qwc.__proto__=pwc;owc=qwc.a;break a}catch(a){}owc=!1}nwc=owc?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("b`"+a);return a}:null}
var iw=nwc,Y=function(a,b){a.prototype=gwc(b.prototype);a.prototype.constructor=a;if(iw)iw(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},rwc=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},m=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:rwc(a)};
throw Error("c`"+String(a));},ij=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},q=function(a){return a instanceof Array?a:ij(m(a))},kw=function(a){return jw(a,a)},jw=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},lw=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},swc=typeof Object.assign=="function"?Object.assign:function(a,b){if(a==null)throw new TypeError("d");a=Object(a);for(var c=1;c<arguments.length;c++){var d=arguments[c];
if(d)for(var e in d)lw(d,e)&&(a[e]=d[e])}return a};hw("Object.assign",function(a){return a||swc});var mw=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};mw.prototype.start_=function(){if(this.isRunning_)throw new TypeError("f");this.isRunning_=!0};mw.prototype.next_=function(a){this.yieldResult=a};
mw.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};mw.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var z=function(a,b,c){a.nextAddress=c;return{value:b}};mw.prototype.jumpTo=function(a){this.nextAddress=a};
var ce=function(a){a.nextAddress=0},Yd=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)},$d=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0},bt=function(a,b){a.nextAddress=b;a.catchAddress_=0},be=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Zd=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},ae=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},twc=function(a){this.context_=new mw;this.program_=a};
twc.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return uwc(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return vwc(this)};var wwc=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return uwc(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return vwc(a)};
twc.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return uwc(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return vwc(this)};
var uwc=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("e`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(g){return a.context_.yieldAllIterator_=null,a.context_.throw_(g),vwc(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return vwc(a)},vwc=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}},xwc=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return wwc(a,b)};this[Symbol.iterator]=function(){return this}},Auc=function(a,b){b=new xwc(new twc(b));iw&&a.prototype&&iw(b,a.prototype);
return b},ywc=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})},y=function(a){return ywc(new xwc(new twc(a)))};
hw("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;hwc(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("g");return new b(c+(f||"")+"_"+d++,f)};return e});
hw("Symbol.iterator",function(a){if(a)return a;a=Symbol("h");hwc(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return zwc(rwc(this))}});return a});hw("Symbol.asyncIterator",function(a){return a?a:Symbol("i")});hw("Symbol.toStringTag",function(a){return a?a:Symbol("j")});
var zwc=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},zha=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("k")))})};a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},
bd=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b},Buc=function(a){return a};hw("globalThis",function(a){return a||da});hw("Reflect",function(a){return a?a:{}});hw("Reflect.construct",function(){return mwc});hw("Reflect.setPrototypeOf",function(a){return a?a:iw?function(b,c){try{return iw(b,c),!0}catch(d){return!1}}:null});
hw("Promise",function(a){function b(){this.batch_=null}function c(g){return g instanceof e?g:new e(function(k){k(g)})}if(a)return a;b.prototype.asyncExecute=function(g){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(g)};var d=da.setTimeout;b.prototype.asyncExecuteFunction=function(g){d(g,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var k=0;k<g.length;++k){var l=
g[k];g[k]=null;try{l()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};b.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var e=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}};e.prototype.createResolveAndReject_=function(){function g(r){return function(w){l||(l=!0,r.call(k,w))}}var k=this,l=!1;return{resolve:g(this.resolveTo_),
reject:g(this.reject_)}};e.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("l"));else if(g instanceof e)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var k=g!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(g):this.fulfill_(g)}};e.prototype.resolveToNonPromiseObj_=function(g){var k=void 0;try{k=g.then}catch(l){this.reject_(l);return}typeof k=="function"?this.settleSameAsThenable_(k,g):this.fulfill_(g)};e.prototype.reject_=
function(g){this.settle_(2,g)};e.prototype.fulfill_=function(g){this.settle_(1,g)};e.prototype.settle_=function(g,k){if(this.state_!=0)throw Error("m`"+g+"`"+k+"`"+this.state_);this.state_=g;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;d(function(){if(g.notifyUnhandledRejection_()){var k=da.console;typeof k!=="undefined"&&k.error(g.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var g=da.CustomEvent,k=da.Event,l=da.dispatchEvent;if(typeof l==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof k==="function"?g=new k("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return l(g)};e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var g=
0;g<this.onSettledCallbacks_.length;++g)f.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(g){var k=this.createResolveAndReject_();g.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(g,k){var l=this.createResolveAndReject_();try{g.call(k,l.resolve,l.reject)}catch(r){l.reject(r)}};e.prototype.then=function(g,k){function l(C,H){return typeof C=="function"?function(J){try{r(C(J))}catch(O){w(O)}}:
H}var r,w,x=new e(function(C,H){r=C;w=H});this.callWhenSettled_(l(g,r),l(k,w));return x};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.callWhenSettled_=function(g,k){function l(){switch(r.state_){case 1:g(r.result_);break;case 2:k(r.result_);break;default:throw Error("n`"+r.state_);}}var r=this;this.onSettledCallbacks_==null?f.asyncExecute(l):this.onSettledCallbacks_.push(l);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(g){return new e(function(k,l){l(g)})};e.race=
function(g){return new e(function(k,l){for(var r=m(g),w=r.next();!w.done;w=r.next())c(w.value).callWhenSettled_(k,l)})};e.all=function(g){var k=m(g),l=k.next();return l.done?c([]):new e(function(r,w){function x(J){return function(O){C[J]=O;H--;H==0&&r(C)}}var C=[],H=0;do C.push(void 0),H++,c(l.value).callWhenSettled_(x(C.length-1),w),l=k.next();while(!l.done)})};return e});var nw=function(a,b,c){if(a==null)throw new TypeError("o`"+c);if(b instanceof RegExp)throw new TypeError("p`"+c);return a+""};
hw("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=nw(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});hw("Object.setPrototypeOf",function(a){return a||iw});hw("Symbol.dispose",function(a){return a?a:Symbol("q")});
var Awc=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};hw("Array.prototype.keys",function(a){return a?a:function(){return Awc(this,function(b){return b})}});hw("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
var Bwc=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}};hw("Array.prototype.find",function(a){return a?a:function(b,c){return Bwc(this,b,c).v}});
hw("WeakMap",function(a){function b(){}function c(l){var r=typeof l;return r==="object"&&l!==null||r==="function"}function d(l){if(!lw(l,f)){var r=new b;hwc(l,f,{value:r})}}function e(l){var r=Object[l];r&&(Object[l]=function(w){if(w instanceof b)return w;Object.isExtensible(w)&&d(w);return r(w)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),r=Object.seal({}),w=new a([[l,2],[r,3]]);if(w.get(l)!=2||w.get(r)!=3)return!1;w.delete(l);w.set(r,4);return!w.has(l)&&w.get(r)==4}catch(x){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,k=function(l){this.id_=(g+=Math.random()+1).toString();if(l){l=m(l);for(var r;!(r=l.next()).done;)r=r.value,this.set(r[0],r[1])}};k.prototype.set=function(l,r){if(!c(l))throw Error("r");d(l);if(!lw(l,f))throw Error("s`"+l);l[f][this.id_]=r;return this};k.prototype.get=function(l){return c(l)&&lw(l,f)?l[f][this.id_]:void 0};k.prototype.has=function(l){return c(l)&&lw(l,f)&&lw(l[f],this.id_)};k.prototype.delete=
function(l){return c(l)&&lw(l,f)&&lw(l[f],this.id_)?delete l[f][this.id_]:!1};return k});
hw("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}),l=new a(m([[k,"s"]]));if(l.get(k)!="s"||l.size!=1||l.get({x:4})||l.set({x:4},"t")!=l||l.size!=2)return!1;var r=l.entries(),w=r.next();if(w.done||w.value[0]!=k||w.value[1]!="s")return!1;w=r.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!r.next().done?!1:!0}catch(x){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]=
f();this.size=0;if(k){k=m(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}};c.prototype.set=function(k,l){k=k===0?0:k;var r=d(this,k);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=l:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:l},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],
k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,
function(k){return k.value})};c.prototype.forEach=function(k,l){for(var r=this.entries(),w;!(w=r.next()).done;)w=w.value,k.call(l,w[1],w[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,l){var r=l&&typeof l;r=="object"||r=="function"?b.has(l)?r=b.get(l):(r=""+ ++g,b.set(l,r)):r="p_"+l;var w=k[0][r];if(w&&lw(k[0],r))for(k=0;k<w.length;k++){var x=w[k];if(l!==l&&x.key!==x.key||l===x.key)return{id:r,list:w,index:k,entry:x}}return{id:r,list:w,index:-1,entry:void 0}},e=function(k,
l){var r=k[1];return zwc(function(){if(r){for(;r.head!=k[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:l(r)};r=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},g=0;return c});
hw("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(m([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
m(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});hw("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)lw(b,d)&&c.push(b[d]);return c}});hw("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
hw("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}});hw("String.prototype.includes",function(a){return a?a:function(b,c){return nw(this,b,"includes").indexOf(b,c||0)!==-1}});hw("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
hw("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(k){return k};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});hw("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)lw(b,d)&&c.push([d,b[d]]);return c}});
hw("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});hw("Number.EPSILON",function(){return 2.220446049250313E-16});hw("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});hw("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});hw("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
hw("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});hw("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=nw(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}});hw("Array.prototype.entries",function(a){return a?a:function(){return Awc(this,function(b,c){return[b,c]})}});
hw("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}});hw("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});hw("Array.prototype.values",function(a){return a?a:function(){return Awc(this,function(b,c){return c})}});
hw("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}});lwc("fill",function(a){return a?a:Array.prototype.fill});
hw("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("t`"+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("u");c[d[0]]=d[1]}return c}});
hw("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("v");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
hw("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}});hw("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)}});
hw("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}});hw("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Bwc(this,b,c).i}});hw("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}});
hw("String.prototype.repeat",function(a){return a?a:function(b){var c=nw(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("w");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});hw("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;})})}});
hw("String.prototype.matchAll",function(a){return a?a:function(b){if(b instanceof RegExp&&!b.global)throw new TypeError("x");var c=new RegExp(b,b instanceof RegExp?void 0:"g"),d=this,e=!1,f={next:function(){if(e)return{value:void 0,done:!0};var g=c.exec(d);if(!g)return e=!0,{value:void 0,done:!0};g[0]===""&&(c.lastIndex+=1);return{value:g,done:!1}}};f[Symbol.iterator]=function(){return f};return f}});var Cwc=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
hw("Array.prototype.at",function(a){return a?a:Cwc});lwc("at",function(a){return a?a:Cwc});hw("String.prototype.at",function(a){return a?a:Cwc});hw("Number.parseInt",function(a){return a||parseInt});hw("Reflect.isExtensible",function(a){return a?a:typeof Object.isExtensible=="function"?Object.isExtensible:function(){return!0}});hw("Reflect.getOwnPropertyDescriptor",function(a){return a||Object.getOwnPropertyDescriptor});hw("Reflect.getPrototypeOf",function(a){return a||Object.getPrototypeOf});
var Dwc=function(a,b){for(;a;){var c=Reflect.getOwnPropertyDescriptor(a,b);if(c)return c;a=Reflect.getPrototypeOf(a)}};hw("Reflect.set",function(a){return a?a:function(b,c,d,e){var f=Dwc(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}});hw("Reflect.get",function(a){return a?a:function(b,c,d){if(arguments.length<=2)return b[c];var e=Dwc(b,c);if(e)return e.get?e.get.call(d):e.value}});
hw("String.prototype.codePointAt",function(a){return a?a:function(b){var c=nw(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}}});
hw("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("y`"+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});var Ewc=function(a,b){a=a!==void 0?String(a):" ";return b>0&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):""};
hw("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=nw(this,null,"padStart");return d+Ewc(c,b-d.length)}});hw("Set.prototype.difference",function(a){return a?a:function(b){Fwc(this);Gwc(b);var c=Hwc(this,b);b=new Set(this);var d=c.smallerSetIterator;c=c.largerSet;for(var e=d.next();!e.done;)c.has(e.value)&&b.delete(e.value),e=d.next();return b}});
hw("Set.prototype.intersection",function(a){return a?a:function(b){Fwc(this);Gwc(b);var c=new Set,d=Hwc(this,b);b=d.smallerSetIterator;d=d.largerSet;for(var e=b.next();!e.done;)d.has(e.value)&&c.add(e.value),e=b.next();return c}});
var Gwc=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("z");},Hwc=function(a,b){if(a.size<=b.size)a={smallerSetIterator:a.keys(),largerSet:b};else{b=b.keys();if(typeof b!=="object"||b===null||typeof b.next!=="function")throw new TypeError("A");a={smallerSetIterator:b,largerSet:a}}return a},Fwc=function(a){if(!(a instanceof Set))throw new TypeError("B");};
hw("String.prototype.padStart",function(a){return a?a:function(b,c){var d=nw(this,null,"padStart");return Ewc(c,b-d.length)+d}});
hw("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)}});hw("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});var Iwc=Iwc||{},ra=this||self,Jwc=function(a,b){var c=Ou("WIZ_global_data.oxN3nb");a=c&&c[a];return a!=null?a:b},ow=ra._F_toggles_default_b||[],Ou=function(a,b){a=a.split(".");b=b||ra;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b},xca=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},Na=function(a){var b=xca(a);return b=="array"||b=="object"&&typeof a.length=="number"},Oa=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},
Aba=function(a){return Object.prototype.hasOwnProperty.call(a,Kwc)&&a[Kwc]||(a[Kwc]=++Lwc)},Kwc="closure_uid_"+(Math.random()*1E9>>>0),Lwc=0,Mwc=function(a,b,c){return a.call.apply(a.bind,arguments)},Nwc=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)}},nj=function(a,b,c){nj=Function.prototype.bind&&
Function.prototype.bind.toString().indexOf("native code")!=-1?Mwc:Nwc;return nj.apply(null,arguments)},pw=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)}},Owc=function(a){(0,eval)(a)},qw=function(a,b){a=a.split(".");for(var c=ra,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},ac=function(a){return a},rw=function(a,b){function c(){}c.prototype=b.prototype;
a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}};var sw=function(a,b,c,d){var e=arguments.length,f=e<3?b:d===null?d=Object.getOwnPropertyDescriptor(b,c):d,g;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")f=Reflect.decorate(a,b,c,d);else for(var k=a.length-1;k>=0;k--)if(g=a[k])f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f;e>3&&f&&Object.defineProperty(b,c,f)},Pwc=function(a){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata("design:type",a)};var Qwc={agentDisplayName:"Default Duckie",agentDescription:"The default Duckie you know and love."},tw={agentId:"duckie_on_goose",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Big Bird",agentDescription:"The default Duckie you know and love, on a larger model.",iconName:"spark"},uw={agentId:"duckie_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Agentic Search",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},
vw={agentId:"duckie_dynamic",modelId:"gemini_pro-2.5-prev-x3",agentDisplayName:"Dynamic RAG",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},Rwc={agentId:"nexus_experimental_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Experimental Duckie with Nexus integration."},Swc={agentId:"spanner_experimental_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Spanner",agentDescription:"Experimental Duckie with Spanner integration."},
Twc=[Qwc,uw,{agentId:"nexus_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Duckie with Nexus integration."},Rwc,{agentId:"search_debug_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Search Debug",agentDescription:"Duckie with Search Debug (go/search-applied-ai) integration."},Swc,{agentId:"quil_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Quil",agentDescription:"Duckie with QuIL (go/quil) integration."},{agentId:"datanexus_dynamic",modelId:"gemini_flash-2.5-x3",
agentDisplayName:"DataNexus",agentDescription:"Duckie with DataNexus integration."},{agentId:"a2a:devintel",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Fieldglass Agent",agentDescription:"Duckie with DevIntel integration."},{agentId:"a2a:datanexus_gdm",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"DataNexus GDM",agentDescription:"Duckie with DataNexus GDM integration."},{agentId:"a2a:xmanager",modelId:"gemini-for-google-2.5-flash",agentDisplayName:"XManager",agentDescription:"Duckie with XManager integration."},
{agentId:"a2a:taskflow_agent",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"TaskFlow Agent",agentDescription:"Duckie with TaskFlow integration."}];var Uwc={agentId:"a2a:gpp",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"},Vwc={agentId:"a2a:gpp_experimental",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"};var aa=globalThis;var eaa=Object.getOwnPropertyDescriptor,jaa=Object.defineProperty,naa=Object.getPrototypeOf,Baa=Object.create,Caa=Array.prototype.slice,Iaa=ba("addEventListener"),Jaa=ba("removeEventListener"),raa=ba(""),Wwc=typeof window!=="undefined",Xwc=Wwc?window:void 0,fa=Wwc&&Xwc||globalThis,Ywc=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope,uaa=!("nw"in fa)&&typeof fa.process!=="undefined"&&fa.process.toString()==="[object process]",Daa=!uaa&&!Ywc&&!(!Wwc||!Xwc.HTMLElement),Eaa=typeof fa.process!==
"undefined"&&fa.process.toString()==="[object process]"&&!Ywc&&!(!Wwc||!Xwc.HTMLElement),haa={},Zwc=ba("enable_beforeunload"),iaa=function(a){if(a=a||fa.event){var b=haa[a.type];b||(b=haa[a.type]=ba("ON_PROPERTY"+a.type));var c=this||a.target||fa;b=c[b];Daa&&c===Xwc&&a.type==="error"?(c=a,c=b&&b.call(this,c.message,c.filename,c.lineno,c.colno,c.error),c===!0&&a.preventDefault()):(c=b&&b.apply(this,arguments),a.type==="beforeunload"&&fa[Zwc]&&typeof c==="string"?a.returnValue=c:c==void 0||c||a.preventDefault());
return c}},ha=ba("originalInstance");var waa={useG:!0},la={},vaa={},yaa=new RegExp("^"+raa+"(\\w+)(true|false)$"),taa=ba("propagationStopped");var Haa=ba("zoneTask");rw(pa,Error);pa.prototype.name="CustomError";var $wc;rw(Maa,pa);Maa.prototype.name="AssertionError";var Raa=void 0,Paa,Qaa,axc=typeof TextDecoder!=="undefined",Vaa,Uaa=typeof String.prototype.isWellFormed==="function",Taa=typeof TextEncoder!=="undefined";var bxc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};var Aa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},cxc=/&/g,dxc=/</g,exc=/>/g,fxc=/"/g,gxc=/'/g,hxc=/\x00/g,ixc=/[\x00&<>"']/;var jxc=!!(ow[0]>>17&1),kxc=!!(ow[0]&4096),lxc=!!(ow[0]>>18&1),mxc=!!(ow[0]&16),nxc=!!(ow[0]&256),oxc=!!(ow[0]&32);var aba=jxc?lxc:Jwc(610401301,!1),aJb=jxc?mxc:Jwc(1331761403,!1),Pda=jxc?kxc||!nxc:Jwc(748402147,!0),pxc=jxc?oxc:Jwc(824648567,!1);var Ca,qxc=ra.navigator;Ca=qxc?qxc.userAgentData||null:null;var tba=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},Ja=Array.prototype.forEach?function(a,b){Array.prototype.forEach.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++)e in d&&b.call(void 0,d[e],e,a)},rxc=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,
b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g<c;g++)if(g in f){var k=f[g];b.call(void 0,k,g,a)&&(d[e++]=k)}return d},sxc=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},txc=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 uxc=function(a){uxc[" "](a);return a};uxc[" "]=function(){};var Soc=function(a,b){try{return uxc(a[b]),!0}catch(c){}return!1};var vxc=cba(),Ku=dba(),wxc=Da("Edge"),gj=Da("Gecko")&&!(Yaa(Ba(),"WebKit")&&!Da("Edge"))&&!(Da("Trident")||Da("MSIE"))&&!Da("Edge"),fj=Yaa(Ba(),"WebKit")&&!Da("Edge"),xxc=fj&&Da("Mobile"),cv=Ha(),yxc=nba(),zxc=(kba()?Ca.platform==="Linux":Da("Linux"))||oba(),Axc=lba(),Bxc=mba(),Cxc=Da("iPad"),Dxc=Da("iPod"),Loc=Fa();Yaa(Ba(),"KaiOS");var Exc;
a:{var Fxc="",Gxc=function(){var a=Ba();if(gj)return/rv:([^\);]+)(\)|;)/.exec(a);if(wxc)return/Edge\/([\d\.]+)/.exec(a);if(Ku)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fj)return/WebKit\/(\S+)/.exec(a);if(vxc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Gxc&&(Fxc=Gxc?Gxc[1]:"");if(Ku){var Hxc,Ixc=ra.document;Hxc=Ixc?Ixc.documentMode:void 0;if(Hxc!=null&&Hxc>parseFloat(Fxc)){Exc=String(Hxc);break a}}Exc=Fxc}var Jxc=Exc;var Kxc=eba(),Lxc=mba()||Da("iPod"),Mxc=Da("iPad"),Nxc=hba(),Noc=fba(),Joc=gba()&&!Fa();var Oxc={},Pxc=null,Qxc=gj||fj,Rxc=Qxc||typeof ra.btoa=="function",Sxc=Qxc||!Joc&&typeof ra.atob=="function",Uxc=function(a,b){b===void 0&&(b=0);Txc();b=Oxc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var g=a[e],k=a[e+1],l=a[e+2],r=b[g>>2];g=b[(g&3)<<4|k>>4];k=b[(k&15)<<2|l>>6];l=b[l&63];c[f++]=r+g+k+l}r=0;l=d;switch(a.length-e){case 2:r=a[e+1],l=b[(r&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|r>>4]+l+d}return c.join("")},Vxc=function(a,b){return Rxc&&!b?
ra.btoa(unescape(encodeURIComponent(a))):Uxc(bxc(a),b)},quc=function(a){if(Sxc)return ra.atob(a);var b="";Wxc(a,function(c){b+=String.fromCharCode(c)});return b},Xxc=function(a){var b=[];Wxc(a,function(c){b.push(c)});return b},Nba=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):za("=.",a[b-1])&&(c=za("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Wxc(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},Wxc=function(a,b){function c(l){for(;d<a.length;){var r=a.charAt(d++),w=Pxc[r];if(w!=
null)return w;if(!ya(r))throw Error("S`"+r);}return l}Txc();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),k=c(64);if(k===64&&e===-1)break;b(e<<2|f>>4);g!=64&&(b(f<<4&240|g>>2),k!=64&&b(g<<6&192|k))}},Txc=function(){if(!Pxc){Pxc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Oxc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];Pxc[f]===void 0&&(Pxc[f]=e)}}}};var Qba=typeof Uint8Array!=="undefined",Mba=!Ku&&typeof btoa==="function",Oba=/[-_.]/g,Kba={"-":"+",_:"/",".":"="},ab={},Yxc=typeof structuredClone!="undefined";var Za=function(a,b){if(b!==ab)throw Error("U");this.value_=a;if(a!=null&&a.length===0)throw Error("T");},Yba=function(a){return a?new Za(a,ab):Ya()},Ya=function(){return Zxc||(Zxc=new Za(null,ab))},Fda=function(a){var b=a.value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Mba){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=Uxc(b);a=a.value_=b}return a},Xsa=function(a){return new Uint8Array(fc(a)||
0)};Za.prototype.isEmpty=function(){return this.value_==null};Za.prototype.sizeBytes=function(){var a=fc(this);return a?a.length:0};
var yWa=function(a){var b={};b=b.parsingErrorsAreFatal===void 0?!0:b.parsingErrorsAreFatal;if(a=fc(a)){var c=a.length;b=axc?Saa(a,0,c,b):Oaa(a,0,c,b)}else b="";return b},$xc=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=
fc(a);b=fc(b);return Rba(c,b)},fc=function(a){if(ab!==ab)throw Error("U");var b=a.value_;b=b==null||Pa(b)?b:typeof b==="string"?Pba(b):null;return b==null?b:a.value_=b},cda=function(a,b){if(typeof b==="string")b=Yba(b);else if(b instanceof Uint8Array)b=new Za(b,ab);else if(!(b instanceof Za))return!1;return $xc(a,b)},Zxc;var Ra=typeof Symbol==="function"&&typeof Symbol()==="symbol",ayc=Qa("jas",void 0,!0),Sca=Qa(void 0,"0di"),eea=Qa(void 0,"1oa"),aea=Qa(void 0,"0dg"),bc=Qa(void 0,Symbol()),uda=Qa(void 0,"0ub"),wda=Qa(void 0,"0ubs"),Osa=Qa(void 0,"0ubsb"),Rda=Qa(void 0,"0actk"),bb=Qa("m_m","messagePrototypeMarker",!0),Hda=Qa(void 0,"vps"),rda=Qa();var Tba={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}},Sba=Object.defineProperties,Ta=Ra?ayc:"internalArrayState",nc,byc=[];Va(byc,7);nc=Object.freeze(byc);var cb={},eb={},cyc=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};cyc.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};cyc.prototype[Symbol.iterator]=function(){return this};var Km=Object.freeze({}),ita=Object.freeze({}),jb={};var Ida={};var hca=lb(function(a){return typeof a==="number"}),gca=lb(function(a){return typeof a==="string"}),jca=lb(function(a){return typeof a==="boolean"}),s4b=lb(function(a){return!!a&&(typeof a==="object"||typeof a==="function")}),eca=lb(function(a){return Array.isArray(a)});var ica=typeof ra.BigInt==="function"&&typeof ra.BigInt(0)==="bigint";var Mb=lb(function(a){return ica?a>=dyc&&a<=eyc:a[0]==="-"?kca(a,fyc):kca(a,gyc)}),fyc=Number.MIN_SAFE_INTEGER.toString(),dyc=ica?BigInt(Number.MIN_SAFE_INTEGER):void 0,gyc=Number.MAX_SAFE_INTEGER.toString(),eyc=ica?BigInt(Number.MAX_SAFE_INTEGER):void 0;var hyc=typeof Uint8Array.prototype.slice==="function",nb=0,ob=0,iyc;var vca=void 0;var Gb=typeof BigInt==="function"?BigInt.asIntN:void 0,Lb=typeof BigInt==="function"?BigInt.asUintN:void 0,Kb=Number.isSafeInteger,Ab=Number.isFinite,Jb=Math.trunc,Wca=mb(0),yca=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nda={},jyc=function(){try{var a=function(){return mwc(Map,[],this.constructor)};Y(a,Map);uxc(new a);return!1}catch(b){return!0}}(),kyc=function(){this.map_=new Map};h=kyc.prototype;h.get=function(a){return this.map_.get(a)};h.set=function(a,b){this.map_.set(a,b);this.size=this.map_.size;return this};h.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};h.clear=function(){this.map_.clear();this.size=this.map_.size};h.has=function(a){return this.map_.has(a)};h.entries=function(){return this.map_.entries()};
h.keys=function(){return this.map_.keys()};h.values=function(){return this.map_.values()};h.forEach=function(a,b){return this.map_.forEach(a,b)};kyc.prototype[Symbol.iterator]=function(){return this.entries()};
var ww=function(){if(jyc)return Object.setPrototypeOf(kyc.prototype,Map.prototype),Object.defineProperties(kyc.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kyc;var a=function(){return mwc(Map,[],this.constructor)};Y(a,Map);return a}(),$b=function(a,b,c,d){c=c===void 0?gda:c;d=d===void 0?gda:d;var e=ww.call(this)||this;e.arrayState=a[Ta]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?hda:d;for(var f=0;f<a.length;f++){var g=a[f],k=c(g[0],!1,!0),l=g[1];b?l===void 0&&(l=
null):l=d(g[1],!1,!0,void 0,void 0,e.arrayState);ww.prototype.set.call(e,k,l)}return e};Y($b,ww);var lyc=function(a){if(a.arrayState&2)throw Error("X");},Gda=function(a,b){return Vba(Array.from(ww.prototype.entries.call(a),b))};h=$b.prototype;h.clear=function(){lyc(this);ww.prototype.clear.call(this)};h.delete=function(a){lyc(this);return ww.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
h.entries=function(){if(this.valueCtor){var a=ww.prototype.keys.call(this);a=new cyc(a,lda,this)}else a=ww.prototype.entries.call(this);return a};h.values=function(){if(this.valueCtor){var a=ww.prototype.keys.call(this);a=new cyc(a,$b.prototype.get,this)}else a=ww.prototype.values.call(this);return a};h.forEach=function(a,b){this.valueCtor?ww.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):ww.prototype.forEach.call(this,a,b)};
h.set=function(a,b){lyc(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(ww.prototype.delete.call(this,a),this):ww.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};h.has=function(a){return ww.prototype.has.call(this,this.keyToApi(a,!1,!1))};
h.get=function(a){a=this.keyToApi(a,!1,!1);var b=ww.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&&ww.prototype.set.call(this,a,c),c):b}};var bda=function(a,b,c){return b instanceof $b?ida(a,b,c):kda(a,b,c)};$b.prototype[Symbol.iterator]=function(){return this.entries()};$b.prototype.toJSON=void 0;var mda;var Ada=function(){},yda=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Bda=function(a){var b=new Ada;yda(a,function(c,d,e){b[d]=vb(e)});b.reviveUnknownFields=a.reviveUnknownFields;return b},sda={reviveIntoImmutable:!0};var L3a=Yxc?structuredClone:function(a){return Cda(a,0,cc)},zda;var Kda,Lda;var dc=function(a,b,c){this.buffer=a;if(c&&!b)throw Error();this.isImmutable=b};var myc=function(a,b,c,d){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,b,c,d)};h=myc.prototype;
h.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(this.buffer_=a=Sda(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=c!==void 0?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};h.free=function(){this.clear();nyc.length<100&&nyc.push(this)};
h.clear=function(){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};h.getEnd=function(){return this.end_};h.setEnd=function(a){this.end_=a};h.reset=function(){this.cursor_=this.start_};h.getCursor=function(){return this.cursor_};h.advance=function(a){oyc(this,this.cursor_+a)};
var pyc=function(a,b){var c=0,d=0,e=0,f=a.bytes_,g=a.cursor_;do{var k=f[g++];c|=(k&127)<<e;e+=7}while(e<32&&k&128);if(e>32)for(d|=(k&127)>>4,e=3;e<32&&k&128;e+=7)k=f[g++],d|=(k&127)<<e;oyc(a,g);if(!(k&128))return b(c>>>0,d>>>0);throw Error();},oyc=function(a,b){a.cursor_=b;if(b>a.end_)throw Error();},xw=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();oyc(a,c);return e},yw=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},qyc=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 oyc(a,c),!!(b&127)}throw Error();},ryc=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};
myc.prototype.readString=function(a,b){var c=ryc(this,a),d=this.bytes_;return axc?Saa(d,c,a,b):Oaa(d,c,a,b)};myc.prototype.readByteString=function(a){if(a==0)return Ya();var b=ryc(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):hyc?c.slice(b,a):new Uint8Array(c.subarray(b,a))}return Xba(b)};var nyc=[];var syc=function(a,b,c,d){if(nyc.length){var e=nyc.pop();e.init(a,b,c,d);a=e}else a=new myc(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(d)};syc.prototype.setOptions=function(a){a=a===void 0?{}:a;this.discardUnknownFields=a.discardUnknownFields===void 0?!1:a.discardUnknownFields};
var Fsa=function(a,b,c,d){if(tyc.length){var e=tyc.pop();e.setOptions(d);e.decoder_.init(a,b,c,d);return e}return new syc(a,b,c,d)};h=syc.prototype;h.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;tyc.length<100&&tyc.push(this)};h.getCursor=function(){return this.decoder_.getCursor()};h.getTag=function(){return this.nextTag_};
h.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};h.advance=function(a){this.decoder_.advance(a)};
var Asa=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=xw(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},Csa=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?Csa(a):qyc(a.decoder_);break;case 1:a.decoder_.advance(8);break;case 2:if(a.nextWireType_!=2)Csa(a);else{var b=xw(a.decoder_)>>>0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);
break;case 3:b=a.nextField_;do{if(!Asa(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=b)throw Error();break}Csa(a)}while(1);break;default:throw Error();}},uyc=function(a,b,c){var d=a.decoder_.getEnd(),e=xw(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)};syc.prototype.readString=function(){return vyc(this)};
var vyc=function(a){var b=xw(a.decoder_)>>>0;return a.decoder_.readString(b,!0)};syc.prototype.readByteString=function(){var a=xw(this.decoder_)>>>0;return this.decoder_.readByteString(a)};var tyc=[];var wyc=mb(0),Qv={},fm=function(a,b,c,d,e){b=tc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c,e);if(b!==null||d&&a.noLegacyNull!==eb)return b},tc=function(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),f=a.length-1;if(!(f<1+(c?0:-1))){if(e>=f){var g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object){c=g[b];var k=!0}else if(e===f)c=g;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return k?g[b]=d:a[e]=d,d}return c}},Kr=function(a,b,c,
d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;mc(e,e[Ta]|0,b,c,d);return a},yi=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(a,a[Ta]|0,b,c,d)!==void 0},Ri=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(e,e[Ta]|0,b,Ii(a,d,c))!==void 0},Ai=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jea(a,d,d[Ta]|0,b,c,3).length},zw=function(a,b,c,d,e,f){Bc(a,b,c,
f,e,d,1);return a},Di=function(a){return a===Km?2:4},Tn=function(a,b,c,d){a=fm(a,b,d,void 0,uc);return a==null?c===null?c:c===void 0?Ya():Yba(c):a},Aw=function(a,b,c){return Kr(a,b,void 0,c)},Bw=function(a,b){jc(a);var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hea(c,c[Ta]|0,b,0);return a},So=function(a,b,c,d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(d==null){var g=fea(e);if(gea(g,e,f,c)===b)g.set(c,0);else return a}else f=hea(e,f,c,b);mc(e,
f,b,d);return a},Cw=function(a,b,c,d){var e=a[Ta]|0,f=kb(e);e=hea(a,e,c,b,f);mc(a,e,b,d,f)},Ii=function(a,b,c,d){return xo(a,b,d)===c?c:-1},xo=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gea(fea(a),a,void 0,b,c)},Ji=function(a,b,c,d,e){jc(a);a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var f=a[Ta]|0,g=tc(a,c,e);d=d===ita;b=Uca(g,b,!d,f);if(!d||b)return b=Zb(b),g!==b&&(f=mc(a,f,c,b,e),kc(a,f)),b},xyc=function(a,b,c){var d=a[Ta]|0,e=kb(d),f=tc(a,c,
e);if(db(f)){if(!fb(f))return ic(f),f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(f)&&(g=f);if(g){var k=g[Ta]|0;k&2&&(g=hc(g,k))}g=Oda(g,b);g!==f&&mc(a,d,c,g,e);return g},Hnb=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(a,a[Ta]|0,b,c,d)||b[Sca]||(b[Sca]=Tca(b))},yyc=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iea(a,a[Ta]|0,b,
c)},X=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;b=iea(e,f,b,c,d);if(b==null)return b;f=e[Ta]|0;if(!fb(a,f)){var g=Zb(b);g!==b&&(ic(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0),b=g,f=mc(e,f,c,b,d),kc(e,f))}return b},zyc=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jea(a,d,d[Ta]|0,b,c,1)},Ci=function(a,b,c,d,e){var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jea(a,
f,f[Ta]|0,b,c,d,e,!1,!0)},Ni=function(a,b,c,d,e){d=kea(d);Kr(a,c,d,e);d&&!fb(d)&&kc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Yo=function(a,b,c,d){d=kea(d);So(a,b,c,d);d&&!fb(d)&&kc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Oi=function(a,b,c,d){jc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(c==null)return mc(e,f,b,void 0,d),a;for(var g=c===nc?7:c[Ta]|0,k=g,l=sc(g),r=l||Object.isFrozen(c),w=!0,x=!0,C=0;C<c.length;C++){var H=
c[C];l||(H=fb(H),w&&(w=!H),x&&(x=H))}l||(g=w?13:5,g=x?g&-4097:g|4096);r&&g===k||(c=vb(c),k=0,g=oc(g,f));g!==k&&Va(c,g);f=mc(e,f,b,c,d);2&g||!(4096&g||16&g)||kc(e,f);return a},Pp=function(a,b,c,d,e,f){Bc(a,b,c,f,d,e);return a},Dw=function(a,b,c,d,e){Bc(a,b,c,e,void 0,d,1,!0);return a},Op=function(a,b,c,d,e){jc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=jea(a,f,f[Ta]|0,c,b,2,e,!0);e=c=0;if(Array.isArray(d))for(var g=d.length,k=0;k<g;k++){var l=d[k];b.push(l);(l=fb(l))&&!c++&&
(b[Ta]&=-9);l||e++||Ua(b,4096)}else for(d=m(d),g=d.next();!g.done;g=d.next())g=g.value,b.push(g),(g=fb(g))&&!c++&&(b[Ta]&=-9),g||e++||Ua(b,4096);e&&kc(f);return a},Ew=function(a,b,c){return Pb(fm(a,b,c),!0)},Fw=function(a,b,c){a=fm(a,b,void 0,c);b=typeof a;a=a==null?a:b==="bigint"?mb(Lb(64,a)):Bb(a)?b==="string"?Nca(a):Lca(a):void 0;return a},o5a=function(a,b,c){return qc(a,b,Nb,c,void 0,0)},Jw=function(a,b,c,d,e){return qc(a,b,Qb,c,e,1024,d)},Sm=function(a,b,c){return qc(a,b,lea,1,void 0,512,c)},
Kw=function(a,b,c,d){return Fb(fm(a,b,c,d))},Lw=function(a,b,c,d){return Tb(fm(a,b,c,d))},xp=function(a,b,c,d){return Db(fm(a,b,c,d))},Gi=function(a,b,c,d){c=c===void 0?!1:c;var e;return(e=zb(fm(a,b,d)))!=null?e:c},Cm=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Kw(a,b,d))!=null?e:c},Ep=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Nb(fm(a,b,d)))!=null?e:c},Ayc=function(a,b){var c=c===void 0?"0":c;var d;return(d=Pb(fm(a,b)))!=null?d:c},pn=function(a,b,c,d){c=c===void 0?wyc:c;var e;return(e=
Qb(fm(a,b,d)))!=null?e:c},Byc=function(a){var b=b===void 0?wyc:b;var c;return(c=Fw(a,23))!=null?c:b},em=function(a,b,c){c=c===void 0?0:c;var d;return(d=fm(a,b,void 0,void 0,xb))!=null?d:c},vi=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=Lw(a,b,d))!=null?e:c},xi=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=xp(a,b,d))!=null?e:c},un=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=Ew(a,b,d))!=null?e:c},nn=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=Ew(a,b,d))!=null?e:c},Em=function(a,
b,c,d,e){return qc(a,b,Fb,c,e,void 0,d)},Mw=function(a,b,c){a=Em(a,b,3,void 0,!0);hb(a,c);return a[c]},Cyc=function(a,b){a=Jw(a,b,3,void 0,!0);hb(a);return a[void 0]},Dm=function(a,b,c,d,e){return qc(a,b,Tb,c,e,void 0,d)},Nw=function(a,b,c,d){a=Dm(a,b,3,d,!0);hb(a,c);return a[c]},xn=function(a,b,c,d,e){return qc(a,b,Db,c,e,void 0,d)},Ow=function(a,b,c){a=xn(a,b,3,void 0,!0);hb(a,c);return a[c]},zo=function(a,b,c){return vi(a,Ii(a,c,b))},Tv=function(a,b,c){return Dl(a,Ii(a,c,b))},$l=function(a,b,c,
d,e){return X(a,b,Ii(a,d,c,e),e)},Nkb=function(a,b){b=Ii(a,Js,b);return Ew(a,b)},mr=function(a,b,c){b=Ii(a,c,b);return Lw(a,b)},Okb=function(a,b){b=Ii(a,Js,b);return fm(a,b,void 0,void 0,uc)},Dyc=function(a,b){return zb(fm(a,b))},Gv=function(a,b){return zb(fm(a,b,void 0,Qv))},Pw=function(a,b){return Kw(a,b,void 0,Qv)},Qw=function(a,b){return Qb(fm(a,b,void 0,Qv))},Rw=function(a,b){return fm(a,b,void 0,Qv,xb)},Dl=function(a,b){return Lw(a,b,void 0,Qv)},Ov=function(a,b){return xp(a,b,void 0,Qv)},Pi=
function(a,b,c){return Kr(a,b,c==null?c:yb(c))},$o=function(a,b,c,d){return yc(a,b,c==null?c:yb(c),!1,d)},Fn=function(a,b,c){return Kr(a,b,c==null?c:Eb(c))},an=function(a,b,c){return yc(a,b,c==null?c:Eb(c),0)},wn=function(a,b,c,d,e){return Kr(a,b,Ib(c,d===void 0?0:d),e)},Ko=function(a,b,c){return yc(a,b,Ib(c,0),"0")},Eyc=function(a,b,c){c=c==null?c:Oca(c);return Kr(a,b,c)},Kn=function(a,b,c,d,e){return Kr(a,b,Ib(c,d===void 0?0:d),e)},Sw=function(a,b,c){return Kr(a,b,c==null?c:wca(c))},sp=function(a,
b,c){return yc(a,b,c==null?c:wca(c),0)},JWa=function(a,b,c,d){So(a,b,c,d==null?d:wca(d))},pj=function(a,b,c,d){return Kr(a,b,Rca(c),d)},Gm=function(a,b,c,d){return yc(a,b,Rca(c),"",d)},Co=function(a,b,c,d){return So(a,b,c,Rca(d))},Po=function(a,b,c){return yc(a,b,gb(c,!1,!0),Ya())},Hn=function(a,b,c,d){return Kr(a,b,zca(c),d)},Im=function(a,b,c,d){return yc(a,b,zca(c),0,d)},ur=function(a,b,c,d){return xc(a,b,c,Hb,d)},Tw=function(a,b,c,d,e){return zc(a,b,Hb,c,d,Nb,e)},Fyc=function(a,b,c){return zc(a,
b,Hb,void 0,c,Nb,void 0,1,!1,!0)},Uw=function(a,b,c){Ac(a,b,Hb,c,Nb)},Hm=function(a,b,c,d){return xc(a,b,c,Sb,d)},Cq=function(a,b,c){return zc(a,b,Sb,c,void 0,Tb)},Vw=function(a,b,c,d){return zc(a,b,Sb,d,c,Tb,void 0,1)},Ww=function(a,b,c){return xc(a,b,c,Cb)},Fi=function(a,b){return zb(fm(a,b))!=null},kn=function(a,b){return Kw(a,b)!=null},on=function(a,b,c){return Nb(fm(a,b,c))!=null},DXa=function(a,b){b=Ii(a,b,2);return fm(a,b,void 0,void 0,xb)!=null},im=function(a,b,c){return Lw(a,b,c)!=null},
jm=function(a,b,c){return xp(a,b,c)!=null};var W=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,b,c)};W.prototype.toJSON=function(){return Jda(this)};W.prototype.serialize=function(a){return JSON.stringify(Jda(this,a))};var dta=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ga");return new a(Wba(b))};
W.prototype.getExtension=function(a){vda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);tda(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,Di(),a.hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,Di(),a.hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.hasMessageId)};
var Gyc=function(a,b){vda(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);tda(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};W.prototype.hasExtension=function(a){vda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);tda(this,a.fieldIndex);return a.ctor?yi(this,a.ctor,a.fieldIndex,a.hasMessageId):Gyc(this,a)!==void 0};
var kRa=function(a,b){return a===b||a==null&&b==null||!(!a||!b)&&a instanceof b.constructor&&ada(a,b)};W.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=a[Ta]|0;return Xda(this,a,b)?Wda(this,a,!0):new this.constructor(hc(a,b,!1))};W.prototype.isMutable=function(){return!fb(this)};W.prototype.isImmutable=function(){return fb(this)};
var gsc=function(a){return Zb(a)},Iv=function(a,b,c){qda(a,b.fieldIndex);return b.ctor?b.setExtensionFn(a,b.ctor,b.fieldIndex,c,b.hasMessageId):b.setExtensionFn(a,b.fieldIndex,c,b.hasMessageId)};W.prototype[bb]=cb;W.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Dc=function(a,b){this.key_=a;this.value_=b},Hyc=function(a){throw Error("ha`"+a.key_);},Iyc=function(a,b){return new TypeError("ia`"+b+"`"+a.key_+"`"+a.value_+"`"+typeof a.value_)};Dc.prototype.string=function(a){if(arguments.length==0)var b=Jyc(this);else{var c;b=(c=Kyc(this))!=null?c:a}return b};var Jyc=function(a){var b=Kyc(a);b===null&&Hyc(a);return b},Kyc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="string")return b;throw Iyc(a,"string");};
Dc.prototype.bool=function(a){if(arguments.length==0){var b=Lyc(this);b===null&&Hyc(this)}else b=Myc(this,a);return b};var Myc=function(a,b){var c;return(c=Lyc(a))!=null?c:b},Lyc=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 Iyc(a,"boolean");};
Dc.prototype.number=function(a){if(arguments.length==0){var b=Nyc(this);b===null&&Hyc(this)}else{var c;b=(c=Nyc(this))!=null?c:a}return b};var Nyc=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 Iyc(a,"number");};Dc.prototype.toString=function(){return Jyc(this)};
Dc.prototype.array=function(a){if(arguments.length==0){var b=Oyc(this);b===null&&Hyc(this);return b}b=Oyc(this);return b==null?a:b};var Qyc=function(){var a=pea("mu7Lcf"),b=[],c=Oyc(a);return c===null?Pyc(a,b):c},Oyc=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 Pyc(a,b)},Pyc=function(a,b){var c=a.key_+"[";return Array.from(b,function(d,e){return new Dc(c+e+"]",d)})};
Dc.prototype.object=function(a){var b=this.value_;if(b==null)return a===void 0&&Hyc(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.key_+".",d;for(d in b)a[d]=new Dc(c+d,b[d]);return a}throw Iyc(this,"object");};if(typeof window==="undefined"||Myc(pea("mXaIFf"),!0)){var Xw=globalThis,Ryc=Xw[ba("forceDuplicateZoneCheck")]===!0;if(Xw.Zone&&(Ryc||typeof Xw.Zone.__symbol__!=="function"))throw Error("ma");Xw.Zone!=null||(Xw.Zone=baa());var ma=Xw.Zone;qea();rea();sea();Faa();Kaa();Laa()};var tea=Ec({"\u0275prov":Ec}),wea=Ec({"\u0275inj":Ec});var Ic=null,zea=!1,Bea=1,Pc=Symbol("oa"),Yw={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 Zw=Symbol("pa"),$w=Symbol("qa"),Oc=Symbol("ra"),Jea=Object.assign({},Yw,{value:Zw,dirty:!0,error:null,equal:yea,kind:"computed",producerMustRecompute:function(a){return a.value===Zw||a.value===$w},producerRecomputeValue:function(a){if(a.value===$w)throw Error("na");var b=a.value;a.value=$w;var c=Mc(a),d=!1;try{var e=a.computation();Jc(null);d=b!==Zw&&b!==Oc&&e!==Oc&&a.equal(b,e)}catch(f){e=Oc,a.error=f}finally{Hea(a,c)}d?a.value=b:(a.value=e,a.version++)}});var Syc=Object.assign({},Yw,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Mea=function(){throw Error();};var Lea=Object.assign({},Yw,{equal:yea,value:void 0,kind:"signal"});var Oea=Object.assign({},Yw,{value:Zw,dirty:!0,error:null,equal:yea,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===Zw||a.value===$w},producerRecomputeValue:function(a){if(a.value===$w)throw Error("na");var b=a.value;a.value=$w;var c=Mc(a);try{var d=a.source();var e=a.computation(d,b===Zw||b===Oc?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(f){e=Oc,a.error=f}finally{Hea(a,c)}b!==Zw&&e!==Oc&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},Yw,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},cleanupFn:function(){}});var fd=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=Fc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};fd.prototype.toString=function(){return"InjectionToken "+this._desc};da.Object.defineProperties(fd.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});new fd("",{factory:function(){return!1}});new fd("",{factory:function(){return 4E3}});var Vc=function(a,b){b=Error.call(this,Rea(a,b));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(Vc,Error);var cd=Ec({"\u0275cmp":Ec}),Aka=Ec({"\u0275dir":Ec}),gfa=Ec({"\u0275pipe":Ec}),Tyc=Ec({"\u0275mod":Ec}),ifa=Ec({"\u0275fac":Ec}),oga=Ec({__NG_ELEMENT_ID__:Ec}),Uyc=Ec({__NG_ENV_ID__:Ec});var Tea=Ec({ngErrorCode:Ec}),Uea=Ec({ngErrorMessage:Ec});Ec({ngTokenPath:Ec});var Wea;var Yea=void 0;var Zea=Symbol("ta");var bfa=Ec({__forward_ref__:Ec});var Me=globalThis;var ax={},Hfa=function(a){this.injector=a};Hfa.prototype.retrieve=function(a,b){b=dfa(b)||0;try{return this.injector.get(a,b&8?null:ax,b)}catch(c){if($ea(c))return c;throw c;}};var ufa=new fd("");var Vyc=new fd("",-1);var tfa=new fd("");var yfa=function(){};yfa.prototype.get=function(a,b){b=b===void 0?ax:b;if(b===ax)throw a=Vea(-201),a.name="\u0275NotFound",a;return b};var ld={},dd=[];var vfa=Ec({provide:String,useValue:Ec});var gpa=new fd("");var Dfa={},Wyc={},xfa=void 0,$e=function(){},hd=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;Gfa(a,function(f){return Xyc(e,f)});this.records.set(Vyc,gd(void 0,this));d.has("environment")&&this.records.set($e,gd(void 0,this));a=this.records.get(gpa);a!=null&&typeof a.value==="string"&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(tfa,dd,{self:!0}))};Y(hd,$e);
h=hd.prototype;h.retrieve=function(a,b){b=dfa(b)||0;try{return this.get(a,ax,b)}catch(c){if($ea(c))return c;throw c;}};h.destroy=function(){Ffa(this);this._destroyed=!0;var a=Jc(null);try{for(var b=m(this._ngOnDestroyHooks),c=b.next();!c.done;c=b.next())c.value.ngOnDestroy();var d=this._onDestroyHooks;this._onDestroyHooks=[];for(var e=m(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Jc(a)}};
h.onDestroy=function(a){var b=this;Ffa(this);this._onDestroyHooks.push(a);return function(){var c=b._onDestroyHooks.indexOf(a);c!==-1&&b._onDestroyHooks.splice(c,1)}};
h.get=function(a,b,c){b=b===void 0?ax:b;Ffa(this);if(a.hasOwnProperty(Uyc))return a[Uyc](this);c=dfa(c);var d=Xc(this),e=Wc();try{if(!(c&4)){var f=this.records.get(a);if(f===void 0){var g=(typeof a==="function"||typeof a==="object"&&a.ngMetadataName==="InjectionToken")&&uea(a),k;if(k=g)if(g.providedIn){var l=Zc(g.providedIn);k=typeof l==="string"?l==="any"||this.scopes.has(l):this.injectorDefTypes.has(l)}else k=!1;k?f=gd(Bfa(a),Dfa):f=null;this.records.set(a,f)}if(f!=null){a:{b=f;var r=Jc(null);try{if(b.value===
Wyc)throw Tc(a),Vea(-200);b.value===Dfa&&(b.value=Wyc,b.value=b.factory(void 0,c));var w;if(w=typeof b.value==="object"&&b.value){var x=b.value;w=x!==null&&typeof x==="object"&&typeof x.ngOnDestroy==="function"}w&&this._ngOnDestroyHooks.add(b.value);var C=b.value;break a}finally{Jc(r)}C=void 0}return C}}var H=c&2?zfa():this.parent;b=c&8&&b===ax?null:b;return H.get(a,b)}catch(O){var J=O[Tea];if(J===-200||J===-201)throw new Vc(J,null);throw O;}finally{Wc(e),Xc(d)}};
h.resolveInjectorInitializers=function(){var a=Jc(null),b=Xc(this),c=Wc();try{for(var d=this.get(ufa,dd,{self:!0}),e=m(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{Xc(b),Wc(c),Jc(a)}};h.toString=function(){for(var a=[],b=m(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Tc(c.value));return"R3Injector["+a.join(", ")+"]"};
var Xyc=function(a,b){b=Zc(b);var c=ed(b)?b:Zc(b&&b.provide),d=Efa(b);if(!ed(b)&&b.multi===!0){var e=a.records.get(c);e||(e=gd(void 0,Dfa,!0),e.factory=function(){return efa(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};da.Object.defineProperties(hd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});var Lfa=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};var bx=function(){var a=function(){return Kfa};a.ngInherit=!0;return a}();var Yyc=[],Dd=function(a,b,c){b=b===void 0?null:b;for(var d=0;d<Yyc.length;d++)(0,Yyc[d])(a,b,c)};var td=aga(null),We=null,Ufa=!1,Re=!0;var Dga=function(a,b){var c=Ye;this.factory=a;this.name=null;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var mga=!0,pga=0,Fd={},Gd=function(a,b){this._tNode=a;this._lView=b};Gd.prototype.get=function(a,b,c){return zga(this._tNode,this._lView,a,dfa(c),b)};var cx=function(a){var b=this;this.attributeName=a;this.__NG_ELEMENT_ID__=function(){return wga(b.attributeName)}};cx.prototype.toString=function(){return"HostAttributeToken "+this.attributeName};var Zyc=function(){var a=new fd("");a.__NG_ELEMENT_ID__=function(b){var c=vd();if(c===null)throw new Vc(204,!1);if(c.type&2)return c.value;if(b&8)return null;throw new Vc(204,!1);};return a}();var $yc=ffa(Gga("Inject",function(a){return{token:a}}),-1),azc=ffa(Gga("Optional"),8);ffa(Gga("Self"),2);var bzc=ffa(Gga("SkipSelf"),4);ffa(Gga("Host"),1);Ec({provide:String,useValue:Ec});var Ae=function(){},Yg=function(a){if(Array.isArray(a))return Iga({name:""},void 0,a,"");var b,c=(b=a.name)!=null?b:"";return Iga({name:c},a.parent,a.providers,c)},czc=new yfa;Ae.\u0275prov=Fc({token:Ae,providedIn:"any",factory:function(){return $c(Vyc)}});Ae.__NG_ELEMENT_ID__=-1;var dzc=function(){};var dx=function(){},xya=function(){};var bf=function(){},Poa=new fd("",{factory:function(){return!0}});new fd("",{factory:function(){return!1}});var Qoa=new fd("");/*

 Copyright 2024 Google, Inc
 SPDX-License-Identifier: MIT
*/
Symbol.for("propagationStopped");var Nga=void 0;var ezc=new fd("",{factory:function(){return"ng"}}),hpa=new fd(""),fzc=new fd("",{providedIn:"platform",factory:function(){return"unknown"}}),ki=new fd(""),gzc=new fd("",{factory:function(){var a,b;return((a=Oga().body)==null?void 0:(b=a.querySelector("[ngCspNonce]"))==null?void 0:b.getAttribute("ngCspNonce"))||null}}),hzc={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1};new fd("",{factory:function(){return hzc}});new fd("",{factory:function(){return{}}});new fd("");var Bja=new fd("",{factory:function(){return!1}});new fd("");new fd("");new fd("");new fd("",{factory:function(){return new Map}});var izc=new fd("");new fd("");var Pga=new Map,Ria=0;var jzc=function(){},kzc=function(){};var Jd=function(a){this.nativeElement=a};Jd.__NG_ELEMENT_ID__=function(){return Kd(vd(),t())};new fd("",{factory:function(){return!0}});var af=function(){},di=function(){this.destroyNode=null};di.__NG_ELEMENT_ID__=function(){var a=t(),b=od(vd().index,a);return(jd(b)?b:a)[11]};var lzc={};var uka=function(a,b){this.injector=a;this.parentInjector=b};uka.prototype.get=function(a,b,c){var d=this.injector.get(a,lzc,c);return d!==lzc||b===lzc?d:this.parentInjector.get(a,b,c)};var Tga=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,Uga=/(<|>)/g;var Md={};var Sh=new fd("");var Ee=function(){};Ee.__NG_ELEMENT_ID__=bha;Ee.__NG_ENV_ID__=function(a){return a};var Pd=function(a){this._lView=a};Y(Pd,Ee);Pd.__NG_ENV_ID__=Ee.__NG_ENV_ID__;Pd.__NG_ELEMENT_ID__=Ee.__NG_ELEMENT_ID__;Pd.prototype.onDestroy=function(a){var b=this._lView;Qfa(b,a);return function(){if(b[21]!==null){var c=b[21].indexOf(a);c!==-1&&b[21].splice(c,1)}}};da.Object.defineProperties(Pd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return(this._lView[2]&256)===256}}});var mzc=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(mzc,Error);var Rd=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};h=Rd.prototype;
h.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var b=m(a),c=b.next();!c.done;c=b.next())c.value.remove(this);else a==null||a.remove(this);b=this.initialTeardown;if(Qd(b))try{b()}catch(f){var d=f instanceof mzc?f.errors:[f]}var e=this._teardowns;if(e)for(this._teardowns=null,b=m(e),c=b.next();!c.done;c=b.next()){c=c.value;try{Qd(c)?c():c.unsubscribe()}catch(f){c=void 0,d=(c=d)!=null?c:[],f instanceof mzc?d=[].concat(q(d),q(f.errors)):d.push(f)}}if(d)throw new mzc(d);
}};h.add=function(a){if(a&&a!==this)if(this.closed)Qd(a)?a():a.unsubscribe();else{if(a instanceof Rd){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};h._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};h._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
h._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&cha(b,a)};h.remove=function(a){var b=this._teardowns;b&&cha(b,a);a instanceof Rd&&a._removeParent(this)};var nzc=new Rd;nzc.closed=!0;Rd.EMPTY=nzc;var eha=function(){setTimeout.apply(null,q(bd.apply(0,arguments)))};var ex=function(a){Rd.call(this);this.isStopped=!1;this.destination=a instanceof ex?a:new ozc(!a||Qd(a)?{next:a!=null?a:void 0}:a);dha(a)&&a.add(this)};Y(ex,Rd);ex.EMPTY=Rd.EMPTY;ex.create=function(a,b,c){return new he(a,b,c)};h=ex.prototype;h.next=function(a){this.isStopped||this._next(a)};h.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};h.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};h.unsubscribe=function(){this.closed||(this.isStopped=!0,Rd.prototype.unsubscribe.call(this))};
h._next=function(a){this.destination.next(a)};h._error=function(a){this.destination.error(a);this.unsubscribe()};h._complete=function(){this.destination.complete();this.unsubscribe()};var ozc=function(a){this.partialObserver=a};ozc.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){fha(c)}};ozc.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){fha(c)}else fha(a)};
ozc.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){fha(b)}};var he=function(a,b,c){ex.call(this);var d;Qd(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 ozc(d)};Y(he,ex);he.EMPTY=ex.EMPTY;he.create=ex.create;var nha=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Vd=function(a){a&&(this._subscribe=a)};h=Vd.prototype;h.lift=function(a){var b=new Vd;b.source=this;b.operator=a;return b};h.subscribe=function(a,b,c){a=a&&a instanceof ex||a&&Qd(a.next)&&Qd(a.error)&&Qd(a.complete)&&dha(a)?a:new he(a,b,c);b=this.operator;c=this.source;a.add(b?b.call(a,c):c?this._subscribe(a):this._trySubscribe(a));return a};h._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
h.forEach=function(a,b){var c=this;b=hha(b);return new b(function(d,e){var f=c.subscribe(function(g){try{a(g)}catch(k){e(k),f==null||f.unsubscribe()}},e,d)})};h._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};Vd.prototype[nha]=function(){return this};Vd.prototype.pipe=function(){var a=bd.apply(0,arguments);return a.length?gha(a)(this):this};Vd.create=function(a){return new Vd(a)};var pzc=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(pzc,Error);var sf=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};Y(sf,Vd);h=sf.prototype;h.lift=function(a){var b=new fx(this,this);b.operator=a;return b};h._throwIfClosed=function(){if(this.closed)throw new pzc;};h.next=function(a){this._throwIfClosed();if(!this.isStopped)for(var b=m(this.observers.slice()),c=b.next();!c.done;c=b.next())c.value.next(a)};
h.error=function(a){this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};h.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};h.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};h._trySubscribe=function(a){this._throwIfClosed();return Vd.prototype._trySubscribe.call(this,a)};
h._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};h._innerSubscribe=function(a){var b=this,c=this.isStopped,d=this.observers;return this.hasError||c?Rd.EMPTY:(d.push(a),new Rd(function(){return cha(b.observers,a)}))};h._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.isStopped;this.hasError?a.error(b):c&&a.complete()};h.asObservable=function(){var a=new Vd;a.source=this;return a};
da.Object.defineProperties(sf.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.observers)==null?void 0:a.length)>0}}});sf.create=function(a,b){return new fx(a,b)};var fx=function(a,b){sf.call(this);this.destination=a;this.source=b};Y(fx,sf);fx.create=sf.create;fx.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};fx.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
fx.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};fx.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:Rd.EMPTY};var Nj=function(a){sf.call(this);this._value=a};Y(Nj,sf);Nj.create=sf.create;Nj.prototype._subscribe=function(a){var b=sf.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};Nj.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};Nj.prototype.next=function(a){sf.prototype.next.call(this,this._value=a)};da.Object.defineProperties(Nj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var ue=new Vd(function(a){return a.complete()});var lha=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var rha=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var tf=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue=a==="N"};tf.prototype.observe=function(a){return Cha(this,a)};tf.prototype.accept=function(a,b,c){if(Qd(a==null?void 0:a.next))a=this.observe(a);else{var d=this.kind,e=this.value,f=this.error;a=d==="N"?a==null?void 0:a(e):d==="E"?b==null?void 0:b(f):c==null?void 0:c()}return a};tf.createError=function(a){return new tf("E",void 0,a)};var rla=new tf("C");var qzc={now:function(){return(qzc.delegate||Date).now()},delegate:void 0};var wf=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?qzc:c;sf.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(wf,sf);wf.create=sf.create;
wf.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));rzc(this);sf.prototype.next.call(this,a)};wf.prototype._subscribe=function(a){this._throwIfClosed();rzc(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 rzc=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 tzc=function(a,b){b=b===void 0?szc:b;this.schedulerActionCtor=a;this.now=b};tzc.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};var szc=qzc.now;var Dha=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(Dha,Error);var ke=function(a,b,c,d,e){ex.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(f){try{b(f)}catch(g){this.destination.error(g)}});c&&(this._error=function(f){try{c(f)}catch(g){this.destination.error(g)}this.unsubscribe()});d&&(this._complete=function(){try{d()}catch(f){this.destination.error(f)}this.unsubscribe()})};Y(ke,ex);ke.EMPTY=ex.EMPTY;ke.create=ex.create;ke.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);ex.prototype.unsubscribe.call(this)};var uf=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};Y(uf,Vd);uf.create=Vd.create;uf.prototype._subscribe=function(a){return uzc(this).subscribe(a)};var uzc=function(a){var b=a._subject;if(!b||b.isStopped)a._subject=a.subjectFactory();return a._subject};uf.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
uf.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new Rd;var c=uzc(this);b.add(this.source.subscribe(new ke(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=Rd.EMPTY)}return b};uf.prototype.refCount=function(){return Eha()(this)};var Hha=Array.isArray;var Jha=Array.isArray,vzc=Object,Kha=vzc.getPrototypeOf,Lha=vzc.prototype,Mha=vzc.keys;var Qha=function(a,b,c){ex.call(this,a);this._next=b;this.shouldComplete=c};Y(Qha,ex);Qha.EMPTY=ex.EMPTY;Qha.create=ex.create;Qha.prototype._complete=function(){this.shouldComplete()?ex.prototype._complete.call(this):this.unsubscribe()};var wzc=function(){return requestAnimationFrame.apply(null,q(bd.apply(0,arguments)))},xzc=function(){cancelAnimationFrame.apply(null,q(bd.apply(0,arguments)))};var Uha=["addListener","removeListener"],Tha=["addEventListener","removeEventListener"],Wha=["on","off"];var gx=function(){Rd.call(this)};Y(gx,Rd);gx.EMPTY=Rd.EMPTY;gx.prototype.schedule=function(){return this};var yzc=function(a,b){return setInterval.apply(null,[a,b].concat(q(bd.apply(2,arguments))))};var hx=function(a,b){Rd.call(this);this.scheduler=a;this.work=b;this.pending=!1};Y(hx,gx);hx.EMPTY=gx.EMPTY;h=hx.prototype;h.schedule=function(a,b){b=b===void 0?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;a!=null&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};h.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return yzc(a.flush.bind(a,this),c)};
h.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&this.delay===c&&this.pending===!1)return b;clearInterval(b)};h.execute=function(a,b){if(this.closed)return Error("Aa");this.pending=!1;if(a=this._execute(a,b))return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};h._execute=function(a){var b=!1;try{this.work(a)}catch(d){b=!0;var c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
h.unsubscribe=function(){if(!this.closed){var a=this.id,b=this.scheduler,c=b.actions;this.work=this.state=this.scheduler=null;this.pending=!1;cha(c,this);a!=null&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null;gx.prototype.unsubscribe.call(this)}};var ix=function(a,b){b=b===void 0?szc:b;tzc.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};Y(ix,tzc);ix.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 se=new ix(hx);var jx=new Vd(Sd);var $ha=Array.isArray;var eia=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(eia,Error);var zzc=function(a,b){hx.call(this,a,b);this.scheduler=a;this.work=b};Y(zzc,hx);zzc.EMPTY=hx.EMPTY;zzc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return hx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=wzc(function(){return a.flush(void 0)}))};
zzc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return hx.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(xzc(b),a.scheduled=void 0)};var Azc=function(){ix.apply(this,arguments)};Y(Azc,ix);Azc.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 Bzc=new Azc(zzc);var Czc=1,Dzc,fia={},Ezc=function(a){var b=Czc++;fia[b]=!0;Dzc||(Dzc=Promise.resolve());Dzc.then(function(){return gia(b)&&a()});return b};var Fzc=function(){return Ezc.apply(null,q(bd.apply(0,arguments)))};var Gzc=function(a,b){hx.call(this,a,b);this.scheduler=a;this.work=b};Y(Gzc,hx);Gzc.EMPTY=hx.EMPTY;Gzc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return hx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=Fzc(a.flush.bind(a,void 0)))};
Gzc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return hx.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(gia(b),a.scheduled=void 0)};var Hzc=function(){ix.apply(this,arguments)};Y(Hzc,ix);Hzc.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 Br=new Hzc(Gzc);var kx=function(a,b){hx.call(this,a,b);this.scheduler=a;this.work=b};Y(kx,hx);kx.EMPTY=hx.EMPTY;kx.prototype.schedule=function(a,b){b=b===void 0?0:b;if(b>0)return hx.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};kx.prototype.execute=function(a,b){return b>0||this.closed?hx.prototype.execute.call(this,a,b):this._execute(a,b)};
kx.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?hx.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var Izc=function(){ix.apply(this,arguments)};Y(Izc,ix);var Fha=new Izc(kx);var Ug=function(){this.taskId=0;this.pendingTasks=new Set;this.destroyed=!1;this.pendingTask=new Nj(!1)};Ug.prototype.add=function(){this.hasPendingTasks||this.destroyed||this.pendingTask.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};Ug.prototype.has=function(a){return this.pendingTasks.has(a)};Ug.prototype.remove=function(a){this.pendingTasks.delete(a);this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)};
Ug.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this.hasPendingTasks&&this.pendingTask.next(!1);this.destroyed=!0;this.pendingTask.unsubscribe()};da.Object.defineProperties(Ug.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 Vd(function(a){a.next(!1);a.complete()}):this.pendingTask}}});
Ug.\u0275prov=Fc({token:Ug,providedIn:"root",factory:function(){return new Ug}});var Ui=function(a){a=a===void 0?!1:a;sf.call(this);this.pendingTasks=this.destroyRef=void 0;this.__isAsync=a;if(Wea!==void 0||Yea!=null){var b;this.destroyRef=(b=p(Ee,{optional:!0}))!=null?b:void 0;var c;this.pendingTasks=(c=p(Ug,{optional:!0}))!=null?c:void 0}};Y(Ui,sf);Ui.create=sf.create;Ui.prototype.emit=function(a){var b=Jc(null);try{sf.prototype.next.call(this,a)}finally{Jc(b)}};
Ui.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&typeof a==="object"){var e;d=(e=a.next)==null?void 0:e.bind(a);var f;b=(f=a.error)==null?void 0:f.bind(a);var g;c=(g=a.complete)==null?void 0:g.bind(a)}this.__isAsync&&(b=Jzc(this,b),d&&(d=Jzc(this,d)),c&&(c=Jzc(this,c)));d=sf.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof Rd&&a.add(d);return d};
var Jzc=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 nia=0,Rg=function(a){this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new Ui(!1);this.onMicrotaskEmpty=new Ui(!1);this.onStable=new Ui(!1);this.onError=new Ui(!1);var b=a.enableLongStackTrace===void 0?!1:a.enableLongStackTrace,c=a.shouldCoalesceEventChangeDetection===void 0?!1:a.shouldCoalesceEventChangeDetection,d=a.shouldCoalesceRunChangeDetection===void 0?!1:a.shouldCoalesceRunChangeDetection;a=a.scheduleInRootZone===void 0?!1:a.scheduleInRootZone;if(typeof Zone==
"undefined")throw new Vc(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;qia(this)},oza=function(){return typeof Zone!=="undefined"&&Zone.current.get("isAngularZone")===
!0},Kzc=function(){if(oza())throw new Vc(909,!1);};Rg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Rg.prototype.runTask=function(a,b,c,d){var e=this._inner;a=e.scheduleEventTask("NgZoneEvent: "+d,a,Lzc,hia,hia);try{return e.runTask(a,b,c)}finally{e.cancelTask(a)}};Rg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};Rg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var Lzc={},lx=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Ui;this.onMicrotaskEmpty=new Ui;this.onStable=new Ui;this.onError=new Ui};lx.prototype.run=function(a,b,c){return a.apply(b,c)};lx.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};lx.prototype.runOutsideAngular=function(a){return a()};lx.prototype.runTask=function(a,b,c){return a.apply(b,c)};var mx=function(){this._console=console};mx.prototype.handleError=function(a){this._console.error("ERROR",a)};var Te=new fd("",{factory:function(){var a=p(Rg),b=p($e),c;return function(d){a.runOutsideAngular(function(){b.destroyed&&!c?setTimeout(function(){throw d;}):(c!=null||(c=b.get(mx)),c.handleError(d))})}}}),Mzc={provide:ufa,useValue:function(){p(mx,{optional:!0})},multi:!0};
new fd("",{factory:function(){var a=p(Sh).defaultView;if(a){var b=p(Te),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();p(Ee).onDestroy(function(){a.removeEventListener("error",d);a.removeEventListener("unhandledrejection",c)})}}});var Fia=new Set;var De=new fd("");var Be=function(){this.impl=null};Be.prototype.execute=function(){var a;(a=this.impl)==null||a.execute()};Be.\u0275prov=Fc({token:Be,providedIn:"root",factory:function(){return new Be}});var Nzc=[0,1,2,3],Ce=function(){this.ngZone=p(Rg);this.scheduler=p(bf);this.errorHandler=p(mx,{optional:!0});this.sequences=new Set;this.deferredRegistrations=new Set;this.executing=!1;p(De,{optional:!0})};
Ce.prototype.execute=function(){var a=this.sequences.size>0;a&&Dd(16);this.executing=!0;for(var b=m(Nzc),c=b.next(),d={};!c.done;d={phase:void 0},c=b.next()){d.phase=c.value;c=m(this.sequences);for(var e=c.next(),f={};!e.done;f={sequence:void 0},e=c.next())if(f.sequence=e.value,!f.sequence.erroredOrDestroyed&&f.sequence.hooks[d.phase])try{f.sequence.pipelinedValue=this.ngZone.runOutsideAngular(function(g,k){return function(){return Ozc(function(){return(0,g.sequence.hooks[k.phase])(g.sequence.pipelinedValue)},
g.sequence.snapshot)}}(f,d))}catch(g){f.sequence.erroredOrDestroyed=!0,e=void 0,(e=this.errorHandler)==null||e.handleError(g)}}this.executing=!1;b=m(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=m(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&&Dd(17)};
Ce.prototype.register=function(a){var b=a.view;if(b!==void 0){var c;((c=b[25])!=null?c:b[25]=[]).push(a);qd(b);b[2]|=8192}else this.executing?this.deferredRegistrations.add(a):(this.sequences.add(a),this.scheduler.notify(7))};Ce.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 Ozc=function(a,b){return b?b.run(1,a):a()};
Ce.\u0275prov=Fc({token:Ce,providedIn:"root",factory:function(){return new Ce}});var Fe=function(a,b,c,d,e,f){var g=this;this.impl=a;this.hooks=b;this.view=c;this.once=d;this.snapshot=f===void 0?null:f;this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;this.unregisterOnDestroy=e==null?void 0:e.onDestroy(function(){return g.destroy()})};Fe.prototype.afterRun=function(){this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;var a;(a=this.snapshot)==null||a.dispose();this.snapshot=null};
Fe.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 tia=function(a,b){this.view=a;this.node=b};tia.__NG_ELEMENT_ID__=uia;var via=new Set;var wia=new fd("",{factory:function(){return{queue:new Set,isScheduled:!1,scheduler:null}}});var Oia;var Jia=Iia,Kia;var Je=function(a){this.changingThisBreaksApplicationSecurity=a};Je.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)"};var Pzc=function(){Je.apply(this,arguments)};Y(Pzc,Je);Pzc.prototype.getTypeName=function(){return"HTML"};var Qzc=function(){Je.apply(this,arguments)};Y(Qzc,Je);Qzc.prototype.getTypeName=function(){return"URL"};
var Rzc=function(){Je.apply(this,arguments)};Y(Rzc,Je);Rzc.prototype.getTypeName=function(){return"ResourceURL"};var Wia;var $ia=function(a){this.inertDocumentHelper=a};$ia.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Yia(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 Zia=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
Zia.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=Yia(a);return b};var bja=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Szc=Ne("area,br,col,hr,img,wbr"),Tzc=Ne("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Uzc=Ne("rp,rt"),Vzc=dja(Uzc,Tzc),Wzc=dja(Tzc,Ne("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")),Xzc=dja(Uzc,Ne("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")),
lja=dja(Szc,Wzc,Xzc,Vzc),nja=Ne("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yzc=Ne("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"),
Zzc=Ne("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"),
mja=dja(nja,Yzc,Zzc),oja=Ne("script,style,template"),jja=function(){this.buf=[]};jja.prototype.endElement=function(a){a=eja(a).toLowerCase();lja.hasOwnProperty(a)&&!Szc.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var fja=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gja=/([^#-~ |!])/g,ija;var $zc={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 qja;var zka=Symbol("Fa");new fd("");var jka=[],kka=Object.assign({},Yw,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){qd(a.lView)},consumerOnSignalRead:function(){this.lView[24]=this}}),lka=Object.assign({},Yw,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){for(a=rd(a.lView);a&&a[1].type===2;)a=rd(a);a&&Nfa(a)},consumerOnSignalRead:function(){this.lView[24]=this}});var Qg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};h=Qg.prototype;h.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(kd(a)){var b=a[8],c=b?b.indexOf(this):-1;c>-1&&(qka(a,c),kfa(b,c))}this._attachedToViewContainer=!1}Eia(this._lView[1],this._lView)};h.onDestroy=function(a){Qfa(this._lView,a)};
h.markForCheck=function(){aha(this._cdRefInjectingView||this._lView,4)};h.detach=function(){this._lView[2]&=-129};h.reattach=function(){Pfa(this._lView);this._lView[2]|=128};h.detectChanges=function(){this._lView[2]|=1024;hka(this._lView)};
da.Object.defineProperties(Qg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return dka(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 wka=function(){};wka.\u0275prov=Fc({token:wka,providedIn:"root",factory:function(){return null}});var aAc=function(a){this.ngModule=a};Y(aAc,dzc);var bAc=function(a,b){return new bh(b[cd]||null,a.ngModule)},bh=function(a,b){this.componentDef=a;this.ngModule=b;this.cachedOutputs=this.cachedInputs=null;this.componentType=a.type;this.selector=a.selectors.map(Mga).join(",");var c;this.ngContentSelectors=(c=a.ngContentSelectors)!=null?c:[];this.isBoundToModule=!!b};Y(bh,kzc);
bh.prototype.create=function(a,b,c,d,e,f){Dd(22);var g=Jc(null);try{var k=this.componentDef,l=Cka(c,k,f,e),r=vka(k,d||this.ngModule,a),w=xka(r),x=w.rendererFactory.createRenderer(null,k),C=c?Cja(x,c,k.encapsulation,r):yka(k,x),H=(f==null?void 0:f.some(Dka))||(e==null?void 0:e.some(function(R){return typeof R!=="function"&&R.bindings.some(Dka)})),J=Sia(null,l,null,512|Tia(k),null,null,w,x,r,null,null);J[27]=C;$fa(J);a=null;try{var O=bka(27,J,2,"#host",function(){return l.directiveRegistry},0);Wga(x,
C,O);Id(C,J);zja(l,J,O);Sja(l,O,J);cka(l,O);b!==void 0&&Eka(O,this.ngContentSelectors,b);a=od(O.index,J);J[8]=a[8];Uja(l,J,null)}catch(R){throw a!==null&&Pga.delete(a[19]),Pga.delete(J[19]),R;}finally{Dd(23),cga()}return new nx(this.componentType,J,!!H)}finally{Jc(g)}};
da.Object.defineProperties(bh.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){this.cachedInputs!=null||(this.cachedInputs=ska(this.componentDef.inputs));return this.cachedInputs}},outputs:{configurable:!0,enumerable:!0,get:function(){this.cachedOutputs!=null||(this.cachedOutputs=tka(this.componentDef.outputs));return this.cachedOutputs}}});
var nx=function(a,b,c){this._rootLView=b;this._hasInputBindings=c;this.previousInputValues=null;this._tNode=b[1].data[27];this.location=Kd(this._tNode,b);this.instance=od(this._tNode.index,b)[8];this.hostView=this.changeDetectorRef=new Qg(b,void 0);this.componentType=a};Y(nx,jzc);
nx.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;Qe(c,d[1],d,a,b);this.previousInputValues.set(a,b);a=od(c.index,d);aha(a,1)}};nx.prototype.destroy=function(){this.hostView.destroy()};nx.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
da.Object.defineProperties(nx.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Gd(this._tNode,this._rootLView)}}});var ox=function(a,b,c,d){d=d===void 0?!0:d;this.ngModuleType=a;this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new aAc(this);var e=(a[Tyc]||null).bootstrap;this._bootstrapComponents=e instanceof Function?e():e;this._r3Injector=Hga(a,b,[{provide:dx,useValue:this},{provide:dzc,useValue:this.componentFactoryResolver}].concat(q(c)),Tc(a),new Set(["environment"]));d&&this.resolveInjectorInitializers()};Y(ox,dx);
ox.prototype.resolveInjectorInitializers=function(){this._r3Injector.resolveInjectorInitializers();this.instance=this._r3Injector.get(this.ngModuleType)};ox.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};ox.prototype.onDestroy=function(a){this.destroyCbs.push(a)};da.Object.defineProperties(ox.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});
var yya=function(a){this.moduleType=a};Y(yya,xya);yya.prototype.create=function(a){return new ox(this.moduleType,a,[])};var Fka=function(a){this.componentFactoryResolver=new aAc(this);this.instance=null;var b=new hd([].concat(q(a.providers),[{provide:dx,useValue:this},{provide:dzc,useValue:this.componentFactoryResolver}]),a.parent||zfa(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&b.resolveInjectorInitializers()};Y(Fka,dx);Fka.prototype.destroy=function(){this.injector.destroy()};
Fka.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var Ika=function(a){this._injector=a;this.cachedInjectors=new Map};Ika.prototype.ngOnDestroy=function(){try{for(var a=m(this.cachedInjectors.values()),b=a.next();!b.done;b=a.next()){var c=b.value;c!==null&&c.destroy()}}finally{this.cachedInjectors.clear()}};Ika.\u0275prov=Fc({token:Ika,providedIn:"environment",factory:function(){return new Ika($c($e))}});var Pka=new fd(""),Vg=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=p(Pka,{optional:!0}))!=null?b:[];this.injector=p(Ae)},Woa=function(a){if(!a.initialized){for(var b=[],c=m(a.appInits),d=c.next(),e={};!d.done;e={initResult:void 0},d=c.next())e.initResult=id(a.injector,d.value),Nka(e.initResult)?b.push(e.initResult):Oka(e.initResult)&&(d=new Promise(function(f){return function(g,k){f.initResult.subscribe({complete:g,
error:k})}}(e)),b.push(d));Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});b.length===0&&(a.done=!0,a.resolve());a.initialized=!0}};Vg.\u0275fac=function(a){return new (a||Vg)};Vg.\u0275prov=Fc({token:Vg,factory:Vg.\u0275fac,providedIn:"root"});var px=function(){};px.prototype.log=function(a){console.log(a)};px.prototype.warn=function(a){console.warn(a)};px.\u0275fac=function(a){return new (a||px)};px.\u0275prov=Fc({token:px,factory:px.\u0275fac,providedIn:"platform"});var Tka=function(){};Tka.\u0275prov=Fc({token:Tka,providedIn:"root",factory:function(){return new cAc}});var cAc=function(){this.dirtyEffectCount=0;this.queues=new Map};h=cAc.prototype;h.add=function(a){this.enqueue(a);this.schedule(a)};h.schedule=function(a){a.dirty&&this.dirtyEffectCount++};h.remove=function(a){var b=this.queues.get(a.zone);b.has(a)&&(b.delete(a),a.dirty&&this.dirtyEffectCount--)};
h.enqueue=function(a){var b=a.zone;this.queues.has(b)||this.queues.set(b,new Set);b=this.queues.get(b);b.has(a)||b.add(a)};h.flush=function(){for(var a=this;this.dirtyEffectCount>0;){for(var b=!1,c=m(this.queues),d=c.next(),e={};!d.done;e={queue$jscomp$4:void 0},d=c.next()){var f=m(d.value);d=f.next().value;f=f.next().value;e.queue$jscomp$4=f;d===null?b||(b=dAc(this,e.queue$jscomp$4)):b||(b=d.run(function(g){return function(){return dAc(a,g.queue$jscomp$4)}}(e)))}b||(this.dirtyEffectCount=0)}};
var dAc=function(a,b){var c=!1;b=m(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 Uka=function(a){this[Pc]=a};Uka.prototype.destroy=function(){this[Pc].destroy()};
var eAc=Object.assign({},Syc,{cleanupFns:void 0,zone:null,onDestroyFn:hia,run:function(){var a=Vfa(!1);try{if(this.dirty=!1,!(this.version>0)||Cea(this)){this.version++;var b=Mc(this);try{this.cleanup(),this.fn()}finally{Hea(this,b)}}}finally{Vfa(a)}},cleanup:function(){var a;if((a=this.cleanupFns)!=null&&a.length){a=Jc(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Jc(a)}}}}),Xka=Object.assign({},eAc,{consumerMarkedDirty:function(){this.scheduler.schedule(this);
this.notifier.notify(12)},destroy:function(){Iea(this);this.onDestroyFn();this.cleanup();this.scheduler.remove(this)}}),Vka=Object.assign({},eAc,{consumerMarkedDirty:function(){this.view[2]|=8192;qd(this.view);this.notifier.notify(13)},destroy:function(){Iea(this);this.onDestroyFn();this.cleanup();var a;(a=this.view[23])==null||a.delete(this)}});var fAc=new fd(""),gAc=new fd(""),qx=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._isZoneStable=!0;this._callbacks=[];this._taskTrackingZone=null;if(Wea!==void 0||Yea!=null){var e;this._destroyRef=(e=p(Ee,{optional:!0}))!=null?e:void 0}hAc||(hAc=c,iAc(b));this._watchAngularEvents();a.run(function(){d._taskTrackingZone=typeof Zone=="undefined"?null:Zone.current.get("TaskTrackingZone")})};
qx.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(){Kzc();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})}),d;(d=this._destroyRef)==null||d.onDestroy(function(){b.unsubscribe();c.unsubscribe()})};qx.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
qx.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=jAc(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0})}};
var jAc=function(a){return a._taskTrackingZone?a._taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};h=qx.prototype;h.addCallback=function(a,b,c){var d=this,e=-1;b&&b>0&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a()},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
h.whenStable=function(a,b,c){if(c&&!this._taskTrackingZone)throw Error("Ha");this.addCallback(a,b,c);this._runCallbacksIfReady()};h.registerApplication=function(a){this.registry.registerApplication(a,this)};h.unregisterApplication=function(a){this.registry.unregisterApplication(a)};h.findProviders=function(){return[]};qx.\u0275fac=function(a){return new (a||qx)($c(Rg),$c(rx),$c(gAc))};qx.\u0275prov=Fc({token:qx,factory:qx.\u0275fac});var rx=function(){this._applications=new Map};
rx.prototype.registerApplication=function(a,b){this._applications.set(a,b)};rx.prototype.unregisterApplication=function(a){this._applications.delete(a)};rx.prototype.findTestabilityInTree=function(a,b){var c,d;return(d=(c=hAc)==null?void 0:c.findTestabilityInTree(this,a,b===void 0?!0:b))!=null?d:null};rx.\u0275fac=function(a){return new (a||rx)};rx.\u0275prov=Fc({token:rx,factory:rx.\u0275fac,providedIn:"platform"});var hAc;var ola=function(){ke.apply(this,arguments);this.activeGroups=0;this.teardownAttempted=!1};Y(ola,ke);ola.EMPTY=ke.EMPTY;ola.create=ke.create;ola.prototype.unsubscribe=function(){this.teardownAttempted=!0;this.activeGroups===0&&ke.prototype.unsubscribe.call(this)};var Dla={leading:!0,trailing:!1};var kAc=new fd(""),Wg=function(){var a=this;this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=p(Te);this.afterRenderManager=p(Be);this.zonelessEnabled=p(Poa);this.rootEffectScheduler=p(Tka);this.dirtyFlags=0;this.tracingSnapshot=null;this.autoDetectTestViews=new Set;this.afterTick=new sf;this.componentTypes=[];this.components=[];this.internalPendingTask=p(Ug);this._injector=p($e);this._rendererFactory=null;this.tickImpl=function(){if(a._runningTick)throw new Vc(101,
!1);var b=Jc(null);try{a._runningTick=!0;a._rendererFactory!==null||a._injector.destroyed||(a._rendererFactory=a._injector.get(af,null,{optional:!0}));for(var c=0;a.dirtyFlags!==0&&c++<10;){Dd(14);a:{var d=void 0,e=void 0,f=void 0,g=void 0;a.dirtyFlags&16&&(a.dirtyFlags&=-17,a.rootEffectScheduler.flush());var k=!1;if(a.dirtyFlags&7){var l=!!(a.dirtyFlags&1);a.dirtyFlags&=-8;a.dirtyFlags|=8;for(var r=m(a.allViews),w=r.next();!w.done;w=r.next()){var x=w.value._lView;if(l||Ofa(x))hka(x,l&&!a.zonelessEnabled?
0:1),k=!0}a.dirtyFlags&=-5;lAc(a);if(a.dirtyFlags&23)break a}k||((g=a._rendererFactory)==null||(f=g.begin)==null||f.call(g),(e=a._rendererFactory)==null||(d=e.end)==null||d.call(e));a.dirtyFlags&8&&(a.dirtyFlags&=-9,a.afterRenderManager.execute());lAc(a)}Dd(15)}}finally{a._runningTick=!1;var C;(C=a.tracingSnapshot)==null||C.dispose();a.tracingSnapshot=null;Jc(b);a.afterTick.next();Dd(13)}};p(De,{optional:!0})};
Wg.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()})};Wg.prototype.bootstrap=function(a,b){return mAc(this,a,b)};
var mAc=function(a,b,c){var d=d===void 0?czc:d;return a._injector.get(Rg).run(function(){Dd(10);var e=b instanceof kzc;if(!a._injector.get(Vg).done)throw new Vc(405,"");var f;e?f=b:f=bAc(a._injector.get(dzc),b);a.componentTypes.push(f.componentType);e=f.isBoundToModule?void 0:a._injector.get(dx);var g=f.create(d,[],c||f.selector,e),k=g.location.nativeElement,l=g.injector.get(fAc,null);l==null||l.registerApplication(k);g.onDestroy(function(){a.detachView(g.hostView);Hla(a.components,g);l==null||l.unregisterApplication(k)});
a._loadComponent(g);Dd(11,g);return g})};Wg.prototype.tick=function(){this.zonelessEnabled||(this.dirtyFlags|=1);this._tick()};Wg.prototype._tick=function(){Dd(12);this.tracingSnapshot!==null?this.tracingSnapshot.run(0,this.tickImpl):this.tickImpl()};
var lAc=function(a){a.allViews.some(function(b){return Ofa(b._lView)})?a.dirtyFlags|=2:a.dirtyFlags&=-8},nAc=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Vc(902,!1);b._appRef=a;a=(b._lView[2]&512)!==0;var c=b._lView[16];c===null||a||oka(c,b._lView);Pfa(b._lView)};h=Wg.prototype;h.detachView=function(a){Hla(this._views,a);a._appRef=null;var b=(a._lView[2]&512)!==0,c=a._lView[16];c===null||b||Cia(c,a._lView);Bia(a._lView[1],a._lView)};
h._loadComponent=function(a){nAc(this,a.hostView);try{this.tick()}catch(b){this.internalErrorHandler(b)}this.components.push(a);this._injector.get(kAc,[]).forEach(function(b){return b(a)})};h.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()})}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}};
h.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return Hla(b._destroyListeners,a)}};h.destroy=function(){if(this._destroyed)throw new Vc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};
da.Object.defineProperties(Wg.prototype,{allViews:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this.autoDetectTestViews.keys()),q(this._views))}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},isStable:{configurable:!0,enumerable:!0,get:function(){return this.internalPendingTask.hasPendingTasksObservable.pipe(A(function(a){return!a}))}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,
get:function(){return this._views.length}}});Wg.\u0275fac=function(a){return new (a||Wg)};Wg.\u0275prov=Fc({token:Wg,factory:Wg.\u0275fac,providedIn:"root"});var oAc=new Map;new fd("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");new fd("");var sx=function(){this.internalPendingTasks=p(Ug);this.scheduler=p(bf);this.errorHandler=p(Te)};sx.prototype.add=function(){var a=this,b=this.internalPendingTasks.add();return function(){a.internalPendingTasks.has(b)&&(a.scheduler.notify(11),a.internalPendingTasks.remove(b))}};sx.prototype.run=function(a){var b=this.add();a().catch(this.errorHandler).finally(b)};sx.\u0275prov=Fc({token:sx,providedIn:"root",factory:function(){return new sx}});var fg=function(){};fg.__NG_ELEMENT_ID__=ama;var Hf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};Y(Hf,fg);Hf.__NG_ELEMENT_ID__=fg.__NG_ELEMENT_ID__;h=Hf.prototype;h.clear=function(){for(;this.length>0;)this.remove(this.length-1)};h.get=function(a){var b=this._lContainer[8];return b!==null&&b[a]||null};
h.createEmbeddedView=function(a,b,c){if(typeof c==="number")var d=c;else if(c!=null){d=c.index;var e=c.injector}a=pAc(a,b||{},e,null);qAc(this,a,d,Ff(this._hostTNode,null));return a};
h.createComponent=function(a,b,c,d,e,f,g){var k=a&&typeof a!=="function";k||(g=b||{},b=g.index,c=g.injector,d=g.projectableNodes,e=g.environmentInjector||g.ngModuleRef,f=g.directives,g=g.bindings);a=k?a:new bh(a[cd]||null);c=c||this.parentInjector;e||a.ngModule!=null||(k=(k?c:this.parentInjector).get($e,null))&&(e=k);d=a.create(c,d,null,e,f,g);qAc(this,d.hostView,b,Ff(this._hostTNode,null));return d};h.insert=function(a,b){return qAc(this,a,b,!0)};
var qAc=function(a,b,c,d){var e=b._lView;if(kd(e[3])){var f=a.indexOf(b);f!==-1?a.detach(f):(f=e[3],f=new Hf(f,f[5],f[3]),f.detach(f.indexOf(b)))}c=a._adjustIndex(c);a=a._lContainer;pka(a,e,c,d);if(b._appRef)throw new Vc(902,!1);b._attachedToViewContainer=!0;d=bma(a);c>=d.length?d.push(b):d.splice(c,0,b);return b};h=Hf.prototype;h.move=function(a,b){return this.insert(a,b)};h.indexOf=function(a){var b=this._lContainer[8];return b!==null?b.indexOf(a):-1};
h.remove=function(a){a=this._adjustIndex(a,-1);var b=qka(this._lContainer,a);b&&(kfa(bma(this._lContainer),a),Eia(b[1],b))};h.detach=function(a){a=this._adjustIndex(a,-1);var b=qka(this._lContainer,a);return b&&kfa(bma(this._lContainer),a)!=null?new Qg(b):null};h._adjustIndex=function(a,b){return a==null?this.length+(b===void 0?0:b):a};
da.Object.defineProperties(Hf.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return Kd(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new Gd(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=tga(this._hostTNode,this._hostLView);if(a!==-1){var b=kga(a,this._hostLView);return new Gd(b[1].data[(a&32767)+8],b)}return new Gd(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});var cma=dma;var ema=hma;var Ema=Symbol("Ka");var uma=Ec({disabled:Ec}),yma=Ec({max:Ec}),Ama=Ec({maxLength:Ec}),zma=Ec({min:Ec}),Bma=Ec({minLength:Ec}),sma=Ec({name:Ec}),vma=Ec({readonly:Ec}),wma=Ec({required:Ec}),qma=Ec({value:Ec}),Kma={disabled:"disabled",disabledReasons:"disabledReasons",errors:"errors",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",readonly:"readonly",required:"required",touched:"touched"},Jma=Object.keys(Kma);var rAc=function(){};rAc.prototype.destroy=function(){};rAc.prototype.updateValue=function(){};var Mma=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)};rAc.prototype.move=function(a,b){this.attach(b,this.detach(a))};var Nma=function(){this.kvMap=new Map;this._vMap=void 0};h=Nma.prototype;h.has=function(a){return this.kvMap.has(a)};
h.delete=function(a){if(!this.has(a))return!1;var b=this.kvMap.get(a);this._vMap!==void 0&&this._vMap.has(b)?(this.kvMap.set(a,this._vMap.get(b)),this._vMap.delete(b)):this.kvMap.delete(a);return!0};h.get=function(a){return this.kvMap.get(a)};h.set=function(a,b){if(this.kvMap.has(a)){a=this.kvMap.get(a);this._vMap===void 0&&(this._vMap=new Map);for(var c=this._vMap;c.has(a);)a=c.get(a);c.set(a,b)}else this.kvMap.set(a,b)};
h.forEach=function(a){for(var b=m(this.kvMap),c=b.next();!c.done;c=b.next()){var d=m(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 sAc=function(a,b,c){this.lContainer=a;this.$implicit=b;this.$index=c};da.Object.defineProperties(sAc.prototype,{$count:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var Sma=function(a){this.hasEmptyBlock=!1;this.trackByFn=a;this.liveCollection=void 0},Tma=function(a,b,c){this.lContainer=a;this.hostLView=b;this.templateTNode=c;this.operationsCounter=void 0;this.needsIndexUpdate=!1};Y(Tma,rAc);h=Tma.prototype;h.at=function(a){return nka(this.lContainer,a)[8].$implicit};
h.attach=function(a,b){var c=b[6];this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length);pka(this.lContainer,b,a,Ff(this.templateTNode,c));b=this.lContainer;if(!(b.length<=10)&&(b=(a=b[10+a])?a[26]:void 0,a&&b&&b.detachedLeaveAnimationFns&&b.detachedLeaveAnimationFns.length>0)){c=a[9].get(wia);if(b.detachedLeaveAnimationFns){for(var d=m(b.detachedLeaveAnimationFns),e=d.next();!e.done;e=d.next())c.queue.delete(e.value);b.detachedLeaveAnimationFns=void 0}Fia.delete(a);b.detachedLeaveAnimationFns=
void 0}};h.detach=function(a){this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length-1);var b=this.lContainer;b.length<=10||(b=(b=b[10+a])?b[26]:void 0)&&b.leave&&b.leave.size>0&&(b.detachedLeaveAnimationFns=[]);return qka(this.lContainer,a)};h.create=function(a,b){a=Ila(this.hostLView,this.templateTNode,new sAc(this.lContainer,b,a),{dehydratedView:null});var c;(c=this.operationsCounter)==null||c.recordCreate();return a};
h.destroy=function(a){Eia(a[1],a);var b;(b=this.operationsCounter)==null||b.recordDestroy()};h.updateValue=function(a,b){nka(this.lContainer,a)[8].$implicit=b};h.reset=function(){this.needsIndexUpdate=!1;var a;(a=this.operationsCounter)==null||a.reset()};da.Object.defineProperties(Tma.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var Vma=function(a,b,c,d){Re=!0;return b[11].createElement(d,td.currentNamespace)};var Wma=function(a,b){Re=!0;return b[11].createComment(Vga(""))};var Yma=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],["SMTWTFS".split(""),"Sun Mon Tue Wed Thu Fri Sat".split(" "),"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),"Su Mo Tu We Th Fr Sa".split(" ")],void 0,["JFMAMJJASOND".split(""),"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),"January February March April May June July August September October November December".split(" ")],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y",
"MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202fa","h:mm:ss\u202fa","h:mm:ss\u202fa z","h:mm:ss\u202fa zzzz"],["{1}, {0}",void 0,void 0,void 0],". , ; % + - E \u00d7 \u2030 \u221e NaN :".split(" "),["#,##0.###","#,##0%","\u00a4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length;return Math.floor(Math.abs(a))===1&&b===0?1:5}];var Zma={};var ina=["zero","one","two","few","many"];var hna="en-US";var gna={marker:"element"},fna={marker:"ICU"};var bna=0,$ma=0,dna=function(a,b,c){Re=!0;a:{a=a[11];switch(c){case Node.COMMENT_NODE:b=a.createComment(Vga(b));break a;case Node.TEXT_NODE:b=a.createText(b);break a;case Node.ELEMENT_NODE:b=a.createElement(b,null);break a}b=void 0}return b};var mna=/\ufffd(\d+):?\d*\ufffd/gi,vna=/\ufffd(\d+)\ufffd/,sna=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ona=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,xna=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,wna=/\uE500/g;var zna={};var tAc,gg=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[tAc]=Dna};h=gg.prototype;h.get=function(a){return this._results[a]};h.map=function(a){return this._results.map(a)};h.filter=function(a){return this._results.filter(a)};h.find=function(a){return this._results.find(a)};h.reduce=function(a,b){return this._results.reduce(a,b)};h.forEach=function(a){this._results.forEach(a)};
h.some=function(a){return this._results.some(a)};h.toArray=function(){return this._results.slice()};h.toString=function(){return this._results.toString()};h.reset=function(a,b){this.dirty=!1;a=a.flat(Number.POSITIVE_INFINITY);a:{var c=this._results;if(c.length!==a.length)b=!1;else{for(var d=0;d<c.length;d++){var e=c[d],f=a[d];b&&(e=b(e),f=b(f));if(f!==e){b=!1;break a}}b=!0}}if(this._changesDetected=!b)this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0]};
var kg=function(a){a._changes===void 0||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.next(a)},Sna=function(a,b){a._onDirty=b};gg.prototype.setDirty=function(){this.dirty=!0;var a;(a=this._onDirty)==null||a.call(this)};gg.prototype.destroy=function(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())};da.Object.defineProperties(gg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this._changes)!=null?a:this._changes=new sf}}});
tAc=Symbol.iterator;var eg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};eg.prototype.createEmbeddedView=function(a,b){return pAc(this,a,b)};var pAc=function(a,b,c,d){a=Ila(a._declarationLView,a._declarationTContainer,b,{embeddedViewInjector:c,dehydratedView:d});return new Qg(a)};da.Object.defineProperties(eg.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._declarationTContainer.tView)==null?void 0:a.ssrId)||null}}});
eg.__NG_ELEMENT_ID__=Fna;var Jna=function(a){this.queryList=a;this.matches=null};Jna.prototype.clone=function(){return new Jna(this.queryList)};Jna.prototype.setDirty=function(){this.queryList.setDirty()};var Ina=function(a){this.queries=a=a===void 0?[]:a};Ina.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 Ina(c)}return null};
Ina.prototype.detachView=function(a){Tja(this,a)};var Tja=function(a,b){for(var c=0;c<a.queries.length;c++)b.queries.queries[c].matches!==null&&a.queries[c].setDirty()},Mna=function(a,b,c){this.flags=b;this.read=c===void 0?null:c;typeof a==="string"?this.predicate=Nna(a):this.predicate=a},Ona=function(a){this.queries=a=a===void 0?[]:a};h=Ona.prototype;h.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};h.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
h.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,b!==null?b.length:0);d&&(d.indexInDeclarationView=c,b!==null?b.push(d):b=[d])}return b!==null?new Ona(b):null};h.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};h.track=function(a){this.queries.push(a)};da.Object.defineProperties(Ona.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var jg=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};
jg.prototype.elementStart=function(a,b){if(uAc(this,b)){var c=this.metadata.predicate;if(Array.isArray(c))for(var d=0;d<c.length;d++){var e=c[d];a:{var f=b.localNames;if(f!==null)for(var g=0;g<f.length;g+=2)if(f[g]===e){f=f[g+1];break a}f=null}vAc(this,a,b,f);vAc(this,a,b,Bga(b,a,e,!1,!1))}else c===eg?b.type&4&&vAc(this,a,b,-1):vAc(this,a,b,Bga(b,a,c,!1,!1))}};jg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
jg.prototype.template=function(a,b){this.elementStart(a,b)};jg.prototype.embeddedTView=function(a,b){return uAc(this,a)?(this.crossesNgTemplate=!0,wAc(this,-a.index,b),new jg(this.metadata)):null};
var uAc=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},vAc=function(a,b,c,d){if(d!==null){var e=a.metadata.read;e!==null?e===Jd||e===fg||e===eg&&c.type&4?wAc(a,c.index,-2):(b=Bga(c,b,e,!1,!1),b!==null&&wAc(a,c.index,b)):wAc(a,c.index,d)}},wAc=function(a,b,c){a.matches===null?a.matches=[b,c]:a.matches.push(b,c)};var rg=0,sg=0,tg=0,Xna=0,Zna=0;var tx=function(){};tx.\u0275fac=function(a){return new (a||tx)($c(Wg))};tx.\u0275mod=cf({type:tx});tx.\u0275inj=Hc({});new fd("",{providedIn:"platform",factory:function(){return null}});new fd("",{providedIn:"platform",factory:function(){return null}});new fd("",{providedIn:"platform",factory:function(){return null}});var Eoa=Symbol("Ma"),Foa=Object.assign({},Lea,{transformFn:void 0,applyValueToInputSignal:function(a,b){Qc(a,b)}});var Hoa=function(){var a=this;this.destroyed=!1;this.listeners=null;this.errorHandler=p(mx,{optional:!0});this.destroyRef=p(Ee);this.destroyRef.onDestroy(function(){a.destroyed=!0;a.listeners=null})};Hoa.prototype.subscribe=function(a){var b=this;if(this.destroyed)throw new Vc(953,!1);var c;((c=this.listeners)!=null?c:this.listeners=[]).push(a);return{unsubscribe:function(){var d,e=(d=b.listeners)==null?void 0:d.indexOf(a);if(e!==void 0&&e!==-1){var f;(f=b.listeners)==null||f.splice(e,1)}}}};
Hoa.prototype.emit=function(a){if(this.destroyed)console.warn(Rea(953,!1));else if(this.listeners!==null){var b=Jc(null);try{for(var c=m(this.listeners),d=c.next();!d.done;d=c.next()){var e=d.value;try{e(a)}catch(g){var f=void 0;(f=this.errorHandler)==null||f.handleError(g)}}}finally{Jc(b)}}};Og.required=function(a){return Goa(Eoa,a)};Joa.required=function(){return Ioa(Eoa)};Pg.required=function(){return Rna(!0,!0)};Loa.required=function(){return Rna(!0,!0)};var ux=function(){};ux.__NG_ELEMENT_ID__=Moa;var xAc=function(){};xAc.prototype.supports=function(a){return Yga(a)};xAc.prototype.create=function(a){return new vx(a)};var yAc=function(a,b){return b},vx=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||yAc};
vx.prototype.forEachItem=function(a){var b;for(b=this._itHead;b!==null;b=b._next)a(b)};var zAc=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Noa(a,d,e)?c:a,g=Noa(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 l=g-d,r=k-d;if(l!=r){for(var w=0;w<l;w++){var x=w<e.length?e[w]:e[w]=0,C=x+w;r<=C&&C<l&&(e[w]=x+1)}e[f.previousIndex]=r-l}}g!==k&&b(f,g,k)}};
vx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};vx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};var AAc=function(a,b){for(a=a._identityChangesHead;a!==null;a=a._nextIdentityChange)b(a)};h=vx.prototype;h.diff=function(a){a==null&&(a=[]);if(!Yga(a))throw new Vc(900,!1);return this.check(a)?this:null};h.onDestroy=function(){};
h.check=function(a){var b=this;this._reset();var c=this._itHead,d=!1;if(Array.isArray(a)){this.length=a.length;for(var e=0;e<this.length;e++){var f=a[e];var g=this._trackByFn(e,f);c!==null&&Object.is(c.trackById,g)?(d&&(c=this._verifyReinsertion(c,f,g,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,g,e),d=!0);c=c._next}}else{var k=0;Zga(a,function(l){g=b._trackByFn(k,l);c!==null&&Object.is(c.trackById,g)?(d&&(c=b._verifyReinsertion(c,l,g,k)),Object.is(c.item,l)||b._addIdentityChange(c,
l)):(c=b._mismatch(c,l,g,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
h._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;a!==null;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;a!==null;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
h._mismatch=function(a,b,c,d){if(a===null)var e=this._itTail;else e=a._prev,this._remove(a);a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=this._linkedRecords===null?null:this._linkedRecords.get(c,d),a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new BAc(b,c),e,d));return a};
h._verifyReinsertion=function(a,b,c,d){b=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);b!==null?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
h._truncate=function(a){for(;a!==null;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}this._unlinkedRecords!==null&&this._unlinkedRecords.clear();this._additionsTail!==null&&(this._additionsTail._nextAdded=null);this._movesTail!==null&&(this._movesTail._nextMoved=null);this._itTail!==null&&(this._itTail._next=null);this._removalsTail!==null&&(this._removalsTail._nextRemoved=null);this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)};
h._reinsertAfter=function(a,b,c){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;d===null?this._removalsHead=e:d._nextRemoved=e;e===null?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};h._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
h._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=this._additionsTail===null?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};h._insertAfter=function(a,b,c){var d=b===null?this._itHead:b._next;a._next=d;a._prev=b;d===null?this._itTail=a:d._prev=a;b===null?this._itHead=a:b._next=a;this._linkedRecords===null&&(this._linkedRecords=new wx);this._linkedRecords.put(a);a.currentIndex=c;return a};h._remove=function(a){return this._addToRemovals(this._unlink(a))};
h._unlink=function(a){this._linkedRecords!==null&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;b===null?this._itHead=c:b._next=c;c===null?this._itTail=b:c._prev=b;return a};h._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=this._movesTail===null?this._movesHead=a:this._movesTail._nextMoved=a;return a};
h._addToRemovals=function(a){this._unlinkedRecords===null&&(this._unlinkedRecords=new wx);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;this._removalsTail===null?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
h._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=this._identityChangesTail===null?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};da.Object.defineProperties(vx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}}});
var BAc=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},CAc=function(){this._tail=this._head=null};CAc.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)};
CAc.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};CAc.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 wx=function(){this.map=new Map};wx.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new CAc,this.map.set(b,c));c.add(a)};
wx.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};wx.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};wx.prototype.clear=function(){this.map.clear()};da.Object.defineProperties(wx.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.map.size===0}}});var DAc=function(){};DAc.prototype.supports=function(a){return a instanceof Map||Xga(a)};DAc.prototype.create=function(){return new EAc};var EAc=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};EAc.prototype.forEachItem=function(a){var b;for(b=this._mapHead;b!==null;b=b._next)a(b)};var FAc=function(a,b){for(a=a._changesHead;a!==null;a=a._nextChanged)b(a)};
h=EAc.prototype;h.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};h.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};h.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||Xga(a)))throw new Vc(900,!1);return this.check(a)?this:null};h.onDestroy=function(){};
h.check=function(a){var b=this;this._reset();var c=this._mapHead;this._appendAfter=null;this._forEach(a,function(d,e){c&&c.key===e?(b._maybeAddToChanges(c,d),b._appendAfter=c,c=c._next):(d=b._getOrCreateRecordForKey(e,d),c=b._insertBeforeOrAppend(c,d))});if(c)for(c._prev&&(c._prev._next=null),a=this._removalsHead=c;a!==null;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=
null;this._changesTail&&(this._changesTail._nextChanged=null);this._additionsTail&&(this._additionsTail._nextAdded=null);return this.isDirty};h._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;b._next=a;b._prev=c;a._prev=b;c&&(c._next=b);a===this._mapHead&&(this._mapHead=b);return this._appendAfter=a}this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b;this._appendAfter=b;return null};
h._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){a=this._records.get(a);this._maybeAddToChanges(a,b);b=a._prev;var c=a._next;b&&(b._next=c);c&&(c._prev=b);a._next=null;a._prev=null;return a}c=new GAc(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
h._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;a!==null;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;a!=null;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
h._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};h._addToAdditions=function(a){this._additionsHead===null?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};h._addToChanges=function(a){this._changesHead===null?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
h._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};da.Object.defineProperties(EAc.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}}});var GAc=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var xx=function(a){this.factories=a};xx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b!=null)return b;throw new Vc(901,!1);};xx.\u0275prov=Fc({token:xx,providedIn:"root",factory:function(){return new xx([new xAc])}});var yx=function(a){this.factories=a};yx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Vc(901,!1);};yx.\u0275prov=Fc({token:yx,providedIn:"root",factory:function(){return new yx([new DAc])}});var zx=function(){var a=this;this.applicationErrorHandler=p(Te);this.appRef=p(Wg);this.taskService=p(Ug);this.ngZone=p(Rg);this.zonelessEnabled=p(Poa);this.tracing=p(De,{optional:!0});this.zoneIsDefined=typeof Zone!=="undefined"&&!!Zone.root.run;this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];this.subscriptions=new Rd;var b;this.angularZoneId=this.zoneIsDefined?(b=this.ngZone._inner)==null?void 0:b.get("isAngularZone_ID"):null;var c;this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&
((c=p(Qoa,{optional:!0}))!=null?c:!1);this.cancelScheduledCallback=null;this.runningTick=this.useMicrotaskScheduler=!1;this.pendingRenderTaskId=null;this.subscriptions.add(this.appRef.afterTick.subscribe(function(){a.runningTick||a.cleanup()}));this.subscriptions.add(this.ngZone.onUnstable.subscribe(function(){a.runningTick||a.cleanup()}))};
zx.prototype.notify=function(a){var b=this;if(this.zonelessEnabled||a!==5){switch(a){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}var c,d;this.appRef.tracingSnapshot=(d=(c=this.tracing)==null?void 0:c.snapshot(this.appRef.tracingSnapshot))!=null?d:null;if(!(this.appRef.destroyed||
this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get("isAngularZone_ID"+this.angularZoneId))){var e=this.useMicrotaskScheduler?jia:iia;this.pendingRenderTaskId=this.taskService.add();this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(function(){return e(function(){return b.tick()})}):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(function(){return e(function(){return b.tick()})})}}};
zx.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;jia(function(){a.useMicrotaskScheduler=
!1;a.taskService.remove(b)})}};zx.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe();this.cleanup()};zx.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))};zx.\u0275fac=function(a){return new (a||zx)};zx.\u0275prov=Fc({token:zx,factory:zx.\u0275fac,providedIn:"root"});var Sg=function(){this.zone=p(Rg);this.changeDetectionScheduler=p(bf);this.applicationRef=p(Wg);this.applicationErrorHandler=p(Te)};Sg.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)}})}}))};
Sg.prototype.ngOnDestroy=function(){var a;(a=this._onMicrotaskEmptySubscription)==null||a.unsubscribe()};Sg.\u0275fac=function(a){return new (a||Sg)};Sg.\u0275prov=Fc({token:Sg,factory:Sg.\u0275fac,providedIn:"root"});var Soa=new fd("",{factory:function(){return!1}}),Tg=function(){this.subscription=new Rd;this.initialized=!1;this.zone=p(Rg);this.pendingTasks=p(Ug)};
Tg.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(){Kzc();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(!oza())throw new Vc(909,
!1);b!=null||(b=a.pendingTasks.add())}))}};Tg.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};Tg.\u0275fac=function(a){return new (a||Tg)};Tg.\u0275prov=Fc({token:Tg,factory:Tg.\u0275fac,providedIn:"root"});var Xoa=new fd("",{factory:function(){return p(Xoa,{optional:!0,skipSelf:!0})||(typeof Iwc!=="undefined"?"en-US":typeof $localize!=="undefined"&&$localize.locale||"en-US")}});new fd("",{factory:function(){return"USD"}});new fd("");new fd("");var Uoa=new fd("");var Yoa=new fd(""),Zoa;var Ax=function(){};Ax.\u0275fac=function(a){return new (a||Ax)};Ax.\u0275prov=Fc({token:Ax,factory:Ax.\u0275fac,providedIn:"root"});new fd("");var Xg=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},HAc=function(a,b,c){var d=[];d.push(Roa({ngZoneFactory:function(){var f=c==null?void 0:c.ngZone,g=Object.assign({},Ooa({eventCoalescing:c==null?void 0:c.ngZoneEventCoalescing,runCoalescing:c==null?void 0:c.ngZoneRunCoalescing}));f=f===void 0?"zone.js":f;return f==="noop"?new lx:f==="zone.js"?new Rg(g):f}}));var e;d=[[{provide:bf,useExisting:zx},{provide:Rg,useClass:lx},{provide:Poa,useValue:!0}]].concat(q(d),
q((e=c==null?void 0:c.applicationProviders)!=null?e:[]),[Mzc],q([]));b=new ox(b.moduleType,a.injector,d,!1);Zoa=apa;return $oa({moduleRef:b,allPlatformModules:a._modules,platformInjector:a.injector})},JAc=function(){var a=IAc(),b=Bx,c={applicationProviders:[Toa()]};c=c===void 0?[]:c;var d=Gla({},c);Zoa=apa;Promise.resolve(new yya(b)).then(function(e){return HAc(a,e,d)})};Xg.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
Xg.prototype.destroy=function(){if(this._destroyed)throw new Vc(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(Uoa,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};da.Object.defineProperties(Xg.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
Xg.\u0275fac=function(a){return new (a||Xg)($c(Ae))};Xg.\u0275prov=Fc({token:Xg,factory:Xg.\u0275fac,providedIn:"platform"});var dpa=null;var ipa=function(a){return a};var KAc=function(a){var b=this;this.isError=Zg(function(){return b.status()==="error"});this.isLoading=Zg(function(){return b.status()==="loading"||b.status()==="reloading"});this.isValueDefined=Zg(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=Qna};KAc.prototype.update=function(a){this.set(a(Rc(this.value)))};KAc.prototype.hasValue=function(){return this.isValueDefined()};
KAc.prototype.asReadonly=function(){return this};
var Cx=function(a,b,c,d,e,f){f=f===void 0?!0:f;KAc.call(this,Zg(function(){var k,l,r=(l=(k=g.state()).stream)==null?void 0:l.call(k);if(!r||g.state().status==="loading"&&g.error())return c;if(r.error!==void 0){if(f)throw new LAc(g.error());return c}return r.value},{equal:d}));var g=this;this.loaderFn=b;this.equal=d;this.resolvePendingTask=void 0;this.destroyed=!1;this.status=Zg(function(){return lpa(g.state())});this.error=Zg(function(){var k,l,r=(l=(k=g.state()).stream)==null?void 0:l.call(k);return r&&
r.error!==void 0?r.error:void 0});this.extRequest=kpa({source:a,computation:function(k){return{request:k,reload:0}}});this.state=kpa({source:this.extRequest,computation:function(k,l){var r=k.request===void 0?"idle":"loading";return l?{extRequest:k,status:r,previousStatus:lpa(l.value),stream:l.value.extRequest.request===k.request?l.value.stream:void 0}:{extRequest:k,status:r,previousStatus:"idle",stream:void 0}}});this.effectRef=gf(this.loadEffect.bind(this),{injector:e,manualCleanup:!0});this.pendingTasks=
e.get(sx);this.unregisterOnDestroy=e.get(Ee).onDestroy(function(){return g.destroy()})};Y(Cx,KAc);Cx.prototype.set=function(a){if(!this.destroyed){var b=Rc(this.error),c=Rc(this.state);if(!b&&(b=Rc(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:ng({value:a})});MAc(this)}};
Cx.prototype.reload=function(){var a=Rc(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};Cx.prototype.destroy=function(){this.destroyed=!0;this.unregisterOnDestroy();this.effectRef.destroy();MAc(this);this.state.set({extRequest:{request:void 0,reload:0},status:"idle",previousStatus:"idle",stream:void 0})};
Cx.prototype.loadEffect=function(){var a=this,b,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:b=a.extRequest();c=Rc(a.state);d=c.status;e=c.previousStatus;if(b.request===void 0||d!=="loading")return x.return();MAc(a);f=a.resolvePendingTask=a.pendingTasks.add();g=a.pendingController=new AbortController;k=g.signal;Yd(x,2,3);return z(x,Rc(function(){return a.loaderFn({params:b.request,request:b.request,abortSignal:k,previous:{status:e}})}),5);case 5:l=x.yieldResult;if(k.aborted||
Rc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"resolved",stream:l});case 3:Zd(x);(r=f)==null||r();f=void 0;ae(x,0);break;case 2:w=be(x);if(k.aborted||Rc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"error",stream:ng({error:w instanceof Error?w:new NAc(w)})});x.jumpTo(3)}})};
var MAc=function(a){Rc(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},LAc=function(a){a=Error.call(this,a.message,{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(LAc,Error);var NAc=function(a){a=Error.call(this,String(a),{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(NAc,Error);var OAc=Symbol("Na"),PAc=new Set,QAc=Object.assign({},Lea,{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:OAc,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!==OAc&&
!Cea(this))return this.signal;try{for(var b,c=m((b=this.cleanup)!=null?b:PAc),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=Mc(this);try{var g=this.userFn.apply(null,b)}finally{Hea(this,a)}this.value!==OAc&&this.equal(this.value,g)||(this.value=g,this.version++);return this.signal}}),mpa=function(a,b,c,d,e,f){f=f===void 0?null:f;Fe.call(this,a,[void 0,void 0,void 0,void 0],c,!1,e.get(Ee),
f);this.scheduler=d;this.lastPhase=null;this.nodes=[void 0,void 0,void 0,void 0];a=m(Nzc);d=a.next();for(c={};!d.done;c={node$jscomp$133:void 0,$jscomp$logical$assign$tmp367619693$0:void 0},d=a.next())d=d.value,e=b[d],e!==void 0&&(c.node$jscomp$133=Object.create(QAc),c.node$jscomp$133.sequence=this,c.node$jscomp$133.phase=d,c.node$jscomp$133.userFn=e,c.node$jscomp$133.dirty=!0,c.node$jscomp$133.signal=function(g){return function(){Lc(g.node$jscomp$133);return g.node$jscomp$133.value}}(c),c.node$jscomp$133.signal[Pc]=
c.node$jscomp$133,c.$jscomp$logical$assign$tmp367619693$0=void 0,c.node$jscomp$133.registerCleanupFn=function(g){return function(k){var l;return((l=(g.$jscomp$logical$assign$tmp367619693$0=g.node$jscomp$133).cleanup)!=null?l:g.$jscomp$logical$assign$tmp367619693$0.cleanup=new Set).add(k)}}(c),this.nodes[d]=c.node$jscomp$133,this.hooks[d]=function(g){return function(k){return g.node$jscomp$133.phaseFn(k)}}(c))};Y(mpa,Fe);
mpa.prototype.afterRun=function(){Fe.prototype.afterRun.call(this);this.lastPhase=null};mpa.prototype.destroy=function(){Fe.prototype.destroy.call(this);for(var a=m(this.nodes),b=a.next();!b.done;b=a.next())if(b=b.value)try{for(var c=void 0,d=m((c=b.cleanup)!=null?c:PAc),e=d.next();!e.done;e=d.next()){var f=e.value;f()}}finally{Iea(b)}};var RAc=fpa(null,"core",[]);var SAc=/\s+/,TAc=[],Dx=function(a,b){this._ngEl=a;this._renderer=b;this.initialClasses=TAc;this.stateMap=new Map};Dx.prototype.ngDoCheck=function(){for(var a=m(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=m(a),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);else if(a!=null){b=m(Object.keys(a));for(var c=b.next();!c.done;c=b.next())c=c.value,this._updateState(c,!!a[c])}this._applyStateDiff()};
Dx.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})};Dx.prototype._applyStateDiff=function(){for(var a=m(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}};
Dx.prototype._toggleClass=function(a,b){var c=this;a=a.trim();a.length>0&&a.split(SAc).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};da.Object.defineProperties(Dx.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=a!=null?a.trim().split(SAc):TAc}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass=typeof a==="string"?a.trim().split(SAc):a}}});
Dx.\u0275fac=function(a){return new (a||Dx)(Ye(Jd),Ye(di))};Dx.\u0275dir=df({type:Dx,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});var UAc=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};da.Object.defineProperties(UAc.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 Ex=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Ex.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)};
Ex.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;zAc(a,function(g,k,l){g.previousIndex==null?c.createEmbeddedView(b._template,new UAc(g.item,b._ngForOf,-1,-1),l===null?void 0:l):l==null?c.remove(k===null?void 0:k):k!==null&&(k=c.get(k),c.move(k,l),k.context.$implicit=g.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}AAc(a,function(g){c.get(g.currentIndex).context.$implicit=g.item})};
da.Object.defineProperties(Ex.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)}}});Ex.\u0275fac=function(a){return new (a||Ex)(Ye(fg),Ye(eg),Ye(xx))};
Ex.\u0275dir=df({type:Ex,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var Fx=function(a,b){this._viewContainer=a;this._context=new VAc;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Fx.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))};
da.Object.defineProperties(Fx.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){qpa(a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){qpa(a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Fx.\u0275fac=function(a){return new (a||Fx)(Ye(fg),Ye(eg))};
Fx.\u0275dir=df({type:Fx,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var VAc=function(){this.ngIf=this.$implicit=null};var WAc=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};WAc.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};WAc.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var Gx=function(){this._defaultViews=[];this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};Gx.prototype._addCase=function(){return this._caseCount++};Gx.prototype._addDefault=function(a){this._defaultViews.push(a)};
Gx.prototype._matchCase=function(a){a=a===this._ngSwitch;this._lastCasesMatched||(this._lastCasesMatched=a);this._lastCaseCheckIndex++;this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1);return a};
Gx.prototype._updateDefaultCases=function(a){if(this._defaultViews.length>0&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=m(this._defaultViews),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};da.Object.defineProperties(Gx.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;this._caseCount===0&&this._updateDefaultCases(!0)}}});Gx.\u0275fac=function(a){return new (a||Gx)};
Gx.\u0275dir=df({type:Gx,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var Hx=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new WAc(a,b)};Hx.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};Hx.\u0275fac=function(a){return new (a||Hx)(Ye(fg),Ye(eg),Ye(Gx,9))};Hx.\u0275dir=df({type:Hx,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var Ix=function(a,b,c){c._addDefault(new WAc(a,b))};Ix.\u0275fac=function(a){return new (a||Ix)(Ye(fg),Ye(eg),Ye(Gx,9))};Ix.\u0275dir=df({type:Ix,selectors:[["","ngSwitchDefault",""]]});var Jx=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Jx.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Jx.prototype._setStyle=function(a,b){var c=m(a.split("."));a=c.next().value;c=c.next().value;var d=a.indexOf("-")===-1?void 0:2;b!=null?this._renderer.setStyle(this._ngEl.nativeElement,a,c?""+b+c:b,d):this._renderer.removeStyle(this._ngEl.nativeElement,a,d)};
Jx.prototype._applyChanges=function(a){var b=this;a.forEachRemovedItem(function(c){return b._setStyle(c.key,null)});a.forEachAddedItem(function(c){return b._setStyle(c.key,c.currentValue)});FAc(a,function(c){return b._setStyle(c.key,c.currentValue)})};da.Object.defineProperties(Jx.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Jx.\u0275fac=function(a){return new (a||Jx)(Ye(Jd),Ye(yx),Ye(di))};
Jx.\u0275dir=df({type:Jx,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});var Kx=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};Kx.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};
Kx.prototype._shouldRecreateView=function(a){return!!a.ngTemplateOutlet||!!a.ngTemplateOutletInjector};Kx.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)}})};Kx.\u0275fac=function(a){return new (a||Kx)(Ye(fg))};
Kx.\u0275dir=df({type:Kx,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[bx]});var XAc=function(){};XAc.prototype.createSubscription=function(a,b,c){return Rc(function(){return a.subscribe({next:b,error:c})})};XAc.prototype.dispose=function(a){Rc(function(){return a.unsubscribe()})};var YAc=function(){};YAc.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}}};YAc.prototype.dispose=function(a){a.unsubscribe()};
var ZAc=new YAc,$Ac=new XAc,Lx=function(a){this._latestValue=null;this.markForCheckOnValueUpdate=!0;this._strategy=this._obj=this._subscription=null;this.applicationErrorHandler=p(Te);this._ref=a};h=Lx.prototype;h.ngOnDestroy=function(){this._subscription&&this._dispose();this._ref=null};
h.transform=function(a){if(!this._obj){if(a)try{this.markForCheckOnValueUpdate=!1,this._subscribe(a)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue};h._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)},function(c){return b.applicationErrorHandler(c)})};
h._selectStrategy=function(a){if(Nka(a))return ZAc;if(Oka(a))return $Ac;throw eh();};h._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};h._updateLatestValue=function(a,b){if(a===this._obj&&(this._latestValue=b,this.markForCheckOnValueUpdate)){var c;(c=this._ref)==null||c.markForCheck()}};Lx.\u0275fac=function(a){return new (a||Lx)(Ye(ux,16))};Lx.\u0275pipe=ef({name:"async",type:Lx,pure:!1});var Mx=function(){};Mx.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw eh();return a.toLowerCase()};Mx.\u0275fac=function(a){return new (a||Mx)};Mx.\u0275pipe=ef({name:"lowercase",type:Mx,pure:!0});
var aBc=/(?:[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,Nx=
function(){};Nx.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw eh();return a.replace(aBc,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Nx.\u0275fac=function(a){return new (a||Nx)};Nx.\u0275pipe=ef({name:"titlecase",type:Nx,pure:!0});var Qpa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Lpa={},Cpa=/((?:[^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]*)/,Fpa={};var bBc=new fd(""),cBc=new fd(""),Ox=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};Ox.prototype.transform=function(a,b,c,d){if(a==null||a===""||a!==a)return null;try{var e,f,g=(f=b!=null?b:(e=this.defaultOptions)==null?void 0:e.dateFormat)!=null?f:"mediumDate",k,l,r,w=(r=(l=c!=null?c:(k=this.defaultOptions)==null?void 0:k.timezone)!=null?l:this.defaultTimezone)!=null?r:void 0;return Jpa(a,g,d||this.locale,w)}catch(x){throw eh();}};
Ox.\u0275fac=function(a){return new (a||Ox)(Ye(Xoa,16),Ye(bBc,24),Ye(cBc,24))};Ox.\u0275pipe=ef({name:"date",type:Ox,pure:!0});var Px=function(){};Px.prototype.transform=function(a){return JSON.stringify(a,null,2)};Px.\u0275fac=function(a){return new (a||Px)};Px.\u0275pipe=ef({name:"json",type:Px,pure:!1});var Qx=function(a){this.differs=a;this.keyValues=[];this.compareFn=Spa};Qx.prototype.transform=function(a,b){var c=this;b=b===void 0?Spa: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};
Qx.\u0275fac=function(a){return new (a||Qx)(Ye(yx,16))};Qx.\u0275pipe=ef({name:"keyvalue",type:Qx,pure:!1});var Vpa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var Rx=function(a){this._locale=a};
Rx.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 Vc(2309,!1);var d=a}else d=Number(a);a=d;var e=Xf(c)[14][0],f=dh(c,5);f=f===void 0?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var g=e.split(";"),k=g[0],l=g[1],r=k.indexOf(".")!==-1?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],w=r[0],x=r[1]||"";d.posPre=w.substring(0,w.indexOf("#"));for(e=0;e<x.length;e++){var C=x.charAt(e);C==="0"?d.minFrac=d.maxFrac=e+1:C==="#"?d.maxFrac=e+1:d.posSuf+=C}var H=w.split(",");d.gSize=H[1]?H[1].length:0;d.lgSize=H[2]||H[1]?(H[2]||H[1]).length:0;if(l){var J=k.length-d.posPre.length-d.posSuf.length,O=l.indexOf("#");d.negPre=l.substring(0,O).replace(/'/g,"");d.negSuf=l.slice(O+J).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return Ypa(a,d,c,b)}catch(R){throw eh();}};
Rx.\u0275fac=function(a){return new (a||Rx)(Ye(Xoa,16))};Rx.\u0275pipe=ef({name:"number",type:Rx,pure:!0});var Xx=function(){};Xx.prototype.transform=function(a,b,c){if(a==null)return null;if(typeof a!=="string"&&!Array.isArray(a))throw eh();return a.slice(b,c)};Xx.\u0275fac=function(a){return new (a||Xx)};Xx.\u0275pipe=ef({name:"slice",type:Xx,pure:!1});var Yx=function(){};Yx.\u0275fac=function(a){return new (a||Yx)};Yx.\u0275mod=cf({type:Yx});Yx.\u0275inj=Hc({});var dBc=function(a){return a.src};new fd("",{factory:function(){return dBc}});new fd("");new fd("",{factory:function(){return new Set}});var Hl=null,eBc=function(){};var Zx=function(){};Zx.prototype.historyGo=function(){throw Error("na");};Zx.\u0275fac=function(a){return new (a||Zx)};Zx.\u0275prov=Fc({token:Zx,factory:function(){return p(ay)},providedIn:"platform"});var fBc=new fd(""),ay=function(){this._doc=p(Sh);this._location=window.location;this._history=window.history};Y(ay,Zx);ay.prototype.onPopState=function(a){var b=gBc(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};
var hBc=function(a,b){var c=gBc(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};h=ay.prototype;h.pushState=function(a,b,c){this._history.pushState(a,b,c)};h.replaceState=function(a,b,c){this._history.replaceState(a,b,c)};h.forward=function(){this._history.forward()};h.back=function(){this._history.back()};h.historyGo=function(a){this._history.go(a===void 0?0:a)};h.getState=function(){return this._history.state};
da.Object.defineProperties(ay.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}}});ay.\u0275fac=function(a){return new (a||ay)};ay.\u0275prov=Fc({token:ay,factory:function(){return new ay},providedIn:"platform"});var by=function(){};by.prototype.historyGo=function(){throw Error("na");};by.\u0275fac=function(a){return new (a||by)};by.\u0275prov=Fc({token:by,factory:function(){return p(cy)},providedIn:"root"});var iBc=new fd(""),cy=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=(e=(d=b!=null?b:Hl.getBaseHref())!=null?d:(c=p(Sh).location)==null?void 0:c.origin)!=null?e:""};Y(cy,by);h=cy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),hBc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};h.prepareExternalUrl=function(a){return Zpa(this._baseHref,a)};h.path=function(a){var b=this._platformLocation.pathname+jh(this._platformLocation.search),c=this._platformLocation.hash;return c&&(a===void 0?0:a)?b+c:b};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+jh(d)))};
h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+jh(d)))};h.forward=function(){this._platformLocation.forward()};h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};cy.\u0275fac=function(a){return new (a||cy)($c(Zx),$c(iBc,8))};cy.\u0275prov=Fc({token:cy,factory:cy.\u0275fac,providedIn:"root"});var dy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];b!=null&&(this._baseHref=b)};Y(dy,by);h=dy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),hBc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};
h.path=function(){var a,b=(a=this._platformLocation.hash)!=null?a:"#";return b.length>0?b.substring(1):b};h.prepareExternalUrl=function(a){a=Zpa(this._baseHref,a);return a.length>0?"#"+a:a};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+jh(d))||this._platformLocation.pathname)};h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+jh(d))||this._platformLocation.pathname)};h.forward=function(){this._platformLocation.forward()};
h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};dy.\u0275fac=function(a){return new (a||dy)($c(Zx),$c(iBc,8))};dy.\u0275prov=Fc({token:dy,factory:dy.\u0275fac});var ii=function(a){var b=this;this._subject=new sf;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=aqa($pa(a.replace(/\/index.html$/,"")));this._locationStrategy.onPopState(function(c){b._subject.next({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};h=ii.prototype;h.ngOnDestroy=function(){var a;(a=this._urlChangeSubscription)==null||a.unsubscribe();this._urlChangeListeners=[]};
h.path=function(a){return this.normalize(this._locationStrategy.path(a===void 0?!1:a))};h.getState=function(){return this._locationStrategy.getState()};h.normalize=function(a){var b=ii.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(ii,c)};h.prepareExternalUrl=function(a){a&&a[0]!=="/"&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
h.go=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+jh(b)),c)};h.replaceState=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+jh(b)),c)};h.forward=function(){this._locationStrategy.forward()};h.back=function(){this._locationStrategy.back()};
h.historyGo=function(a){var b,c;(c=(b=this._locationStrategy).historyGo)==null||c.call(b,a===void 0?0:a)};h._notifyUrlChangeListeners=function(a,b){a=a===void 0?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};h.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b!=null?b:void 0,complete:c!=null?c:void 0})};ii.stripTrailingSlash=$pa;ii.\u0275fac=function(a){return new (a||ii)($c(by))};ii.\u0275prov=Fc({token:ii,factory:function(){return new ii($c(by))},providedIn:"root"});var jBc=function(){};jBc.\u0275prov=Fc({token:jBc,providedIn:"root",factory:function(){return new kBc}});var kBc=function(){var a=p(Sh),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}},lBc=function(a,b){a.offset=Array.isArray(b)?function(){return b}:b};kBc.prototype.getScrollPosition=function(){return[this.window.scrollX,this.window.scrollY]};kBc.prototype.scrollToPosition=function(a,b){this.window.scrollTo(Object.assign({},b,{left:a[0],top:a[1]}))};var mBc=function(){};var ey=function(){this.supportsDOMEvents=!0};Y(ey,eBc);var nBc=function(a,b,c,d){a.addEventListener(b,c,d);return function(){a.removeEventListener(b,c,d)}};ey.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};ey.prototype.remove=function(a){a.remove()};ey.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var gBc=function(a,b){return b==="window"?window:b==="document"?a:b==="body"?a.body:null};
ey.prototype.getBaseHref=function(){var a=(oBc=oBc||document.head.querySelector("base"))?oBc.getAttribute("href"):null;return a==null?null:(new URL(a,document.baseURI)).pathname};var oBc=null;var pBc=function(){},iAc=function(a){Me.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,c===void 0?!0:c);if(b==null)throw new Vc(5103,!1);return b};Me.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};Me.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};Me.frameworkStabilizers||(Me.frameworkStabilizers=[]);Me.frameworkStabilizers.push(function(b){var c=Me.getAllAngularTestabilities(),d=c.length,e=function(){d--;d==0&&b()};
c.forEach(function(f){f.whenStable(e)})})};pBc.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 fy=function(){};fy.prototype.build=function(){return new XMLHttpRequest};fy.\u0275fac=function(a){return new (a||fy)};fy.\u0275prov=Fc({token:fy,factory:fy.\u0275fac});var qBc=function(a){this._doc=a};var gy=function(a){this._doc=a};Y(gy,qBc);gy.prototype.supports=function(){return!0};gy.prototype.addEventListener=function(a,b,c,d){var e=this;a.addEventListener(b,c,d);return function(){return e.removeEventListener(a,b,c,d)}};gy.prototype.removeEventListener=function(a,b,c,d){return a.removeEventListener(b,c,d)};gy.\u0275fac=function(a){return new (a||gy)($c(Sh))};gy.\u0275prov=Fc({token:gy,factory:gy.\u0275fac});var rBc=new fd(""),hy=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){d.manager=c});this._plugins=a.filter(function(d){return!(d instanceof gy)}).slice().reverse();(a=a.find(function(d){return d instanceof gy}))&&this._plugins.push(a)};hy.prototype.addEventListener=function(a,b,c,d){return this._findPluginFor(b).addEventListener(a,b,c,d)};
hy.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 Vc(5101,!1);this._eventNameToPlugin.set(a,b);return b};hy.\u0275fac=function(a){return new (a||hy)($c(rBc),$c(Rg))};hy.\u0275prov=Fc({token:hy,factory:hy.\u0275fac});var iy=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=m(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)},
tBc=function(a,b,c){b=m(b);for(var d=b.next();!d.done;d=b.next())sBc(a,d.value,a.inline,cqa);c==null||c.forEach(function(e){return sBc(a,e,a.external,dqa)})},vBc=function(a,b,c){b=m(b);for(var d=b.next();!d.done;d=b.next())uBc(d.value,a.inline);c==null||c.forEach(function(e){return uBc(e,a.external)})},sBc=function(a,b,c,d){var e=c.get(b);e?e.usage++:c.set(b,{usage:1,elements:[].concat(q(a.hosts)).map(function(f){return a.addElement(f,d(b,a.doc))})})},uBc=function(a,b){var c=b.get(a);c&&(c.usage--,
c.usage<=0&&(bqa(c.elements),b.delete(a)))};iy.prototype.ngOnDestroy=function(){for(var a=m([].concat(q(this.inline),q(this.external))),b=a.next();!b.done;b=a.next())b=m(b.value),b.next(),b=b.next().value.elements,bqa(b);this.hosts.clear()};iy.prototype.addElement=function(a,b){this.nonce&&b.setAttribute("nonce",this.nonce);return a.appendChild(b)};iy.\u0275fac=function(a){return new (a||iy)($c(Sh),$c(ezc),$c(gzc,8),$c(fzc))};iy.\u0275prov=Fc({token:iy,factory:iy.\u0275fac});var wBc={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"},eqa=/%COMP%/g,xBc=new fd("",{factory:function(){return!0}}),ky=function(a,b,c,d,e,f,g,k,l){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=g;this.nonce=k===void 0?null:k;this.tracingService=l===void 0?
null:l;this.rendererByCompId=new Map;this.platformIsServer=!1;this.defaultRenderer=new jy(a,e,g,this.platformIsServer,this.tracingService)};
ky.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;a:{var c=this.rendererByCompId,d=c.get(b.id);if(!d){d=this.doc;var e=this.ngZone,f=this.eventManager,g=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,l=this.platformIsServer,r=this.tracingService;switch(b.encapsulation){case 0:d=new yBc(f,g,b,this.appId,k,d,e,l,r);break;case 3:b=new zBc(f,a,b,d,e,this.nonce,l,r,g);break a;case 4:b=new zBc(f,a,b,d,e,this.nonce,l,r);break a;default:d=new ly(f,g,b,k,d,e,l,r)}c.set(b.id,
d)}b=d}b instanceof yBc?(tBc(b.sharedStylesHost,b.styles,b.styleUrls),b.setAttribute(a,b.hostAttr,"")):b instanceof ly&&tBc(b.sharedStylesHost,b.styles,b.styleUrls);return b};ky.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};ky.\u0275fac=function(a){return new (a||ky)($c(hy),$c(iy),$c(ezc),$c(xBc),$c(Sh),$c(fzc),$c(Rg),$c(gzc),$c(De,8))};ky.\u0275prov=Fc({token:ky,factory:ky.\u0275fac});
var jy=function(a,b,c,d,e){this.eventManager=a;this.doc=b;this.ngZone=c;this.platformIsServer=d;this.tracingService=e;this.data=Object.create(null);this.destroyNode=null};h=jy.prototype;h.destroy=function(){};h.createElement=function(a,b){return b?this.doc.createElementNS(wBc[b]||b,a):this.doc.createElement(a)};h.createComment=function(a){return this.doc.createComment(a)};h.createText=function(a){return this.doc.createTextNode(a)};
h.appendChild=function(a,b){(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).appendChild(b)};h.insertBefore=function(a,b,c){a&&(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).insertBefore(b,c)};h.removeChild=function(a,b){b.remove()};h.selectRootElement=function(a,b){a=typeof a==="string"?this.doc.querySelector(a):a;if(!a)throw new Vc(-5104,!1);b||(a.textContent="");return a};h.parentNode=function(a){return a.parentNode};h.nextSibling=function(a){return a.nextSibling};
h.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=wBc[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};h.removeAttribute=function(a,b,c){if(c){var d=wBc[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};h.addClass=function(a,b){a.classList.add(b)};h.removeClass=function(a,b){a.classList.remove(b)};h.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
h.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};h.setProperty=function(a,b,c){a!=null&&(a[b]=c)};h.setValue=function(a,b){a.nodeValue=b};h.listen=function(a,b,c,d){if(typeof a==="string"&&(a=gBc(this.doc,a),!a))throw new Vc(5102,!1);c=ABc(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 ABc=function(a){return function(b){if(b==="__ngUnwrap__")return a;a(b)===!1&&b.preventDefault()}},zBc=function(a,b,c,d,e,f,g,k,l){jy.call(this,a,d,e,g,k);this.hostEl=b;this.sharedStylesHost=l;this.shadowRoot=b.attachShadow({mode:"open"});if(this.sharedStylesHost){a=this.sharedStylesHost;b=this.shadowRoot;a.hosts.add(b);e=m(a.inline);for(g=e.next();!g.done;g=e.next())g=m(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,cqa(k,a.doc)));e=m(a.external);for(g=e.next();!g.done;g=
e.next())g=m(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,dqa(k,a.doc)))}a=c.styles;a=fqa(c.id,a);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,e=document.createElement("style"),f&&e.setAttribute("nonce",f),e.textContent=b,this.shadowRoot.appendChild(e);var r;if(a=(r=c.getExternalStyles)==null?void 0:r.call(c))for(c=m(a),r=c.next();!r.done;r=c.next())r=dqa(r.value,d),f&&r.setAttribute("nonce",f),this.shadowRoot.appendChild(r)};Y(zBc,jy);
var BBc=function(a,b){return b===a.hostEl?a.shadowRoot:b};h=zBc.prototype;h.appendChild=function(a,b){return jy.prototype.appendChild.call(this,BBc(this,a),b)};h.insertBefore=function(a,b,c){return jy.prototype.insertBefore.call(this,BBc(this,a),b,c)};h.removeChild=function(a,b){return jy.prototype.removeChild.call(this,null,b)};h.parentNode=function(a){return BBc(this,jy.prototype.parentNode.call(this,BBc(this,a)))};h.destroy=function(){this.sharedStylesHost&&this.sharedStylesHost.hosts.delete(this.shadowRoot)};
var ly=function(a,b,c,d,e,f,g,k,l){jy.call(this,a,e,f,g,k);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;a=c.styles;this.styles=l?fqa(l,a):a;var r;this.styleUrls=(r=c.getExternalStyles)==null?void 0:r.call(c,l)};Y(ly,jy);ly.prototype.destroy=function(){this.removeStylesOnCompDestroy&&Fia.size===0&&vBc(this.sharedStylesHost,this.styles,this.styleUrls)};
var yBc=function(a,b,c,d,e,f,g,k,l){d=d+"-"+c.id;ly.call(this,a,b,c,e,f,g,k,l,d);this.contentAttr="_ngcontent-%COMP%".replace(eqa,d);this.hostAttr="_nghost-%COMP%".replace(eqa,d)};Y(yBc,ly);yBc.prototype.createElement=function(a,b){a=ly.prototype.createElement.call(this,a,b);ly.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var CBc=["alt","control","meta","shift"],DBc={"\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"},EBc={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},my=function(a){this._doc=a};Y(my,qBc);my.prototype.supports=function(a){return FBc(a)!=null};
my.prototype.addEventListener=function(a,b,c,d){var e=FBc(b),f=GBc(e.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return nBc(a,e.domEventName,f,d)})};
var FBc=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(b.length===0||a!=="keydown"&&a!=="keyup")return null;var c=HBc(b.pop()),d="",e=b.indexOf("code");e>-1&&(b.splice(e,1),d="code.");CBc.forEach(function(f){var g=b.indexOf(f);g>-1&&(b.splice(g,1),d+=f+".")});d+=c;if(b.length!=0||c.length===0)return null;a={domEventName:a};a.fullKey=d;return a},IBc=function(a,b){var c=DBc[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");CBc.forEach(function(e){e!==c&&(0,EBc[e])(a)&&(d+=e+".")});d+=c;return d===b},GBc=function(a,b,c){return function(d){IBc(d,a)&&c.runGuarded(function(){return b(d)})}},HBc=function(a){return a==="esc"?"escape":a};my.\u0275fac=function(a){return new (a||my)($c(Sh))};my.\u0275prov=Fc({token:my,factory:my.\u0275fac});var IAc=fpa(RAc,"browser",[{provide:fzc,useValue:"browser"},{provide:hpa,useValue:function(){var a=new ey;Hl!=null||(Hl=a)},multi:!0},{provide:Sh,useFactory:function(){return Nga=document}}]);new fd("");
var JBc=[{provide:gAc,useClass:pBc},{provide:fAc,useClass:qx},{provide:qx,useClass:qx}],KBc=[{provide:gpa,useValue:"root"},{provide:mx,useFactory:function(){return new mx}},{provide:rBc,useClass:gy,multi:!0},{provide:rBc,useClass:my,multi:!0},ky,iy,hy,{provide:af,useExisting:ky},{provide:mBc,useClass:fy},[]],ny=function(){};ny.\u0275fac=function(a){return new (a||ny)};ny.\u0275mod=cf({type:ny});ny.\u0275inj=Hc({providers:[].concat(q(KBc),q(JBc)),imports:[Yx,tx]});var oy=function(a){this._doc=a};oy.prototype.getTitle=function(){return this._doc.title};oy.prototype.setTitle=function(a){this._doc.title=a||""};oy.\u0275fac=function(a){return new (a||oy)($c(Sh))};oy.\u0275prov=Fc({token:oy,factory:oy.\u0275fac,providedIn:"root"});new fd("");new fd("");var lh=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&&LBc(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){LBc(b,d,c)})):this.lazyInit=function(){b.headers=new Map;Object.entries(a).forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;MBc(b,c,d)})}:this.headers=
new Map};h=lh.prototype;h.has=function(a){this.init();return this.headers.has(a.toLowerCase())};h.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&a.length>0?a[0]:null};h.keys=function(){this.init();return Array.from(this.normalizedNames.values())};h.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};h.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
h.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var NBc=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};lh.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof lh?OBc(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return PBc(a,b)}),this.lazyUpdate=null))};
var OBc=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))})};lh.prototype.clone=function(a){var b=new lh;b.lazyInit=this.lazyInit&&this.lazyInit instanceof lh?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var PBc=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;NBc(a,b.name,c);b=(b.op==="a"?a.headers.get(c):void 0)||[];b.push.apply(b,q(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)}},LBc=function(a,
b,c){var d=b.toLowerCase();NBc(a,b,d);a.headers.has(d)?a.headers.get(d).push(c):a.headers.set(d,[c])},MBc=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);NBc(a,b,d)};lh.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 QBc=function(){this.map=new Map};h=QBc.prototype;h.set=function(a,b){this.map.set(a,b);return this};h.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};h.delete=function(a){this.map.delete(a);return this};h.has=function(a){return this.map.has(a)};h.keys=function(){return this.map.keys()};var RBc=function(){},hqa=/%(\d[a-f0-9])/gi,iqa={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},mh=function(a){var b=this;a=a===void 0?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new RBc;if(a.fromString){if(a.fromObject)throw new Vc(2805,!1);this.map=gqa(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(kqa):[""+d];b.map.set(c,d)})):this.map=null};h=mh.prototype;
h.has=function(a){this.init();return this.map.has(a)};h.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};h.getAll=function(a){this.init();return this.map.get(a)||null};h.keys=function(){this.init();return Array.from(this.map.keys())};h.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};h.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
h.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=jqa(b);return a.map.get(b).map(function(d){return c+"="+jqa(d)}).join("&")}).filter(function(b){return b!==""}).join("&")};h.clone=function(a){var b=new mh({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
h.init=function(){var a=this;this.map===null&&(this.map=new Map);this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(b){return a.map.set(b,a.cloneFrom.map.get(b))}),this.updates.forEach(function(b){switch(b.op){case "a":case "s":var c=(b.op==="a"?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(b.value!==void 0){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);d!==-1&&c.splice(d,1);c.length>0?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};var nh=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 Vc(2822,"");this.timeout=c.timeout}c.mode&&(this.mode=c.mode);c.redirect&&(this.redirect=c.redirect);c.integrity&&(this.integrity=c.integrity);c.referrer&&(this.referrer=c.referrer);c.referrerPolicy&&(this.referrerPolicy=
c.referrerPolicy);this.transferCache=c.transferCache}this.headers!=null||(this.headers=new lh);this.context!=null||(this.context=new QBc);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 mh,this.urlWithParams=b)},SBc=function(a){return a.body===null?null:typeof a.body==="string"||lqa(a.body)||mqa(a.body)||nqa(a.body)||typeof URLSearchParams!=="undefined"&&a.body instanceof URLSearchParams?
a.body:a.body instanceof mh?a.body.toString():typeof a.body==="object"||typeof a.body==="boolean"||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
nh.prototype.clone=function(a){a=a===void 0?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e,f=(e=a.keepalive)!=null?e:this.keepalive;e=a.priority||this.priority;var g=a.cache||this.cache,k=a.mode||this.mode,l=a.redirect||this.redirect,r=a.credentials||this.credentials,w=a.referrer||this.referrer,x=a.integrity||this.integrity,C=a.referrerPolicy||this.referrerPolicy,H,J=(H=a.transferCache)!=null?H:this.transferCache,O;H=(O=a.timeout)!=null?O:this.timeout;O=a.body!==
void 0?a.body:this.body;var R,V=(R=a.withCredentials)!=null?R:this.withCredentials,ca;R=(ca=a.reportProgress)!=null?ca:this.reportProgress;ca=a.headers||this.headers;var oa=a.params||this.params,ua,ka=(ua=a.context)!=null?ua:this.context;a.setHeaders!==void 0&&(ca=Object.keys(a.setHeaders).reduce(function(Ga,ja){return Ga.set(ja,a.setHeaders[ja])},ca));a.setParams&&(oa=Object.keys(a.setParams).reduce(function(Ga,ja){return Ga.set(ja,a.setParams[ja])},oa));return new nh(b,c,O,{params:oa,headers:ca,
context:ka,reportProgress:R,responseType:d,withCredentials:V,transferCache:J,keepalive:f,cache:g,priority:e,timeout:H,mode:k,redirect:l,credentials:r,referrer:w,integrity:x,referrerPolicy:C})};var py=function(a,b,c){b=b===void 0?200:b;c=c===void 0?"OK":c;this.headers=a.headers||new lh;this.status=a.status!==void 0?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.redirected=a.redirected;this.responseType=a.responseType;this.ok=this.status>=200&&this.status<300},TBc=function(a){a=a===void 0?{}:a;py.call(this,a);this.type=2};Y(TBc,py);
TBc.prototype.clone=function(a){a=a===void 0?{}:a;return new TBc({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 qy=function(a){a=a===void 0?{}:a;py.call(this,a);this.type=4;this.body=a.body!==void 0?a.body:null};Y(qy,py);
qy.prototype.clone=function(a){a=a===void 0?{}:a;var b,c;return new qy({body:a.body!==void 0?a.body:this.body,headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0,redirected:(b=a.redirected)!=null?b:this.redirected,responseType:(c=a.responseType)!=null?c:this.responseType})};
var UBc=function(a){py.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(UBc,py);var VBc=new fd("");var WBc=new fd(""),XBc=new fd("",{factory:function(){return[]}}),YBc=new fd(""),ZBc=new fd("",{providedIn:"root",factory:function(){return!0}});var $Bc=/^\)\]\}',?\n/,ry=function(a){this.xhrFactory=a;this.tracingService=p(De,{optional:!0})},aCc=function(a,b){var c;return((c=a.tracingService)==null?0:c.propagate)?a.tracingService.propagate(b):b};
ry.prototype.handle=function(a){var b=this;if(a.method==="JSONP")throw new Vc(-2800,!1);var c=this.xhrFactory;return ee(null).pipe(Af(function(){return new Vd(function(d){var e=c.build();e.open(a.method,a.urlWithParams);a.withCredentials&&(e.withCredentials=!0);a.headers.forEach(function(O,R){return e.setRequestHeader(O,R.join(","))});a.headers.has("Accept")||e.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var f=a.body===null||nqa(a.body)?null:mqa(a.body)?
a.body.type||null:lqa(a.body)?null:typeof a.body==="string"?"text/plain":a.body instanceof mh?"application/x-www-form-urlencoded;charset=UTF-8":typeof a.body==="object"||typeof a.body==="number"||typeof a.body==="boolean"?"application/json":null;f!==null&&e.setRequestHeader("Content-Type",f)}a.timeout&&(e.timeout=a.timeout);a.responseType&&(f=a.responseType.toLowerCase(),e.responseType=f!=="json"?f:"text");var g=SBc(a),k=null,l=function(){if(k!==null)return k;var O=e.statusText||"OK",R=new lh(e.getAllResponseHeaders());
return k=new TBc({headers:R,status:e.status,statusText:O,url:e.responseURL||a.url})},r=aCc(b,function(){var O=l(),R=O.headers,V=O.status,ca=O.statusText;O=O.url;var oa=null;V!==204&&(oa=typeof e.response==="undefined"?e.responseText:e.response);V===0&&(V=oa?200:0);var ua=V>=200&&V<300;if(a.responseType==="json"&&typeof oa==="string"){var ka=oa;oa=oa.replace($Bc,"");try{oa=oa!==""?JSON.parse(oa):null}catch(Ga){oa=ka,ua&&(ua=!1,oa={error:Ga,text:oa})}}ua?(d.next(new qy({body:oa,headers:R,status:V,statusText:ca,
url:O||void 0})),d.complete()):d.error(new UBc({error:oa,headers:R,status:V,statusText:ca,url:O||void 0}))}),w=aCc(b,function(O){var R=l().url;O=new UBc({error:O,status:e.status||0,statusText:e.statusText||"Unknown Error",url:R||void 0});d.error(O)}),x=w;a.timeout&&(x=aCc(b,function(){var O=l().url;O=new UBc({error:new DOMException("Request timed out","TimeoutError"),status:e.status||0,statusText:e.statusText||"Request timeout",url:O||void 0});d.error(O)}));var C=!1,H=aCc(b,function(O){C||(d.next(l()),
C=!0);var R={type:3,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);a.responseType==="text"&&e.responseText&&(R.partialText=e.responseText);d.next(R)}),J=aCc(b,function(O){var R={type:1,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);d.next(R)});e.addEventListener("load",r);e.addEventListener("error",w);e.addEventListener("timeout",x);e.addEventListener("abort",w);a.reportProgress&&(e.addEventListener("progress",H),g!==null&&e.upload&&e.upload.addEventListener("progress",J));e.send(g);
d.next({type:0});return function(){e.removeEventListener("error",w);e.removeEventListener("abort",w);e.removeEventListener("load",r);e.removeEventListener("timeout",x);a.reportProgress&&(e.removeEventListener("progress",H),g!==null&&e.upload&&e.upload.removeEventListener("progress",J));e.readyState!==e.DONE&&e.abort()}})}))};ry.\u0275fac=function(a){return new (a||ry)($c(mBc))};ry.\u0275prov=Fc({token:ry,factory:ry.\u0275fac,providedIn:"root"});var sy=function(){};sy.\u0275fac=function(a){return new (a||sy)};sy.\u0275prov=Fc({token:sy,factory:function(a){var b=null;return b=a?new (a||sy):$c(ry)},providedIn:"root"});var ty=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=p(sx);this.contributeToStability=p(ZBc)};
ty.prototype.handle=function(a){var b=this;this.chain===null&&(this.chain=Array.from(new Set([].concat(q(this.injector.get(XBc)),q(this.injector.get(YBc,[]))))).reduceRight(function(d,e){return qqa(d,e,b.injector)},oqa));if(this.contributeToStability){var c=this.pendingTasks.add();return this.chain(a,function(d){return b.backend.handle(d)}).pipe(qf(c))}return this.chain(a,function(d){return b.backend.handle(d)})};ty.\u0275fac=function(a){return new (a||ty)($c(sy),$c($e))};
ty.\u0275prov=Fc({token:ty,factory:ty.\u0275fac,providedIn:"root"});var uy=function(){};uy.\u0275fac=function(a){return new (a||uy)};uy.\u0275prov=Fc({token:uy,factory:function(a){var b=null;return b=a?new (a||uy):$c(ty)},providedIn:"root"});var vy=function(a){this.handler=a};h=vy.prototype;
h.request=function(a,b,c){var d=this;c=c===void 0?{}:c;if(a instanceof nh)b=a;else{var e=void 0;e=c.headers instanceof lh?c.headers:new lh(c.headers);var f=void 0;c.params&&(f=c.params instanceof mh?c.params:new mh({fromObject:c.params}));b=new nh(a,b,c.body!==void 0?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials,transferCache:c.transferCache,keepalive:c.keepalive,priority:c.priority,cache:c.cache,
mode:c.mode,redirect:c.redirect,credentials:c.credentials,referrer:c.referrer,referrerPolicy:c.referrerPolicy,integrity:c.integrity,timeout:c.timeout})}e=ee(b).pipe(bla(function(g){return d.handler.handle(g)}));if(a instanceof nh||c.observe==="events")return e;a=e.pipe(we(function(g){return g instanceof qy}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof ArrayBuffer))throw new Vc(2806,!1);return g.body}));
case "blob":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof Blob))throw new Vc(2807,!1);return g.body}));case "text":return a.pipe(A(function(g){if(g.body!==null&&typeof g.body!=="string")throw new Vc(2808,!1);return g.body}));default:return a.pipe(A(function(g){return g.body}))}case "response":return a;default:throw new Vc(2809,!1);}};h.delete=function(a,b){b=b===void 0?{}:b;return this.request("DELETE",a,b)};h.get=function(a,b){b=b===void 0?{}:b;return this.request("GET",a,b)};
h.head=function(a,b){b=b===void 0?{}:b;return this.request("HEAD",a,b)};h.options=function(a,b){b=b===void 0?{}:b;return this.request("OPTIONS",a,b)};h.post=function(a,b,c){c=c===void 0?{}:c;return this.request("POST",a,rqa(c,b))};h.put=function(a,b,c){c=c===void 0?{}:c;return this.request("PUT",a,rqa(c,b))};vy.\u0275fac=function(a){return new (a||vy)($c(uy))};vy.\u0275prov=Fc({token:vy,factory:vy.\u0275fac,providedIn:"root"});var sqa=new fd("",{factory:function(){return!0}}),bCc=new fd("",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),tqa=new fd("",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),wy=function(a,b){this.doc=a;this.cookieName=b;this.lastCookieString="";this.lastToken=null};
wy.prototype.getToken=function(){var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=m(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=m(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};wy.\u0275fac=function(a){return new (a||wy)($c(Sh),$c(bCc))};
wy.\u0275prov=Fc({token:wy,factory:wy.\u0275fac,providedIn:"root"});var kh=function(){};kh.\u0275fac=function(a){return new (a||kh)};kh.\u0275prov=Fc({token:kh,factory:function(a){var b=null;return b=a?new (a||kh):$c(wy)},providedIn:"root"});var cCc=new fd("");var xy=function(){};xy.\u0275fac=function(a){return new (a||xy)};xy.\u0275mod=cf({type:xy});
xy.\u0275inj=Hc({providers:[function(){for(var a=[vy,ty,{provide:uy,useExisting:ty},{provide:sy,useFactory:function(){var d;return(d=p(VBc,{optional:!0}))!=null?d:p(ry)}},{provide:XBc,useValue:uqa,multi:!0}],b=m(bd.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,q(c.value.\u0275providers));return{"\u0275providers":a}}({"\u0275kind":1,"\u0275providers":[{provide:cCc,useFactory:function(){var a=null;return function(b,c){if(a===null){var d;a=((d=p(WBc,{optional:!0}))!=null?d:[]).reduceRight(pqa,
oqa)}d=p(sx);return p(ZBc)?(d=d.add(),a(b,c).pipe(qf(d))):a(b,c)}}},{provide:XBc,useExisting:cCc,multi:!0}]})]});var dCc=Hqa("json");dCc.arrayBuffer=Hqa("arraybuffer");dCc.blob=Hqa("blob");dCc.text=Hqa("text");
var Gqa=function(a,b,c,d,e){Cx.call(this,b,function(g){var k=g.params;var l=g.abortSignal;var r=function(){return H.unsubscribe()};l.addEventListener("abort",r);var w=ng.apply(null,[{value:void 0}].concat(q([]))),x;g=new Promise(function(J){return x=J});var C=function(J){w.set(J);var O;(O=x)==null||O(w);x=void 0};var H=f.client.request(k).subscribe({next:function(J){switch(J.type){case 4:f._headers.set(J.headers);f._statusCode.set(J.status);try{C({value:d?d(J.body):J.body})}catch(O){C({error:O instanceof
Error?O:new NAc(O)})}break;case 3:f._progress.set(J)}},error:function(J){J instanceof UBc&&(f._headers.set(J.headers),f._statusCode.set(J.status));C({error:J});l.removeEventListener("abort",r)},complete:function(){x&&C({error:new Vc(991,!1)});l.removeEventListener("abort",r)}});return g},c,e,a);var f=this;this._headers=kpa.apply(null,q([{source:this.extRequest,computation:function(){}}]));this._progress=kpa.apply(null,q([{source:this.extRequest,computation:function(){}}]));this._statusCode=kpa.apply(null,
q([{source:this.extRequest,computation:function(){}}]));this.headers=Zg.apply(null,[function(){return f.status()==="resolved"||f.status()==="error"?f._headers():void 0}].concat(q([])));this.progress=this._progress.asReadonly();this.statusCode=this._statusCode.asReadonly();this.client=a.get(vy)};Y(Gqa,Cx);Gqa.prototype.set=function(a){Cx.prototype.set.call(this,a);this._headers.set(void 0);this._progress.set(void 0);this._statusCode.set(void 0)};new fd("");new fd("");var yy=function(){};yy.\u0275fac=function(a){return new (a||yy)};yy.\u0275prov=Fc({token:yy,factory:function(a){var b=null;return b=a?new (a||yy):$c(zy)},providedIn:"root"});var zy=function(a){this._doc=a};Y(zy,yy);
zy.prototype.sanitize=function(a,b){if(b==null)return null;switch(a){case 0:return b;case 1:return Le(b,"HTML")?Ke(b):pja(this._doc,String(b)).toString();case 2:return Le(b,"Style")?Ke(b):b;case 3:if(Le(b,"Script"))return Ke(b);throw new Vc(5200,!1);case 4:return Le(b,"URL")?Ke(b):cja(String(b));case 5:if(Le(b,"ResourceURL"))return Ke(b);throw new Vc(5201,!1);default:throw new Vc(5202,!1);}};zy.prototype.bypassSecurityTrustHtml=function(a){return new Pzc(a)};zy.prototype.bypassSecurityTrustUrl=function(a){return new Qzc(a)};
zy.prototype.bypassSecurityTrustResourceUrl=function(a){return new Rzc(a)};zy.\u0275fac=function(a){return new (a||zy)($c(Sh))};zy.\u0275prov=Fc({token:zy,factory:zy.\u0275fac,providedIn:"root"});var fsa=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};fsa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var eCc=kw([""]),fCc=jw(["\x00"],["\\0"]),gCc=jw(["\n"],["\\n"]),hCc=jw(["\x00"],["\\u0000"]),iCc=kw([""]),jCc=jw(["\x00"],["\\0"]),kCc=jw(["\n"],["\\n"]),lCc=jw(["\x00"],["\\u0000"]);Jqa(function(a){return a(eCc)})||Jqa(function(a){return a(fCc)})||Jqa(function(a){return a(gCc)})||Jqa(function(a){return a(hCc)});Iqa(iCc)&&Iqa(jCc)&&Iqa(kCc)&&Iqa(lCc);var mCc=globalThis.trustedTypes,Kqa=mCc,Mqa;var oh=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};oh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};var tj=new oh(mCc?mCc.emptyHTML:"");var th=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};th.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var wh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};wh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var Tqa=new wh("about:invalid#zClosurez");var Pqa=function(a){this.isValid=a},Rqa=[Qqa("data"),Qqa("http"),Qqa("https"),Qqa("mailto"),Qqa("ftp"),new Pqa(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Uqa=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var VEa=function(a){this.privateDoNotAccessOrElseWrappedScript=a};VEa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Wqa=/^[a-z][a-z\d-]*$/i,Xqa="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),$qa="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),ara=["action","formaction","href"];var Ay=function(a){this.decorated=new zy(a)};Y(Ay,yy);Ay.prototype.sanitize=function(a,b){if(b==null)return null;if(b instanceof th||xh(b)||b instanceof oh){if(nCc(b,a))return this.decorated.sanitize(a,oCc(this,b));throw Error("Oa`"+$zc[a]+"`"+b);}return this.decorated.sanitize(a,b)};Ay.prototype.bypassSecurityTrustHtml=function(){throw Error("Pa");};Ay.prototype.bypassSecurityTrustUrl=function(){throw Error("Pa");};Ay.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("Pa");};
var oCc=function(a,b){if(b!=null){if(b instanceof oh)return a.decorated.bypassSecurityTrustHtml(String(b));if(xh(b))return a.decorated.bypassSecurityTrustUrl(Oqa(b));if(b instanceof th)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},nCc=function(a,b){switch(b){case 1:return a instanceof oh;case 4:return xh(a)||a instanceof th;case 5:return a instanceof th;case 3:return!1;default:return!1}};Ay.\u0275fac=function(a){return new (a||Ay)($c(Sh))};Ay.\u0275prov=Fc({token:Ay,factory:Ay.\u0275fac});var pCc=[{provide:wka,useExisting:yy},{provide:yy,useClass:Ay}],By=function(){};By.\u0275fac=function(a){return new (a||By)};By.\u0275mod=cf({type:By});By.\u0275inj=Hc({providers:pCc,imports:[ny]});var dra;var qCc=function(a,b,c){this.url=a;this.svgText=b;this.options=c},Cy=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},rCc=function(a,b){return a._fontCssClassesByAlias.get(b)||b};
Cy.prototype.setDefaultFontSetClass=function(){this._defaultFontSetClass=bd.apply(0,arguments)};var sCc=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):ge(Error("Qa`"+d))};h=Cy.prototype;
h.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};h._getSvgFromConfig=function(a){return a.svgText?ee(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(A(function(b){return b.cloneNode(!0)}))};
h._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return ee(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(jf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return ee(null)}))});return qe(d).pipe(A(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Qa`"+a);return e}))};
h._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;c>=0;c--){var d=b[c];if(d.svgText&&d.svgText.toString().indexOf(a)>-1){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};h._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(Cf(function(c){return a.svgText=c}),A(function(){return b._svgElementFromConfig(a)}))};
h._loadSvgIconSetFromConfig=function(a){return a.svgText?ee(null):this._fetchIcon(a).pipe(Cf(function(b){return a.svgText=b}))};
h._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if(a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,c);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(fra("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
h._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("Ua");return a};h._toSvgElement=function(a){for(var b=this._svgElementFromString(fra("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;f!=="id"&&b.setAttribute(f,e)}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].nodeType===this._document.ELEMENT_NODE&&b.appendChild(a.childNodes[c].cloneNode(!0));return b};
h._setSvgAttributes=function(a,b){a.setAttribute("fit","");a.setAttribute("height","100%");a.setAttribute("width","100%");a.setAttribute("preserveAspectRatio","xMidYMid meet");a.setAttribute("focusable","false");b&&b.viewBox&&a.setAttribute("viewBox",b.viewBox);return a};
h._fetchIcon=function(a){var b=this,c=a.url,d,e;a=(e=(d=a.options)==null?void 0:d.withCredentials)!=null?e:!1;if(!this._httpClient)throw Error("Ra");if(c==null)throw Error("Va`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Sa`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(A(function(g){return fra(g)}),qf(function(){return b._inProgressUrlFetches.delete(f)}),zla());this._inProgressUrlFetches.set(f,c);return c};
h._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};h._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};h._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
h._getIconConfigFromResolvers=function(a,b){for(var c=0;c<this._resolvers.length;c++){var d=this._resolvers[c](b,a);if(d)return d.url&&d.options?new qCc(d.url,null,d.options):new qCc(d,null)}};Cy.\u0275fac=function(a){return new (a||Cy)($c(vy,8),$c(yy),$c(Sh,8),$c(mx))};Cy.\u0275prov=Fc({token:Cy,factory:Cy.\u0275fac,providedIn:"root"});var tCc=new fd("MAT_ICON_DEFAULT_OPTIONS"),uCc=new fd("mat-icon-location",{providedIn:"root",factory:function(){var a=p(Sh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}}),vCc="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),wCc=vCc.map(function(a){return"["+a+"]"}).join(", "),xCc=/^url\(['"]?#(.*?)['"]?\)$/,Dy=function(){this._elementRef=p(Jd);this._iconRegistry=p(Cy);this._location=p(uCc);this._errorHandler=
p(mx);this.inline=!1;this._previousFontSetClass=[];this._currentIconFetch=Rd.EMPTY;var a=p(new cx("aria-hidden"),{optional:!0}),b=p(tCc,{optional:!0});b&&(b.color&&(this.color=this._defaultColor=b.color),b.fontSet&&(this.fontSet=b.fontSet));a||this._elementRef.nativeElement.setAttribute("aria-hidden","true")};h=Dy.prototype;h._splitIconName=function(a){if(!a)return["",""];var b=a.split(":");switch(b.length){case 1:return["",b[0]];case 2:return b;default:throw Error("Wa`"+a);}};h.ngOnInit=function(){this._updateFontIconClasses()};
h.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};h.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};h._usingFontIcon=function(){return!this.svgIcon};
h._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};h._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];c.nodeType===1&&c.nodeName.toLowerCase()!=="svg"||c.remove()}};
h._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?rCc(this._iconRegistry,this.fontSet).split(/ +/):this._iconRegistry._defaultFontSetClass).filter(function(c){return c.length>0});this._previousFontSetClass.forEach(function(c){return a.classList.remove(c)});b.forEach(function(c){return a.classList.add(c)});this._previousFontSetClass=b;this.fontIcon===this._previousFontIconClass||b.includes("mat-ligature-font")||(this._previousFontIconClass&&
a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};h._cleanupFontValue=function(a){return typeof a==="string"?a.trim().split(" ")[0]:a};h._prependPathToReferences=function(a){var b=this._elementsWithExternalReferences;b&&b.forEach(function(c,d){c.forEach(function(e){d.setAttribute(e.name,"url('"+a+"#"+e.value+"')")})})};
h._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(wCc),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={i$jscomp$422:0};a.i$jscomp$422<b.length;a={i$jscomp$422:a.i$jscomp$422},a.i$jscomp$422++)vCc.forEach(function(d){return function(e){var f=b[d.i$jscomp$422],g=f.getAttribute(e);if(g=g?g.match(xCc):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:g[1]})}}}(a))};
h._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=m(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=sCc(this._iconRegistry,d,c).pipe(nf(1)).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Xa`"+c+"`"+d+"`"+e.message))})}};
da.Object.defineProperties(Dy.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())}}});Dy.\u0275fac=function(a){return new (a||Dy)};
Dy.\u0275cmp=D({type:Dy,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(a,b){a&2&&(Kf("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet)("fontIcon",b._usingFontIcon()?b.fontIcon:null),xg(b.color?"mat-"+b.color:""),wg("mat-icon-inline",b.inline)("mat-icon-no-color",b.color!=="primary"&&b.color!=="accent"&&b.color!=="warn"))},inputs:{color:"color",
inline:[2,"inline","inline",$g],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),dg(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 yCc=new fd("cdk-dir-doc",{providedIn:"root",factory:function(){return p(Sh)}});var zCc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,ci=function(){this.valueSignal=ng.apply(null,["ltr"].concat(q([])));this.change=new Ui;var a=p(yCc,{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)?zCc.test(navigator.language)?
"rtl":"ltr":e==="rtl"?"rtl":"ltr";d.call(c,b)}};ci.prototype.ngOnDestroy=function(){this.change.complete()};da.Object.defineProperties(ci.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.valueSignal()}}});ci.\u0275fac=function(a){return new (a||ci)};ci.\u0275prov=Fc({token:ci,factory:ci.\u0275fac,providedIn:"root"});var Ey=function(){};Ey.\u0275fac=function(a){return new (a||Ey)};Ey.\u0275mod=cf({type:Ey});Ey.\u0275inj=Hc({});var Fy=function(){};Fy.\u0275fac=function(a){return new (a||Fy)};Fy.\u0275mod=cf({type:Fy});Fy.\u0275inj=Hc({imports:[Ey]});var ira,jra="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 lra;var pra,nra;var rra;var ACc;try{ACc=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(a){ACc=!1}
var Wh=function(){this.EDGE=(this.isBrowser=(this._platformId=p(fzc))?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&&!ACc)&&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};Wh.\u0275fac=function(a){return new (a||Wh)};Wh.\u0275prov=Fc({token:Wh,factory:Wh.\u0275fac,providedIn:"root"});var BCc=new fd("cdk-input-modality-detector-options"),CCc={ignoreKeys:[18,17,224,91,16]},DCc={passive:!0,capture:!0},Gy=function(){var a=this;this._platform=p(Wh);this._mostRecentTarget=null;this._modality=new Nj(null);this._lastTouchMs=0;this._onKeydown=function(f){var g,k;((g=a._options)==null?0:(k=g.ignoreKeys)==null?0:k.some(function(l){return l===f.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=Kh(f))};this._onMousedown=function(f){Date.now()-a._lastTouchMs<650||(a._modality.next(gra(f)?
"keyboard":"mouse"),a._mostRecentTarget=Kh(f))};this._onTouchstart=function(f){hra(f)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=Kh(f))};var b=p(Rg),c=p(Sh),d=p(BCc,{optional:!0});this._options=Object.assign({},CCc,d);this.modalityDetected=this._modality.pipe(yf(1));this.modalityDetected.pipe(pf());if(this._platform.isBrowser){var e=p(af).createRenderer(null,null);this._listenerCleanups=b.runOutsideAngular(function(){return[e.listen(c,"keydown",
a._onKeydown,DCc),e.listen(c,"mousedown",a._onMousedown,DCc),e.listen(c,"touchstart",a._onTouchstart,DCc)]})}};Gy.prototype.ngOnDestroy=function(){this._modality.complete();var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};da.Object.defineProperties(Gy.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});Gy.\u0275fac=function(a){return new (a||Gy)};Gy.\u0275prov=Fc({token:Gy,factory:Gy.\u0275fac,providedIn:"root"});var ECc=new fd("cdk-focus-monitor-default-options"),FCc=Ih({passive:!0,capture:!0}),Hy=function(){var a=this;this._ngZone=p(Rg);this._platform=p(Wh);this._inputModalityDetector=p(Gy);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=
p(Sh);this._stopInputModalityDetector=new sf;this._rootNodeFocusAndBlurListener=function(c){for(var d=Kh(c);d;d=d.parentElement)c.type==="focus"?a._onFocus(c,d):a._onBlur(c,d)};var b;this._detectionMode=((b=p(ECc,{optional:!0}))==null?void 0:b.detectionMode)||0};
Hy.prototype.monitor=function(a,b){b=b===void 0?!1:b;a=Oh(a);if(!this._platform.isBrowser||a.nodeType!==1)return ee();var c=sra(a)||this._document,d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new sf,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};Hy.prototype.stopMonitoring=function(a){a=Oh(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};
var Iy=function(a,b,c,d){b=Oh(b);b===a._document.activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=m(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),typeof b.focus==="function"&&b.focus(d))};h=Hy.prototype;h.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};h._getWindow=function(){return this._document.defaultView||window};
h._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:a&&this._isLastInteractionFromInputLabel(a)?"mouse":"program"};h._shouldBeAttributedToTouch=function(a){return this._detectionMode===1||!(a==null||!a.contains(this._inputModalityDetector._mostRecentTarget))};
h._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused",b==="touch");a.classList.toggle("cdk-keyboard-focused",b==="keyboard");a.classList.toggle("cdk-mouse-focused",b==="mouse");a.classList.toggle("cdk-program-focused",b==="program")};
h._setOrigin=function(a,b){var c=this;b=b===void 0?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction=a==="touch"&&b;c._detectionMode===0&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};h._onFocus=function(a,b){var c=this._elementInfo.get(b);a=Kh(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
h._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};h._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
h._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,FCc);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,FCc)});this._rootNodeFocusListenerCount.set(c,a+1);++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(Bf(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
h._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);b>1?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,FCc),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,FCc),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};h._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};h._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};
h._isLastInteractionFromInputLabel=function(a){var b=this._inputModalityDetector,c=b._mostRecentTarget;if(b.mostRecentModality!=="mouse"||!c||c===a||a.nodeName!=="INPUT"&&a.nodeName!=="TEXTAREA"||a.disabled)return!1;if(a=a.labels)for(b=0;b<a.length;b++)if(a[b].contains(c))return!0;return!1};Hy.\u0275fac=function(a){return new (a||Hy)};Hy.\u0275prov=Fc({token:Hy,factory:Hy.\u0275fac,providedIn:"root"});
var Jy=function(){this._elementRef=p(Jd);this._focusMonitor=p(Hy);this._focusOrigin=null;this.cdkFocusChange=new Ui};Jy.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)})};Jy.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
da.Object.defineProperties(Jy.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});Jy.\u0275fac=function(a){return new (a||Jy)};Jy.\u0275dir=df({type:Jy,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var Ky=function(){this._platform=p(Wh)};Ky.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};Ky.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||typeof a.getClientRects==="function"&&a.getClientRects().length)&&getComputedStyle(a).visibility==="visible"};
var GCc=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(g){c=null}if(c&&(vra(c)===-1||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=vra(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};
Ky.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")||ura(a);return c&&!this.isDisabled(a)&&((b==null?void 0:b.ignoreVisibility)||this.isVisible(a))};Ky.\u0275fac=function(a){return new (a||Ky)};Ky.\u0275prov=Fc({token:Ky,factory:Ky.\u0275fac,providedIn:"root"});var HCc=new WeakMap,$h=function(){this._injector=p(Ae);this._environmentInjector=p($e)};$h.prototype.load=function(a){var b=this._appRef=this._appRef||this._injector.get(Wg),c=HCc.get(b);c||(c={loaders:new Set,refs:[]},HCc.set(b,c),b.onDestroy(function(){var d;(d=HCc.get(b))==null||d.refs.forEach(function(e){return e.destroy()});HCc.delete(b)}));c.loaders.has(a)||(c.loaders.add(a),c.refs.push(opa(a,{environmentInjector:this._environmentInjector})))};$h.\u0275fac=function(a){return new (a||$h)};
$h.\u0275prov=Fc({token:$h,factory:$h.\u0275fac,providedIn:"root"});var Ly=function(){};Ly.\u0275fac=function(a){return new (a||Ly)};Ly.\u0275cmp=D({type:Ly,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 Oy=function(a,b,c,d,e,f){var g=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._injector=f;this._hasAttached=!1;this.startAnchorListener=function(){return ICc(g)};this.endAnchorListener=function(){return My(g)};this._enabled=!0;(e===void 0?0:e)||Ny(this)};
Oy.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 Ny=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))},JCc=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})},
KCc=function(a){new Promise(function(b){a._executeOnStable(function(){return b(My(a))})})};Oy.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)};
Oy.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 My(this,a)};var My=function(a,b){(a=a._getRegionBoundary("start"))&&a.focus(b);return!!a},ICc=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};h=Oy.prototype;h.hasAttached=function(){return this._hasAttached};
h._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&GCc(this._checker,a))return a;a=a.children;for(var b=0;b<a.length;b++){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(a[b]):null;if(c)return c}return null};h._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&GCc(this._checker,a))return a;a=a.children;for(var b=a.length-1;b>=0;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
h._createAnchor=function(){var a=this._document.createElement("div");this._toggleAnchorTabIndex(this._enabled,a);a.classList.add("cdk-visually-hidden");a.classList.add("cdk-focus-trap-anchor");a.setAttribute("aria-hidden","true");return a};h._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var LCc=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
Oy.prototype._executeOnStable=function(a){this._injector?Ge(a,{injector:this._injector}):setTimeout(a)};da.Object.defineProperties(Oy.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 Py=function(){this._checker=p(Ky);this._ngZone=p(Rg);this._document=p(Sh);this._injector=p(Ae);p($h).load(Ly)};
Py.prototype.create=function(a,b){return new Oy(a,this._checker,this._ngZone,this._document,b===void 0?!1:b,this._injector)};Py.\u0275fac=function(a){return new (a||Py)};Py.\u0275prov=Fc({token:Py,factory:Py.\u0275fac,providedIn:"root"});var Qy=function(){this._elementRef=p(Jd);this._focusTrapFactory=p(Py);this._previouslyFocusedElement=null;p(Wh).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))};h=Qy.prototype;
h.ngOnDestroy=function(){var a;(a=this.focusTrap)==null||a.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};h.ngAfterContentInit=function(){var a;(a=this.focusTrap)==null||Ny(a);this.autoCapture&&this._captureFocus()};h.ngDoCheck=function(){this.focusTrap&&!this.focusTrap.hasAttached()&&Ny(this.focusTrap)};
h.ngOnChanges=function(a){a=a.autoCapture;var b;a&&!a.firstChange&&this.autoCapture&&((b=this.focusTrap)==null?0:b.hasAttached())&&this._captureFocus()};h._captureFocus=function(){this._previouslyFocusedElement=Jh();var a;(a=this.focusTrap)==null||JCc(a)};da.Object.defineProperties(Qy.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)}}});
Qy.\u0275fac=function(a){return new (a||Qy)};Qy.\u0275dir=df({type:Qy,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",$g],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",$g]},exportAs:["cdkTrapFocus"],features:[bx]});var MCc=new Set,Ry,mi=function(){this._platform=p(Wh);this._nonce=p(gzc,{optional:!0});this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):wra};mi.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!MCc.has(a))try{Ry||(Ry=document.createElement("style"),b&&Ry.setAttribute("nonce",b),Ry.setAttribute("type","text/css"),document.head.appendChild(Ry)),Ry.sheet&&(Ry.sheet.insertRule("@media "+a+" {body{ }}",0),MCc.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
mi.\u0275fac=function(a){return new (a||mi)};mi.\u0275prov=Fc({token:mi,factory:mi.\u0275fac,providedIn:"root"});var Sy=function(){this._mediaMatcher=p(mi);this._zone=p(Rg);this._queries=new Map;this._destroySubject=new sf};Sy.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
Sy.prototype.observe=function(a){var b=this;a=xra(Lh(a)).map(function(c){return b._registerQuery(c).observable});a=le(a);a=oe(a.pipe(nf(1)),a.pipe(yf(1),lf(0)));return a.pipe(A(function(c){var d={matches:!1,breakpoints:{}};c.forEach(function(e){var f=e.matches;e=e.query;d.matches=d.matches||f;d.breakpoints[e]=f});return d}))};
Sy.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 Vd(function(e){var f=function(g){return b._zone.run(function(){return e.next(g)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(zf(c),A(function(e){return{query:a,matches:e.matches}}),Bf(this._destroySubject)),mql:c};this._queries.set(a,d);return d};Sy.\u0275fac=function(a){return new (a||Sy)};
Sy.\u0275prov=Fc({token:Sy,factory:Sy.\u0275fac,providedIn:"root"});var Ty=function(){var a=this;this._platform=p(Wh);this._document=p(Sh);this._breakpointSubscription=p(Sy).observe("(forced-colors: active)").subscribe(function(){a._hasCheckedHighContrastMode&&(a._hasCheckedHighContrastMode=!1,a._applyBodyHighContrastModeCssClasses())})},NCc=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};Ty.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
Ty.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=NCc(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")}};
Ty.\u0275fac=function(a){return new (a||Ty)};Ty.\u0275prov=Fc({token:Ty,factory:Ty.\u0275fac,providedIn:"root"});var OCc=new fd("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),PCc=new fd("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var Uy=function(){};Uy.prototype.create=function(a){return typeof MutationObserver==="undefined"?null:new MutationObserver(a)};Uy.\u0275fac=function(a){return new (a||Uy)};Uy.\u0275prov=Fc({token:Uy,factory:Uy.\u0275fac,providedIn:"root"});var Vy=function(){this._mutationObserverFactory=p(Uy);this._observedElements=new Map;this._ngZone=p(Rg)};h=Vy.prototype;h.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
h.observe=function(a){var b=this,c=Oh(a);return new Vd(function(d){var e=b._observeElement(c).pipe(A(function(f){return f.filter(function(g){return!yra(g)})}),we(function(f){return!!f.length})).subscribe(function(f){b._ngZone.run(function(){d.next(f)})});return function(){e.unsubscribe();b._unobserveElement(c)}})};
h._observeElement=function(a){var b=this;return this._ngZone.runOutsideAngular(function(){if(b._observedElements.has(a))b._observedElements.get(a).count++;else{var c=new sf,d=b._mutationObserverFactory.create(function(e){return c.next(e)});d&&d.observe(a,{characterData:!0,childList:!0,subtree:!0});b._observedElements.set(a,{observer:d,stream:c,count:1})}return b._observedElements.get(a).stream})};
h._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};h._cleanupObserver=function(a){if(this._observedElements.has(a)){var b=this._observedElements.get(a),c=b.observer;b=b.stream;c&&c.disconnect();b.complete();this._observedElements.delete(a)}};Vy.\u0275fac=function(a){return new (a||Vy)};Vy.\u0275prov=Fc({token:Vy,factory:Vy.\u0275fac,providedIn:"root"});
var Wy=function(){this._contentObserver=p(Vy);this._elementRef=p(Jd);this.event=new Ui;this._disabled=!1;this._currentSubscription=null};Wy.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};Wy.prototype.ngOnDestroy=function(){this._unsubscribe()};Wy.prototype._subscribe=function(){this._unsubscribe();var a=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?a.pipe(lf(this.debounce)):a).subscribe(this.event)};
Wy.prototype._unsubscribe=function(){var a;(a=this._currentSubscription)==null||a.unsubscribe()};da.Object.defineProperties(Wy.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=Ph(a);this._subscribe()}}});Wy.\u0275fac=function(a){return new (a||Wy)};
Wy.\u0275dir=df({type:Wy,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",$g],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var Xy=function(){};Xy.\u0275fac=function(a){return new (a||Xy)};Xy.\u0275mod=cf({type:Xy});Xy.\u0275inj=Hc({providers:[Uy]});var QCc=0,Yy=function(){this._ngZone=p(Rg);this._defaultOptions=p(PCc,{optional:!0});this._document=p(Sh);this._liveElement=p(OCc,{optional:!0})||this._createLiveElement()};h=Yy.prototype;
h.announce=function(a){var b=bd.apply(1,arguments),c=this,d=this._defaultOptions;if(b.length===1&&typeof b[0]==="number")var e=b[0];else{b=m(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");e==null&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=
new Promise(function(g){return c._currentResolve=g}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;typeof e==="number"&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));var g;(g=c._currentResolve)==null||g.call(c);c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};h.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
h.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;(a=this._liveElement)==null||a.remove();this._liveElement=null;var b;(b=this._currentResolve)==null||b.call(this);this._currentPromise=this._currentResolve=void 0};
h._createLiveElement=function(){for(var a=this._document.getElementsByClassName("cdk-live-announcer-element"),b=this._document.createElement("div"),c=0;c<a.length;c++)a[c].remove();b.classList.add("cdk-live-announcer-element");b.classList.add("cdk-visually-hidden");b.setAttribute("aria-atomic","true");b.setAttribute("aria-live","polite");b.id="cdk-live-announcer-"+QCc++;this._document.body.appendChild(b);return b};
h._exposeAnnouncerToModals=function(a){for(var b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};Yy.\u0275fac=function(a){return new (a||Yy)};Yy.\u0275prov=Fc({token:Yy,factory:Yy.\u0275fac,providedIn:"root"});var Zy=function(){p(Ty)._applyBodyHighContrastModeCssClasses()};Zy.\u0275fac=function(a){return new (a||Zy)};Zy.\u0275mod=cf({type:Zy});Zy.\u0275inj=Hc({imports:[Xy]});var Cra=0,$y=function(){this._platform=p(Wh);this._document=p(Sh);this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+Cra++;p($h).load(Ly);this._id=p(ezc)+"-"+Cra++},az=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=Bra(c,d);typeof c!=="string"?(Dra(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)}},bz=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
Bra(c,d);a._isElementDescribedByMessage(b,d)&&a._removeMessageReference(b,d);typeof c==="string"&&(b=a._messageRegistry.get(d))&&b.referenceCount===0&&a._deleteMessageElement(d);var e;((e=a._messagesContainer)==null?void 0:e.childNodes.length)===0&&(a._messagesContainer.remove(),a._messagesContainer=null)}};h=$y.prototype;
h.ngOnDestroy=function(){for(var a=this._document.querySelectorAll('[cdk-describedby-host="'+this._id+'"]'),b=0;b<a.length;b++)this._removeCdkDescribedByReferenceIds(a[b]),a[b].removeAttribute("cdk-describedby-host");var c;(c=this._messagesContainer)==null||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
h._createMessageElement=function(a,b){var c=this._document.createElement("div");Dra(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(Bra(a,b),{messageElement:c,referenceCount:0})};h._deleteMessageElement=function(a){var b,c;(b=this._messageRegistry.get(a))==null||(c=b.messageElement)==null||c.remove();this._messageRegistry.delete(a)};
h._createMessagesContainer=function(){if(!this._messagesContainer){for(var a=this._document.querySelectorAll('.cdk-describedby-message-container[platform="server"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.style.visibility="hidden";a.classList.add("cdk-describedby-message-container");a.classList.add("cdk-visually-hidden");this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
h._removeCdkDescribedByReferenceIds=function(a){var b=zra(a,"aria-describedby").filter(function(c){return c.indexOf("cdk-describedby-message")!=0});a.setAttribute("aria-describedby",b.join(" "))};h._addMessageReference=function(a,b){b=this._messageRegistry.get(b);Ara(a,"aria-describedby",b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};
h._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Qh(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};h._isElementDescribedByMessage=function(a,b){a=zra(a,"aria-describedby");b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!=-1};
h._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&typeof b==="object")return!0;b=b==null?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};h._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};$y.\u0275fac=function(a){return new (a||$y)};$y.\u0275prov=Fc({token:$y,factory:$y.\u0275fac,providedIn:"root"});var cz=function(a,b,c,d,e,f,g,k){Oy.call(this,a,b,c,d,g.defer,k);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};Y(cz,Oy);cz.prototype.destroy=function(){this._focusTrapManager.deregister(this);Oy.prototype.destroy.call(this)};cz.prototype._enable=function(){this._inertStrategy.preventFocus(this);LCc(this,!0)};cz.prototype._disable=function(){this._inertStrategy.allowFocus(this);LCc(this,!1)};
da.Object.defineProperties(cz.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 RCc=function(){this._listener=null};RCc.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)})};RCc.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
RCc.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)&&My(a)})};var SCc=new fd("FOCUS_TRAP_INERT_STRATEGY");var dz=function(){this._focusTrapStack=[]};dz.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()};dz.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())};dz.\u0275fac=function(a){return new (a||dz)};dz.\u0275prov=Fc({token:dz,factory:dz.\u0275fac,providedIn:"root"});var ez=function(){this._checker=p(Ky);this._ngZone=p(Rg);this._focusTrapManager=p(dz);this._document=p(Sh);this._injector=p(Ae);this._inertStrategy=p(SCc,{optional:!0})||new RCc};ez.prototype.create=function(a,b){b=b===void 0?{defer:!1}:b;var c;typeof b==="boolean"?c={defer:b}:c=b;return new cz(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c,this._injector)};ez.\u0275fac=function(a){return new (a||ez)};ez.\u0275prov=Fc({token:ez,factory:ez.\u0275fac,providedIn:"root"});var TCc={},bi=function(){this._appId=p(ezc)};bi.prototype.getId=function(a,b){b=b===void 0?!1:b;this._appId!=="ng"&&(a+=this._appId);TCc.hasOwnProperty(a)||(TCc[a]=0);return a+(b?bi._infix+"-":"")+TCc[a]++};bi._infix="a"+Math.floor(Math.random()*1E5).toString();bi.\u0275fac=function(a){return new (a||bi)};bi.\u0275prov=Fc({token:bi,factory:bi.\u0275fac,providedIn:"root"});var UCc=function(a,b){this._letterKeyStream=new sf;this._items=[];this._selectedItemIndex=-1;this._pressedLetters=[];this.selectedItem=this._selectedItem=new sf;var c=typeof(b==null?void 0:b.debounceInterval)==="number"?b.debounceInterval:200;if(b==null?0:b.skipPredicate)this._skipPredicateFn=b.skipPredicate;this.setItems(a);this._setupKeyHandler(c)};h=UCc.prototype;h.destroy=function(){this._pressedLetters=[];this._letterKeyStream.complete();this._selectedItem.complete()};
h.setItems=function(a){this._items=a};h.handleKey=function(a){var b=a.keyCode;a.key&&a.key.length===1?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(b>=65&&b<=90||b>=48&&b<=57)&&this._letterKeyStream.next(String.fromCharCode(b))};h.isTyping=function(){return this._pressedLetters.length>0};h.reset=function(){this._pressedLetters=[]};
h._setupKeyHandler=function(a){var b=this;this._letterKeyStream.pipe(Cf(function(c){return b._pressedLetters.push(c)}),lf(a),we(function(){return b._pressedLetters.length>0}),A(function(){return b._pressedLetters.join("").toLocaleUpperCase()})).subscribe(function(c){for(var d=1;d<b._items.length+1;d++){var e=b._items[(b._selectedItemIndex+d)%b._items.length],f=void 0,g=void 0,k=void 0,l=void 0;if(((g=(f=b)._skipPredicateFn)==null||!g.call(f,e))&&((l=(k=e).getLabel)==null?void 0:l.call(k).toLocaleUpperCase().trim().indexOf(c))===
0){b._selectedItem.next(e);break}}b._pressedLetters=[]})};var fz=function(a,b){var c=this;this._items=a;this._activeItemIndex=ng.apply(null,[-1].concat(q([])));this._activeItem=ng.apply(null,[null].concat(q([])));this._wrap=!1;this._typeaheadSubscription=Rd.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 sf;this.change=new sf;a instanceof gg?this._itemChangesSubscription=a.changes.subscribe(function(d){return c._itemsChanged(d.toArray())}):
ff(a)&&(this._effectRef=gf.apply(null,[function(){return c._itemsChanged(a())}].concat(q([{injector:b}]))))};fz.prototype.skipPredicate=function(a){this._skipPredicateFn=a;return this};
var gz=function(a){a._wrap=!0;return a},hz=function(a,b){a._vertical=b===void 0?!0:b;return a},iz=function(a,b){a._horizontal=b;return a},VCc=function(a){a._allowedModifierKeys=["shiftKey"];return a},WCc=function(a,b){b=b===void 0?200:b;a._typeaheadSubscription.unsubscribe();var c=a._getItemsArray();a._typeahead=new UCc(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},jz=function(a){a._homeAndEnd=!0;return a},XCc=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};fz.prototype.setActiveItem=function(a){var b=this._activeItem();kz(this,a);this._activeItem()!==b&&this.change.next(this._activeItemIndex())};
fz.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(g){return!a[g]||b._allowedModifierKeys.indexOf(g)>-1});switch(c){case 9:this.tabOut.next();return;case 40:if(this._vertical&&d){this.setNextItemActive();break}else return;case 38:if(this._vertical&&d){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&d){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){this._setActiveItemByIndex(0,1);break}else return;case 35:if(this._homeAndEnd&&d){YCc(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||Gh(a,"shiftKey")){var e;(e=this._typeahead)==null||e.handleKey(a)}return}var f;(f=this._typeahead)==null||f.reset();a.preventDefault()};fz.prototype.isTyping=function(){return!!this._typeahead&&this._typeahead.isTyping()};var YCc=function(a){a._setActiveItemByIndex(a._getItemsArray().length-1,-1)};fz.prototype.setNextItemActive=function(){this._activeItemIndex()<0?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
fz.prototype.setPreviousItemActive=function(){this._activeItemIndex()<0&&this._wrap?YCc(this):this._setActiveItemByDelta(-1)};var kz=function(a,b){var c=a._getItemsArray();b=typeof b==="number"?b:c.indexOf(b);c=c[b];a._activeItem.set(c==null?null:c);a._activeItemIndex.set(b);(a=a._typeahead)!=null&&(a._selectedItemIndex=b)};h=fz.prototype;
h.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._itemChangesSubscription)==null||a.unsubscribe();var b;(b=this._effectRef)==null||b.destroy();var c;(c=this._typeahead)==null||c.destroy();this.tabOut.complete();this.change.complete()};h._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};
h._setActiveInWrapMode=function(a){for(var b=this._getItemsArray(),c=1;c<=b.length;c++){var d=(this._activeItemIndex()+a*c+b.length)%b.length;if(!this._skipPredicateFn(b[d])){this.setActiveItem(d);break}}};h._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex()+a,a)};h._setActiveItemByIndex=function(a,b){var c=this._getItemsArray();if(c[a]){for(;this._skipPredicateFn(c[a]);)if(a+=b,!c[a])return;this.setActiveItem(a)}};
h._getItemsArray=function(){return ff(this._items)?this._items():this._items instanceof gg?this._items.toArray():this._items};h._itemsChanged=function(a){var b;(b=this._typeahead)==null||b.setItems(a);if(b=this._activeItem())a=a.indexOf(b),a>-1&&a!==this._activeItemIndex()&&(this._activeItemIndex.set(a),(b=this._typeahead)!=null&&(b._selectedItemIndex=a))};
da.Object.defineProperties(fz.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex()}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem()}}});var lz=function(){fz.apply(this,arguments)};Y(lz,fz);lz.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();fz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var mz=function(){fz.apply(this,arguments);this._origin="program"};Y(mz,fz);var ZCc=function(a,b){a._origin=b;return a};mz.prototype.setActiveItem=function(a){fz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var $Cc=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=Rd.EMPTY;this._hasInitialFocused=!1;this.change=new sf;a instanceof gg?(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()})):ye(a)?a.subscribe(function(d){c._items=d;var e;(e=c._typeahead)==null||e.setItems(d);c._updateActiveItemIndex(d);c._initializeFocus()}):(this._items=a,this._initializeFocus());typeof b.shouldActivationFollowFocus==="boolean"&&(this._shouldActivationFollowFocus=b.shouldActivationFollowFocus);b.horizontalOrientation&&(this._horizontalOrientation=b.horizontalOrientation);b.skipPredicate&&(this._skipPredicateFn=b.skipPredicate);b.trackBy&&(this._trackByFn=b.trackBy);typeof b.typeAheadDebounceInterval!==
"undefined"&&this._setTypeAhead(b.typeAheadDebounceInterval)};h=$Cc.prototype;
h._initializeFocus=function(){if(!this._hasInitialFocused&&this._items.length!==0){for(var a=0,b=0;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b])&&!this._isItemDisabled(this._items[b])){a=b;break}b=this._items[a];if(b.makeFocusable){var c;(c=this._activeItem)==null||c.unfocus();this._activeItemIndex=a;this._activeItem=b;(c=this._typeahead)!=null&&(c._selectedItemIndex=a);b.makeFocusable()}else nz(this,a);this._hasInitialFocused=!0}};
h.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._typeahead)==null||a.destroy();this.change.complete()};
h.onKeydown=function(a){switch(a.key){case "Tab":return;case "ArrowDown":this._focusNextItem();break;case "ArrowUp":this._focusPreviousItem();break;case "ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case "ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case "Home":this._focusFirstItem();break;case "End":this._focusLastItem();break;case "Enter":case " ":this._activateCurrentItem();
break;default:if(a.key==="*")this._expandAllItemsAtCurrentItemLevel();else{var b;(b=this._typeahead)==null||b.handleKey(a);return}}var c;(c=this._typeahead)==null||c.reset();a.preventDefault()};h._focusFirstItem=function(){nz(this,this._findNextAvailableItemIndex(-1))};h._focusLastItem=function(){nz(this,this._findPreviousAvailableItemIndex(this._items.length))};h._focusNextItem=function(){nz(this,this._findNextAvailableItemIndex(this._activeItemIndex))};h._focusPreviousItem=function(){nz(this,this._findPreviousAvailableItemIndex(this._activeItemIndex))};
var nz=function(a,b){var c=c===void 0?{}:c;c.emitChangeEvent!=null||(c.emitChangeEvent=!0);var d=typeof b==="number"?b:a._items.findIndex(function(k){return a._trackByFn(k)===a._trackByFn(b)});if(!(d<0||d>=a._items.length)){var e=a._items[d];if(a._activeItem===null||a._trackByFn(e)!==a._trackByFn(a._activeItem)){var f=a._activeItem;a._activeItem=e!=null?e:null;a._activeItemIndex=d;(e=a._typeahead)!=null&&(e._selectedItemIndex=d);var g;(g=a._activeItem)==null||g.focus();f==null||f.unfocus();c.emitChangeEvent&&
a.change.next(a._activeItem);a._shouldActivationFollowFocus&&a._activateCurrentItem()}}};h=$Cc.prototype;h._updateActiveItemIndex=function(a){var b=this,c=this._activeItem;if(c&&(a=a.findIndex(function(e){return b._trackByFn(e)===b._trackByFn(c)}),a>-1&&a!==this._activeItemIndex)){this._activeItemIndex=a;var d;(d=this._typeahead)!=null&&(d._selectedItemIndex=a)}};
h._setTypeAhead=function(a){var b=this;this._typeahead=new UCc(this._items,{debounceInterval:typeof a==="number"?a:void 0,skipPredicate:function(c){return b._skipPredicateFn(c)}});this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(function(c){nz(b,c)})};h._findNextAvailableItemIndex=function(a){for(var b=a+1;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b]))return b;return a};
h._findPreviousAvailableItemIndex=function(a){for(var b=a-1;b>=0;b--)if(!this._skipPredicateFn(this._items[b]))return b;return a};h._collapseCurrentItem=function(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{var a=this._activeItem.getParent();a&&!this._skipPredicateFn(a)&&nz(this,a)}};
h._expandCurrentItem=function(){var a=this;this._activeItem&&(this._isCurrentItemExpanded()?Era(this._activeItem.getChildren()).pipe(nf(1)).subscribe(function(b){(b=b.find(function(c){return!a._skipPredicateFn(c)}))&&nz(a,b)}):this._activeItem.expand())};h._isCurrentItemExpanded=function(){return this._activeItem?typeof this._activeItem.isExpanded==="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1};
h._isItemDisabled=function(a){var b;return typeof a.isDisabled==="boolean"?a.isDisabled:(b=a.isDisabled)==null?void 0:b.call(a)};h._expandAllItemsAtCurrentItemLevel=function(){if(this._activeItem){var a=this._activeItem.getParent();(a?Era(a.getChildren()):ee(this._items.filter(function(b){return b.getParent()===null}))).pipe(nf(1)).subscribe(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())c.value.expand()})}};h._activateCurrentItem=function(){var a;(a=this._activeItem)==null||a.activate()};
new fd("tree-key-manager",{providedIn:"root",factory:function(){return function(a,b){return new $Cc(a,b)}}});var oz=function(){this._attachedOverlays=[];this._document=p(Sh)};oz.prototype.ngOnDestroy=function(){this.detach()};oz.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};oz.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);a>-1&&this._attachedOverlays.splice(a,1);this._attachedOverlays.length===0&&this.detach()};oz.\u0275fac=function(a){return new (a||oz)};oz.\u0275prov=Fc({token:oz,factory:oz.\u0275fac,providedIn:"root"});var hi=function(){oz.apply(this,arguments);var a=this;this._ngZone=p(Rg);this._renderer=p(af).createRenderer(null,null);this._keydownListener=function(b){var c=a._attachedOverlays,d={};for(d.i$jscomp$439=c.length-1;d.i$jscomp$439>-1;d={i$jscomp$439:d.i$jscomp$439},d.i$jscomp$439--)if(c[d.i$jscomp$439]._keydownEvents.observers.length>0){a._ngZone.run(function(e){return function(){return c[e.i$jscomp$439]._keydownEvents.next(b)}}(d));break}}};Y(hi,oz);
hi.prototype.add=function(a){var b=this;oz.prototype.add.call(this,a);this._isAttached||(this._ngZone.runOutsideAngular(function(){b._cleanupKeydown=b._renderer.listen("body","keydown",b._keydownListener)}),this._isAttached=!0)};hi.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanupKeydown)==null||a.call(this);this._isAttached=!1}};hi.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(hi)))(b||hi)}}();hi.\u0275prov=Fc({token:hi,factory:hi.\u0275fac,providedIn:"root"});var ji=function(){oz.apply(this,arguments);var a=this;this._platform=p(Wh);this._ngZone=p(Rg);this._renderer=p(af).createRenderer(null,null);this._cursorStyleIsSet=!1;this._pointerDownListener=function(b){a._pointerDownEventTarget=Kh(b)};this._clickListener=function(b){var c=Kh(b),d=b.type==="click"&&a._pointerDownEventTarget?a._pointerDownEventTarget:c;a._pointerDownEventTarget=null;for(var e=a._attachedOverlays.slice(),f={},g=e.length-1;g>-1;f={outsidePointerEvents:void 0},g--){var k=e[g];if(!(k._outsidePointerEvents.observers.length<
1)&&k.hasAttached()){if(Fra(k.overlayElement,c)||Fra(k.overlayElement,d))break;f.outsidePointerEvents=k._outsidePointerEvents;a._ngZone?a._ngZone.run(function(l){return function(){return l.outsidePointerEvents.next(b)}}(f)):f.outsidePointerEvents.next(b)}}}};Y(ji,oz);
ji.prototype.add=function(a){var b=this;oz.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}};ji.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}};ji.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ji)))(b||ji)}}();ji.\u0275prov=Fc({token:ji,factory:ji.\u0275fac,providedIn:"root"});var ai=function(){};ai.\u0275fac=function(a){return new (a||ai)};
ai.\u0275cmp=D({type:ai,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;line-height:normal;text-decoration:none;width:100%;height:100%;inset:auto}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed}\n"],encapsulation:2,
changeDetection:0});var Xh=function(){this._platform=p(Wh);this._document=p(Sh);this._styleLoader=p($h)};Xh.prototype.ngOnDestroy=function(){var a;(a=this._containerElement)==null||a.remove()};var Qra=function(a){a._loadStyles();a._containerElement||a._createContainer();return a._containerElement};
Xh.prototype._createContainer=function(){if(this._platform.isBrowser||tra())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");tra()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
Xh.prototype._loadStyles=function(){this._styleLoader.load(ai)};Xh.\u0275fac=function(a){return new (a||Xh)};Xh.\u0275prov=Fc({token:Xh,factory:Xh.\u0275fac,providedIn:"root"});var aDc=new fd("VIRTUAL_SCROLL_STRATEGY");var bDc=function(a,b,c){this._scrolledIndexChange=new sf;this.scrolledIndexChange=this._scrolledIndexChange.pipe(pf());this._viewport=null;this._itemSize=a;this._minBufferPx=b;this._maxBufferPx=c};bDc.prototype.attach=function(a){this._viewport=a;this._updateTotalContentSize();this._updateRenderedRange()};bDc.prototype.detach=function(){this._scrolledIndexChange.complete();this._viewport=null};
bDc.prototype._updateTotalContentSize=function(){if(this._viewport){var a=this._viewport,b=this._viewport._dataLength*this._itemSize;a._totalContentSize!==b&&(a._totalContentSize=b,a._calculateSpacerSize(),a._markChangeDetectionNeeded())}};
bDc.prototype._updateRenderedRange=function(){if(this._viewport){var a=this._viewport._renderedRange;a={start:a.start,end:a.end};var b=this._viewport.getViewportSize(),c=this._viewport._dataLength,d=this._viewport.measureScrollOffset(),e=this._itemSize>0?d/this._itemSize:0;if(a.end>c){var f=Math.ceil(b/this._itemSize),g=Math.max(0,Math.min(e,c-f));e!=g&&(e=g,d=g*this._itemSize,a.start=Math.floor(e));a.end=Math.max(0,Math.min(c,a.start+f))}f=d-a.start*this._itemSize;f<this._minBufferPx&&a.start!=0?
(a.start=Math.max(0,a.start-Math.ceil((this._maxBufferPx-f)/this._itemSize)),a.end=Math.min(c,Math.ceil(e+(b+this._minBufferPx)/this._itemSize))):(b=a.end*this._itemSize-(d+b),b<this._minBufferPx&&a.end!=c&&(b=Math.ceil((this._maxBufferPx-b)/this._itemSize),b>0&&(a.end=Math.min(c,a.end+b),a.start=Math.max(0,Math.floor(e-this._minBufferPx/this._itemSize)))));cDc(this._viewport,a);dDc(this._viewport,Math.round(this._itemSize*a.start));this._scrolledIndexChange.next(Math.floor(e))}};
var pz=function(){this._itemSize=20;this._minBufferPx=100;this._maxBufferPx=200;this._scrollStrategy=new bDc(this.itemSize,this.minBufferPx,this.maxBufferPx)};pz.prototype.ngOnChanges=function(){var a=this._scrollStrategy,b=this.minBufferPx,c=this.maxBufferPx;a._itemSize=this.itemSize;a._minBufferPx=b;a._maxBufferPx=c;a._updateTotalContentSize();a._updateRenderedRange()};
da.Object.defineProperties(pz.prototype,{itemSize:{configurable:!0,enumerable:!0,get:function(){return this._itemSize},set:function(a){this._itemSize=Ph(a)}},minBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._minBufferPx},set:function(a){this._minBufferPx=Ph(a)}},maxBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._maxBufferPx},set:function(a){this._maxBufferPx=Ph(a)}}});pz.\u0275fac=function(a){return new (a||pz)};
pz.\u0275dir=df({type:pz,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Gg([{provide:aDc,useFactory:function(a){return a._scrollStrategy},deps:[Yc(function(){return pz})]}]),bx]});var Th=function(){this._ngZone=p(Rg);this._platform=p(Wh);this._renderer=p(af).createRenderer(null,null);this._scrolled=new sf;this._scrolledCount=0;this.scrollContainers=new Map};Th.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};Th.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
Th.prototype.scrolled=function(a){var b=this;a=a===void 0?20:a;return this._platform.isBrowser?new Vd(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(hf(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}}}):ee()};Th.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 eDc=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};
Th.prototype._scrollableContainsElement=function(a,b){b=Oh(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};Th.\u0275fac=function(a){return new (a||Th)};Th.\u0275prov=Fc({token:Th,factory:Th.\u0275fac,providedIn:"root"});var qz=function(){this.elementRef=p(Jd);this.scrollDispatcher=p(Th);this.ngZone=p(Rg);this.dir=p(ci,{optional:!0});this._scrollElement=this.elementRef.nativeElement;this._destroyed=new sf;this._renderer=p(di);this._elementScrolled=new sf};h=qz.prototype;h.ngOnInit=function(){var a=this;this._cleanupScroll=this.ngZone.runOutsideAngular(function(){return a._renderer.listen(a._scrollElement,"scroll",function(b){return a._elementScrolled.next(b)})});this.scrollDispatcher.register(this)};
h.ngOnDestroy=function(){var a;(a=this._cleanupScroll)==null||a.call(this);this._elementScrolled.complete();this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
h.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&this.dir.value=="rtl";a.left==null&&(a.left=c?a.end:a.start);a.right==null&&(a.right=c?a.start:a.end);a.bottom!=null&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&qra()!=0?(a.left!=null&&(a.right=b.scrollWidth-b.clientWidth-a.left),qra()==2?a.left=a.right:qra()==1&&(a.left=a.right?-a.right:a.right)):a.right!=null&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
h._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;ora()?b.scrollTo(a):(a.top!=null&&(b.scrollTop=a.top),a.left!=null&&(b.scrollLeft=a.left))};
h.measureScrollOffset=function(a){var b=this.elementRef.nativeElement;if(a=="top")return b.scrollTop;if(a=="bottom")return b.scrollHeight-b.clientHeight-b.scrollTop;var c=this.dir&&this.dir.value=="rtl";a=="start"?a=c?"right":"left":a=="end"&&(a=c?"left":"right");return c&&qra()==2?a=="left"?b.scrollWidth-b.clientWidth-b.scrollLeft:b.scrollLeft:c&&qra()==1?a=="left"?b.scrollLeft+b.scrollWidth-b.clientWidth:-b.scrollLeft:a=="left"?b.scrollLeft:b.scrollWidth-b.clientWidth-b.scrollLeft};
qz.\u0275fac=function(a){return new (a||qz)};qz.\u0275dir=df({type:qz,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var fDc=function(){};var gDc=function(a){this._data=a};Y(gDc,fDc);gDc.prototype.connect=function(){return ye(this._data)?this._data:ee(this._data)};gDc.prototype.disconnect=function(){};var hDc=new fd("_ViewRepeater");var iDc=function(){};iDc.prototype.applyChanges=function(a,b,c,d,e){zAc(a,function(f,g,k){if(f.previousIndex==null){var l=c(f,g,k);l=b.createEmbeddedView(l.templateRef,l.context,l.index);g=1}else k==null?(b.remove(g),g=3):(l=b.get(g),b.move(l,k),g=2);if(e){var r;e({context:(r=l)==null?void 0:r.context,operation:g,record:f})}})};iDc.prototype.detach=function(){};var jDc=function(){this.viewCacheSize=20;this._viewCache=[]};h=jDc.prototype;h.applyChanges=function(a,b,c,d,e){var f=this;zAc(a,function(g,k,l){var r;if(g.previousIndex==null)var w=(r=f._insertView(function(){return c(g,k,l)},l,b,d(g)))?1:0;else l==null?(f._detachAndCacheView(k,b),w=3):(r=f._moveView(k,l,b,d(g)),w=2);if(e){var x;e({context:(x=r)==null?void 0:x.context,operation:w,record:g})}})};
h.detach=function(){for(var a=m(this._viewCache),b=a.next();!b.done;b=a.next())b.value.destroy();this._viewCache=[]};h._insertView=function(a,b,c,d){if(b=this._insertViewFromCache(b,c))b.context.$implicit=d;else return a=a(),c.createEmbeddedView(a.templateRef,a.context,a.index)};h._detachAndCacheView=function(a,b){a=b.detach(a);this._maybeCacheView(a,b)};h._moveView=function(a,b,c,d){a=c.get(a);c.move(a,b);a.context.$implicit=d;return a};
h._maybeCacheView=function(a,b){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(a);else{var c=b.indexOf(a);c===-1?a.destroy():b.remove(c)}};h._insertViewFromCache=function(a,b){var c=this._viewCache.pop();c&&b.insert(c,a);return c||null};var rz=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 sf;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};h=rz.prototype;
h.select=function(){var a=this;bd.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.deselect=function(){var a=this;bd.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
h.clear=function(a){a=a===void 0?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};h.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};h.isEmpty=function(){return this._selection.size===0};h.hasValue=function(){return!this.isEmpty()};h.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
h._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};h._markSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
h._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};h._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};h._verifyValueAssignment=function(){};h._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
h._getConcreteValue=function(a,b){if(this.compareWith){var c;b=(c=b)!=null?c:this._selection;b=m(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,this.compareWith(a,c))return c}return a};da.Object.defineProperties(rz.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var sz=function(){this._listeners=[]};sz.prototype.notify=function(a,b){for(var c=m(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};sz.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};sz.prototype.ngOnDestroy=function(){this._listeners=[]};sz.\u0275fac=function(a){return new (a||sz)};sz.\u0275prov=Fc({token:sz,factory:sz.\u0275fac,providedIn:"root"});var Rh=function(){var a=this;this._platform=p(Wh);this._change=new sf;this._document=p(Sh);var b=p(Rg),c=p(af).createRenderer(null,null);b.runOutsideAngular(function(){if(a._platform.isBrowser){var d=function(e){return a._change.next(e)};a._listeners=[c.listen("window","resize",d),c.listen("window","orientationchange",d)]}a.change().subscribe(function(){return a._viewportSize=null})})};h=Rh.prototype;h.ngOnDestroy=function(){var a;(a=this._listeners)==null||a.forEach(function(b){return b()});this._change.complete()};
h.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
h.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var a=this._document,b=this._getWindow(),c=a.documentElement,d=c.getBoundingClientRect();return{top:-d.top||a.body.scrollTop||b.scrollY||c.scrollTop||0,left:-d.left||a.body.scrollLeft||b.scrollX||c.scrollLeft||0}};h.change=function(a){a=a===void 0?20:a;return a>0?this._change.pipe(hf(a)):this._change};h._getWindow=function(){return this._document.defaultView||window};
h._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};Rh.\u0275fac=function(a){return new (a||Rh)};Rh.\u0275prov=Fc({token:Rh,factory:Rh.\u0275fac,providedIn:"root"});var kDc=new fd("VIRTUAL_SCROLLABLE"),tz=function(){qz.call(this)};Y(tz,qz);tz.\u0275fac=function(a){return new (a||tz)};tz.\u0275dir=df({type:tz,features:[Gf]});var lDc=["contentWrapper"],mDc=typeof requestAnimationFrame!=="undefined"?Bzc:Br,uz=function(){qz.call(this);var a=this;this.elementRef=p(Jd);this._changeDetectorRef=p(ux);this._scrollStrategy=p(aDc,{optional:!0});this.scrollable=p(kDc,{optional:!0});this._platform=p(Wh);this._detachedSubject=new sf;this._renderedRangeSubject=new sf;this._orientation="vertical";this.appendOnly=!1;this.scrolledIndexChange=new Vd(function(c){return a._scrollStrategy.scrolledIndexChange.subscribe(function(d){return Promise.resolve().then(function(){return a.ngZone.run(function(){return c.next(d)})})})});
this.renderedRangeStream=this._renderedRangeSubject;this._totalContentSize=0;this._totalContentWidth=ng.apply(null,[""].concat(q([])));this._totalContentHeight=ng.apply(null,[""].concat(q([])));this._renderedRange={start:0,end:0};this._renderedContentOffset=this._viewportSize=this._dataLength=0;this._renderedContentOffsetNeedsRewrite=!1;this._changeDetectionNeeded=ng.apply(null,[!1].concat(q([])));this._runAfterChangeDetection=[];this._viewportChanges=Rd.EMPTY;this._injector=p(Ae);this._isDestroyed=
!1;this._viewportChanges=p(Rh).change().subscribe(function(){a._measureViewportSize();var c=a._scrollStrategy;c._updateTotalContentSize();c._updateRenderedRange()});this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);var b=gf.apply(null,[function(){a._changeDetectionNeeded()&&a._doChangeDetection()}].concat(q([{injector:p(Wg).injector}])));p(Ee).onDestroy(function(){return void b.destroy()})};Y(uz,tz);uz.\u0275dir=tz.\u0275dir;h=uz.prototype;
h.ngOnInit=function(){var a=this;this._platform.isBrowser&&(this.scrollable===this&&tz.prototype.ngOnInit.call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){a._measureViewportSize();a._scrollStrategy.attach(a);a.scrollable._elementScrolled.pipe(zf(null),hf(0,mDc),Bf(a._destroyed)).subscribe(function(){a._scrollStrategy._updateRenderedRange()});a._markChangeDetectionNeeded()})}))};
h.ngOnDestroy=function(){this.detach();this._scrollStrategy.detach();this._renderedRangeSubject.complete();this._detachedSubject.complete();this._viewportChanges.unsubscribe();this._isDestroyed=!0;tz.prototype.ngOnDestroy.call(this)};
h.attach=function(a){var b=this;this.ngZone.runOutsideAngular(function(){b._forOf=a;b._forOf.dataStream.pipe(Bf(b._detachedSubject)).subscribe(function(c){c=c.length;c!==b._dataLength&&(b._dataLength=c,c=b._scrollStrategy,c._updateTotalContentSize(),c._updateRenderedRange());b._doChangeDetection()})})};h.detach=function(){this._forOf=null;this._detachedSubject.next()};h.getViewportSize=function(){return this._viewportSize};
var cDc=function(a,b){Hra(a._renderedRange,b)||(a.appendOnly&&(b={start:0,end:Math.max(a._renderedRange.end,b.end)}),a._renderedRangeSubject.next(a._renderedRange=b),a._markChangeDetectionNeeded(function(){}))},dDc=function(a,b){var c=c===void 0?"to-start":c;b=a.appendOnly&&c==="to-start"?0:b;var d=a.dir&&a.dir.value=="rtl",e=a.orientation=="horizontal",f=e?"X":"Y";d="translate"+f+"("+Number((e&&d?-1:1)*b)+"px)";a._renderedContentOffset=b;c==="to-end"&&(d+=" translate"+f+"(-100%)",a._renderedContentOffsetNeedsRewrite=
!0);a._renderedContentTransform!=d&&(a._renderedContentTransform=d,a._markChangeDetectionNeeded(function(){if(a._renderedContentOffsetNeedsRewrite){var g=a._contentWrapper.nativeElement;a._renderedContentOffset-=a.orientation==="horizontal"?g.offsetWidth:g.offsetHeight;a._renderedContentOffsetNeedsRewrite=!1;dDc(a,a._renderedContentOffset)}}))};
uz.prototype.measureScrollOffset=function(a){var b=this;return Math.max(0,(this.scrollable==this?function(c){return tz.prototype.measureScrollOffset.call(b,c)}:function(c){return b.scrollable.measureScrollOffset(c)})(a!=null?a:this.orientation==="horizontal"?"start":"top")-nDc(this))};var nDc=function(a){var b=a.orientation==="horizontal"?"left":"top";var c=a.scrollable.elementRef.nativeElement.getBoundingClientRect()[b];return a.elementRef.nativeElement.getBoundingClientRect()[b]-c};
uz.prototype._measureViewportSize=function(){var a=this.scrollable.elementRef.nativeElement;this._viewportSize=this.orientation==="horizontal"?a.clientWidth:a.clientHeight};uz.prototype._markChangeDetectionNeeded=function(a){var b=this;a&&this._runAfterChangeDetection.push(a);Rc(this._changeDetectionNeeded)||this.ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){b.ngZone.run(function(){b._changeDetectionNeeded.set(!0)})})})};
uz.prototype._doChangeDetection=function(){var a=this;this._isDestroyed||this.ngZone.run(function(){a._changeDetectorRef.markForCheck();a._contentWrapper.nativeElement.style.transform=a._renderedContentTransform;Ge(function(){a._changeDetectionNeeded.set(!1);var b=a._runAfterChangeDetection;a._runAfterChangeDetection=[];b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c()},{injector:a._injector})})};
uz.prototype._calculateSpacerSize=function(){this._totalContentHeight.set(this.orientation==="horizontal"?"":this._totalContentSize+"px");this._totalContentWidth.set(this.orientation==="horizontal"?this._totalContentSize+"px":"")};da.Object.defineProperties(uz.prototype,{orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation!==a&&(this._orientation=a,this._calculateSpacerSize())}}});uz.\u0275fac=function(a){return new (a||uz)};
uz.\u0275cmp=D({type:uz,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(a,b){a&1&&hg(lDc,7);if(a&2){var c;lg(c=mg())&&(b._contentWrapper=c.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(a,b){a&2&&wg("cdk-virtual-scroll-orientation-horizontal",b.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",b.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",$g]},outputs:{scrolledIndexChange:"scrolledIndexChange"},
features:[Gg([{provide:qz,useFactory:function(){return p(kDc,{optional:!0})||p(uz)}}]),Gf],ngContentSelectors:["*"],decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(a,b){a&1&&(cg(),Rf(0,"div",1,0),dg(2),Sf(),Tf(3,"div",2));a&2&&(B(3),vg("width",b._totalContentWidth())("height",b._totalContentHeight()))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\n"],
encapsulation:2,changeDetection:0});var vz=function(){var a=this;this._viewContainerRef=p(fg);this._template=p(eg);this._differs=p(xx);this._viewRepeater=p(hDc);this._viewport=p(uz,{skipSelf:!0});this.viewChange=new sf;this._dataSourceChanges=new sf;this.dataStream=this._dataSourceChanges.pipe(zf(null),vf(),Af(function(c){var d=m(c);c=d.next().value;d=d.next().value;return a._changeDataSource(c,d)}),xf(1));this._differ=null;this._needsUpdate=!1;this._destroyed=new sf;var b=p(Rg);this.dataStream.subscribe(function(c){a._data=c;a._onRenderedDataChange()});
this._viewport.renderedRangeStream.pipe(Bf(this._destroyed)).subscribe(function(c){a._renderedRange=c;a.viewChange.observers.length&&b.run(function(){return a.viewChange.next(a._renderedRange)});a._onRenderedDataChange()});this._viewport.attach(this)};h=vz.prototype;h.ngDoCheck=function(){if(this._differ&&this._needsUpdate){var a=this._differ.diff(this._renderedItems);a?this._applyChanges(a):this._updateContext();this._needsUpdate=!1}};
h.ngOnDestroy=function(){this._viewport.detach();this._dataSourceChanges.next(void 0);this._dataSourceChanges.complete();this.viewChange.complete();this._destroyed.next();this._destroyed.complete();this._viewRepeater.detach()};
h._onRenderedDataChange=function(){var a=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(b,c){return a.cdkVirtualForTrackBy?a.cdkVirtualForTrackBy(b,c):c})),this._needsUpdate=!0)};h._changeDataSource=function(a,b){a&&a.disconnect(this);this._needsUpdate=!0;return b?b.connect(this):ee()};
h._updateContext=function(){for(var a=this._data.length,b=this._viewContainerRef.length;b--;){var c=this._viewContainerRef.get(b);c.context.index=this._renderedRange.start+b;c.context.count=a;this._updateComputedContextProperties(c.context);c.detectChanges()}};
h._applyChanges=function(a){var b=this;this._viewRepeater.applyChanges(a,this._viewContainerRef,function(e,f,g){return b._getEmbeddedViewArgs(e,g)},function(e){return e.item});AAc(a,function(e){b._viewContainerRef.get(e.currentIndex).context.$implicit=e.item});a=this._data.length;for(var c=this._viewContainerRef.length;c--;){var d=this._viewContainerRef.get(c);d.context.index=this._renderedRange.start+c;d.context.count=a;this._updateComputedContextProperties(d.context)}};
h._updateComputedContextProperties=function(a){a.first=a.index===0;a.last=a.index===a.count-1;a.even=a.index%2===0;a.odd=!a.even};h._getEmbeddedViewArgs=function(a,b){return{templateRef:this._template,context:{$implicit:a.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:b}};
da.Object.defineProperties(vz.prototype,{cdkVirtualForOf:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForOf},set:function(a){this._cdkVirtualForOf=a;Gra(a)?this._dataSourceChanges.next(a):this._dataSourceChanges.next(new gDc(ye(a)?a:Array.from(a||[])))}},cdkVirtualForTrackBy:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForTrackBy},set:function(a){var b=this;this._needsUpdate=!0;this._cdkVirtualForTrackBy=a?function(c,d){return a(c+(b._renderedRange?
b._renderedRange.start:0),d)}:void 0}},cdkVirtualForTemplate:{configurable:!0,enumerable:!0,set:function(a){a&&(this._needsUpdate=!0,this._template=a)}},cdkVirtualForTemplateCacheSize:{configurable:!0,enumerable:!0,get:function(){return this._viewRepeater.viewCacheSize},set:function(a){this._viewRepeater.viewCacheSize=Ph(a)}}});vz.\u0275fac=function(a){return new (a||vz)};
vz.\u0275dir=df({type:vz,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Gg([{provide:hDc,useClass:jDc}])]});var wz=function(){};wz.\u0275fac=function(a){return new (a||wz)};wz.\u0275mod=cf({type:wz});wz.\u0275inj=Hc({});var xz=function(){};xz.\u0275fac=function(a){return new (a||xz)};xz.\u0275mod=cf({type:xz});xz.\u0275inj=Hc({imports:[Ey,wz,Ey,wz]});var oDc=ora(),Ira=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};Ira.prototype.attach=function(){};
Ira.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=Nh(-this._previousScrollPosition.left);a.style.top=Nh(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
Ira.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");oDc&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);oDc&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
Ira.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 pDc=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()})}};pDc.prototype.attach=function(a){this._overlayRef=a};
pDc.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0).pipe(we(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)}};pDc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};pDc.prototype.detach=function(){this.disable();this._overlayRef=null};var qDc=function(){};qDc.prototype.enable=function(){};qDc.prototype.disable=function(){};qDc.prototype.attach=function(){};var Mra=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};Mra.prototype.attach=function(a){this._overlayRef=a};
Mra.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;Kra(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
Mra.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};Mra.prototype.detach=function(){this.disable();this._overlayRef=null};var yz=function(){var a=this;this._injector=p(Ae);this.noop=function(){return new qDc};this.close=function(b){var c=a._injector;return new pDc(c.get(Th),c.get(Rg),c.get(Rh),b)};this.block=function(){return Jra(a._injector)};this.reposition=function(b){return Uh(a._injector,b)}};yz.\u0275fac=function(a){return new (a||yz)};yz.\u0275prov=Fc({token:yz,factory:yz.\u0275fac,providedIn:"root"});var ei=function(a){this.scrollStrategy=new qDc;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.usePopover=this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c]!==void 0&&(this[c]=a[c])}};var rDc=function(a,b,c,d){var e=this;this._renderer=b;this._ngZone=c;this.dispose=function(){clearTimeout(e._fallbackTimeout);var f;(f=e._cleanupClick)==null||f.call(e);var g;(g=e._cleanupTransitionEnd)==null||g.call(e);e._cleanupClick=e._cleanupTransitionEnd=e._fallbackTimeout=void 0;e.element.remove()};this.element=a.createElement("div");this.element.classList.add("cdk-overlay-backdrop");this._cleanupClick=b.listen(this.element,"click",d)};
rDc.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 fi=function(a,b,c,d,e,f,g,k,l,r,w,x){r=r===void 0?!1:r;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=g;this._location=k;this._outsideClickDispatcher=l;this._animationsDisabled=r;this._injector=w;this._renderer=x;this._backdropClick=new sf;this._attachments=new sf;this._detachments=new sf;this._locationChanges=Rd.EMPTY;this._backdropRef=null;this._keydownEvents=new sf;this._outsidePointerEvents=new sf;d.scrollStrategy&&(this._scrollStrategy=
d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};h=fi.prototype;
h.attach=function(a){var b=this;this._attachHost();a=this._portalOutlet.attach(a);var c;(c=this._positionStrategy)==null||c.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();var d;(d=this._afterNextRenderRef)==null||d.destroy();this._afterNextRenderRef=Ge(function(){b.hasAttached()&&b.updatePosition()},{injector:this._injector});this._togglePointerEvents(!0);this._config.hasBackdrop&&this._attachBackdrop();
this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0);this._attachments.next();this._completeDetachContent();this._keyboardDispatcher.add(this);this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return b.dispose()}));this._outsideClickDispatcher.add(this);if(typeof(a==null?void 0:a.onDestroy)==="function")a.onDestroy(function(){b.hasAttached()&&b._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return b.detach()})})});
return a};h.detach=function(){if(this.hasAttached()){sDc(this);this._togglePointerEvents(!1);this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach();this._scrollStrategy&&this._scrollStrategy.disable();var a=this._portalOutlet.detach();this._detachments.next();this._completeDetachContent();this._keyboardDispatcher.remove(this);this._detachContentWhenEmpty();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
h.dispose=function(){var a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose();this._disposeScrollStrategy();var b;(b=this._backdropRef)==null||b.dispose();this._locationChanges.unsubscribe();this._keyboardDispatcher.remove(this);this._portalOutlet.dispose();this._attachments.complete();this._backdropClick.complete();this._keydownEvents.complete();this._outsidePointerEvents.complete();this._outsideClickDispatcher.remove(this);var c;(c=this._host)==null||c.remove();var d;(d=
this._afterNextRenderRef)==null||d.destroy();this._previousHostParent=this._pane=this._host=this._backdropRef=null;a&&this._detachments.next();this._detachments.complete();this._completeDetachContent()};h.hasAttached=function(){return this._portalOutlet.hasAttached()};h.backdropClick=function(){return this._backdropClick};h.attachments=function(){return this._attachments};h.keydownEvents=function(){return this._keydownEvents};h.outsidePointerEvents=function(){return this._outsidePointerEvents};
h.getConfig=function(){return this._config};h.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};var tDc=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};fi.prototype.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};
fi.prototype.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};fi.prototype.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};fi.prototype.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};var uDc=function(a){return(a=a._config.direction)?typeof a==="string"?a:a.value:"ltr"};h=fi.prototype;h._updateElementDirection=function(){this._host.setAttribute("dir",uDc(this))};
h._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Nh(this._config.width);a.height=Nh(this._config.height);a.minWidth=Nh(this._config.minWidth);a.minHeight=Nh(this._config.minHeight);a.maxWidth=Nh(this._config.maxWidth);a.maxHeight=Nh(this._config.maxHeight)}};h._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
h._attachHost=function(){if(!this._host.parentElement){var a,b,c=this._config.usePopover?(a=this._positionStrategy)==null?void 0:(b=a.getPopoverInsertionPoint)==null?void 0:b.call(a):null;if(c)c.after(this._host);else{var d;(d=this._previousHostParent)==null||d.appendChild(this._host)}}this._config.usePopover&&this._host.showPopover()};
h._attachBackdrop=function(){var a=this,b;(b=this._backdropRef)==null||b.dispose();this._backdropRef=new rDc(this._document,this._renderer,this._ngZone,function(c){a._backdropClick.next(c)});this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0);this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,
this._host);this._animationsDisabled||typeof requestAnimationFrame==="undefined"?this._backdropRef.element.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c;return(c=a._backdropRef)==null?void 0:c.element.classList.add("cdk-overlay-backdrop-showing")})})};h._updateStackingOrder=function(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var sDc=function(a){if(a._animationsDisabled){var b;(b=a._backdropRef)==null||b.dispose();a._backdropRef=null}else{var c;(c=a._backdropRef)==null||c.detach()}};h=fi.prototype;h._toggleClasses=function(a,b,c){b=Lh(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,q(b)):a.classList.remove.apply(a.classList,q(b)))};
h._detachContentWhenEmpty=function(){var a=this,b=!1;try{this._detachContentAfterRenderRef=Ge(function(){b=!0;a._detachContent()},{injector:this._injector})}catch(c){if(b)throw c;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||(this._detachContentMutationObserver=new globalThis.MutationObserver(function(){a._detachContent()})),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))};
h._detachContent=function(){this._pane&&this._host&&this._pane.children.length!==0||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())};
h._completeDetachContent=function(){var a;(a=this._detachContentAfterRenderRef)==null||a.destroy();this._detachContentAfterRenderRef=void 0;var b;(b=this._detachContentMutationObserver)==null||b.disconnect()};h._disposeScrollStrategy=function(){var a=this._scrollStrategy;a==null||a.disable();var b;a==null||(b=a.detach)==null||b.call(a)};
da.Object.defineProperties(fi.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var vDc=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var Nra=/([A-Za-z%]+)$/,Vh=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 sf;this._resizeSubscription=Rd.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this._popoverLocation=
"global";this.positionChanges=this._positionChanges;this.setOrigin(a)};Vh.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()})};
Vh.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)wDc(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=Qra(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,g=m(this._preferredPositions),k=g.next();!k.done;k=g.next()){k=k.value;var l=this._getOriginPoint(a,d,k),r=this._getOverlayPoint(l,b,k),w=this._getOverlayFit(r,b,c,k);if(w.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,l);return}if(this._canFitWithFlexibleDimensions(w,r,c))e.push({position:k,origin:l,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(l,k)});else if(!f||f.overlayFit.visibleArea<w.visibleArea)f={overlayFit:w,
overlayPoint:r,originPoint:l,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=m(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)}};Vh.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
Vh.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Zh(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 wDc=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=Qra(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},xDc=function(a,b){a._scrollables=b;return a},zz=function(a,b){a._preferredPositions=b;b.indexOf(a._lastPosition)===-1&&(a._lastPosition=
null);return a},Az=function(a,b){a._viewportMargin=b;return a},Bz=function(a,b){a._hasFlexibleDimensions=b===void 0?!0:b;return a},yDc=function(a,b){a._growAfterOpen=b===void 0?!0:b;return a},zDc=function(a,b){a._canPush=b===void 0?!0:b;return a},ADc=function(a,b){a._positionLocked=b===void 0?!0:b;return a};Vh.prototype.setOrigin=function(a){this._origin=a;return this};var BDc=function(a,b){a._transformOriginSelector=b;return a},CDc=function(a,b){a._popoverLocation=b;return a};h=Vh.prototype;
h.getPopoverInsertionPoint=function(){if(this._popoverLocation==="global")return null;var a=this._origin;return a instanceof Jd?a.nativeElement:a instanceof Element?a:document.body.lastChild};h._getOriginPoint=function(a,b,c){if(c.originX=="center")var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d=c.originX=="start"?d:e}b.left<0&&(d-=b.left);a=c.originY=="center"?a.top+a.height/2:c.originY=="top"?a.top:a.bottom;b.top<0&&(a-=b.top);return{x:d,y:a}};
h._getOverlayPoint=function(a,b,c){var d=c.overlayX=="center"?-b.width/2:c.overlayX==="start"?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+(c.overlayY=="center"?-b.height/2:c.overlayY=="top"?0:-b.height)}};
h._getOverlayFit=function(a,b,c,d){b=Pra(b);var e=a.x;a=a.y;var f=this._getOffset(d,"x");d=this._getOffset(d,"y");f&&(e+=f);d&&(a+=d);d=-a;a=a+b.height-c.height;c=this._subtractOverflows(b.width,-e,e+b.width-c.width);e=this._subtractOverflows(b.height,d,a);d=c*e;return{visibleArea:d,isCompletelyWithinViewport:b.width*b.height===d,fitsInViewportVertically:e===b.height,fitsInViewportHorizontally:c==b.width}};
h._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=Ora(this._overlayRef.getConfig().minHeight);var e=Ora(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||e!=null&&e<=c;return(a.fitsInViewportVertically||b!=null&&b<=d)&&c}return!1};
h._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=Pra(b);var d=this._viewportRect,e=Math.max(a.x+b.width-d.width,0),f=Math.max(a.y+b.height-d.height,0),g=Math.max(d.top-c.top-a.y,0),k=Math.max(d.left-c.left-a.x,0);e=b.width<=d.width?k||-e:a.x<this._getViewportMarginStart()?d.left-c.left-a.x:0;c=b.height<=d.height?g||-f:a.y<this._getViewportMarginTop()?d.top-c.top-a.y:0;this._previousPushAmount=
{x:e,y:c};return{x:a.x+e,y:a.y+c}};
h._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);if(this._positionChanges.observers.length){b=this._getScrollVisibility();var c;if(c=a===this._lastPosition&&this._lastScrollVisibility)c=this._lastScrollVisibility,c=c===b?!0:c.isOriginClipped===b.isOriginClipped&&c.isOriginOutsideView===b.isOriginOutsideView&&c.isOverlayClipped===b.isOverlayClipped&&c.isOverlayOutsideView===
b.isOverlayOutsideView;c||this._positionChanges.next(new vDc(a,b));this._lastScrollVisibility=b}this._lastPosition=a;this._isInitialRender=!1};h._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a=a.overlayX==="center"?"center":this._isRtl()?a.overlayX==="start"?"right":"left":a.overlayX==="start"?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
h._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if(b.overlayY==="top"){var e=a.y;var f=c.height-e+this._getViewportMarginBottom()}else if(b.overlayY==="bottom"){var g=c.height-a.y+this._getViewportMarginTop()+this._getViewportMarginBottom();f=c.height-g+this._getViewportMarginTop()}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=e*2;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k=b.overlayX==="start"&&!d||
b.overlayX==="end"&&d;if(b.overlayX==="end"&&!d||b.overlayX==="start"&&d){var l=c.width-a.x+this._getViewportMarginStart()+this._getViewportMarginEnd();b=a.x-this._getViewportMarginStart()}else if(k){var r=a.x;b=c.right-a.x-this._getViewportMarginEnd()}else r=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=r*2,r=a.x-r,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(r=a.x-c/2);return{top:e,left:r,bottom:g,right:l,width:b,height:f}};
h._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=Nh(a.height);c.top=Nh(a.top);c.bottom=Nh(a.bottom);
c.width=Nh(a.width);c.left=Nh(a.left);c.right=Nh(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=Nh(d));e&&(c.maxWidth=Nh(e))}this._lastBoundingBoxSize=a;Zh(this._boundingBox.style,c)};h._resetBoundingBoxStyles=function(){Zh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
h._resetOverlayElementStyles=function(){Zh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
h._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var g=this._viewportRuler.getViewportScrollPosition();Zh(c,this._getExactOverlayY(b,a,g));Zh(c,this._getExactOverlayX(b,a,g))}else c.position="static";a="";g=this._getOffset(b,"x");b=this._getOffset(b,"y");g&&(a+="translateX("+g+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=Nh(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Nh(f.maxWidth):e&&(c.maxWidth=""));Zh(this._pane.style,c)};h._getExactOverlayY=function(a,b,c){var d={top:"",bottom:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));a.overlayY==="bottom"?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=Nh(b.y);return d};
h._getExactOverlayX=function(a,b,c){var d={left:"",right:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));(this._isRtl()?a.overlayX==="end"?"left":"right":a.overlayX==="end"?"right":"left")==="right"?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=Nh(b.x);return d};
h._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:Lra(a,c),isOriginOutsideView:Kra(a,c),isOverlayClipped:Lra(b,c),isOverlayOutsideView:Kra(b,c)}};h._subtractOverflows=function(a){return bd.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
h._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._getViewportMarginTop(),left:c.left+this._getViewportMarginStart(),right:c.left+a-this._getViewportMarginEnd(),bottom:c.top+b-this._getViewportMarginBottom(),width:a-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:b-this._getViewportMarginTop()-this._getViewportMarginBottom()}};
h._isRtl=function(){return uDc(this._overlayRef)==="rtl"};h._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};h._getOffset=function(a,b){return b==="x"?a.offsetX==null?this._offsetX:a.offsetX:a.offsetY==null?this._offsetY:a.offsetY};h._validatePositions=function(){};h._addPanelClasses=function(a){var b=this;this._pane&&Lh(a).forEach(function(c){c!==""&&b._appliedPanelClasses.indexOf(c)===-1&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
h._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};h._getViewportMarginStart=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.start)!=null?b:0};
h._getViewportMarginEnd=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.end)!=null?b:0};h._getViewportMarginTop=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.top)!=null?b:0};
h._getViewportMarginBottom=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.bottom)!=null?b:0};h._getOriginRect=function(){var a=this._origin;if(a instanceof Jd)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();var b=a.width||0,c=a.height||0;return{top:a.y,bottom:a.y+c,left:a.x,right:a.x+b,height:c,width:b}};
da.Object.defineProperties(Vh.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var Cz=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};h=Cz.prototype;h.attach=function(a){var b=a.getConfig();this._overlayRef=a;this._width&&!b.width&&a.updateSize({width:this._width});this._height&&!b.height&&a.updateSize({height:this._height});a.hostElement.classList.add("cdk-global-overlay-wrapper");this._isDisposed=!1};
h.top=function(a){this._bottomOffset="";this._topOffset=a===void 0?"":a;this._alignItems="flex-start";return this};h.left=function(a){this._xOffset=a===void 0?"":a;this._xPosition="left";return this};h.bottom=function(a){this._topOffset="";this._bottomOffset=a===void 0?"":a;this._alignItems="flex-end";return this};h.right=function(a){this._xOffset=a===void 0?"":a;this._xPosition="right";return this};h.start=function(a){this._xOffset=a===void 0?"":a;this._xPosition="start";return this};
h.end=function(a){this._xOffset=a===void 0?"":a;this._xPosition="end";return this};h.width=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};h.height=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var Dz=function(a){a.left("");a._xPosition="center";return a},DDc=function(a){a.top("");a._alignItems="center";return a};
Cz.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=(d==="100%"||d==="100vw")&&(!f||f==="100%"||f==="100vw");e=(e==="100%"||e==="100vh")&&(!c||c==="100%"||c==="100vh");f=this._xPosition;c=this._xOffset;var g=this._overlayRef.getConfig().direction==="rtl",k="",l="",r="";if(d)r="flex-start";else if(f==="center")r=
"center",g?l=c:k=c;else if(g)if(f==="left"||f==="end")r="flex-end",k=c;else{if(f==="right"||f==="start")r="flex-start",l=c}else if(f==="left"||f==="start")r="flex-start",k=c;else if(f==="right"||f==="end")r="flex-end",l=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":l;b.justifyContent=r;b.alignItems=e?"flex-start":this._alignItems}};
Cz.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 Ez=function(){this._injector=p(Ae)};Ez.prototype.global=function(){return new Cz};var Fz=function(a,b){return Yh(a._injector,b)};Ez.\u0275fac=function(a){return new (a||Ez)};Ez.\u0275prov=Fc({token:Ez,factory:Ez.\u0275fac,providedIn:"root"});var Gz=function(){};Gz.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};Gz.prototype.detach=function(){var a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())};da.Object.defineProperties(Gz.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return this._attachedHost!=null}}});var Hz=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.projectableNodes=d};Y(Hz,Gz);
var Iz=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};Y(Iz,Gz);Iz.prototype.attach=function(a,b){this.context=b=b===void 0?this.context:b;return Gz.prototype.attach.call(this,a)};Iz.prototype.detach=function(){this.context=void 0;return Gz.prototype.detach.call(this)};da.Object.defineProperties(Iz.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var Jz=function(){this._isDisposed=!1};h=Jz.prototype;
h.hasAttached=function(){return!!this._attachedPortal};h.attach=function(a){if(a instanceof Hz)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof Iz)return this._attachedPortal=a,this.attachTemplatePortal(a)};h.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};h.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
h.setDisposeFn=function(a){this._disposeFn=a};h._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};var gi=function(a,b,c){this._isDisposed=!1;this.outletElement=a;this._appRef=b;this._defaultInjector=c};Y(gi,Jz);
gi.prototype.attachComponentPortal=function(a){if(a.viewContainerRef){var b=a.injector||a.viewContainerRef.injector,c=b.get(dx,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||czc;c=b.get($e,e.injector);d=opa(a.component,{elementInjector:b,environmentInjector:c,
projectableNodes:a.projectableNodes||void 0});nAc(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};
gi.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};gi.prototype.dispose=function(){Jz.prototype.dispose.call(this);this.outletElement.remove()};gi.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var Kz=function(){var a=p(eg),b=p(fg);Iz.call(this,a,b)};Y(Kz,Iz);Kz.\u0275fac=function(a){return new (a||Kz)};Kz.\u0275dir=df({type:Kz,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Gf]});var Lz=function(){this._isDisposed=!1;this._moduleRef=p(dx,{optional:!0});this._document=p(Sh);this._viewContainerRef=p(fg);this._isInitialized=!1;this.attached=new Ui};Y(Lz,Jz);h=Lz.prototype;h.ngOnInit=function(){this._isInitialized=!0};
h.ngOnDestroy=function(){Jz.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
h.attachComponentPortal=function(a){a._attachedHost=this;var b=a.viewContainerRef!=null?a.viewContainerRef:this._viewContainerRef,c=b.createComponent(a.component,{index:b.length,injector:a.injector||b.injector,projectableNodes:a.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});b!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]);Jz.prototype.setDisposeFn.call(this,function(){return c.destroy()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);
return c};h.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});Jz.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};h._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
da.Object.defineProperties(Lz.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&Jz.prototype.detach.call(this),a&&Jz.prototype.attach.call(this,a),this._attachedPortal=a||null}}});Lz.\u0275fac=function(a){return new (a||Lz)};
Lz.\u0275dir=df({type:Lz,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Gf]});var Mz=function(){};Mz.\u0275fac=function(a){return new (a||Mz)};Mz.\u0275mod=cf({type:Mz});Mz.\u0275inj=Hc({});var Nz=function(){this.scrollStrategies=p(yz);this._positionBuilder=p(Ez);this._injector=p(Ae)};Nz.prototype.create=function(a){return li(this._injector,a)};Nz.prototype.position=function(){return this._positionBuilder};Nz.\u0275fac=function(a){return new (a||Nz)};Nz.\u0275prov=Fc({token:Nz,factory:Nz.\u0275fac,providedIn:"root"});var EDc=[{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"}],FDc=new fd("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Uh(a)}}}),Oz=function(){this.elementRef=p(Jd)};Oz.\u0275fac=function(a){return new (a||Oz)};
Oz.\u0275dir=df({type:Oz,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var GDc=new fd("cdk-connected-overlay-default-config"),Pz=function(){this._dir=p(ci,{optional:!0});this._injector=p(Ae);this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=Rd.EMPTY;this._scrollStrategyFactory=p(FDc);this._ngZone=p(Rg);this.viewportMargin=0;this.disposeOnNavigation=this.push=this.growAfterOpen=this.flexibleDimensions=this.lockPosition=this.hasBackdrop=this.disableClose=this.open=!1;this.usePopover=null;this.matchWidth=!1;this.backdropClick=
new Ui;this.positionChange=new Ui;this.attach=new Ui;this.detach=new Ui;this.overlayKeydown=new Ui;this.overlayOutsideClick=new Ui;var a=p(eg),b=p(fg),c=p(GDc,{optional:!0});this._templatePortal=new Iz(a,b);this.scrollStrategy=this._scrollStrategyFactory();c&&this._assignConfig(c)};h=Pz.prototype;
h.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();var a;(a=this._overlayRef)==null||a.dispose()};
h.ngOnChanges=function(a){if(this._position){this._updatePositionStrategy(this._position);var b;(b=this._overlayRef)==null||b.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight});a.origin&&this.open&&this._position.apply()}a.open&&(this.open?HDc(this):IDc(this))};
h._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=EDc);var b=this._overlayRef=li(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||Gh(c)||(c.preventDefault(),IDc(a))});this._overlayRef.outsidePointerEvents().subscribe(function(c){var d=
a._getOriginElement(),e=Kh(c);d&&(d===e||d.contains(e))||a.overlayOutsideClick.next(c)})};
h._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new ei({direction:this._dir||"ltr",positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});if(this.height||this.height===0)a.height=this.height;if(this.minWidth||this.minWidth===0)a.minWidth=this.minWidth;if(this.minHeight||this.minHeight===0)a.minHeight=this.minHeight;this.backdropClass&&(a.backdropClass=
this.backdropClass);this.panelClass&&(a.panelClass=this.panelClass);return a};
h._updatePositionStrategy=function(a){var b=this,c=this.positions.map(function(d){return{originX:d.originX,originY:d.originY,overlayX:d.overlayX,overlayY:d.overlayY,offsetX:d.offsetX||b.offsetX,offsetY:d.offsetY||b.offsetY,panelClass:d.panelClass||void 0}});return CDc(BDc(ADc(Az(yDc(zDc(Bz(zz(a.setOrigin(this._getOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector),this.usePopover==="global"?"global":"inline")};
h._createPositionStrategy=function(){var a=Yh(this._injector,this._getOrigin());this._updatePositionStrategy(a);return a};h._getOrigin=function(){return this.origin instanceof Oz?this.origin.elementRef:this.origin};h._getOriginElement=function(){return this.origin instanceof Oz?this.origin.elementRef.nativeElement:this.origin instanceof Jd?this.origin.nativeElement:typeof Element!=="undefined"&&this.origin instanceof Element?this.origin:null};
h._getWidth=function(){if(this.width)return this.width;var a,b;return this.matchWidth?(a=this._getOriginElement())==null?void 0:(b=a.getBoundingClientRect)==null?void 0:b.call(a).width:void 0};
var HDc=function(a){a._overlayRef||a._createOverlay();var b=a._overlayRef;b.getConfig().hasBackdrop=a.hasBackdrop;b.updateSize({width:a._getWidth()});b.hasAttached()||b.attach(a._templatePortal);a.hasBackdrop?a._backdropSubscription=b.backdropClick().subscribe(function(c){return a.backdropClick.emit(c)}):a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.positionChange.observers.length>0&&(a._positionSubscription=a._position.positionChanges.pipe(Cla(function(){return a.positionChange.observers.length>
0})).subscribe(function(c){a._ngZone.run(function(){return a.positionChange.emit(c)});a.positionChange.observers.length===0&&a._positionSubscription.unsubscribe()}));a.open=!0},IDc=function(a){var b;(b=a._overlayRef)==null||b.detach();a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.open=!1};
Pz.prototype._assignConfig=function(a){var b;this.origin=(b=a.origin)!=null?b:this.origin;var c;this.positions=(c=a.positions)!=null?c:this.positions;var d;this.positionStrategy=(d=a.positionStrategy)!=null?d:this.positionStrategy;var e;this.offsetX=(e=a.offsetX)!=null?e:this.offsetX;var f;this.offsetY=(f=a.offsetY)!=null?f:this.offsetY;var g;this.width=(g=a.width)!=null?g:this.width;var k;this.height=(k=a.height)!=null?k:this.height;var l;this.minWidth=(l=a.minWidth)!=null?l:this.minWidth;var r;
this.minHeight=(r=a.minHeight)!=null?r:this.minHeight;var w;this.backdropClass=(w=a.backdropClass)!=null?w:this.backdropClass;var x;this.panelClass=(x=a.panelClass)!=null?x:this.panelClass;var C;this.viewportMargin=(C=a.viewportMargin)!=null?C:this.viewportMargin;var H;this.scrollStrategy=(H=a.scrollStrategy)!=null?H:this.scrollStrategy;var J;this.disableClose=(J=a.disableClose)!=null?J:this.disableClose;var O;this.transformOriginSelector=(O=a.transformOriginSelector)!=null?O:this.transformOriginSelector;
var R;this.hasBackdrop=(R=a.hasBackdrop)!=null?R:this.hasBackdrop;var V;this.lockPosition=(V=a.lockPosition)!=null?V:this.lockPosition;var ca;this.flexibleDimensions=(ca=a.flexibleDimensions)!=null?ca:this.flexibleDimensions;var oa;this.growAfterOpen=(oa=a.growAfterOpen)!=null?oa:this.growAfterOpen;var ua;this.push=(ua=a.push)!=null?ua:this.push;var ka;this.disposeOnNavigation=(ka=a.disposeOnNavigation)!=null?ka:this.disposeOnNavigation;var Ga;this.usePopover=(Ga=a.usePopover)!=null?Ga:this.usePopover;
var ja;this.matchWidth=(ja=a.matchWidth)!=null?ja:this.matchWidth};
da.Object.defineProperties(Pz.prototype,{offsetX:{configurable:!0,enumerable:!0,get:function(){return this._offsetX},set:function(a){this._offsetX=a;this._position&&this._updatePositionStrategy(this._position)}},offsetY:{configurable:!0,enumerable:!0,get:function(){return this._offsetY},set:function(a){this._offsetY=a;this._position&&this._updatePositionStrategy(this._position)}},_config:{configurable:!0,enumerable:!0,set:function(a){typeof a!=="string"&&this._assignConfig(a)}},overlayRef:{configurable:!0,
enumerable:!0,get:function(){return this._overlayRef}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir?this._dir.value:"ltr"}}});Pz.\u0275fac=function(a){return new (a||Pz)};
Pz.\u0275dir=df({type:Pz,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",$g],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",$g],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",$g],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",$g],push:[2,"cdkConnectedOverlayPush","push",$g],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",
$g],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",$g],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[bx]});var Qz=function(){};Qz.\u0275fac=function(a){return new (a||Qz)};Qz.\u0275mod=cf({type:Qz});Qz.\u0275inj=Hc({providers:[Nz],imports:[Ey,Mz,xz,xz]});var Rra=new fd("MATERIAL_ANIMATIONS"),Sra=null;var JDc=function(a,b,c,d,e){this._defaultMatcher=a;this.ngControl=b;this._parentFormGroup=c;this._parentForm=d;this._stateChanges=e;this.errorState=!1};JDc.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 fd("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return p(Xoa)}});var Rz=function(){this.localeChanges=this._localeChanges=new sf};Rz.prototype.setTime=function(){throw Error("Ya");};Rz.prototype.getHours=function(){throw Error("Ya");};Rz.prototype.getMinutes=function(){throw Error("Ya");};Rz.prototype.getSeconds=function(){throw Error("Ya");};var Sz=function(a,b){return KDc(b)&&a.isValid(b)?b:null},Tz=function(a,b){return b==null||KDc(b)&&a.isValid(b)?b:a.invalid()};
Rz.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var Uz=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};Rz.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!Uz(this,a,b):c==d}return a==b};var LDc=function(a,b,c,d){return c&&Uz(a,b,c)<0?c:d&&Uz(a,b,d)>0?d:b};var Vz=new fd("mat-date-formats");var Wz=function(){};Wz.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};Wz.\u0275fac=function(a){return new (a||Wz)};Wz.\u0275prov=Fc({token:Wz,factory:Wz.\u0275fac,providedIn:"root"});var Yz=function(){};Yz.\u0275fac=function(a){return new (a||Yz)};
Yz.\u0275cmp=D({type:Yz,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 Zz=function(){};Zz.\u0275fac=function(a){return new (a||Zz)};
Zz.\u0275cmp=D({type:Zz,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-form-field--align-end",b.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:["mat-internal-form-field",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),dg(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 MDc=new fd("MAT_OPTION_PARENT_COMPONENT");var NDc=new fd("MatOptgroup");var ODc=Ih({passive:!0,capture:!0}),QDc=function(a,b,c,d){var e=PDc,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,ODc)}))};var RDc=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 SDc={enterDuration:225,exitDuration:150},TDc=Ih({passive:!0,capture:!0}),UDc=["mousedown","touchstart"],VDc=["mouseup","mouseleave","touchend","touchcancel"],WDc=function(){};WDc.\u0275fac=function(a){return new (a||WDc)};
WDc.\u0275cmp=D({type:WDc,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 XDc=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=Oh(c));e&&e.get($h).load(WDc)},YDc=function(a,b,c,d){d=d===void 0?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},SDc,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var g=d.radius||Ura(b,c,e);b-=e.left;c-=e.top;var k=f.enterDuration,
l=document.createElement("div");l.classList.add("mat-ripple-element");l.style.left=b-g+"px";l.style.top=c-g+"px";l.style.height=g*2+"px";l.style.width=g*2+"px";d.color!=null&&(l.style.backgroundColor=d.color);l.style.transitionDuration=k+"ms";a._containerElement.appendChild(l);g=window.getComputedStyle(l);c=g.transitionDuration;e=g.transitionProperty==="none"||c==="0s"||c==="0s, 0s"||e.width===0&&e.height===0;var r=new RDc(a,l,d,e);l.style.transform="scale3d(1, 1, 1)";r.state=0;d.persistent||(a._mostRecentTransientRipple=
r);var w=null;e||!k&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var x=function(){w&&(w.fallbackTimer=null);clearTimeout(H);a._finishRippleTransition(r)},C=function(){return a._destroyRipple(r)},H=setTimeout(C,k+100);l.addEventListener("transitionend",x);l.addEventListener("transitioncancel",C);w={onTransitionEnd:x,onTransitionCancel:C,fallbackTimer:H}});a._activeRipples.set(r,w);!e&&k||a._finishRippleTransition(r);return r},ZDc=function(a,b){if(b.state!==2&&b.state!==3){var c=b.element,
d=Object.assign({},SDc,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};XDc.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||ZDc(a._renderer,a)})};
var $Dc=function(a,b){var c=Oh(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,UDc.forEach(function(d){QDc(a._ngZone,d,c,a)}))};h=XDc.prototype;
h.handleEvent=function(a){var b=this;a.type==="mousedown"?this._onMousedown(a):a.type==="touchstart"?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(function(){VDc.forEach(function(c){b._triggerElement.addEventListener(c,b,TDc)})}),this._pointerUpEventsRegistered=!0)};h._finishRippleTransition=function(a){a.state===0?this._startFadeOutTransition(a):a.state===2&&this._destroyRipple(a)};
h._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||ZDc(a._renderer,a)};
h._destroyRipple=function(a){var b,c=(b=this._activeRipples.get(a))!=null?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;c!==null&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel),c.fallbackTimer!==null&&clearTimeout(c.fallbackTimer));a.element.remove()};
h._onMousedown=function(a){var b=gra(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,YDc(this,a.clientX,a.clientY,this._target.rippleConfig))};h._onTouchStart=function(a){if(!this._target.rippleDisabled&&!hra(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)YDc(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)};
h._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=a.state===1||a.config.terminateOnPointerUp&&a.state===0;!a.config.persistent&&b&&ZDc(a._renderer,a)}))};h._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
h._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&(UDc.forEach(function(c){var d=PDc,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,ODc)))}}),this._pointerUpEventsRegistered&&(VDc.forEach(function(c){return b.removeEventListener(c,a,TDc)}),this._pointerUpEventsRegistered=!1))};
var PDc=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=Kh(b);if(c){var d;(d=a._events.get(b.type))==null||d.forEach(function(e,f){(f===c||f.contains(c))&&e.forEach(function(g){return g.handleEvent(b)})})}}};var $z=new fd("mat-ripple-global-options"),aA=function(){this._elementRef=p(Jd);this._animationsDisabled=ni();this.radius=0;this._isInitialized=this._disabled=!1;var a=p(Rg),b=p(Wh),c=p($z,{optional:!0}),d=p(Ae);this._globalOptions=c||{};this._rippleRenderer=new XDc(this,a,this._elementRef,b,d)};h=aA.prototype;h.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};h.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};h.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
h._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&$Dc(this._rippleRenderer,this.trigger)};h.launch=function(a,b,c){return typeof a==="number"?YDc(this._rippleRenderer,a,b===void 0?0:b,Object.assign({},this.rippleConfig,c)):YDc(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
da.Object.defineProperties(aA.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}}});aA.\u0275fac=function(a){return new (a||aA)};
aA.\u0275dir=df({type:aA,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-ripple-unbounded",b.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]});var bA=function(){this._animationsDisabled=ni();this.state="unchecked";this.disabled=!1;this.appearance="full"};bA.\u0275fac=function(a){return new (a||bA)};
bA.\u0275cmp=D({type:bA,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&wg("mat-pseudo-checkbox-indeterminate",b.state==="indeterminate")("mat-pseudo-checkbox-checked",b.state==="checked")("mat-pseudo-checkbox-disabled",b.disabled)("mat-pseudo-checkbox-minimal",b.appearance==="minimal")("mat-pseudo-checkbox-full",b.appearance==="full")("_mat-animation-noopable",b._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},
decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-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 aEc=["text"],bEc=[[["mat-icon"]],"*"],cEc=function(a,b){this.source=a;this.isUserInput=b===void 0?!1:b},cA=function(){this._element=p(Jd);this._changeDetectorRef=p(ux);this._parent=p(MDc,{optional:!0});this.group=p(NDc,{optional:!0});this._active=this._selected=this._signalDisableRipple=!1;this._mostRecentViewValue="";this.id=p(bi).getId("mat-option-");this._disabled=ng.apply(null,[!1].concat(q([])));this.onSelectionChange=new Ui;this._stateChanges=new sf;var a=p($h);a.load(Yz);a.load(Ly);this._signalDisableRipple=
!!this._parent&&ff(this._parent.disableRipple)};h=cA.prototype;h.select=function(a){a=a===void 0?!0:a;this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};h.deselect=function(a){a=a===void 0?!0:a;this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};h.focus=function(a,b){var c=this._getHostElement();typeof c.focus==="function"&&c.focus(b)};
h.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};h.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};h.getLabel=function(){return this.viewValue};h._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||Gh(a)||(this._selectViaInteraction(),a.preventDefault())};
h._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};h._getTabIndex=function(){return this.disabled?"-1":"0"};h._getHostElement=function(){return this._element.nativeElement};h.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=a)}};h.ngOnDestroy=function(){this._stateChanges.complete()};
h._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new cEc(this,a===void 0?!1:a))};
da.Object.defineProperties(cA.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()}}});cA.\u0275fac=function(a){return new (a||cA)};
cA.\u0275cmp=D({type:cA,selectors:[["mat-option"]],viewQuery:function(a,b){a&1&&hg(aEc,7);if(a&2){var c;lg(c=mg())&&(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&&(Qf("id",b.id),Kf("aria-selected",b.selected)("aria-disabled",b.disabled.toString()),wg("mdc-list-item--selected",b.selected)("mat-mdc-option-multiple",
b.multiple)("mat-mdc-option-active",b.active)("mdc-list-item--disabled",b.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",$g]},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&&(cg(bEc),F(0,Vra,1,2,"mat-pseudo-checkbox",1),dg(1),K(2,"span",2,0),dg(4,1),L(),F(5,Wra,1,1,"mat-pseudo-checkbox",3),F(6,Xra,2,1,"span",4),M(7,"div",5));a&2&&(G(b.multiple?0:-1),B(5),G(b.multiple||!b.selected||b.hideSingleSelectionIndicator?-1:5),B(),G(b.group&&b.group._inert?6:-1),B(),I("matRippleTrigger",
b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[bA,aA],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active,.mat-mdc-option-multiple,:focus,:hover) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var dA=function(){};dA.\u0275fac=function(a){return new (a||dA)};dA.\u0275mod=cf({type:dA});dA.\u0275inj=Hc({imports:[Ey]});var eA=function(){};eA.\u0275fac=function(a){return new (a||eA)};eA.\u0275mod=cf({type:eA});eA.\u0275inj=Hc({imports:[Ey]});var fA=function(){};fA.\u0275fac=function(a){return new (a||fA)};fA.\u0275mod=cf({type:fA});fA.\u0275inj=Hc({imports:[dA,eA,cA,Ey]});var dEc={capture:!0},eEc=["focus","mousedown","mouseenter","touchstart"],gA=function(){var a=this;this._document=p(Sh);this._animationsDisabled=ni();this._globalRippleOptions=p($z,{optional:!0});this._platform=p(Wh);this._ngZone=p(Rg);this._injector=p(Ae);this._hosts=new Map;this._onInteraction=function(c){c=Kh(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=p(af).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return eEc.map(function(c){return b.listen(a._document,c,a._onInteraction,dEc)})})};gA.prototype.ngOnDestroy=function(){var a=this._hosts.keys();a=m(a);for(var b=a.next();!b.done;b=a.next())fEc(this,b.value);this._eventCleanups.forEach(function(c){return c()})};
var gEc=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","")};
gA.prototype.setDisabled=function(a,b){var c=this._hosts.get(a);c?(c.target.rippleDisabled=b,b||c.hasSetUpEvents||(c.hasSetUpEvents=!0,$Dc(c.renderer,a))):b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")};
gA.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:SDc.enterDuration,g,k;d=this._animationsDisabled?0:(k=c==null?void 0:(g=c.animation)==null?void 0:
g.exitDuration)!=null?k:SDc.exitDuration;g={rippleDisabled:this._animationsDisabled||(c==null?void 0:c.disabled)||a.hasAttribute("mat-ripple-loader-disabled"),rippleConfig:{centered:a.hasAttribute("mat-ripple-loader-centered"),terminateOnPointerUp:c==null?void 0:c.terminateOnPointerUp,animation:{enterDuration:f,exitDuration:d}}};b=new XDc(g,this._ngZone,b,this._platform,this._injector);(k=!g.rippleDisabled)&&$Dc(b,a);this._hosts.set(a,{target:g,renderer:b,hasSetUpEvents:k});a.removeAttribute("mat-ripple-loader-uninitialized")}};
var fEc=function(a,b){var c=a._hosts.get(b);c&&(c.renderer._removeTriggerEvents(),a._hosts.delete(b))};gA.\u0275fac=function(a){return new (a||gA)};gA.\u0275prov=Fc({token:gA,factory:gA.\u0275fac,providedIn:"root"});var hEc=["tooltip"],iEc=new fd("mat-tooltip-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Uh(a,{scrollThrottle:20})}}}),jEc=new fd("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),kEc=Ih({passive:!0}),iA=function(){this._elementRef=p(Jd);this._ngZone=p(Rg);this._platform=p(Wh);this._ariaDescriber=p($y);this._focusMonitor=p(Hy);this._dir=p(ci);this._injector=p(Ae);this._viewContainerRef=
p(fg);this._animationsDisabled=ni();this._defaultOptions=p(jEc,{optional:!0});this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._tooltipComponent=hA;this._viewportMargin=8;this._cssClassPrefix="mat-mdc";this._dirSubscribed=!1;this.touchGestures="auto";this._message="";this._passiveListeners=[];this._touchstartTimeout=null;this._destroyed=new sf;this._isDestroyed=!1;var a=this._defaultOptions;a&&(this._showDelay=a.showDelay,
this._hideDelay=a.hideDelay,a.position&&(this.position=a.position),a.positionAtOrigin&&(this.positionAtOrigin=a.positionAtOrigin),a.touchGestures&&(this.touchGestures=a.touchGestures),a.tooltipClass&&(this.tooltipClass=a.tooltipClass));this._viewportMargin=8};h=iA.prototype;
h.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Bf(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
h.ngOnDestroy=function(){var a=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=m(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,kEc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0;bz(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
h.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new Hz(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(Bf(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};h.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};h.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};h._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
h._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Jd)return this._overlayRef;this._detach()}var d=eDc(this._injector.get(Th),this._elementRef);c=this._cssClassPrefix+"-tooltip-panel";a=CDc(xDc(Az(Bz(BDc(Yh(this._injector,this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),d),"global");a.positionChanges.pipe(Bf(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=li(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[].concat(q(this._overlayPanelClass),[c]):c,scrollStrategy:this._injector.get(iEc)(),disableAnimations:this._animationsDisabled,usePopover:!0});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(Bf(this._destroyed)).subscribe(function(){return b._detach()});
this._overlayRef.outsidePointerEvents().pipe(Bf(this._destroyed)).subscribe(function(){var f;return(f=b._tooltipInstance)==null?void 0:f._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Bf(this._destroyed)).subscribe(function(f){b._isTooltipVisible()&&f.keyCode===27&&!Gh(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(Bf(this._destroyed)).subscribe(function(){b._overlayRef&&b._updatePosition(b._overlayRef)}));return this._overlayRef};h._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};
h._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();zz(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};h._addOffset=function(a){var b=!this._dir||this._dir.value=="ltr";a.originY==="top"?a.offsetY=-8:a.originY==="bottom"?a.offsetY=8:a.originX==="start"?a.offsetX=b?-8:8:a.originX==="end"&&(a.offsetX=b?8:-8);return a};
h._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
h._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
h._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ge(function(){a._tooltipInstance&&a._overlayRef.updatePosition()},{injector:this._injector}))};h._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
h._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
h._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
h._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);var e,f;a._touchstartTimeout=setTimeout(function(){a._touchstartTimeout=null;a.show(void 0,d)},(f=(e=a._defaultOptions)==null?void 0:e.touchLongPressShowDelay)!=null?f:500)}])),this._addListeners(this._passiveListeners))};
h._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);
var d;a.hide((d=a._defaultOptions)==null?void 0:d.touchendHideDelay)};b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,q(b))}};h._addListeners=function(a){var b=this;a.forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,kEc)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._wheelListener=function(a){if(this._isTooltipVisible()){a=this._injector.get(Sh).elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
h._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
h._syncAriaDescription=function(a){var b=this;this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,bz(this._ariaDescriber,this._elementRef.nativeElement,a,"tooltip"),this._isDestroyed||Ge({write:function(){b._ariaDescriptionPending=!1;b.message&&!b.disabled&&az(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")}},{injector:this._injector}))};
da.Object.defineProperties(iA.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=Mh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){a=Mh(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=Ph(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Ph(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)}}});
iA.\u0275fac=function(a){return new (a||iA)};
iA.\u0275dir=df({type:iA,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-mdc-tooltip-disabled",b.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],
message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]});var hA=function(){this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._isMultiline=!1;this._animationsDisabled=ni();this._isVisible=this._closeOnInteraction=!1;this._onHide=new sf;this._showAnimation="mat-mdc-tooltip-show";this._hideAnimation="mat-mdc-tooltip-hide"};h=hA.prototype;
h.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};h.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};h.afterHidden=function(){return this._onHide};h.isVisible=function(){return this._isVisible};
h.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};h._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};h._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};h._onShow=function(){this._isMultiline=this._isTooltipMultiline();this._markForCheck()};
h._isTooltipMultiline=function(){var a=this._elementRef.nativeElement.getBoundingClientRect();return a.height>24&&a.width>=200};h._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};h._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};
h._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
h._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);this._isVisible!==a&&(this._isVisible=a,this._changeDetectorRef.markForCheck());a&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&
(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};hA.\u0275fac=function(a){return new (a||hA)};
hA.\u0275cmp=D({type:hA,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&hg(hEc,7);if(a&2){var c;lg(c=mg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(a,b){a&1&&N("mouseleave",function(c){return b._handleMouseLeave(c)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);N("animationend",
function(d){u(c);return v(b._handleAnimationEnd(d))});K(2,"div",2);Q(3);L()()}a&2&&(wg("mdc-tooltip--multiline",b._isMultiline),I("ngClass",b.tooltipClass),B(3),yg(b.message))},dependencies:[Dx],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 jA=function(){};jA.\u0275fac=function(a){return new (a||jA)};jA.\u0275mod=cf({type:jA});jA.\u0275inj=Hc({imports:[Zy,Qz,Ey,wz]});var lEc={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"},bsa=function(a,b){var c=Error.call(this,a+" cannot be used with intent "+lEc[b]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};Y(bsa,Error);var mEc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var pEc=function(a){var b=Ou("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||ra.$googDebugFname||b}catch(g){e="Not available",c=!0}b=nEc(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,oEc[c])c=oEc[c];else{c=String(c);if(!oEc[c]){var f=/function\s+([^\(]+)/m.exec(c);oEc[c]=f?f[1]:"[Anonymous]"}c=oEc[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}},nEc=function(a,b){b||(b={});b[qEc(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[qEc(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=nEc(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[qEc(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+=nEc(a[e],
b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},qEc=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack},oEc={};var kA=function(){this.label=Og.required.apply(Og,q([]));this.linkUrl=Og.required.apply(Og,q([]));this.iconUrl=Og.apply(null,q([]));this.tooltip=Og.apply(null,q([]));this.showRemoveButton=Og.apply(null,q([]));this.removeContextSource=Ng()};kA.prototype.openLink=function(){var a=this.linkUrl();a&&oi(window,Sqa(a.startsWith("http://")||a.startsWith("https://")?a:"http://"+a),"_blank")};kA.\u0275fac=function(a){return new (a||kA)};
kA.\u0275cmp=D({type:kA,selectors:[["link-chip"]],inputs:{label:[1,"label"],linkUrl:[1,"linkUrl"],iconUrl:[1,"iconUrl"],tooltip:[1,"tooltip"],showRemoveButton:[1,"showRemoveButton"]},outputs:{removeContextSource:"removeContextSource"},features:[Gg([{provide:jEc,useValue:{showDelay:300,hideDelay:100,touchendHideDelay:100}}])],decls:7,vars:6,consts:[[1,"link-chip"],[1,"link-chip-button",3,"click","matTooltip"],[1,"flex-row","align-items-center"],["alt","Icon for chip",1,"padded-xs-left","link-chip-icon",
3,"src"],[1,"type-s","padded-xs","link-chip-label"],["mat-icon-button","",1,"link-chip-remove-button"],["mat-icon-button","",1,"link-chip-remove-button",3,"click"],[1,"link-chip-remove-icon"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){return b.openLink()}),K(2,"div",2),F(3,hsa,1,1,"img",3),K(4,"span",4),Q(5),L()()(),F(6,isa,3,0,"button",5),L());a&2&&(wg("link-chip-with-remove-button",b.showRemoveButton()),B(),I("matTooltip",b.tooltip()),B(2),G(b.iconUrl()?3:-1),
B(2),yg(b.label()),B(),G(b.showRemoveButton()?6:-1))},dependencies:[Yx,jA,iA,Fy,Dy],styles:['.link-chip[_ngcontent-%COMP%]{background-color:var(--page-bg);border:1px solid var(--hairline);border-radius:calc(var(--base-px, 1rem)*28);height:calc(var(--base-px, 1rem)*28);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:0}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:0;padding:0 calc(var(--base-px, 1rem)*2);border:none;background-color:transparent;border-radius:calc(var(--base-px, 1rem)*28)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]   .link-chip-label[_ngcontent-%COMP%]{font-size:1em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:Google Sans;font-weight:500}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]   .link-chip-icon[_ngcontent-%COMP%]{width:16px;height:16px}.link-chip.link-chip-with-remove-button[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]{border-radius:calc(var(--base-px, 1rem)*28) 0 0 calc(var(--base-px, 1rem)*28)}.link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]{background-color:transparent;color:var(--icon);border:none;height:calc(var(--base-px, 1rem)*28);width:calc(var(--base-px, 1rem)*28);padding:0;margin:0;border-radius:0 calc(var(--base-px, 1rem)*28) calc(var(--base-px, 1rem)*28) 0}.link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]   .link-chip-remove-icon[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);width:calc(var(--base-px, 1rem)*20)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%], .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]{position:relative}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]:hover, .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]:hover{background-color:var(--hover)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]:after, .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:calc(var(--base-px, 1rem)*-10) 0}'],
changeDetection:0});var lA=function(){};lA.\u0275fac=function(a){return new (a||lA)};lA.\u0275prov=Fc({token:lA,factory:lA.\u0275fac,providedIn:"root"});var rEc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},tEc=function(a){if(!a)return sEc||(sEc=new rEc(0,0));if(!/^\d+$/.test(a))return null;sca(a);return new rEc(nb,ob)},sEc,uEc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},wEc=function(a){if(!a)return vEc||(vEc=new uEc(0,0));if(!/^-?\d+$/.test(a))return null;sca(a);return new uEc(nb,ob)},vEc;var mA=function(){this.buffer_=[]};mA.prototype.length=function(){return this.buffer_.length};mA.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};mA.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)};mA.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var xEc=function(a,b){for(;b>127;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},yEc=function(a,b){if(b>=0)xEc(a,b);else{for(var c=0;c<9;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};h=mA.prototype;h.writeUint32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};h.writeUint64=function(a){lca(a);this.writeUint32(nb);this.writeUint32(ob)};
h.writeInt32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};h.writeInt64=function(a){qb(a);this.writeSplitFixed64(nb,ob)};h.writeDouble=function(a){var b=iyc||(iyc=new DataView(new ArrayBuffer(8)));b.setFloat64(0,+a,!0);nb=b.getUint32(0,!0);ob=b.getUint32(4,!0);this.writeUint32(nb);this.writeUint32(ob)};h.writeBool=function(a){this.buffer_.push(a?1:0)};h.writeEnum=function(a){yEc(this,a)};
h.writeBytes=function(a){for(;a.length>8192;)Array.prototype.push.apply(this.buffer_,a.subarray(0,8192)),a=a.subarray(8192);Array.prototype.push.apply(this.buffer_,a)};var $sa=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new mA},si=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},msa=function(a,b){nA(a,b,2);b=a.encoder_.end();si(a,b);b.push(a.totalLength_);return b},nsa=function(a,b){var c=b.pop();for(c=a.totalLength_+a.encoder_.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++},ata=function(a){si(a,a.encoder_.end());for(var b=new Uint8Array(a.totalLength_),c=a.blocks_,d=c.length,e=0,
f=0;f<d;f++){var g=c[f];b.set(g,e);e+=g.length}a.blocks_=[b];return b},nA=function(a,b,c){xEc(a.encoder_,b*8+c)};h=$sa.prototype;h.writeInt32=function(a,b){b!=null&&b!=null&&(nA(this,a,0),yEc(this.encoder_,b))};
h.writeInt64=function(a,b){if(b!=null){switch(typeof b){case "string":wEc(b)}if(b!=null)switch(nA(this,a,0),typeof b){case "number":a=this.encoder_;qb(b);a.writeSplitVarint64(nb,ob);break;case "bigint":b=BigInt.asUintN(64,b);b=new uEc(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));this.encoder_.writeSplitVarint64(b.lo,b.hi);break;default:b=wEc(b),this.encoder_.writeSplitVarint64(b.lo,b.hi)}}};h.writeUint32=function(){};h.writeUint64=function(){};
h.writeDouble=function(a,b){b!=null&&(nA(this,a,1),this.encoder_.writeDouble(b))};h.writeBool=function(a,b){b!=null&&(nA(this,a,0),this.encoder_.writeBool(b))};h.writeEnum=function(a,b){b!=null&&(b=parseInt(b,10),nA(this,a,0),yEc(this.encoder_,b))};h.writeBytes=function(a,b){b!=null&&Rsa(this,a,Sda(b,!0).buffer)};var Rsa=function(a,b,c){nA(a,b,2);xEc(a.encoder_,c.length);si(a,a.encoder_.end());si(a,c)};$sa.prototype.writeSplitFixed64=function(a,b){nA(this,a,1);this.encoder_.writeSplitFixed64(b)};
$sa.prototype.writeSplitVarint64=function(a,b){nA(this,a,0);this.encoder_.writeSplitVarint64(b)};var jsa=qi(),zEc=qi(),AEc=qi(),BEc=qi(),CEc=qi(),DEc=qi();var ri=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=ac(jsa);this.$$isMsg=!!a&&c===a||!1},rsa=ksa(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;uyc(a,xyc(b,d,c),e);return!0},osa),tsa=ksa(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;uyc(a,xyc(b,d,c),e);return!0},osa),Gsa=Symbol(),wsa=Symbol(),zsa=Symbol(),Lsa=Symbol(),Dsa=Symbol(),psa,qsa;var EEc=ti(Vsa,function(a,b,c){if(b!=null){if(b instanceof W){var d=b.serializeBinaryFnForAnyProto_;d?a.writeBytes(c,d(b)):ub(Osa,3);return}if(Array.isArray(b)){ub(Osa,3);return}}Usa(a,b,c)},DEc),FEc=ti(function(a,b,c,d){if(a.nextWireType_!==1)return!1;var e=a.decoder_;a=yw(e);var f=yw(e);e=(f>>31)*2+1;var g=f>>>20&2047;a=4294967296*(f&1048575)+a;Cw(b,c,d,g==2047?a?NaN:e*Infinity:g==0?e*4.9E-324*a:e*Math.pow(2,g-1075)*(a+4503599627370496));return!0},function(a,b,c){a.writeDouble(c,xb(b))},qi()),GEc=
ti(function(a,b,c){if(pxc)return a.nextWireType_!==0?a=!1:(ui(b,c,pyc(a.decoder_,qca)),a=!0),a;if(a.nextWireType_!==0)return!1;ui(b,c,pyc(a.decoder_,oca));return!0},Psa,CEc),HEc=ti(function(a,b,c,d){if(pxc)return a.nextWireType_!==0?a=!1:(Cw(b,c,d,pyc(a.decoder_,qca)),a=!0),a;if(a.nextWireType_!==0)return!1;Cw(b,c,d,pyc(a.decoder_,oca));return!0},Psa,CEc),oA=ti(function(a,b,c){if(a.nextWireType_!==0)return!1;ui(b,c,xw(a.decoder_));return!0},function(a,b,c){a.writeInt32(c,Fb(b))},BEc),IEc;
IEc=new ri(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;b=dea(b,b[Ta]|0,c);if(a.nextWireType_==2)for(c=xw(a.decoder_)>>>0,c=a.decoder_.getCursor()+c;a.decoder_.getCursor()<c;)b.push(xw(a.decoder_));else b.push(xw(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 g=Fb(b[e]);g!=null&&(b[f++]=g)}f<e&&(b.length=f);e=(d|5)&-1537;e!==d&&Va(b,e);e&2&&Object.freeze(b)}}else b=void 0;if(b!=null)for(d=0;d<b.length;d++)e=
a,f=c,g=b[d],g!=null&&(nA(e,f,0),yEc(e.encoder_,g))},BEc);
var JEc=ti(function(a,b,c){if(pxc){if(a.nextWireType_!==1)b=!1;else{var d=a.decoder_;a=yw(d);d=yw(d);ui(b,c,mb(Xa()?BigInt.asUintN(64,(BigInt(d>>>0)<<BigInt(32))+BigInt(a>>>0)):rb(a,d)));b=!0}return b}if(a.nextWireType_!==1)return!1;d=a.decoder_;a=yw(d);d=yw(d);ui(b,c,rb(a,d));return!0},function(a,b,c){b=Qca(b);if(b!=null){switch(typeof b){case "string":tEc(b)}nA(a,c,1);switch(typeof b){case "number":a.encoder_.writeUint64(b);break;case "bigint":c=BigInt.asUintN(64,b);c=new rEc(Number(c&BigInt(4294967295)),
Number(c>>BigInt(32)));a.encoder_.writeSplitFixed64(c.lo,c.hi);break;default:c=tEc(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)}}},qi()),KEc=ti(function(a,b,c){if(a.nextWireType_!==5)return!1;ui(b,c,yw(a.decoder_));return!0},function(a,b,c){b=Bca(b);b!=null&&(nA(a,c,5),a.encoder_.writeUint32(b))},qi()),pA=ti(function(a,b,c){if(a.nextWireType_!==0)return!1;ui(b,c,qyc(a.decoder_));return!0},Qsa,zEc),LEc=ti(function(a,b,c,d){if(a.nextWireType_!==0)return!1;Cw(b,c,d,qyc(a.decoder_));return!0},Qsa,zEc),
MEc=ti(function(a,b,c){if(a.nextWireType_!==2)return!1;a=vyc(a);ui(b,c,a===""?void 0:a);return!0},Ssa,AEc),qA=ti(function(a,b,c){if(a.nextWireType_!==2)return!1;ui(b,c,vyc(a));return!0},Ssa,AEc),NEc=ti(function(a,b,c,d){if(a.nextWireType_!==2)return!1;Cw(b,c,d,vyc(a));return!0},Ssa,AEc),OEc,PEc=void 0;PEc=PEc===void 0?jsa:PEc;
OEc=new ri(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;d=Oda(void 0,d);dea(b,b[Ta]|0,c).push(d);uyc(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Tsa(a,b[f],c,d,e);a=b[Ta]|0;a&1||Va(b,a|1)}},PEc);
var QEc=ksa(function(a,b,c,d,e,f){if(a.nextWireType_!==2)return!1;var g=b[Ta]|0;hea(b,g,f,c,kb(g));b=xyc(b,d,c);uyc(a,b,e);return!0},Tsa),REc=ti(function(a,b,c){if(a.nextWireType_!==2)return!1;ui(b,c,a.readByteString());return!0},Usa,DEc),SEc=ti(function(a,b,c,d){if(a.nextWireType_!==2)return!1;Cw(b,c,d,a.readByteString());return!0},Usa,DEc),TEc=ti(function(a,b,c){if(a.nextWireType_!==0)return!1;ui(b,c,xw(a.decoder_));return!0},function(a,b,c){a.writeEnum(c,Fb(b))},qi());var rA=function(a,b,c){this.fieldIndex=a;this.ctor=c;this.isRepeated=0;this.getExtensionFn=X;this.setExtensionFn=Ni;this.defaultValue=void 0;this.hasMessageId=b.messageId!=null?jb:void 0};rA.prototype.register=function(){uxc(this)};var sA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sA,W);sA.prototype.getValuesList=function(a){return Ci(this,tA,1,Di(a))};sA.prototype.setValuesList=function(a){return Oi(this,1,a)};sA.prototype.setValues=function(a,b){zw(this,1,tA,a,b)};var tA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tA,W);h=tA.prototype;h.getValueCase=function(){return xo(this,uA)};h.getName=function(){return vi(this,1)};
h.setName=function(a){return pj(this,1,a)};h.hasName=function(){return im(this,1)};h.getNameOrUndefined=function(){return Lw(this,1)};h.getDescription=function(){return vi(this,2)};h.setDescription=function(a){return pj(this,2,a)};h.hasDescription=function(){return im(this,2)};h.getStringValue=function(){return zo(this,4,uA)};h.setStringValue=function(a){return Co(this,4,uA,a)};h.hasStringValue=function(){return mr(this,4,uA)!=null};var uA=[3,4];var VEc=[0,OEc,function(){return UEc}],UEc=[0,uA,qA,-1,QEc,function(){return VEc},NEc];var WEc=bta(VEc);var vA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vA,W);vA.prototype.addPreamble=function(a){Cq(this,6,a)};var wA=function(){this.overrideOptions=new vA;this.overrideParentUrl="";this.isDarkMode$=new Nj(!1);this.overrideAppProvidedContext=new sA;this.overrideIsFirstTurnFromMoma=!0;this.overrideOnboardingExamplesList$=new Nj(void 0);this.debugDisplayOptions$=new Nj({showResponseMetadata:!1});this.overrideDisclaimer=this.overrideAgentMessageDisplayName=void 0};h=wA.prototype;h.getModelOverrideOptions=function(){return this.overrideOptions};
h.setAppProvidedContext=function(a){this.overrideAppProvidedContext=a};h.getAppProvidedContext=function(){return this.overrideAppProvidedContext};h.addPreamble=function(a){this.overrideOptions.addPreamble(a)};h.getDisallowRestrictedContent=function(){return!1};h.setOnboardingExamplesList=function(a){this.overrideOnboardingExamplesList$.next(a)};wA.\u0275fac=function(a){return new (a||wA)};wA.\u0275prov=Fc({token:wA,factory:wA.\u0275fac,providedIn:"root"});var XEc={ONBOARDING:1,THREAD:2,1:"ONBOARDING",2:"THREAD"},xA=function(){this.state$=new Nj({params:{},queryParams:{},activeView:1});this.events$=new sf;this.activeView$=this.state$.pipe(A(function(a){return a.activeView}),pf())},YEc=function(a){return a.filter(function(b){return typeof b==="string"}).join("")};xA.\u0275fac=function(a){return new (a||xA)};xA.\u0275prov=Fc({token:xA,factory:xA.\u0275fac,providedIn:"root"});var ZEc=new fd("Location",{factory:function(){var a;return Object.assign({},window.location,{ancestorOrigins:(a=window.location.ancestorOrigins)!=null?a:[]})},providedIn:"root"}),$Ec=new fd("Referrer",{factory:function(){return window.document.referrer},providedIn:"root"}),aFc=/^https?:\/\/[^\s,]+$/,bFc=/^go\/([^\s()<>]+)/,cFc=/^https:\/\/moma.corp.google.com.*/,dFc=new fd("DUCKIE_CLIENT",{providedIn:"root",factory:function(){return 1}});var yA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yA,W);var zA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zA,W);zA.prototype.getKindCase=function(){return xo(this,AA)};zA.prototype.getStringValue=function(){return zo(this,3,AA)};zA.prototype.setStringValue=function(a){return Co(this,3,AA,a)};zA.prototype.hasStringValue=function(){return mr(this,3,AA)!=null};
var BA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BA,W);BA.prototype.getValuesList=function(a){return Ci(this,zA,1,Di(a))};BA.prototype.setValuesList=function(a){return Oi(this,1,a)};BA.prototype.setValues=function(a,b){zw(this,1,zA,a,b)};var AA=[1,2,3,4,5,6];var CA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CA,W);h=CA.prototype;h.getAgentId=function(){return vi(this,1)};h.setAgentId=function(a){return pj(this,1,a)};h.hasAgentId=function(){return im(this,1)};h.getModelId=function(){return vi(this,2)};h.setModelId=function(a){return pj(this,2,a)};h.setSystemInstruction=function(a){pj(this,3,a)};var Ti=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ti,W);h=Ti.prototype;h.getSeconds=function(){return pn(this,1)};h.getSeconds_asString=function(){return un(this,1)};h.setSeconds=function(a){return Ko(this,1,a)};h.getNanos=function(){return Cm(this,2)};h.setNanos=function(a){return an(this,2,a)};h.toDate=function(){var a=Number(this.getSeconds_asString()),b=this.getNanos();return new Date(a*1E3+b/1E6)};
h.fromMillis=function(a){Number.isFinite(a)||(a=0);return this.setSeconds(Math.floor(a/1E3)).setNanos((a%1E3+1E3)%1E3*1E6)};var lTa=function(a){return(new Ti).fromMillis(a.getTime())};var eFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eFc,W);h=eFc.prototype;h.getName=function(){return vi(this,1)};h.setName=function(a){return pj(this,1,a)};h.hasName=function(){return im(this,1)};h.getNameOrUndefined=function(){return Lw(this,1)};h.getArgs=function(){return X(this,yA,2)};h.getId=function(){return vi(this,3)};h.setId=function(a){return pj(this,3,a)};var fFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fFc,W);h=fFc.prototype;h.getDataCase=function(){return xo(this,DA)};h.clearData=function(){return Bw(this,DA)};h.getText=function(){return zo(this,2,DA)};h.setText=function(a){return Co(this,2,DA,a)};h.hasText=function(){return mr(this,2,DA)!=null};h.getFunctionCall=function(){return $l(this,eFc,3,DA)};h.hasFunctionCall=function(){return Ri(this,eFc,3,DA)};h.getThought=function(){return Gi(this,5)};
var DA=[2,3,4];var EA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EA,W);h=EA.prototype;h.getPartsList=function(){return Ci(this,fFc,1,Di())};h.addParts=function(a){return Pp(this,1,fFc,a)};h.getRole=function(){return xi(this,2)};h.setRole=function(a){return Hn(this,2,a)};h.getAuthor=function(){return vi(this,3)};h.setAuthor=function(a){pj(this,3,a)};h.hasAuthor=function(){return im(this,3)};h.getMetadata=function(){return X(this,yA,4)};
h.getMutableMetadata=function(){return Ji(this,yA,4)};h.setMetadata=function(a){Ni(this,yA,4,a)};h.hasMetadata=function(){return yi(this,yA,4)};var gFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gFc,W);h=gFc.prototype;h.getAgentId=function(){return vi(this,1)};h.setAgentId=function(a){return pj(this,1,a)};h.hasAgentId=function(){return im(this,1)};h.getAgentVersion=function(){return vi(this,2)};h.setAgentVersion=function(a){pj(this,2,a)};h.hasAgentVersion=function(){return im(this,2)};var Ei=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ei,W);var hFc=function(a,b){return Oi(a,9,b)};var FA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FA,W);h=FA.prototype;h.getFeedbackId=function(){return vi(this,1)};h.setFeedbackId=function(a){return pj(this,1,a)};h.getFeedbackType=function(){return xi(this,2)};h.setFeedbackType=function(a){return Hn(this,2,a)};h.hasFeedbackType=function(){return jm(this,2)};h.getFeedbackReason=function(){return vi(this,3)};h.setFeedbackReason=function(a){return pj(this,3,a)};h.hasFeedbackReason=function(){return im(this,3)};
h.getFeedbackLabelsList=function(){return Dm(this,4,Di())};h.setFeedbackLabelsList=function(a){return Hm(this,4,a)};h.addAllFeedbackLabels=function(a){Ac(this,4,Sb,a,Tb)};h.getCreationTimestamp=function(){return X(this,Ti,5)};h.setCreationTimestamp=function(a){return Ni(this,Ti,5,a)};h.getIsDeleted=function(){return Gi(this,6)};h.setIsDeleted=function(a){Pi(this,6,a)};h.getMessageId=function(){return vi(this,7)};h.setMessageId=function(a){return pj(this,7,a)};
h.hasMessageId=function(){return im(this,7)};h.getSessionId=function(){return vi(this,8)};h.setSessionId=function(a){return pj(this,8,a)};h.hasSessionId=function(){return im(this,8)};h.getHelpfulness=function(){return xi(this,9)};h.setHelpfulness=function(a){return Hn(this,9,a)};var GA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(GA,W);GA.prototype.getPrompt=function(){return vi(this,1)};GA.prototype.getLabel=function(){return vi(this,2)};GA.prototype.setLabel=function(a){return pj(this,2,a)};GA.prototype.hasLabel=function(){return im(this,2)};var ULa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ULa,W);h=ULa.prototype;h.getStartTime=function(){return X(this,Ti,1)};h.setStartTime=function(a){Ni(this,Ti,1,a)};h.getEndTime=function(){return X(this,Ti,2)};h.setEndTime=function(a){Ni(this,Ti,2,a)};h.hasEndTime=function(){return yi(this,Ti,2)};h.getValue=function(){return em(this,3)};h.setValue=function(a){return Sw(this,3,a)};h.hasValue=function(){return fm(this,3,void 0,void 0,xb)!=null};var TLa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TLa,W);var VLa=[1];var iFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iFc,W);iFc.prototype.getLabel=function(){return vi(this,1)};iFc.prototype.setLabel=function(a){return pj(this,1,a)};iFc.prototype.hasLabel=function(){return im(this,1)};var jFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jFc,W);jFc.prototype.getTitle=function(){return vi(this,1)};jFc.prototype.setTitle=function(a){return pj(this,1,a)};var jta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jta,W);jta.prototype.getButton=function(){return $l(this,GA,1,kFc)};jta.prototype.getChart=function(){return $l(this,jFc,6,kFc)};var kFc=[1,2,3,4,5,6];var MOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MOa,W);h=MOa.prototype;h.getTitle=function(){return vi(this,1)};h.setTitle=function(a){return pj(this,1,a)};h.getUrl=function(){return vi(this,2)};h.setUrl=function(a){return pj(this,2,a)};h.hasUrl=function(){return im(this,2)};var lFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lFc,W);var mFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mFc,W);h=mFc.prototype;h.getTitle=function(){return vi(this,1)};h.setTitle=function(a){return pj(this,1,a)};h.getUrl=function(){return vi(this,2)};h.setUrl=function(a){return pj(this,2,a)};h.hasUrl=function(){return im(this,2)};h.getIconUrl=function(){return vi(this,3)};h.setIconUrl=function(a){return pj(this,3,a)};h.getLastModificationTime=function(){return X(this,Ti,4)};
h.getIsPrivateDocument=function(){return Gi(this,7)};h.setIsPrivateDocument=function(a){return Pi(this,7,a)};var LVa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LVa,W);var lm=function(a){return Ci(a,mFc,1,Di())};var nFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nFc,W);nFc.prototype.setReferrerUrl=function(a){return pj(this,2,a)};var ota=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ota,W);ota.prototype.setReferrerUrl=function(a){return pj(this,1,a)};var pta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pta,W);h=pta.prototype;h.getUrl=function(){return vi(this,1)};h.setUrl=function(a){return pj(this,1,a)};h.hasUrl=function(){return im(this,1)};h.getTitle=function(){return vi(this,2)};h.setTitle=function(a){return pj(this,2,a)};h.getTagsList=function(a){return Dm(this,3,Di(a))};h.getTags=function(a){return Nw(this,3,a)};var Bi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bi,W);var km=function(a){return $l(a,LVa,6,Si)},Si=[3,4,5,6,7];var oFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oFc,W);var pFc=[0,GEc,KEc,-1];var BOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BOa,W);var EOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EOa,W);var GOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(GOa,W);var HA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HA,W);var hm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hm,W);var E1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E1a,W);E1a.prototype.getValue=function(){return pn(this,1)};E1a.prototype.setValue=function(a){return Ko(this,1,a)};var Sq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sq,W);h=Sq.prototype;h.getTypeName=function(){return vi(this,1).split("/").pop()};h.pack=function(a,b,c){c=c===void 0?"type.googleapis.com/":c;c.substr(-1)!=="/"&&(c+="/");Gm(this,1,c+b);return Po(this,2,a)};h.getValue=function(){var a=fm(this,2);if(Array.isArray(a)||a instanceof W)throw Error("ab");return Tn(this,2)};
h.setValue=function(a){if(a==null)a=this;else if(Array.isArray(a))a=Kr(this,2,Cda(a,0,cc));else if(typeof a==="string"||a instanceof Za||Pa(a))a=Po(this,2,a);else throw Error("fa`"+a);return a};h.unpack=function(a,b){return Ysa(this,void 0,a,b)};var Rq=function(a,b,c){return Ysa(a,b,void 0,c)};var $m=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($m,W);h=$m.prototype;h.getYear=function(){return Cm(this,1)};h.setYear=function(a){return an(this,1,a)};h.getMonth=function(){return Cm(this,2)};h.setMonth=function(a){return an(this,2,a)};h.getDay=function(){return Cm(this,3)};var Dq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dq,W);var D1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D1a,W);D1a.prototype.getValue=function(){return Cm(this,1)};D1a.prototype.setValue=function(a){return an(this,1,a)};var G1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G1a,W);G1a.prototype.getValue=function(){return Gi(this,1)};G1a.prototype.setValue=function(a){return $o(this,1,a)};var dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dn,W);h=dn.prototype;h.getSeconds=function(){return pn(this,1)};h.getSeconds_asString=function(){return un(this,1)};h.setSeconds=function(a){return Ko(this,1,a)};h.getNanos=function(){return Cm(this,2)};h.setNanos=function(a){return an(this,2,a)};h.fromMillis=function(a){if(!Number.isFinite(a))throw Error();var b=Math.trunc(a);a=(a-b+b%1E3)*1E6;return this.setSeconds(Math.trunc(b/1E3)).setNanos(Math.trunc(a))};var rr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rr,W);h=rr.prototype;h.getHours=function(){return Cm(this,1)};h.setHours=function(a){return an(this,1,a)};h.getMinutes=function(){return Cm(this,2)};h.setMinutes=function(a){return an(this,2,a)};h.getSeconds=function(){return Cm(this,3)};h.setSeconds=function(a){return an(this,3,a)};h.getNanos=function(){return Cm(this,4)};h.setNanos=function(a){return an(this,4,a)};var TTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TTa,W);var F1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F1a,W);F1a.prototype.getValue=function(){return vi(this,1)};F1a.prototype.setValue=function(a){return Gm(this,1,a)};var pOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pOa,W);var qFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qFc,W);qFc.prototype.getAltText=function(){return Dl(this,2)};qFc.prototype.setAltText=function(a){return pj(this,2,a)};var gm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gm,W);gm.prototype.getIcon=function(){return X(this,qFc,3)};gm.prototype.setIcon=function(a){return Ni(this,qFc,3,a)};gm.prototype.getLastModificationTime=function(){return X(this,Ti,4)};var uOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uOa,W);var rFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rFc,W);h=rFc.prototype;h.getCode=function(){return Cm(this,1)};h.setCode=function(a){return Fn(this,1,a)};h.getCodeOrUndefined=function(){return Kw(this,1)};h.getMessage=function(){return vi(this,3)};h.setMessage=function(a){return pj(this,3,a)};var IOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IOa,W);var WOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,59)};Y(WOa,W);h=WOa.prototype;h.getGoogleSearchQuery=function(){return vi(this,1)};h.hasGoogleSearchQuery=function(){return im(this,1)};h.getTimestamp=function(){return X(this,Ti,18)};h.setTimestamp=function(a){return Ni(this,Ti,18,a)};h.hasTimestamp=function(){return yi(this,Ti,18)};var sFc=[0,pFc,GEc];var tFc=[0,MEc,EEc];var VOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VOa,W);var UOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UOa,W);var XOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XOa,W);XOa.prototype.getGoogleSearchQuery=function(){return em(this,14)};XOa.prototype.hasGoogleSearchQuery=function(){return fm(this,14,void 0,void 0,xb)!=null};var hta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hta,W);h=hta.prototype;h.getModelId=function(){return vi(this,1)};h.setModelId=function(a){return pj(this,1,a)};h.getModelOverrideOptions=function(){return X(this,vA,6)};h.setModelOverrideOptions=function(a){Ni(this,vA,6,a)};h.getCreationTimestamp=function(){return X(this,Ti,9)};h.setCreationTimestamp=function(a){return Ni(this,Ti,9,a)};h.getConversationAgentModelId=function(){return vi(this,13)};
h.setConversationAgentModelId=function(a){pj(this,13,a)};h.hasConversationAgentModelId=function(){return im(this,13)};h.getConversationAgentId=function(){return vi(this,14)};h.setConversationAgentId=function(a){return pj(this,14,a)};h.hasConversationAgentId=function(){return im(this,14)};var zi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zi,W);var uFc=function(a,b){return pj(a,2,b)};h=zi.prototype;h.getSourceLinkList=function(){return Dm(this,3,Di())};h.setSourceLinkList=function(a){return Hm(this,3,a)};h.addAllSourceLink=function(a){Ac(this,3,Sb,a,Tb)};h.getCreationTimestamp=function(){return X(this,Ti,4)};h.setCreationTimestamp=function(a){return Ni(this,Ti,4,a)};var Ki=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ki,W);h=Ki.prototype;h.getType=function(){return xi(this,1)};h.setType=function(a){return Hn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getUrl=function(){return vi(this,2)};h.setUrl=function(a){return pj(this,2,a)};h.hasUrl=function(){return im(this,2)};var Qi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qi,W);Qi.prototype.getUrl=function(){return zo(this,1,Hi)};Qi.prototype.setUrl=function(a){return Co(this,1,Hi,a)};Qi.prototype.hasUrl=function(){return mr(this,1,Hi)!=null};var vFc=function(a){return $l(a,Ki,2,Hi)},mta=function(a,b){return Yo(a,2,Hi,b)},Hi=[1,2,3];var Mi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mi,W);h=Mi.prototype;h.getMessageId=function(){return vi(this,1)};h.setMessageId=function(a){return pj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return vi(this,2)};h.setSessionId=function(a){return pj(this,2,a)};h.hasSessionId=function(){return im(this,2)};h.getText=function(){return vi(this,3)};h.setText=function(a){return pj(this,3,a)};
h.hasText=function(){return im(this,3)};h.getUserProvidedContextList=function(){return Ci(this,Qi,24,Di())};h.setUserProvidedContextList=function(a){Oi(this,24,a)};h.addAllUserProvidedContext=function(a){Op(this,24,Qi,a)};h.getUserProvidedContextCount=function(){return Ai(this,Qi,24)};h.getAppProvidedContext=function(){return X(this,sA,23)};h.setAppProvidedContext=function(a){Ni(this,sA,23,a)};h.hasAppProvidedContext=function(){return yi(this,sA,23)};h.getModelId=function(){return vi(this,4)};
h.setModelId=function(a){return pj(this,4,a)};var kta=function(a,b){return Hn(a,5,b)};h=Mi.prototype;h.getCreationTimestamp=function(){return X(this,Ti,6)};h.setCreationTimestamp=function(a){return Ni(this,Ti,6,a)};h.getClient=function(){return xi(this,7)};h.setClient=function(a){return Hn(this,7,a)};h.hasClient=function(){return jm(this,7)};h.getFeedback=function(){return X(this,FA,9)};h.setFeedback=function(a){return Ni(this,FA,9,a)};h.hasFeedback=function(){return yi(this,FA,9)};
var lta=function(a,b){Pi(a,20,b)};var IA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IA,W);h=IA.prototype;h.getPrivacyMode=function(){return xi(this,1)};h.setPrivacyMode=function(a){return Hn(this,1,a)};h.hasPrivacyMode=function(){return jm(this,1)};h.getMessagesList=function(){return Ci(this,Mi,2,Di())};h.setMessagesList=function(a){return Oi(this,2,a)};var fta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fta,W);h=fta.prototype;h.getSessionId=function(){return vi(this,1)};h.setSessionId=function(a){return pj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getText=function(){return vi(this,2)};h.setText=function(a){return pj(this,2,a)};h.hasText=function(){return im(this,2)};h.getDisallowRestrictedContent=function(){return Gi(this,3)};h.setDisallowRestrictedContent=function(a){return Pi(this,3,a)};
h.hasDisallowRestrictedContent=function(){return Fi(this,3)};h.getConversationHistory=function(){return X(this,IA,4)};h.setConversationHistory=function(a){return Ni(this,IA,4,a)};h.hasConversationHistory=function(){return yi(this,IA,4)};h.getDuckieClient=function(){return xi(this,5)};h.setDuckieClient=function(a){return Hn(this,5,a)};h.getUserProvidedContextList=function(){return Ci(this,Qi,6,Di())};h.setUserProvidedContextList=function(a){Oi(this,6,a)};
h.addAllUserProvidedContext=function(a){Op(this,6,Qi,a)};h.getUserProvidedContextCount=function(){return Ai(this,Qi,6)};h.getAppProvidedContext=function(){return X(this,sA,7)};h.setAppProvidedContext=function(a){Ni(this,sA,7,a)};h.hasAppProvidedContext=function(){return yi(this,sA,7)};h.getConversationAgent=function(){return X(this,CA,8)};h.setConversationAgent=function(a){return Ni(this,CA,8,a)};h.hasConversationAgent=function(){return yi(this,CA,8)};var wFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wFc,W);h=wFc.prototype;h.getSessionId=function(){return vi(this,1)};h.setSessionId=function(a){return pj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getMessagesList=function(){return Ci(this,Mi,2,Di())};h.setMessagesList=function(a){return Oi(this,2,a)};h.getConversationAgentModelId=function(){return vi(this,13)};h.setConversationAgentModelId=function(a){pj(this,13,a)};
h.hasConversationAgentModelId=function(){return im(this,13)};h.getConversationAgentId=function(){return vi(this,14)};h.setConversationAgentId=function(a){return pj(this,14,a)};h.hasConversationAgentId=function(){return im(this,14)};h.getModelId=function(){return vi(this,3)};h.setModelId=function(a){return pj(this,3,a)};h.getAgentId=function(){return vi(this,10)};h.setAgentId=function(a){return pj(this,10,a)};h.hasAgentId=function(){return im(this,10)};h.getAgentVersion=function(){return vi(this,11)};
h.setAgentVersion=function(a){pj(this,11,a)};h.hasAgentVersion=function(){return im(this,11)};h.getTitle=function(){return vi(this,5)};h.setTitle=function(a){return pj(this,5,a)};h.getSessionState=function(){return xi(this,6)};h.setSessionState=function(a){return Hn(this,6,a)};h.hasSessionState=function(){return jm(this,6)};h.getPrivacyMode=function(){return xi(this,9)};h.setPrivacyMode=function(a){return Hn(this,9,a)};h.hasPrivacyMode=function(){return jm(this,9)};
h.getCreationTimestamp=function(){return X(this,Ti,7)};h.setCreationTimestamp=function(a){return Ni(this,Ti,7,a)};h.getUserProvidedContextList=function(){return Ci(this,Qi,12,Di())};h.setUserProvidedContextList=function(a){Oi(this,12,a)};h.addAllUserProvidedContext=function(a){Op(this,12,Qi,a)};h.getUserProvidedContextCount=function(){return Ai(this,Qi,12)};h.getHelpfulness=function(){return xi(this,15)};h.setHelpfulness=function(a){return Hn(this,15,a)};var xFc=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 yFc=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 JA=function(){this._isDisposed=!1;this._elementRef=p(Jd);this._focusTrapFactory=p(Py);this._interactivityChecker=p(Ky);this._ngZone=p(Rg);this._focusMonitor=p(Hy);this._renderer=p(di);this._changeDetectorRef=p(ux);this._injector=p(Ae);this._platform=p(Wh);this._document=p(Sh);this._focusTrapped=new sf;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=this._focusTrap=null;this._ariaLabelledByQueue=[];this._isDestroyed=!1;this._config=p(yFc,{optional:!0})||new yFc;this._config.ariaLabelledBy&&
this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};Y(JA,Jz);h=JA.prototype;h._addAriaLabelledBy=function(a){this._ariaLabelledByQueue.push(a);this._changeDetectorRef.markForCheck()};h._removeAriaLabelledBy=function(a){a=this._ariaLabelledByQueue.indexOf(a);a>-1&&(this._ariaLabelledByQueue.splice(a,1),this._changeDetectorRef.markForCheck())};h._contentAttached=function(){this._initializeFocusTrap();this._captureInitialFocus()};h._captureInitialFocus=function(){this._trapFocus()};
h.ngOnDestroy=function(){this._focusTrapped.complete();this._isDestroyed=!0;this._restoreFocus()};h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};h._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
h._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};h._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
h._trapFocus=function(a){var b=this;this._isDestroyed||Ge(function(){var c=b._elementRef.nativeElement;switch(b._config.autoFocus){case !1:case "dialog":b._containsFocus()||c.focus(a);break;case !0:case "first-tabbable":var d;((d=b._focusTrap)==null?0:d.focusInitialElement(a))||b._focusDialogContainer(a);break;case "first-heading":b._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',a);break;default:b._focusByCssSelector(b._config.autoFocus,a)}b._focusTrapped.next()},{injector:this._injector})};
h._restoreFocus=function(){var a=this._config.restoreFocus,b=null;typeof a==="string"?b=this._document.querySelector(a):typeof a==="boolean"?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&typeof b.focus==="function"){a=Jh();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(Iy(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
h._focusDialogContainer=function(a){var b,c;(c=(b=this._elementRef.nativeElement).focus)==null||c.call(b,a)};h._containsFocus=function(){var a=this._elementRef.nativeElement,b=Jh();return a===b||a.contains(b)};h._initializeFocusTrap=function(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Jh()))};JA.\u0275fac=function(a){return new (a||JA)};
JA.\u0275cmp=D({type:JA,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&hg(Lz,7);if(a&2){var c;lg(c=mg())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&Kf("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:[Gf],
decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&E(0,uta,0,0,"ng-template",0)},dependencies:[Lz],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var zFc=new fd("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Jra(a)}}}),AFc=new fd("DialogData"),BFc=new fd("DefaultDialogConfig");var CFc=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new sf;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||Gh(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){if(!c.disableClose&&c._canClose())c.close(void 0,{focusOrigin:"mouse"});
else{var d,e;(e=(d=c.containerInstance)._recaptureFocus)==null||e.call(d)}});this._detachSubscription=a._detachments.subscribe(function(){b.closeOnOverlayDetachments!==!1&&c.close()})};h=CFc.prototype;h.close=function(a,b){if(this._canClose(a)){var c=this.closed;this.containerInstance._closeInteractionType=(b==null?void 0:b.focusOrigin)||"program";this._detachSubscription.unsubscribe();this.overlayRef.dispose();c.next(a);c.complete();this.componentInstance=this.containerInstance=null}};
h.updatePosition=function(){this.overlayRef.updatePosition()};h.updateSize=function(a,b){this.overlayRef.updateSize({width:a===void 0?"":a,height:b===void 0?"":b})};h.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};h.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};h._canClose=function(a){var b=this.config;return!!this.containerInstance&&(!b.closePredicate||b.closePredicate(a,b,this.componentInstance))};var KA=function(){this._injector=p(Ae);this._defaultOptions=p(BFc,{optional:!0});this._parentDialog=p(KA,{optional:!0,skipSelf:!0});this._overlayContainer=p(Xh);this._idGenerator=p(bi);this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new sf;this._afterOpenedAtThisLevel=new sf;this._ariaHiddenElements=new Map;this._scrollStrategy=p(zFc)};h=KA.prototype;
h.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new yFc,b);b.id=b.id||this._idGenerator.getId("cdk-dialog-");b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=li(this._injector,d);var e=new CFc(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;if(!this.openDialogs.length){var f=Qra(this._overlayContainer);d._focusTrapped?d._focusTrapped.pipe(nf(1)).subscribe(function(){c._hideNonDialogContentFromAssistiveTechnology(f)}):this._hideNonDialogContentFromAssistiveTechnology(f)}this._attachDialogContent(a,
e,d,b);this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);return e};h.closeAll=function(){wta(this.openDialogs,function(a){return a.close()})};h.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
h.ngOnDestroy=function(){var a=this;wta(this._openDialogsAtThisLevel,function(b){b.config.closeOnDestroy===!1&&a._removeOpenDialog(b,!1)});wta(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
h._getOverlayConfig=function(a){var b=new ei({positionStrategy:a.positionStrategy||DDc(Dz(new Cz)),scrollStrategy:a.scrollStrategy||this._scrollStrategy(),panelClass:a.panelClass,hasBackdrop:a.hasBackdrop,direction:a.direction,minWidth:a.minWidth,minHeight:a.minHeight,maxWidth:a.maxWidth,maxHeight:a.maxHeight,width:a.width,height:a.height,disposeOnNavigation:a.closeOnNavigation,disableAnimations:a.disableAnimations});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
h._attachContainer=function(a,b,c){var d,e=c.injector||((d=c.viewContainerRef)==null?void 0:d.injector);b=[{provide:yFc,useValue:c},{provide:CFc,useValue:b},{provide:fi,useValue:a}];c.container?typeof c.container==="function"?d=c.container:(d=c.container.type,b.push.apply(b,q(c.container.providers(c)))):d=JA;c=new Hz(d,c.viewContainerRef,Yg({parent:e||this._injector,providers:b}));return a.attach(c).instance};
h._attachDialogContent=function(a,b,c,d){if(a instanceof eg){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 Iz(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new Hz(a,d.viewContainerRef,e)),b.componentRef=a,b.componentInstance=a.instance};
h._createInjector=function(a,b,c,d){var e,f=a.injector||((e=a.viewContainerRef)==null?void 0:e.injector);e=[{provide:AFc,useValue:a.data},{provide:CFc,useValue:b}];a.providers&&(typeof a.providers==="function"?e.push.apply(e,q(a.providers(b,a,c))):e.push.apply(e,q(a.providers)));!a.direction||f&&f.get(ci,null,{optional:!0})||e.push({provide:ci,useValue:vta(a.direction)});return Yg({parent:f||d,providers:e})};
h._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
h._hideNonDialogContentFromAssistiveTechnology=function(a){if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;c>-1;c--){var d=b[c];d===a||d.nodeName==="SCRIPT"||d.nodeName==="STYLE"||d.hasAttribute("aria-live")||d.hasAttribute("popover")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
da.Object.defineProperties(KA.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}}});KA.\u0275fac=function(a){return new (a||KA)};KA.\u0275prov=Fc({token:KA,factory:KA.\u0275fac,providedIn:"root"});var LA=function(){};LA.\u0275fac=function(a){return new (a||LA)};LA.\u0275mod=cf({type:LA});LA.\u0275inj=Hc({providers:[KA],imports:[Qz,Mz,Zy,Mz]});var MA=function(){JA.apply(this,arguments);var a=this;this._animationStateChanged=new Ui;this._animationsEnabled=!ni();this._actionSectionCount=0;this._hostElement=this._elementRef.nativeElement;var b;this._enterAnimationDuration=this._animationsEnabled?(b=yta(this._config.enterAnimationDuration))!=null?b:150:0;var c;this._exitAnimationDuration=this._animationsEnabled?(c=yta(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(MA,JA);h=MA.prototype;h._contentAttached=function(){JA.prototype._contentAttached.call(this);this._startOpenAnimation()};
h._startOpenAnimation=function(){var a=this;this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration});this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._enterAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--opening","mdc-dialog--open")}),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add("mdc-dialog--open"),
Promise.resolve().then(function(){return a._finishDialogOpen()}))};
h._startExitAnimation=function(){var a=this;this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration});this._hostElement.classList.remove("mdc-dialog--open");this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._exitAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--closing")}),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):
Promise.resolve().then(function(){return a._finishDialogClose()})};h._updateActionSectionCount=function(a){this._actionSectionCount+=a;this._changeDetectorRef.markForCheck()};h._clearAnimationClasses=function(){this._hostElement.classList.remove("mdc-dialog--opening","mdc-dialog--closing")};h._waitForAnimationToComplete=function(a,b){this._animationTimer!==null&&clearTimeout(this._animationTimer);this._animationTimer=setTimeout(b,a)};
h._requestAnimationFrame=function(a){this._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame==="function"?requestAnimationFrame(a):a()})};h._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};h._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};h.ngOnDestroy=function(){JA.prototype.ngOnDestroy.call(this);this._animationTimer!==null&&clearTimeout(this._animationTimer)};
h.attachComponentPortal=function(a){a=JA.prototype.attachComponentPortal.call(this,a);a.location.nativeElement.classList.add("mat-mdc-dialog-component-host");return a};MA.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(MA)))(b||MA)}}();
MA.\u0275cmp=D({type:MA,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,b){a&2&&(Qf("id",b._config.id),Kf("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null),wg("_mat-animation-noopable",!b._animationsEnabled)("mat-mdc-dialog-container-with-actions",
b._actionSectionCount>0))},features:[Gf],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(a){a&1&&(K(0,"div",0)(1,"div",1),E(2,xta,0,0,"ng-template",2),L()())},dependencies:[Lz],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 NA=function(a,b,c){var d=this;this._ref=a;this._config=b;this._containerInstance=c;this._afterOpened=new wf(1);this._beforeClosed=new wf(1);this._state=0;this.disableClose=b.disableClose;this.id=a.id;a.addPanelClass("mat-mdc-dialog-panel");c._animationStateChanged.pipe(we(function(e){return e.state==="opened"}),nf(1)).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(we(function(e){return e.state==="closed"}),nf(1)).subscribe(function(){clearTimeout(d._closeFallbackTimeout);
d._finishDialogClose()});a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});ve(this.backdropClick(),this.keydownEvents().pipe(we(function(e){return e.keyCode===27&&!d.disableClose&&!Gh(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType=e.type==="keydown"?"keyboard":"mouse",d.close(void 0))})};
NA.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(we(function(d){return d.state==="closing"}),nf(1)).subscribe(function(d){b._beforeClosed.next(a);b._beforeClosed.complete();sDc(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},d.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()};
NA.prototype.afterOpened=function(){return this._afterOpened};var OA=function(a){return a._ref.closed};h=NA.prototype;h.backdropClick=function(){return this._ref.backdropClick};h.keydownEvents=function(){return this._ref.keydownEvents};h.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):Dz(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):DDc(b);this._ref.updatePosition()};
h.updateSize=function(a,b){this._ref.updateSize(a===void 0?"":a,b===void 0?"":b)};h.addPanelClass=function(a){this._ref.addPanelClass(a)};h.removePanelClass=function(a){this._ref.removePanelClass(a)};h.getState=function(){return this._state};h._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};var PA=new fd("MatMdcDialogData"),DFc=new fd("mat-mdc-dialog-default-options"),EFc=new fd("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Jra(a)}}}),QA=function(){this._defaultOptions=p(DFc,{optional:!0});this._scrollStrategy=p(EFc);this._parentDialog=p(QA,{optional:!0,skipSelf:!0});this._idGenerator=p(bi);this._injector=p(Ae);this._dialog=p(KA);this._animationsDisabled=ni();this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new sf;this._afterOpenedAtThisLevel=new sf;this.dialogConfigClass=xFc;this._dialogRefConstructor=NA;this._dialogContainerType=MA;this._dialogDataToken=PA};h=QA.prototype;h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
h.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new xFc,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:DDc(Dz(new Cz)),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:yFc,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(g,k,l){d=new c._dialogRefConstructor(g,b,l);var r;d.updatePosition((r=b)==null?void 0:r.position);return[{provide:c._dialogContainerType,useValue:l},{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);OA(d).subscribe(function(){var g=c.openDialogs.indexOf(d);g>-1&&(c.openDialogs.splice(g,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};h.closeAll=function(){this._closeDialogs(this.openDialogs)};h.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
h.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};h._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
da.Object.defineProperties(QA.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}}});QA.\u0275fac=function(a){return new (a||QA)};QA.\u0275prov=Fc({token:QA,factory:QA.\u0275fac,providedIn:"root"});var RA=function(){this.dialogRef=p(NA,{optional:!0});this._elementRef=p(Jd);this._dialog=p(QA);this.type="button"};RA.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=zta(this._elementRef,this._dialog.openDialogs))};RA.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};
RA.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=a.screenX===0&&a.screenY===0?"keyboard":"mouse";b.close(c)};RA.\u0275fac=function(a){return new (a||RA)};
RA.\u0275dir=df({type:RA,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(c){return b._onButtonClick(c)});a&2&&Kf("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:[bx]});
var SA=function(){this._dialogRef=p(NA,{optional:!0});this._elementRef=p(Jd);this._dialog=p(QA)};SA.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=zta(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){a._onAdd()})};SA.prototype.ngOnDestroy=function(){var a=this,b;((b=this._dialogRef)==null?0:b._containerInstance)&&Promise.resolve().then(function(){a._onRemove()})};SA.\u0275fac=function(a){return new (a||SA)};SA.\u0275dir=df({type:SA});
var TA=function(){SA.apply(this,arguments);this.id=p(bi).getId("mat-mdc-dialog-title-")};Y(TA,SA);TA.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._addAriaLabelledBy)==null||b.call(a,this.id)};TA.prototype._onRemove=function(){var a,b,c;(a=this._dialogRef)==null||(b=a._containerInstance)==null||(c=b._removeAriaLabelledBy)==null||c.call(b,this.id)};TA.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TA)))(b||TA)}}();
TA.\u0275dir=df({type:TA,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(a,b){a&2&&Qf("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Gf]});var UA=function(){};UA.\u0275fac=function(a){return new (a||UA)};
UA.\u0275dir=df({type:UA,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,q(a.map(Qla))):c.hostDirectives.unshift(a)};b.ngInherit=!0;return b}([qz])]});var VA=function(){SA.apply(this,arguments)};
Y(VA,SA);VA.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,1)};VA.prototype._onRemove=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,-1)};VA.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VA)))(b||VA)}}();
VA.\u0275dir=df({type:VA,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(a,b){a&2&&wg("mat-mdc-dialog-actions-align-start",b.align==="start")("mat-mdc-dialog-actions-align-center",b.align==="center")("mat-mdc-dialog-actions-align-end",b.align==="end")},inputs:{align:"align"},features:[Gf]});var WA=function(){};WA.\u0275fac=function(a){return new (a||WA)};WA.\u0275mod=cf({type:WA});WA.\u0275inj=Hc({providers:[QA],imports:[LA,Qz,Mz,Ey]});var FFc=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],GFc=function(){};GFc.\u0275fac=function(a){return new (a||GFc)};GFc.\u0275dir=df({type:GFc,selectors:[["xap-dialog-layout-subtitle"]]});var XA=function(){this.el=p(Jd);this.cdRef=p(ux);this.ngZone=p(Rg);this.destroyed=new wf;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
XA.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){HFc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});IFc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};XA.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var HFc=function(a){if(!window.ResizeObserver)return ee(JFc(a.el.nativeElement));var b;return Xha(function(c){b=new ResizeObserver(function(){c(JFc(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(pf(),Bf(a.destroyed))},IFc=function(a){return re(a.el.nativeElement,"scroll").pipe(tta(),A(function(){return a.getScrollPosition(a.el.nativeElement)}),pf(),Bf(a.destroyed))},JFc=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
XA.prototype.getScrollPosition=function(a){return a.scrollTop===0?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};da.Object.defineProperties(XA.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});XA.\u0275fac=function(a){return new (a||XA)};
XA.\u0275dir=df({type:XA,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&wg("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke",b.scrollPosition!=="bottom")("xap-dialog-layout-top-scroll-stroke",b.scrollPosition!=="top")}});var YA=function(){};YA.\u0275fac=function(a){return new (a||YA)};
YA.\u0275cmp=D({type:YA,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&ig(c,GFc,4);if(a&2){var d;lg(d=mg())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&wg("xap-dialog-layout-bordered-header",b.subtitle)},ngContentSelectors:["xap-dialog-layout-title","xap-dialog-layout-subtitle","xap-dialog-layout-content","xap-dialog-layout-actions"],decls:5,vars:0,consts:[[1,"xap-dialog-header-container"]],template:function(a){a&1&&(cg(FFc),
Rf(0,"header",0),dg(1),dg(2,1),Sf(),dg(3,2),dg(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 Ml=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._originalOnDoneFns=[];this._originalOnStartFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(a===void 0?0:a)+(b===void 0?0:b)};h=Ml.prototype;h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
h.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};h.hasStarted=function(){return this._started};h.init=function(){};h.play=function(){this.hasStarted()||(this._onStart(),KFc(this));this._started=!0};var KFc=function(a){queueMicrotask(function(){return a._onFinish()})};h=Ml.prototype;h._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};h.pause=function(){};h.restart=function(){};
h.finish=function(){this._onFinish()};h.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};h.reset=function(){this._finished=this._started=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};h.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};
h.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};h.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var AHa=function(a){var b=this;this._onDoneFns=[];this._onStartFns=[];this._destroyed=this._started=this._finished=!1;this._onDestroyFns=[];this.parentPlayer=null;this.totalTime=0;this.players=a;var c=0,d=0,e=0,f=this.players.length;f==0?queueMicrotask(function(){return b._onFinish()}):this.players.forEach(function(g){g.onDone(function(){++c==f&&b._onFinish()});g.onDestroy(function(){++d==f&&b._onDestroy()});g.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(g,
k){return Math.max(g,k.totalTime)},0)};h=AHa.prototype;h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.init=function(){this.players.forEach(function(a){return a.init()})};h.onStart=function(a){this._onStartFns.push(a)};h._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};h.onDone=function(a){this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};
h.hasStarted=function(){return this._started};h.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};h.pause=function(){this.players.forEach(function(a){return a.pause()})};h.restart=function(){this.players.forEach(function(a){return a.restart()})};h.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};h.destroy=function(){this._onDestroy()};
h._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(a){return a.destroy()}),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};h.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};h.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
h.getPosition=function(){var a=this.players.reduce(function(b,c){return b===null||c.totalTime>b.totalTime?c:b},null);return a!=null?a.getPosition():0};h.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};h.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var LFc=Wi({opacity:0}),MFc=Wi({opacity:1}),NFc=Ata("dialogContainer",[Yi("void, hidden",LFc),Yi("visible",MFc),Zi("void => *, * => visible",Vi("200ms cubic-bezier(0.0,0.0,0.2,1)",MFc)),Zi("* => void, * => hidden",Vi("200ms cubic-bezier(0.4,0.0,0.2,1)",LFc))]);var OFc=new fd("XAP_IDCO"),ZA=function(){Jz.apply(this,arguments);this.portalOutlet=Pg.required(Lz);this.animationState="hidden";this.options=p(OFc);this.changeDetector=p(ux)};Y(ZA,Jz);ZA.prototype.ngAfterViewInit=function(){};ZA.prototype.attachComponentPortal=function(a){return this.portalOutlet().attachComponentPortal(a)};ZA.prototype.attachTemplatePortal=function(a){return this.portalOutlet().attachTemplatePortal(a)};var PFc=function(a,b){a.animationState=b?"visible":"hidden";a.changeDetector.markForCheck()};
ZA.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ZA)))(b||ZA)}}();
ZA.\u0275cmp=D({type:ZA,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&og(b.portalOutlet,Lz);a&2&&pg()},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(Uma("@dialogContainer",b.animationState),Kf("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex))},features:[Gf],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(K(0,"div"),
E(1,Bta,1,0,"ng-template",0),L())},dependencies:[Zy,Mz,Lz],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:[NFc]},changeDetection:0});var QFc=[{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}],RFc={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},$A=function(){var a=this;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=RFc;this.triggerDescription=
"Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new Ui;this.opened=new Ui;this.closed=new Ui;this.destroyed=new wf;this.openStatusChange=new Nj(!1);this.openings=this.openStatusChange.pipe(we(function(b){return b&&!a.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;this.ngZone=p(Rg);this.overlay=p(Nz);this.elementRef=p(Jd);this.viewContainerRef=p(fg);this.document=p(Sh);this.focusTrapFactory=
p(ez);this.ariaDescriber=p($y);this.injector=p(Ae);SFc(this,this.elementRef.nativeElement);this.attachKeyboardCloseEventListeners(this.elementRef.nativeElement);TFc(this,this.elementRef.nativeElement)};$A.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||az(this.ariaDescriber,a,this.triggerDescription)};
$A.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var SFc=function(a,b){a.ngZone.runOutsideAngular(function(){re(b,"keydown").pipe(Bf(a.destroyed)).subscribe(function(c){switch(c.key){case "Enter":a.openDialog();c.preventDefault();break;case " ":c.preventDefault()}});re(b,"keyup").pipe(Bf(a.destroyed)).subscribe(function(c){switch(c.key){case " ":a.openDialog()}})})},TFc=function(a,b){a.ngZone.runOutsideAngular(function(){re(b,"focus").pipe(we(function(){return a.beforeOpened.observers.length>0}),Bf(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
h=$A.prototype;
h.openDialog=function(){var a=this;if(!this.disabled){var b;if((b=this.overlayRef)==null||!b.hasAttached()){var c=this.portal;c!=null&&(this.stackManager&&(this.stackLocation=this.stackManager.register()),this.ngZone.run(function(){a.dialogContainerRef=UFc(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);PFc(a.dialogContainerRef.instance,!0);a.opened.observers.length&&setTimeout(function(){a.opened.emit()},
200)}))}}};h.closeDialog=function(){var a=this,b;(b=this.overlayRef)==null||!b.hasAttached()||this.stackManager&&!this.stackManager.tryUnregister(this.stackLocation)||(PFc(this.dialogContainerRef.instance,!1),setTimeout(function(){a.ngZone.run(function(){a.overlayRef&&a.overlayRef.detach();a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0);a.restoreFocus();a.dialogContainerRef&&(a.dialogContainerRef.destroy(),a.dialogContainerRef=void 0);a.closed.emit()})},200))};
h.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;if(this.forceTrapFocus||b&&b===c)this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),Ny(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};h.focusInitialElement=function(){this.focusTrap&&JCc(this.focusTrap).then(function(){})};
h.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&typeof a.focus==="function"){var b,c=(b=this.dialogContainerRef)==null?void 0:b.location.nativeElement;(b=this.document.activeElement)&&c!=null&&c.contains(b)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};h.createPositionStrategy=function(a){var b,c;return zz(Fz(this.overlay.position(),(b=this.attachedTo)!=null?b:this.elementRef),a).setOrigin((c=this.attachedTo)!=null?c:this.elementRef)};
var VFc=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()}},UFc=function(a){var b=Yg({parent:a.injector,providers:[{provide:OFc,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new Hz(ZA,null,b);a.overlayRef==null&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(QFc)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&
a.overlayPositions.length>0&&tDc(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
da.Object.defineProperties($A.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof eg?new Iz(a,this.viewContainerRef):new Hz(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=Mh(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}}}});$A.\u0275fac=function(a){return new (a||$A)};
$A.\u0275dir=df({type:$A,hostVars:1,hostBindings:function(a,b){a&2&&Kf("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 aB=function(){$A.call(this);this.hasBackdrop=Og.apply(null,[!0].concat(q([{alias:"xapInlineDialogClickHasBackdrop",transform:$g}])));this.renderer=p(di);this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(aB,$A);h=aB.prototype;h.ngOnInit=function(){$A.prototype.ngOnInit.call(this);this.listenForOpenEvents()};
h.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(Bf(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(we(function(b){return b&&a.beforeOpened.observers.length>0}),Ela(function(){return a.openStatusChange.pipe(we(function(b){return!b}))}))};
h.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){re(a,"mouseenter").pipe(Bf(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(new Vd(function(e){return b.renderer.listen(a,"click",function(f){return void e.next(f)})})).pipe(Bf(b.destroyed)).subscribe(function(e){e.target.closest("[xapInlineDialogClose]")?b.closingDialog():b.openingDialog()});var c;(c=b.overlayRef)==null||c.backdropClick().pipe(Bf(b.destroyed)).subscribe(function(){b.closingDialog()});
var d;(d=b.overlayRef)==null||d.outsidePointerEvents().pipe(Bf(b.destroyed)).subscribe(function(){b.hasBackdrop()||b.closingDialog()})})};
h.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){re(a,"keyup").pipe(Bf(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Escape":b.closingDialog();break;case " ":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}});re(a,"keydown").pipe(Bf(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Enter":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}})})};h.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};
h.closingDialog=function(){this.openStatusChange.next(!1)};h.createOverlayConfig=function(a){return new ei(Object.assign({},this.overlayDimensions,{positionStrategy:$A.prototype.createPositionStrategy.call(this,a),scrollStrategy:VFc(this),hasBackdrop:this.hasBackdrop(),backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};aB.\u0275fac=function(a){return new (a||aB)};
aB.\u0275dir=df({type:aB,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:[0,"xapInlineDialogClick","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hasBackdrop:[1,"xapInlineDialogClickHasBackdrop","hasBackdrop"]},exportAs:["xapInlineDialogClick"],features:[Gf]});var WFc=new fd("GM2_BUTTON_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var XFc=new fd("MAT_BUTTON_CONFIG"),bB=function(){this._elementRef=p(Jd);this._ngZone=p(Rg);this._animationsDisabled=ni();this._config=p(XFc,{optional:!0});this._focusMonitor=p(Hy);this._renderer=p(di);this._rippleLoader=p(gA);this._disabled=this._disableRipple=this._isFab=!1;p($h).load(Yz);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||gEc(f,a,{className:"mat-mdc-button-ripple"})};h=bB.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0);this._isAnchor&&this._setupAsAnchor()};h.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);var b;(b=this._rippleLoader)==null||fEc(b,this._elementRef.nativeElement)};
h.focus=function(a,b){(a=a===void 0?"program":a)?Iy(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};h._getAriaDisabled=function(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null};h._getDisabledAttribute=function(){return this.disabledInteractive||!this.disabled?null:!0};
h._updateRippleDisabled=function(){var a;(a=this._rippleLoader)==null||a.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)};h._getTabIndex=function(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex};h._setupAsAnchor=function(){var a=this;this._cleanupClick=this._ngZone.runOutsideAngular(function(){return a._renderer.listen(a._elementRef.nativeElement,"click",function(b){a.disabled&&(b.preventDefault(),b.stopImmediatePropagation())})})};
da.Object.defineProperties(bB.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}}});bB.\u0275fac=function(a){return new (a||bB)};
bB.\u0275dir=df({type:bB,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(a,b){a&2&&(Kf("disabled",b._getDisabledAttribute())("aria-disabled",b._getAriaDisabled())("tabindex",b._getTabIndex()),xg(b.color?"mat-"+b.color:""),wg("mat-mdc-button-disabled",b.disabled)("mat-mdc-button-disabled-interactive",b.disabledInteractive)("mat-unthemed",!b.color)("_mat-animation-noopable",b._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",$g],disabled:[2,
"disabled","disabled",$g],ariaDisabled:[2,"aria-disabled","ariaDisabled",$g],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g],tabIndex:[2,"tabIndex","tabIndex",Cta],_tabindex:[2,"tabindex","_tabindex",Cta]}});var YFc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],ZFc=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"]]]),cB=function(){bB.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)&&$Fc(this,a)};Y(cB,bB);cB.\u0275dir=bB.\u0275dir;
var $Fc=function(a,b){if(b!==a._appearance){var c=a._elementRef.nativeElement.classList,d=a._appearance?ZFc.get(a._appearance):null,e=ZFc.get(b);d&&c.remove.apply(c,q(d));c.add.apply(c,q(e));a._appearance=b}};da.Object.defineProperties(cB.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b;$Fc(this,a||((b=this._config)==null?void 0:b.defaultAppearance)||"text")}}});cB.\u0275fac=function(a){return new (a||cB)};
cB.\u0275cmp=D({type:cB,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:[Gf],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&&(cg(YFc),Tf(0,"span",0),dg(1),Rf(2,"span",1),dg(3,1),Sf(),dg(4,2),Tf(5,"span",2)(6,"span",3));a&2&&wg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}@media(hover: none){.mat-mdc-button-base:hover>span.mat-mdc-button-persistent-ripple::before{opacity:0}}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}@media(hover: hover){.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var aGc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],cGc=new fd("mat-mdc-fab-default-options",{providedIn:"root",factory:function(){return bGc}}),bGc={color:"accent"},dB=function(){bB.call(this);this._options=p(cGc,{optional:!0});this._isFab=!0;this._options=this._options||bGc;this.color=
this._options.color||bGc.color};Y(dB,bB);dB.\u0275dir=bB.\u0275dir;dB.\u0275fac=function(a){return new (a||dB)};
dB.\u0275cmp=D({type:dB,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(a,b){a&2&&wg("mdc-fab--extended",b.extended)("mat-mdc-extended-fab",b.extended)},inputs:{extended:[2,"extended","extended",$g]},exportAs:["matButton","matAnchor"],features:[Gf],attrs:["mat-fab",""],ngContentSelectors:[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])",
"*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(cg(aGc),Tf(0,"span",0),dg(1),Rf(2,"span",1),dg(3,1),Sf(),dg(4,2),Tf(5,"span",2)(6,"span",3));a&2&&wg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}@media(hover: hover){.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],
encapsulation:2,changeDetection:0});var eB=function(){bB.call(this);gEc(this._rippleLoader,this._elementRef.nativeElement,{centered:!0})};Y(eB,bB);eB.\u0275dir=bB.\u0275dir;eB.\u0275fac=function(a){return new (a||eB)};
eB.\u0275cmp=D({type:eB,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:[Gf],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&&(cg(),Tf(0,"span",0),
dg(1),Tf(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var fB=function(){};fB.\u0275fac=function(a){return new (a||fB)};fB.\u0275mod=cf({type:fB});fB.\u0275inj=Hc({imports:[dA,Ey]});var gB=function(a,b){this.elementRef=a;this.options=b;if(b.disableGmatStyle)throw Error("db");};gB.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.querySelector(".mat-icon, .material-icons")&&a.classList.add("gmat-mdc-button-with-prefix")};gB.\u0275fac=function(a){return new (a||gB)(Ye(Jd),Ye(WFc))};
gB.\u0275dir=df({type:gB,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 hB=function(a,b){this.options=a;this.button=b;this.appearance="outline";this.loweredInternal=!1;if(a.disableGmatStyle)throw Error("db");};hB.prototype.ngOnInit=function(){};da.Object.defineProperties(hB.prototype,{lowered:{configurable:!0,enumerable:!0,get:function(){return this.loweredInternal},set:function(a){this.loweredInternal=Mh(a)}}});hB.\u0275fac=function(a){return new (a||hB)(Ye(WFc),Ye(dB,10))};
hB.\u0275dir=df({type:hB,selectors:[["button","matFab",""],["a","matFab",""],["button","mat-fab",""],["a","mat-fab",""],["button","matMiniFab",""],["a","matMiniFab",""],["button","mat-mini-fab",""],["a","mat-mini-fab",""]],hostAttrs:[1,"gmat-mdc-button"],hostVars:8,hostBindings:function(a,b){a&2&&wg("gmat-mdc-fab-fill",b.appearance=="fill")("gmat-mdc-fab-outline",b.appearance=="outline")("gmat-mdc-fab-branded",b.appearance=="branded")("gmat-mdc-fab-lowered",b.lowered)},inputs:{appearance:"appearance",
lowered:"lowered"},standalone:!1});var iB=function(){};iB.\u0275fac=function(a){return new (a||iB)};iB.\u0275mod=cf({type:iB});iB.\u0275inj=Hc({providers:[{provide:cGc,useValue:{color:"primary"}}],imports:[fB]});var jB=new fd("MatSnackBarData"),dGc=function(){this.politeness="polite";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var eGc=function(){};eGc.\u0275fac=function(a){return new (a||eGc)};eGc.\u0275dir=df({type:eGc,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});var fGc=function(){};fGc.\u0275fac=function(a){return new (a||fGc)};fGc.\u0275dir=df({type:fGc,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});var gGc=function(){};gGc.\u0275fac=function(a){return new (a||gGc)};
gGc.\u0275dir=df({type:gGc,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});var kB=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new sf;this._afterOpened=new sf;this._onAction=new sf;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};h=kB.prototype;h.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
h.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};h._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};h._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
h._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};h.afterDismissed=function(){return this._afterDismissed};h.afterOpened=function(){return this.containerInstance._onEnter};h.onAction=function(){return this._onAction};var lB=function(){this.snackBarRef=p(kB);this.data=p(jB)};lB.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(lB.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});lB.\u0275fac=function(a){return new (a||lB)};
lB.\u0275cmp=D({type:lB,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),Q(1),L(),F(2,Dta,3,1,"div",1));a&2&&(B(),S(" ",b.data.message,"\n"),B(),G(b.hasAction?2:-1))},dependencies:[cB,eGc,fGc,gGc],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],
encapsulation:2,changeDetection:0});var hGc=["label"],mB=function(){this._isDisposed=!1;this._ngZone=p(Rg);this._elementRef=p(Jd);this._changeDetectorRef=p(ux);this._platform=p(Wh);this._animationsDisabled=ni();this.snackBarConfig=p(dGc);this._document=p(Sh);this._trackedModals=new Set;this._injector=p(Ae);this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new sf;this._onExit=new sf;this._onEnter=new sf;this._animationState="void";this._liveElementId=p(bi).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(mB,Jz);h=mB.prototype;h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
h.onAnimationEnd=function(a){var b=this;a==="_mat-snack-bar-exit"?this._completeExit():a==="_mat-snack-bar-enter"&&(clearTimeout(this._enterFallback),this._ngZone.run(function(){b._onEnter.next();b._onEnter.complete()}))};
h.enter=function(){var a=this;this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Ge(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-enter")})})},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible");
a.onAnimationEnd("_mat-snack-bar-enter")},200)))};
h.exit=function(){var a=this;if(this._destroyed)return ee(void 0);this._ngZone.run(function(){a._animationState="hidden";a._changeDetectorRef.markForCheck();a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId);a._animationsDisabled?Ge(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-exit")})})},{injector:a._injector}):(clearTimeout(a._exitFallback),a._exitFallback=setTimeout(function(){return a.onAnimationEnd("_mat-snack-bar-exit")},
200))});return this._onExit};h.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};h._completeExit=function(){var a=this;clearTimeout(this._exitFallback);queueMicrotask(function(){a._onExit.next();a._onExit.complete()})};
h._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals();b=this._label.nativeElement;b.classList.toggle("mdc-snackbar__label",!b.querySelector(".mdc-snackbar__label"))};
h._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
h._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};h._assertNotAttached=function(){};
h._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){if(!a._destroyed){var b=a._elementRef.nativeElement,c=b.querySelector("[aria-hidden]");b=b.querySelector("[aria-live]");if(c&&b){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&c.contains(document.activeElement)&&(d=document.activeElement);c.removeAttribute("aria-hidden");b.appendChild(c);var e;(e=d)==null||e.focus();
a._onAnnounce.next();a._onAnnounce.complete()}}},a._announceDelay)})};mB.\u0275fac=function(a){return new (a||mB)};
mB.\u0275cmp=D({type:mB,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,b){a&1&&(hg(Lz,7),hg(hGc,7));if(a&2){var c;lg(c=mg())&&(b._portalOutlet=c.first);lg(c=mg())&&(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&&wg("mat-snack-bar-container-enter",b._animationState===
"visible")("mat-snack-bar-container-exit",b._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!b._animationsDisabled)},features:[Gf],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2,0)(3,"div",3),E(4,Eta,0,0,"ng-template",4),L(),M(5,"div"),L()());a&2&&(B(5),Kf("aria-live",b._live)("role",b._role)("id",b._liveElementId))},
dependencies:[Lz],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 iGc=new fd("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new dGc}}),nB=function(){this._live=p(Yy);this._injector=p(Ae);this._breakpointObserver=p(Sy);this._parentSnackBar=p(nB,{optional:!0,skipSelf:!0});this._defaultConfig=p(iGc);this._animationsDisabled=ni();this._snackBarRefAtThisLevel=null;this.simpleSnackBarComponent=lB;this.snackBarContainerComponent=mB;this.handsetCssClass="mat-mdc-snack-bar-handset"};h=nB.prototype;
h.openFromComponent=function(a,b){return this._attach(a,b)};h.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};
h._attachSnackBarContainer=function(a,b){var c=Yg({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:dGc,useValue:b}]});a=a.attach(new Hz(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new dGc,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new kB(b,e);if(a instanceof eg)f.instance=b.attachTemplatePortal(new Iz(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new Hz(a,void 0,g));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Bf(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
h._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter()};
h._createOverlay=function(a){var b=new ei;b.direction=a.direction;var c=new Cz,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"):Dz(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;b.disableAnimations=this._animationsDisabled;return li(this._injector,b)};
h._createInjector=function(a,b){return Yg({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:kB,useValue:b},{provide:jB,useValue:a.data}]})};da.Object.defineProperties(nB.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}}});
nB.\u0275fac=function(a){return new (a||nB)};nB.\u0275prov=Fc({token:nB,factory:nB.\u0275fac,providedIn:"root"});var oB=function(){};oB.\u0275fac=function(a){return new (a||oB)};oB.\u0275mod=cf({type:oB});oB.\u0275inj=Hc({providers:[nB],imports:[Qz,Mz,fB,lB,Ey]});var pB=function(){this.snackBarRef=p(kB);this.data=p(jB);this.message=this.data.message||"An error occurred. Please try again.";this.error=this.data.error.message};pB.prototype.dismiss=function(){this.snackBarRef.dismiss()};pB.\u0275fac=function(a){return new (a||pB)};
pB.\u0275cmp=D({type:pB,selectors:[["error-snackbar"]],decls:11,vars:2,consts:[["withActionsTemplate",""],[1,"duckie-error-snackbar"],["dialogLabel","Actions",3,"xapInlineDialogClick"],["mat-button","","color","primary"],["mat-icon-button","","color","secondary",1,"close-button",3,"click"],[1,"error-details"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"span");Q(2);L();K(3,"xap-text-trigger",2)(4,"button",3);Q(5,"Details");L()();K(6,"button",4);N("click",function(){u(c);return v(b.dismiss())});
K(7,"mat-icon");Q(8,"close");L()()();E(9,Fta,4,1,"ng-template",null,0,Mg)}a&2&&(a=qg(10),B(2),yg(b.message),B(),I("xapInlineDialogClick",a))},dependencies:[Yx,iB,gB,cB,eB,oB,aB,Dy,YA,XA],styles:[".duckie-error-snackbar[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.duckie-error-snackbar[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .duckie-error-snackbar[_ngcontent-%COMP%]   .gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button){color:var(--text-inverse)}.error-details[_ngcontent-%COMP%]{word-wrap:break-word}"],
changeDetection:0});var jGc=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};jGc.prototype.getMetadata=function(){return this.metadata};var kGc=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};kGc.prototype.getMetadata=function(){return this.metadata};kGc.prototype.getStatus=function(){return this.status};var qB=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},lGc=function(a,b,c){c=c===void 0?{}:c;return new jGc(b,a,c)};qB.prototype.getName=function(){return this.name};var rB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rB,W);rB.prototype.getSessionId=function(){return vi(this,1)};rB.prototype.setSessionId=function(a){return pj(this,1,a)};rB.prototype.hasSessionId=function(){return im(this,1)};var mGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mGc,W);var nGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",rB,mGc,function(a){return a.serialize()},wi(mGc));var sB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sB,W);h=sB.prototype;h.getSessionId=function(){return vi(this,1)};h.setSessionId=function(a){return pj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getModelId=function(){return vi(this,2)};h.setModelId=function(a){return pj(this,2,a)};h.getText=function(){return vi(this,3)};h.setText=function(a){return pj(this,3,a)};h.hasText=function(){return im(this,3)};
h.getDisallowRestrictedContent=function(){return Gi(this,13)};h.setDisallowRestrictedContent=function(a){return Pi(this,13,a)};h.hasDisallowRestrictedContent=function(){return Fi(this,13)};h.getConversationHistory=function(){return X(this,IA,11)};h.setConversationHistory=function(a){return Ni(this,IA,11,a)};h.hasConversationHistory=function(){return yi(this,IA,11)};h.getDuckieClient=function(){return xi(this,5)};h.setDuckieClient=function(a){return Hn(this,5,a)};
h.getModelOverrideOptions=function(){return X(this,vA,7)};h.setModelOverrideOptions=function(a){Ni(this,vA,7,a)};h.getUserProvidedContextList=function(){return Ci(this,Qi,14,Di())};h.setUserProvidedContextList=function(a){Oi(this,14,a)};h.addAllUserProvidedContext=function(a){Op(this,14,Qi,a)};h.getUserProvidedContextCount=function(){return Ai(this,Qi,14)};h.getAppProvidedContext=function(){return X(this,sA,16)};h.setAppProvidedContext=function(a){Ni(this,sA,16,a)};
h.hasAppProvidedContext=function(){return yi(this,sA,16)};h.getConversationAgent=function(){return X(this,CA,15)};h.setConversationAgent=function(a){return Ni(this,CA,15,a)};h.hasConversationAgent=function(){return yi(this,CA,15)};var oGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oGc,W);h=oGc.prototype;h.getResponse=function(){return X(this,Mi,1)};h.getMutableResponse=function(){return Ji(this,Mi,1)};h.hasResponse=function(){return yi(this,Mi,1)};h.getConversationHistory=function(){return X(this,IA,5)};h.setConversationHistory=function(a){return Ni(this,IA,5,a)};h.hasConversationHistory=function(){return yi(this,IA,5)};h.getQuery=function(){return X(this,Mi,2)};
h.setQuery=function(a){return Ni(this,Mi,2,a)};h.clearQuery=function(){Aw(this,2)};h.hasQuery=function(){return yi(this,Mi,2)};h.getUserProvidedContextList=function(){return Ci(this,Qi,6,Di())};h.setUserProvidedContextList=function(a){Oi(this,6,a)};h.addAllUserProvidedContext=function(a){Op(this,6,Qi,a)};h.getUserProvidedContextCount=function(){return Ai(this,Qi,6)};var pGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",sB,oGc,function(a){return a.serialize()},wi(oGc));var tB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tB,W);tB.prototype.getSessionId=function(){return vi(this,1)};tB.prototype.setSessionId=function(a){return pj(this,1,a)};tB.prototype.hasSessionId=function(){return im(this,1)};var qGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qGc,W);qGc.prototype.getSession=function(){return X(this,wFc,1)};var rGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",tB,qGc,function(a){return a.serialize()},wi(qGc));var sGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sGc,W);h=sGc.prototype;h.getAgentId=function(){return vi(this,3)};h.setAgentId=function(a){return pj(this,3,a)};h.hasAgentId=function(){return im(this,3)};h.getAgentVersion=function(){return vi(this,4)};h.setAgentVersion=function(a){pj(this,4,a)};h.hasAgentVersion=function(){return im(this,4)};h.getConversationAgentId=function(){return vi(this,5)};h.setConversationAgentId=function(a){return pj(this,5,a)};
h.hasConversationAgentId=function(){return im(this,5)};h.getConversationAgentModelId=function(){return vi(this,6)};h.setConversationAgentModelId=function(a){pj(this,6,a)};h.hasConversationAgentModelId=function(){return im(this,6)};var tGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tGc,W);h=tGc.prototype;h.getSessionId=function(){return vi(this,1)};h.setSessionId=function(a){return pj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getConversationAgentModelId=function(){return vi(this,11)};h.setConversationAgentModelId=function(a){pj(this,11,a)};h.hasConversationAgentModelId=function(){return im(this,11)};h.getConversationAgentId=function(){return vi(this,12)};
h.setConversationAgentId=function(a){return pj(this,12,a)};h.hasConversationAgentId=function(){return im(this,12)};h.getAgentId=function(){return vi(this,9)};h.setAgentId=function(a){return pj(this,9,a)};h.hasAgentId=function(){return im(this,9)};h.getAgentVersion=function(){return vi(this,10)};h.setAgentVersion=function(a){pj(this,10,a)};h.hasAgentVersion=function(){return im(this,10)};h.getTitle=function(){return vi(this,2)};h.setTitle=function(a){return pj(this,2,a)};
h.getClient=function(){return xi(this,3)};h.setClient=function(a){return Hn(this,3,a)};h.hasClient=function(){return jm(this,3)};h.getSessionState=function(){return xi(this,4)};h.setSessionState=function(a){return Hn(this,4,a)};h.hasSessionState=function(){return jm(this,4)};h.getPrivacyMode=function(){return xi(this,5)};h.setPrivacyMode=function(a){return Hn(this,5,a)};h.hasPrivacyMode=function(){return jm(this,5)};var uGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uGc,W);var vGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",sGc,uGc,function(a){return a.serialize()},wi(uGc));var wGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wGc,W);var xGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xGc,W);h=xGc.prototype;h.getClient=function(){return xi(this,1)};h.setClient=function(a){return Hn(this,1,a)};h.hasClient=function(){return jm(this,1)};h.getTimestamp=function(){return X(this,Ti,2)};h.setTimestamp=function(a){return Ni(this,Ti,2,a)};h.hasTimestamp=function(){return yi(this,Ti,2)};var uB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uB,W);uB.prototype.getDisallowRestrictedContent=function(){return Gi(this,4)};uB.prototype.setDisallowRestrictedContent=function(a){return Pi(this,4,a)};uB.prototype.hasDisallowRestrictedContent=function(){return Fi(this,4)};uB.prototype.getDuckieModelPreferences=function(a){return Ow(this,5,a)};var vB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vB,W);vB.prototype.getUserState=function(){return X(this,uB,1)};vB.prototype.setUserState=function(a){return Ni(this,uB,1,a)};var yGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",wGc,vB,function(a){return a.serialize()},wi(vB));var wB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wB,W);h=wB.prototype;h.getMessageId=function(){return vi(this,1)};h.setMessageId=function(a){return pj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return vi(this,2)};h.setSessionId=function(a){return pj(this,2,a)};h.hasSessionId=function(){return im(this,2)};h.getFeedbackType=function(){return xi(this,3)};h.setFeedbackType=function(a){return Hn(this,3,a)};
h.hasFeedbackType=function(){return jm(this,3)};h.getFeedbackLabelsList=function(){return Dm(this,4,Di())};h.setFeedbackLabelsList=function(a){return Hm(this,4,a)};h.addAllFeedbackLabels=function(a){Ac(this,4,Sb,a,Tb)};h.getFeedbackReason=function(){return vi(this,5)};h.setFeedbackReason=function(a){return pj(this,5,a)};h.hasFeedbackReason=function(){return im(this,5)};var zGc=function(a,b){return Hn(a,6,b)};var AGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AGc,W);AGc.prototype.getFeedbackId=function(){return vi(this,1)};AGc.prototype.setFeedbackId=function(a){return pj(this,1,a)};var BGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",wB,AGc,function(a){return a.serialize()},wi(AGc));var CGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(CGc,W);h=CGc.prototype;h.getMessageId=function(){return vi(this,1)};h.setMessageId=function(a){return pj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return vi(this,2)};h.setSessionId=function(a){return pj(this,2,a)};h.hasSessionId=function(){return im(this,2)};h.getText=function(){return vi(this,3)};h.setText=function(a){return pj(this,3,a)};
h.hasText=function(){return im(this,3)};h.getSourceLinkList=function(){return Dm(this,4,Di())};h.setSourceLinkList=function(a){return Hm(this,4,a)};h.addAllSourceLink=function(a){Ac(this,4,Sb,a,Tb)};var DGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DGc,W);var EGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",CGc,DGc,function(a){return a.serialize()},wi(DGc));var FGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FGc,W);h=FGc.prototype;h.getResponse=function(){return X(this,Mi,1)};h.getMutableResponse=function(){return Ji(this,Mi,1)};h.hasResponse=function(){return yi(this,Mi,1)};h.getConversationHistory=function(){return X(this,IA,2)};h.setConversationHistory=function(a){return Ni(this,IA,2,a)};h.hasConversationHistory=function(){return yi(this,IA,2)};h.getUserProvidedContextList=function(){return Ci(this,Qi,3,Di())};
h.setUserProvidedContextList=function(a){Oi(this,3,a)};h.addAllUserProvidedContext=function(a){Op(this,3,Qi,a)};h.getUserProvidedContextCount=function(){return Ai(this,Qi,3)};var GGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",fta,FGc,function(a){return a.serialize()},wi(FGc));var xB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xB,W);h=xB.prototype;h.getSessionId=function(){return vi(this,1)};h.setSessionId=function(a){return pj(this,1,a)};h.hasSessionId=function(){return im(this,1)};h.getTitle=function(){return vi(this,2)};h.setTitle=function(a){return pj(this,2,a)};h.getSessionState=function(){return xi(this,3)};h.setSessionState=function(a){return Hn(this,3,a)};h.hasSessionState=function(){return jm(this,3)};var HGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HGc,W);HGc.prototype.getSession=function(){return X(this,wFc,1)};var IGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",xB,HGc,function(a){return a.serialize()},wi(HGc));var yB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yB,W);yB.prototype.getUserState=function(){return X(this,uB,1)};yB.prototype.setUserState=function(a){return Ni(this,uB,1,a)};var JGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JGc,W);JGc.prototype.getUserState=function(){return X(this,uB,1)};JGc.prototype.setUserState=function(a){return Ni(this,uB,1,a)};var KGc=new qB("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",yB,JGc,function(a){return a.serialize()},wi(JGc));var LGc=new Set(["SAPISIDHASH","APISIDHASH"]);var zB=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(zB,Error);zB.prototype.toString=function(){var a="RpcError("+(Ita(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};var AB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AB,W);AB.prototype.getCode=function(){return Cm(this,1)};AB.prototype.setCode=function(a){return an(this,1,a)};AB.prototype.getMessage=function(){return vi(this,2)};AB.prototype.setMessage=function(a){return Gm(this,2,a)};var MGc=wi(AB);var NGc=[],OGc=[],PGc=!1,QGc=function(a){NGc[NGc.length]=a;if(PGc)for(var b=0;b<OGc.length;b++)a(nj(OGc[b].wrap,OGc[b]))};var BB=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};BB.prototype.disposed_=!1;BB.prototype.isDisposed=function(){return this.disposed_};BB.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};BB.prototype[Symbol.dispose]=function(){this.dispose()};var ut=function(a,b){b=pw($i,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};BB.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var CB=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};CB.prototype.stopPropagation=function(){this.propagationStopped_=!0};CB.prototype.preventDefault=function(){this.defaultPrevented=!0};var RGc=function(){if(!ra.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};ra.addEventListener("test",c,b);ra.removeEventListener("test",c,b)}catch(d){}return a}();var DB=function(a,b){CB.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)};rw(DB,CB);
DB.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=fj||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
fj||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=cv?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&&DB.superClass_.preventDefault.call(this)};DB.prototype.stopPropagation=function(){DB.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};DB.prototype.preventDefault=function(){DB.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var SGc="closure_listenable_"+(Math.random()*1E6|0),EB=function(a){return!(!a||!a[SGc])};var TGc=0;var UGc=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=++TGc;this.removed=this.callOnce=!1},VGc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};var Uta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");dj.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var g=WGc(a,b,d,e);g>-1?(b=a[g],c||(b.callOnce=!1)):(b=new UGc(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};dj.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=WGc(e,b,c,d);return b>-1?(VGc(e[b]),vba(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var XGc=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=La(a.listeners[c],b);d&&(VGc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};dj.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,VGc(d[e]);delete this.listeners[c];this.typeCount_--}return b};
dj.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=WGc(a,b,c,d));return e>-1?a[e]:null};dj.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Kta(this.listeners,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var WGc=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 YGc="closure_lm_"+(Math.random()*1E6|0),ZGc={},$Gc=0,mj=function(a,b,c,d,e){if(d&&d.once)return FB(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)mj(a,b[f],c,d,e);return null}c=aHc(c);return EB(a)?a.listen(b,c,Oa(d)?!!d.capture:!!d,e):bHc(a,b,c,!1,d,e)},bHc=function(a,b,c,d,e,f){if(!b)throw Error("gb");var g=Oa(e)?!!e.capture:!!e,k=cHc(a);k||(a[YGc]=k=new dj(a));c=k.add(b,c,d,g,f);if(c.proxy)return c;d=dHc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)RGc||(e=g),e===void 0&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(eHc(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("hb");$Gc++;return c},dHc=function(){var a=fHc,b=function(c){return a.call(b.src,b.listener,c)};return b},FB=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)FB(a,b[f],c,d,e);return null}c=aHc(c);return EB(a)?a.listenOnce(b,c,Oa(d)?!!d.capture:!!d,e):bHc(a,b,c,!0,d,e)},GB=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)GB(a,b[f],c,d,e);else d=Oa(d)?!!d.capture:!!d,c=aHc(c),EB(a)?a.unlisten(b,c,d,e):a&&(a=cHc(a))&&(b=a.getListener(b,c,d,e))&&HB(b)},HB=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(EB(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(eHc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);$Gc--;(c=cHc(b))?(XGc(c,a),c.typeCount_==0&&(c.src=null,b[YGc]=null)):VGc(a);
return!0},eHc=function(a){return a in ZGc?ZGc[a]:ZGc[a]="on"+a},fHc=function(a,b){if(a.removed)a=!0;else{b=new DB(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&HB(a);a=c.call(d,b)}return a},cHc=function(a){a=a[YGc];return a instanceof dj?a:null},gHc="__closure_events_fn_"+(Math.random()*1E9>>>0),aHc=function(a){if(typeof a==="function")return a;a[gHc]||(a[gHc]=function(b){return a.handleEvent(b)});return a[gHc]};QGc(function(a){fHc=a(fHc)});var hHc=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 IB=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var kj=function(){BB.call(this);this.eventTargetListeners_=new dj(this);this.actualEventTarget_=this;this.parentEventTarget_=null};rw(kj,BB);kj.prototype[SGc]=!0;h=kj.prototype;h.getParentEventTarget=function(){return this.parentEventTarget_};h.setParentEventTarget=function(a){this.parentEventTarget_=a};h.addEventListener=function(a,b,c,d){mj(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){GB(this,a,b,c,d)};
h.dispatchEvent=function(a){var b,c=this.getParentEventTarget();if(c)for(b=[];c;c=c.getParentEventTarget())b.push(c);c=this.actualEventTarget_;var d=a.type||a;if(typeof a==="string")a=new CB(a,c);else if(a instanceof CB)a.target=a.target||c;else{var e=a;a=new CB(d,c);Vta(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.propagationStopped_&&f>=0;f--){var g=a.currentTarget=b[f];e=g.fireListeners(d,!0,a)&&e}a.propagationStopped_||(g=a.currentTarget=c,e=g.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=g.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)g=a.currentTarget=b[f],e=g.fireListeners(d,!1,a)&&e;return e};h.disposeInternal=function(){kj.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};h.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};h.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
h.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};h.unlistenByKey=function(a){return XGc(this.eventTargetListeners_,a)};h.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0)};
h.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var g=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=g.call(k,c)!==!1&&d}}return d&&!c.defaultPrevented};h.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
h.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var iHc=function(a){try{return ra.JSON.parse(a)}catch(b){}a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("ib`"+a);},jHc=function(){this.replacer_=void 0};
jHc.prototype.serialize=function(a){var b=[];kHc(this,a,b);return b.join("")};
var kHc=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],kHc(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),lHc(d,c),c.push(":"),kHc(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":lHc(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("jb`"+typeof b);}}},mHc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},nHc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,lHc=function(a,b){b.push('"',a.replace(nHc,
function(c){var d=mHc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),mHc[c]=d);return d}),'"')};var oHc,pHc=function(){};rw(pHc,Wta);pHc.prototype.createInstance=function(){return new XMLHttpRequest};oHc=new pHc;var qHc=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")},rHc=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},u9a=function(a){return!/[^0-9]/.test(a)},JB=function(a){return encodeURIComponent(String(a))},Ht=function(a){ixc.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(cxc,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(dxc,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(exc,"&gt;")),a.indexOf('"')!=
-1&&(a=a.replace(fxc,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(gxc,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(hxc,"&#0;")));return a},sHc=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},loc=function(a,b,c){return a.replace(new RegExp(Xr(b),"g"),c.replace(/\$/g,"$$$$"))},Xr=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},tHc=String.prototype.repeat?
function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},KB=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+tHc("0",Math.max(0,b-c))+a},Kt=function(a){return a==null?"":String(a)},RBb=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)},JIa=Math.random()*2147483648|0,wo=function(a){var b=
Number(a);return b==0&&ya(a)?NaN:b},etc=function(){return"height".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})},eoc=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},hj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},sm=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},uHc=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 vHc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),wHc=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," ")):"")}}},xHc=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]},yHc=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)yHc(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+JB(b)))},zHc=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)yHc(a[b],a[b+1],c);return c.join("&")},AHc=function(a){var b=[],c;for(c in a)yHc(c,a[c],b);return b.join("&")},tgb=function(a,b){var c=arguments.length==2?zHc(arguments[1],0):zHc(arguments,1);return xHc(a,c)},vgb=
function(a,b){b=AHc(b);return xHc(a,b)},BHc=function(a,b,c){c=c!=null?"="+JB(c):"";return xHc(a,b+c)},CHc=/#|$/,PBb=function(a,b){var c=a.search(CHc);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 Fs=function(a){kj.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};rw(Fs,kj);
var DHc=/^https?$/i,EHc=["POST","PUT"],FHc=[],cob=function(a,b,c,d,e,f,g){var k=new Fs;FHc.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));g&&(k.withCredentials_=g);k.send(a,c,d,e);return k};h=Fs.prototype;h.cleanupSend_=function(){this.dispose();La(FHc,this)};h.setTrustToken=function(a){this.trustToken_=a};h.setAttributionReporting=function(a){this.attributionReportingOptions_=a};
h.send=function(a,b,c,d){if(this.xhr_)throw Error("kb`"+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=IB(nj(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(g){this.error_(5,g);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,
d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=m(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("lb`"+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()});e=ra.FormData&&a instanceof ra.FormData;!Ka(EHc,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=m(c);for(d=b.next();!d.done;d=b.next())c=m(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,
c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(g){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(g){}try{this.timeoutId_&&(clearTimeout(this.timeoutId_),
this.timeoutId_=null),this.timeoutInterval_>0&&(this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(g){this.error_(5,g)}};h.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():oHc.createInstance()};h.timeout_=function(){typeof Iwc!="undefined"&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
h.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;GHc(this);HHc(this)};var GHc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};Fs.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"),HHc(this))};
Fs.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),HHc(this,!0));Fs.superClass_.disposeInternal.call(this)};Fs.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)IHc(this);else this.onReadyStateChangeEntryPoint_()};Fs.prototype.onReadyStateChangeEntryPoint_=function(){IHc(this)};
var IHc=function(a){if(a.active_&&typeof Iwc!="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()+"]";GHc(a)}}finally{HHc(a)}}},HHc=function(a,b){if(a.xhr_){a.timeoutId_&&(clearTimeout(a.timeoutId_),
a.timeoutId_=null);var c=a.xhr_;a.xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};h=Fs.prototype;h.isActive=function(){return!!this.xhr_};h.isComplete=function(){return this.getReadyState()==4};
h.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(a=a===0)a=String(this.lastUri_).match(vHc)[1]||null,!a&&ra.self&&ra.self.location&&(a=ra.self.location.protocol.slice(0,-1)),a=!DHc.test(a?a.toLowerCase():"");b=a}return b};h.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};h.getStatus=function(){try{return this.getReadyState()>2?this.xhr_.status:-1}catch(a){return-1}};
h.getLastUri=function(){return String(this.lastUri_)};h.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};h.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&b.indexOf(a)==0&&(b=b.substring(a.length));a:{a=b;if(ra.JSON)try{var c=ra.JSON.parse(a);break a}catch(d){}c=iHc(a)}return c}};
h.getResponse=function(){try{if(!this.xhr_)return null;if("response"in this.xhr_)return this.xhr_.response;switch(this.responseType_){case "":case "text":return this.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.xhr_)return this.xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};h.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),a===null?void 0:a};
h.getAllResponseHeaders=function(){return this.xhr_&&this.getReadyState()>=2?this.xhr_.getAllResponseHeaders()||"":""};h.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!ya(b[c])){var d=uHc(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 Jta(a,function(g){return g.join(", ")})};var Zta=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};Fs.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
Fs.prototype.getLastError=function(){return typeof this.lastError_==="string"?this.lastError_:String(this.lastError_)};QGc(function(a){Fs.prototype.onReadyStateChangeEntryPoint_=a(Fs.prototype.onReadyStateChangeEntryPoint_)});var KHc=function(a,b){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=a.nodeReadableStream;this.grpcResponseDeserializeFn=b;this.xhr=a.xhr;this.xhrNodeReadableStream&&JHc(this)},RHc=function(a,b){var c=new LHc;mj(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("mb");d=atob(d)}try{var e=
a.grpcResponseDeserializeFn(d)}catch(k){MHc(a,Yta(new zB(13,"Error when deserializing response data; error: "+k+(", response: "+d)),c));return}d=Hta(a.xhr.getStatus());NHc(a,OHc(a));d===0?PHc(a,e):MHc(a,Yta(new zB(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.xhr.getResponseText();e=OHc(a);if(d){var f=QHc(a,d);d=f.code;var g=f.details;f=f.metadata}else d=2,g="Rpc failed due to xhr error. uri: "+a.xhr.getLastUri()+", error code: "+(a.xhr.getLastErrorCode()+", error: ")+a.xhr.getLastError(),
f=e;NHc(a,e);MHc(a,Yta(new zB(d,g,f),c))}})},JHc=function(a){a.xhrNodeReadableStream.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn(c)}catch(e){MHc(a,new zB(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&PHc(a,d)}if("2"in b)for(b=QHc(a,b["2"]),c=0;c<a.onStatusCallbacks.length;c++)a.onStatusCallbacks[c](b)});a.xhrNodeReadableStream.on("end",function(){NHc(a,OHc(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=Hta(c);break;default:d=14}NHc(a,OHc(a));b=hHc(b)+", error: "+a.xhr.getLastError();c!==-1&&(b+=", http status code: "+c);MHc(a,new zB(d,b))}})},OHc=function(a){var b={},c=a.xhr.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},
QHc=function(a,b){var c=2,d={};try{var e=MGc(b);c=e.getCode();var f=e.getMessage();Ci(e,Sq,3,Di()).length&&(d["grpc-web-status-details-bin"]=b)}catch(g){a.xhr&&a.xhr.getStatus()===404?(c=5,f="Not Found: "+a.xhr.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+g)}return{code:c,details:f,metadata:d}};
KHc.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 SHc=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
KHc.prototype.removeListener=function(a,b){a==="data"?SHc(this.onDataCallbacks,b):a==="metadata"?SHc(this.onMetadataCallbacks,b):a==="status"?SHc(this.onStatusCallbacks,b):a==="end"?SHc(this.onEndCallbacks,b):a==="error"&&SHc(this.onErrorCallbacks,b);return this};KHc.prototype.cancel=function(){this.xhr.abort()};
var PHc=function(a,b){for(var c=0;c<a.onDataCallbacks.length;c++)a.onDataCallbacks[c](b)},NHc=function(a,b){for(var c=0;c<a.onMetadataCallbacks.length;c++)a.onMetadataCallbacks[c](b)},MHc=function(a,b){for(var c=0;c<a.onErrorCallbacks.length;c++)a.onErrorCallbacks[c](b)},LHc=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};Y(LHc,Error);var THc=function(a){return function(){return a}},LB=function(){},UHc=function(a){return a},MB=function(a,b){var c=0;return function(d){ra.clearTimeout(c);var e=arguments;c=ra.setTimeout(function(){a.apply(void 0,e)},b)}},VHc=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,g())},g=function(){c=ra.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};return function(k){e=arguments;c?d=!0:g()}},WHc=function(a){var b=0,c=function(){b=0};return function(d){b||(b=ra.setTimeout(c,1E3),a.apply(void 0,
arguments))}};var NB=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};rw(NB,Wta);NB.prototype.createInstance=function(){var a=new OB(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};NB.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};NB.prototype.setCacheMode=function(a){this.cacheMode_=a};
var OB=function(a,b){kj.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.requestHeaders_=new Headers;this.responseHeaders_=null;this.method_="GET";this.url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=new AbortController};
rw(OB,kj);OB.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("nb");this.method_=a;this.url_=b;this.readyState=1;XHc(this)};
OB.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("ob");if(this.abortController_.signal.aborted)throw this.abort(),Error("pb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_,signal:this.abortController_.signal};a&&(b.body=a);(this.worker_||ra).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
OB.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,YHc(this));this.readyState=0};
OB.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,XHc(this)),this.inProgress_&&(this.readyState=3,XHc(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof ra.ReadableStream!=="undefined"&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("qb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;ZHc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var ZHc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
OB.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?YHc(this):XHc(this);this.readyState==3&&ZHc(this)}};OB.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,YHc(this))};
OB.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,YHc(this))};OB.prototype.handleSendFailure_=function(){this.inProgress_&&YHc(this)};var YHc=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;XHc(a)};h=OB.prototype;h.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};h.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
h.getAllResponseHeaders=function(){if(!this.responseHeaders_)return"";for(var a=[],b=this.responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};h.setCredentialsMode=function(a){this.credentialsMode_=a};h.setCacheMode=function(a){this.cacheMode_=a};var XHc=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(OB.prototype,"withCredentials",{get:function(){return this.credentialsMode_==="include"},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var $Hc=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Na(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Lta(a)},aIc=function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof
Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(Na(a)||typeof a==="string"){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}},bIc=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(Na(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=aIc(a),e=$Hc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var Ns=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Ns?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,PB(this,a.scheme_),this.userInfo_=a.userInfo_,QB(this,a.getDomain()),RB(this,a.port_),this.setPath(a.getPath()),cIc(this,a.queryData_.clone()),dIc(this,a.fragment_)):a&&(c=String(a).match(vHc))?(this.ignoreCase_=!!b,PB(this,c[1]||"",!0),this.userInfo_=SB(c[2]||""),QB(this,c[3]||"",!0),RB(this,c[4]),this.setPath(c[5]||
"",!0),cIc(this,c[6]||"",!0),dIc(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new TB(null,this.ignoreCase_))};
Ns.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(eIc(b,fIc,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.userInfo_)&&a.push(eIc(b,fIc,!0),"@"),a.push(JB(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(eIc(c,c.charAt(0)=="/"?gIc:hIc,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",eIc(c,iIc));return a.join("")};
Ns.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?PB(b,a.scheme_):c=!!a.userInfo_;c?b.userInfo_=a.userInfo_:c=!!a.domain_;c?QB(b,a.getDomain()):c=a.port_!=null;var d=a.getPath();if(c)RB(b,a.port_);else if(c=a.hasPath()){if(d.charAt(0)!="/")if(this.domain_&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(za(e,"./")||za(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g<e.length;){var k=
e[g++];k=="."?d&&g==e.length&&f.push(""):k==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?cIc(b,a.queryData_.clone()):c=!!a.fragment_;c&&dIc(b,a.fragment_);return b};Ns.prototype.clone=function(){return new Ns(this)};var PB=function(a,b,c){a.scheme_=c?SB(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Ns.prototype.getDomain=function(){return this.domain_};
var QB=function(a,b,c){a.domain_=c?SB(b,!0):b;return a},RB=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("rb`"+b);a.port_=b}else a.port_=null;return a};Ns.prototype.getPath=function(){return this.path_};Ns.prototype.setPath=function(a,b){this.path_=b?SB(a,!0):a;return this};Ns.prototype.hasPath=function(){return!!this.path_};Ns.prototype.hasQuery=function(){return this.queryData_.toString()!==""};
var cIc=function(a,b,c){b instanceof TB?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=eIc(b,jIc)),a.queryData_=new TB(b,a.ignoreCase_));return a};Ns.prototype.setQuery=function(a){return cIc(this,a)};Ns.prototype.getQuery=function(){return this.queryData_.toString()};var yt=function(a,b,c){a.queryData_.set(b,c);return a},xt=function(a,b){return a.queryData_.get(b)},dIc=function(a,b,c){a.fragment_=c?SB(b):b;return a},kIc=function(a){yt(a,"zx",RBb());return a};
Ns.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Ns.prototype.isReadOnly=function(){return!1};Ns.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var wt=function(a,b){return a instanceof Ns?a.clone():new Ns(a,b)},lIc=function(a,b,c,d,e){var f=new Ns(null);a&&PB(f,a);b&&(f.userInfo_=b);c&&QB(f,c);d&&RB(f,d);e&&f.setPath(e);return f},SB=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},eIc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,mIc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},mIc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},
fIc=/[#\/\?@]/g,hIc=/[#\?:]/g,gIc=/[#\?]/g,jIc=/[#\?@]/g,iIc=/#/g,TB=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},UB=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&wHc(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=TB.prototype;h.getCount=function(){UB(this);return this.count_};
h.add=function(a,b){UB(this);this.encodedQuery_=null;a=VB(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};h.remove=function(a){UB(this);a=VB(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};h.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};h.isEmpty=function(){UB(this);return this.count_==0};h.containsKey=function(a){UB(this);a=VB(this,a);return this.keyMap_.has(a)};
h.forEach=function(a,b){UB(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.getKeys=function(){UB(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.getValues=function(a){UB(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(VB(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};h.set=function(a,b){UB(this);this.encodedQuery_=null;a=VB(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};h.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
h.setValues=function(a,b){this.remove(a);b.length>0&&(this.encodedQuery_=null,this.keyMap_.set(VB(this,a),Ma(b)),this.count_+=b.length)};h.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=JB(d);d=this.getValues(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+JB(d[f]));a.push(g)}}return this.encodedQuery_=a.join("&")};
h.clone=function(){var a=new TB;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var VB=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};TB.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(UB(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};
TB.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)bIc(arguments[b],function(c,d){this.add(d,c)},this)};var nIc=function(a){var b="";aj(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},oIc=function(a,b,c){if(Pta(c))return a;c=nIc(c);if(typeof a==="string")return BHc(a,JB(b),c);yt(a,b,c);return a};var vu=function(a){BB.call(this);this.handler_=a;this.keys_={}};rw(vu,BB);var pIc=[];vu.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(pIc[0]=b.toString()),b=pIc);for(var e=0;e<b.length;e++){var f=mj(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};vu.prototype.listenOnce=function(a,b,c,d){return qIc(this,a,b,c,d)};
var qIc=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)qIc(a,b,c[g],d,e,f);else{b=FB(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
vu.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=Oa(d)?!!d.capture:!!d,e=e||this.handler_||this,c=aHc(c),d=!!d,b=EB(a)?a.getListener(b,c,d,e):a?(a=cHc(a))?a.getListener(b,c,d,e):null:null,b&&(HB(b),delete this.keys_[b.key]);return this};vu.prototype.removeAll=function(){aj(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&HB(a)},this);this.keys_={}};
vu.prototype.disposeInternal=function(){vu.superClass_.disposeInternal.call(this);this.removeAll()};vu.prototype.handleEvent=function(){throw Error("tb");};var rIc=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};rIc.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("ub`"+this.streamPos_+"`"+b+"`"+a);};
rIc.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=Xxc(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 ej=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};ej.prototype.getErrorMessage=function(){return this.errorMessage_};ej.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_);};ej.prototype.acceptsBinaryInput=function(){return!0};
ej.prototype.parse=function(a){function b(l){l&128&&f.error_(g,k,"invalid tag");(l&7)!=2&&f.error_(g,k,"invalid wire type");f.tag_=l>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&f.error_(g,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(l){f.countLengthBytes_++;f.countLengthBytes_==5&&l&240&&f.error_(g,k,"message length too long");f.length_|=(l&127)<<(f.countLengthBytes_-1)*7;l&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(l){f.messageBuffer_[f.countMessageBytes_++]=l;f.countMessageBytes_==f.length_&&e()}function e(){if(f.tag_<15){var l={};l[f.tag_]=f.messageBuffer_;f.result_.push(l)}f.state_=0}for(var f=this,g=a instanceof Array?a:new Uint8Array(a),k=0;k<g.length;){switch(f.state_){case 3:f.error_(g,k,"stream already broken");break;case 0:b(g[k]);break;case 1:c(g[k]);break;case 2:d(g[k]);break;default:throw Error("vb`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return a.length>0?a:null};var bua=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new rIc;this.pbParser_=new ej};bua.prototype.getErrorMessage=function(){return this.errorMessage_};bua.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};bua.prototype.acceptsBinaryInput=function(){return!1};
bua.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 WB=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var aua=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)},sIc={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};h=aua.prototype;h.getErrorMessage=function(){return this.errorMessage_};h.done=function(){return this.streamState_===2};h.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};h.acceptsBinaryInput=function(){return!1};
h.parse=function(a){function b(){for(;C<a.length;)if(WB(a[C]))C++,f.pos_++;else break;return C<r}function c(){for(var J;;){J=a[C++];if(!J)break;f.pos_++;switch(f.state_){case l.INIT:J==="{"?f.state_=l.OBJECT_OPEN:J==="["?f.state_=l.ARRAY_OPEN:WB(J)||f.error_(a,C);continue;case l.KEY_START:case l.OBJECT_OPEN:if(WB(J))continue;if(f.state_===l.KEY_START)g.push(l.KEY_END);else if(J==="}"){e("{}");f.state_=d();continue}else g.push(l.OBJECT_END);J==='"'?f.state_=l.STRING:f.error_(a,C);continue;case l.KEY_END:case l.OBJECT_END:if(WB(J))continue;
J===":"?(f.state_===l.OBJECT_END&&(g.push(l.OBJECT_END),f.depth_++),f.state_=l.VALUE):J==="}"?(f.depth_--,e(),f.state_=d()):J===","?(f.state_===l.OBJECT_END&&g.push(l.OBJECT_END),f.state_=l.KEY_START):f.error_(a,C);continue;case l.ARRAY_OPEN:case l.VALUE:if(WB(J))continue;if(f.state_===l.ARRAY_OPEN)if(f.depth_++,f.state_=l.VALUE,J==="]"){f.depth_--;if(f.depth_===0){f.state_=l.ARRAY_END;return}e("[]");f.state_=d();continue}else g.push(l.ARRAY_END);J==='"'?f.state_=l.STRING:J==="{"?f.state_=l.OBJECT_OPEN:
J==="["?f.state_=l.ARRAY_OPEN:J==="t"?f.state_=l.TRUE1:J==="f"?f.state_=l.FALSE1:J==="n"?f.state_=l.NULL1:J!=="-"&&("0123456789".indexOf(J)!==-1?f.state_=l.NUM_DIGIT:f.error_(a,C));continue;case l.ARRAY_END:if(J===",")g.push(l.ARRAY_END),f.state_=l.VALUE,f.depth_===1&&(x=C);else if(J==="]"){f.depth_--;if(f.depth_===0)return;e();f.state_=d()}else if(WB(J))continue;else f.error_(a,C);continue;case l.STRING:var O=C;a:for(;;){for(;f.unicodeCount_>0;)if(J=a[C++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,
!J)break a;if(J==='"'&&!f.slashed_){f.state_=d();break}if(J==="\\"&&!f.slashed_&&(f.slashed_=!0,J=a[C++],!J))break;if(f.slashed_)if(f.slashed_=!1,J==="u"&&(f.unicodeCount_=1),J=a[C++])continue;else break;k.lastIndex=C;J=k.exec(a);if(!J){C=a.length+1;break}C=J.index+1;J=a[J.index];if(!J)break}f.pos_+=C-O;continue;case l.TRUE1:if(!J)continue;J==="r"?f.state_=l.TRUE2:f.error_(a,C);continue;case l.TRUE2:if(!J)continue;J==="u"?f.state_=l.TRUE3:f.error_(a,C);continue;case l.TRUE3:if(!J)continue;J==="e"?
f.state_=d():f.error_(a,C);continue;case l.FALSE1:if(!J)continue;J==="a"?f.state_=l.FALSE2:f.error_(a,C);continue;case l.FALSE2:if(!J)continue;J==="l"?f.state_=l.FALSE3:f.error_(a,C);continue;case l.FALSE3:if(!J)continue;J==="s"?f.state_=l.FALSE4:f.error_(a,C);continue;case l.FALSE4:if(!J)continue;J==="e"?f.state_=d():f.error_(a,C);continue;case l.NULL1:if(!J)continue;J==="u"?f.state_=l.NULL2:f.error_(a,C);continue;case l.NULL2:if(!J)continue;J==="l"?f.state_=l.NULL3:f.error_(a,C);continue;case l.NULL3:if(!J)continue;
J==="l"?f.state_=d():f.error_(a,C);continue;case l.NUM_DECIMAL_POINT:J==="."?f.state_=l.NUM_DIGIT:f.error_(a,C);continue;case l.NUM_DIGIT:if("0123456789.eE+-".indexOf(J)!==-1)continue;else C--,f.pos_--,f.state_=d();continue;default:f.error_(a,C)}}}function d(){var J=g.pop();return J!=null?J:l.VALUE}function e(J){f.depth_>1||(J||(J=x===-1?f.buffer_+a.substring(w,C):a.substring(x,C)),f.deliverMessageAsRawString_?f.result_.push(J):f.result_.push(JSON.parse(J)),x=C)}for(var f=this,g=f.stack_,k=f.stringInputPattern_,
l=sIc,r=a.length,w=0,x=-1,C=0;C<r;)switch(f.streamState_){case 3:return f.error_(a,C),null;case 2:return b()&&f.error_(a,C),null;case 0:if(b()){var H=a[C++];f.pos_++;if(H==="["){f.streamState_=1;w=C;f.state_=l.ARRAY_OPEN;continue}else f.error_(a,C)}return null;case 1:return c(),f.depth_===0&&f.state_==l.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(C)):f.buffer_=x===-1?f.buffer_+a.substring(w):a.substring(x),f.result_.length>0?(H=f.result_,f.result_=[],H):null}return null};var $ta=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};$ta.prototype.getErrorMessage=function(){return this.errorMessage_};$ta.prototype.acceptsBinaryInput=function(){return!1};
$ta.prototype.parse=function(a){function b(l){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+g+". Error: "+l+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new aua({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(l){if(l)for(var r=0;r<l.length;r++){var w={};w[1]=l[r];f.result_.push(w)}}function e(l){if(l){(f.statusParsed_||l.length>1)&&b("extra status: "+l);f.statusParsed_=!0;var r={};r[2]=l[0];f.result_.push(r)}}for(var f=
this,g=0;g<a.length;){var k;if(k=f.state_!==2){a:{for(;g<a.length;){if(!WB(a[g])){k=!0;break a}g++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:a[g]==="["?(f.state_=1,g++,f.streamPos_++):b("unexpected input token");break;case 1:a[g]==="["?(f.state_=2,c()):a[g]===","||a.slice(g,g+5)=="null,"?f.state_=3:a[g]==="]"?(f.state_=5,g++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(g));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-g-k.length,a=k,g=0):(f.streamPos_+=a.length-g,g=a.length);break;case 3:a[g]===","||a.slice(g,g+5)=="null,"?(f.state_=4,c(),f.jsonStreamParser_.parse("["),g+=a[g]===","?1:5,f.streamPos_++):a[g]==="]"&&(f.state_=5,g++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(g));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-g-k.length,a=k,g=0):(f.streamPos_+=a.length-g,g=a.length);
break;case 5:b("extra input after stream end")}}return f.result_.length>0?(a=f.result_,f.result_=[],a):null};var tIc=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 vu(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};tIc.prototype.getXhr=function(){return this.xhr_};
var ZB=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},uIc=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};tIc.prototype.getStatus=function(){return this.status_};
tIc.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?ZB(this,7):c==7?ZB(this,8):d||ZB(this,3)),this.parser_||(this.parser_=cua(this.xhr_),
this.parser_==null&&ZB(this,5)),this.status_>2)uIc(this);else{if(a.length>this.pos_){var g=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<g;k++){var l=this.parser_.parse(Array.from(a[k]));l&&(c=c.concat(l))}else{l="";if(!this.textDecoder_){if(typeof TextDecoder==="undefined")throw Error("wb");this.textDecoder_=new TextDecoder}for(k=0;k<g;k++)l+=this.textDecoder_.decode(a[k],{stream:b==4&&k==g-1});c=this.parser_.parse(l)}a.splice(0,g);c&&this.dataHandler_(c)}catch(w){ZB(this,
5);uIc(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var r=this.parser_.parse(k);r!=null&&this.dataHandler_&&this.dataHandler_(r)}catch(w){ZB(this,5);uIc(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?ZB(this,2):ZB(this,4),uIc(this)):ZB(this,1)}}}catch(w){ZB(this,6),uIc(this)}};var vIc=function(a){a=this.xhrReader_=a;var b=nj(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=nj(this.onStatusChange_,this);a.statusHandler_=b;this.callbackMap_={};this.callbackOnceMap_={}};h=vIc.prototype;h.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};h.addListener=function(a,b){this.on(a,b);return this};h.removeListener=function(a,b){var c=this.callbackMap_[a];c&&La(c,b);(a=this.callbackOnceMap_[a])&&La(a,b);return this};
h.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};h.onData_=function(a){var b=this.callbackMap_.data;b&&wIc(this,a,b);(b=this.callbackOnceMap_.data)&&wIc(this,a,b);this.callbackOnceMap_.data=[]};
var wIc=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$897:void 0},e++)d.message$jscomp$897=b[e],c.forEach(function(f){return function(g){try{g(f.message$jscomp$897)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};vIc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:xIc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:xIc(this,"error");break;case 8:xIc(this,"close");break;case 2:xIc(this,"end")}};
var xIc=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]=[]};vIc.prototype.handleError_=function(){};var yIc=function(a){a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||Ou("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||Ou("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},BIc=function(a,b,c,d,e,f){f=f===void 0?{}:f;var g=b.substring(0,b.length-e.name.length),k,l=(k=f)==null?void 0:k.signal;return zIc(function(r){return new Promise(function(w,
x){if(l==null?0:l.aborted){var C=new zB(1,"Aborted");C.cause=l.reason;x(C)}else{var H={},J=AIc(a,r,g);J.on("error",function(O){return void x(O)});J.on("metadata",function(O){H=O});J.on("data",function(O){var R=H;R=R===void 0?{}:R;w(new kGc(O,R))});l&&l.addEventListener("abort",function(){J.cancel();var O=new zB(1,"Aborted");O.cause=l.reason;x(O)})}})},a.unaryInterceptors).call(a,lGc(e,c,d)).then(function(r){return r.responseMessage})},$B=function(a,b,c,d,e,f){f=f===void 0?{}:f;return BIc(a,b,c,d,
e,f)};yIc.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return CIc(function(g){var k=g.methodDescriptor,l=g.getMetadata(),r=DIc(e,!1);l=EIc(e,l,r,f+k.getName());var w=FIc(r,k.responseDeserializeFn,!0);g=k.requestSerializeFn(g.requestMessage);r.send(l,"POST",g);return w},this.streamInterceptors).call(this,lGc(d,b,c))};
var AIc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),f=DIc(a,!0);a=EIc(a,e,f,c+d.getName());c=FIc(f,d.responseDeserializeFn,!1);RHc(c,e["X-Goog-Encode-Response-If-Executable"]==="base64");b=d.requestSerializeFn(b.requestMessage);f.send(a,"POST",b);return c},DIc=function(a,b){b=a.chunkedServerStreaming&&!b;return a.workerScope||b?new Fs(new NB({worker:a.workerScope,streamBinaryChunks:b})):new Fs},EIc=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&&LGc.has(e.split(" ")[0])||a.withCredentials)c.withCredentials_=!0;if(a.suppressCorsPreflight)d=oIc(d,"$httpHeaders",b);else for(a=m(Object.keys(b)),e=a.next();!e.done;e=a.next())e=e.value,c.headers.set(e,b[e]);return d},FIc=function(a,b,c){if(c){c=new tIc(a);var d=new vIc(c)}return new KHc({xhr:a,nodeReadableStream:d},b)},CIc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)},zIc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,
c)}},a)};var GIc=function(a,b){b=b||{};b.format="jspb";this.client_=new yIc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};h=GIc.prototype;h.generateAnswers=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",a,{},pGc)};h.streamGenerateAnswers=function(a){return this.client_.serverStreaming(this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",a,{},GGc)};
h.getSessionSummaries=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",a,{},vGc)};h.getSession=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",a,{},rGc)};h.updateSession=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",a,{},IGc)};
h.deleteSession=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",a,{},nGc)};h.provideFeedback=function(a,b){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",a,b||{},BGc)};h.provideRewrite=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",a,{},EGc)};
h.getUserState=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",a,{},yGc)};h.updateUserState=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",a,{},KGc)};var aC=function(a,b){this.duckieBackendServicePromiseClientFactory=a;this.experimentsService=b;this.client=a.create(Gta())};h=aC.prototype;h.generateAnswers=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.generateAnswers(a),2):c.return(c.yieldResult)})};h.updateUserState=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.updateUserState(a),2):c.return(c.yieldResult)})};
h.getSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getSession(a),2):c.return(c.yieldResult)})};h.getSessionSummaries=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getSessionSummaries(a),2):c.return(c.yieldResult)})};h.getUserState=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getUserState(a),2):c.return(c.yieldResult)})};
h.updateSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.updateSession(a),2):c.return(c.yieldResult)})};h.deleteSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.deleteSession(a),2):c.return(c.yieldResult)})};h.streamGenerateAnswers=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.streamGenerateAnswers(a),2):c.return(c.yieldResult)})};aC.\u0275fac=function(a){return new (a||aC)($c(bC),$c(lA))};
aC.\u0275prov=Fc({token:aC,factory:aC.\u0275fac,providedIn:"root"});var bC=function(){};bC.prototype.create=function(a){return new GIc(a,{withCredentials:!0,suppressCorsPreflight:!0})};bC.\u0275fac=function(a){return new (a||bC)};bC.\u0275prov=Fc({token:bC,factory:bC.\u0275fac,providedIn:"root"});var HIc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HIc,W);HIc.prototype.getLabel=function(){return vi(this,1)};HIc.prototype.setLabel=function(a){return Gm(this,1,a)};HIc.prototype.getPrompt=function(){return vi(this,2)};var IIc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IIc,W);IIc.prototype.getTitle=function(){return vi(this,1)};IIc.prototype.setTitle=function(a){return Gm(this,1,a)};var cC=function(){this.hasParentIntegratorValue=!1;this.overridesService=p(wA);this.duckieService=p(aC);this.duckieClient=p(dFc)};cC.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};cC.prototype.addPreamble=function(a){this.overridesService.addPreamble(a)};cC.prototype.setAppProvidedContext=function(a){this.overridesService.setAppProvidedContext(a)};
cC.prototype.setOnboardingExamplesList=function(a){var b=[];a=Ci(a,IIc,1,Di());a=m(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.getTitle();var e=zyc(d,HIc,2);if(c&&e.length){d=[];e=m(e);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.getLabel();g=g.getPrompt();f!==void 0&&g!==void 0&&d.push({label:f,prompt:g})}c={title:c,examples:d}}else c=null;c!==null&&b.push(c)}this.overridesService.setOnboardingExamplesList(b)};
var JIc=function(a){var b=document.getElementById("ask-duckie-input");b.value=a;b.dispatchEvent(new Event("input",{bubbles:!0}))};cC.\u0275fac=function(a){return new (a||cC)};cC.\u0275prov=Fc({token:cC,factory:cC.\u0275fac,providedIn:"root"});var dC=function(){this.experimentsService=p(lA);this.communicationService=p(cC);this.availableConversationAgentsInternal=new Nj([]);this.currentConversationAgentInternal=new Nj(Qwc);this.currentConversationAgent$=this.currentConversationAgentInternal.pipe(xf({bufferSize:1,refCount:!0}));this.duckieConversationAgentEnabled=!this.communicationService.hasParentIntegratorValue&&this.experimentsService.experimentalDuckieAgentEnabled;this.availableConversationAgents$=this.availableConversationAgentsInternal.pipe(xf({bufferSize:1,
refCount:!0}));var a=[];this.experimentsService.sVsMGooseModelEnabled&&a.push(tw);this.duckieConversationAgentEnabled&&a.push(uw);this.availableConversationAgentsInternal.next(a)},eC=function(a){return a.currentConversationAgentInternal.getValue()};dC.\u0275fac=function(a){return new (a||dC)};dC.\u0275prov=Fc({token:dC,factory:dC.\u0275fac,providedIn:"root"});var fC=function(){this.currentModelIdInternal=new Nj("");this.currentModelId$=this.currentModelIdInternal.pipe(xf({bufferSize:1,refCount:!0}))};fC.\u0275fac=function(a){return new (a||fC)};fC.\u0275prov=Fc({token:fC,factory:fC.\u0275fac,providedIn:"root"});var KIc={PRIVACY_MODE_UNSET:0,COMPLIANCE_ONLY:1,CONTENT_PRIVATE:2};var gC=function(a){this.duckieService=a;this.currentErrorType$=new Nj(0);this.showTosDialog$=new Nj(!1);this.showGeneralAnnouncementBanner$=new Nj(!1);this.showErrorScreen$=new Nj(!1);this.allowPersonalResults$=new Nj(!0);this.userStateLoaded$=new Nj(!1);this.isEnforcedPrivateMode$=new Nj(!0);this.duckieClient=p(dFc);LIc(this)},MIc=function(a){var b,c,d,e;y(function(f){switch(f.nextAddress){case 1:return z(f,a.getUserState(),2);case 2:b=f.yieldResult;if((c=b.getUserState())==null)var g=void 0;else g=
lTa(new Date),g=Ni(c,Ti,2,g);d=g;e=(new yB).setUserState(d);Yd(f,3);return z(f,a.duckieService.updateUserState(e),5);case 5:a.showGeneralAnnouncementBanner$.next(!1);bt(f,0);break;case 3:be(f),a.showErrorScreen$.next(!0),ce(f)}})},NIc=function(a,b){var c,d,e,f;y(function(g){switch(g.nextAddress){case 1:return z(g,a.getUserState(),2);case 2:return c=g.yieldResult,e=(d=c.getUserState())==null?void 0:d.setDisallowRestrictedContent(!b),f=(new yB).setUserState(e),Yd(g,3),z(g,a.duckieService.updateUserState(f),
5);case 5:a.allowPersonalResults$.next(b);bt(g,0);break;case 3:be(g),ce(g)}})},LIc=function(a){var b,c;y(function(d){if(d.nextAddress==1)return z(d,a.getUserState(),2);b=d.yieldResult;a.isEnforcedPrivateMode$.next(((c=b.getUserState())==null?void 0:xi(c,3))===2);var e=lTa(new Date(2025,1,11)),f,g=b==null?void 0:(f=b.getUserState())==null?void 0:X(f,Ti,2);(!g||g<e)&&a.showGeneralAnnouncementBanner$.next(!0);var k;((k=b.getUserState())==null?0:k.getDisallowRestrictedContent())&&a.allowPersonalResults$.next(!1);
a.showErrorScreen$.getValue()||OIc(a,b)||a.showTosDialog$.next(!0);a.userStateLoaded$.next(!0);ce(d)})};
gC.prototype.getUserState=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return Yd(e,2),z(e,a.duckieService.getUserState(new wGc),4);if(e.nextAddress!=2)return e.return(e.yieldResult);if((b=be(e))&&((c=b.message)==null?0:c.includes("not found")))return e.return(new vB);((d=b.message)==null?0:d.includes("does not have permission"))?a.currentErrorType$.next(2):a.currentErrorType$.next(3);a.showErrorScreen$.next(!0);a.showTosDialog$.next(!1);return e.return(new vB)})};
var PIc=function(a){return a.getUserState().then(function(b){var c;if(b==null)b=void 0;else{var d;(c=b.getUserState())==null?d=void 0:d=xn(c,5,Di());b=d}return b})},QIc=function(a,b){var c,d,e,f,g;y(function(k){switch(k.nextAddress){case 1:return z(k,a.getUserState(),2);case 2:return d=(c=k.yieldResult)!=null?c:new vB,f=(e=d.getUserState())==null?void 0:Ww(e,5,b),g=(new yB).setUserState(f),Yd(k,3),z(k,a.duckieService.updateUserState(g),5);case 5:bt(k,0);break;case 3:be(k),a.showErrorScreen$.next(!0),
ce(k)}})},OIc=function(a,b){var c;return(b=b==null?void 0:(c=b.getUserState())==null?void 0:Ci(c,xGc,1,Di()))?b.some(function(d){return d.getClient()===a.duckieClient&&xi(d,3)===3}):!1};gC.\u0275fac=function(a){return new (a||gC)($c(aC))};gC.\u0275prov=Fc({token:gC,factory:gC.\u0275fac,providedIn:"root"});var RIc={SESSION_STATE_UNSPECIFIED:0,SESSION_STATE_ACTIVE:1,SESSION_STATE_PINNED:2,SESSION_STATE_ARCHIVED:3,SESSION_STATE_DEPRECATED:4};var hC=function(){var a=this;this.duckieService=p(aC);this.routingService=p(xA);this.userStateService=p(gC);this.conversationAgentsService=p(dC);this.communicationService=p(cC);this.duckieClient=p(dFc);this.sessionSummariesInternal=new Nj([]);this.sessionSummaries$=this.sessionSummariesInternal.pipe(xf({bufferSize:1,refCount:!0}));this.isLoadingSessionSummariesInternal=new Nj(!1);this.isLoadingSessionSummaries$=this.isLoadingSessionSummariesInternal.pipe(xf({bufferSize:1,refCount:!0}));this.isIncognitoMode$=
new Nj(!1);this.userStateService.userStateLoaded$.subscribe(function(b){a.isIncognitoMode$=a.userStateService.isEnforcedPrivateMode$;b&&SIc(a)})},SIc=function(a){var b,c,d;y(function(e){if(e.nextAddress==1){a.isLoadingSessionSummariesInternal.next(!0);b=[];if(a.isIncognitoMode$.getValue())return e.jumpTo(2);var f=new sGc;f=Ww(f,1,[a.duckieClient]);f=zc(f,2,Cb,1,void 0,Db);c=zc(f,2,Cb,2,void 0,Db);a.communicationService.hasParentIntegratorValue&&eC(a.conversationAgentsService).agentId!=="duckie_on_goose"&&
c.setConversationAgentId(eC(a.conversationAgentsService).agentId).setConversationAgentModelId(eC(a.conversationAgentsService).modelId);return z(e,a.duckieService.getSessionSummaries(c),3)}e.nextAddress!=2&&(d=e.yieldResult)&&(b=Ci(d,tGc,1,Di()).map(dua).sort(a.summarySortFunction));a.sessionSummariesInternal.next(b);a.isLoadingSessionSummariesInternal.next(!1);return e.return(b)})},UIc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,b.serverId,2);c=f.yieldResult;if(!c)return f.return();
d=TIc(a,c,b);e=a.sessionSummariesInternal.value.filter(function(g){return g.sessionId!==c});e.unshift(d);e.sort(a.summarySortFunction);a.sessionSummariesInternal.next(e);ce(f)})},VIc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,b.serverId,2);c=f.yieldResult;if(!c)return f.return();d=b.title;e=a.sessionSummariesInternal.value;e=e.map(function(g){return g.sessionId===c?Object.assign({},g,{title:d}):g});a.sessionSummariesInternal.next(e);ce(f)})},WIc=function(a,b){var c,
d;return y(function(e){if(e.nextAddress==1)return z(e,b.serverId,2);c=e.yieldResult;if(!c)return e.return();d=a.sessionSummariesInternal.value;d=d.map(function(f){return f.sessionId===c?Object.assign({},f,{privacyMode:b.privacyMode}):f});a.sessionSummariesInternal.next(d);ce(e)})};h=hC.prototype;
h.toggleSessionPinnedState=function(a){var b=this,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return c=a.sessionId,d=a.sessionState===2?1:2,e=(new xB).setSessionId(c).setSessionState(d),z(l,b.duckieService.updateSession(e),2);f=l.yieldResult;if(!f)return l.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g.sort(b.summarySortFunction);b.sessionSummariesInternal.next(g);ce(l)})};
h.toggleSessionArchivedState=function(a){var b=this,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return c=a.sessionId,d=a.sessionState===3?1:3,e=(new xB).setSessionId(c).setSessionState(d),z(l,b.duckieService.updateSession(e),2);f=l.yieldResult;if(!f)return l.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g=g.filter(b.filterOutArchivedSessions);b.sessionSummariesInternal.next(g);ce(l)})};
h.deleteSession=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=a.sessionId,d=(new rB).setSessionId(c),z(f,b.duckieService.deleteSession(d),2);if(f.nextAddress!=3)return b.routingService.state$.value.params.id===c?z(f,XIc(b.routingService),3):f.jumpTo(3);e=b.sessionSummariesInternal.value.filter(function(g){return g.sessionId!==c});b.sessionSummariesInternal.next(e);ce(f)})};
h.summarySortFunction=function(a,b){a=a.sessionState===2;return a===(b.sessionState===2)?0:a?-1:1};h.filterOutArchivedSessions=function(a){return a.sessionState===1||a.sessionState===2};var TIc=function(a,b,c){var d,e,f;return{sessionId:b,title:c.title,agentId:(d=c.agentId)!=null?d:"",agentVersion:(e=c.agentVersion)!=null?e:"",privacyMode:(f=c.privacyMode)!=null?f:0,client:a.duckieClient,sessionState:1}};hC.\u0275fac=function(a){return new (a||hC)};
hC.\u0275prov=Fc({token:hC,factory:hC.\u0275fac,providedIn:"root"});var YIc=/(?:^|\b)(?:https?:\/\/)?(?:cr|critique|cl)(?:\.corp\.google\.com)?(?:\/cl)?\/([0-9]+)/gi,ZIc=RegExp("(?<=^|\\s|\\()(((?:https://source\\.corp\\.google\\.com/piper///depot/google3/|https://cs\\.corp\\.google\\.com/piper///depot/google3/|(?:(?:https?:)?//)?cs/|(?:(?:https?:)?//)?codesearch/|//depot/google3/|http://google3/|google3/|depot/google3/)))([^\\s),)]+)","gi"),$Ic=RegExp("(?<=^|\\s|\\()(((?:https://source\\.corp\\.google\\.com/piper///depot/google3/|https://cs\\.corp\\.google\\.com/piper///depot/google3/|https://source\\.corp\\.google\\.com/h/|https://cs\\.corp\\.google\\.com/h/|(?:(?:https?:)?//)?cs/h/|(?:(?:https?:)?//)?codesearch/h/|(?:(?:https?:)?//)?cs/|(?:(?:https?:)?//)?codesearch/|//depot/google3/|http://google3/|google3/|depot/google3/)))([^\\s),)]+)",
"gi"),aJc=new RegExp(/(?:^|\b)(?:https?:\/\/)?(g3doc(?:\.corp\.google\.com)?(?:\/[\S]+)*\/(?:[\S]+\.md))(?:[\?;#][\S]*[A-Za-z0-9]+)?/,"gi"),bJc=/(?:^|\b)(?:https?:\/\/)?(?:b|buganizer)(?:\.corp\.google\.com)?\/(?:issues\/)?([0-9]+)/gi,cJc=/(?:^|\b)(?:https?:\/\/)?(?:screen|screenshot)(?:\.corp\.google\.com)?(?:\.googleplex\.com)?\/([0-9A-Za-z]+)/gi,dJc=/(?:^|\b)(?:https?:\/\/)?(?:yaqs)(?:\.corp\.google\.com)?\/eng\/q\/([0-9]+)/gi,eJc=/(?:^|\b)(?:https?:\/\/)?(?:docs|drive)(?:\.google\.com)?\/(?:(?:(?:document|spreadsheets|presentation|file)\/d\/)|(?:(?:corp\/drive\/)?folders\/))[0-9A-Za-z-_]+[^\s)]*/gi,
fJc=/(?:^|\b)(?:https?:\/\/)?(?:omg|irm)(?:\.corp\.google\.com)?\/(?:signals\/|incidents\/|triage\/from-am-incident\/)?([0-9]+|i_[A-Za-z0-9_-]+|s_[A-Za-z0-9_-]+)(?:\/[\S]+)?/gi,gJc=/(?:^|\b)(?:https?:\/\/)?go\/([^\s,)]*[^\s,."')?!;:\[\]{}\n])/gi,hJc=/(?:^|\b)((https?:\/\/)?(?:([\w-]+)-)?review\.(?:googlesource\.com|git\.corp\.google\.com)\/c\/.+?\/\+\/([0-9]+))/gi,iJc={chromium:"crrev","googleplex-android":"ag"},jJc=/([^/;\s]+)\/?(?:;|\\s|$)/,kJc=/\/\d{3,}/,lJc=/([^/\\]+\.md)/,mJc=/(?:(?:\/d\/)|(?:folders\/))([A-Za-z0-9_-]+?)(?:[\/?#]|$)/i,
nJc=/go\/[^\s),)]+/i,iC=function(){this.experimentsService=p(lA);this.userContextServiceErrorInternal$=new Nj(null);this.userContextServiceError$=this.userContextServiceErrorInternal$.pipe(xf({bufferSize:1,refCount:!0}));this.suggestedUserProvidedContextContentInternal$=new Nj([]);this.suggestedUserProvidedContextContent$=this.suggestedUserProvidedContextContentInternal$.pipe(xf({bufferSize:1,refCount:!0}));this.ignoredSuggestedUserProvidedContextSources=[]},oJc=function(a,b){a.suggestedUserProvidedContextContentInternal$.next(a.suggestedUserProvidedContextContentInternal$.value.filter(function(c){c.fullUrl===
b&&a.ignoredSuggestedUserProvidedContextSources.push(c);return c.fullUrl!==b}))},pJc=function(a){a.suggestedUserProvidedContextContentInternal$.next([]);a.ignoredSuggestedUserProvidedContextSources=[]},qJc=function(a){return a?iJc[a]||a:"gerrit"},sJc=function(a,b,c){var d=[],e=[];[].concat(q(b.matchAll(YIc))).forEach(function(O){var R,V=(R=O[0])==null?void 0:R.match(kJc);V&&e.push({label:c?"cl"+V[0]:V[0].substring(1),index:O.index,imgSrc:eua(),imgAlt:"Critique logo",source:1,fullUrl:O[0]})});var f=
[];[].concat(q(b.matchAll(a.experimentsService.userProvidedContextGobEnabled?$Ic:ZIc))).forEach(function(O){var R=O[0].slice(-1)==="."?O[0].slice(0,-1):O[0],V=O[O.length-1],ca=V.slice(-1)==="."?V.slice(0,-1):V;c&&(ca="cs/"+(R==null?void 0:R.match(jJc))[1]);V=f.push;for(var oa=ca.length,ua=m([";","?"]),ka=ua.next();!ka.done;ka=ua.next())ka=ca.indexOf(ka.value),ka!==-1&&ka<oa&&(oa=ka);V.call(f,{label:ca.substring(0,oa),index:O.index,imgSrc:fua(),imgAlt:jC(3),source:3,fullUrl:R})});var g=[];[].concat(q(b.matchAll(aJc))).forEach(function(O){var R,
V=(R=O[1])==null?void 0:R.match(lJc);R=O[1];g.push({label:c&&V?"g3doc/"+V[0]:R,index:O.index,imgSrc:gua(),imgAlt:jC(2),source:2,fullUrl:O[0]})});var k=[];[].concat(q(b.matchAll(bJc))).forEach(function(O){k.push({label:c?"b/"+O[1]:O[1],index:O.index,imgSrc:hua(),imgAlt:jC(4),source:4,fullUrl:O[0]})});var l=[];a.experimentsService.screenshotLinkFollowingEnabled&&[].concat(q(b.matchAll(cJc))).forEach(function(O){l.push({label:c?"screen/"+O[1]:O[1],index:O.index,imgSrc:iua(),imgAlt:jC(5),source:5,fullUrl:O[0]})});
var r=[];a.experimentsService.userProvidedContextYaqsEnabled&&[].concat(q(b.matchAll(dJc))).forEach(function(O){r.push({label:c?"yaqs/"+O[1]:O[0],index:O.index,imgSrc:jua(),imgAlt:jC(7),source:7,fullUrl:O[0]})});var w=[];a.experimentsService.userProvidedContextDriveEnabled&&[].concat(q(b.matchAll(eJc))).forEach(function(O){var R=O[0].match(mJc),V=rJc(O[0]);w.push({label:c&&R&&R.length>1?V.prefix+R[1].slice(-5):O[0],index:O.index,imgSrc:V.logoSource,imgAlt:jC(6),source:6,fullUrl:O[0]})});var x=[];
a.experimentsService.userProvidedContextIrmEnabled&&[].concat(q(b.matchAll(fJc))).forEach(function(O){x.push({label:c?"irm/"+O[1]:O[0],index:O.index,imgSrc:"https://www.gstatic.com/uif/product_icons/irm.svg",imgAlt:jC(8),source:8,fullUrl:O[0]})});var C=[];a.experimentsService.userProvidedContextGoLinkEnabled&&[].concat(q(b.matchAll(gJc))).forEach(function(O){var R,V=(R=O[0])==null?void 0:R.match(nJc);C.push({label:c&&V?V[0]:O[0],index:O.index,imgSrc:kua(),imgAlt:jC(9),source:9,fullUrl:O[0]})});var H=
[];a.experimentsService.userProvidedContextGerritEnabled&&[].concat(q(b.matchAll(hJc))).forEach(function(O){var R=O[1],V=qJc(O[3]),ca=O[4];H.push({label:c?V+"/"+ca:R,index:O.index,imgSrc:lua(),imgAlt:jC(10),source:10,fullUrl:R})});b=[].concat(q(e),q(f),q(g),q(k),q(l),q(r),q(w),q(x),q(C),q(H)).filter(function(O){return!a.ignoredSuggestedUserProvidedContextSources.some(function(R){return R.fullUrl===O.fullUrl})});if(b.length>20)a.userContextServiceErrorInternal$.next("Warning: link following is disabled because the maximum number of links (20) has been exceeded");
else{a.userContextServiceErrorInternal$.next(null);b.sort(function(O,R){return O.index-R.index});b=m(b);for(var J=b.next();!J.done;J=b.next())J=J.value,d.push({imgSrc:J.imgSrc,imgAlt:J.imgAlt,label:J.label,source:J.source,fullUrl:J.fullUrl})}return d},rJc=function(a){a=a.toLowerCase();return a.includes("document")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/docs/v7/192px.svg",prefix:"docs/..."}:a.includes("presentation")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/slides/v7/192px.svg",
prefix:"slides/..."}:a.includes("spreadsheets")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/sheets/v7/192px.svg",prefix:"sheets/..."}:{logoSource:"https://www.gstatic.com/images/branding/productlogos/drive_2020q4/v10/192px.svg",prefix:"drive/..."}},vJc=function(a){var b=[],c=[];a.messages.forEach(function(e){var f;(f=e.userProvidedContext)==null||f.forEach(function(g){var k=g.getType(),l=g.getUrl();g=vi(g,3);c.findIndex(function(r){return r.source===k&&r.url===l})===-1&&c.push({label:tJc(k,
l),imgSrc:uJc(k,l),imgAlt:jC(k),source:k,url:l,fullUrl:g})})});a=m(c);for(var d=a.next();!d.done;d=a.next())d=d.value,b.push({imgSrc:d.imgSrc,imgAlt:d.imgAlt,label:d.label,source:d.source,fullUrl:d.fullUrl});return b},tJc=function(a,b){switch(a){case 1:return"cl/"+b;case 2:var c=b.match(lJc);return"g3doc/"+(c?c[0]:b);case 3:return c=b.match(jJc),"cs/"+(c?c[0]:b);case 4:return"b/"+b;case 5:return"screen/"+b;case 9:return(c=b.match(nJc))?c[0]:"go/"+b;case 6:return a=(a=b.match(mJc))?(c=a[1])==null?
void 0:c.slice(-5):b.slice(-5),rJc(b).prefix+a;case 10:return c=b.match(new RegExp(hJc.source,"i")),console.log("gerritMatch reconstructed",c),c?qJc(c[3])+"/"+c[4]:b;default:return b}},uJc=function(a,b){switch(a){case 1:return eua();case 2:return gua();case 3:return fua();case 4:return hua();case 5:return iua();case 7:return jua();case 9:return kua();case 6:return rJc(b).logoSource;case 10:return lua();default:return""}},jC=function(a){switch(a){case 1:return"Critique logo";case 2:return"G3Doc logo";
case 3:return"CodeSearch logo";case 4:return"Buganizer logo";case 5:return"SnipIt Screenshot logo";case 7:return"YAQS logo";case 9:return"Go Link logo";case 6:return"Drive logo";case 8:return"IRM logo";case 10:return"Gerrit logo";default:return""}};iC.\u0275fac=function(a){return new (a||iC)};iC.\u0275prov=Fc({token:iC,factory:iC.\u0275fac,providedIn:"root"});var wJc=function(a){this.eventID=a;this.interactionMetadataHandlers=[];this.testCodeList=[];this.parentEventId=void 0};h=wJc.prototype;h.getID=function(){return this.eventID};h.addInteractionMetadataHandler=function(a){this.interactionMetadataHandlers.push(a)};h.populateInteractionMetadata=function(a){if(this.interactionMetadataHandlers.length>0)for(var b=m(this.interactionMetadataHandlers),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.setTestCodeList=function(a){this.testCodeList=Array.from(a)};
h.getTestCodeList=function(){return this.testCodeList};h.setParentEventId=function(a){this.parentEventId=a};h.getParentEventId=function(){return this.parentEventId};var xJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xJc,W);xJc.prototype.getUrl=function(){return vi(this,1)};xJc.prototype.setUrl=function(a){return pj(this,1,a)};xJc.prototype.hasUrl=function(){return im(this,1)};var kC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kC,W);kC.prototype.getIsPrivateDocument=function(){return Gi(this,2)};kC.prototype.setIsPrivateDocument=function(a){return Pi(this,2,a)};var yJc=function(a){var b=new kC;return Oi(b,7,a)};var cm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cm,W);h=cm.prototype;h.getMessageId=function(){return vi(this,1)};h.setMessageId=function(a){return pj(this,1,a)};h.hasMessageId=function(){return im(this,1)};h.getSessionId=function(){return vi(this,2)};h.setSessionId=function(a){return pj(this,2,a)};h.hasSessionId=function(){return im(this,2)};var zJc=function(a,b){return Ni(a,kC,3,b)};var AJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AJc,W);var bm=function(a){var b=new AJc;return Ni(b,cm,1,a)};var lC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(lC,W);var BJc=new rA(259,lC,AJc);var mC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mC,W);mC.prototype.setVeIndex=function(a){Fn(this,1,a)};var CJc=function(a,b){Fn(a,2,b)};mC.prototype.setElementIndex=function(a){Fn(this,5,a)};mC.prototype.getResultIndex=function(){return Cm(this,6,-1)};mC.prototype.setResultIndex=function(a){Fn(this,6,a)};var DJc=[0,oA,-1,2,oA,-4,pA,oA,JEc,sFc,oA,[0,IEc,oA],oA];var nC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nC,W);nC.prototype.setVed=function(a){return Co(this,5,EJc,a)};var FJc=[1,3,4],EJc=[2,5];var oC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,233)};Y(oC,W);oC.prototype.setUiType=function(a){return Fn(this,1,a)};oC.prototype.setElementIndex=function(a){Fn(this,3,a)};var GJc=function(a,b){xc(a,4,b,Eb)};oC.prototype.getResultIndex=function(){return Cm(this,7)};oC.prototype.setResultIndex=function(a){Fn(this,7,a)};oC.prototype.setVisible=function(a){return Hn(this,6,a)};var pC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,17)};Y(pC,W);h=pC.prototype;h.setVed=function(a){return pj(this,11,a)};h.setUiType=function(a){return Fn(this,1,a)};h.setVeIndex=function(a){Fn(this,2,a)};h.getResultIndex=function(){return Cm(this,7,-1)};h.setResultIndex=function(a){Fn(this,7,a)};h.setElementIndex=function(a){Fn(this,8,a)};var HJc=function(a,b){Oi(a,14,b)},IJc=function(a){return lb(function(b){return b instanceof a&&!fb(b)})}(pC);var JJc=function(a){wJc.call(this,a)};Y(JJc,wJc);var KJc=function(a,b){a.addInteractionMetadataHandler(function(c){if(IJc(c)){var d=Iv(new lC,BJc,b);Ni(c,lC,15,d)}})};ra.U3bHHf!=null||(ra.U3bHHf=0);ra.U3bHHf++;var Au=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};Au.prototype.clone=function(){return new Au(this.x,this.y)};Au.prototype.equals=function(a){return a instanceof Au&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Ooc=function(a,b){return new Au(a.x-b.x,a.y-b.y)};h=Au.prototype;h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};h.translate=function(a,b){a instanceof Au?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};h.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};var qC=function(a,b){this.width=a;this.height=b};h=qC.prototype;h.clone=function(){return new qC(this.width,this.height)};h.area=function(){return this.width*this.height};h.aspectRatio=function(){return this.width/this.height};h.isEmpty=function(){return!this.area()};h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};h.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var NJc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===LJc&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=MJc};NJc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};var MJc={},LJc={};var lj=function(a){return a?new rC(Cu(a)):$wc||($wc=new rC)},sC=function(a,b){return(b||document).getElementsByTagName(String(a))},tC=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},PJc=function(a,b){aj(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:OJc.hasOwnProperty(d)?a.setAttribute(OJc[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,
c):a[d]=c})},OJc={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"},uC=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new qC(a.clientWidth,a.clientHeight)},QJc=function(a){return a.scrollingElement?a.scrollingElement:fj||a.compatMode!="CSS1Compat"?a.body||a.documentElement:
a.documentElement},Bu=function(a){return a?a.defaultView:window},SJc=function(a,b,c){return RJc(document,arguments)},RJc=function(a,b){var c=b[1],d=Ws(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):PJc(d,c));b.length>2&&TJc(a,d,b,2);return d},TJc=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(!Na(f)||Oa(f)&&f.nodeType>0)e(f);else{a:{if(f&&typeof f.length=="number"){if(Oa(f)){var g=
typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){g=typeof f.item=="function";break a}}g=!1}Ja(g?Ma(f):f,e)}}},Ws=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},UJc=function(a,b){TJc(Cu(a),a,arguments,1)},vC=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},wC=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},VJc=function(a){return Oa(a)&&a.nodeType==1},qua=function(a){return a.parentElement||
null},NBb=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},Cu=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},WJc=function(a){return a.contentDocument||a.contentWindow.document},XJc=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 vC(a),a.appendChild(Cu(a).createTextNode(String(b)))},YJc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ZJc={IMG:" ",BR:"\n"},$Jc=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},bKc=function(a){var b=[];aKc(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},aKc=function(a,b,c){if(!(a.nodeName in
YJc))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 ZJc)b.push(ZJc[a.nodeName]);else for(a=a.firstChild;a;)aKc(a,b,c),a=a.nextSibling},dKc=function(a){return cKc(a,function(b){return typeof b.className==="string"&&Ka(b.className.split(/\s+/),"ace-tooltip-close-button")})},cKc=function(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},joc=function(){var a=Bu();return a.devicePixelRatio!==void 0?a.devicePixelRatio:
a.matchMedia?eKc(3)||eKc(2)||eKc(1.5)||eKc(1)||.75:1},eKc=function(a){return Bu().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a*96+"dpi)").matches?a:0},rC=function(a){this.document_=a||ra.document||document};h=rC.prototype;h.getDomHelper=lj;h.getElement=function(a){var b=this.document_;return typeof a==="string"?b.getElementById(a):a};h.$=rC.prototype.getElement;h.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
h.getElementsByTagNameAndClass=function(a,b,c){return tC(this.document_,a,b,c)};h.$$=rC.prototype.getElementsByTagNameAndClass;h.setProperties=PJc;h.getViewportSize=function(a){return uC(a||this.getWindow())};h.createDom=function(a,b,c){return RJc(this.document_,arguments)};h.createElement=function(a){return Ws(this.document_,a)};h.createTextNode=function(a){return this.document_.createTextNode(String(a))};h.getWindow=function(){return this.document_.defaultView};
var fKc=function(a){var b=a.document_;a=QJc(b);b=b.defaultView;return new Au((b==null?void 0:b.pageXOffset)||a.scrollLeft,(b==null?void 0:b.pageYOffset)||a.scrollTop)};h=rC.prototype;h.appendChild=function(a,b){a.appendChild(b)};h.append=UJc;h.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
h.removeNode=wC;h.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};h.getParentElement=qua;h.contains=NBb;h.isFocusable=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||$Jc(a)):a.hasAttribute("tabindex")&&$Jc(a)};var gKc=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};gKc.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};gKc.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};QGc(function(){});var hKc=function(){this.workTail_=this.workHead_=null};hKc.prototype.add=function(a,b){var c=nua.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};hKc.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 nua=new gKc(function(){return new iKc},function(a){return a.reset()}),iKc=function(){this.next=this.scope=this.fn=null};
iKc.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};iKc.prototype.reset=function(){this.next=this.scope=this.fn=null};var jKc,oua=!1,mua=new hKc,xC=function(a,b){jKc||kKc();oua||(jKc(),oua=!0);mua.add(a,b)},kKc=function(){var a=Promise.resolve(void 0);jKc=function(){a.then(pua)}};var lKc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var zC=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=LB)try{var b=this;a.call(void 0,function(c){yC(b,2,c)},function(c){yC(b,3,c)})}catch(c){yC(this,3,c)}},mKc=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};mKc.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var nKc=new gKc(function(){return new mKc},function(a){a.reset()}),oKc=function(a,b,c){var d=nKc.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},pKc=function(a){if(a instanceof zC)return a;var b=new zC(LB);yC(b,2,a);return b},qKc=function(a){return new zC(function(b,c){c(a)})},sKc=function(a,b,c){rKc(a,b,c,null)||xC(pw(b,a))},tKc=function(a){return new zC(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r,w){d--;e[r]=w;d==0&&b(e)},g=function(r){c(r)},k,l=0;l<a.length;l++)k=a[l],
sKc(k,pw(f,l),g);else b(e)})},uKc=function(a){return new zC(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r){b(r)},g=function(r,w){d--;e[r]=w;d==0&&c(e)},k,l=0;l<a.length;l++)k=a[l],sKc(k,f,pw(g,l));else b(void 0)})},wKc=function(){var a,b,c=new zC(function(d,e){a=d;b=e});return new vKc(c,a,b)};zC.prototype.then=function(a,b,c){return xKc(this,IB(typeof a==="function"?a:null),IB(typeof b==="function"?b:null),c)};zC.prototype.$goog_Thenable=!0;
var zKc=function(a,b,c,d){yKc(a,oKc(b||LB,c||null,d))};zC.prototype.finally=function(a){var b=this;a=IB(a);return new zC(function(c,d){zKc(b,function(e){a();c(e)},function(e){a();d(e)})})};zC.prototype.thenCatch=function(a,b){return xKc(this,null,IB(a),b)};zC.prototype.catch=zC.prototype.thenCatch;zC.prototype.cancel=function(a){if(this.state_==0){var b=new AKc(a);xC(function(){BKc(this,b)},this)}};
var BKc=function(a,b){if(a.state_==0)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,g=c.callbackEntries_;g&&(g.always||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.state_==0&&d==1?BKc(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):CKc(c),DKc(c,e,3,b)))}a.parent_=null}else yC(a,3,b)},yKc=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||EKc(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},xKc=function(a,b,c,d){var e=oKc(null,null,null);e.child=new zC(function(f,g){e.onFulfilled=b?function(k){try{var l=b.call(d,k);f(l)}catch(r){g(r)}}:f;e.onRejected=c?function(k){try{var l=c.call(d,k);l===void 0&&k instanceof AKc?g(k):f(l)}catch(r){g(r)}}:g});e.child.parent_=a;yKc(a,e);return e.child};zC.prototype.unblockAndFulfill_=function(a){this.state_=0;yC(this,2,a)};zC.prototype.unblockAndReject_=function(a){this.state_=0;yC(this,3,a)};
var yC=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("xb")),a.state_=1,rKc(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,EKc(a),b!=3||c instanceof AKc||FKc(a,c)))},rKc=function(a,b,c,d){if(a instanceof zC)return zKc(a,b,c,d),!0;if(lKc(a))return a.then(b,c,d),!0;if(Oa(a))try{var e=a.then;if(typeof e==="function")return GKc(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},GKc=function(a,b,c,d,e){var f=!1,g=function(l){f||(f=!0,c.call(e,l))},
k=function(l){f||(f=!0,d.call(e,l))};try{b.call(a,g,k)}catch(l){k(l)}},EKc=function(a){a.executing_||(a.executing_=!0,xC(a.executeCallbacks_,a))},CKc=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};zC.prototype.executeCallbacks_=function(){for(var a;a=CKc(this);)DKc(this,a,this.state_,this.result_);this.executing_=!1};
var DKc=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,HKc(b,c,d);else try{b.always?b.onFulfilled.call(b.context):HKc(b,c,d)}catch(e){IKc.call(null,e)}nKc.put(b)},HKc=function(a,b,c){b==2?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},FKc=function(a,b){a.hadUnhandledRejection_=!0;xC(function(){a.hadUnhandledRejection_&&IKc.call(null,b)})},IKc=sa,AKc=function(a){pa.call(this,
a);this.reportErrorToServer=!1};rw(AKc,pa);AKc.prototype.name="cancel";var vKc=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var JKc=1;var KKc=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};(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 LKc=function(){},MKc=[[],[]],NKc=0,OKc=new Set,PKc=null,QKc=0,RKc=0,SKc=0,TKc=0,UKc=0,VKc=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=LKc};h=VKc.prototype;h.measure=function(a){this.measure_=a;return this};h.mutate=function(a){this.mutate_=a;return this};h.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
h.window=function(a){this.window_=a;return this};h.build=function(){return WKc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var WKc=function(a,b){var c=UKc++,d=Math.max(a.measure?a.measure.length:0,a.mutate?a.mutate.length:0),e={id:c,measureFn:a.measure,mutateFn:a.mutate,context:b,args:[]},f=e;return function(){var g=f.phase!==0;g&&(f=Object.assign({phase:0},e));b||(f.context=this);f.args=Array.prototype.slice.call(arguments);d>arguments.length&&f.args.push(new a.stateCtor);g&&(g=NKc,!a.runInCurrentFrameIfPossible||TKc==0||a.measure&&TKc!=1||(g=(g+1)%2),MKc[g].push(f));return XKc(a.window)}},YKc=function(a,b){var c={};
TKc=1;for(var d=0;d<a.length;++d){var e=a[d];var f=e.args[e.args.length-1];f&&typeof f==="object"&&(f.now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(g){c[d]=!0,sa(g)}}}TKc=2;for(d=0;d<a.length;++d)if(e=a[d],(f=e.args[e.args.length-1])&&typeof f==="object"&&(f.now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(g){sa(g)}}QKc>0&&b>1&&(a=b-QKc,a<500&&(JKc++,a>100&&RKc++,SKc<a&&(SKc=a)));QKc=OKc.size&&b>1?b:0},XKc=function(a){if(!OKc.has(a)){OKc.size||
(PKc=new KKc);OKc.add(a);var b=PKc.resolve;a.requestAnimationFrame(function(c){OKc.clear();var d=MKc[NKc];NKc=(NKc+1)%2;try{YKc(d,c)}finally{TKc=0,d.length=0}b()})}return PKc.promise};var ZKc=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var AC=function(){};AC.prototype.impressionEvent=function(){return[]};AC.prototype.interactionEvent=function(){return[]};AC.prototype.visibilityEvent=function(){return[]};AC.prototype.semanticEvent=function(){return[]};var BC=function(){if(!$Kc){var a=$Kc=new oFc,b=Date.now()*1E3+Math.floor(Math.random()*1E3);wn(a,1,b);Kr($Kc,2,Aca());Kr($Kc,3,Aca());aLc=0}a=new HA;a=Ni(a,oFc,1,$Kc);b=++aLc;return wn(a,2,b)},aLc=0,$Kc=void 0;var bLc=function(a){this.userAction=a};for(var cLc={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"}},tua=xua(cLc),dLc=new Map,eLc=m(Object.keys(cLc)),fLc=eLc.next();!fLc.done;fLc=eLc.next()){var gLc=fLc.value;dLc.set(cLc[gLc].xid,cLc[gLc].string)}
var vua=xua({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 hLc=function(a,b){this.visualElementProvider=a;this.traverseShadowDom=b===void 0?!1:b},jLc=function(a,b){return iLc(a,b).filter(function(c){return CC(this.visualElementProvider,c)!=null},a)},mLc=function(a,b){var c=a.visualElementProvider;a=[];for(var d=void 0,e={},f=0;f<b.length;e={parent$jscomp$91:void 0},++f){var g=CC(c,b[f]);g.traversalOrder_==void 0&&g.serverVed_==void 0&&(e.parent$jscomp$91=void 0,sua(b[f],function(k){return function(l){l=CC(c,l);return l!=null?(k.parent$jscomp$91=l,!0):
!1}}(e),!1),e.parent$jscomp$91?d&&d.has(e.parent$jscomp$91)||(d=new Map,a.unshift(d),d.set(e.parent$jscomp$91,[]),kLc=1):(d=new Map,a.unshift(d),kLc=0),lLc(g),g.setParent(e.parent$jscomp$91),d.set(g,[]),e.parent$jscomp$91&&d.get(e.parent$jscomp$91).push(g.traversalOrder_))}return a},nLc=function(a,b){var c=a.visualElementProvider;return b.map(function(d){return CC(c,d)})},iLc=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},kLc=0;var DC=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};DC.prototype.getID=function(){return this.visualElementID};var oLc=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):a.tracks_.size!=0};h=DC.prototype;h.setIndex=function(a){this.index_=a};
h.getIndex=function(){return this.index_};h.setComponentID=function(a){this.componentID_=a};h.getComponentID=function(){return this.componentID_};h.isMutable=function(){return this.mutable_};h.setAttribute=function(a){this.attribute_=a;return this};h.getAttribute=function(){return this.attribute_};var pLc=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};DC.prototype.addInteractionMetadataHandler=function(a){this.interactionMetadataHandler_=a};
DC.prototype.populateInteractionMetadata=function(a){this.interactionMetadataHandler_&&this.interactionMetadataHandler_(a)};DC.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?uua(a):a};DC.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?wua(a):a};DC.prototype.isMutable=DC.prototype.isMutable;var qLc=Zsa(mC,DJc),rLc=bta(DJc);var EC=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};EC.prototype.getTag=function(){return this.veTag_};EC.prototype.getElement=function(){return this.el_};var lLc=function(a){var b=kLc++;a.traversalOrder_=b};EC.prototype.setParent=function(a){this.parent_=a};EC.prototype.getParent=function(){return this.parent_};
var sLc=function(a){if(a.impressionEventID){var b=new mC;b.setVeIndex(a.traversalOrder_);CJc(b,a.getTag().getID());Ni(b,HA,13,a.impressionEventID);a=rLc(b);return"0"+Uxc(a,4)}};var tLc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},CC=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||ya(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=uLc(a,
d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new EC(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=qLc(c);e=X(f,HA,13)}catch(g){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},uLc=function(a,b){if(ya(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(!ya(f)){var g=uHc(f);if(g.length<2)return null;f=g[0].trim();g=g[1].trim();if(ya(f)||ya(g))return null;switch(f){case a.maybeXidPartLabel_("track"):f=g.split(",");for(g=0;g<f.length;++g){var k=d,l=f[g].trim();if(a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Ab");if(!dLc.has(l))throw Error("Bb`"+l);k.tracks_.add(l)}else k.tracks_.add(k.maybeXidEventLabel_(l))}break;
case a.maybeXidPartLabel_("index"):d.setIndex(Number(g));break;case a.maybeXidPartLabel_("tc"):f=g.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(g);break;case a.maybeXidPartLabel_("mutable"):g=="true"?d.mutable_=!0:g=="rci"&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};tLc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?wua(a):a};
tLc.prototype.setComponentID=function(a){this.componentID_=a};tLc.prototype.getComponentID=function(){return this.componentID_};var vLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vLc,W);vLc.prototype.setElementIndex=function(a){Fn(this,2,a)};vLc.prototype.setUserAction=function(a){return Hn(this,4,a)};var FC=function(a,b){kj.call(this);this.interval_=a||1;this.timerObject_=b||ra;this.boundTick_=nj(this.tick_,this);this.last_=Date.now()};rw(FC,kj);h=FC.prototype;h.enabled=!1;h.timer_=null;h.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
h.tick_=function(){if(this.enabled){var a=Date.now()-this.last_;a>0&&a<this.interval_*.8?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};h.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Date.now())};
h.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};h.disposeInternal=function(){FC.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Gs=function(a,b,c){if(typeof a==="function")c&&(a=nj(a,c));else if(a&&typeof a.handleEvent=="function")a=nj(a.handleEvent,a);else throw Error("Cb");return Number(b)>2147483647?-1:ra.setTimeout(a,b||0)},wLc=function(){var a=null;return(new zC(function(b,c){a=Gs(function(){b(void 0)},5E3);a==-1&&c(Error("Db"))})).thenCatch(function(b){ra.clearTimeout(a);throw b;})};var xLc=function(a,b,c){BB.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(xLc,BB);h=xLc.prototype;h.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:yLc(this)};h.stop=function(){this.timer_&&(ra.clearTimeout(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};h.pause=function(){this.pauseCount_++};
h.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,yLc(this))};h.disposeInternal=function(){BB.prototype.disposeInternal.call(this);this.stop()};var yLc=function(a){a.timer_=Gs(function(){a.timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,yLc(a))},a.interval_);var b=a.args_;a.args_=null;a.listener_.apply(null,b)};var zLc=function(a,b){CB.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};Y(zLc,CB);var Bua=new WeakMap,Aua=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")};rw(Cua,kj);h=Cua.prototype;h.getBrowserEventType_=jj(function(){var a=this.isSupported(),b=this.getHiddenPropertyName_()!="hidden";if(a){var c;b?c=((yua()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});h.getHiddenPropertyName_=jj(function(){return zua("hidden",this.domHelper_.document_)});h.getVisibilityStatePropertyName_=jj(function(){return zua("visibilityState",this.domHelper_.document_)});h.isSupported=function(){return!!this.getHiddenPropertyName_()};
h.isHidden=function(){return!!this.domHelper_.document_[this.getHiddenPropertyName_()]};h.getVisibilityState=function(){return this.isSupported()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null};h.handleChange_=function(){var a=this.getVisibilityState();a=new zLc(this.isHidden(),a);this.dispatchEvent(a)};h.disposeInternal=function(){HB(this.eventKey_);Cua.superClass_.disposeInternal.call(this)};h=oj.prototype;h.getWidth=function(){return this.right-this.left};h.getHeight=function(){return this.bottom-this.top};h.clone=function(){return new oj(this.top,this.right,this.bottom,this.left)};h.contains=function(a){return this&&a?a instanceof oj?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
h.expand=function(a,b,c,d){Oa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
h.translate=function(a,b){a instanceof Au?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};h.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var Du=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Du.prototype.clone=function(){return new Du(this.left,this.top,this.width,this.height)};var Roc=function(a){return new Du(a.left,a.top,a.right-a.left,a.bottom-a.top)};
Du.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 ALc=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 Du(c,e,d-c,a-e)}return null};
h=Du.prototype;h.difference=function(a){var b=ALc(this,a);if(b&&b.height&&b.width){b=[];var c=this.top,d=this.height,e=this.left+this.width,f=this.top+this.height,g=a.left+a.width,k=a.top+a.height;a.top>this.top&&(b.push(new Du(this.left,this.top,this.width,a.top-this.top)),c=a.top,d-=a.top-this.top);k<f&&(b.push(new Du(this.left,k,this.width,f-k)),d=k-c);a.left>this.left&&b.push(new Du(this.left,c,a.left-this.left,d));g<e&&b.push(new Du(g,c,e-g,d));a=b}else a=[this.clone()];return a};
h.contains=function(a){return a instanceof Au?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};h.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};h.getSize=function(){return new qC(this.width,this.height)};
h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.translate=function(a,b){a instanceof Au?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};h.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var GC=function(a,b,c,d,e,f,g){var k=d===void 0?{}:d;var l=k.backgroundJobDeferrer===void 0?void 0:k.backgroundJobDeferrer;d=k.expectXidTagComponents===void 0?!1:k.expectXidTagComponents;k=k.traverseShadowDom===void 0?!1:k.traverseShadowDom;vu.call(this);var r=this;this.eventBuilder=a;this.transport=c;this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.listeners_=[];this.impressionListeners_=[];this.expectXidTagComponents_=d;this.metadataHandler_=b||new BLc;this.visualElementProvider_=
new tLc(this.metadataHandler_,this.expectXidTagComponents_);this.eventToActionMap_={click:3};this.eventToTracksLabelMap_={click:this.maybeXidEventLabel_("generic_click")};this.pageVisibilityMonitor_=new Cua;this.logImpressionsTask_=(new VKc(this)).measure(l?function(){return l().then(r.handleImpressions_.bind(r))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new xLc(this.logImpressionsTask_,500,this);this.traverser_=g||new hLc(this.visualElementProvider_,
k);this.eventBuilder instanceof AC&&(this.eventHandler_=this.eventBuilder);this.zwiebackId_=e;this.windowProvider_=f};Y(GC,vu);GC.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};var HC=function(a,b,c,d){a.eventToActionMap_[b]=c;a.eventToTracksLabelMap_[b]=a.maybeXidEventLabel_(d||b)};
GC.prototype.logEvent=function(a,b,c){var d=this.eventToActionMap_[a];d&&(a=CLc(this,a,b))&&(this.eventHandler_?DLc(this,a,new bLc(d),c):(c=this.getAncestry_(a.getElement()),ELc(this,d,a,c)))};
GC.prototype.logSyntheticEvent=function(a,b,c,d){var e=this.eventToActionMap_[a];if(!e&&a!=="impression")return!1;if(d===void 0||d||!c)var f=new EC(Ws(document,"syntheticElement"),b);else{f=new EC(c,b);var g=this.visualElementProvider_;sua(c,function(k){if(!VJc(k))return!1;k=CC(g,k);return k!=null?(f.setParent(k),!0):!1},!1)}if(this.eventHandler_)return DLc(this,f,new bLc(e)),!0;a=[];c&&(a=this.getAncestry_(c));ELc(this,e,f,a);return!0};
var FLc=function(a,b){a.domHelper_=new rC;a.root_=b||a.domHelper_.document_.body;b=a.domHelper_.document_;b.readyState!=="interactive"&&b.readyState!=="complete"||a.logImpressions();a.listenOnce(b,"load",a.logImpressions,!1);a.listenOnce(b,"DOMContentLoaded",a.logImpressions,!1);a.listen(a.pageVisibilityMonitor_,"visibilitychange",a.logImpressions,!1);a.listen(b,"scroll",a.logImpressions,!0);a.listen(b,"resize",a.logImpressions,!0)};GC.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var ELc=function(a,b,c,d){var e=GLc(d),f=a.getIndex(c);var g=(new vLc).setUserAction(b);var k=c.getTag().getID();g=Fn(g,1,k);e=xc(g,3,e,Eb);f!=null&&e.setElementIndex(f);f=new ZKc;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=HLc(new IC,e.serialize()).setTestCodeList(f.testCodes);a.transport&&a.transport.dispatch(c);if(b!=null)for(b=new bLc(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};GC.prototype.log=function(a){this.transport&&this.transport.dispatch(a)};
GC.prototype.addInteractionEventListener=function(a){this.listeners_.push(a)};GC.prototype.removeInteractionEventListener=function(a){La(this.listeners_,a)};var ILc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};GC.prototype.getIndex=function(a){return a.getTag().getIndex()};var GLc=function(a){return a.map(function(b){return b.getTag().getID()})};
GC.prototype.getMetadata=function(a,b){var c=new oC;pLc(a.getTag(),c);for(a=0;a<b.length;++a)pLc(b[a].getTag(),c);return c};var CLc=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];sua(c,function(g){if(!VJc(g))return!1;g=CC(e,g);var k;if(k=g!=null)if(k=g.getTag(),a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Ab");if(!dLc.has(f))throw Error("Bb`"+f);k=k.tracks_.has(f)}else k=oLc(k,f);return k?(d=g,!0):!1},!0);return d};h=GC.prototype;
h.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;sua(a,function(d){if(!VJc(d))return!1;d=CC(c,d);d!=null&&b.push(d);return!1},!1);return b};
h.handleImpressions_=function(){if(!this.pageVisibilityMonitor_.isHidden()&&this.root_){var a=!(!window.performance||!window.performance.clearMarks);a&&(window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc"));var b=jLc(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();c=new Du(0,0,c.width,c.height);var d=mLc(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]),pj(d[e],28,this.zwiebackId_),this.transport&&this.transport.dispatch(d[e])}b=nLc(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_&&pj(b[c],28,this.zwiebackId_),this.transport&&this.transport.dispatch(b[c]);ILc(this)}else{c=[];d=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):
this.domHelper_.getViewportSize();d=new Du(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=CC(this.visualElementProvider_,f))&&oLc(f.getTag(),"impression")&&c.push(f)}for(b=0;b<c.length;b++)d=c[b],d.loggedImpression_||(e=this.getAncestry_(d.getElement()),ELc(this,void 0,d,e),ILc(this),d.loggedImpression_=!0)}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
h.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")==="true";a=a.getBoundingClientRect();return(b=ALc(b,new Du(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};h.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?uua(a):a};
h.logSemanticInteraction=function(a){if(this.eventHandler_){a=this.eventHandler_.semanticEvent(a);for(var b=0;b<a.length;++b)this.metadataHandler_.addEventMetadata(a[b]),this.zwiebackId_&&pj(a[b],28,this.zwiebackId_),this.transport&&this.transport.dispatch(a[b])}};
var DLc=function(a,b,c,d){d&&b.getTag().addInteractionMetadataHandler(function(e){Ni(e,lC,15,d)});b=a.eventHandler_.interactionEvent(b,c);for(c=0;c<b.length;++c)a.metadataHandler_.addEventMetadata(b[c]),a.zwiebackId_&&pj(b[c],28,a.zwiebackId_),a.transport&&a.transport.dispatch(b[c])};
GC.prototype.tearDown=function(){if(this.domHelper_){var a=this.domHelper_.document_;this.unlisten(a,"scroll",this.logImpressions,!0);this.unlisten(a,"resize",this.logImpressions,!0);this.unlisten(a,"load",this.logImpressions,!1);this.unlisten(a,"DOMContentLoaded",this.logImpressions,!1)}this.unlisten(this.pageVisibilityMonitor_,"visibilitychange",this.logImpressions,!1);this.logImpressionsThrottle_.dispose()};var JC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JC,W);var KC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,7)};Y(KC,W);KC.prototype.setTarget=function(a){Ni(this,nC,1,a)};KC.prototype.getType=function(){return xi(this,2)};KC.prototype.setType=function(a){return Hn(this,2,a)};KC.prototype.hasType=function(){return jm(this,2)};var JLc=function(a){var b=Date.now();b=Number.isFinite(b)?b*1E3:void 0;wn(a,4,b)};var KLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KLc,W);var LC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LC,W);LC.prototype.getParentEventId=function(){return X(this,HA,3)};LC.prototype.setParentEventId=function(a){Ni(this,HA,3,a)};LC.prototype.setRequestContext=function(a){Ni(this,pC,4,a)};var MLc=function(a,b){this.userAction=a;this.visualElementID=b;LLc++},LLc=0;var BLc=function(){this.xidTagComponents_=!1};BLc.prototype.createNewTag=function(a){return new DC(a,this.xidTagComponents_)};BLc.prototype.addEventMetadata=function(){};var MC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MC,W);var NLc=function(a,b){Oi(a,1,b)};MC.prototype.addPath=function(a,b){return Pp(this,1,oC,a,b)};MC.prototype.setPath=function(a,b){return zw(this,1,oC,a,b)};var OLc=new rA(100,KC,MC);var NC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NC,W);var OC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OC,W);OC.prototype.getTimestamp=function(){return X(this,NC,1)};OC.prototype.setTimestamp=function(a){return Ni(this,NC,1,a)};OC.prototype.hasTimestamp=function(){return yi(this,NC,1)};var PLc=new rA(126,lC,OC);var QLc=new rA(618,oC,OC);var RLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,2)};Y(RLc,W);var SLc=new rA(273,oC,RLc);h=Dua.prototype;h.add=function(a){var b=this.buff_[this.nextPtr_];this.buff_[this.nextPtr_]=a;this.nextPtr_=(this.nextPtr_+1)%this.maxSize_;return b};h.get=function(a){a=TLc(this,a);return this.buff_[a]};h.set=function(a,b){a=TLc(this,a);this.buff_[a]=b};h.getCount=function(){return this.buff_.length};h.isEmpty=function(){return this.buff_.length==0};h.clear=function(){this.nextPtr_=this.buff_.length=0};
h.getValues=function(){var a=this.getCount(),b=this.getCount(),c=[];for(a=this.getCount()-a;a<b;a++)c.push(this.get(a));return c};h.getKeys=function(){for(var a=[],b=this.getCount(),c=0;c<b;c++)a[c]=c;return a};h.containsKey=function(a){return a<this.getCount()};var TLc=function(a,b){if(b>=a.buff_.length)throw Error("Eb");return a.buff_.length<a.maxSize_?b:(a.nextPtr_+Number(b))%a.maxSize_};var ULc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ULc,W);var VLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VLc,W);h=VLc.prototype;h.getKey=function(){return vi(this,1)};h.hasKey=function(){return im(this,1)};h.getValue=function(){return vi(this,2)};h.getValue_legacyNullable=function(){return Dl(this,2)};h.setValue=function(a){return pj(this,2,a)};h.hasValue=function(){return im(this,2)};var WLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(WLc,W);var XLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XLc,W);var PC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,4)};Y(PC,W);var IC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,36)};Y(IC,W);h=IC.prototype;h.getTag=function(){return vi(this,2)};h.getComponentId=function(){return vi(this,26)};h.setComponentId=function(a){return pj(this,26,a)};h.hasComponentId=function(){return im(this,26)};h.addValue=function(){return Pp(this,3,VLc)};h.setValue=function(a,b){return zw(this,3,VLc,a,b)};var HLc=function(a,b){return pj(a,8,b)};IC.prototype.getExperimentIds=function(){return X(this,ULc,16)};
IC.prototype.setExperimentIds=function(a){Ni(this,ULc,16,a)};IC.prototype.clearExperimentIds=function(){return Aw(this,16)};var QC=function(a,b){pj(a,24,b)};IC.prototype.getTestCodeList=function(){return Em(this,20,Di())};IC.prototype.setTestCodeList=function(a){return xc(this,20,a,Eb)};IC.prototype.getComplianceData=function(){return X(this,PC,33)};IC.prototype.setComplianceData=function(a){Ni(this,PC,33,a)};var Yu=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 Dua};Y(Yu,AC);h=Yu.prototype;h.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=YLc(this,c,b);b=this.enableBatching_?ZLc(this,d,b):$Lc(this,d,b);return a.concat(b)};
h.interactionEvent=function(a,b){var c=new LC,d=BC();Ni(c,HA,1,d);d=new pC;a.serverVed_?d.setVed(a.serverVed_):d.setUiType(a.getTag().getID()).setVeIndex(a.traversalOrder_);HJc(Fn(d,3,b.userAction),this.getAncestry_(a));a.getTag().populateInteractionMetadata(d);this.setTimestamp(d);var e=new JC;Ni(e,HA,1,a.impressionEventID);c.setParentEventId(a.impressionEventID);c.setRequestContext(d);Ni(c,JC,9,e);this.recentInteractions_.add(new MLc(b.userAction,a.getTag().getID()));a=new IC;QC(a,c.serialize());
return[a]};
h.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],g=f.getElement(),k=f.rootImpressionEventID,l=d.get(k);l=l?l:[];var r=new MC;this.enableAncestryLoggingForGrafts_&&NLc(r,this.getAncestry_(f));if(f.neverShown||oLc(f.getTag(),"vis"))if(g=this.isVisible_(g,b),f.hidden&&g){g=new KC;g.setType(1);var w=aMc(f);g.setTarget(w);JLc(g);this.enableAncestryLoggingForGrafts_&&Iv(g,OLc,r);l.push(g);f.hidden=!1;f.neverShown=!1}else f.hidden||g||(g=new KC,g.setType(2),w=aMc(f),
g.setTarget(w),JLc(g),this.enableAncestryLoggingForGrafts_&&Iv(g,OLc,r),l.push(g),f.hidden=!0);d.set(k,l)}a=m(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new KLc,Oi(e,1,f),f=new LC,k=BC(),l=new JC,Ni(l,HA,1,b),Ni(f,HA,1,k),f.setParentEventId(b),Ni(f,KLc,7,e),Ni(f,JC,9,l),b=new IC,QC(b,f.serialize()),c.push(b));return c};
h.semanticEvent=function(a){var b=new pC,c=b.setUiType(a.getID());Fn(c,3,1);a.populateInteractionMetadata(b);this.setTimestamp(b);var d=BC();c=new LC;Ni(c,HA,1,d);(d=a.getParentEventId())&&c.setParentEventId(d);var e=new JC;Ni(e,HA,1,d);c.setRequestContext(b);Ni(c,JC,9,e);this.recentInteractions_.add(new MLc(1,a.getID()));b=new IC;b.setTestCodeList(a.getTestCodeList());QC(b,c.serialize());return[b]};
h.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")=="true";if(a instanceof HTMLElement&&(a.offsetWidth<=0||a.offsetHeight<=0))return!1;a=a.getBoundingClientRect();return(b=ALc(b,new Du(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};
var YLc=function(a,b,c){for(var d=[],e={},f=b.length-1;f>=0;e={impressionEventID:void 0,clientVeProto$jscomp$7:void 0,testCodes$jscomp$2:void 0},f--){e.clientVeProto$jscomp$7=new LC;e.testCodes$jscomp$2=[];e.impressionEventID=BC();Ni(e.clientVeProto$jscomp$7,HA,1,e.impressionEventID);var g=new JC;Ni(g,HA,1,e.impressionEventID);Ni(e.clientVeProto$jscomp$7,JC,9,g);if(g=PBb(window.location.href,"ved"))g=(new pC).setVed(g),e.clientVeProto$jscomp$7.setRequestContext(g);b[f].forEach(function(k){return function(l,
r){r.impressionEventID=k.impressionEventID;r.rootImpressionEventID=k.impressionEventID;var w=this.getVisualElementLiteProto_(r);l.length&&GJc(w,l);l=r.getElement();this.isVisible_(l,c)?(r.neverShown=!1,r.hidden=!1):w.setVisible(1);bMc(this,r)&&r.traversalOrder_!==void 0&&(l.setAttribute("data-hveid",Number(r.traversalOrder_)),Ci(k.clientVeProto$jscomp$7,oC,2,Di()).length===0&&sLc(r)&&(l.setAttribute("decode-data-ved","1"),l.setAttribute("data-ved",sLc(r)+"")));this.setTimestamp(w);Pp(k.clientVeProto$jscomp$7,
2,oC,w);k.testCodes$jscomp$2=k.testCodes$jscomp$2.concat(r.getTag().testCodes_)}}(e),a);g=new IC;QC(g,e.clientVeProto$jscomp$7.serialize());g.setTestCodeList(e.testCodes$jscomp$2);d.push(g)}return d},ZLc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;f>=0;f--){var g=b[f],k=g.keys().next().value.rootImpressionEventID,l=e.get(k)||[];l.push(g);e.set(k,l)}e.forEach(function(r,w){var x=0,C=[],H=new LC,J=[],O=BC();Ni(H,HA,1,O);H.setParentEventId(w);var R=new JC;Ni(R,HA,1,w);Ni(H,JC,9,R);for(R=0;R<
r.length;R++)for(var V=r[R],ca=V.keys(),oa=ca.next().value,ua=V.get(oa),ka={},Ga=0;Ga<ua.length;ka={startingOffset:void 0,cloneTreeRootIndex:void 0},++Ga){var ja=oa;ka.cloneTreeRootIndex=0;ka.startingOffset=ua[Ga];var ta=V.size;Ga!=ua.length-1&&(ta=ua[Ga+1]);for(var xa=ka.startingOffset;xa<ta;++xa){var Sa=ca.next().value;xa==ka.startingOffset&&(ja=Sa,ka.cloneTreeRootIndex=x);Sa.impressionEventID=O;Sa.rootImpressionEventID=w;Sa.traversalOrder_=x;var $a=V.get(Sa),pb=this.getVisualElementLiteProto_(Sa);
$a.length&&GJc(pb,$a.map(function(Xb){return function(lc){return lc-Xb.startingOffset+Xb.cloneTreeRootIndex}}(ka)));$a=Sa.getElement();this.isVisible_($a,c)?(Sa.neverShown=!1,Sa.hidden=!1):pb.setVisible(1);this.setTimestamp(pb);Pp(H,2,oC,pb);J=J.concat(Sa.getTag().testCodes_);x++}ka=new KC;ka.setType(3);ta=aMc(oa);ka.setTarget(ta);ta=new nC;xa=new mC;Sa=new MC;xa.setVeIndex(ja.traversalOrder_);CJc(xa,ja.getTag().getID());Yo(ta,2,EJc,xa);Ni(ka,nC,3,ta);this.enableAncestryLoggingForGrafts_&&(NLc(Sa,
this.getAncestry_(ja)),Iv(ka,OLc,Sa));C.push(ka)}C.length&&(r=new KLc,Oi(r,1,C),Ni(H,KLc,7,r));C=new IC;QC(C,H.serialize());C.setTestCodeList(J);d.push(C)},a);return d},$Lc=function(a,b,c){for(var d=[],e=b.length-1;e>=0;e--)for(var f=b[e],g=f.keys(),k=g.next().value,l=f.get(k),r={},w=0;w<l.length;r={startingOffset$jscomp$1:void 0},++w){r.startingOffset$jscomp$1=l[w];var x=f.size;w!=l.length-1&&(x=l[w+1]);var C=new LC,H=[],J=BC(),O=new JC;Ni(O,HA,1,k.impressionEventID);Ni(C,HA,1,J);C.setParentEventId(k.impressionEventID);
Hn(C,5,3);Ni(C,JC,9,O);O=new pC;k.serverVed_?O.setVed(k.serverVed_):O.setUiType(k.getTag().getID()).setVeIndex(k.traversalOrder_);HJc(O,a.getAncestry_(k));C.setRequestContext(O);for(O=r.startingOffset$jscomp$1;O<x;++O){var R=g.next().value;R.impressionEventID=J;R.rootImpressionEventID=k.rootImpressionEventID;R.traversalOrder_!=void 0&&(R.traversalOrder_-=r.startingOffset$jscomp$1);var V=f.get(R),ca=a.getVisualElementLiteProto_(R);V.length&&GJc(ca,V.map(function(oa){return function(ua){return ua-oa.startingOffset$jscomp$1}}(r)));
V=R.getElement();a.isVisible_(V,c)?(R.neverShown=!1,R.hidden=!1):ca.setVisible(1);bMc(a,R)&&R.traversalOrder_!==void 0&&(V.setAttribute("data-hveid",Number(R.traversalOrder_)),Ci(C,oC,2,Di()).length===0&&sLc(R)&&(V.setAttribute("decode-data-ved","1"),V.setAttribute("data-ved",sLc(R)+"")));a.setTimestamp(ca);Pp(C,2,oC,ca);H=H.concat(R.getTag().testCodes_)}r=new IC;QC(r,C.serialize());r.setTestCodeList(H);d.push(r)}return d};
Yu.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};Yu.prototype.getVisualElementLiteProto_=function(a){var b=(new oC).setUiType(a.getTag().getID());Number.isFinite(a.getTag().getIndex())&&b.setElementIndex(a.getTag().getIndex());pLc(a.getTag(),b);bMc(this,a)&&(a=new RLc,Pi(a,1,!0),Iv(b,SLc,a));return b};
var aMc=function(a){var b=new nC;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new mC;Yo(b,3,FJc,a.impressionEventID);c.setVeIndex(a.traversalOrder_);CJc(c,a.getTag().getID());Yo(b,2,EJc,c)}return b};
Yu.prototype.setTimestamp=function(a){var b=Date.now();b=Number.isFinite(b)?b.toString():void 0;if(a instanceof pC&&(!X(a,lC,15)||!X(a,lC,15).getExtension(PLc))){var c=new OC,d=new NC,e=X(a,lC,15);e||(e=new lC);Kn(d,1,b);c.setTimestamp(d);Iv(e,PLc,c);Ni(a,lC,15,e)}a instanceof oC&&(c=new OC,d=new NC,Kn(d,1,b),c.setTimestamp(d),Iv(a,QLc,c))};var bMc=function(a,b){return a.enableAttentionLogging_?oLc(b.getTag(),"hover")||oLc(b.getTag(),"attention"):!1};var cMc=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("Fb`"+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("Gb`"+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 eMc=function(a,b,c){var d=String(ra.location.href);return d&&a&&b?[b,dMc(cMc(d),a,c||null)].join(" "):null},dMc=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],Ja(d,function(k){e.push(k)}),fMc(e.join(" "));var f=[],g=[];Ja(c,function(k){g.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=f.length==0?[c,b,a]:[f.join(":"),c,b,a];Ja(d,function(k){e.push(k)});a=fMc(e.join(" "));a=[c,a];g.length==0||a.push(g.join(""));return a.join("_")},fMc=function(a){var b=
Eua();b.update(a);return b.digestString().toLowerCase()};var gMc=function(){this.document_=document||{cookie:""}};h=gMc.prototype;h.isEnabled=function(){if(!ra.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
h.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("Hb`"+a);if(/[;\r\n]/.test(b))throw Error("Ib`"+b);k===void 0&&(k=-1);c=f?";domain="+f:"";g=g?";path="+g:"";d=d?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.document_.cookie=a+"="+b+c+g+k+d+(e!=null?";samesite="+e:"")};
h.get=function(a,b){for(var c=a+"=",d=this.getParts_(),e=0,f;e<d.length;e++){f=Aa(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};h.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};h.getKeys=function(){return hMc(this).keys};h.getValues=function(){return hMc(this).values};h.isEmpty=function(){return!this.document_.cookie};h.getCount=function(){return this.document_.cookie?this.getParts_().length:0};
h.containsKey=function(a){return this.get(a)!==void 0};h.clear=function(){for(var a=hMc(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};h.getParts_=function(){return(this.document_.cookie||"").split(";")};var hMc=function(a){a=a.getParts_();for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Aa(a[f]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var iMc=function(a,b,c,d){(a=ra[a])||typeof document==="undefined"||(a=(new gMc).get(b));return a?eMc(a,c,d):null},mqc=function(a){var b=cMc(ra==null?void 0:ra.location.href),c=[],d;(d=ra.__SAPISID||ra.__APISID||ra.__3PSAPISID||ra.__1PSAPISID||ra.__OVERRIDE_SID)?d=!0:(typeof document!=="undefined"&&(d=new gMc,d=d.get("SAPISID")||d.get("APISID")||d.get("__Secure-3PAPISID")||d.get("__Secure-1PAPISID")),d=!!d);d&&(d=(b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==
0||b.indexOf("moz-extension:")==0)?ra.__SAPISID:ra.__APISID,d||typeof document==="undefined"||(d=new gMc,d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID")),(d=d?eMc(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d),b&&((b=iMc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=iMc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a)));return c.length==0?null:c.join(" ")};var jMc=function(){this.minSize=1024},kMc=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),z(f,d.write((new TextEncoder).encode(a)),2);case 2:return z(f,d.close(),3);case 3:return e=Uint8Array,z(f,c,4);case 4:return f.return(new e(f.yieldResult))}})};jMc.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var RC=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return Date.now()};this.lastTimeMs=this.nowFn()};RC.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};RC.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
RC.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};RC.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 lMc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lMc,W);lMc.prototype.getTransmissionType=function(){return xi(this,1)};lMc.prototype.setTransmissionType=function(a){return Hn(this,1,a)};var Iua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iua,W);Iua.prototype.getVersion=function(){return vi(this,2)};Iua.prototype.setVersion=function(a){return pj(this,2,a)};Iua.prototype.getVersionOrUndefined=function(){return Lw(this,2)};var SC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SC,W);var Hua=function(a){Oi(Jua,1,a)};SC.prototype.setPlatform=function(a){pj(this,3,a)};SC.prototype.setModel=function(a){return pj(this,6,a)};var mMc=wi(SC);var TC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TC,W);TC.prototype.getLocale=function(){return vi(this,5)};TC.prototype.setLocale=function(a){pj(this,5,a)};TC.prototype.setBuildLabel=function(a){pj(this,7,a)};var Fua=["platform","platformVersion","architecture","model","uaFullVersion"],Jua=new SC,Gua=null;var UC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UC,W);UC.prototype.getClientType=function(){return xi(this,1)};UC.prototype.setClientType=function(){return Hn(this,1,1)};UC.prototype.getMutableJsClientInfo=function(){return Ji(this,TC,11)};var nMc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,19)};Y(nMc,W);h=nMc.prototype;h.getMutableClientInfo=function(){return Ji(this,UC,1)};h.setClientInfo=function(a){Ni(this,UC,1,a)};h.getLogSource=function(){return xi(this,2,-1)};h.setLogSource=function(a){return Hn(this,2,a)};h.getComplianceData=function(){return X(this,PC,18)};h.setComplianceData=function(a){Ni(this,PC,18,a)};var oMc=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 nMc;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new UC)};h=oMc.prototype;h.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
h.setClientInfo=function(a){this.logRequest.setClientInfo(a);a.getClientType()||a.setClientType();this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),X(a,SC,9)||Ni(a,SC,9,this.uach))};h.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};h.setTransmissionType=function(a){this.transmissionType=a;return this};
h.getMutableClientInfo=function(){var a=X(this.logRequest,UC,1);a||(a=new UC,this.setClientInfo(a));return a};var pMc=function(a){var b=b===void 0?Fua:b;var c=a.isServiceWorkerScope?void 0:Bu();c?Kua(c,b).then(function(d){a.uach=mMc(d!=null?d:"[]");d=a.getMutableJsClientInfo();Ni(d,SC,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};oMc.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=X(a,TC,11);b||(b=new TC,Ni(a,TC,11,b));return b};
oMc.prototype.getComplianceData=function(a){var b=new WLc;a=Fn(b,13,a);b=new XLc;a=Ni(b,WLc,2,a);b=new PC;a=Ni(b,XLc,1,a);return Hn(a,2,9)};
oMc.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;c=c===void 0?0:c;d=d===void 0?null:d;e=e===void 0?0:e;f=f===void 0?0:f;if(!this.isServiceWorkerScope){var g=this.getMutableJsClientInfo();var k=(new lMc).setTransmissionType(this.transmissionType);k=Pi(k,2,this.isFinal);c=Fn(k,3,c>0?c:void 0);c=Fn(c,4,e>0?e:void 0);c=Fn(c,5,f>0?f:void 0);c=Yda(c);Ni(g,lMc,10,c)}g=this.logRequest.clone();c=Date.now().toString();g=Kn(g,4,c);a=Oi(g,3,a.slice());d&&a.setComplianceData(this.getComplianceData(d));
b&&wn(a,14,b);return a};Lua.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};Lua.prototype.getValue=function(){return this.currValue_};var VC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VC,W);VC.prototype.getId=function(a){return Nw(this,1,a)};VC.prototype.setId=function(a){return Vw(this,1,a)};var WC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,8)};Y(WC,W);WC.prototype.getExperiments=function(){return X(this,VC,2)};WC.prototype.setExperiments=function(a){return Ni(this,VC,2,a)};WC.prototype.hasExperiments=function(){return yi(this,VC,2)};var qMc=wi(WC);var rMc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rMc,W);var sMc=new rA(175237375,WC,rMc);var XC=function(a){BB.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 oMc(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&&!!Bu()&&!!Bu().navigator&&Bu().navigator.sendBeacon!==void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(tMc())).searchParams&&!!(new URL(tMc())).searchParams.set;var c=(new UC).setClientType();this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new Lua(1E4);a=uMc(this,a.backgroundJobDeferrer);this.flushTimer=new RC(this.flushBackoff.getValue(),
a);this.backupTimer=new RC(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){vMc(b);var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){vMc(b);var d;(d=b.metalogService)==null||d.flush()}))};Y(XC,BB);var uMc=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
h=XC.prototype;h.disposeInternal=function(){vMc(this);this.flushTimer.stop();this.backupTimer.stop();BB.prototype.disposeInternal.call(this)};h.setClearcutUrl=function(a){this.clearcutUrl=a};h.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};h.getClearcutUrl=function(){this.clearcutUrl||(this.clearcutUrl=tMc());try{return(new URL(this.clearcutUrl)).toString()}catch(a){return(new URL(this.clearcutUrl,Bu().location.origin)).toString()}};
h.dispatch=function(a){if(a instanceof IC)this.log(a);else try{var b=HLc(new IC,a.serialize());this.log(b)}catch(c){YC(this,4,1)}};h.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};h.setComponentId=function(a){this.componentId=a};h.setProductID=function(a){this.productID=a};h.setPageId=function(a){this.pageId=a};h.setOpaqueExperimentIds=function(a){this.experimentIds||(this.experimentIds=new ULc);var b=this.experimentIds;a=[].concat(q(a));xc(b,2,a,mea)};
h.setClearExperimentIds=function(a){if(a){this.experimentIds||(this.experimentIds=new ULc);var b=this.experimentIds;a=a.serialize();pj(b,4,a)}else this.experimentIds&&Aw(this.experimentIds,4)};h.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment=a};h.setCompressor=function(a){this.compressor=a};h.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};h.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;wMc(this,a)};h.getLogSource=function(){return this.logSource};
var wMc=function(a,b){a.flushBackoff=new Lua(b<1?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())},YC=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
XC.prototype.log=function(a){YC(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=wn(a,21,b);this.componentId&&a.setComponentId(this.componentId);b=a;if(Pb(fm(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";Kn(b,1,c)}on(b,15)||wn(b,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&b.setExperimentIds(this.experimentIds.clone());YC(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,
b),this.numLogsDroppedSinceLastFlush+=b,YC(this,3,b));this.pendingEvents.push(a);this.maybeStartFlushTimer()}};XC.prototype.maybeStartFlushTimer=function(){this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
XC.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),xMc(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?this.logRequestBuilder.setTransmissionType(this.network.getTransmissionType()):this.logRequestBuilder.setTransmissionType(0));var e=this.pendingEvents.length,
f=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),g=this.getAuthHeaderValue();if(g&&this.lastFailedAuth===g)b&&b("stale-auth-token");else if(this.pendingEvents=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment)a&&a();else{d=f.serialize();var k;this.compressor&&this.compressor.isSupported(d.length)&&
(k=kMc(d));var l=this.createRequestParams(d,g),r=function(C){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(C){var H=null;try{var J=JSON.stringify(JSON.parse(C.replace(")]}'\n","")));H=qMc(J)}catch(O){}H&&(C=Number(pn(H,1,mb("-1"))),C>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+C),H=Gyc(H,sMc))&&(H=Cm(H,1,-1),H!==-1&&(c.clientSpecifiedFlushInterval||wMc(c,H)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},w=function(C,H){var J=Ci(f,IC,3,Di());
var O=Number(pn(f,14)),R=c.flushBackoff;R.currBaseValue_=Math.min(3E5,R.currBaseValue_*2);R.currValue_=Math.min(3E5,R.currBaseValue_+Math.round(.1*(Math.random()-.5)*2*R.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());C===401&&g&&(c.lastFailedAuth=g);O&&(c.numLogsDroppedSinceLastFlush+=O);H===void 0&&(H=500<=C&&C<600||C===401||C===0);H&&(c.pendingEvents=J.concat(c.pendingEvents),c.maybeStartFlushTimer());YC(c,7,1);b&&b("net-send-failed",C);++c.numRetriesSinceLastSuccessfulFlush},
x=function(){c.network&&c.network.send(l,r,w)};k?k.then(function(C){YC(c,5,e);l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=C;l.bodyType=2;x()},function(){YC(c,6,e);x()}):x()}}}};
XC.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 vMc=function(a){a.clientSideLogOnlyForDevelopment||(a.logRequestBuilder.isFinal=!0,a.useSendBeaconForFinalFlush&&(a.logRequestBuilder.setTransmissionType(3),xMc(a)),a.useGetRequestForFinalFlush&&(a.logRequestBuilder.setTransmissionType(2),yMc(a)),a.flush(),a.logRequestBuilder.isFinal=!1)},xMc=function(a){zMc(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=Bu().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},
yMc=function(a){zMc(a,6,5,function(b,c){b=new URL(b);b.searchParams.set("format","base64json");var d=b.searchParams,e=d.set;c=c.serialize();for(var f=[],g=0,k=0;k<c.length;k++){var l=c.charCodeAt(k);l>255&&(f[g++]=l&255,l>>=8);f[g++]=l}c=Uxc(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},zMc=function(a,b,c,d){if(a.pendingEvents.length!==0){var e=new URL(a.getClearcutUrl());e.searchParams.delete("format");var f=a.getAuthHeaderValue();f&&e.searchParams.set("auth",
f);e.searchParams.set("authuser",a.sessionIndex||"0");for(f=0;f<c&&a.pendingEvents.length;++f){var g=a.pendingEvents.slice(0,b),k=a.logRequestBuilder.build(g,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!d(e.toString(),k)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=
a.pendingEvents.slice(g.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},tMc=function(){return"https://play.google.com/log?format=json&hasfast=true"};XC.prototype.setBufferSize=function(a){this.bufferSize=a};var AMc=function(){this.abortSupported=typeof AbortController!=="undefined"};
AMc.prototype.send=function(a,b,c){var d=this,e,f,g,k,l,r,w,x,C,H;return y(function(J){switch(J.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,Yd(J,2,3),g=Object.assign({},{method:a.requestType,headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),z(J,fetch(a.url,g),5);case 5:k=J.yieldResult;if(k.status!==200){(l=c)==
null||l(k.status);J.jumpTo(3);break}if((r=b)==null){J.jumpTo(7);break}return z(J,k.text(),8);case 8:r(J.yieldResult);case 7:case 3:Zd(J);clearTimeout(f);ae(J,0);break;case 2:w=be(J);switch((x=w)==null?void 0:x.name){case "AbortError":(C=c)==null||C(408);break;default:(H=c)==null||H(400)}J.jumpTo(3)}})};AMc.prototype.getTransmissionType=function(){return 4};var ZC=function(a,b){b=b===void 0?"0":b;BB.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(ZC,BB);h=ZC.prototype;h.setBuildLabel=function(a){this.buildLabel=a};h.setCompressor=function(a){this.compressor=a};h.setComponentId=function(a){this.componentId=a;return this};h.setProductID=function(a){this.productID=a};h.setClearExperimentIds=function(a){this.clearExperimentIds=a};h.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds=a};var BMc=function(a,b){a.getAuthHeaderValue=b};h=ZC.prototype;
h.setClearcutClientInfo=function(a){this.clearcutClientInfo=a};h.useSendBeaconForFinalFlush=function(){this.sendBeaconForFinalFlush=!0;return this};h.useGetRequestForFinalFlush=function(){this.getRequestForFinalFlush=!0;return this};h.setFlushIntervalMs=function(a){this.flushIntervalMs=Math.max(a,1E3)};h.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};h.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
h.setPageId=function(a){this.pageId=a};h.setBufferSize=function(a){this.bufferSize=a};
h.build=function(){this.network||(this.network=new AMc);var a=new XC({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:mqc,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});ut(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 jMc);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);pMc(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 CMc=function(){},DMc=function(){};var EMc=Symbol("Kb"),qj=function(a,b,c){c=c===void 0?null:c;this.tracker=null;a&&(this.tracker=FMc(a))&&(HC(this.tracker,"click",3,"generic_click"),HC(this.tracker,"dragstart",30),HC(this.tracker,"drop",37),HC(this.tracker,"hover",9),HC(this.tracker,"input_text",15),HC(this.tracker,"key_press",32));b&&(this.visualElementLookup=b.getVisualElementLookup());this.runOutsideAngular=c?c.runOutsideAngular.bind(c):Zone.root.run.bind(Zone.root);qj.lastEventTrackerInstalled||(qj.lastEventTrackerInstalled=!0,
this.runOutsideAngular(function(){window.addEventListener("click",function(d){qj.lastWindowEvent=d},{capture:!0});window.addEventListener("mouseenter",function(d){qj.lastWindowEvent=d},{capture:!0})}))};qj.prototype.addInteractionEventListener=function(a){this.tracker&&this.tracker.addInteractionEventListener(a)};qj.prototype.removeInteractionEventListener=function(a){this.tracker&&this.tracker.removeInteractionEventListener(a)};
var HMc=function(a,b,c){a.runOutsideAngular(function(){a.tracker&&a.visualElementLookup&&(GMc(a,b,c),c.trackImpression&&a.tracker.logImpressions())})};qj.prototype.logEvent=function(a,b,c){this.tracker&&this.tracker.logEvent(a,b,c)};
var GMc=function(a,b,c){a:if(a=a.visualElementLookup,c.visualElementId)a=c.visualElementId;else{if(a)if(c.visualElementName)if(a=a[c.visualElementName],a===0)console.warn("ID was never assigned for VE with name: "+c.visualElementName);else{if(a)break a;console.warn("Cannot find VE with name: "+c.visualElementName)}else console.warn("No ID or name found in config.");else console.warn("No ID found in config and no VisualElementLookup was set.");a=void 0}var d=a;d!==void 0&&(a=[],c.trackClick&&a.push("generic_click"),
c.trackImpression&&a.push("impression"),c.trackDrag&&a.push("dragstart"),c.trackDrop&&a.push("drop"),c.trackHover&&a.push("hover"),c.trackAttention&&a.push("attention"),c.trackInputText&&a.push("input_text"),c.trackKeyPress&&a.push("key_press"),c.trackKeyboardEnter&&a.push("keyboard_enter"),c.trackVisibility&&a.push("vis"),d=d.toString(),a.length&&(d+=";track:"+a.join(",")),c.metadata&&(d+=";"+c.metadata),c.mutable&&(d+=";mutable:true"),c.componentId&&(d+=";cid:"+c.componentId),c.index!=null&&(d+=
";index:"+c.index),b.nativeElement.setAttribute("jslog",d),b.nativeElement[EMc]=c)};qj.prototype.logSyntheticEvent=function(a,b,c){this.tracker&&this.tracker.logSyntheticEvent(a,b,c)};qj.prototype.logSemanticInteraction=function(a){this.tracker&&this.tracker.logSemanticInteraction(a)};qj.prototype.log=function(a){this.tracker&&this.tracker.log(a)};
var IMc=function(a,b,c,d){qj.lastWindowEvent&&qj.lastWindowEvent!==d&&(qj.lastWindowEvent.type==="click"&&c.trackClick&&Mua(b)&&a.logEvent("click",b),qj.lastWindowEvent.type==="mouseenter"&&c.trackHover&&Mua(b)&&a.logEvent("hover",b))};qj.lastEventTrackerInstalled=!1;qj.lastWindowEvent=null;qj.\u0275fac=function(a){return new (a||qj)($c(CMc,8),$c(DMc,8),$c(Rg,8))};qj.\u0275prov=Fc({token:qj,factory:qj.\u0275fac,providedIn:"root"});var JMc="click mouseenter dragstart drop keydown input".split(" "),$C=function(a,b,c){var d=this;this.veLoggingService=a;this.document=b;this.ngZone=c;this.handleDomEvent=function(e){for(var f=e.target;f;f=f.parentElement){var g=f[EMc];if(g){var k=Nua(g.interactionMetadata);switch(e.type){case "click":g.trackClick&&d.logEvent("click",f,k);break;case "mouseenter":g.trackHover&&d.logEvent("hover",f,k);break;case "dragstart":g.trackDrag&&d.logEvent("dragstart",f,k);break;case "drop":g.trackDrop&&d.logEvent("drop",
f,k);break;case "keydown":g.trackKeyPress&&d.logEvent("key_press",f,k);break;case "input":g.trackInputText&&d.logEvent("input_text",f,k);break;default:console.warn("No GIL binding for events of type "+e.type)}}}};this.ngZone.runOutsideAngular(function(){for(var e=m(JMc),f=e.next();!f.done;f=e.next())d.document.addEventListener(f.value,d.handleDomEvent,{capture:!0})})};
$C.prototype.logEvent=function(a,b,c){if(a!=="input_text"||this.previousInputTextEventTarget!==b)this.veLoggingService.logEvent(a,b,c),this.previousInputTextEventTarget=a==="input_text"?b:void 0};$C.prototype.ngOnDestroy=function(){var a=this;this.ngZone.runOutsideAngular(function(){for(var b=m(JMc),c=b.next();!c.done;c=b.next())a.document.removeEventListener(c.value,a.handleDomEvent,{capture:!0})});$C.instance=void 0};$C.\u0275fac=function(a){return new (a||$C)($c(qj),$c(Sh),$c(Rg))};
$C.\u0275prov=Fc({token:$C,factory:$C.\u0275fac});var KMc=new fd("VE config");var LMc=function(){var a=this;this.veMetadataObject=Og.apply(null,q([]));this.veEncoder=Og.apply(null,[Vxc].concat(q([])));this.veKey=Og.apply(null,["0"].concat(q([])));this.value=Zg.apply(null,[function(){var b=a.veMetadataObject();if(!b)return"";b=b.serialize();if(b==="")return"";b=a.veEncoder()(b);return b===""?"":a.veKey()+":"+b}].concat(q([])))};LMc.\u0275fac=function(a){return new (a||LMc)};
LMc.\u0275dir=df({type:LMc,selectors:[["","veMetadataObject",""]],inputs:{veMetadataObject:[1,"veMetadataObject"],veEncoder:[1,"veEncoder"],veKey:[1,"veKey"]},exportAs:["veMetadataLoggingDirective"]});var aD=function(a,b,c,d,e,f,g){var k=this;this.el=a;this.loggingService=b;this.ngZone=c;this.renderer=d;this.globalEventListenerService=e;this.veLoggingConfig=f;this.veMetadataLoggingDirective=g;this.veMetadata="";this.veKeyPress=this.veInputText=this.veAttention=this.veHover=this.veDrop=this.veDrag=this.veClick=this.veVisibility=this.veImpression=this.veMutable=!1;this.unregisterFunctions=[];this.lastEvent=null;this.ignoreInputTextEvent=!1;this.resetIgnoreInputTextEvent=function(){k.ignoreInputTextEvent=
!1}};h=aD.prototype;h.onClick=function(a){this.veClick&&(this.logEvent("click"),this.lastEvent=a)};h.onDrag=function(){this.veDrag&&this.logEvent("dragstart")};h.onDropOn=function(){this.veDrop&&this.logEvent("drop")};h.onKeyDown=function(){this.veKeyPress&&this.logEvent("key_press")};h.onMouseEnter=function(a){this.veHover&&(this.logEvent("hover"),this.lastEvent=a)};h.onInput=function(){this.veInputText&&!this.ignoreInputTextEvent&&(this.logEvent("input_text"),this.ignoreInputTextEvent=!0)};
h.logSyntheticEvent=function(a){this.config&&this.config.visualElementId&&this.loggingService.logSyntheticEvent(a,new DC(this.config.visualElementId),this.el.nativeElement)};h.logEvent=function(a){this.loggingService.logEvent(a,this.el.nativeElement,Nua(this.veInteractionMetadata))};var MMc=function(a){if(!a.veMetadataLoggingDirective)return a.veMetadata;var b=a.veMetadataLoggingDirective.value();if(b==="")return a.veMetadata;if(a.veMetadata!=="")throw Error("Lb");return b};h=aD.prototype;
h.ngOnInit=function(){var a=this;this.trackEventsInDirective&&this.ngZone.runOutsideAngular(function(){var b=a.el.nativeElement;a.unregisterFunctions=[a.renderer.listen(b,"click",a.onClick.bind(a)),a.renderer.listen(b,"dragstart",a.onDrag.bind(a)),a.renderer.listen(b,"drop",a.onDropOn.bind(a)),a.renderer.listen(b,"keydown",a.onKeyDown.bind(a)),a.renderer.listen(b,"input",a.onInput.bind(a)),a.renderer.listen(b,"mouseenter",a.onMouseEnter.bind(a))]});this.veMetadata=MMc(this);this.config=this.getConfig();
HMc(this.loggingService,this.el,this.config);this.veInputText&&this.trackEventsInDirective&&this.loggingService.addInteractionEventListener(this.resetIgnoreInputTextEvent)};
h.getConfig=function(){var a;return{componentId:(a=this.veLoggingConfig)==null?void 0:a.componentId,metadata:this.veMetadata,interactionMetadata:this.veInteractionMetadata,mutable:this.veMutable,trackClick:this.veClick,trackDrag:this.veDrag,trackDrop:this.veDrop,trackHover:this.veHover,trackAttention:this.veAttention,trackInputText:this.veInputText,trackImpression:this.veImpression,trackVisibility:this.veVisibility,trackKeyPress:this.veKeyPress,visualElementId:this.ve,index:this.veIndex}};
h.updateConfig=function(){var a;if((a=this.config)==null?0:a.mutable)this.config=this.getConfig(),this.config.mutable=!0,GMc(this.loggingService,this.el,this.config)};h.ngOnChanges=function(){this.updateConfig()};
h.ngOnDestroy=function(){var a=this;this.config&&this.trackEventsInDirective&&IMc(this.loggingService,this.el.nativeElement,this.config,this.lastEvent);this.veInputText&&this.trackEventsInDirective&&this.loggingService.removeInteractionEventListener(this.resetIgnoreInputTextEvent);this.ngZone.runOutsideAngular(function(){for(var b=m(a.unregisterFunctions),c=b.next();!c.done;c=b.next())c=c.value,c()})};
da.Object.defineProperties(aD.prototype,{trackEventsInDirective:{configurable:!0,enumerable:!0,get:function(){var a;return this.globalEventListenerService==null&&!((a=this.veLoggingConfig)==null?0:a.disableDirectives)}}});aD.\u0275fac=function(a){return new (a||aD)(Ye(Jd),Ye(qj),Ye(Rg),Ye(di),Ye($C,8),Ye(KMc,8),Ye(LMc,8))};
aD.\u0275dir=df({type:aD,selectors:[["","ve",""]],inputs:{ve:"ve",veMetadata:"veMetadata",veInteractionMetadata:"veInteractionMetadata",veMutable:"veMutable",veImpression:"veImpression",veVisibility:"veVisibility",veClick:"veClick",veDrag:"veDrag",veDrop:"veDrop",veHover:"veHover",veAttention:"veAttention",veInputText:"veInputText",veKeyPress:"veKeyPress",veIndex:"veIndex"},exportAs:["veLoggingDirective"],features:[bx]});var bD=function(){};bD.\u0275fac=function(a){return new (a||bD)};bD.\u0275mod=cf({type:bD});bD.\u0275inj=Hc({});var NMc=new fd("DUCKIE_VE_CONFIG",{providedIn:"root",factory:function(){return{logSource:0,veIds:{}}}}),cD=function(){this.config=p(NMc)},FMc=function(a){a=new GC(new Yu,null,(new ZC(a.config.logSource,"0")).build());FLc(a);return a},am=function(a,b,c){c=new JJc(c);KJc(c,b);FMc(a).logSemanticInteraction(c)},dD=function(a,b,c){var d=c.id;d&&(c=c.sessionId,d=(new cm).setMessageId(d),c&&d.setSessionId(c),d=bm(d),am(a,d,b))};cD.\u0275fac=function(a){return new (a||cD)};
cD.\u0275prov=Fc({token:cD,factory:cD.\u0275fac,providedIn:"root"});var OMc=function(){};var sj=function(){this.Serializable$values={}},rj=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},eD=function(a,b){return a.Serializable$values[b]!=null};var PMc=function(){};var QMc=function(a,b){this.requestService=a;this.hookFactory=b===void 0?null:b};Y(QMc,PMc);
var RMc=function(a,b,c){var d=Oua(a.hookFactory,b);return d==null?c:ue.pipe(Cf({complete:function(){d.onBeforeSend()}}),cla(c.pipe(Cf(function(e){d.onSuccess(e)},function(e){d.onError(e)}))),qf(function(){var e;(e=d.onFinalize)==null||e.call(d)}))},SMc=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof sj?Tua(b.body,Qua,Rua,Sua):b.body;return RMc(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 TMc=function(){};TMc.prototype.send=function(a,b){ava(a);return this.makeRequest(a).pipe(A(function(c){return b?Xua(b,c):c}))};var fD={COMMON_MARK_MARKDOWN_FLAVOR:"COMMON_MARK_MARKDOWN_FLAVOR",GITHUB_FLAVORED_MARKDOWN_FLAVOR:"GITHUB_FLAVORED_MARKDOWN_FLAVOR",GOOGLE_FLAVORED_MARKDOWN_FLAVOR:"GOOGLE_FLAVORED_MARKDOWN_FLAVOR",UNKNOWN:"UNKNOWN",values:function(){return[fD.UNKNOWN,fD.COMMON_MARK_MARKDOWN_FLAVOR,fD.GITHUB_FLAVORED_MARKDOWN_FLAVOR,fD.GOOGLE_FLAVORED_MARKDOWN_FLAVOR]}},gD={ALL:"ALL",BUGANIZER:"BUGANIZER",COMMON:"COMMON",EXTENDED:"EXTENDED",ISSUETRACKER:"ISSUETRACKER",LEGACY_G3DOC:"LEGACY_G3DOC",NONE:"NONE",values:function(){return[gD.NONE,
gD.COMMON,gD.EXTENDED,gD.ALL,gD.BUGANIZER,gD.ISSUETRACKER,gD.LEGACY_G3DOC]}},UMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown};Y(UMc,sj);UMc.prototype.getPartialClassMetadata=function(){return{keys:["markdown"]}};da.Object.defineProperties(UMc.prototype,{markdown:{configurable:!0,enumerable:!0,get:function(){return eD(this,"markdown")?rj(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=a}}});
var VMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown;this.Serializable$values.markdownFlavor=a.markdownFlavor==null?null:a.markdownFlavor;this.Serializable$values.allowStyle=a.allowStyle==null?null:a.allowStyle;this.Serializable$values.escapeHtml=a.escapeHtml==null?null:a.escapeHtml;this.Serializable$values.sourcePos=a.sourcePos==null?null:a.sourcePos;this.Serializable$values.shortlinkSet=a.shortlinkSet==null?null:a.shortlinkSet;
this.Serializable$values.highlight=a.highlight==null?null:a.highlight;this.Serializable$values.graphviz=a.graphviz==null?null:a.graphviz;this.Serializable$values.allowListedTags=a.allowListedTags==null?null:a.allowListedTags};Y(VMc,sj);VMc.prototype.getPartialClassMetadata=function(){return{enums:{markdownFlavor:fD,shortlinkSet:gD},keys:"allowListedTags allowStyle escapeHtml graphviz highlight markdown markdownFlavor shortlinkSet sourcePos".split(" ")}};
da.Object.defineProperties(VMc.prototype,{allowListedTags:{configurable:!0,enumerable:!0,get:function(){return eD(this,"allowListedTags")?rj(this,"allowListedTags"):null},set:function(a){this.Serializable$values.allowListedTags=a}},allowStyle:{configurable:!0,enumerable:!0,get:function(){return eD(this,"allowStyle")?rj(this,"allowStyle"):null},set:function(a){this.Serializable$values.allowStyle=a}},escapeHtml:{configurable:!0,enumerable:!0,get:function(){return eD(this,"escapeHtml")?rj(this,"escapeHtml"):
null},set:function(a){this.Serializable$values.escapeHtml=a}},graphviz:{configurable:!0,enumerable:!0,get:function(){return eD(this,"graphviz")?rj(this,"graphviz"):null},set:function(a){this.Serializable$values.graphviz=a}},highlight:{configurable:!0,enumerable:!0,get:function(){return eD(this,"highlight")?rj(this,"highlight"):null},set:function(a){this.Serializable$values.highlight=a}},markdown:{configurable:!0,enumerable:!0,get:function(){return eD(this,"markdown")?rj(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=
a}},markdownFlavor:{configurable:!0,enumerable:!0,get:function(){return eD(this,"markdownFlavor")?rj(this,"markdownFlavor"):null},set:function(a){this.Serializable$values.markdownFlavor=a}},shortlinkSet:{configurable:!0,enumerable:!0,get:function(){return eD(this,"shortlinkSet")?rj(this,"shortlinkSet"):null},set:function(a){this.Serializable$values.shortlinkSet=a}},sourcePos:{configurable:!0,enumerable:!0,get:function(){return eD(this,"sourcePos")?rj(this,"sourcePos"):null},set:function(a){this.Serializable$values.sourcePos=
a}}});var WMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.safeHtml=a.safeHtml==null?null:a.safeHtml};Y(WMc,sj);WMc.prototype.getPartialClassMetadata=function(){return{keys:["safeHtml"],objects:{safeHtml:XMc}}};da.Object.defineProperties(WMc.prototype,{safeHtml:{configurable:!0,enumerable:!0,get:function(){return eD(this,"safeHtml")?rj(this,"safeHtml"):null},set:function(a){this.Serializable$values.safeHtml=a}}});
var XMc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a.privateDoNotAccessOrElseSafeHtmlWrappedValue==null?null:a.privateDoNotAccessOrElseSafeHtmlWrappedValue};Y(XMc,sj);XMc.prototype.getPartialClassMetadata=function(){return{keys:["privateDoNotAccessOrElseSafeHtmlWrappedValue"]}};
da.Object.defineProperties(XMc.prototype,{privateDoNotAccessOrElseSafeHtmlWrappedValue:{configurable:!0,enumerable:!0,get:function(){return eD(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue")?rj(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue"):null},set:function(a){this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a}}});
var YMc=new fd("API_VERSION"),ZMc=new fd("REQUEST_SERVICE for g3mark_service_api_client"),$Mc={$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"},hD=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1":a;this.$apiClient=new QMc(b,c)};
hD.prototype.format=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;return SMc(this.$apiClient,{body:a,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.format",path:"/"+this.gapiVersion+"/G3markService/Format",queryParams:bva(b,$Mc,c),responseCtor:UMc})};
var aNc=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;return SMc(a.$apiClient,{body:b,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.markdownToHtml",path:"/"+a.gapiVersion+"/G3markService/MarkdownToHtml",queryParams:bva(c,$Mc,d),responseCtor:WMc})};hD.\u0275fac=function(a){return new (a||hD)($c(YMc,8),$c(ZMc),$c(OMc,8))};hD.\u0275prov=Fc({token:hD,factory:hD.\u0275fac,providedIn:"root"});var bNc=function(){};
bNc.\u0275fac=function(a){return new (a||bNc)};bNc.\u0275prov=Fc({token:bNc,factory:function(a){return hD.\u0275fac(a)},providedIn:"root"});var iD=function(a){this.g3markApiClient=a},cNc=function(a,b,c){var d=new VMc,e;d.allowStyle=(e=c==null?void 0:c.allowStyle)!=null?e:d.allowStyle;var f;d.escapeHtml=(f=c==null?void 0:c.escapeHtml)!=null?f:d.escapeHtml;var g;d.shortlinkSet=(g=c==null?void 0:c.shortlinkSet)!=null?g:d.shortlinkSet;var k;d.highlight=(k=c==null?void 0:c.highlight)!=null?k:d.highlight;var l;d.graphviz=(l=c==null?void 0:c.graphviz)!=null?l:d.graphviz;d.markdown=b;d.markdownFlavor=fD.GOOGLE_FLAVORED_MARKDOWN_FLAVOR;var r=
Bh(b,{preserveNewlines:!0,preserveTabs:!0,preserveSpaces:!0});a=aNc(a.g3markApiClient,d).pipe(A(function(w){if(w=w.safeHtml)if(w){w=w.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(!w)throw Error("Qb");w=ph(w)}else w=null;else w=r;return w}),jf(function(){return ee(r)}));if(c==null||!c.timeoutMs)return ie(a);c=ee(r).pipe(of(c.timeoutMs));return ie(bia(a,c))};iD.\u0275fac=function(a){return new (a||iD)($c(bNc))};iD.\u0275prov=Fc({token:iD,factory:iD.\u0275fac});/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var dNc=!!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString())||HTMLElement.es5Shimmed||ra.Reflect===void 0||ra.customElements===void 0||ra.customElements.polyfillWrapFlushCallback||!1,eNc,fNc=function(){var a=HTMLElement;if(dNc)return a;if(eNc!==void 0)return eNc;var b=ra.Reflect,c=function(){return b.construct(a,[],this.constructor)};c.prototype=a.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,a);return eNc=c},gNc=!1;var hNc=ra.ShadowRoot&&(ra.ShadyCSS===void 0||ra.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,iNc=Symbol(),jNc=new WeakMap,kNc=function(a,b,c){this._$cssResult$=!0;if(c!==iNc)throw Error("Rb");this.cssText=a;this._strings=b};kNc.prototype.toString=function(){return this.cssText};
da.Object.defineProperties(kNc.prototype,{styleSheet:{configurable:!0,enumerable:!0,get:function(){var a=this._styleSheet,b=this._strings;if(hNc&&a===void 0){var c=b!==void 0&&b.length===1;c&&(a=jNc.get(b));a===void 0&&((this._styleSheet=a=new CSSStyleSheet).replaceSync(this.cssText),c&&jNc.set(b,a))}return a}}});
var lNc=function(a,b){if(hNc)a.adoptedStyleSheets=b.map(function(f){return f instanceof CSSStyleSheet?f:f.styleSheet});else{b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("style"),e=ra.litNonce;e!==void 0&&d.setAttribute("nonce",e);d.textContent=c.cssText;a.appendChild(d)}}},mNc=hNc?function(a){return a}:function(a){if(a instanceof CSSStyleSheet){var b="";a=m(a.cssRules);for(var c=a.next();!c.done;c=a.next())b+=c.value.cssText;b=new kNc(typeof b==="string"?b:
String(b),void 0,iNc)}else b=a;return b};var nNc=function(a){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a=a.ReactiveElement.prototype;globalThis.ShadyDOM&&globalThis.ShadyDOM.inUse&&globalThis.ShadyDOM.noPatch===!0&&globalThis.ShadyDOM.patchElementProto(a);var b=a.createRenderRoot;a.createRenderRoot=function(){var e=this.localName;if(globalThis.ShadyCSS.nativeShadow)return b.call(this);if(!this.constructor.hasOwnProperty("__scoped")){this.constructor.__scoped=!0;var f=this.constructor.elementStyles.map(function(r){return r instanceof
CSSStyleSheet?Array.from(r.cssRules).reduce(function(w,x){return w+x.cssText},""):r.cssText}),g,k;(g=globalThis.ShadyCSS)==null||(k=g.ScopingShim)==null||k.prepareAdoptedCssText(f,e);this.constructor._$handlesPrepareStyles===void 0&&globalThis.ShadyCSS.prepareTemplateStyles(document.createElement("template"),e)}var l;return(l=this.shadowRoot)!=null?l:this.attachShadow(this.constructor.shadowRootOptions)};var c=a.connectedCallback;a.connectedCallback=function(){c.call(this);this.hasUpdated&&globalThis.ShadyCSS.styleElement(this)};
var d=a._$didUpdate;a._$didUpdate=function(e){this.hasUpdated||globalThis.ShadyCSS.styleElement(this);d.call(this,e)}}},oNc;(oNc=globalThis).reactiveElementPolyfillSupport!=null||(oNc.reactiveElementPolyfillSupport=nNc);dNc||gNc||(gNc=!0,ra.HTMLElement=fNc());
var pNc=fNc(),jD=Object,qNc=jD.is,rNc=jD.defineProperty,sNc=jD.getOwnPropertyDescriptor,tNc=jD.getOwnPropertyNames,uNc=jD.getOwnPropertySymbols,vNc=jD.getPrototypeOf,wNc=ra.trustedTypes,xNc=wNc?wNc.emptyScript:"",yNc=ra.reactiveElementPolyfillSupport,zNc={toAttribute:function(a,b){switch(b){case Boolean:a=a?xNc:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute:function(a,b){var c=a;switch(b){case Boolean:c=a!==null;break;case Number:c=a===null?null:Number(a);
break;case Object:case Array:try{c=JSON.parse(a)}catch(d){c=null}}return c}},ANc=function(a,b){return!qNc(a,b)},BNc={attribute:!0,type:String,converter:zNc,reflect:!1,useDefault:!1,hasChanged:ANc},CNc;Symbol.metadata==null&&(Symbol.metadata=Symbol("Sb"));CNc=Symbol.metadata;var DNc=new WeakMap,kD=function(){var a=pNc.call(this)||this;a.__instanceProperties=void 0;a.isUpdatePending=!1;a.hasUpdated=!1;a.__reflectingProperty=null;a.__initialize();return a};Y(kD,pNc);
kD.addInitializer=function(a){this.__prepare();var b;((b=this._initializers)!=null?b:this._initializers=[]).push(a)};kD.createProperty=function(a,b){b=b===void 0?BNc:b;b.state&&(b.attribute=!1);this.__prepare();this.prototype.hasOwnProperty(a)&&(b=Object.create(b),b.wrapped=!0);this.elementProperties.set(a,b);b.noAccessor||(b=this.getPropertyDescriptor(a,Symbol(),b),b!==void 0&&rNc(this.prototype,a,b))};
kD.getPropertyDescriptor=function(a,b,c){var d,e=(d=sNc(this.prototype,a))!=null?d:{get:function(){return this[b]},set:function(k){this[b]=k}},f=e.get,g=e.set;return{get:f,set:function(k){var l=f==null?void 0:f.call(this);g==null||g.call(this,k);ENc(this,a,l,c)},configurable:!0,enumerable:!0}};kD.getPropertyOptions=function(a){var b;return(b=this.elementProperties.get(a))!=null?b:BNc};
kD.__prepare=function(){if(!this.hasOwnProperty("elementProperties")){var a=vNc(this);a.finalize();a._initializers!==void 0&&(this._initializers=[].concat(q(a._initializers)));this.elementProperties=new Map(a.elementProperties)}};
kD.finalize=function(){FNc();if(!this.hasOwnProperty("finalized")){this.finalized=!0;this.__prepare();if(this.hasOwnProperty("properties")){var a=this.properties,b=[].concat(q(tNc(a)),q(uNc(a)));b=m(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.createProperty(c,a[c])}a=this[CNc];if(a!==null&&(a=DNc.get(a),a!==void 0))for(a=m(a),b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,this.elementProperties.set(b,c);this.__attributeToPropertyMap=new Map;a=m(this.elementProperties);
for(b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,c=this.__attributeNameForProperty(b,c),c!==void 0&&this.__attributeToPropertyMap.set(c,b);this.elementStyles=this.finalizeStyles(this.styles)}};kD.finalizeStyles=function(a){var b=[];if(Array.isArray(a)){a=new Set(a.flat(Infinity).reverse());a=m(a);for(var c=a.next();!c.done;c=a.next())b.unshift(mNc(c.value))}else a!==void 0&&b.push(mNc(a));return b};
kD.__attributeNameForProperty=function(a,b){b=b.attribute;return b===!1?void 0:typeof b==="string"?b:typeof a==="string"?a.toLowerCase():void 0};h=kD.prototype;h.__initialize=function(){var a=this;this.__updatePromise=new Promise(function(c){return a.enableUpdating=c});this._$changedProperties=new Map;this.__saveInstanceProperties();ENc(this);var b;(b=this.constructor._initializers)==null||b.forEach(function(c){return c(a)})};
h.__saveInstanceProperties=function(){for(var a=new Map,b=m(this.constructor.elementProperties.keys()),c=b.next();!c.done;c=b.next())c=c.value,this.hasOwnProperty(c)&&(a.set(c,this[c]),delete this[c]);a.size>0&&(this.__instanceProperties=a)};h.createRenderRoot=function(){var a,b=(a=this.shadowRoot)!=null?a:this.attachShadow(this.constructor.shadowRootOptions);lNc(b,this.constructor.elementStyles);return b};
h.connectedCallback=function(){this.renderRoot!=null||(this.renderRoot=this.createRenderRoot());this.enableUpdating(!0);var a;(a=this.__controllers)==null||a.forEach(function(b){var c;return(c=b.hostConnected)==null?void 0:c.call(b)})};h.enableUpdating=function(){};h.disconnectedCallback=function(){var a;(a=this.__controllers)==null||a.forEach(function(b){var c;return(c=b.hostDisconnected)==null?void 0:c.call(b)})};h.attributeChangedCallback=function(a,b,c){this._$attributeToProperty(a,c)};
h.__propertyToAttribute=function(a,b){var c=this.constructor.elementProperties.get(a),d=this.constructor.__attributeNameForProperty(a,c);if(d!==void 0&&c.reflect===!0){var e,f=(((e=c.converter)==null?void 0:e.toAttribute)!==void 0?c.converter:zNc).toAttribute(b,c.type);this.__reflectingProperty=a;f==null?this.removeAttribute(d):this.setAttribute(d,f);this.__reflectingProperty=null}};
h._$attributeToProperty=function(a,b){var c=this.constructor;a=c.__attributeToPropertyMap.get(a);if(a!==void 0&&this.__reflectingProperty!==a){c=c.getPropertyOptions(a);var d,e=typeof c.converter==="function"?{fromAttribute:c.converter}:((d=c.converter)==null?void 0:d.fromAttribute)!==void 0?c.converter:zNc;this.__reflectingProperty=a;b=e.fromAttribute(b,c.type);var f,g;this[a]=(g=b!=null?b:(f=this.__defaultValues)==null?void 0:f.get(a))!=null?g:b;this.__reflectingProperty=null}};
var ENc=function(a,b,c,d){if(b!==void 0){var e=a.constructor,f=a[b];d!=null||(d=e.getPropertyOptions(b));var g,k;if(((k=d.hasChanged)!=null?k:ANc)(f,c)||d.useDefault&&d.reflect&&f===((g=a.__defaultValues)==null?void 0:g.get(b))&&!a.hasAttribute(e.__attributeNameForProperty(b,d)))a._$changeProperty(b,c,d);else return}a.isUpdatePending===!1&&(a.__updatePromise=a.__enqueueUpdate())};
kD.prototype._$changeProperty=function(a,b,c,d){var e=c.useDefault;var f=c.reflect;c=c.wrapped;var g;if(e&&!((g=this.__defaultValues)!=null?g:this.__defaultValues=new Map).has(a)){var k;this.__defaultValues.set(a,(k=d!=null?d:b)!=null?k:this[a]);if(c!==!0||d!==void 0)return}this._$changedProperties.has(a)||(this.hasUpdated||e||(b=void 0),this._$changedProperties.set(a,b));if(f===!0&&this.__reflectingProperty!==a){var l;((l=this.__reflectingProperties)!=null?l:this.__reflectingProperties=new Set).add(a)}};
kD.prototype.__enqueueUpdate=function(){var a=this,b,c;return y(function(d){switch(d.nextAddress){case 1:return a.isUpdatePending=!0,Yd(d,2),z(d,a.__updatePromise,4);case 4:bt(d,3);break;case 2:b=be(d),a.squelchUpdateErrorsDuringLit2Migration||Promise.reject(b);case 3:c=GNc(a);if(c==null){d.jumpTo(5);break}return z(d,c,5);case 5:return d.return(!a.isUpdatePending)}})};
var GNc=function(a){if(a.isUpdatePending){if(!a.hasUpdated){a.renderRoot!=null||(a.renderRoot=a.createRenderRoot());if(a.__instanceProperties){for(var b=m(a.__instanceProperties),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;a[c]=d}a.__instanceProperties=void 0}b=a.constructor.elementProperties;if(b.size>0)for(b=m(b),c=b.next();!c.done;c=b.next()){d=m(c.value);c=d.next().value;d=d.next().value;var e=a[c];d.wrapped!==!0||a._$changedProperties.has(c)||e===void 0||
a._$changeProperty(c,void 0,d,e)}}b=!1;c=a._$changedProperties;try{b=!0;var f;(f=a.__controllers)==null||f.forEach(function(g){var k;return(k=g.hostUpdate)==null?void 0:k.call(g)});a.update(c)}catch(g){throw b=!1,a.__markUpdated(),g;}b&&a._$didUpdate(c)}};kD.prototype._$didUpdate=function(a){var b;(b=this.__controllers)==null||b.forEach(function(c){var d;return(d=c.hostUpdated)==null?void 0:d.call(c)});this.hasUpdated||(this.hasUpdated=!0);this.updated(a)};
kD.prototype.__markUpdated=function(){this._$changedProperties=new Map;this.isUpdatePending=!1};kD.prototype.update=function(){var a=this;this.__reflectingProperties&&(this.__reflectingProperties=this.__reflectingProperties.forEach(function(b){return a.__propertyToAttribute(b,a[b])}));this.__markUpdated()};kD.prototype.updated=function(){};da.Object.defineProperties(kD.prototype,{updateComplete:{configurable:!0,enumerable:!0,get:function(){return this.__updatePromise}}});
da.Object.defineProperties(kD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){this.finalize();return this.__attributeToPropertyMap&&[].concat(q(this.__attributeToPropertyMap.keys()))}}});kD.elementStyles=[];kD.shadowRootOptions={mode:"open"};kD.elementProperties=new Map;kD.finalized=new Map;yNc==null||yNc({ReactiveElement:kD});var FNc=function(){var a;((a=ra.reactiveElementVersions)!=null?a:ra.reactiveElementVersions=[]).push("2.0.4");FNc=function(){}};var HNc={attribute:!0,type:String,converter:zNc,reflect:!1,hasChanged:ANc},eva=function(a,b,c){a=a===void 0?HNc:a;var d=c.kind,e=c.metadata,f=DNc.get(e);f===void 0&&DNc.set(e,f=new Map);d==="setter"&&(a=Object.create(a),a.wrapped=!0);f.set(c.name,a);if(d==="accessor"){var g=c.name;return{set:function(l){var r=b.get.call(this);b.set.call(this,l);ENc(this,g,r,a)},init:function(l){l!==void 0&&this._$changeProperty(g,void 0,a,l);return l}}}if(d==="setter"){var k=c.name;return function(l){var r=this[k];
b.call(this,l);ENc(this,k,r,a)}}throw Error("Tb`"+d);};var INc=function(a,b,c){c.configurable=!0;c.enumerable=!0;Reflect.decorate&&typeof b!=="object"&&Object.defineProperty(a,b,c);return c};var JNc=kw(["about:invalid#zClosurez"]),KNc=iva,LNc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,MNc=vh(Fh(JNc)),gva=function(a){return a},NNc=function(a){return LNc.test(String(a))?a:MNc},lD=function(){return MNc},ONc=function(a){return a instanceof th?vh(a):MNc},hva=new Map([["A href",NNc],["AREA href",NNc],["BASE href",lD],["BUTTON formaction",NNc],["EMBED src",lD],["FORM action",NNc],["FRAME src",lD],["IFRAME src",ONc],["IFRAME srcdoc",function(a){return qh(a)?rh(a):rh(tj)}],["INPUT formaction",
NNc],["LINK href",ONc],["OBJECT codebase",lD],["OBJECT data",lD],["SCRIPT href",ONc],["SCRIPT src",ONc],["SCRIPT text",lD],["USE href",ONc]]);var PNc=new Set,QNc=new Map,RNc=function(a,b){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){var c,d,e=((c=globalThis.ShadyDOM)==null?0:c.inUse)&&((d=globalThis.ShadyDOM)==null?void 0:d.noPatch)===!0?globalThis.ShadyDOM.wrap:function(x){return x},f=function(x){var C=QNc.get(x);C===void 0&&QNc.set(x,C=[]);return C},g=new Map,k=a.createElement;a.createElement=function(x,C){x=k.call(a,x,C);C=C==null?void 0:C.scope;C!==void 0&&(globalThis.ShadyCSS.nativeShadow||
globalThis.ShadyCSS.prepareTemplateDom(x,C),C===void 0||PNc.has(C)||(C=f(C),C.push.apply(C,q(Array.from(x.content.querySelectorAll("style")).map(function(H){var J;(J=H.parentNode)==null||J.removeChild(H);return H.textContent})))));return x};var l=document.createDocumentFragment(),r=document.createComment("");b=b.prototype;var w=b._$setValue;b._$setValue=function(x,C){C=C===void 0?this:C;var H=e(this._$startNode).parentNode,J,O=(J=this.options)==null?void 0:J.scope,R;if((H instanceof ShadowRoot||H===
((R=this.options)==null?void 0:R.renderContainer))&&O!==void 0&&!PNc.has(O)){J=this._$startNode;R=this._$endNode;l.appendChild(r);this._$startNode=r;this._$endNode=null;w.call(this,x,C);x=(x==null?0:x._$litType$)?this._$committedValue._$template.el:document.createElement("template");C=f(O);var V=C.length!==0;if(V){var ca=document.createElement("style");ca.textContent=C.join("\n");x.content.appendChild(ca)}PNc.add(O);QNc.delete(O);globalThis.ShadyCSS.prepareTemplateStyles(x,O);V&&globalThis.ShadyCSS.nativeShadow&&
(O=x.content.querySelector("style"),O!==null&&x.content.appendChild(O));l.removeChild(r);var oa;if((oa=globalThis.ShadyCSS)==null?0:oa.nativeShadow)oa=x.content.querySelector("style"),oa!==null&&l.appendChild(oa.cloneNode(!0));H.insertBefore(l,R);this._$startNode=J;this._$endNode=R}else w.call(this,x,C)};b._$getTemplate=function(x){var C,H=(C=this.options)==null?void 0:C.scope;C=g.get(H);C===void 0&&g.set(H,C=new Map);H=C.get(x.strings);H===void 0&&C.set(x.strings,H=new a(x,this.options));return H}}},
SNc;(SNc=globalThis).litHtmlPolyfillSupport!=null||(SNc.litHtmlPolyfillSupport=RNc);var TNc="";if(globalThis.Symbol){var UNc=Symbol();typeof UNc!=="symbol"&&(TNc=Object.keys(UNc)[0])}var VNc=TNc!=="",WNc=VNc?function(a){return a!=null&&a[TNc]!==void 0}:function(){return!1};if(VNc&&!globalThis.Symbol.for){var XNc=new Map;globalThis.Symbol.for=function(a){XNc.has(a)||XNc.set(a,Symbol(a));return XNc.get(a)}};var YNc,ZNc,$Nc,mD=((YNc=ra.ShadyDOM)==null?0:YNc.inUse)&&(((ZNc=ra.ShadyDOM)==null?void 0:ZNc.noPatch)===!0||(($Nc=ra.ShadyDOM)==null?void 0:$Nc.noPatch)==="on-demand")?ra.ShadyDOM.wrap:function(a){return a},aOc=ra.trustedTypes,kva=aOc?aOc.createPolicy("lit-html",{createHTML:function(a){return a}}):void 0,bOc=function(a){return a},cOc=function(){return bOc},nD="lit$"+Math.random().toFixed(9).slice(2)+"$",dOc="?"+nD,eOc="<"+dOc+">",oD=document,mva=function(a){return a===null||typeof a!="object"&&
typeof a!="function"||WNc(a)},jva=Array.isArray,fOc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gOc=/--\x3e/g,hOc=/>/g,pD=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),iOc=/'/g,jOc=/"/g,kOc=/^(?:script|style|textarea|title)$/i,lOc=function(a){var b=bd.apply(1,arguments),c={};return c._$litType$=1,c.strings=a,c.values=b,c},uj=Symbol.for?Symbol.for("lit-noChange"):Symbol("Vb"),qD=Symbol.for?Symbol.for("lit-nothing"):Symbol("Wb"),
mOc=new WeakMap,rD=oD.createTreeWalker(oD,129),nOc=function(a,b){var c=a.strings;var d=a._$litType$;this.parts=[];for(var e=a=0,f=c.length-1,g=this.parts,k=c.length-1,l=[],r=d===2?"<svg>":d===3?"<math>":"",w,x=fOc,C=0;C<k;C++){for(var H=c[C],J=-1,O=void 0,R=0,V;R<H.length;){x.lastIndex=R;V=x.exec(H);if(V===null)break;R=x.lastIndex;x===fOc?V[1]==="!--"?x=gOc:V[1]!==void 0?x=hOc:V[2]!==void 0?(kOc.test(V[2])&&(w=new RegExp("</"+V[2],"g")),x=pD):V[3]!==void 0&&(x=pD):x===pD?V[0]===">"?(J=void 0,x=(J=
w)!=null?J:fOc,J=-1):V[1]===void 0?J=-2:(J=x.lastIndex-V[2].length,O=V[1],x=V[3]===void 0?pD:V[3]==='"'?jOc:iOc):x===jOc||x===iOc?x=pD:x===gOc||x===hOc?x=fOc:(x=pD,w=void 0)}R=x===pD&&c[C+1].startsWith("/>")?" ":"";r+=x===fOc?H+eOc:J>=0?(l.push(O),H.slice(0,J)+"$lit$"+H.slice(J))+nD+R:H+nD+(J===-2?C:R)}c=[lva(c,r+(c[k]||"<?>")+(d===2?"</svg>":d===3?"</math>":"")),l];c=m(c);w=c.next().value;c=c.next().value;this.el=nOc.createElement(w,b);rD.currentNode=this.el.content;if(d===2||d===3)b=this.el.content.firstChild,
b.replaceWith.apply(b,q(b.childNodes));for(;(b=rD.nextNode())!==null&&g.length<f;){if(b.nodeType===1){if(b.hasAttributes())for(d=m(b.getAttributeNames()),w=d.next();!w.done;w=d.next())w=w.value,w.endsWith("$lit$")?(l=c[e++],k=b.getAttribute(w).split(nD),l=/([.?@])?(.*)/.exec(l),g.push({type:1,index:a,name:l[2],strings:k,ctor:l[1]==="."?oOc:l[1]==="?"?pOc:l[1]==="@"?qOc:sD}),b.removeAttribute(w)):w.startsWith(nD)&&(g.push({type:6,index:a}),b.removeAttribute(w));if(kOc.test(b.tagName)&&(d=b.textContent.split(nD),
w=d.length-1,w>0)){b.textContent=aOc?aOc.emptyScript:"";for(k=0;k<w;k++)b.append(d[k],oD.createComment("")),rD.nextNode(),g.push({type:2,index:++a});b.append(d[w],oD.createComment(""))}}else if(b.nodeType===8)if(b.data===dOc)g.push({type:2,index:a});else for(d=-1;(d=b.data.indexOf(nD,d+1))!==-1;)g.push({type:7,index:a}),d+=nD.length-1;a++}};nOc.createElement=function(a){var b=oD.createElement("template");b.innerHTML=a;return b};
var rOc=function(a,b){this._$parts=[];this._$disconnectableChildren=void 0;this._$template=a;this._$parent=b};
rOc.prototype._clone=function(a){var b=this._$template,c=b.el.content;b=b.parts;var d,e=((d=a==null?void 0:a.creationScope)!=null?d:oD).importNode(c,!0);rD.currentNode=e;c=rD.nextNode();for(var f=d=0,g=b[0];g!==void 0;){if(d===g.index){var k=void 0;g.type===2?k=new tD(c,c.nextSibling,this,a):g.type===1?k=new g.ctor(c,g.name,g.strings,this,a):g.type===6&&(k=new sOc(c,this,a));this._$parts.push(k);g=b[++f]}k=void 0;d!==((k=g)==null?void 0:k.index)&&(c=rD.nextNode(),d++)}rD.currentNode=oD;return e};
rOc.prototype._update=function(a){for(var b=0,c=m(this._$parts),d=c.next();!d.done;d=c.next())d=d.value,d!==void 0&&(d.strings!==void 0?(d._$setValue(a,d,b),b+=d.strings.length-2):d._$setValue(a[b])),b++};da.Object.defineProperties(rOc.prototype,{parentNode:{configurable:!0,enumerable:!0,get:function(){return this._$parent.parentNode}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var tD=function(a,b,c,d){this.type=2;this._$committedValue=qD;this._$disconnectableChildren=void 0;this._$startNode=a;this._$endNode=b;this._$parent=c;this.options=d;var e;this.__isConnected=(e=d==null?void 0:d.isConnected)!=null?e:!0;this._textSanitizer=void 0};h=tD.prototype;
h._$setValue=function(a,b){a=vj(this,a,b===void 0?this:b);mva(a)?a===qD||a==null||a===""?(this._$committedValue!==qD&&this._$clear(),this._$committedValue=qD):a!==this._$committedValue&&a!==uj&&this._commitText(a):a._$litType$!==void 0?this._commitTemplateResult(a):a.nodeType!==void 0?this._commitNode(a):jva(a)||typeof(a==null?void 0:a[Symbol.iterator])==="function"?this._commitIterable(a):this._commitText(a)};h._insert=function(a){return mD(mD(this._$startNode).parentNode).insertBefore(a,this._$endNode)};
h._commitNode=function(a){if(this._$committedValue!==a){this._$clear();if(KNc!==cOc){var b,c=(b=this._$startNode.parentNode)==null?void 0:b.nodeName;if(c==="STYLE"||c==="SCRIPT")throw Error("Yb");}this._$committedValue=this._insert(a)}};
h._commitText=function(a){if(this._$committedValue!==qD&&mva(this._$committedValue)){var b=mD(this._$startNode).nextSibling;this._textSanitizer===void 0&&(this._textSanitizer=KNc(b,"data","property"));a=this._textSanitizer(a);b.data=a}else b=oD.createTextNode(""),this._commitNode(b),this._textSanitizer===void 0&&(this._textSanitizer=KNc(b,"data","property")),a=this._textSanitizer(a),b.data=a;this._$committedValue=a};
h._commitTemplateResult=function(a){var b=a.values,c=a._$litType$;a=typeof c==="number"?this._$getTemplate(a):(c.el===void 0&&(c.el=nOc.createElement(lva(c.h,c.h[0]),this.options)),c);var d;((d=this._$committedValue)==null?void 0:d._$template)===a?this._$committedValue._update(b):(d=new rOc(a,this),a=d._clone(this.options),d._update(b),this._commitNode(a),this._$committedValue=d)};h._$getTemplate=function(a){var b=mOc.get(a.strings);b===void 0&&mOc.set(a.strings,b=new nOc(a));return b};
h._commitIterable=function(a){jva(this._$committedValue)||(this._$committedValue=[],this._$clear());var b=this._$committedValue,c=0,d;a=m(a);for(var e=a.next();!e.done;e=a.next())e=e.value,c===b.length?b.push(d=new tD(this._insert(oD.createComment("")),this._insert(oD.createComment("")),this,this.options)):d=b[c],d._$setValue(e),c++;c<b.length&&(this._$clear(d&&mD(d._$endNode).nextSibling,c),b.length=c)};
h._$clear=function(a,b){a=a===void 0?mD(this._$startNode).nextSibling:a;var c;for((c=this._$notifyConnectionChanged)==null||c.call(this,!1,!0,b);a&&a!==this._$endNode;)b=mD(a).nextSibling,mD(a).remove(),a=b};var tOc=function(a,b){if(a._$parent===void 0){a.__isConnected=b;var c;(c=a._$notifyConnectionChanged)==null||c.call(a,b)}};
da.Object.defineProperties(tD.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this._$parent)==null?void 0:a._$isConnected)!=null?b:this.__isConnected}},parentNode:{configurable:!0,enumerable:!0,get:function(){var a=mD(this._$startNode).parentNode,b=this._$parent,c;b!==void 0&&((c=a)==null?void 0:c.nodeType)===11&&(a=b.parentNode);return a}}});
var sD=function(a,b,c,d,e){this.type=1;this._$committedValue=qD;this._$disconnectableChildren=void 0;this.element=a;this.name=b;this._$parent=d;this.options=e;c.length>2||c[0]!==""||c[1]!==""?(this._$committedValue=Array(c.length-1).fill(new String),this.strings=c):this._$committedValue=qD;this._sanitizer=void 0};
sD.prototype._$setValue=function(a,b,c,d){b=b===void 0?this:b;var e=this.strings,f=!1;if(e===void 0){if(a=vj(this,a,b,0),f=!mva(a)||a!==this._$committedValue&&a!==uj)this._$committedValue=a}else{var g=a;a=e[0];var k;for(k=0;k<e.length-1;k++){var l=vj(this,g[c+k],b,k);l===uj&&(l=this._$committedValue[k]);f||(f=!mva(l)||l!==this._$committedValue[k]);if(l===qD)a=qD;else if(a!==qD){var r=void 0;a+=((r=l)!=null?r:"")+e[k+1]}this._$committedValue[k]=l}}f&&!d&&this._commitValue(a)};
sD.prototype._commitValue=function(a){if(a===qD)mD(this.element).removeAttribute(this.name);else{this._sanitizer===void 0&&(this._sanitizer=KNc(this.element,this.name,"attribute"));var b;a=this._sanitizer((b=a)!=null?b:"");var c;mD(this.element).setAttribute(this.name,(c=a)!=null?c:"")}};da.Object.defineProperties(sD.prototype,{tagName:{configurable:!0,enumerable:!0,get:function(){return this.element.tagName}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var oOc=function(){sD.apply(this,arguments);this.type=3};Y(oOc,sD);oOc.prototype._commitValue=function(a){this._sanitizer===void 0&&(this._sanitizer=KNc(this.element,this.name,"property"));a=this._sanitizer(a);this.element[this.name]=a===qD?void 0:a};var pOc=function(){sD.apply(this,arguments);this.type=4};Y(pOc,sD);pOc.prototype._commitValue=function(a){mD(this.element).toggleAttribute(this.name,!!a&&a!==qD)};var qOc=function(a,b,c,d,e){sD.call(this,a,b,c,d,e);this.type=5};Y(qOc,sD);
qOc.prototype._$setValue=function(a,b){var c;a=(c=vj(this,a,b===void 0?this:b,0))!=null?c:qD;if(a!==uj){b=this._$committedValue;c=a===qD&&b!==qD||a.capture!==b.capture||a.once!==b.once||a.passive!==b.passive;var d=a!==qD&&(b===qD||c);c&&this.element.removeEventListener(this.name,this,b);d&&this.element.addEventListener(this.name,this,a);this._$committedValue=a}};
qOc.prototype.handleEvent=function(a){if(typeof this._$committedValue==="function"){var b,c;this._$committedValue.call((c=(b=this.options)==null?void 0:b.host)!=null?c:this.element,a)}else this._$committedValue.handleEvent(a)};var sOc=function(a,b,c){this.element=a;this.type=6;this._$disconnectableChildren=void 0;this._$parent=b;this.options=c};sOc.prototype._$setValue=function(a){vj(this,a)};da.Object.defineProperties(sOc.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var uOc;(uOc=globalThis.litHtmlPolyfillSupport)==null||uOc(nOc,tD);var vOc,wOc;((wOc=ra.litHtmlVersions)!=null?wOc:ra.litHtmlVersions=[]).push("3.2.1");vOc=function(a,b,c){var d,e=(d=c==null?void 0:c.renderBefore)!=null?d:b;d=e._$litPart$;if(d===void 0){var f;d=(f=c==null?void 0:c.renderBefore)!=null?f:null;e._$litPart$=d=new tD(b.insertBefore(oD.createComment(""),d),d,void 0,c!=null?c:{})}d._$setValue(a);return d};var xOc=function(a){return function(){var b=bd.apply(0,arguments),c={};return c._$litDirective$=a,c.values=b,c}},uD=function(){};uD.prototype._$initialize=function(a,b,c){this.__part=a;this._$parent=b;this.__attributeIndex=c};uD.prototype._$resolve=function(a,b){return this.update(a,b)};uD.prototype.update=function(a,b){return this.render.apply(this,q(b))};da.Object.defineProperties(uD.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});var yOc=function(a){this.value=qD;if(a.type!==2)throw Error("Zb`"+this.constructor.directiveName);};Y(yOc,uD);yOc.prototype.render=function(a){if(a===qD||a===void 0)return this.templateResult=void 0,this.value=a;if(a===uj)return a;if(a===this.value)return this.templateResult;this.value=a;a=[rh(a)];a.raw=a;var b={};return this.templateResult=(b._$litType$=this.constructor.resultType,b.strings=a,b.values=[],b)};yOc.directiveName="safeHTML";yOc.resultType=1;var zOc=xOc(yOc);/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var qva=function(a,b){a=a._$disconnectableChildren;if(a!==void 0){a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=void 0;(e=(d=c)._$notifyDirectiveConnectionChanged)==null||e.call(d,b,!1);qva(c,b)}}},nva=function(a){var b,c;do{if((b=a._$parent)===void 0)break;var d=b._$disconnectableChildren;d.delete(a);a=b}while(((c=d)==null?void 0:c.size)===0)},ova=function(a){for(var b;b=a._$parent;a=b){var c=b._$disconnectableChildren;if(c===void 0)b._$disconnectableChildren=c=new Set;else if(c.has(a))break;
c.add(a);a=b;a.type==2&&(a._$notifyConnectionChanged!=null||(a._$notifyConnectionChanged=rva),a._$reparentDisconnectables!=null||(a._$reparentDisconnectables=pva))}},vD=function(){this._$disconnectableChildren=void 0};Y(vD,uD);vD.prototype._$initialize=function(a,b,c){uD.prototype._$initialize.call(this,a,b,c);ova(this);this.isConnected=a._$isConnected};
vD.prototype._$notifyDirectiveConnectionChanged=function(a,b){b=b===void 0?!0:b;if(a!==this.isConnected)if(this.isConnected=a){var c;(c=this.reconnected)==null||c.call(this)}else{var d;(d=this.disconnected)==null||d.call(this)}b&&(qva(this,a),nva(this))};vD.prototype.setValue=function(a){if(this.__part.strings===void 0)this.__part._$setValue(a,this);else{var b=[].concat(q(this.__part._$committedValue));b[this.__attributeIndex]=a;this.__part._$setValue(b,this,0)}};vD.prototype.disconnected=function(){};
vD.prototype.reconnected=function(){};/*

 Copyright 2021 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var AOc=function(a){this._ref=a};AOc.prototype.disconnect=function(){this._ref=void 0};AOc.prototype.deref=function(){return this._ref};var BOc=function(){this._resolve=this._promise=void 0};BOc.prototype.get=function(){return this._promise};BOc.prototype.pause=function(){var a=this;this._promise!=null||(this._promise=new Promise(function(b){return a._resolve=b}))};BOc.prototype.resume=function(){var a;(a=this._resolve)==null||a.call(this);this._promise=this._resolve=void 0};var COc=function(a){return!(a===null||typeof a!="object"&&typeof a!="function")&&typeof a.then==="function"},wD=function(){vD.apply(this,arguments);this.__lastRenderedIndex=1073741823;this.__values=[];this.__weakThis=new AOc(this);this.__pauser=new BOc};Y(wD,vD);wD.prototype.render=function(){var a;return(a=bd.apply(0,arguments).find(function(b){return!COc(b)}))!=null?a:uj};
wD.prototype.update=function(a,b){var c=this.__values,d=c.length;this.__values=b;var e=this.__weakThis,f=this.__pauser;this.isConnected||this.disconnected();for(var g={},k=0;k<b.length&&!(k>this.__lastRenderedIndex);g={value$jscomp$8315:void 0},k++){g.value$jscomp$8315=b[k];if(!COc(g.value$jscomp$8315))return this.__lastRenderedIndex=k,g.value$jscomp$8315;k<d&&g.value$jscomp$8315===c[k]||(this.__lastRenderedIndex=1073741823,d=0,Promise.resolve(g.value$jscomp$8315).then(function(l){return function(r){var w,
x;return y(function(C){if(C.nextAddress==1)return f.get()?z(C,f.get(),1):C.jumpTo(4);w=e.deref();w!==void 0&&(x=w.__values.indexOf(l.value$jscomp$8315),x>-1&&x<w.__lastRenderedIndex&&(w.__lastRenderedIndex=x,w.setValue(r)));ce(C)})}}(g)))}return uj};wD.prototype.disconnected=function(){this.__weakThis.disconnect();this.__pauser.pause()};wD.prototype.reconnected=function(){this.__weakThis._ref=this;this.__pauser.resume()};var DOc=xOc(wD);var EOc=function(a){a=a.LitElement;if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a._$handlesPrepareStyles=!0;a=a.prototype;var b=a.createRenderRoot;a.createRenderRoot=function(){this.renderOptions.scope=this.localName;return b.call(this)}}},FOc;(FOc=globalThis).litElementPolyfillSupport!=null||(FOc.litElementPolyfillSupport=EOc);var xD=function(){var a=kD.apply(this,arguments)||this;a.renderOptions={host:a};a.__childPart=void 0;return a};Y(xD,kD);xD.shadowRootOptions=kD.shadowRootOptions;xD.elementStyles=kD.elementStyles;xD.__attributeNameForProperty=kD.__attributeNameForProperty;xD.finalizeStyles=kD.finalizeStyles;xD.__prepare=kD.__prepare;xD.getPropertyOptions=kD.getPropertyOptions;xD.getPropertyDescriptor=kD.getPropertyDescriptor;xD.createProperty=kD.createProperty;xD.addInitializer=kD.addInitializer;h=xD.prototype;
h.createRenderRoot=function(){var a=kD.prototype.createRenderRoot.call(this),b;(b=this.renderOptions).renderBefore!=null||(b.renderBefore=a.firstChild);return a};h.update=function(a){var b=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected);kD.prototype.update.call(this,a);this.__childPart=vOc(b,this.renderRoot,this.renderOptions)};h.connectedCallback=function(){kD.prototype.connectedCallback.call(this);var a;(a=this.__childPart)==null||tOc(a,!0)};
h.disconnectedCallback=function(){kD.prototype.disconnectedCallback.call(this);var a;(a=this.__childPart)==null||tOc(a,!1)};h.render=function(){return uj};xD.finalize=function(){GOc();return kD.finalize.call(this)};xD._$litElement$=!0;xD.finalized=!0;var HOc;(HOc=ra.litElementPolyfillSupport)==null||HOc({LitElement:xD});var GOc=function(){var a;((a=ra.litElementVersions)!=null?a:ra.litElementVersions=[]).push("4.1.1");GOc=function(){}};var IOc=kw(["<div>","</div>"]),JOc=dva("g3mark-service-backend","https://g3mark-service-backend.corp.google.com"),yD=function(){var a=xD.apply(this,arguments)||this;a.content="";a.svg=new Promise(function(){});a.fetch=dva("fetch",function(b,c){return fetch(b,c)});return a};Y(yD,xD);yD.shadowRootOptions=xD.shadowRootOptions;yD.elementStyles=xD.elementStyles;yD.__attributeNameForProperty=xD.__attributeNameForProperty;yD.finalizeStyles=xD.finalizeStyles;yD.__prepare=xD.__prepare;
yD.getPropertyOptions=xD.getPropertyOptions;yD.getPropertyDescriptor=xD.getPropertyDescriptor;yD.createProperty=xD.createProperty;yD.addInitializer=xD.addInitializer;yD.finalize=xD.finalize;
yD.prototype.connectedCallback=function(){var a=this;xD.prototype.connectedCallback.call(this);this.div.then(function(b){a.width&&(b.style.width=a.width);a.height&&(b.style.height=a.height)});this.svg=this.fetch(JOc+"/sanitize_svg",{credentials:"include",method:"POST",body:decodeURIComponent(window.atob(this.content))}).then(cva).then(function(b){b=b.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(b===void 0||b===null)throw Error("Pb");b=ph(b);return zOc(b)}).catch(function(b){console.error(b)})};
yD.prototype.render=function(){return lOc(IOc,DOc(this.svg,"Loading"))};yD.prototype.createRenderRoot=function(){return this};sw([fva({type:String}),Pwc(Object)],yD.prototype,"content",void 0);sw([fva({type:String}),Pwc(String)],yD.prototype,"width",void 0);sw([fva({type:String}),Pwc(String)],yD.prototype,"height",void 0);sw([fva(Object.assign({},void 0,{state:!0,attribute:!1})),Pwc(Object)],yD.prototype,"svg",void 0);
sw([function(a){return function(b,c){return INc(b,c,{get:function(){var d=this,e,f;return y(function(g){return g.nextAddress==1?z(g,d.updateComplete,2):g.return((f=(e=d.renderRoot)==null?void 0:e.querySelector(a))!=null?f:null)})}})}}("div"),Pwc(Promise)],yD.prototype,"div",void 0);sw([function(a){return function(b,c){c!==void 0?c.addInitializer(function(){customElements.define(a,b)}):customElements.define(a,b)}}("g3mark-svg")],yD);var KOc=new vA,zD=function(){this.currentThreadAgentVersion=this.currentThreadAgentId="";this.isDuckieSourceEmbedded=!1;this.dataQueue=[];this.isProcessingStream=!1;this.duckieService=p(aC);this.overridesService=p(wA);this.conversationAgentsService=p(dC);this.duckieEventTrackerService=p(cD);this.communicationService=p(cC);this.sessionSummaryService=p(hC);this.routingService=p(xA);this.markdownService=p(iD);this.backendModelService=p(fC);this.snackBar=p(nB);this.experimentsService=p(lA);this.userContextService=
p(iC);this.duckieClient=p(dFc);this.currentThreadInternal=new Nj(void 0);this.currentThread$=this.currentThreadInternal.pipe(xf({bufferSize:1,refCount:!0}));this.cache=new Map;this.isLoadingThreadInternal=new Nj(!1);this.isLoadingThread$=this.isLoadingThreadInternal.pipe(xf({bufferSize:1,refCount:!0}));this.isDuckieThinkingInternal=new Nj(!1);this.isDuckieThinking$=this.isDuckieThinkingInternal.pipe(xf({bufferSize:1,refCount:!0}));this.canStartNewThread$=this.currentThread$.pipe(A(function(a){return a===
void 0?!1:a.messages.length>=2||a.messages.length===1&&a.messages[0].isUser}));this.cancelPendingCurrentThreadUpdate$=new sf;this.referrer=p($Ec);this.ancestorOrigins=p(ZEc).ancestorOrigins;this.hostname=p(ZEc).hostname;new yD},AD=function(a,b){pJc(a.userContextService);a.currentThreadInternal.next(b);LOc(a.communicationService,b);b&&b.modelId!==void 0&&a.backendModelService.currentModelIdInternal.next(b.modelId)};
zD.prototype.startNewThread=function(a,b){a=a===void 0?"":a;b=b===void 0?"":b;pJc(this.userContextService);XIc(this.routingService);this.isDuckieThinkingInternal.next(!1);this.cancelPendingCurrentThreadUpdate$.next();this.currentThreadAgentId=a;this.currentThreadAgentVersion=b;this.currentThreadInternal.next(MOc(this));this.communicationService.newThread$.next(!0)};
var OOc=function(a,b){return y(function(c){a.isDuckieThinkingInternal.next(!1);a.cancelPendingCurrentThreadUpdate$.next();return a.cache.has(b)?(AD(a,a.cache.get(b)),c.return()):z(c,NOc(a,b),0)})},NOc=function(a,b){var c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return a.isLoadingThreadInternal.next(!0),c=(new tB).setSessionId(b),z(k,a.duckieService.getSession(c),2);if(k.nextAddress!=3){d=k.yieldResult;if(!d)return AD(a),k.return();f=(e=d)==null?void 0:e.getSession();if(!f)return AD(a),k.return();
POc(f);g=sta(f);return z(k,Promise.all(g.messages.map(a.setMessageTextHtml,a)),3)}g.messages=k.yieldResult;a.cache.set(b,g);AD(a,g);a.isLoadingThreadInternal.next(!1);ce(k)})},POc=function(a){a.getMessagesList().forEach(function(b,c){Gi(b,19)&&a.setMessagesList(a.getMessagesList().slice(0,c+1))})};
zD.prototype.setMessageTextHtml=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){if(!a.text)return d.return(a);c=a;return z(d,cNc(b.markdownService,a.text,{highlight:!0,escapeHtml:!0,graphviz:!0}),2)}c.textHtml=d.yieldResult;return d.return(a)})};
var QOc=function(a,b){var c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,ie(a.currentThread$),2);if(g.nextAddress!=3){c=g.yieldResult;if(!c)return g.return();b=b.substring(0,200);d=c.serverId;e=(new xB).setSessionId(d).setTitle(b);return z(g,a.duckieService.updateSession(e),3)}f=g.yieldResult;if(!f)return g.return();c.title=b;AD(a,c);return z(g,VIc(a.sessionSummaryService,c),0)})},WOc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=MOc(a),c.title=b.substring(0,
200),d=(new sB).setDuckieClient(a.duckieClient).setText(b),z(g,ROc(a,d,c),2);case 2:return z(g,SOc(a),3);case 3:return(e=g.yieldResult)?(f=gta(d),z(g,TOc(a,c,f),5)):z(g,UOc(a,c,d),5);case 5:return z(g,UIc(a.sessionSummaryService,c),8);case 8:return z(g,VOc(a,c),9);case 9:return g.return(c)}})},XOc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return z(g,ie(a.currentThread$),2);case 2:c=g.yieldResult;if(!c)return g.return();d=(new sB).setDuckieClient(a.duckieClient).setText(b);
return z(g,ROc(a,d,c),3);case 3:return z(g,SOc(a),4);case 4:return(e=g.yieldResult)?(f=gta(d),z(g,TOc(a,c,f),6)):z(g,UOc(a,c,d),6);case 6:return z(g,VOc(a,c),0)}})},ZOc=function(a,b,c){var d;return y(function(e){return e.nextAddress==1?z(e,ie(a.currentThread$),2):(d=e.yieldResult)?z(e,YOc(a,d,b,c),0):e.return()})};
zD.prototype.cancelDuckieStream=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1){if(!a.currentActiveStream)return l.jumpTo(0);a.currentActiveStream.cancel();a.currentActiveStream=void 0;return z(l,ie(a.currentThread$),3)}b=l.yieldResult;if(!b||b.messages.length===0)return l.return();c=b.messages.slice().reverse().find(function(r){return r.isUser});d=b.messages.slice().reverse().find(function(r){return!r.isUser&&r.id!==""});am(a.duckieEventTrackerService,bm((new cm).setMessageId((f=
(e=d)==null?void 0:e.id)!=null?f:"")),293477);$Oc(a,b,(k=(g=c)==null?void 0:g.text)!=null?k:"");ce(l)})};
var YOc=function(a,b,c,d){return y(function(e){b.messages.forEach(function(f){f.id===c&&(f.feedback?f.feedback.setHelpfulness(d):f.feedback=(new FA).setHelpfulness(d).setFeedbackType(0))});a.cache.set(b.serverId,b);ce(e)})},ROc=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1){c.serverId&&b.setSessionId(c.serverId);var f=a.backendModelService.currentModelIdInternal.value;f!==""&&b.setModelId(f);d=Dm(a.overridesService.overrideOptions,6,Di());if(d.length>0){f=b.setModelOverrideOptions;
var g=new vA;g=Hm(g,6,d);f.call(b,g)}return z(e,aPc(a,b,c),2)}if(a.isDuckieSourceEmbedded){g=new Bi;var k=new nFc;k=Hn(k,1,2);k=pj(k,3,a.hostname);g=Yo(g,7,Si,k);Pp(b,6,Bi,g)}else if(a.referrer.length!==0){var l=a.ancestorOrigins.length>0&&a.ancestorOrigins[0]!==a.referrer?1:3;g=cFc.test(a.referrer)&&!a.overridesService.overrideIsFirstTurnFromMoma?"":a.referrer;if(g.length>0){k=new Bi;var r=(new nFc).setReferrerUrl(g);l=Hn(r,1,l);k=Yo(k,7,Si,l);Pp(b,6,Bi,k)}cFc.test(g)&&(g=new Bi,k=(new ota).setReferrerUrl(a.referrer),
g=Yo(g,4,Si,k),Pp(b,6,Bi,g))}a.referrer.length!==0&&cFc.test(a.referrer)&&a.overridesService.overrideIsFirstTurnFromMoma&&(a.overridesService.overrideIsFirstTurnFromMoma=!1);g=[];for(k=0;k<c.messages.length;k++)l=c.messages[k],l.isUser||l.id?g.push(nta(l)):g.pop();g=(new IA).setMessagesList(g);c.privacyMode!==void 0&&g.setPrivacyMode(c.privacyMode);b.setConversationHistory(g);if(a.experimentsService.userProvidedContextEnabled){g=(f=c.userProvidedContext)!=null?f:[];f=sJc(a.userContextService,b.getText());
f=m(f);for(k=f.next();!k.done;k=f.next()){k=k.value;l=g;r=l.push;var w=new Qi;var x=(new Ki).setType(k.source);x=pj(x,3,k.fullUrl);r.call(l,mta(w,x.setUrl(k.label)))}b.addAllUserProvidedContext(g);pJc(a.userContextService)}c.conversationAgentId&&c.conversationAgentModelId&&(f=(new CA).setAgentId(c.conversationAgentId).setModelId(c.conversationAgentModelId),c.systemInstruction&&f.setSystemInstruction(c.systemInstruction),b.setConversationAgent(f));return e.return(b)})},TOc=function(a,b,c){var d,e,
f;return y(function(g){if(g.nextAddress==1)return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(nf(1)).subscribe(function(){d=!1}),b.serverId&&c.setSessionId(b.serverId),a.isDuckieThinkingInternal.next(!0),z(g,a.duckieService.streamGenerateAnswers(c),2);a.currentActiveStream=g.yieldResult;bPc(a,b,c.getText());AD(a,b);f=null;a.currentActiveStream.on("data",function(k){var l,r,w,x,C;return y(function(H){f=k;a.dataQueue.push({text:(x=(l=k.getResponse())==null?void 0:l.getText())!=null?x:"",state:xi(k,
4),hiddenMessages:(C=(r=k.getResponse())==null?void 0:(w=X(r,Ei,17))==null?void 0:Ci(w,EA,9,Di()))!=null?C:[]});return z(H,cPc(a,b),0)})});a.currentActiveStream.on("error",function(){$Oc(a,b,c.getText())});a.currentActiveStream.on("end",function(){var k,l;return y(function(r){switch(r.nextAddress){case 1:if(!f){r.jumpTo(2);break}return z(r,dPc(a,b,f),3);case 3:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(4);break}return z(r,ePc(b,f),4);case 4:if((k=f.getResponse())==null?0:Gi(k,20)){r.jumpTo(6);
break}return z(r,fPc(a.communicationService,(l=f.getResponse())==null?void 0:l.getText()),6);case 6:gPc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId());case 2:return a.currentThreadInternal.next(b),z(r,UIc(a.sessionSummaryService,b),8);case 8:d&&AD(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),ce(r)}})});return g.return(b)})},cPc=function(a,b){var c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga;return y(function(ja){switch(ja.nextAddress){case 1:if(a.isProcessingStream||
a.dataQueue.length===0)return ja.return();a.isProcessingStream=!0;c=[3,4];d=[];e=a.dataQueue[a.dataQueue.length-1].state;a.dataQueue.length>1&&c.includes(e)?(d=a.dataQueue.slice(0,-1),a.dataQueue=[a.dataQueue[a.dataQueue.length-1]]):(d=a.dataQueue,a.dataQueue=[]);f=b.messages.length-1;k=g=b.messages[f];if(c.includes(d[0].state))l=d[0],w=((r=g.text)!=null?r:"")+l.text,x=hFc((g.executionMetadata||new Ei).clone(),l.hiddenMessages),k=Object.assign({},g,{text:w,executionMetadata:x});else{C=[];H=m(d);for(J=
H.next();!J.done;J=H.next())O=J.value,C=C.concat(O.hiddenMessages);ca=(V=(R=g.executionMetadata)==null?void 0:zyc(R,EA,9))!=null?V:[];oa=[].concat(q(ca.concat(C)));ua=hFc((g.executionMetadata||new Ei).clone(),oa);k=Object.assign({},g,{executionMetadata:ua,isStreamingThoughts:g.isStreamingThoughts})}Yd(ja,2,3);return z(ja,a.setMessageTextHtml(k),5);case 5:k=ja.yieldResult,ka=b.messages.map(function(ta,xa){return xa===f?k:ta}),b.messages=ka,a.cache.set(b.serverId,b),AD(a,b);case 3:Zd(ja);a.isProcessingStream=
!1;if(!(a.dataQueue.length>0)){ja.jumpTo(6);break}return z(ja,cPc(a,b),6);case 6:ae(ja,0);break;case 2:Ga=be(ja),console.error("Error processing message:",Ga),ja.jumpTo(3)}})},UOc=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(nf(1)).subscribe(function(){d=!1}),bPc(a,b,c.getText()),AD(a,b),a.isDuckieThinkingInternal.next(!0),Yd(r,2),z(r,a.duckieService.generateAnswers(c),4);case 4:f=r.yieldResult;bt(r,3);break;
case 2:return g=be(r),a.snackBar.openFromComponent(pB,{data:{message:"An error occurred. Please try again.",error:g instanceof Error?g:Error(String(g))}}),b.messages.splice(-2),AD(a,b),JIc(c.getText()),a.isDuckieThinkingInternal.next(!1),r.return(b);case 3:return f?z(r,hPc(a,b,f),5):r.return(b);case 5:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(6);break}return z(r,ePc(b,f),6);case 6:if((k=f.getResponse())==null?0:Gi(k,20)){r.jumpTo(8);break}return z(r,fPc(a.communicationService,
(l=f.getResponse())==null?void 0:l.getText()),8);case 8:return gPc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId()),a.cache.set(b.serverId,b),d&&AD(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),r.return(b)}})},aPc=function(a,b,c){var d,e,f,g,k,l;return y(function(r){d=a.overridesService.getModelOverrideOptions();kRa(d,KOc)||b.setModelOverrideOptions(d);(f=(e=c.agentId)!=null?e:"")&&Ji(b,gFc,10).setAgentId(f);(k=(g=c.agentVersion)!=null?
g:"")&&Ji(b,gFc,10).setAgentVersion(k);(l=a.overridesService.getDisallowRestrictedContent())&&b.setDisallowRestrictedContent(l);a.overridesService.getAppProvidedContext().getValuesList().length>0&&b.setAppProvidedContext(a.overridesService.getAppProvidedContext());ce(r)})},bPc=function(a,b,c){c={text:c,isUser:!0,trackingId:eta()};a={text:void 0,isUser:!1,isStreamingThoughts:SOc(a),trackingId:eta()};b.messages.push(c);b.messages.push(a)},hPc=function(a,b,c){var d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==
1){d=c.getQuery();if(!d)return w.return();e=b.messages.length-2;f=Li(d);return z(w,a.setMessageTextHtml(f),2)}if(w.nextAddress!=3){f=w.yieldResult;b.messages[e]=f;g=c.getResponse();if(!g)return w.return();iPc(b,g);k=Li(g);return z(w,a.setMessageTextHtml(k),3)}k=w.yieldResult;l=b.messages.length-1;b.messages[l]=k;b.privacyMode=(r=c.getConversationHistory())==null?void 0:r.getPrivacyMode();ce(w)})},dPc=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H;return y(function(J){if(J.nextAddress==1){d=c.getConversationHistory();
if(!d||!d.getMessagesList())return console.error("No conversation history or messages in response."),J.return();if(d.getMessagesList().length!==b.messages.length)return console.error("Conversation history and thread messages have different lengths."),J.return();e=d.getMessagesList();f=b.messages.length-1;g=b.messages.length-2;k=b.messages[f].trackingId;l=b.messages[g].trackingId;r=e[g];w=Li(r);return z(J,a.setMessageTextHtml(w),2)}if(J.nextAddress!=3)return w=J.yieldResult,x=e[f],iPc(b,x),C=Li(x),
z(J,a.setMessageTextHtml(C),3);C=J.yieldResult;C.isStreamingThoughts=!1;w.trackingId=l;C.trackingId=k;w.sessionId=C.sessionId;b.messages[g]=w;b.messages[f]=C;b.privacyMode=(H=c.getConversationHistory())==null?void 0:H.getPrivacyMode();ce(J)})},ePc=function(a,b){var c,d,e,f,g,k;return y(function(l){c=b.getUserProvidedContextList();if(!c)return l.return();d=[];e=m(c);for(f=e.next();!f.done;f=e.next()){g=f.value;k=mta(new Qi,(new Ki).setType(vFc(g).getType()).setUrl(vFc(g).getUrl()));var r=vFc(g);if(im(r,
3)){r=vFc(k);var w=vFc(g);w=vi(w,3);pj(r,3,w)}d.push(k)}a.userProvidedContext=d;ce(l)})},VOc=function(a,b){var c;return y(function(d){if(d.nextAddress==1){if(b.privacyMode===2||!b.messages.some(function(e){return e.hasPrivateContent}))return d.jumpTo(0);c=Object.assign({},b,{privacyMode:2});return z(d,WIc(a.sessionSummaryService,c),3)}AD(a,c);a.cache.set(c.serverId,c);ce(d)})},iPc=function(a,b){Gi(b,20)||lta(b,a.messages.some(function(c){return c.hasPrivateContent}))},gPc=function(a,b,c){if(b=b.getResponse())if(b=
Li(b),dD(a.duckieEventTrackerService,201778,b),dD(a.duckieEventTrackerService,201478,b),c=sJc(a.userContextService,c.getText(),!0).map(function(e){var f=(new xJc).setUrl(e.fullUrl);return Hn(f,2,e.source)}),c.length>0){var d;am(a.duckieEventTrackerService,bm(zJc(new cm,yJc(c)).setMessageId(b.id).setSessionId((d=b.sessionId)!=null?d:"")),243707)}},$Oc=function(a,b,c){a.isDuckieThinkingInternal.next(!1);a.dataQueue=[];a.isProcessingStream=!1;b.messages.splice(-2);AD(a,b);JIc(c)},MOc=function(a){var b=
eC(a.conversationAgentsService),c,d,e;return{serverId:null,messages:[],title:"",agentId:a.currentThreadAgentId,agentVersion:a.currentThreadAgentVersion,conversationAgentId:(c=b==null?void 0:b.agentId)!=null?c:void 0,conversationAgentModelId:(d=b==null?void 0:b.modelId)!=null?d:void 0,systemInstruction:(e=b==null?void 0:b.systemInstruction)!=null?e:void 0}},SOc=function(a){var b;if(!(b=!a.experimentsService.duckieStreamingMvpEnabled)){var c;if(b=!((c=eC(a.conversationAgentsService).agentId)==null?
0:c.startsWith("a2a:")))a=eC(a.conversationAgentsService),c=a.agentId===uw.agentId&&a.modelId===uw.modelId,b=!(a.agentId===vw.agentId&&a.modelId===vw.modelId||c)}return!b};zD.\u0275fac=function(a){return new (a||zD)};zD.\u0275prov=Fc({token:zD,factory:zD.\u0275fac,providedIn:"root"});var jPc=new fd("GM2_FORM_FIELD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var BD=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};BD.\u0275fac=function(a){return new (a||BD)(Ye(jPc))};BD.\u0275dir=df({type:BD,selectors:[["mat-form-field"]],hostAttrs:[1,"gmat-mdc-form-field"],standalone:!1});var kPc=new fd("MatError"),CD=function(){this.id=p(bi).getId("mat-mdc-error-")};CD.\u0275fac=function(a){return new (a||CD)};CD.\u0275dir=df({type:CD,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&&Qf("id",b.id)},inputs:{id:"id"},features:[Gg([{provide:kPc,useExisting:CD}])]});var DD=function(){this.align="start";this.id=p(bi).getId("mat-mdc-hint-")};DD.\u0275fac=function(a){return new (a||DD)};DD.\u0275dir=df({type:DD,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(a,b){a&2&&(Qf("id",b.id),Kf("align",null),wg("mat-mdc-form-field-hint-end",b.align==="end"))},inputs:{align:"align",id:"id"}});var ED=function(){};ED.\u0275fac=function(a){return new (a||ED)};ED.\u0275dir=df({type:ED,selectors:[["mat-label"]]});var lPc=new fd("MatPrefix"),FD=function(){this._isText=!1};da.Object.defineProperties(FD.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});FD.\u0275fac=function(a){return new (a||FD)};FD.\u0275dir=df({type:FD,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Gg([{provide:lPc,useExisting:FD}])]});var mPc=new fd("MatSuffix"),GD=function(){this._isText=!1};da.Object.defineProperties(GD.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});GD.\u0275fac=function(a){return new (a||GD)};GD.\u0275dir=df({type:GD,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Gg([{provide:mPc,useExisting:GD}])]});var HD=function(){};HD.\u0275fac=function(a){return new (a||HD)};HD.\u0275dir=df({type:HD});var nPc=function(a){var b=this;this._box=a;this._destroyed=new sf;this._resizeSubject=new sf;this._elementObservables=new Map;typeof ResizeObserver!=="undefined"&&(this._resizeObserver=new ResizeObserver(function(c){return b._resizeSubject.next(c)}))};
nPc.prototype.observe=function(a){var b=this;this._elementObservables.has(a)||this._elementObservables.set(a,(new Vd(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(we(function(c){return c.some(function(d){return d.target===a})}),xf({bufferSize:1,refCount:!0}),Bf(this._destroyed)));return this._elementObservables.get(a)};
nPc.prototype.destroy=function(){this._destroyed.next();this._destroyed.complete();this._resizeSubject.complete();this._elementObservables.clear()};var ID=function(){this._observers=new Map;this._ngZone=p(Rg)};ID.prototype.ngOnDestroy=function(){for(var a=m(this._observers),b=a.next();!b.done;b=a.next())b=m(b.value),b.next(),b.next().value.destroy();this._observers.clear();var c;(c=this._cleanupErrorListener)==null||c.call(this)};
ID.prototype.observe=function(a,b){b=(b==null?void 0:b.box)||"content-box";this._observers.has(b)||this._observers.set(b,new nPc(b));return this._observers.get(b).observe(a)};ID.\u0275fac=function(a){return new (a||ID)};ID.\u0275prov=Fc({token:ID,factory:ID.\u0275fac,providedIn:"root"});var oPc=new fd("FloatingLabelParent"),JD=function(){this._elementRef=p(Jd);this._monitorResize=this._floating=!1;this._resizeObserver=p(ID);this._ngZone=p(Rg);this._parent=p(oPc);this._resizeSubscription=new Rd};JD.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};
JD.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};JD.prototype._handleResize=function(){var a=this;setTimeout(function(){return a._parent._handleLabelResized()})};
JD.prototype._subscribeToResize=function(){var a=this;this._resizeSubscription.unsubscribe();this._ngZone.runOutsideAngular(function(){a._resizeSubscription=a._resizeObserver.observe(a._elementRef.nativeElement,{box:"border-box"}).subscribe(function(){return a._handleResize()})})};
da.Object.defineProperties(JD.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}}});
JD.\u0275fac=function(a){return new (a||JD)};JD.\u0275dir=df({type:JD,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-floating-label--float-above",b.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}});var KD=function(){var a=this;this._elementRef=p(Jd);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=p(Rg),c=p(di);b.runOutsideAngular(function(){a._cleanupTransitionEnd=c.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionEnd)})};
KD.prototype.activate=function(){var a=this._elementRef.nativeElement.classList;a.remove("mdc-line-ripple--deactivating");a.add("mdc-line-ripple--active")};KD.prototype.deactivate=function(){this._elementRef.nativeElement.classList.add("mdc-line-ripple--deactivating")};KD.prototype.ngOnDestroy=function(){this._cleanupTransitionEnd()};KD.\u0275fac=function(a){return new (a||KD)};KD.\u0275dir=df({type:KD,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});var pPc=["notch"],LD=function(){this._elementRef=p(Jd);this._ngZone=p(Rg);this.open=!1};LD.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")};
LD.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)":""};LD.prototype._setMaxWidth=function(a){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width","calc(100% - "+a+"px)")};LD.\u0275fac=function(a){return new (a||LD)};
LD.\u0275cmp=D({type:LD,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(a,b){a&1&&hg(pPc,5);if(a&2){var c;lg(c=mg())&&(b._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-notched-outline--notched",b.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:["matFormFieldNotchedOutline",""],ngContentSelectors:["*"],decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,
"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(a){a&1&&(cg(),Tf(0,"div",1),Rf(1,"div",2,0),dg(3),Sf(),Tf(4,"div",3))},encapsulation:2,changeDetection:0});var qPc=["iconPrefixContainer"],rPc=["textPrefixContainer"],sPc=["iconSuffixContainer"],tPc=["textSuffixContainer"],uPc=["textField"],vPc=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],wPc=new fd("MatFormField"),xPc=new fd("MAT_FORM_FIELD_DEFAULT_OPTIONS"),MD=function(){var a=this;this._elementRef=
p(Jd);this._changeDetectorRef=p(ux);this._platform=p(Wh);this._idGenerator=p(bi);this._ngZone=p(Rg);this._defaults=p(xPc,{optional:!0});this._iconPrefixContainerSignal=Pg.apply(null,["iconPrefixContainer"].concat(q([])));this._textPrefixContainerSignal=Pg.apply(null,["textPrefixContainer"].concat(q([])));this._iconSuffixContainerSignal=Pg.apply(null,["iconSuffixContainer"].concat(q([])));this._textSuffixContainerSignal=Pg.apply(null,["textSuffixContainer"].concat(q([])));this._prefixSuffixContainers=
Zg.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(q([])));this._labelChild=Loa.apply(null,[ED].concat(q([])));this._hideRequiredMarker=!1;this.color="primary";this._appearanceSignal=ng.apply(null,["fill"].concat(q([])));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 sf;this._outlineLabelOffsetResizeObserver=this._previousControlValidatorFn=this._previousControl=this._isFocused=null;this._animationsDisabled=ni();this.getLabelId=Zg.apply(null,[function(){return a._hasFloatingLabel()?a._labelId:null}].concat(q([])));this._hasFloatingLabel=Zg.apply(null,[function(){return!!a._labelChild()}].concat(q([])));
var b=this._defaults,c=p(ci);b&&(b.appearance&&(this.appearance=b.appearance),this._hideRequiredMarker=!(b==null||!b.hideRequiredMarker),b.color&&(this.color=b.color));gf(function(){return a._currentDirection=c.valueSignal()});this._syncOutlineLabelOffset()};h=MD.prototype;
h.ngAfterViewInit=function(){var a=this;this._updateFocusState();this._animationsDisabled||this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)});this._changeDetectorRef.detectChanges()};h.ngAfterContentInit=function(){this._initializeSubscript();this._initializePrefixAndSuffix()};
h.ngAfterContentChecked=function(){this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control);this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()};
h.ngOnDestroy=function(){var a;(a=this._outlineLabelOffsetResizeObserver)==null||a.disconnect();var b;(b=this._stateChanges)==null||b.unsubscribe();var c;(c=this._valueChanges)==null||c.unsubscribe();var d;(d=this._describedByChanges)==null||d.unsubscribe();this._destroyed.next();this._destroyed.complete()};h.getConnectedOverlayOrigin=function(){return this._textField||this._elementRef};h._animateAndLockLabel=function(){this._hasFloatingLabel()&&(this.floatLabel="always")};
h._initializeControl=function(a){var b=this,c=this._control;a&&this._elementRef.nativeElement.classList.remove("mat-mdc-form-field-type-"+a.controlType);c.controlType&&this._elementRef.nativeElement.classList.add("mat-mdc-form-field-type-"+c.controlType);var d;(d=this._stateChanges)==null||d.unsubscribe();this._stateChanges=c.stateChanges.subscribe(function(){b._updateFocusState();b._changeDetectorRef.markForCheck()});var e;(e=this._describedByChanges)==null||e.unsubscribe();this._describedByChanges=
c.stateChanges.pipe(zf([void 0,void 0]),A(function(){return[c.errorState,c.userAriaDescribedBy]}),vf(),we(function(g){var k=m(g);var l=m(k.next().value);g=l.next().value;l=l.next().value;var r=m(k.next().value);k=r.next().value;r=r.next().value;return g!==k||l!==r})).subscribe(function(){return b._syncDescribedByIds()});var f;(f=this._valueChanges)==null||f.unsubscribe();c.ngControl&&c.ngControl.valueChanges&&(this._valueChanges=c.ngControl.valueChanges.pipe(Bf(this._destroyed)).subscribe(function(){return b._changeDetectorRef.markForCheck()}))};
h._checkPrefixAndSuffixTypes=function(){this._hasIconPrefix=!!this._prefixChildren.find(function(a){return!a._isText});this._hasTextPrefix=!!this._prefixChildren.find(function(a){return a._isText});this._hasIconSuffix=!!this._suffixChildren.find(function(a){return!a._isText});this._hasTextSuffix=!!this._suffixChildren.find(function(a){return a._isText})};
h._initializePrefixAndSuffix=function(){var a=this;this._checkPrefixAndSuffixTypes();ve(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._checkPrefixAndSuffixTypes();a._changeDetectorRef.markForCheck()})};h._initializeSubscript=function(){var a=this;this._hintChildren.changes.subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._syncDescribedByIds()};
h._assertFormFieldControl=function(){};h._updateFocusState=function(){var a=this._control.focused;if(a&&!this._isFocused){this._isFocused=!0;var b;(b=this._lineRipple)==null||b.activate()}else if(!a&&(this._isFocused||this._isFocused===null)){this._isFocused=!1;var c;(c=this._lineRipple)==null||c.deactivate()}this._elementRef.nativeElement.classList.toggle("mat-focused",a);var d;(d=this._textField)==null||d.nativeElement.classList.toggle("mdc-text-field--focused",a)};
h._syncOutlineLabelOffset=function(){var a=this;npa({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=m(a._prefixSuffixContainers());for(var c=b.next();!c.done;c=b.next())a._outlineLabelOffsetResizeObserver.observe(c.value,
{box:"border-box"})}return a._getOutlinedLabelOffset()},write:function(b){return a._writeOutlinedLabelStyles(b())}})};h._shouldAlwaysFloat=function(){return this.floatLabel==="always"};h._hasOutline=function(){return this.appearance==="outline"};h._forceDisplayInfixLabel=function(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()};h._shouldLabelFloat=function(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1};
h._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};h._getSubscriptMessageType=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"};h._handleLabelResized=function(){this._refreshOutlineNotchWidth()};
h._refreshOutlineNotchWidth=function(){if(this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()){var a;(a=this._notchedOutline)==null||a._setNotchWidth(this._floatingLabel.getWidth())}else{var b;(b=this._notchedOutline)==null||b._setNotchWidth(0)}};h._processHints=function(){this._syncDescribedByIds()};h._validateHints=function(){};
h._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy==="string"&&a.push.apply(a,q(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,q(this._errorChildren.map(function(e){return e.id})));if(b=this._control.describedByIds){var d=this._describedByIds||a;b=a.concat(b.filter(function(e){return e&&!d.includes(e)}))}else b=a;this._control.setDescribedByIds(b);this._describedByIds=a}};
h._getOutlinedLabelOffset=function(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;var a,b=(a=this._iconPrefixContainer)==null?void 0:a.nativeElement,c;a=(c=this._textPrefixContainer)==null?void 0:c.nativeElement;var d;c=(d=this._iconSuffixContainer)==null?void 0:d.nativeElement;var e;d=(e=this._textSuffixContainer)==null?void 0:e.nativeElement;var f;b=(f=b==null?void 0:b.getBoundingClientRect().width)!=
null?f:0;var g;f=(g=a==null?void 0:a.getBoundingClientRect().width)!=null?g:0;var k;g=(k=c==null?void 0:c.getBoundingClientRect().width)!=null?k:0;var l;k=(l=d==null?void 0:d.getBoundingClientRect().width)!=null?l:0;return["var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc("+((this._currentDirection==="rtl"?"-1":"1")+" * ("+(b+f+"px + var(--mat-mdc-form-field-label-offset-x, 0px)))))")),b+f+g+k]};
h._writeOutlinedLabelStyles=function(a){if(a!==null){var b=m(a);a=b.next().value;b=b.next().value;this._floatingLabel&&(this._floatingLabel.element.style.transform=a);if(b!==null){var c;(c=this._notchedOutline)==null||c._setMaxWidth(b)}}};h._isAttachedToDom=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
da.Object.defineProperties(MD.prototype,{hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Mh(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}}});MD.\u0275fac=function(a){return new (a||MD)};
MD.\u0275cmp=D({type:MD,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Tna(b._labelChild,ig(c,ED,5)),ig(c,HD,5),ig(c,lPc,5),ig(c,mPc,5),ig(c,kPc,5),ig(c,DD,5));if(a&2){pg();var d;lg(d=mg())&&(b._formFieldControl=d.first);lg(d=mg())&&(b._prefixChildren=d);lg(d=mg())&&(b._suffixChildren=d);lg(d=mg())&&(b._errorChildren=d);lg(d=mg())&&(b._hintChildren=d)}},viewQuery:function(a,b){a&1&&(og(b._iconPrefixContainerSignal,qPc),og(b._textPrefixContainerSignal,rPc),og(b._iconSuffixContainerSignal,
sPc),og(b._textSuffixContainerSignal,tPc),hg(uPc,5),hg(qPc,5),hg(rPc,5),hg(sPc,5),hg(tPc,5),hg(JD,5),hg(LD,5),hg(KD,5));if(a&2){pg(4);var c;lg(c=mg())&&(b._textField=c.first);lg(c=mg())&&(b._iconPrefixContainer=c.first);lg(c=mg())&&(b._textPrefixContainer=c.first);lg(c=mg())&&(b._iconSuffixContainer=c.first);lg(c=mg())&&(b._textSuffixContainer=c.first);lg(c=mg())&&(b._floatingLabel=c.first);lg(c=mg())&&(b._notchedOutline=c.first);lg(c=mg())&&(b._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],
hostVars:38,hostBindings:function(a,b){a&2&&wg("mat-mdc-form-field-label-always-float",b._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",b._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",b._hasIconSuffix)("mat-form-field-invalid",b._control.errorState)("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-form-field-appearance-fill",b.appearance=="fill")("mat-form-field-appearance-outline",b.appearance=="outline")("mat-form-field-hide-placeholder",
b._hasFloatingLabel()&&!b._shouldLabelFloat())("mat-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:[Gg([{provide:wPc,useExisting:MD},{provide:oPc,useExisting:MD}])],ngContentSelectors:"*;mat-label;[matPrefix], [matIconPrefix];[matTextPrefix];[matTextSuffix];[matSuffix], [matIconSuffix];mat-error, [matError];mat-hint:not([align='end']);mat-hint[align='end']".split(";"),decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",
""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",
""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(a,b){if(a&1){var c=t();cg(vPc);E(0,uva,1,1,"ng-template",null,0,Mg);K(2,"div",
6,1);N("click",function(d){u(c);return v(b._control.onContainerClick(d))});F(4,vva,1,0,"div",7);K(5,"div",8);F(6,yva,2,2,"div",9);F(7,zva,3,0,"div",10);F(8,Ava,3,0,"div",11);K(9,"div",12);F(10,Cva,1,1,null,13);dg(11);L();F(12,Dva,3,0,"div",14);F(13,Eva,3,0,"div",15);L();F(14,Fva,1,0,"div",16);L();K(15,"div",17);F(16,Gva,2,0,"div",18)(17,Iva,5,1,"div",19);L()}a&2&&(B(2),wg("mdc-text-field--filled",!b._hasOutline())("mdc-text-field--outlined",b._hasOutline())("mdc-text-field--no-label",!b._hasFloatingLabel())("mdc-text-field--disabled",
b._control.disabled)("mdc-text-field--invalid",b._control.errorState),B(2),G(b._hasOutline()||b._control.disabled?-1:4),B(2),G(b._hasOutline()?6:-1),B(),G(b._hasIconPrefix?7:-1),B(),G(b._hasTextPrefix?8:-1),B(2),G(!b._hasOutline()||b._forceDisplayInfixLabel()?10:-1),B(2),G(b._hasTextSuffix?12:-1),B(),G(b._hasIconSuffix?13:-1),B(),G(b._hasOutline()?-1:14),B(),wg("mat-mdc-form-field-subscript-dynamic-size",b.subscriptSizing==="dynamic"),a=b._getSubscriptMessageType(),B(),G(a==="error"?16:a==="hint"?
17:-1))},dependencies:[JD,LD,Kx,KD,DD],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 ND=function(){};ND.\u0275fac=function(a){return new (a||ND)};ND.\u0275mod=cf({type:ND});ND.\u0275inj=Hc({imports:[Xy,MD,Ey]});var OD=function(){};OD.\u0275fac=function(a){return new (a||OD)};OD.\u0275mod=cf({type:OD});OD.\u0275inj=Hc({imports:[ND]});var yPc=new fd("GM2_INPUT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var PD=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};PD.\u0275fac=function(a){return new (a||PD)(Ye(yPc))};PD.\u0275dir=df({type:PD,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"gmat-mdc-input"],standalone:!1});var QD=function(){};QD.\u0275fac=function(a){return new (a||QD)};
QD.\u0275cmp=D({type:QD,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 zPc={passive:!0},RD=function(){this._platform=p(Wh);this._ngZone=p(Rg);this._renderer=p(af).createRenderer(null,null);this._styleLoader=p($h);this._monitoredElements=new Map};
RD.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return ue;this._styleLoader.load(QD);var c=Oh(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new sf,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,zPc)});this._monitoredElements.set(c,{subject:d,unlisten:a});return d};
RD.prototype.stopMonitoring=function(a){a=Oh(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))};RD.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};RD.\u0275fac=function(a){return new (a||RD)};RD.\u0275prov=Fc({token:RD,factory:RD.\u0275fac,providedIn:"root"});var SD=function(){var a=this;this._elementRef=p(Jd);this._platform=p(Wh);this._ngZone=p(Rg);this._renderer=p(di);this._resizeEvents=new sf;this._destroyed=new sf;this._enabled=!0;this._previousMinRows=-1;this._document=p(Sh);this._isViewInited=!1;this._handleFocusEvent=function(b){a._hasFocus=b.type==="focus"};p($h).load(QD);this._textareaElement=this._elementRef.nativeElement};h=SD.prototype;
h._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};h._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
h.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,APc(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(hf(16)).subscribe(function(){a._cachedLineHeight=a._cachedPlaceholderHeight=
void 0;APc(a,!0)})}),this._isViewInited=!0,APc(this,!0))};h.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()});this._resizeEvents.complete();this._destroyed.next();this._destroyed.complete()};
h._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1),b=a.style;a.rows=1;b.position="absolute";b.visibility="hidden";b.border="none";b.padding="0";b.height="";b.minHeight="";b.maxHeight="";b.top=b.bottom=b.left=b.right="auto";b.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
h._measureScrollHeight=function(){var a=this._textareaElement,b=a.style.marginBottom||"",c=this._platform.FIREFOX,d=c&&this._hasFocus;c=c?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(a.style.marginBottom=a.clientHeight+"px");a.classList.add(c);var e=a.scrollHeight-4;a.classList.remove(c);d&&(a.style.marginBottom=b);return e};
h._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&this._cachedPlaceholderHeight==void 0)if(this.placeholder){var a=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder;this._cachedPlaceholderHeight=this._measureScrollHeight();this._textareaElement.value=a}else this._cachedPlaceholderHeight=0};h.ngDoCheck=function(){this._platform.isBrowser&&APc(this)};
var APc=function(a,b){b=b===void 0?!1:b;if(a._enabled&&(a._cacheTextareaLineHeight(),a._cacheTextareaPlaceholderHeight(),a._cachedLineHeight)){var c=a._elementRef.nativeElement,d=c.value;if(b||a._minRows!==a._previousMinRows||d!==a._previousValue)b=a._measureScrollHeight(),c.style.height=Math.max(b,a._cachedPlaceholderHeight||0)+"px",a._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame!=="undefined"?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):setTimeout(function(){return a._scrollToCaretPosition(c)})}),
a._previousValue=d,a._previousMinRows=a._minRows}};SD.prototype.reset=function(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)};SD.prototype._noopInputHandler=function(){};SD.prototype._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
da.Object.defineProperties(SD.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Ph(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Ph(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled!==a&&((this._enabled=a)?APc(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()}}});SD.\u0275fac=function(a){return new (a||SD)};
SD.\u0275dir=df({type:SD,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",$g],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var TD=function(){};TD.\u0275fac=function(a){return new (a||TD)};TD.\u0275mod=cf({type:TD});TD.\u0275inj=Hc({});var UD=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};UD.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};UD.prototype.registerOnTouched=function(a){this.onTouched=a};UD.prototype.registerOnChange=function(a){this.onChange=a};UD.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};UD.\u0275fac=function(a){return new (a||UD)(Ye(di),Ye(Jd))};UD.\u0275dir=df({type:UD});
var zj=function(){UD.apply(this,arguments)};Y(zj,UD);zj.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(zj)))(b||zj)}}();zj.\u0275dir=df({type:zj,features:[Gf]});var VD=new fd("");var BPc={provide:VD,useExisting:Yc(function(){return yj}),multi:!0},CPc=new fd(""),yj=function(a,b,c){UD.call(this,a,b);this._compositionMode=c;this._composing=!1;this._compositionMode==null&&(this._compositionMode=!/android (\d+)/.test((Hl?window.navigator.userAgent:"").toLowerCase()))};Y(yj,UD);yj.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};yj.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
yj.prototype._compositionStart=function(){this._composing=!0};yj.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};yj.\u0275fac=function(a){return new (a||yj)(Ye(di),Ye(Jd),Ye(CPc,8))};
yj.\u0275dir=df({type:yj,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:[Gg([BPc]),Gf]});var WD=new fd(""),DPc=new fd(""),wj=function(a){return Nva(a)};var XD=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};h=XD.prototype;h._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Xva(this._rawValidators)};h._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Zva(this._rawAsyncValidators)};h._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
h._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};h.reset=function(a){this.control&&this.control.reset(a)};h.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};h.getError=function(a,b){return this.control?this.control.getError(a,b):null};
da.Object.defineProperties(XD.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 YD=function(){XD.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};Y(YD,XD);var ZD=function(){XD.apply(this,arguments)};Y(ZD,XD);da.Object.defineProperties(ZD.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var EPc=function(a){this._cd=a};
da.Object.defineProperties(EPc.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 $D=function(a){this._cd=a};Y($D,EPc);$D.\u0275fac=function(a){return new (a||$D)(Ye(YD,2))};
$D.\u0275dir=df({type:$D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&wg("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)},standalone:!1,features:[Gf]});var aE=function(a){this._cd=a};Y(aE,EPc);aE.\u0275fac=function(a){return new (a||aE)(Ye(ZD,10))};
aE.\u0275dir=df({type:aE,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&wg("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)("ng-submitted",b.isSubmitted)},standalone:!1,features:[Gf]});var FPc=new fd("",{factory:function(){return"whenDisabledForLegacyCode"}});var bE=function(){},GPc=function(a,b){this.value=a;this.source=b};Y(GPc,bE);var HPc=function(a,b){this.pristine=a;this.source=b};Y(HPc,bE);var IPc=function(a,b){this.touched=a;this.source=b};Y(IPc,bE);var JPc=function(a,b){this.status=a;this.source=b};Y(JPc,bE);var KPc=function(a){this.source=a};Y(KPc,bE);var LPc=function(a){this.source=a};Y(LPc,bE);
var cE=function(a,b){var c=this;this._pendingDirty=!1;this._hasOwnPendingAsyncValidator=null;this._pendingTouched=!1;this._onCollectionChange=function(){};this._parent=null;this._status=Zg.apply(null,[function(){return c.statusReactive()}].concat(q([])));this.statusReactive=ng.apply(null,[void 0].concat(q([])));this._pristine=Zg.apply(null,[function(){return c.pristineReactive()}].concat(q([])));this.pristineReactive=ng.apply(null,[!0].concat(q([])));this._touched=Zg.apply(null,[function(){return c.touchedReactive()}].concat(q([])));
this.touchedReactive=ng.apply(null,[!1].concat(q([])));this._events=new sf;this.events=this._events.asObservable();this._onDisabledChange=[];this._assignValidators(a);this._assignAsyncValidators(b)},mwa=function(a,b){a._assignValidators(b)},nwa=function(a,b){a._assignAsyncValidators(b)},Gma=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&&Gma(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new IPc(!0,
e))},MPc=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){MPc(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 IPc(!1,e))},Fma=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&&Fma(a._parent,Object.assign({},b,{sourceControl:e}));
c&&b.emitEvent!==!1&&a._events.next(new HPc(!1,e))},NPc=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){NPc(f,{onlySelf:!0,emitEvent:b.emitEvent})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b,e);c&&b.emitEvent!==!1&&a._events.next(new HPc(!0,e))};h=cE.prototype;
h.disable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(e){e.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();var c,d=(c=a.sourceControl)!=null?c:this;a.emitEvent!==!1&&(this._events.next(new GPc(this.value,d)),this._events.next(new JPc(this.status,d)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);
this._onDisabledChange.forEach(function(e){return e(!0)})};h.enable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});xj(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);this._onDisabledChange.forEach(function(c){return c(!1)})};
h._updateAncestors=function(a,b){this._parent&&!a.onlySelf&&(xj(this._parent,a),a.skipPristineCheck||this._parent._updatePristine({},b),this._parent._updateTouched({},b))};h.setParent=function(a){this._parent=a};h.getRawValue=function(){return this.value};
var xj=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 GPc(a.value,c)),a._events.next(new JPc(a.status,c)),a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&xj(a._parent,Object.assign({},
b,{sourceControl:c}))};h=cE.prototype;h._updateTreeValidity=function(a){a=a===void 0?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});xj(this,{onlySelf:!0,emitEvent:a.emitEvent})};h._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};h._runValidator=function(){return this.validator?this.validator(this):null};
h._runAsyncValidator=function(a,b){var c=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator={emitEvent:b!==!1,shouldHaveEmitted:a!==!1},this._asyncValidationSubscription=Sva(this.asyncValidator(this)).subscribe(function(d){c._hasOwnPendingAsyncValidator=null;c.setErrors(d,{emitEvent:b,shouldHaveEmitted:a})}))};
h._cancelExistingSubscription=function(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();var a,b,c,d=(c=((a=this._hasOwnPendingAsyncValidator)==null?void 0:a.emitEvent)||((b=this._hasOwnPendingAsyncValidator)==null?void 0:b.shouldHaveEmitted))!=null?c:!1;this._hasOwnPendingAsyncValidator=null;return d}return!1};h.setErrors=function(a,b){b=b===void 0?{}:b;this.errors=a;this._updateControlsErrors(b.emitEvent!==!1,this,b.shouldHaveEmitted)};
h.get=function(a){if(a==null)return null;Array.isArray(a)||(a=a.split("."));return a.length===0?null:a.reduce(function(b,c){return b&&b._find(c)},this)};h.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};h.hasError=function(a,b){return!!this.getError(a,b)};
h._updateControlsErrors=function(a,b,c){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);(a||c)&&this._events.next(new JPc(this.status,b));this._parent&&this._parent._updateControlsErrors(a,b,c)};h._initObservables=function(){this.valueChanges=new Ui;this.statusChanges=new Ui};
h._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};h._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};h._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};h._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};
h._updatePristine=function(a,b){var c=!this._anyControlsDirty(),d=this.pristine!==c;this.pristine=c;this._parent&&!a.onlySelf&&this._parent._updatePristine(a,b);d&&this._events.next(new HPc(this.pristine,b))};h._updateTouched=function(a,b){a=a===void 0?{}:a;this.touched=this._anyControlsTouched();this._events.next(new IPc(this.touched,b));this._parent&&!a.onlySelf&&this._parent._updateTouched(a,b)};h._registerOnCollectionChange=function(a){this._onCollectionChange=a};
h._setUpdateStrategy=function(a){Aj(a)&&a.updateOn!=null&&(this._updateOn=a.updateOn)};h._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};h._find=function(){return null};h._assignValidators=function(a){a=this._rawValidators=Array.isArray(a)?a.slice():a;this._composedValidatorFn=Array.isArray(a)?Xva(a):a||null};
h._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?Zva(a):a||null};
da.Object.defineProperties(cE.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 Rc(this.statusReactive)},
set:function(a){var b=this;Rc(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 Rc(this.pristineReactive)},set:function(a){var b=this;Rc(function(){return b.pristineReactive.set(a)})}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},touched:{configurable:!0,enumerable:!0,get:function(){return Rc(this.touchedReactive)},set:function(a){var b=this;Rc(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 dE=function(a,b,c){cE.call(this,(Aj(b)?b.validators:b)||null,(Aj(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();xj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(dE,cE);var OPc=function(a,b,c){if(a.controls[b])return a.controls[b];a.controls[b]=c;c.setParent(a);c._registerOnCollectionChange(a._onCollectionChange);return c};h=dE.prototype;
h.addControl=function(a){var b=b===void 0?{}:b;OPc(this,a);xj(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.removeControl=function(a){var b=b===void 0?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];xj(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;twa(this,a);Object.keys(a).forEach(function(d){swa(c,!0,d);c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});xj(this,b)};h.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(Object.keys(a).forEach(function(d){var e=c.controls[d];e&&e.patchValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})}),xj(this,b))};
h.reset=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;this._forEachChild(function(d,e){d.reset(a?a[e]:null,Object.assign({},b,{onlySelf:!0}))});this._updatePristine(b,this);this._updateTouched(b,this);xj(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new LPc(this))};h.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};
h._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&xj(this,{onlySelf:!0});return a};h._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};h._updateValue=function(){this.value=this._reduceValue()};
h._anyControls=function(a){for(var b=m(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};h._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};h._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
h._allControlsDisabled=function(){for(var a=m(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled};h._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var PPc=function(){dE.apply(this,arguments)};Y(PPc,dE);var QPc={provide:ZD,useExisting:Yc(function(){return eE})},RPc=Promise.resolve(),eE=function(a,b,c){ZD.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Zg.apply(null,[function(){return d.submittedReactive()}].concat(q([])));this.submittedReactive=ng.apply(null,[!1].concat(q([])));this._directives=new Set;this.ngSubmit=new Ui;this.form=new dE({},Xva(a),Zva(b))};Y(eE,ZD);h=eE.prototype;h.ngAfterViewInit=function(){this._setUpdateStrategy()};
h.addControl=function(a){var b=this;RPc.then(function(){var c=b._findContainer(a.path);a.control=OPc(c,a.name,a.control);iwa(a.control,a,b.callSetDisabledState);xj(a.control,{emitEvent:!1});b._directives.add(a)})};h.removeControl=function(a){var b=this;RPc.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};h.updateModel=function(a,b){var c=this;RPc.then(function(){c.form.get(a.path).setValue(b)})};h.setValue=function(a){this.control.setValue(a)};
h.onSubmit=function(a){this.submittedReactive.set(!0);qwa(this.form,this._directives);this.ngSubmit.emit(a);this.form._events.next(new KPc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};h.onReset=function(){this.resetForm()};h.resetForm=function(a){this.form.reset(a);this.submittedReactive.set(!1)};h._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)};
h._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};da.Object.defineProperties(eE.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Rc(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}}});
eE.\u0275fac=function(a){return new (a||eE)(Ye(WD,10),Ye(DPc,10),Ye(FPc,8))};eE.\u0275dir=df({type:eE,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&N("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Gg([QPc]),Gf]});var fE=function(a,b,c){a=a===void 0?null:a;cE.call(this,(Aj(b)?b.validators:b)||null,(Aj(b)?b.asyncValidators:c)||null);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();xj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Aj(b)&&(b.nonNullable||b.initialValueIsDefault)&&(uwa(a)?this.defaultValue=a.value:this.defaultValue=a)};Y(fE,cE);h=fE.prototype;
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;this.value=this._pendingValue=a;this._onChange.length&&b.emitModelToViewChange!==!1&&this._onChange.forEach(function(d){return d(c.value,b.emitViewToModelChange!==!1)});xj(this,b)};h.patchValue=function(a,b){b=b===void 0?{}:b;this.setValue(a,b)};
h.reset=function(a,b){a=a===void 0?this.defaultValue:a;b=b===void 0?{}:b;this._applyFormState(a);NPc(this,b);MPc(this,b);this.setValue(this.value,b);b.overwriteDefaultValue&&(this.defaultValue=this.value);this._pendingChange=!1;var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new LPc(this))};h._updateValue=function(){};h._anyControls=function(){return!1};h._allControlsDisabled=function(){return this.disabled};h.registerOnChange=function(a){this._onChange.push(a)};
h._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};h._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};h._forEachChild=function(){};h._syncPendingControls=function(){return this.updateOn==="submit"&&(this._pendingDirty&&Fma(this),this._pendingTouched&&Gma(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};
h._applyFormState=function(a){uwa(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 SPc={provide:YD,useExisting:Yc(function(){return gE})},TPc=Promise.resolve(),gE=function(a,b,c,d,e,f){YD.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new fE;this._registered=!1;this.name="";this.update=new Ui;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=rwa(d)};Y(gE,YD);h=gE.prototype;
h.ngOnChanges=function(a){this._checkForErrors();if(!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var b=a.name.previousValue;this.formDirective.removeControl({name:b,path:this._getPath(b)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a);pwa(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};h.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
h.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};h._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};h._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)};h._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
h._setUpStandalone=function(){iwa(this.control,this,this.callSetDisabledState);xj(this.control,{emitEvent:!1})};h._checkForErrors=function(){this._checkName()};h._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};h._updateValue=function(a){var b=this;TPc.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;(c=b._changeDetectorRef)==null||c.markForCheck()})};
h._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=a!==0&&$g(a);TPc.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;(d=b._changeDetectorRef)==null||d.markForCheck()})};h._getPath=function(a){return this._parent?cwa(a,this._parent):[a]};
da.Object.defineProperties(gE.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}}});gE.\u0275fac=function(a){return new (a||gE)(Ye(ZD,9),Ye(WD,10),Ye(DPc,10),Ye(VD,10),Ye(ux,8),Ye(FPc,8))};
gE.\u0275dir=df({type:gE,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:[Gg([SPc]),Gf,bx]});var hE=function(){};hE.\u0275fac=function(a){return new (a||hE)};hE.\u0275dir=df({type:hE,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});var UPc={provide:VD,useExisting:Yc(function(){return iE}),multi:!0},iE=function(){zj.apply(this,arguments)};Y(iE,zj);iE.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};iE.prototype.registerOnChange=function(a){this.onChange=function(b){a(b==""?null:parseFloat(b))}};iE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(iE)))(b||iE)}}();
iE.\u0275dir=df({type:iE,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:[Gg([UPc]),Gf]});var VPc={provide:VD,useExisting:Yc(function(){return jE}),multi:!0},kE=function(){this._accessors=[]};kE.prototype.add=function(a,b){this._accessors.push([a,b])};kE.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}};kE.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};
kE.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};kE.\u0275fac=function(a){return new (a||kE)};kE.\u0275prov=Fc({token:kE,factory:kE.\u0275fac,providedIn:"root"});var jE=function(a,b,c,d){zj.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=(e=p(FPc,{optional:!0}))!=null?e:"whenDisabledForLegacyCode"};Y(jE,zj);h=jE.prototype;
h.ngOnInit=function(){this._control=this._injector.get(YD);this._checkName();this._registry.add(this._control,this)};h.ngOnDestroy=function(){this._registry.remove(this)};h.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};h.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};
h.setDisabledState=function(a){(this.setDisabledStateFired||a||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",a);this.setDisabledStateFired=!0};h._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};jE.\u0275fac=function(a){return new (a||jE)(Ye(di),Ye(Jd),Ye(kE),Ye(Ae))};
jE.\u0275dir=df({type:jE,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:[Gg([VPc]),Gf]});var lE=function(a,b,c){ZD.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Zg.apply(null,[function(){return d._submittedReactive()}].concat(q([])));this._submittedReactive=ng.apply(null,[!1].concat(q([])));this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this._setValidators(a);this._setAsyncValidators(b)};Y(lE,ZD);h=lE.prototype;h.ngOnChanges=function(a){this.onChanges(a)};h.ngOnDestroy=function(){this.onDestroy()};
h.onChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};h.onDestroy=function(){this.form&&(jwa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};h.addControl=function(a){var b=this.form.get(a.path);iwa(b,a,this.callSetDisabledState);xj(b,{emitEvent:!1});this.directives.push(a);return b};
h.removeControl=function(a){kwa(a.control||null,a);var b=this.directives;a=b.indexOf(a);a>-1&&b.splice(a,1)};h.updateModel=function(a,b){this.form.get(a.path).setValue(b)};h.onReset=function(){this.resetForm()};h.resetForm=function(a,b){b=b===void 0?{}:b;this.form.reset(a,b);this._submittedReactive.set(!1)};
h.onSubmit=function(a){this.submitted=!0;qwa(this.form,this.directives);this.ngSubmit.emit(a);this.form._events.next(new KPc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};h._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(kwa(c||null,b),d instanceof fE&&(iwa(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
h._setUpFormContainer=function(a){var b=this.form.get(a.path);dwa(b,a);xj(b,{emitEvent:!1})};h._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&jwa(b,a)&&xj(b,{emitEvent:!1})}};h._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};h._updateValidators=function(){dwa(this.form,this);this._oldForm&&jwa(this._oldForm,this)};h._checkFormPresent=function(){};
da.Object.defineProperties(lE.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Rc(this._submittedReactive)},set:function(a){this._submittedReactive.set(a)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});lE.\u0275fac=function(a){return new (a||lE)(Ye(WD,10),Ye(DPc,10),Ye(FPc,8))};lE.\u0275dir=df({type:lE,features:[Gf,bx]});var WPc=function(a,b,c){cE.call(this,(Aj(b)?b.validators:b)||null,(Aj(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();xj(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(WPc,cE);h=WPc.prototype;h.at=function(a){return this.controls[this._adjustIndex(a)]};
h.push=function(a,b){var c=this;b=b===void 0?{}:b;Array.isArray(a)?a.forEach(function(d){c.controls.push(d);c._registerControl(d)}):(this.controls.push(a),this._registerControl(a));xj(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.insert=function(a,b,c){c=c===void 0?{}:c;this.controls.splice(a,0,b);this._registerControl(b);xj(this,{emitEvent:c.emitEvent})};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;twa(this,a);a.forEach(function(d,e){swa(c,!1,e);c.at(e).setValue(d,{onlySelf:!0,emitEvent:b.emitEvent})});xj(this,b)};h.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(a.forEach(function(d,e){c.at(e)&&c.at(e).patchValue(d,{onlySelf:!0,emitEvent:b.emitEvent})}),xj(this,b))};
h.reset=function(a,b){a=a===void 0?[]:a;b=b===void 0?{}:b;this._forEachChild(function(d,e){d.reset(a[e],Object.assign({},b,{onlySelf:!0}))});this._updatePristine(b,this);this._updateTouched(b,this);xj(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new LPc(this))};h.getRawValue=function(){return this.controls.map(function(a){return a.getRawValue()})};
h.clear=function(a){a=a===void 0?{}:a;this.controls.length<1||(this._forEachChild(function(b){return b._registerOnCollectionChange(function(){})}),this.controls.splice(0),xj(this,{emitEvent:a.emitEvent}))};h._adjustIndex=function(a){return a<0?a+this.length:a};h._syncPendingControls=function(){var a=this.controls.reduce(function(b,c){return c._syncPendingControls()?!0:b},!1);a&&xj(this,{onlySelf:!0});return a};h._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};
h._updateValue=function(){var a=this;this.value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(b){return b.value})};h._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};h._allControlsDisabled=function(){for(var a=m(this.controls),b=a.next();!b.done;b=a.next())if(b.value.enabled)return!1;return this.controls.length>0||this.disabled};
h._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};h._find=function(a){var b;return(b=this.at(a))!=null?b:null};da.Object.defineProperties(WPc.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.controls.length}}});var XPc=new fd(""),YPc={provide:YD,useExisting:Yc(function(){return mE})},mE=function(a,b,c,d,e){YD.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new Ui;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=rwa(c)};Y(mE,YD);
mE.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&kwa(b,this);iwa(this.form,this,this.callSetDisabledState);xj(this.form,{emitEvent:!1})}pwa(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};mE.prototype.ngOnDestroy=function(){this.form&&kwa(this.form,this)};mE.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};mE.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
da.Object.defineProperties(mE.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}}});mE._ngModelWarningSentOnce=!1;mE.\u0275fac=function(a){return new (a||mE)(Ye(WD,10),Ye(DPc,10),Ye(VD,10),Ye(XPc,8),Ye(FPc,8))};
mE.\u0275dir=df({type:mE,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Gg([YPc]),Gf,bx]});var ZPc={provide:YD,useExisting:Yc(function(){return nE})},nE=function(a,b,c,d,e){YD.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new Ui;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=rwa(d)};Y(nE,YD);nE.prototype.ngOnChanges=function(a){this._added||this._setUpControl();pwa(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
nE.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};nE.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};nE.prototype._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
da.Object.defineProperties(nE.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return cwa(this.name==null?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});nE._ngModelWarningSentOnce=!1;nE.\u0275fac=function(a){return new (a||nE)(Ye(ZD,13),Ye(WD,10),Ye(DPc,10),Ye(VD,10),Ye(XPc,8))};
nE.\u0275dir=df({type:nE,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Gg([ZPc]),Gf,bx]});var $Pc={provide:ZD,useExisting:Yc(function(){return oE})},oE=function(){lE.apply(this,arguments);this.form=null;this.ngSubmit=new Ui};Y(oE,lE);da.Object.defineProperties(oE.prototype,{control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});oE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(oE)))(b||oE)}}();
oE.\u0275dir=df({type:oE,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:[Gg([$Pc]),Gf]});var pE=function(){this._validator=Pva};pE.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):Pva,this._onChange&&this._onChange())};pE.prototype.validate=function(a){return this._validator(a)};pE.prototype.registerOnValidatorChange=function(a){this._onChange=a};pE.prototype.enabled=function(a){return a!=null};pE.\u0275fac=function(a){return new (a||pE)};
pE.\u0275dir=df({type:pE,features:[bx]});var aQc={provide:WD,useExisting:Yc(function(){return qE}),multi:!0},qE=function(){pE.apply(this,arguments);this.inputName="max";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return Mva(a)}};Y(qE,pE);qE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(qE)))(b||qE)}}();
qE.\u0275dir=df({type:qE,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&&Kf("max",b._enabled?b.max:null)},inputs:{max:"max"},standalone:!1,features:[Gg([aQc]),Gf]});
var bQc={provide:WD,useExisting:Yc(function(){return rE}),multi:!0},rE=function(){pE.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return Lva(a)}};Y(rE,pE);rE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(rE)))(b||rE)}}();
rE.\u0275dir=df({type:rE,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&&Kf("min",b._enabled?b.min:null)},inputs:{min:"min"},standalone:!1,features:[Gg([bQc]),Gf]});var cQc={provide:WD,useExisting:Yc(function(){return sE}),multi:!0},sE=function(){pE.apply(this,arguments);this.inputName="required";this.normalizeInput=$g;this.createValidator=function(){return Nva}};
Y(sE,pE);sE.prototype.enabled=function(a){return a};sE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(sE)))(b||sE)}}();sE.\u0275dir=df({type:sE,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&Kf("required",b._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Gg([cQc]),Gf]});
var dQc={provide:WD,useExisting:Yc(function(){return tE}),multi:!0},tE=function(){pE.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return typeof a==="number"?a:parseInt(a,10)};this.createValidator=function(a){return Ova(a)}};Y(tE,pE);tE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tE)))(b||tE)}}();
tE.\u0275dir=df({type:tE,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Kf("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Gg([dQc]),Gf]});
var eQc={provide:WD,useExisting:Yc(function(){return uE}),multi:!0},uE=function(){pE.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Qva(a)}};Y(uE,pE);uE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(uE)))(b||uE)}}();
uE.\u0275dir=df({type:uE,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Kf("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[Gg([eQc]),Gf]});var vE=function(){};vE.\u0275fac=function(a){return new (a||vE)};vE.\u0275mod=cf({type:vE});vE.\u0275inj=Hc({});var wE=function(){this.useNonNullable=!1};h=wE.prototype;h.group=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);var c={};vwa(b)?c=b:b!==null&&(c.validators=b.validator,c.asyncValidators=b.asyncValidator);return new dE(a,c)};h.record=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);return new PPc(a,b)};h.control=function(a,b,c){var d={};if(!this.useNonNullable)return new fE(a,b,c);vwa(b)?d=b:(d.validators=b,d.asyncValidators=c);return new fE(a,Object.assign({},d,{nonNullable:!0}))};
h.array=function(a,b,c){var d=this;a=a.map(function(e){return d._createControl(e)});return new WPc(a,b,c)};h._reduceControls=function(a){var b=this,c={};Object.keys(a).forEach(function(d){c[d]=b._createControl(a[d])});return c};h._createControl=function(a){return a instanceof fE?a:a instanceof cE?a:Array.isArray(a)?this.control(a[0],a.length>1?a[1]:null,a.length>2?a[2]:null):this.control(a)};
da.Object.defineProperties(wE.prototype,{nonNullable:{configurable:!0,enumerable:!0,get:function(){var a=new wE;a.useNonNullable=!0;return a}}});wE.\u0275fac=function(a){return new (a||wE)};wE.\u0275prov=Fc({token:wE,factory:wE.\u0275fac,providedIn:"root"});var xE=function(){};xE.\u0275fac=function(a){return new (a||xE)};xE.\u0275mod=cf({type:xE});xE.\u0275inj=Hc({imports:[vE]});var yE=function(){};yE.\u0275fac=function(a){return new (a||yE)};yE.\u0275mod=cf({type:yE});yE.\u0275inj=Hc({imports:[vE]});var fQc=new fd("MAT_INPUT_VALUE_ACCESSOR");var gQc="button checkbox file hidden image radio range reset submit".split(" "),hQc=new fd("MAT_INPUT_CONFIG"),zE=function(){var a=this;this._elementRef=p(Jd);this._platform=p(Wh);this.ngControl=p(YD,{optional:!0,self:!0});this._autofillMonitor=p(RD);this._ngZone=p(Rg);this._formField=p(wPc,{optional:!0});this._renderer=p(di);this._uid=p(bi).getId("mat-input-");this._config=p(hQc,{optional:!0});this.focused=!1;this.stateChanges=new sf;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(l){return kra().has(l)});this._iOSKeyupListener=function(l){l=l.target;l.value||l.selectionStart!==0||l.selectionEnd!==0||(l.setSelectionRange(1,1),l.setSelectionRange(0,0))};var b=p(eE,{optional:!0}),c=p(oE,{optional:!0}),d=p(Wz),e=p(fQc,{optional:!0,self:!0}),f=this._elementRef.nativeElement,g=f.nodeName.toLowerCase();e?ff(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 JDc(d,this.ngControl,c,b,this.stateChanges);this._isServer=!this._platform.isBrowser;this._isNativeSelect=g==="select";this._isTextarea=g==="textarea";this._isInFormField=!!this._formField;var k;this.disabledInteractive=((k=this._config)==
null?void 0:k.disabledInteractive)||!1;this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select");this._signalBasedValueAccessor&&gf(function(){a._signalBasedValueAccessor.value();a.stateChanges.next()})};h=zE.prototype;h.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};h.ngOnChanges=function(){this.stateChanges.next()};
h.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);var a;(a=this._cleanupIosKeyup)==null||a.call(this);var b;(b=this._cleanupWebkitWheel)==null||b.call(this)};h.ngDoCheck=function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next()));this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};
h.focus=function(a){this._elementRef.nativeElement.focus(a)};h.updateErrorState=function(){this._errorStateTracker.updateErrorState()};h._focusChanged=function(a){if(a!==this.focused){if(!this._isNativeSelect&&a&&this.disabled&&this.disabledInteractive){var b=this._elementRef.nativeElement;b.type==="number"?(b.type="text",b.setSelectionRange(0,0),b.type="number"):b.setSelectionRange(0,0)}this.focused=a;this.stateChanges.next()}};h._onInput=function(){};
h._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};h._dirtyCheckPlaceholder=function(){var a=this._getPlaceholder();if(a!==this._previousPlaceholder){var b=this._elementRef.nativeElement;(this._previousPlaceholder=a)?b.setAttribute("placeholder",a):b.removeAttribute("placeholder")}};h._getPlaceholder=function(){return this.placeholder||null};h._validateType=function(){gQc.indexOf(this._type)};
h._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1};h._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};h.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};h.onContainerClick=function(){this.focused||this.focus()};
h._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)};h._getReadonlyAttribute=function(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null};
da.Object.defineProperties(zE.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Mh(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:awa(b._rawValidators,
wj))!=null?d:!1},set:function(a){this._required=Mh(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&kra().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=Mh(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(" "))||[]}}});zE.\u0275fac=function(a){return new (a||zE)};
zE.\u0275dir=df({type:zE,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&&(Qf("id",b.id)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),Kf("name",
b.name||null)("readonly",b._getReadonlyAttribute())("aria-disabled",b.disabled&&b.disabledInteractive?"true":null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required)("id",b.id),wg("mat-input-server",b._isServer)("mat-mdc-form-field-textarea-control",b._isInFormField&&b._isTextarea)("mat-mdc-form-field-input-control",b._isInFormField)("mat-mdc-input-disabled-interactive",b.disabledInteractive)("mdc-text-field__input",b._isInFormField)("mat-mdc-native-select-inline",b._isInlineSelect()))},
inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g]},exportAs:["matInput"],features:[Gg([{provide:HD,useExisting:zE}]),bx]});var AE=function(){};AE.\u0275fac=function(a){return new (a||AE)};AE.\u0275mod=cf({type:AE});AE.\u0275inj=Hc({imports:[ND,ND,TD,Ey]});var BE=function(){};BE.\u0275fac=function(a){return new (a||BE)};BE.\u0275mod=cf({type:BE});BE.\u0275inj=Hc({imports:[AE,OD]});var sxa=Symbol("$b"),CE=function(a){this.params=a||{}};CE.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};CE.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};CE.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};da.Object.defineProperties(CE.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var Cwa={exact:Hwa,subset:Kwa},Dwa={exact:Fwa,subset:Iwa,ignored:function(){return!0}},Gj=function(a,b,c){a=a===void 0?new Fj([],{}):a;b=b===void 0?{}:b;this.root=a;this.queryParams=b;this.fragment=c===void 0?null:c};Gj.prototype.toString=function(){return iQc.serialize(this)};da.Object.defineProperties(Gj.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new CE(this.queryParams));return this._queryParamMap}}});
var Fj=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})};Fj.prototype.hasChildren=function(){return this.numberOfChildren>0};Fj.prototype.toString=function(){return Pwa(this)};da.Object.defineProperties(Fj.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var Ij=function(a,b){this.path=a;this.parameters=b};
Ij.prototype.toString=function(){return Nwa(this.path)+Owa(this.parameters)};var DE=function(){};DE.\u0275fac=function(a){return new (a||DE)};DE.\u0275prov=Fc({token:DE,factory:function(){return new EE},providedIn:"root"});var EE=function(){};
EE.prototype.parse=function(a){a=new jQc(a);FE(a,"/");var b=a.remaining===""||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new Fj([],{}):new Fj([],kQc(a));var c={};if(FE(a,"?")){do{var d,e,f=a.remaining.match(lQc);if(e=f?f[0]:"")a.capture(e),f="",FE(a,"=")&&(d=(d=a.remaining.match(mQc))?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(FE(a,
"&"))}return new Gj(b,c,FE(a,"#")?decodeURIComponent(a.remaining):null)};EE.prototype.serialize=function(a){var b="/"+Qwa(a.root,!0),c=Twa(a.queryParams);a=typeof a.fragment==="string"?"#"+encodeURI(a.fragment):"";return b+c+a};
var iQc=new EE,Uwa=/^[^\/()?;#]+/,nQc=/^[^\/()?;=#]+/,lQc=/^[^=?&#]+/,mQc=/^[^&#]+/,jQc=function(a){this.remaining=this.url=a},kQc=function(a){if(a.remaining==="")return{};FE(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(oQc(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(oQc(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=pQc(a,!0));var d={};a.remaining.startsWith("(")&&(d=pQc(a,!1));if(b.length>0||Object.keys(c).length>
0)d.primary=new Fj(b,c);return d},oQc=function(a){var b=Vwa(a.remaining);if(b===""&&a.remaining.startsWith(";"))throw new Vc(4009,!1);a.capture(b);b=decodeURIComponent(b);for(var c={};FE(a,";");){var d,e=a;if(d=(d=e.remaining.match(nQc))?d[0]:""){e.capture(d);var f="";if(FE(e,"=")){var g=Vwa(e.remaining);g&&(f=g,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new Ij(b,c)},pQc=function(a,b){var c={};for(a.capture("(");!FE(a,")")&&a.remaining.length>0;){var d=Vwa(a.remaining),e=
a.remaining[d.length];if(e!=="/"&&e!==")"&&e!==";")throw new Vc(4010,!1);e=void 0;d.indexOf(":")>-1?(e=d.slice(0,d.indexOf(":")),a.capture(e),a.capture(":")):b&&(e="primary");d=kQc(a);var f=void 0;c[(f=e)!=null?f:"primary"]=Object.keys(d).length===1&&d.primary?d.primary:new Fj([],d);FE(a,"//")}return c},FE=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};jQc.prototype.capture=function(a){if(!FE(this,a))throw new Vc(4011,!1);};var ixa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&c.length>0&&bxa(c[0]))throw new Vc(4003,!1);if((a=c.find(fxa))&&a!==(c.length>0?c[c.length-1]:null))throw new Vc(4004,!1);},axa=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var GE=function(a,b){this.id=a;this.url=b},hr=function(a,b,c,d){c=c===void 0?"imperative":c;d=d===void 0?null:d;GE.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};Y(hr,GE);hr.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var Qj=function(a,b,c){GE.call(this,a,b);this.urlAfterRedirects=c;this.type=1};Y(Qj,GE);
Qj.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var Rj=function(a,b,c,d){GE.call(this,a,b);this.reason=c;this.code=d;this.type=2};Y(Rj,GE);Rj.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var Tj=function(a,b,c,d){GE.call(this,a,b);this.reason=c;this.code=d;this.type=16};Y(Tj,GE);
var Sj=function(a,b,c,d){GE.call(this,a,b);this.error=c;this.target=d;this.type=3};Y(Sj,GE);Sj.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var qQc=function(a,b,c,d){GE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};Y(qQc,GE);qQc.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var rQc=function(a,b,c,d){GE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};Y(rQc,GE);rQc.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var sQc=function(a,b,c,d,e){GE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};Y(sQc,GE);
sQc.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var tQc=function(a,b,c,d){GE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};Y(tQc,GE);tQc.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var uQc=function(a,b,c,d){GE.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};Y(uQc,GE);uQc.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var vQc=function(a){this.route=a;this.type=9};vQc.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var wQc=function(a){this.route=a;this.type=10};
wQc.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var Vxa=function(a){this.snapshot=a;this.type=11};Vxa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var xQc=function(a){this.snapshot=a;this.type=12};xQc.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Wxa=function(a){this.snapshot=a;this.type=13};Wxa.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var yQc=function(a){this.snapshot=a;this.type=14};yQc.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var zQc=function(a,b,c){this.position=a;this.anchor=b;this.scrollBehavior=c;this.type=15};
zQc.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var AQc=function(){},BQc=function(a,b){this.url=a;this.navigationBehaviorOptions=b};var CQc=function(a){this.rootInjector=a;this.attachRef=this.route=this.outlet=null;this.children=new HE(this.rootInjector)};da.Object.defineProperties(CQc.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=Kj((a=this.route)==null?void 0:a.snapshot))!=null?b:this.rootInjector}}});
var HE=function(a){this.rootInjector=a;this.contexts=new Map},DQc=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},EQc=function(a,b){var c=a.getContext(b);c||(c=new CQc(a.rootInjector),a.contexts.set(b,c));return c};HE.prototype.getContext=function(a){return this.contexts.get(a)||null};HE.\u0275fac=function(a){return new (a||HE)($c($e))};HE.\u0275prov=Fc({token:HE,factory:HE.\u0275fac,providedIn:"root"});var IE=function(a){this._root=a};IE.prototype.parent=function(a){a=this.pathFromRoot(a);return a.length>1?a[a.length-2]:null};IE.prototype.children=function(a){return(a=pxa(a,this._root))?a.children.map(function(b){return b.value}):[]};IE.prototype.firstChild=function(a){return(a=pxa(a,this._root))&&a.children.length>0?a.children[0].value:null};IE.prototype.pathFromRoot=function(a){return qxa(a,this._root).map(function(b){return b.value})};
da.Object.defineProperties(IE.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var Lj=function(a,b){this.value=a;this.children=b};Lj.prototype.toString=function(){return"TreeNode("+this.value+")"};var Bxa=function(a,b){this._root=a;this.snapshot=b;uxa(this,a)};Y(Bxa,IE);Bxa.prototype.toString=function(){return this.snapshot.toString()};
var Mj=function(a,b,c,d,e,f,g,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=g;this._futureSnapshot=k;var l,r;this.title=(r=(l=this.dataSubject)==null?void 0:l.pipe(A(function(w){return w[sxa]})))!=null?r:ee(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};Mj.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
da.Object.defineProperties(Mj.prototype,{routeConfig:{configurable:!0,enumerable:!0,get:function(){return this._futureSnapshot.routeConfig}},root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},
pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap!=null||(this._paramMap=this.params.pipe(A(function(a){return new CE(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=this.queryParams.pipe(A(function(a){return new CE(a)})));return this._queryParamMap}}});
var JE=function(a,b,c,d,e,f,g,k,l){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=g;this.routeConfig=k;this._resolve=l};JE.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
da.Object.defineProperties(JE.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a[sxa]}},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 CE(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new CE(this.queryParams));return this._queryParamMap}}});var FQc=function(a,b){this._root=b;this.url=a;uxa(this,b)};Y(FQc,IE);FQc.prototype.toString=function(){return vxa(this._root)};var GQc=new fd(""),KE=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new Ui;this.deactivateEvents=new Ui;this.attachEvents=new Ui;this.detachEvents=new Ui;this.routerOutletData=Og.apply(null,q([]));this.parentContexts=p(HE);this.location=p(fg);this.changeDetector=p(ux);this.inputBinder=p(HQc,{optional:!0})};
KE.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(IQc(this,b)&&(this.deactivate(),DQc(this.parentContexts,b)),JQc(this))}};KE.prototype.ngOnDestroy=function(){IQc(this,this.name)&&DQc(this.parentContexts,this.name);var a;(a=this.inputBinder)==null||KQc(a,this)};var IQc=function(a,b){var c;return((c=a.parentContexts.getContext(b))==null?void 0:c.outlet)===a};KE.prototype.ngOnInit=function(){JQc(this)};
var JQc=function(a){var b=a.parentContexts,c=a.name,d=EQc(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):LQc(a,b.route,b.injector))};KE.prototype.detach=function(){if(!this.activated)throw new Vc(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
KE.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);(b=this.inputBinder)!=null&&(KQc(b,this),MQc(b,this));this.attachEvents.emit(a.instance)};KE.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var LQc=function(a,b,c){if(a.isActivated)throw new Vc(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=EQc(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new NQc(b,f,d.injector,a.routerOutletData),environmentInjector:c});a.changeDetector.markForCheck();(b=a.inputBinder)!=null&&(KQc(b,a),MQc(b,a));a.activateEvents.emit(a.activated.instance)};
da.Object.defineProperties(KE.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 Vc(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Vc(4012,!1);return this._activatedRoute}}});
KE.\u0275fac=function(a){return new (a||KE)};KE.\u0275dir=df({type:KE,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[bx]});var NQc=function(a,b,c,d){this.route=a;this.childContexts=b;this.parent=c;this.outletData=d};
NQc.prototype.get=function(a,b){return a===Mj?this.route:a===HE?this.childContexts:a===GQc?this.outletData:this.parent.get(a,b)};
var HQc=new fd(""),LE=function(){this.outletDataSubscriptions=new Map},KQc=function(a,b){var c;(c=a.outletDataSubscriptions.get(b))==null||c.unsubscribe();a.outletDataSubscriptions.delete(b)},MQc=function(a,b){var c=b.activatedRoute,d=le([c.queryParams,c.params,c.data]).pipe(Af(function(e,f){var g=m(e);e=g.next().value;var k=g.next().value;g=g.next().value;g=Object.assign({},e,k,g);return f===0?ee(g):Promise.resolve(g)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&b.activatedRoute===
c&&c.component!==null){var f=ppa(c.component);if(f){f=m(f.inputs);for(var g=f.next();!g.done;g=f.next())g=g.value.templateName,b.activatedComponentRef.setInput(g,e[g])}else KQc(a,b)}else KQc(a,b)});a.outletDataSubscriptions.set(b,d)};LE.\u0275fac=function(a){return new (a||LE)};LE.\u0275prov=Fc({token:LE,factory:LE.\u0275fac});var zxa=function(){};zxa.\u0275fac=function(a){return new (a||zxa)};zxa.\u0275cmp=D({type:zxa,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(a){a&1&&M(0,"router-outlet")},dependencies:[KE],encapsulation:2});var PQc=function(a,b,c,d){return A(function(e){(new OQc(b,e.targetRouterState,e.currentRouterState,c,d)).activate(a);return e})},OQc=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};OQc.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;QQc(this,b,c,a);wxa(this.futureState.root);RQc(this,b,c,a)};
var QQc=function(a,b,c,d){var e=rxa(c);b.children.forEach(function(f){var g=f.value.outlet,k=e[g],l=f.value,r=k?k.value:null;l===r?l.component?(l=d.getContext(l.outlet))&&QQc(a,f,k,l.children):QQc(a,f,k,d):r&&SQc(a,k,d);delete e[g]});Object.values(e).forEach(function(f){SQc(a,f,d)})},SQc=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=rxa(b);b=m(Object.values(b));for(var e=b.next();!e.done;e=b.next())SQc(a,e.value,c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},RQc=function(a,b,c,d){var e=rxa(c);b.children.forEach(function(f){var g=e[f.value.outlet],k=f.value,l=g?g.value:null;wxa(k);k===l?k.component?(k=EQc(d,k.outlet),RQc(a,f,g,k.children)):RQc(a,f,g,d):k.component?(g=EQc(d,k.outlet),g.attachRef=null,g.route=k,g.outlet&&LQc(g.outlet,k,g.injector),RQc(a,f,null,g.children)):RQc(a,f,null,d);a.forwardEvent(new yQc(f.value.snapshot))});b.children.length&&a.forwardEvent(new xQc(b.value.snapshot))};var Ixa=Symbol("bc");var Lxa=function(a){this.path=a;this.route=this.path[this.path.length-1]},Nxa=function(a,b){this.component=a;this.route=b};var ME=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.segmentGroup=a||null;Object.setPrototypeOf(this,ME.prototype)};Y(ME,Error);var TQc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.urlTree=a;Object.setPrototypeOf(this,TQc.prototype)};Y(TQc,Error);
var UQc=function(a,b){this.urlSerializer=a;this.urlTree=b},VQc=function(a){var b,c;return y(function(d){b=[];for(c=a.root;;){b=b.concat(c.segments);if(c.numberOfChildren===0)return d.return(b);if(c.numberOfChildren>1||!c.children.primary)throw new Vc(4E3,!1);c=c.children.primary}ce(d)})},YQc=function(a,b,c,d,e,f){var g,k;return y(function(l){if(l.nextAddress==1)return z(l,bya(c,e,f),2);g=l.yieldResult;if(g instanceof Gj)throw new TQc(g);var r=g,w=a.urlSerializer.parse(g);r=WQc(a,r,w.root,b,d);k=new Gj(r,
XQc(w.queryParams,a.urlTree.queryParams),w.fragment);if(g[0]==="/")throw new TQc(k);return l.return(k)})},XQc=function(a,b){var c={};Object.entries(a).forEach(function(d){var e=m(d);d=e.next().value;e=e.next().value;c[d]=typeof e==="string"&&e[0]===":"?b[e.substring(1)]:e});return c},WQc=function(a,b,c,d,e){var f=ZQc(c.segments,d,e),g={};Object.entries(c.children).forEach(function(k){var l=m(k);k=l.next().value;l=l.next().value;g[k]=WQc(a,b,l,d,e)});return new Fj(f,g)},ZQc=function(a,b,c){return a.map(function(d){if(d.path[0]===
":"){if(d=c[d.path.substring(1)],!d)throw new Vc(4001,!1);}else a:for(var e=0,f=m(b),g=f.next();!g.done;g=f.next()){g=g.value;if(g.path===d.path){b.splice(e);d=g;break a}e++}return d})};var dya={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var $Qc=function(){},jya=function(a,b,c,d,e,f,g,k){this.injector=a;this.configLoader=b;this.rootComponentType=c;this.config=d;this.urlTree=e;this.paramsInheritanceStrategy=f;this.urlSerializer=g;this.abortSignal=k;this.absoluteRedirectCount=0;this.allowRedirects=!0;this.applyRedirects=new UQc(this.urlSerializer,this.urlTree)};
jya.prototype.recognize=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return b=iya(a.urlTree.root,[],[],a.config).segmentGroup,z(l,a.match(b),2);c=l.yieldResult;d=c.children;e=c.rootSnapshot;f=new Lj(e,d);g=new FQc("",f);var r=e,w=a.urlTree.queryParams,x=a.urlTree.fragment;w=w===void 0?null:w;x=x===void 0?null:x;var C=C===void 0?new EE:C;r=Ywa(r);k=exa(r,[],w,x,C);k.queryParams=a.urlTree.queryParams;g.url=a.urlSerializer.serialize(k);return l.return({state:g,tree:k})})};
jya.prototype.match=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=new JE([],Object.freeze({}),Object.freeze(Object.assign({},b.urlTree.queryParams)),b.urlTree.fragment,Object.freeze({}),"primary",b.rootComponentType,null,{}),Yd(f,2),z(f,aRc(b,b.injector,b.config,a,"primary",c),4);if(f.nextAddress!=2)return d=f.yieldResult,f.return({children:d,rootSnapshot:c});e=be(f);if(e instanceof TQc)return b.urlTree=e.urlTree,f.return(b.match(e.urlTree.root));if(e instanceof ME)throw new Vc(4002,
"'"+e.segmentGroup+"'");throw e;})};var aRc=function(a,b,c,d,e,f){var g;return y(function(k){if(k.nextAddress==1)return d.segments.length===0&&d.hasChildren()?k.return(a.processChildren(b,c,d,f)):z(k,bRc(a,b,c,d,d.segments,e,!0,f),2);g=k.yieldResult;return k.return(g instanceof Lj?[g]:[])})};
jya.prototype.processChildren=function(a,b,c,d){var e=this,f,g,k,l,r,w,x,C,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:f=[];g=m(Object.keys(c.children));for(k=g.next();!k.done;k=g.next())l=k.value,l==="primary"?f.unshift(l):f.push(l);r=[];w=m(f);x=w.next();case 2:if(x.done){V.jumpTo(4);break}C=x.value;H=c.children[C];J=oxa(b,C);return z(V,aRc(e,a,J,H,C,d),5);case 5:O=V.yieldResult;r.push.apply(r,q(O));x=w.next();V.jumpTo(2);break;case 4:return R=nya(r),lya(R),V.return(R)}})};
var bRc=function(a,b,c,d,e,f,g,k){var l,r,w,x,C;return y(function(H){switch(H.nextAddress){case 1:l=m(c),r=l.next();case 2:if(r.done){H.jumpTo(4);break}w=r.value;Yd(H,5);x=void 0;return z(H,cRc(a,(x=w._injector)!=null?x:b,c,w,d,e,f,g,k),7);case 7:return H.return(H.yieldResult);case 5:C=be(H);if(C instanceof ME||Qxa(C)){H.jumpTo(3);break}throw C;case 3:r=l.next();H.jumpTo(2);break;case 4:if(e.length===0&&!d.children[f])return H.return(new $Qc);throw new ME(d);}})},cRc=function(a,b,c,d,e,f,g,k,l){return y(function(r){if(Jj(d)!==
g&&(g==="primary"||!hya(e,f,d)))throw new ME(e);if(d.redirectTo===void 0)return r.return(dRc(a,b,e,d,f,g,l));if(a.allowRedirects&&k)return r.return(eRc(a,b,e,c,d,f,g,l));throw new ME(e);})},eRc=function(a,b,c,d,e,f,g,k){var l,r,w,x,C,H,J,O,R,V,ca,oa;return y(function(ua){if(ua.nextAddress==1){l=cya(c,e,f);r=l.matched;w=l.parameters;x=l.consumedSegments;C=l.positionalParamSegments;H=l.remainingSegments;if(!r)throw new ME(c);typeof e.redirectTo==="string"&&e.redirectTo[0]==="/"&&(a.absoluteRedirectCount++,
a.absoluteRedirectCount>31&&(a.allowRedirects=!1));R=new JE(f,w,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,e.data||{},Jj(e),(O=(J=e.component)!=null?J:e._loadedComponent)!=null?O:null,e,e.resolve||{});V=txa(R,k,a.paramsInheritanceStrategy);R.params=Object.freeze(V.params);R.data=Object.freeze(V.data);if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(ua,YQc(a.applyRedirects,x,e.redirectTo,C,R,b),2)}if(ua.nextAddress!=3)return ca=ua.yieldResult,z(ua,
VQc(ca),3);oa=ua.yieldResult;return ua.return(bRc(a,b,d,c,oa.concat(H),g,!1,k))})},dRc=function(a,b,c,d,e,f,g){var k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa,$a;return y(function(pb){switch(pb.nextAddress){case 1:if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(pb,ywa(eya(c,d,e,b,a.abortSignal)),2);case 2:k=pb.yieldResult;d.path==="**"&&(c.children={});if((l=k)==null||!l.matched)throw new ME(c);b=(r=d._injector)!=null?r:b;return z(pb,fRc(a,b,d,e),3);case 3:w=pb.yieldResult;
x=w.routes;H=(C=d._loadedInjector)!=null?C:b;J=k;O=J.parameters;R=J.consumedSegments;V=J.remainingSegments;ua=new JE(R,O,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},Jj(d),(oa=(ca=d.component)!=null?ca:d._loadedComponent)!=null?oa:null,d,d.resolve||{});ka=txa(ua,g,a.paramsInheritanceStrategy);ua.params=Object.freeze(ka.params);ua.data=Object.freeze(ka.data);Ga=iya(c,R,V,x);ja=Ga.segmentGroup;ta=Ga.slicedSegments;if(ta.length!==0||!ja.hasChildren()){pb.jumpTo(4);
break}return z(pb,a.processChildren(H,x,ja,ua),5);case 5:return xa=pb.yieldResult,pb.return(new Lj(ua,xa));case 4:if(x.length===0&&ta.length===0)return pb.return(new Lj(ua,[]));Sa=Jj(d)===f;return z(pb,bRc(a,H,x,ja,ta,Sa?"primary":f,!0,ua),6);case 6:return $a=pb.yieldResult,pb.return(new Lj(ua,$a instanceof Lj?[$a]:[]))}})},fRc=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(c.children)return g.return({routes:c.children,injector:b});if(!c.loadChildren){g.jumpTo(2);break}if(c._loadedRoutes!==
void 0)return g.return({routes:c._loadedRoutes,injector:c._loadedInjector});if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(g,ywa($xa(b,c,d,a.abortSignal)),3);case 3:e=g.yieldResult;if(!e){g.jumpTo(4);break}return z(g,a.configLoader.loadChildren(b,c),5);case 5:return f=g.yieldResult,c._loadedRoutes=f.routes,c._loadedInjector=f.injector,g.return(f);case 4:throw Fxa(3);case 2:return g.return({routes:[],injector:b})}})};var oya=new fd("RECOGNIZE_IMPL",{factory:function(){return kya}});var NE=function(){},gRc=function(a){for(a=a.root;a!==void 0;){var b=void 0;var c=(b=a.data[sxa])!=null?b:c;a=a.children.find(function(d){return d.outlet==="primary"})}return c};NE.\u0275fac=function(a){return new (a||NE)};NE.\u0275prov=Fc({token:NE,factory:function(){return p(OE)},providedIn:"root"});var OE=function(a){this.title=a};Y(OE,NE);OE.prototype.updateTitle=function(a){a=gRc(a);a!==void 0&&this.title.setTitle(a)};OE.\u0275fac=function(a){return new (a||OE)($c(oy))};
OE.\u0275prov=Fc({token:OE,factory:OE.\u0275fac,providedIn:"root"});var PE=new fd("",{factory:function(){return{}}});var zya=new fd(""),QE=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;p(Ax)};
QE.prototype.loadComponent=function(a,b){var c=this,d;return y(function(e){if(c.componentLoaders.get(b))return e.return(c.componentLoaders.get(b));if(b._loadedComponent)return e.return(Promise.resolve(b._loadedComponent));if(c.onLoadStartListener)c.onLoadStartListener(b);d=function(){var f,g;return y(function(k){switch(k.nextAddress){case 1:return $d(k,2),z(k,Bwa(id(a,function(){return b.loadComponent()})),4);case 4:return f=k.yieldResult,z(k,Promise.resolve(wya(f)?f["default"]:f),5);case 5:g=k.yieldResult;
if(c.onLoadEndListener)c.onLoadEndListener(b);b._loadedComponent=g;return k.return(g);case 2:Zd(k),c.componentLoaders.delete(b),ae(k,0)}})}();c.componentLoaders.set(b,d);return e.return(d)})};
QE.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return Promise.resolve({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=function(){var e;return y(function(f){if(f.nextAddress==1)return $d(f,2),z(f,Aya(b,a,c.onLoadEndListener),4);if(f.nextAddress!=2)return e=f.yieldResult,b._loadedRoutes=e.routes,b._loadedInjector=e.injector,f.return(e);Zd(f);c.childrenLoaders.delete(b);
return ae(f,0)})}();this.childrenLoaders.set(b,d);return d};QE.\u0275fac=function(a){return new (a||QE)};QE.\u0275prov=Fc({token:QE,factory:QE.\u0275fac,providedIn:"root"});var RE=function(){};RE.\u0275fac=function(a){return new (a||RE)};RE.\u0275prov=Fc({token:RE,factory:function(){return p(SE)},providedIn:"root"});var SE=function(){};SE.prototype.merge=function(a){return a};SE.\u0275fac=function(a){return new (a||SE)};SE.\u0275prov=Fc({token:SE,factory:SE.\u0275fac,providedIn:"root"});var hRc=new fd(""),Bya=new fd("");var iRc=function(){},jRc=new fd(""),TE=function(){var a=this;this.currentNavigation=ng.apply(null,[null].concat(q([{equal:function(){return!1}}])));this.currentTransition=null;this.lastSuccessfulNavigation=ng.apply(null,[null].concat(q([])));this.events=new sf;this.transitionAbortWithErrorSubject=new sf;this.configLoader=p(QE);this.environmentInjector=p($e);this.destroyRef=p(Ee);this.urlSerializer=p(DE);this.rootContexts=p(HE);this.location=p(ii);this.inputBindingEnabled=p(HQc,{optional:!0})!==null;
this.titleStrategy=p(NE);this.options=p(PE,{optional:!0})||{};this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";this.urlHandlingStrategy=p(RE);this.createViewTransition=p(hRc,{optional:!0});this.navigationErrorHandler=p(jRc,{optional:!0});this.navigationId=0;this.afterPreactivation=function(){return ee(void 0)};this.rootComponentType=null;this.destroyed=!1;this.configLoader.onLoadEndListener=function(b){return a.events.next(new wQc(b))};this.configLoader.onLoadStartListener=
function(b){return a.events.next(new vQc(b))};this.destroyRef.onDestroy(function(){a.destroyed=!0})};TE.prototype.complete=function(){var a;(a=this.transitions)==null||a.complete()};
var kRc=function(a,b){var c=++a.navigationId;Rc(function(){var d;(d=a.transitions)==null||d.next(Object.assign({},b,{extractedUrl:b.rawUrl,targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:c}))})},oRc=function(a,b){a.transitions=new Nj(null);return a.transitions.pipe(we(function(c){return c!==null}),Af(function(c){var d=!1,e=new AbortController,f=function(){var g;return!d&&((g=a.currentTransition)==null?void 0:g.id)===c.id};return ee(c).pipe(Af(function(g){if(a.navigationId>
c.id)return lRc(a,c,"",1),ue;a.currentTransition=c;var k=a.lastSuccessfulNavigation();a.currentNavigation.set({id:g.id,initialUrl:g.rawUrl,extractedUrl:g.extractedUrl,targetBrowserUrl:typeof g.extras.browserUrl==="string"?a.urlSerializer.parse(g.extras.browserUrl):g.extras.browserUrl,trigger:g.source,extras:g.extras,previousNavigation:k?Object.assign({},k,{previousNavigation:null}):null,abort:function(){return e.abort()}});k=!b.navigated||mRc(a)||nRc(a);var l,r=(l=g.extras.onSameUrlNavigation)!=null?
l:b.onSameUrlNavigation;return k||r==="reload"?ee(g).pipe(Af(function(w){a.events.next(new hr(w.id,a.urlSerializer.serialize(w.extractedUrl),w.source,w.restoredState));return w.id!==a.navigationId?ue:Promise.resolve(w)}),pya(a.environmentInjector,a.configLoader,a.rootComponentType,b.config,a.urlSerializer,a.paramsInheritanceStrategy,e.signal),Cf(function(w){c.targetSnapshot=w.targetSnapshot;c.urlAfterRedirects=w.urlAfterRedirects;a.currentNavigation.update(function(C){C.finalUrl=w.urlAfterRedirects;
return C});var x=new qQc(w.id,a.urlSerializer.serialize(w.extractedUrl),a.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);a.events.next(x)})):(a.events.next(new Tj(g.id,a.urlSerializer.serialize(g.rawUrl),"",0)),g.resolve(!1),ue)}),A(function(g){var k=new rQc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);k=Object;var l=k.assign;var r=g.currentSnapshot;var w=g.targetSnapshot._root;r=Mxa(w,r?r._root:null,
a.rootContexts,[w.value]);return a.currentTransition=c=l.call(k,{},g,{guards:r})}),Txa(a.environmentInjector,function(g){return a.events.next(g)}),Af(function(g){if((c.guardsResult=g.guardsResult)&&typeof g.guardsResult!=="boolean")throw Gxa(g.guardsResult);var k=new sQc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot,!!g.guardsResult);a.events.next(k);if(!f())return ue;if(!g.guardsResult)return lRc(a,g,"",3),ue;if(g.guards.canActivateChecks.length===
0)return ee(g);k=new tQc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);if(!f())return ue;var l=!1;return ee(g).pipe(sya(a.paramsInheritanceStrategy,a.environmentInjector),Cf({next:function(){l=!0;var r=new uQc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(r)},complete:function(){l||lRc(a,g,"",2)}}))}),vya(function(g){var k=function(r){var w=
[],x;if((x=r.routeConfig)==null?0:x._loadedComponent){var C;r.component=(C=r.routeConfig)==null?void 0:C._loadedComponent}else{var H;if((H=r.routeConfig)==null?0:H.loadComponent){var J;x=(J=Kj(r))!=null?J:a.environmentInjector;w.push(a.configLoader.loadComponent(x,r.routeConfig).then(function(O){r.component=O}))}}J=m(r.children);for(x=J.next();!x.done;x=J.next())w.push.apply(w,q(k(x.value)));return w},l=k(g.targetSnapshot.root);return l.length===0?ee(g):Xd(Promise.all(l).then(function(){return g}))}),
vya(function(){return a.afterPreactivation()}),Af(function(){var g=c,k=g.currentSnapshot;g=g.targetSnapshot;var l,r=(l=a.createViewTransition)==null?void 0:l.call(a,a.environmentInjector,k.root,g.root);return r?Xd(r).pipe(A(function(){return c})):ee(c)}),A(function(g){var k=Cxa(b.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);a.currentTransition=c=Object.assign({},g,{targetRouterState:k});a.currentNavigation.update(function(l){l.targetRouterState=k;return l});return c}),Cf(function(){a.events.next(new AQc)}),
PQc(a.rootContexts,b.routeReuseStrategy,function(g){return a.events.next(g)},a.inputBindingEnabled),nf(1),Bf(Jxa(e.signal).pipe(we(function(){return!d&&!c.targetRouterState}),Cf(function(){lRc(a,c,e.signal.reason+"",4)}))),Cf({next:function(g){d=!0;a.currentNavigation.update(function(l){l.abort=iRc;return l});a.lastSuccessfulNavigation.set(Rc(a.currentNavigation));a.events.next(new Qj(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects)));var k;(k=a.titleStrategy)==
null||k.updateTitle(g.targetRouterState.snapshot);g.resolve(!0)},complete:function(){d=!0}}),Bf(a.transitionAbortWithErrorSubject.pipe(Cf(function(g){throw g;}))),qf(function(){e.abort();d||lRc(a,c,"",1);var g;((g=a.currentTransition)==null?void 0:g.id)===c.id&&(a.currentNavigation.set(null),a.currentTransition=null)}),jf(function(g){if(a.destroyed)return c.resolve(!1),ue;d=!0;if(Hxa(g))a.events.next(new Rj(c.id,a.urlSerializer.serialize(c.extractedUrl),g.message,g.cancellationCode)),Hxa(g)&&Hj(g.url)?
a.events.next(new BQc(g.url,g.navigationBehaviorOptions)):c.resolve(!1);else{var k,l=new Sj(c.id,a.urlSerializer.serialize(c.extractedUrl),g,(k=c.targetSnapshot)!=null?k:void 0);try{throw id(a.environmentInjector,function(){var r;return(r=a.navigationErrorHandler)==null?void 0:r.call(a,l)}),a.events.next(l),g;}catch(r){a.options.resolveNavigationPromiseOnError?c.resolve(!1):c.reject(r)}}return ue}))}))},lRc=function(a,b,c,d){c=new Rj(b.id,a.urlSerializer.serialize(b.extractedUrl),c,d);a.events.next(c);
b.resolve(!1)},mRc=function(a){var b,c;return((b=a.currentTransition)==null?void 0:b.extractedUrl.toString())!==((c=a.currentTransition)==null?void 0:c.currentUrlTree.toString())},nRc=function(a){var b=a.urlSerializer.parse(a.location.path(!0));a=Rc(a.currentNavigation);var c,d=(c=a==null?void 0:a.targetBrowserUrl)!=null?c:a==null?void 0:a.extractedUrl;return b.toString()!==(d==null?void 0:d.toString())&&!(a==null?0:a.extras.skipLocationChange)};
da.Object.defineProperties(TE.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationId!==0}}});TE.\u0275fac=function(a){return new (a||TE)};TE.\u0275prov=Fc({token:TE,factory:TE.\u0275fac,providedIn:"root"});var UE=function(){};UE.\u0275fac=function(a){return new (a||UE)};UE.\u0275prov=Fc({token:UE,factory:function(){return p(VE)},providedIn:"root"});var pRc=function(){};pRc.prototype.store=function(){};pRc.prototype.retrieve=function(){return null};pRc.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var VE=function(){};Y(VE,pRc);VE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VE)))(b||VE)}}();VE.\u0275prov=Fc({token:VE,factory:VE.\u0275fac,providedIn:"root"});var WE=function(){this.urlSerializer=p(DE);this.options=p(PE,{optional:!0})||{};this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";this.location=p(ii);this.urlHandlingStrategy=p(RE);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.rawUrlTree=this.currentUrlTree=new Gj;var a=new FQc("",new Lj(new JE([],{},{},"",{},"primary",null,null,{}),[])),b=new Mj(new Nj([new Ij("",{})]),new Nj({}),new Nj({}),new Nj(""),new Nj({}),"primary",null,a.root);
b.snapshot=a.root;this.routerState=new Bxa(new Lj(b,[]),a);this.stateMemento=qRc(this)},rRc=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 Gj?a.urlSerializer.serialize(c):c},sRc=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},qRc=function(a){return{rawUrlTree:a.rawUrlTree,
currentUrlTree:a.currentUrlTree,routerState:a.routerState}},tRc=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)};WE.\u0275fac=function(a){return new (a||WE)};WE.\u0275prov=Fc({token:WE,factory:function(){return p(XE)},providedIn:"root"});var XE=function(){WE.apply(this,arguments);this.currentPageId=0;this.lastSuccessfulId=-1};Y(XE,WE);
XE.prototype.restoredState=function(){return this.location.getState()};
var uRc=function(a,b){return a.location.subscribe(function(c){c.type==="popstate"&&setTimeout(function(){b(c.url,c.state,"popstate")})})},wRc=function(a,b,c){var d=c.extras;c=c.id;var e=d.replaceUrl;d=d.state;var f=a.location;var g=g===void 0?"":g;f.path()==f.normalize(b+jh(g))||e?(g=Object.assign({},d,vRc(a,c,a.browserPageId)),a.location.replaceState(b,"",g)):(g=Object.assign({},d,vRc(a,c,a.browserPageId+1)),a.location.go(b,"",g))},yRc=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&&(tRc(a,b),xRc(a))):a.canceledNavigationResolution==="replace"&&(c&&tRc(a,b),xRc(a))},xRc=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",vRc(a,a.lastSuccessfulId,a.currentPageId))},vRc=function(a,b,c){return a.canceledNavigationResolution==="computed"?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
da.Object.defineProperties(XE.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}}});XE.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(XE)))(b||XE)}}();XE.\u0275prov=Fc({token:XE,factory:XE.\u0275fac,providedIn:"root"});var zRc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ARc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},YE=function(){var a=this;this.disposed=!1;this.console=p(px);this.stateManager=p(WE);this.options=p(PE,{optional:!0})||{};this.pendingTasks=p(Ug);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.navigationTransitions=p(TE);this.urlSerializer=p(DE);this.location=p(ii);this.urlHandlingStrategy=p(RE);this.injector=
p($e);this._events=new sf;this.navigated=!1;this.routeReuseStrategy=p(UE);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";var b,c;this.config=(c=(b=p(zya,{optional:!0}))==null?void 0:b.flat())!=null?c:[];p(HQc,{optional:!0});this.currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();this.eventsSubscription=new Rd;this.config=this.config.map(yxa);this.navigated=!1;oRc(this.navigationTransitions,this).subscribe({error:function(d){a.console.warn(d)}});BRc(this)},
BRc=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=a.navigationTransitions.currentTransition,e=Rc(a.navigationTransitions.currentNavigation);if(d!==null&&e!==null){var f=a.stateManager;c instanceof hr?f.stateMemento=qRc(f):c instanceof Tj?sRc(f,e):c instanceof qQc?f.urlUpdateStrategy==="eager"&&(e.extras.skipLocationChange||wRc(f,rRc(f,e),e)):c instanceof AQc?(sRc(f,e),f.urlUpdateStrategy!=="deferred"||e.extras.skipLocationChange||wRc(f,rRc(f,e),e)):c instanceof Rj&&
c.code!==1&&c.code!==0?yRc(f,e):c instanceof Sj?yRc(f,e,!0):c instanceof Qj&&(f.lastSuccessfulId=c.id,f.currentPageId=f.browserPageId);if(c instanceof Rj&&c.code!==0&&c.code!==1)a.navigated=!0;else if(c instanceof Qj)a.navigated=!0;else if(c instanceof BQc){var g=c.navigationBehaviorOptions,k=a.urlHandlingStrategy.merge(c.url,d.currentRawUrl),l=Object.assign({},{scroll:d.extras.scroll,browserUrl:d.extras.browserUrl,info:d.extras.info,skipLocationChange:d.extras.skipLocationChange,replaceUrl:d.extras.replaceUrl||
a.urlUpdateStrategy==="eager"||d.source!=="imperative"},g);CRc(a,k,"imperative",null,l,{resolve:d.resolve,reject:d.reject,promise:d.promise})}}c instanceof AQc||c instanceof BQc||a._events.next(c)}catch(r){a.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});a.eventsSubscription.add(b)};YE.prototype.initialNavigation=function(){DRc(this);this.navigationTransitions.hasRequestedNavigation||ERc(this,this.location.path(!0),"imperative",this.stateManager.restoredState())};
var DRc=function(a){a.nonRouterCurrentEntryChangeSubscription!=null||(a.nonRouterCurrentEntryChangeSubscription=uRc(a.stateManager,function(b,c,d){ERc(a,b,d,c)}))},ERc=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);CRc(a,b,c,f,e).catch(function(g){a.disposed||a.injector.get(Te)(g)})};YE.prototype.ngOnDestroy=function(){this.dispose()};
YE.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 ZE=function(a,b,c){var d=c=c===void 0?{}:c;c=d.relativeTo;var e=d.queryParams,f=d.fragment;f=d.preserveFragment?a.currentUrlTree.fragment:f;var g;switch((g=d.queryParamsHandling)!=null?g:a.options.defaultQueryParamsHandling){case "merge":g=Object.assign({},a.currentUrlTree.queryParams,e);break;case "preserve":g=a.currentUrlTree.queryParams;break;default:g=e||null}g!==null&&(g=FRc(g));try{var k=Ywa(c?c.snapshot:a.routerState.snapshot.root)}catch(l){if(typeof b[0]!=="string"||b[0][0]!=="/")b=[];
k=a.currentUrlTree.root}return exa(k,b,g,f!=null?f:null,a.urlSerializer)},Ct=function(a,b,c){c=c===void 0?{skipLocationChange:!1}:c;b=Hj(b)?b:a.parseUrl(b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return CRc(a,b,"imperative",null,c)};YE.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 Vc(4008,!1);return Ct(this,ZE(this,a,b),b)};
YE.prototype.parseUrl=function(a){try{return this.urlSerializer.parse(a)}catch(b){return this.console.warn(Rea(4018,!1)),this.urlSerializer.parse("/")}};YE.prototype.isActive=function(a,b){var c;b===!0?c=Object.assign({},zRc):b===!1?c=Object.assign({},ARc):c=b;if(Hj(a))return Ewa(this.currentUrlTree,a,c);a=this.parseUrl(a);return Ewa(this.currentUrlTree,a,c)};
var FRc=function(a){return Object.entries(a).reduce(function(b,c){var d=m(c);c=d.next().value;d=d.next().value;d!==null&&d!==void 0&&(b[c]=d);return b},{})},CRc=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var g=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(r,w){g=r;k=w});var l=a.pendingTasks.add();Eya(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(l)})});kRc(a.navigationTransitions,{source:c,restoredState:d,currentUrlTree:a.currentUrlTree,
currentRawUrl:a.currentUrlTree,rawUrl:b,extras:e,resolve:g,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(r){return Promise.reject(r)})};
da.Object.defineProperties(YE.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}}});YE.\u0275fac=function(a){return new (a||YE)};YE.\u0275prov=Fc({token:YE,factory:YE.\u0275fac,providedIn:"root"});var $E=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=ng.apply(null,[null].concat(q([])));this.onChanges=new sf;this.applicationErrorHandler=p(Te);this.options=p(PE,{optional:!0});this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;this.routerLinkInput=null;this.reactiveHref.set(p(new cx("href"),{optional:!0}));var g;a=(g=e.nativeElement.tagName)==null?void 0:g.toLowerCase();var k,l,r;(this.isAnchorElement=
a==="a"||a==="area"||!!(typeof customElements==="object"&&((k=customElements.get(a))==null?0:(l=k.observedAttributes)==null?0:(r=l.includes)==null?0:r.call(l,"href"))))?GRc(this,"0"):HRc(this)},HRc=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
Qj&&IRc(a)}))}},GRc=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")}};$E.prototype.ngOnChanges=function(){this.isAnchorElement&&(IRc(this),HRc(this));this.onChanges.next(this)};
$E.prototype.onClick=function(a,b,c,d,e){var f=this,g=this.urlTree;if(g===null||this.isAnchorElement&&(a!==0||b||c||d||e||typeof this.target==="string"&&this.target!="_self"))return!0;var k;(k=Ct(this.router,g,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}))==null||k.catch(function(l){f.applicationErrorHandler(l)});return!this.isAnchorElement};$E.prototype.ngOnDestroy=function(){var a;(a=this.subscription)==null||a.unsubscribe()};
var IRc=function(a){var b=a.urlTree,c,d;a.reactiveHref.set(b!==null&&a.locationStrategy?(d=(c=a.locationStrategy)==null?void 0:c.prepareExternalUrl(a.router.urlSerializer.serialize(b)))!=null?d:"":null)};
da.Object.defineProperties($E.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return Rc(this.reactiveHref)},set:function(a){this.reactiveHref.set(a)}},routerLink:{configurable:!0,enumerable:!0,set:function(a){a==null?(this.routerLinkInput=null,GRc(this,null)):(Hj(a)?this.routerLinkInput=a:this.routerLinkInput=Array.isArray(a)?a:[a],GRc(this,"0"))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return this.routerLinkInput===null?null:Hj(this.routerLinkInput)?this.routerLinkInput:
ZE(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})}}});$E.\u0275fac=function(a){return new (a||$E)(Ye(YE),Ye(Mj),wga("tabindex"),Ye(di),Ye(Jd),Ye(by))};
$E.\u0275dir=df({type:$E,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&&Kf("href",b.reactiveHref(),xja)("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",$g],skipLocationChange:[2,"skipLocationChange",
"skipLocationChange",$g],replaceUrl:[2,"replaceUrl","replaceUrl",$g],routerLink:"routerLink"},features:[bx]});var aF=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 Ui;this.routerEventsSubscription=a.events.subscribe(function(g){g instanceof Qj&&f.update()})};aF.prototype.ngAfterContentInit=function(){var a=this;ee(this.links.changes,ee(null)).pipe(ne()).subscribe(function(){a.update();JRc(a)})};
var JRc=function(a){var b;(b=a.linkInputChangesSubscription)==null||b.unsubscribe();b=[].concat(q(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=Xd(b).pipe(ne()).subscribe(function(c){a._isActive!==KRc(a,a.router)(c)&&a.update()})};aF.prototype.ngOnChanges=function(){this.update()};aF.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;(a=this.linkInputChangesSubscription)==null||a.unsubscribe()};
aF.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=LRc(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 KRc=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}},LRc=function(a){var b=KRc(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
da.Object.defineProperties(aF.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})}}});aF.\u0275fac=function(a){return new (a||aF)(Ye(YE),Ye(Jd),Ye(di),Ye(ux),Ye($E,8))};
aF.\u0275dir=df({type:aF,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&ig(c,$E,5);if(a&2){var d;lg(d=mg())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[bx]});var MRc=function(){},bF=function(a,b,c,d){this.router=a;this.injector=b;this.preloadingStrategy=c;this.loader=d},NRc=function(a){a.subscription=a.router.events.pipe(we(function(b){return b instanceof Qj}),bla(function(){return a.preload()})).subscribe(function(){})};bF.prototype.preload=function(){return ORc(this,this.injector,this.router.config)};bF.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var ORc=function(a,b,c){var d=[];c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Gka(e.providers,b,"Route: "+e.path));var f=void 0,g=(f=e._injector)!=null?f:b,k=void 0;f=(k=e._loadedInjector)!=null?k:g;(e.loadChildren&&!e._loadedRoutes&&e.canLoad===void 0||e.loadComponent&&!e._loadedComponent)&&d.push(PRc(a,g,e));if(e.children||e._loadedRoutes)g=void 0,d.push(ORc(a,f,(g=e.children)!=null?g:e._loadedRoutes))}return Xd(d).pipe(ne())},PRc=function(a,b,
c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&c.canLoad===void 0?Xd(a.loader.loadChildren(b,c)):ee(null)).pipe(me(function(f){if(f===null)return ee(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var g;return ORc(a,(g=f.injector)!=null?g:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(b,c);return Xd([d,e]).pipe(ne())}return d})};bF.\u0275fac=function(a){return new (a||bF)($c(YE),$c($e),$c(MRc),$c(QE))};
bF.\u0275prov=Fc({token:bF,factory:bF.\u0275fac,providedIn:"root"});var QRc=new fd(""),cF=function(a){this.options=a;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};this.urlSerializer=p(DE);this.zone=p(Rg);this.viewportScroller=p(jBc);this.transitions=p(TE);var b;(b=this.options).scrollPositionRestoration||(b.scrollPositionRestoration="disabled");var c;(c=this.options).anchorScrolling||(c.anchorScrolling="disabled")};
cF.prototype.init=function(){if(this.options.scrollPositionRestoration!=="disabled")try{this.viewportScroller.window.history.scrollRestoration="manual"}catch(a){console.warn(Rea(2400,!1))}this.routerEventsSubscription=RRc(this);this.scrollEventsSubscription=SRc(this)};
var RRc=function(a){return a.transitions.events.subscribe(function(b){b instanceof hr?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof Qj?(a.lastId=b.id,TRc(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof Tj&&b.code===0&&(a.lastSource=void 0,a.restoredId=0,TRc(a,a.urlSerializer.parse(b.url).fragment))})},SRc=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
zQc&&b.scrollBehavior!=="manual"){var c={behavior:"instant"};if(b.position)a.options.scrollPositionRestoration==="top"?a.viewportScroller.scrollToPosition([0,0],c):a.options.scrollPositionRestoration==="enabled"&&a.viewportScroller.scrollToPosition(b.position,c);else if(b.anchor&&a.options.anchorScrolling==="enabled"){c=a.viewportScroller;a:{var d=c.document;b=b.anchor;var e=d.getElementById(b)||d.getElementsByName(b)[0];if(e)b=e;else{if(typeof d.createTreeWalker==="function"&&d.body&&typeof d.body.attachShadow===
"function")for(d=d.createTreeWalker(d.body,NodeFilter.SHOW_ELEMENT),e=d.currentNode;e;){if(e=e.shadowRoot)if(e=e.getElementById(b)||e.querySelector('[name="'+b+'"]')){b=e;break a}e=d.nextNode()}b=null}}if(b){e=b.getBoundingClientRect();d=e.left+c.window.pageXOffset;e=e.top+c.window.pageYOffset;var f=c.offset();c.window.scrollTo(Object.assign({},void 0,{left:d-f[0],top:e-f[1]}));b.focus()}}else a.options.scrollPositionRestoration!=="disabled"&&a.viewportScroller.scrollToPosition([0,0])}})},TRc=function(a,
b){var c,d=(c=Rc(a.transitions.currentNavigation))==null?void 0:c.extras.scroll;a.zone.runOutsideAngular(function(){return y(function(e){if(e.nextAddress==1)return z(e,new Promise(function(f){setTimeout(f);typeof requestAnimationFrame!=="undefined"&&requestAnimationFrame(f)}),2);a.zone.run(function(){a.transitions.events.next(new zQc(a.lastSource==="popstate"?a.store[a.restoredId]:null,b,d))});ce(e)})})};
cF.prototype.ngOnDestroy=function(){var a;(a=this.routerEventsSubscription)==null||a.unsubscribe();var b;(b=this.scrollEventsSubscription)==null||b.unsubscribe()};cF.\u0275fac=function(){Ze()};cF.\u0275prov=Fc({token:cF,factory:cF.\u0275fac});new fd("",{factory:function(){return!1}});var URc=new fd("",{factory:function(){return new sf}}),VRc=new fd("",{factory:function(){return 1}}),WRc=new fd("");new fd("");var XRc=[ii,{provide:DE,useClass:EE},YE,HE,{provide:Mj,useFactory:function(){return p(YE).routerState.root}},QE,[]],dF=function(){};dF.\u0275fac=function(a){return new (a||dF)};dF.\u0275mod=cf({type:dF});dF.\u0275inj=Hc({});var YRc=new fd("");var ZRc=["textarea"],$Rc=new fd("MessageInputTemplate"),eF=function(){var a=this;this.threadService=p(zD);this.routingService=p(xA);this.experimentsService=p(lA);this.userContextService=p(iC);this.overridesService=p(wA);this.inputText=Joa.apply(null,q([]));this.submitMessage=Ng();this.textarea=Pg.apply(null,["textarea"].concat(q([])));this.ve={DuckieChatMessageSendButton:201478};this.isDuckieThinking$=this.threadService.isDuckieThinking$;this.userProvidedContextEnabled=this.experimentsService.userProvidedContextEnabled;
this.currentThread$=this.threadService.currentThread$;this.sessionStateDeprecated=4;this.responseMetadataEnabled=this.experimentsService.responseMetadataEnabled;this.duckieStreamingMvpEnabled=this.experimentsService.duckieStreamingMvpEnabled;this.userProvidedContextSources$=this.userContextService.suggestedUserProvidedContextContent$;this.userProvidedContextServiceError$=this.userContextService.userContextServiceError$;this.disclaimer=this.overridesService.overrideDisclaimer;this.agentName=this.overridesService.overrideAgentMessageDisplayName||
"Duckie";gf(function(){a.inputText()&&aSc(a)})};eF.prototype.ngAfterViewInit=function(){var a=this;aSc(this);this.routingService.events.pipe(we(function(b){return b instanceof Qj})).subscribe(function(){aSc(a)})};var aSc=function(a){var b;(b=a.textarea())==null||b.nativeElement.focus()};eF.prototype.cancelDuckieStream=function(){this.threadService.cancelDuckieStream()};eF.prototype.removeContextSource=function(a){oJc(this.userContextService,a)};
var bSc=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.isDuckieThinking$),2);if(c=d.yieldResult)return d.return();!b.shiftKey&&!b.isComposing&&a.inputText()&&(a.inputText()||"").trim().length>0&&(b.preventDefault(),a.sendMessage());ce(d)})};eF.prototype.sendMessage=function(){this.submitMessage.emit(this.inputText()||"");this.inputText.set("")};eF.\u0275fac=function(a){return new (a||eF)};
eF.\u0275cmp=D({type:eF,selectors:[["message-input"]],viewQuery:function(a,b){a&1&&og(b.textarea,ZRc);a&2&&pg()},hostAttrs:[1,"padded-m-left","padded-right","flex-column","gap-xs"],inputs:{inputText:[1,"inputText"]},outputs:{inputText:"inputTextChange",submitMessage:"submitMessage"},decls:17,vars:18,consts:[["textarea",""],[1,"flex-row","flex-row-wrap","padded-xs-left","align-items-center"],[1,"full-width","flex-row","align-items-center","gap-xs"],"appearance outline floatLabel auto subscriptSizing dynamic".split(" "),
["id","ask-duckie-input","matInput","","placeholder","Ask anything","aria-label","Textarea to input message",1,"ask-duckie-input",3,"ngModelChange","keydown.enter","disabled","ngModel","ve","veClick","veImpression"],["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message"],["color","primary","id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"disabled"],[1,"duckie-disclaimer","text-secondary","type-xs"],[1,"duckie-disclaimer-content"],
[1,"error-message","type-s","padded-s-right","flex-row","align-items-center","gap-xs"],[1,"type-s","padded-s-right","flex-row","align-items-center","gap-xs","duckie-link-following"],[1,"type-s","padded-s-right","medium"],[3,"label","iconUrl","linkUrl","showRemoveButton"],[3,"removeContextSource","label","iconUrl","linkUrl","showRemoveButton"],[1,"error-icon"],[1,"medium"],["href","http://go/duckie-link-following","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs"],["inline",""],
["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message",3,"click"],[1,"filled"],["color","primary","id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();$f(0);T(1,"async");$f(2);T(3,"async");F(4,Kya,4,1,"div",1);K(5,"div",2)(6,"mat-form-field",3)(7,"textarea",4,0);T(9,"async");N("ngModelChange",function(e){u(c);if(b.userProvidedContextEnabled){var f=b.userContextService;
f.suggestedUserProvidedContextContentInternal$.next(sJc(f,e,!0))}return v()});Cg("ngModelChange",function(e){u(c);Bg(b.inputText,e)||(b.inputText=e);return v(e)});N("keydown.enter",function(e){u(c);return v(bSc(b,e))});Q(10,"    ");L()();F(11,Lya,3,0,"button",5);T(12,"async");Lf(13,Mya,5,6,"button",6);L();K(14,"p",7)(15,"span",8);Q(16);L()()}if(a&2){var d;ag(U(1,8,b.userProvidedContextSources$));B(2);ag(U(3,11,b.userProvidedContextServiceError$));B(2);G(b.userProvidedContextEnabled?4:-1);B(3);I("disabled",
((d=U(9,14,b.currentThread$))==null?null:d.sessionState)===b.sessionStateDeprecated&&!b.responseMetadataEnabled);Ag("ngModel",b.inputText);I("ve",b.ve.DuckieChatMessageSendButton)("veClick",!0)("veImpression",!0);B(4);G(U(12,16,b.isDuckieThinking$)&&b.duckieStreamingMvpEnabled?11:13);B(5);S(" ",b.disclaimer||"Duckie can make mistakes. Consider double-checking its responses."," ")}},dependencies:[Yx,xE,yj,$D,gE,iB,gB,eB,OD,BD,MD,BE,PD,zE,Fy,Dy,TD,bD,aD,kA,Lx],styles:["mat-form-field[_ngcontent-%COMP%]{--mdc-shape-small:calc(var(--base-px, 1rem)*28);-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}mat-form-field[_ngcontent-%COMP%]     .mat-mdc-text-field-wrapper{--mat-form-field-filled-container-shape:var(--mdc-shape-small);--mat-form-field-outlined-container-shape:var(--mdc-shape-small)}mat-form-field[_ngcontent-%COMP%]     .mat-mdc-form-field-infix{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}mat-form-field[_ngcontent-%COMP%]   .ask-duckie-input[_ngcontent-%COMP%]{resize:none;field-sizing:content;max-height:18em}mat-form-field[_ngcontent-%COMP%]:not(.boost-specificity){font-size:calc(var(--base-px, 1rem)*14)}.duckie-disclaimer[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.duckie-disclaimer-content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:center}.error-message[_ngcontent-%COMP%]{color:var(--warn-high-contrast)}"],
changeDetection:0});var cSc=["customMessageInput"],fF=function(){this.inputText=Og.apply(null,q([]));this.submitMessage=Ng();this.messageInputTemplate=p($Rc,{optional:!0});this.customMessageInput=Pg.apply(null,["customMessageInput"].concat(q([{read:fg}])))};
fF.prototype.ngAfterViewInit=function(){var a=this;this.messageInputTemplate&&this.customMessageInput()&&(this.componentRef=this.customMessageInput().createComponent(this.messageInputTemplate),this.componentRef.instance.inputText=ng.apply(null,[this.inputText()].concat(q([]))),this.componentRef.instance.submitMessage.subscribe(function(b){a.submitMessage.emit(b)}))};fF.\u0275fac=function(a){return new (a||fF)};
fF.\u0275cmp=D({type:fF,selectors:[["message-input-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessageInput,cSc,fg);a&2&&pg()},inputs:{inputText:[1,"inputText"]},outputs:{submitMessage:"submitMessage"},decls:2,vars:1,consts:[["customMessageInput",""],[3,"inputText"],[3,"submitMessage","inputText"]],template:function(a,b){a&1&&F(0,Nya,2,0,"ng-container")(1,Oya,1,1,"message-input",1);a&2&&G(b.messageInputTemplate?0:1)},dependencies:[Yx,eF],encapsulation:2,changeDetection:0});var dSc=new fd("ReminderBlurbTemplate"),gF=function(){this.overridesService=p(wA);this.overrideAgentName=this.overridesService.overrideAgentMessageDisplayName};gF.\u0275fac=function(a){return new (a||gF)};
gF.\u0275cmp=D({type:gF,selectors:[["reminder-blurb"]],decls:13,vars:1,consts:[[1,"reminder-blurb"],[1,"title"],["href","http://go/duckie","target","_blank"],["href","http://go/code-ai-policy","target","_blank"]],template:function(a,b){a&1&&(Rf(0,"div",0)(1,"p",1),Q(2,"Reminder"),Sf(),Rf(3,"p"),Q(4," You may not prompt "),F(5,Pya,2,1,"span")(6,Qya,2,0,"a",2),Q(7," with user data or identifiable personal data (i.e. PII). Please review "),Rf(8,"a",3),Q(9,"go/code-ai-policy"),Sf(),Q(10," before using this tool or its outputs in production. "),
Sf(),Rf(11,"p"),Q(12," Note: because some Bets have their own AI policies, if you are part of a Bet, please review and follow any additional applicable policies. "),Sf()());a&2&&(B(5),G(b.overrideAgentName?5:6))},dependencies:[Yx],styles:[".reminder-blurb[_ngcontent-%COMP%]{background-color:var(--tonal-fill-blue);border:1px solid var(--primary-container);border-radius:1em;font-size:calc(var(--base-px, 1rem)*14);margin:1em 0;padding:1em}.reminder-blurb[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1em;font-weight:700;margin-bottom:.5em}.reminder-blurb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .reminder-blurb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}"],
changeDetection:0});var eSc=["customReminderBlurb"],hF=function(){this.reminderBlurbTemplate=p(dSc,{optional:!0});this.customReminderBlurb=Pg.apply(null,["customReminderBlurb"].concat(q([{read:fg}])))};hF.prototype.ngAfterViewInit=function(){this.reminderBlurbTemplate&&this.customReminderBlurb()&&(this.componentRef=this.customReminderBlurb().createComponent(this.reminderBlurbTemplate))};hF.\u0275fac=function(a){return new (a||hF)};
hF.\u0275cmp=D({type:hF,selectors:[["reminder-blurb-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customReminderBlurb,eSc,fg);a&2&&pg()},decls:2,vars:1,consts:[["customReminderBlurb",""]],template:function(a,b){a&1&&F(0,Rya,2,0,"ng-container")(1,Sya,1,0,"reminder-blurb");a&2&&G(b.reminderBlurbTemplate?0:1)},dependencies:[Yx,gF],encapsulation:2,changeDetection:0});var fSc=function(a,b){return b.title},Yya=function(a,b){return b.label},iF=function(){var a=this;this.ve={ProductionAgentZeroStateSuggestionChip:278387};this.threadService=p(zD);this.routingService=p(xA);this.overridesService=p(wA);this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.draftQuery=ng.apply(null,[""].concat(q([])));this.isLoading=ng.apply(null,[!1].concat(q([])));this.onboardingExamples=Vya(this.overridesService.overrideOnboardingExamplesList$.asObservable().pipe(Cf(function(){a.isLoading.set(!0)}),
of(800),Cf(function(){a.isLoading.set(!1)})))};iF.prototype.sendQuestion=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,RMa(b.routingService,""),2):z(c,WOc(b.threadService,a),0)})};iF.\u0275fac=function(a){return new (a||iF)};
iF.\u0275cmp=D({type:iF,selectors:[["gpp-custom-onboarding"]],inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:6,vars:2,consts:[[1,"onboarding-list"],[1,"shimmer-line-container"],[1,"onboarding-section",3,"hidden"],[3,"submitMessage","inputText"],[1,"shimmer-line",2,"width","100%"],[1,"shimmer-line",2,"width","90%"],[1,"shimmer-line",2,"width","80%"],[1,"onboarding-section"],[1,"gmat-overline","title"],["color","primary","mat-stroked-button","",1,"prompt-button",3,"ve","veClick",
"aria-label"],["color","primary","mat-stroked-button","",1,"prompt-button",3,"click","ve","veClick","aria-label"]],template:function(a,b){a&1&&(M(0,"reminder-blurb-wrapper"),K(1,"div",0),F(2,Wya,4,0,"div",1),Of(3,Zya,5,3,"div",2,fSc),L(),K(5,"message-input-wrapper",3),N("submitMessage",function(c){return b.sendQuestion(c)}),L());a&2&&(B(2),G(b.isLoading()?2:-1),B(),Pf(b.onboardingExamples()),B(2),I("inputText",b.draftQuery()))},dependencies:[fB,cB,fF,hF,aD],styles:['[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;height:100%}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;overflow-y:auto;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-bottom:16px}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .prompt-button[_ngcontent-%COMP%]{line-height:18px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:36px;background-color:var(--xap-color-surface)}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%]   .shimmer-line-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;padding:16px 0;width:300px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]{height:16px;background:var(--xap-color-surface-container-high);position:relative;overflow:hidden;border-radius:4px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;height:100%;width:100%;background:-webkit-gradient(linear,left top,right top,from(var(--xap-color-surface-container-high)),color-stop(50%,var(--xap-color-surface-container)),to(var(--xap-color-surface-container-high)));background:-webkit-linear-gradient(left,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);background:linear-gradient(to right,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);-webkit-animation:_ngcontent-%COMP%_shimmer 2.2s infinite;animation:_ngcontent-%COMP%_shimmer 2.2s infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}@keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}\n/*# sourceMappingURL=gpp_custom_onboarding.css.map */',
"[_nghost-%COMP%] { height: 100%; }"],changeDetection:0});/*

 Copyright (c) 2013 Marc J. Schmidt

 Use of this source code is governed by a MIT-style
 license that can be found in the LICENSE file or at
 https://opensource.org/licenses/MIT.
*/
"use strict";
var gSc=typeof window!=="undefined"?window:this,hSc=function(){function a(l,r){var w=Object.prototype.toString.call(l),x=0,C=l.length;if("[object Array]"===w||"[object NodeList]"===w||"[object HTMLCollection]"===w||"[object Object]"===w||"undefined"!==typeof jQuery&&l instanceof jQuery||"undefined"!==typeof Elements&&l instanceof Elements)for(;x<C;x++)r(l[x]);else r(l)}function b(l){if(!l.getBoundingClientRect)return{width:l.offsetWidth,height:l.offsetHeight};l=l.getBoundingClientRect();return{width:Math.round(l.width),
height:Math.round(l.height)}}function c(l,r){Object.keys(r).forEach(function(w){l.style[w]=r[w]})}if(typeof window==="undefined")return null;var d=typeof window!="undefined"&&Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:globalThis,e=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame||function(l){return d.setTimeout(l,20)},f=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame||function(l){d.clearTimeout(l)},g=function(l,
r){function w(){var H=[];this.add=function(R){H.push(R)};var J,O;this.call=function(R){J=0;for(O=H.length;J<O;J++)H[J].call(this,R)};this.remove=function(R){var V=[];J=0;for(O=H.length;J<O;J++)H[J]!==R&&V.push(H[J]);H=V};this.length=function(){return H.length}}function x(H,J){if(H)if(H.resizedAttached)H.resizedAttached.add(J);else{H.resizedAttached=new w;H.resizedAttached.add(J);H.resizeSensor=document.createElement("div");H.resizeSensor.dir="ltr";H.resizeSensor.className="resize-sensor";var O={pointerEvents:"none",
position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"};J={position:"absolute",left:"0px",top:"0px",transition:"0s"};c(H.resizeSensor,O);var R=document.createElement("div");R.className="resize-sensor-expand";c(R,O);var V=document.createElement("div");c(V,J);R.appendChild(V);var ca=document.createElement("div");ca.className="resize-sensor-shrink";c(ca,O);O=document.createElement("div");c(O,J);c(O,{width:"200%",height:"200%"});
ca.appendChild(O);H.resizeSensor.appendChild(R);H.resizeSensor.appendChild(ca);H.appendChild(H.resizeSensor);J=(J=window.getComputedStyle(H))?J.getPropertyValue("position"):null;"absolute"!==J&&"relative"!==J&&"fixed"!==J&&"sticky"!==J&&(H.style.position="relative");var oa=!1,ua=0,ka=b(H),Ga=0,ja=0,ta=!0;C=0;var xa=function(){var pb=H.offsetWidth,Xb=H.offsetHeight;V.style.width=pb+10+"px";V.style.height=Xb+10+"px";R.scrollLeft=pb+10;R.scrollTop=Xb+10;ca.scrollLeft=pb+10;ca.scrollTop=Xb+10},Sa=function(){if(ta){if(H.offsetWidth===
0&&H.offsetHeight===0){C||(C=e(function(){C=0;Sa()}));return}ta=!1}xa()};H.resizeSensor.resetSensor=Sa;var $a=function(){ua=0;oa&&(Ga=ka.width,ja=ka.height,H.resizedAttached&&H.resizedAttached.call(ka))};J=function(){ka=b(H);(oa=ka.width!==Ga||ka.height!==ja)&&!ua&&(ua=e($a));Sa()};O=function(pb,Xb,lc){pb.attachEvent?pb.attachEvent("on"+Xb,lc):pb.addEventListener(Xb,lc)};O(R,"scroll",J);O(ca,"scroll",J);C=e(function(){C=0;Sa()})}}var C=0;a(l,function(H){x(H,r)});this.detach=function(H){C&&(f(C),C=
0);g.detach(l,H)};this.reset=function(){l.resizeSensor.resetSensor&&l.resizeSensor.resetSensor()}};g.reset=function(l){a(l,function(r){l.resizeSensor.resetSensor&&r.resizeSensor.resetSensor()})};g.detach=function(l,r){a(l,function(w){if(w){if(w.resizedAttached&&typeof r==="function"&&(w.resizedAttached.remove(r),w.resizedAttached.length()))return;w.resizeSensor&&(w.contains(w.resizeSensor)&&w.removeChild(w.resizeSensor),delete w.resizeSensor,delete w.resizedAttached)}})};if(typeof MutationObserver!==
"undefined"){var k=new MutationObserver(function(l){for(var r in l)if(l.hasOwnProperty(r))for(var w=l[r].addedNodes,x=0;x<w.length;x++)w[x].resizeSensor&&g.reset(w[x])});document.addEventListener("DOMContentLoaded",function(){k.observe(document.body,{childList:!0,subtree:!0})})}return g};typeof define==="function"&&define.amd?define(hSc):typeof exports==="object"?module.exports=hSc():gSc.ResizeSensor=hSc();var iSc=window.ResizeSensor;var jF=function(){this.eventsDomainSelector_=this.metricsDomainSelector_=this.appDomainSelector_=null};qw("awesomecharts.config.RestDomainsConfig",jF);jF.prototype.getApp=function(){return this.appDomainSelector_};jF.prototype.getApp=jF.prototype.getApp;jF.prototype.setApp=function(a){this.appDomainSelector_=jSc(this,a);return this};jF.prototype.setApp=jF.prototype.setApp;jF.prototype.getPublicApi=function(){return this.publicApiSelector_};jF.prototype.getPublicApi=jF.prototype.getPublicApi;
jF.prototype.setPublicApi=function(a){this.publicApiSelector_=jSc(this,a);return this};jF.prototype.setPublicApi=jF.prototype.setPublicApi;jF.prototype.getPublicCharts=function(){return this.publicChartsSelector_};jF.prototype.getPublicCharts=jF.prototype.getPublicCharts;jF.prototype.setPublicCharts=function(a){this.publicChartsSelector_=jSc(this,a);return this};jF.prototype.setPublicCharts=jF.prototype.setPublicCharts;jF.prototype.getMetrics=function(){return this.metricsDomainSelector_};
jF.prototype.getMetrics=jF.prototype.getMetrics;jF.prototype.setMetrics=function(a){this.metricsDomainSelector_=jSc(this,a);return this};jF.prototype.setMetrics=jF.prototype.setMetrics;jF.prototype.getEvents=function(){return this.eventsDomainSelector_};jF.prototype.getEvents=jF.prototype.getEvents;jF.prototype.setEvents=function(a){this.eventsDomainSelector_=jSc(this,a);return this};jF.prototype.setEvents=jF.prototype.setEvents;jF.prototype.setIterFactory=function(a){this.iterFactory_=a};
jF.prototype.setIterFactory=jF.prototype.setIterFactory;var jSc=function(a,b){if(!b)return null;typeof b==="string"&&(b=[b]);Array.isArray(b)&&(b=a.iterFactory_(b));return b};var kSc=function(){};qw("awesomecharts.interfaces.AnalyticsInterface",kSc);kSc.prototype.sinceLoad=function(){};kSc.prototype.sinceLoad=kSc.prototype.sinceLoad;var kF=function(){};qw("awesomecharts.interfaces.AuthInterface",kF);kF.prototype.checkAuth=function(){};kF.prototype.checkAuth=kF.prototype.checkAuth;kF.prototype.isAuthInProgress=function(){};kF.prototype.isAuthInProgress=kF.prototype.isAuthInProgress;kF.prototype.isReady=function(){};kF.prototype.isReady=kF.prototype.isReady;kF.prototype.request=function(){};kF.prototype.request=kF.prototype.request;kF.prototype.clear=function(){};kF.prototype.clear=kF.prototype.clear;
kF.prototype.handleRequestError=function(){};kF.prototype.handleRequestError=kF.prototype.handleRequestError;kF.prototype.authorizeRequest=function(){};kF.prototype.authorizeRequest=kF.prototype.authorizeRequest;var lSc=function(){};lSc.prototype.sinceLoad=function(){};
var lF=function(){this.qnAuth_=this.auth_=null;this.throwPartials_=!0;this.restDomainsConfig_=new jF;this.colorTheme_=this.dateTimeDisplayFormatter_=this.timezonePreference_=null;this.whitelist_={};this.baseUrls_={gcm_v3:"https://monitoring.googleapis.com"};this.analytics_=new lSc;this.forceSync_=!1;this.stats_={transportRead:[],chartLoading:[],dashboardLoading:[],chartErrors:0};this.timezoneUtils_={timezoneOffset:function(){return-(new Date).getTimezoneOffset()},localOffset:function(){return-(new Date).getTimezoneOffset()}};
this.useTerminatingDrawQueue=!1};lF.prototype.setAuth=function(a){this.auth_=a;return this};lF.prototype.setAuth=lF.prototype.setAuth;lF.prototype.setQnAuth=function(a){this.qnAuth_=a;return this};lF.prototype.setQnAuth=lF.prototype.setQnAuth;lF.prototype.getAuth=function(){return this.auth_};lF.prototype.getAuth=lF.prototype.getAuth;lF.prototype.getQnAuth=function(){return this.qnAuth_};lF.prototype.getQnAuth=lF.prototype.getQnAuth;
lF.prototype.setThrowPartials=function(a){this.throwPartials_=a;return this};lF.prototype.setThrowPartials=lF.prototype.setThrowPartials;lF.prototype.getThrowPartials=function(){return this.throwPartials_};lF.prototype.getThrowPartials=lF.prototype.getThrowPartials;lF.prototype.setTimezoneUtils=function(a){this.timezoneUtils_=a;return this};lF.prototype.setTimezoneUtils=lF.prototype.setTimezoneUtils;lF.prototype.getTimezoneUtils=function(){return this.timezoneUtils_};
lF.prototype.getTimezoneUtils=lF.prototype.getTimezoneUtils;lF.prototype.setAnalytics=function(a){this.analytics_=a;return this};lF.prototype.setAnalytics=lF.prototype.setAnalytics;lF.prototype.getAnalytics=function(){return this.analytics_||null};lF.prototype.getAnalytics=lF.prototype.getAnalytics;lF.prototype.setTimezone=function(a){this.timezonePreference_=a;return this};lF.prototype.setTimezone=lF.prototype.setTimezone;
lF.prototype.getTimezone=function(){return this.timezonePreference_?this.timezonePreference_:window&&window.sd&&window.sd.timezonePreference?window.sd.timezonePreference:"LocalTime"};lF.prototype.getTimezone=lF.prototype.getTimezone;lF.prototype.setDateTimeDisplayFormatter=function(a){this.dateTimeDisplayFormatter_=a;return this};lF.prototype.setDateTimeDisplayFormatter=lF.prototype.setDateTimeDisplayFormatter;lF.prototype.getDateTimeDisplayFormatter=function(){return this.dateTimeDisplayFormatter_};
lF.prototype.getDateTimeDisplayFormatter=lF.prototype.getDateTimeDisplayFormatter;lF.prototype.setColorTheme=function(a){this.colorTheme_=a;return this};lF.prototype.setColorTheme=lF.prototype.setColorTheme;lF.prototype.getColorTheme=function(){return this.colorTheme_?this.colorTheme_:window&&window.sd&&window.sd.colorTheme?window.sd.colorTheme:null};lF.prototype.getColorTheme=lF.prototype.getColorTheme;lF.prototype.getRestDomainsConfig=function(){return this.restDomainsConfig_};
lF.prototype.getRestDomainsConfig=lF.prototype.getRestDomainsConfig;lF.prototype.setWhitelist=function(a,b){this.whitelist_[a]=b;return this};lF.prototype.setWhitelist=lF.prototype.setWhitelist;
var mSc=function(a,b,c){Array.isArray(c)||(c=[]);return Object.keys(a.whitelist_).concat(c).some(function(d){return d.indexOf(b)===0&&(!!a.whitelist_[d]||c.indexOf(d)>=0)})},nSc=function(a,b,c){return Array.isArray(c)&&c.includes(b)?!0:!!a.whitelist_[b]},pSc=function(a){var b=null;oSc(a).forEach(function(c){c.indexOf("chart-throttle-")===0&&(b=Math.min(c.substring(15),b===null?Infinity:b))});return b},oSc=function(a){return Object.keys(a.whitelist_).filter(function(b){return a.whitelist_[b]})};
lF.prototype.setBaseUrl=function(a,b){this.baseUrls_[a]=b};lF.prototype.setBaseUrl=lF.prototype.setBaseUrl;lF.prototype.getBaseUrl=function(){return this.baseUrls_[void 0]};lF.prototype.setAsyncEventWrapperFn=function(){};lF.prototype.setAsyncEventWrapperFn=lF.prototype.setAsyncEventWrapperFn;lF.prototype.setForceSync=function(a){this.forceSync_=a};lF.prototype.setForceSync=lF.prototype.setForceSync;lF.prototype.isForceSync=function(){return this.forceSync_};lF.prototype.isForceSync=lF.prototype.isForceSync;
lF.prototype.transportReadEvent=function(a){var b=this.stats_.transportRead;b.push(a);b.length>1E3&&b.shift()};lF.prototype.transportReadEvent=lF.prototype.transportReadEvent;lF.prototype.chartLoadingEvent=function(a,b){var c=this.stats_.chartLoading;c.push(a);c.length>1E3&&c.shift();b&&this.stats_.chartErrors++};lF.prototype.chartLoadingEvent=lF.prototype.chartLoadingEvent;lF.prototype.dashboardLoadingEvent=function(a){var b=this.stats_.dashboardLoading;b.push(a);b.length>1E3&&b.shift()};
lF.prototype.dashboardLoadingEvent=lF.prototype.dashboardLoadingEvent;
lF.prototype.showStats=function(){nSc(this,"chart-adaptive")?console.log("tile loading is on."):console.log("tile loading is off.");nSc(this,"chart-grpc")?console.log("grpc is on."):console.log("grpc is off.");console.log("throttle is "+pSc(this));var a=0,b=0;performance&&performance.getEntries&&performance.getEntries().forEach(function(c){!c.name||c.name.indexOf("/batch")===-1&&c.name.indexOf("/timeSeries?")===-1&&c.name.indexOf("/ListTimeSeries")===-1||(a+=.5,b+=+c.duration)});a>0&&(console.log("XHRs:",
a),console.log("average XHR latency:",b/a));a=this.stats_.transportRead.length;b=0;this.stats_.transportRead.forEach(function(c){b+=+c});console.log("transport reads:",a);console.log("average transport read latency:",a===0?"n/a":b/a);a=this.stats_.chartLoading.length;b=0;this.stats_.chartLoading.forEach(function(c){b+=+c});console.log("charts:",a);console.log("average chart latency:",a===0?"n/a":b/a);console.log("chart errors:",this.stats_.chartErrors);this.stats_.dashboardLoading.forEach(function(c){console.log("dashboard latency:",
c)});console.log("XHR latency includes stalled time and network time, per tile.");console.log("transport latency includes stalled time, network time, and parse time, per tile.");console.log("chart latency includes stalled time, network time, parse time, translate, and merge, per chart.");console.log("dashboard latency includes stalled, network, parse, translate, merge, and draw, per dashboard.")};lF.prototype.showStats=lF.prototype.showStats;
lF.prototype.doUseDataWorkers=function(a){return typeof self.Worker==="function"?nSc(this,"chart-data-workers",a)||mSc(this,"chart-override-performance-",a)?!0:mSc(this,"chart-performance-",a)&&nSc(this,"chart-rollout-performance",a):!1};lF.prototype.doUseDataWorkers=lF.prototype.doUseDataWorkers;lF.prototype.setUseTerminatingDrawQueue=function(a){this.useTerminatingDrawQueue=a};lF.prototype.setUseTerminatingDrawQueue=lF.prototype.setUseTerminatingDrawQueue;
lF.prototype.getUseTerminatingDrawQueue=function(){return this.useTerminatingDrawQueue};lF.prototype.getUseTerminatingDrawQueue=lF.prototype.getUseTerminatingDrawQueue;var mF=new lF;qw("awesomecharts.config.settings",mF);var $ya={};var nF=function(){Nj.call(this,{type:"@ngrx/store/init"})};Y(nF,Nj);nF.create=Nj.create;nF.prototype.next=function(a){if(typeof a==="function")throw new TypeError("ec");if(typeof a==="undefined")throw new TypeError("fc");if(typeof a.type==="undefined")throw new TypeError("gc");Nj.prototype.next.call(this,a)};nF.prototype.complete=function(){};nF.prototype.ngOnDestroy=function(){Nj.prototype.complete.call(this)};nF.\u0275fac=function(a){return new (a||nF)};nF.\u0275prov=Fc({token:nF,factory:nF.\u0275fac});
var qSc=[nF];var rSc=new fd("@ngrx/store Internal Root Guard"),sSc=new fd("@ngrx/store Internal Initial State"),tSc=new fd("@ngrx/store Initial State"),uSc=new fd("@ngrx/store Reducer Factory"),vSc=new fd("@ngrx/store Internal Reducer Factory Provider"),wSc=new fd("@ngrx/store Initial Reducers"),xSc=new fd("@ngrx/store Internal Initial Reducers"),ySc=new fd("@ngrx/store Store Features"),zSc=new fd("@ngrx/store Internal Store Reducers"),ASc=new fd("@ngrx/store Internal Feature Reducers"),BSc=new fd("@ngrx/store Internal Feature Configs"),
CSc=new fd("@ngrx/store Internal Store Features"),DSc=new fd("@ngrx/store Internal Feature Reducers Token"),ESc=new fd("@ngrx/store Feature Reducers"),FSc=new fd("@ngrx/store User Provided Meta Reducers"),GSc=new fd("@ngrx/store Meta Reducers"),HSc=new fd("@ngrx/store Internal Resolved Meta Reducers"),ISc=new fd("@ngrx/store User Runtime Checks Config"),JSc=new fd("@ngrx/store Internal User Runtime Checks Config"),uza=new fd("@ngrx/store Internal Runtime Checks"),tza=new fd("@ngrx/store Check if Action types are unique");
new fd("@ngrx/store Root Store Provider");new fd("@ngrx/store Feature State Provider");var KSc=function(){Vd.apply(this,arguments)};Y(KSc,Vd);KSc.create=Vd.create;var oF=function(){nF.apply(this,arguments)};Y(oF,nF);oF.create=nF.create;oF.\u0275prov=nF.\u0275prov;oF.\u0275fac=nF.\u0275fac;var pF=function(a,b,c,d){Nj.call(this,d(c,b));this.dispatcher=a;this.initialState=b;this.reducers=c;this.reducerFactory=d};Y(pF,Nj);pF.create=Nj.create;
var MSc=function(a,b){b=b.reduce(function(c,d){var e=d.reducers;var f=d.reducerFactory;var g=d.metaReducers;var k=d.initialState;d=d.key;e=typeof e==="function"?lza(g)(e,k):kza(f,g)(e,k);c[d]=e;return c},{});LSc(a,b)},OSc=function(a,b){NSc(a,b.map(function(c){return c.key}))},LSc=function(a,b){a.reducers=Object.assign({},a.reducers,b);PSc(a,Object.keys(b))},NSc=function(a,b){b.forEach(function(c){a.reducers=iza(a.reducers,c)});PSc(a,b)},PSc=function(a,b){a.next(a.reducerFactory(a.reducers,a.initialState));
a.dispatcher.next({type:"@ngrx/store/update-reducers",features:b})};pF.prototype.ngOnDestroy=function(){this.complete()};pF.\u0275fac=function(a){return new (a||pF)($c(oF),$c(tSc),$c(wSc),$c(uSc))};pF.\u0275prov=Fc({token:pF,factory:pF.\u0275fac});var QSc=[pF,{provide:KSc,useExisting:pF},{provide:oF,useExisting:nF}];var qF=function(){sf.apply(this,arguments)};Y(qF,sf);qF.create=sf.create;qF.prototype.ngOnDestroy=function(){this.complete()};qF.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(qF)))(b||qF)}}();qF.\u0275prov=Fc({token:qF,factory:qF.\u0275fac});var RSc=[qF];var SSc=function(){Vd.apply(this,arguments)};Y(SSc,Vd);SSc.create=Vd.create;var rF=function(a,b,c,d){Nj.call(this,d);var e=this;this.stateSubscription=a.pipe(Gha()).pipe(Ef(b)).pipe(yla(xza,{state:d})).subscribe(function(f){var g=f.state;f=f.action;e.next(g);c.next(f)});this.state=Vya(this,{manualCleanup:!0,requireSync:!0})};Y(rF,Nj);rF.create=Nj.create;rF.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe();this.complete()};rF.INIT="@ngrx/store/init";
rF.\u0275fac=function(a){return new (a||rF)($c(nF),$c(KSc),$c(qF),$c(tSc))};rF.\u0275prov=Fc({token:rF,factory:rF.\u0275fac});var TSc=[rF,{provide:SSc,useExisting:rF}];var sF=function(a,b,c,d){this.actionsObserver=b;this.reducerManager=c;this.injector=d;this.source=a;this.state=a.state};Y(sF,Vd);sF.create=Vd.create;h=sF.prototype;h.select=function(a){return ak.call.apply(ak,[null,a].concat(q(bd.apply(1,arguments))))(this)};h.lift=function(a){var b=new sF(this,this.actionsObserver,this.reducerManager);b.operator=a;return b};h.dispatch=function(a,b){if(typeof a==="function")return USc(this,a,b);this.actionsObserver.next(a)};h.next=function(a){this.actionsObserver.next(a)};
h.error=function(a){this.actionsObserver.error(a)};h.complete=function(){this.actionsObserver.complete()};var USc=function(a,b,c){bza(a.injector);var d;if((c=c==null?void 0:c.injector)!=null)var e=c;else a:{try{e=p(Ae);break a}catch(f){}e=void 0}e=(d=e)!=null?d:a.injector;return gf(function(){var f=b();Rc(function(){return a.dispatch(f)})},{injector:e})};sF.\u0275fac=function(a){return new (a||sF)($c(SSc),$c(nF),$c(pF),$c(Ae))};sF.\u0275prov=Fc({token:sF,factory:sF.\u0275fac});var VSc=[sF];var tF=function(){};tF.\u0275fac=function(a){return new (a||tF)($c(nF),$c(KSc),$c(qF),$c(sF),$c(rSc,8),$c(tza,8))};tF.\u0275mod=cf({type:tF});tF.\u0275inj=Hc({});var uF=function(a,b,c){this.features=a;this.reducerManager=c;a=a.map(function(d,e){e=b.shift()[e];return Object.assign({},d,{reducers:e,initialState:yza(d.initialState)})});MSc(c,a)};uF.prototype.ngOnDestroy=function(){OSc(this.reducerManager,this.features)};
uF.\u0275fac=function(a){return new (a||uF)($c(CSc),$c(ESc),$c(pF),$c(tF),$c(tza,8))};uF.\u0275mod=cf({type:uF});uF.\u0275inj=Hc({});var vF=Vj("[AC] Add chart",Wj()),wF=Vj("[AC] Remove chart",Wj()),xF=Vj("[AC] Rename chart",Wj()),WSc=Vj("[AC] Remove ChartGroup",Wj()),XSc=Vj("[AC] Add X Axis",Wj()),YSc=Vj("[AC] Remove X Axis",Wj()),ZSc=Vj("[AC] Add Categorical Axis",Wj()),$Sc=Vj("[AC] Remove Categorical Axis",Wj()),aTc=Vj("[AC] Add Layer",Wj()),bTc=Vj("[AC] Remove layer",Wj()),yF=Vj("[AC] Rename layer",Wj()),zza=Vj("[AC] Batch actions",Wj()),Aza=new WeakMap;var zF=function(a){this.selectorService=a;this.logger=null;this.setupCalled=!1;this.stateObservableSwitcher=new Nj(ee({previousValue:null,currentValue:null}));this.stateObservableInternal=this.stateObservableSwitcher.pipe(Af(function(b){return b}));this.store=p(sF)},AF=function(a,b){return a.scopeObservable.pipe(Af(function(c){return a.store.pipe(ak(b(c)))}),xf({bufferSize:1,refCount:!0}))};
zF.prototype.selectorFactoryToObservable=function(a){var b=this;return this.scopeObservable.pipe(Af(function(c){return b.selectorService.getSelection(a,c)}),xf({bufferSize:1,refCount:!0}))};zF.prototype.select=function(a){var b=this,c=void 0;this.scopeObservable.pipe(Af(function(d){return b.selectorService.getSelection(a,d)}),nf(1)).subscribe(function(d){c=d});return c};zF.prototype.setup=function(a){this.setupCalled||(this.stateObservable=cTc(a.stateSelectionObservables),this.setupCalled=!0)};
var cTc=function(a){var b=Object.keys(a);return le(Object.values(a)).pipe(A(function(c){for(var d={},e=0;e<b.length;e++)d[b[e]]=c[e];return d}),zf(null),vf(),A(gk),xf({bufferSize:1,refCount:!0}))};da.Object.defineProperties(zF.prototype,{stateObservable:{configurable:!0,enumerable:!0,set:function(a){this.stateObservableSwitcher.next(a)},get:function(){return this.stateObservableInternal}}});var pk=function(a){return Zj(function(b){return b[a]},function(b){return b})}("awesomecharts");var ik=function(a){this.getKey=a.getKey;this.getSelector=a.getSelector},jk=Yj(function(a){return Xj(a,Cza,Dza)});var dTc=new ik({getKey:Fza,getSelector:function(){return ee(Zj(Gza(),function(a){return a}))}}),eTc=new ik({getKey:Fza,getSelector:function(a){var b=a.chartGroupId;var c=a.chartId;return ee(Zj(Gza(),function(d){return(d==null?void 0:d.chartGroupId)===b&&(d==null?void 0:d.chartId)===c}))}});var Jza=Zj(pk,function(a){return a.resize}),fTc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(Jza,function(c){return c.entities[b]}))}}),gTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.top-b.margins.bottom)}))}}),hTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.width-
b.margins.left-b.margins.right)}))}}),iTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.top)}))}}),jTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.left)}))}}),kTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,
b.width-b.margins.right)}))}}),lTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.bottom)}))}}),mTc=kk(function(a){return a.chartId},function(a,b){if(a!==void 0&&b!==void 0)return{bodyLeft:a,bodyRight:b}},jTc,kTc),nTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){return b==null?void 0:b.width}))}}),oTc=new ik({getKey:function(a){return a.chartId},
getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){return b==null?void 0:b.height}))}}),pTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a){return ee(Zj(sk({chartId:a.chartId}),function(b){return b==null?void 0:b.margins}))}}),qTc=new ik({getKey:function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},getSelector:function(a){var b=a.chartId;var c=a.layerId;return ee(Zj(sk({chartId:b}),function(d){var e;return(e=d==null?void 0:d.reservedMarginsByLayer.entities[c])!=
null?e:void 0}))}}),rTc=new ik({getKey:function(a){return a.chartId},getSelector:function(a,b){return le([b.getSelector(oTc,a),b.getSelector(nTc,a),b.getSelector(pTc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return Zj(c,e,d,function(f,g,k){if(f!==void 0&&f>0&&g!==void 0&&g>0&&k!==void 0)return{height:f,width:g,margins:k}})}))}}),BF=kk(nk,function(a,b,c){if(a&&b!==void 0&&c!==void 0)return Object.assign({},a,{chartWidth:b,chartHeight:c})},kk(nk,function(a,
b,c,d,e,f){if(a!==void 0&&b!==void 0&&c!==void 0&&d!==void 0&&e!==void 0&&f!==void 0)return{bodyTop:a,bodyLeft:b,bodyRight:c,bodyBottom:d,bodyWidth:e,bodyHeight:f}},iTc,jTc,kTc,lTc,hTc,gTc),nTc,oTc);var sTc=function(a){if(!Array.isArray(a))return null;var b=[],c;for(c=0;c<a.length;++c){var d=a[c];Array.isArray(d)?b=b.concat(d):b.push(d)}return b},Kza=function(a,b){if(!Array.isArray(a))return-1;for(var c=a.length-1;c>=0;--c)if(b(a[c]))return c;return-1};var CF={},DF=function(a){this.name=this.name||"ACError";this.code=this.code||500;this.message=this.message||a||"An unknown error occurred";this.details={}};qw("awesomecharts.utils.errors.ACError",DF);CF.ACError=DF;rw(DF,Error);var tTc=function(a){this.name="RequestAbortedError";this.message=a||"";this.code=499;DF.call(this)};CF.RequestAbortedError=tTc;rw(tTc,DF);var uTc=function(a){this.name="ServiceUnavailableError";this.message=a||"";this.code=503;DF.call(this)};CF.ServiceUnavailableError=uTc;
rw(uTc,DF);var vTc=function(a){this.name="TooManyRequestsError";this.message=a||"";this.code=429;DF.call(this)};CF.TooManyRequestsError=vTc;rw(vTc,DF);var wTc=function(a,b){this.code=415;this.name="ContentTypeError";this.message=a||this.name+" for path "+b;DF.call(this)};qw("awesomecharts.utils.errors.ContentTypeError",wTc);CF.ContentTypeError=wTc;rw(wTc,DF);var xTc=function(a){this.code=200;this.name="NoDataError";this.message=a||"Query response did not contain any data.";DF.call(this)};
qw("awesomecharts.utils.errors.NoDataError",xTc);CF.NoDataError=xTc;rw(xTc,DF);var yTc=function(a,b){this.status=b;this.code=403;this.name="UnauthorizedError";this.message=a||"You do not have permissions for this request.";DF.call(this)};qw("awesomecharts.utils.errors.UnauthorizedError",yTc);CF.UnauthorizedError=yTc;rw(yTc,DF);var zTc=function(a,b){this.code=404;this.name="NotFoundError";this.message=a||"One or more resources could not be found.";this.status=b;DF.call(this)};
qw("awesomecharts.utils.errors.NotFoundError",zTc);CF.NotFoundError=zTc;rw(zTc,DF);var ATc=function(a,b){this.status=b||null;this.code=400;this.name="InvalidRequestError";this.message=a||"Request was invalid.";DF.call(this)};qw("awesomecharts.utils.errors.InvalidRequestError",ATc);CF.InvalidRequestError=ATc;rw(ATc,DF);var BTc=function(a){this.message=a||"Request timed out";this.code=504;this.name="TimeoutError";DF.call(this)};qw("awesomecharts.utils.errors.TimeoutError",BTc);CF.TimeoutError=BTc;
rw(BTc,DF);var CTc=function(a){this.code=499;this.name="FetchStrategyError";this.message=a||"Encountered error executing fetch strategy.";DF.call(this)};qw("awesomecharts.utils.errors.FetchStrategyError",CTc);CF.FetchStrategyError=CTc;rw(CTc,DF);var DTc=function(a){this.code=-1;this.name="CustomError";this.message=a||"Unknown error.";DF.call(this)};qw("awesomecharts.utils.errors.CustomError",DTc);CF.CustomError=DTc;rw(DTc,DF);var ETc,FTc=-1;
if(CF)if(Array.isArray(CF))for(ETc=CF.length;++FTc<ETc;)new CF[FTc];else{var GTc=Object.keys(CF),HTc;for(ETc=GTc.length;++FTc<ETc;)HTc=GTc[FTc],new CF[HTc]}var ITc=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(ITc,Error);qw("awesomecharts.utils.errors.ValidationError",ITc);var JTc=function(){};qw("awesomecharts.interfaces.LabelFormatterInterface",JTc);JTc.prototype.format=function(){};var KTc=/(["'])(?:(?=(\\?))\2.)*?\1/,LTc=/\$\{\s*\w[^\(\}]*?(?:\(\))?\s*}/,MTc=/^\w[\w\.]*?(?:\(\))$/,NTc=/\\([\\"])/g,OTc=/\\([\\'])/g,PTc=new Map([["metric.labels.",["metric","labels"]],["resource.labels.",["resource","labels"]],["metadata.system_labels.",["metadata","system_labels"]],["metadata.user_labels.",["metadata","user_labels"]]]),EF=function(){},tk=function(a){this.quoteType_=a[0];this.quotedValue_=a;this.unquotedValue_=a.slice(1,a.length-1).replace(this.quoteType_==='"'?NTc:OTc,"$1")};
Y(tk,EF);tk.prototype.toString=function(){return this.quotedValue_};tk.prototype.value=function(){return this.unquotedValue_};
var FF=function(a){this.identifier_=a.slice(2,a.length-1).trim();if(this.isFunction_=!!this.identifier_.match(MTc))this.identifier_=this.identifier_.slice(0,-2);this.identifier_.indexOf("\\.")||this.identifier_.indexOf("\\'")?(a=this.identifier_.replace(/\\\./g,"@@@periodtoken@@@"),a=a.replace(/\\'/g,"@@@apostrophetoken@@@"),this.identifierParts_=this.getParts_(a).map(function(b){return b.replaceAll("@@@periodtoken@@@",".").replaceAll("@@@apostrophetoken@@@","'")})):this.identifierParts_=this.getParts_(this.identifier_)};
Y(FF,EF);FF.prototype.toString=function(){var a=this.identifier_;this.isFunction_&&(a+="()");return a};FF.prototype.value=function(){return this.identifier_};FF.prototype.getParts_=function(a){for(var b=m(PTc.entries()),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;if(a.startsWith(c))return a=a.substring(c.length),[].concat(q(d),[a])}var e;return(e=a.split("."))!=null?e:[]};var QTc=function(){};QTc.prototype.format=function(){};
var sl=function(a){this.originalString_=a;this.parsed=this.parse_()};Y(sl,QTc);var RTc=function(a,b){b=a.parseQuoted(b);b=b.map(function(c){return c instanceof EF?c:a.parseToken_(LTc,FF,c)});return sTc(b)};sl.prototype.parse_=function(){return this.parsed?this.parsed:RTc(this,this.originalString)};
sl.prototype.parseToken_=function(a,b,c){var d=[];a=a.toString();a=a.substring(1,a.length-1);a=new RegExp(a,"g");var e,f=0;for(c||(c="");(e=a.exec(c))!==null;)f!==e.index&&d.push(e.input.slice(f,e.index)),d.push(new b(e[0])),f=a.lastIndex;f!==c.length&&d.push(c.slice(f));return d};sl.prototype.parseQuoted=function(a){return this.parseToken_(KTc,tk,a)};
sl.prototype.format=function(a,b){for(var c=null,d=null,e=[],f=this.parsed.map(function(l,r){if(l instanceof tk)var w=c instanceof FF&&d===""?"":l.value();else if(l instanceof FF){w=a;if(b&&l.isFunction_&&l.identifierParts_.length===1){var x=l.identifierParts_[0];(w=b[x])||(w=a[x])}else{x=m(l.identifierParts_);for(var C=x.next();!C.done&&(w=w[C.value],w);C=x.next());}w=l.isFunction_?w&&typeof w==="function"?w(a):"#ERR":w===void 0||w===null?null:w;if(w===void 0||w===null)w="";c instanceof tk&&w===
""&&(e.push(r-1),w="")}else w=l;c=l;return d=w}),g=m(e),k=g.next();!k.done;k=g.next())f[k.value]="";f=f.join("");return f.trim()===""?"":f};da.Object.defineProperties(sl.prototype,{originalString:{configurable:!0,enumerable:!0,get:function(){return this.originalString_}}});var STc=/\s?<=|>=|!=|=|<|>\s?/,TTc=/\sAND\s|\sOR\s/,UTc=/^\sAND\s$/,VTc=/(\sAND\s)$/,WTc=/^\sOR\s$/,XTc=/(\sOR\s)$/,YTc=/^(.*?)(\sAND\s|\sOR\s|\s)?(\S+)$/,ZTc=/^(\w[\w\.]*?\()(.*)(\))$/,$Tc=/(select_.*?)(\(.+\)+)/,GF=function(a){this.value_=a};Y(GF,EF);GF.prototype.toString=function(){return String(this.value_)};GF.prototype.value=function(){return this.value_};
GF.prototype.equals=function(a){return a instanceof this.constructor&&(a.toString().trim()===this.toString().trim()||a.toString().replace(/\(|\)/g,"").trim()===this.toString().replace(/\(|\)/g,"").trim())};var HF=function(a){this.value_="";this.subtokens_=[a]};Y(HF,GF);h=HF.prototype;h.numSubtokens=function(){return this.subtokens_.length};h.subtoken=function(a){return this.subtokens_.length>a?this.subtokens_[a]:null};h.append=function(a){this.subtokens_.push(a)};h.prepend=function(a){this.subtokens_.unshift(a)};
h.toString=function(){return this.subtokens_.map(function(a){return a instanceof tk?a.toString():a}).join("")};HF.prototype.toString=HF.prototype.toString;HF.prototype.prepend=HF.prototype.prepend;HF.prototype.append=HF.prototype.append;HF.prototype.subtoken=HF.prototype.subtoken;HF.prototype.numSubtokens=HF.prototype.numSubtokens;var IF=function(){GF.apply(this,arguments)};Y(IF,GF);var uk=function(){HF.apply(this,arguments)};Y(uk,HF);
var vk=function(a){if(a instanceof tk)HF.call(this,a);else{var b=a.match(ZTc);b?(HF.call(this,b[1]),b[2].length>0&&this.append(b[2]),this.append(b[3])):HF.call(this,a)}};Y(vk,HF);var JF=function(){GF.apply(this,arguments)};Y(JF,GF);var KF=function(){JF.apply(this,arguments)};Y(KF,JF);var aUc=function(){JF.apply(this,arguments)};Y(aUc,JF);
var bUc=[{token:uk},{token:IF},{token:vk,canBeLast:!0},{token:JF}],wk=function(a){this.originalString=a;this.parsed=this.parse_();this.validate()},Sza=function(a){return a.parsed?a.parsed.map(function(b){return Oza(b)}):void 0};
wk.prototype.parse_=function(){if(this.parsed)return this.parsed;var a=this.parseTss(this.originalString);a=this.parseQuoted(a);if(a instanceof Array){var b=[];for(a=a.slice();a.length;){var c=a.shift();if(typeof c==="string"&&c.endsWith(".")&&a[0]instanceof tk){c=YTc.exec(c);var d=m([c&&c[1]?c[1]:"",c&&c[2]?c[2]:"",c&&c[3]?c[3]:""]);c=d.next().value;var e=d.next().value;d=d.next().value;c.length&&b.push(c);e.length&&(UTc.test(e)||/^\s*$/.test(e)?b.push(new KF(e)):WTc.test(e)?b.push(new aUc(e)):b.push(e));
c=new uk(d);c.append(a[0]);b.push(c);a.shift()}else b.push(c)}a=b}a=this.parseExpressions(a);b=a=sTc(a);a=[];e=null;for(c=0;c<b.length;c++)if(d=b[c],d instanceof tk)!e||e instanceof JF?(e=new uk(d),a.push(e)):e instanceof IF?(e=new vk(d),a.push(e)):e instanceof HF&&e.append(d);else if(d instanceof uk)if(e instanceof uk)e.append(d.toString());else if(e instanceof vk){d=d.toString();var f=d.match(/^\s+/);f?(e=f[0],a.push(new KF(e)),e=new uk(d.slice(e.length)),a.push(e)):cUc(this)}else a.push(d),e=d;
else d instanceof vk?e instanceof vk?e.append(d.toString()):e instanceof uk?cUc(this):(a.push(d),e=d):(a.push(d),e=d);return a};wk.prototype.validate=function(){for(var a=0,b=0;b<this.parsed.length;b++){var c=bUc[a],d=this.parsed[b+1];this.parsed[b]instanceof c.token&&(d||c.canBeLast)||cUc(this);a++;a===bUc.length&&(a=0)}};
wk.prototype.parseToken_=function(a,b,c){var d=[];a=a.toString();a=a.substring(1,a.length-1);a=new RegExp(a,"g");var e,f=0;for(c||(c="");(e=a.exec(c))!==null;)f!==e.index&&d.push(e.input.slice(f,e.index)),d.push(new b(e[0])),f=a.lastIndex;f!==c.length&&d.push(c.slice(f));return d};
var dUc=function(a,b){var c=[],d=TTc.toString();d=d.substring(1,d.length-1);d=new RegExp(d,"g");var e=0,f=d.exec(b);f||(b=b.trim());f?(e!==f.index&&c.push(new vk(f.input.slice(e,f.index))),UTc.test(f[0])?c.push(new KF(f[0])):WTc.test(f[0])&&c.push(new aUc(f[0])),e=d.lastIndex,e!==b.length&&c.push(new uk(b.slice(e)))):(d=b.split(" "),c.push(new vk(d.shift())),d.length>0&&(d[d.length-1]!==""?(b=new uk(d.pop()),d=d.join(" "),d.match(/[^ ]/)&&cUc(a),c.push(new KF(d||" ")),c.push(b)):c.push(new KF(" "))));
return c};h=wk.prototype;h.parseTss=function(a){var b=a.match($Tc);if(!b)return[a];var c=new uk(b[1]),d=new vk(b[2].slice(1,b[2].length-1));d.prepend("(");d.append(")");a=a.replace($Tc,"");b.index>0&&(a=" "+a);return[c,new IF(""),d,a]};h.parseQuoted=function(a){var b=this;a=a.map(function(c){return c instanceof EF?c:b.parseToken_(KTc,tk,c)});return sTc(a)};
h.parseExpressions=function(a){var b=this;a=a.map(function(c){if(!(c instanceof EF)){var d=c;c=[];var e=STc.toString();e=e.substring(1,e.length-1);e=new RegExp(e,"g");var f,g=0;for(d||(d="");(f=e.exec(d))!==null;){if(g!==f.index){var k=f.input.slice(g,f.index);g===0?(g=dUc(b,k),g.length>1?c.push(g):c.push(new uk(k))):c.push(dUc(b,k))}c.push(new IF(f[0]));g=e.lastIndex}g!==d.length&&(d=d.slice(g),g===0?c.push(dUc(b,d)):(e=VTc.exec(d),f=XTc.exec(d),e?(c.push(new vk(d.substr(0,d.length-e[1].length))),
c.push(new KF(e[1]))):f?(c.push(new vk(d.substr(0,d.length-f[1].length))),c.push(new aUc(f[1]))):c.push(new vk(d))))}return c});return sTc(a)};h.toString=function(){return this.parsed.reduce(function(a,b){return a+b.toString()},"")};h.hasToken=function(a){return this.parsed.findIndex(function(b){return b.equals(a)})>-1};
h.addExpression=function(a,b,c,d){this.parsed.length>0&&(a.trim()===""||a.trim()==="AND"?this.parsed.push(new KF(a)):this.parsed.push(new aUc(a)));var e=b+" "+c+" "+d;a=(e.toString().match(/\(/g)||[]).length;e=(e.toString().match(/\)/g)||[]).length;this.parsed.push(new uk(b));a<e&&this.parsed[this.parsed.length-1].prepend("(");this.parsed.push(new IF(c));this.parsed.push(new vk(d));a>e&&this.parsed[this.parsed.length-1].append(")");this.validate()};
h.removeLhsExpression=function(a){var b=new uk(a);a=this.parsed.findIndex(function(f){return f.equals(b)});if(a===-1)return null;var c=this.parsed.splice(a,3),d=(c.toString().match(/\(/g)||[]).length,e=(c.toString().match(/\)/g)||[]).length;if(d!==e)if(d>e){for(d=a+1;d<this.parsed.length&&!(this.parsed[d]instanceof HF);)d++;this.parsed[d].prepend("(")}else{for(d=a-1;d>=0&&!(this.parsed[d]instanceof HF);)d--;this.parsed[d].append(")")}a>0?c.unshift(this.parsed.splice(a-1,1)[0]):c.unshift(new JF(""));
return c};var cUc=function(a){throw new ITc("Invalid metric filter. Can not parse '"+a.originalString+"'.");};wk.prototype.removeLhsExpression=wk.prototype.removeLhsExpression;wk.prototype.addExpression=wk.prototype.addExpression;wk.prototype.hasToken=wk.prototype.hasToken;wk.prototype.toString=wk.prototype.toString;wk.prototype.parseExpressions=wk.prototype.parseExpressions;wk.prototype.parseQuoted=wk.prototype.parseQuoted;wk.prototype.parseTss=wk.prototype.parseTss;var Tza={"=":"eq","<":"lt",">":"gt","<=":"lte",">=":"gte","=~":"rgx"};var Pza=Zj(pk,function(a){return a.timeSeries}),eUc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(Pza,function(c){return c.entities[b]}))}});var Vza=Zj(pk,function(a){return a.xAxisPin}),fUc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(Vza,function(c){return c.entities[b]}))}}),gUc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(Vza,function(c){var d,e;return(e=(d=c.entities[b])==null?void 0:d.xPos)!=null?e:void 0}))}}),hUc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(Vza,function(c){var d;return(d=c.entities[b])==null?void 0:d.locked}))}}),iUc=new ik({getKey:ok,
getSelector:function(a){var b=a.chartGroupId;return ee(Zj(Vza,function(c){var d;return(d=c.entities[b])==null?void 0:d.trackingNow}))}});var jUc=0,LF=function(a,b){zF.call(this,b);var c=this;this.el=a;this.destroyed=new sf;this.logger=null;this.objectiveChartId="ac-composable-chart-"+jUc++;this.boundingClientRectCache=null;this.boundingClientRectCachedAsOf=0;this.chartGroupId="default";this.chartId=this.objectiveChartId;this.title="Untitled";this.scopeObservable=this.scopeSubject=new wf(1);this.eventHandlerRegistry=new Map;this.mouseDownObservable=this.mouseDownSubject=new sf;this.mouseUpObservable=this.mouseUpSubject=new sf;this.mouseEnterObservable=
this.mouseEnterSubject=new sf;this.mouseLeaveObservable=this.mouseLeaveSubject=new sf;this.mouseClickObservable=this.mouseClickSubject=new sf;this.afterMouseClickObservable=this.afterMouseClickSubject=new sf;this.keyDownObservable=this.keyDownSubject=new sf;this.syncKeyDownObservable=this.syncKeyDownSubject=new sf;this.keyUpObservable=this.keyUpSubject=new sf;this.scrollObservable=this.scrollSubject=new sf;this.syncScrollObservable=this.syncScrollSubject=new sf;this.documentMouseUpObservable=this.documentMouseUpSubject=
new sf;this.dragStartSubject=new sf;this.syncDragStartObservable=this.syncDragStartSubject=new sf;this.dragSubject=new sf;this.syncDragObservable=this.syncDragSubject=new sf;this.dragEndSubject=new sf;this.syncDragEndObservable=this.syncDragEndSubject=new sf;this.windowCaptureScrollSubject=new sf;this.touchStartObservable=this.touchStartSubject=new sf;this.syncTouchStartObservable=this.syncTouchStartSubject=new sf;this.touchMoveObservable=this.touchMoveSubject=new sf;this.syncTouchMoveObservable=
this.syncTouchMoveSubject=new sf;this.touchEndObservable=this.touchEndSubject=new sf;this.syncTouchEndObservable=this.syncTouchEndSubject=new sf;this.context={scope:{chartGroupId:this.chartGroupId,chartId:this.chartId},state:null};this.changeDetectionActionsBatch=[];this.globalHoverDisabled=!1;this.defaultStateSelectionObservables={focus:AF(this,Gza),resize:AF(this,sk),xAxisPin:AF(this,Wza),timeSeries:AF(this,Qza)};le([this.scopeObservable,this.stateObservable]).pipe(Bf(this.destroyed)).subscribe(function(d){var e=
m(d);d=e.next().value;e=e.next().value;c.context.scope=d;c.context.state=e.currentValue})};Y(LF,zF);h=LF.prototype;
h.setup=function(a){var b=this;a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables);zF.prototype.setup.call(this,{stateSelectionObservables:a});this.scopeObservable.pipe(zf(null),vf(),A(gk),Ef(this.stateObservable),Bf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)});this.setupStateChangeHandler(a.resize,function(c,d){return b.onResizeChange(hk(c,function(e){return e.resize}),d)},"resize");this.setupStateChangeHandler(a.xAxisPin,
function(c,d){return b.onXAxisPinChange(hk(c,function(e){return e.xAxisPin}),d)},"xAxisPin");this.setupStateChangeHandler(a.timeSeries,function(c,d){return b.onTimeSeriesChange(hk(c,function(e){return e.timeSeries}),d)},"timeSeries");this.setupStateChangeHandler(a.focus,function(c,d){return b.onFocusChange(hk(c,function(e){return e.focus}),d)},"focus")};
h.setupStateChangeHandler=function(a,b,c){var d=this;if(this.setupCalled&&a){var e=null;a.pipe(Xza(this.scopeObservable,this.stateObservable),Bf(this.destroyed)).subscribe(function(f){var g=m(f);f=g.next().value;g=g.next().value;var k={scope:f,state:g.currentValue},l={previousValue:e,currentValue:g.currentValue};e=g.currentValue;d.scheduleStateChangeHandler({changes:l,context:k,componentHandlerUsingContext:b,mergeKey:f.chartId+"-"+c,scope:f})})}};
h.onScopeChange=function(a){var b=a.previousValue,c=a.currentValue,d=[];c&&(b==null?void 0:b.chartId)!==(c==null?void 0:c.chartId)&&(d.push(xF({chartGroupId:c.chartGroupId,previousChartId:b==null?void 0:b.chartId,currentChartId:c.chartId})),kUc(this.selectorService,a));MF(this,d)};h.onResizeChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a){Zza(a)?a.viewHandlerUsingContext(a.changes,a.context):aAa(a)&&(a=a.componentHandlerUsingContext(a.changes,a.context))&&a.length&&this.store.dispatch(dk({actions:a}))};h.scheduleChangeHandler=function(a){var b=a.changes;Yza(a)&&a.viewHandler(b);$za(a)&&(a=a.componentHandler(b))&&a.length&&this.store.dispatch(dk({actions:a}))};
h.getBoundingClientRect=function(){var a=Date.now();if(!this.boundingClientRectCache||a-this.boundingClientRectCachedAsOf>500){var b=this.el.nativeElement.getBoundingClientRect();this.boundingClientRectCache=b;this.boundingClientRectCachedAsOf=a;return b}return this.boundingClientRectCache};
var lUc=function(a,b){var c=a.eventHandlerRegistry.get(b);c||(c=new Map,a.eventHandlerRegistry.set(b,c));a=c.get("mousemove");a||(a=new Set,c.set("mousemove",a))},mUc=function(a,b){a=a.eventHandlerRegistry.get(b);return a?(a=a.get("mousemove"))?a:new Set:new Set},NF=function(a,b,c,d){var e=mUc(a,b),f=c;f=function(g){return a.globalHoverDisabled?[]:c(g)};e.add(f);d&&d.pipe(nf(1)).subscribe(function(){var g=f;mUc(a,b).delete(g)})},MF=function(a,b){a.changeDetectionActionsBatch=a.changeDetectionActionsBatch.concat(b)},
nUc=function(a){if(a.changeDetectionActionsBatch.length){var b=a.changeDetectionActionsBatch;a.changeDetectionActionsBatch=[];a.store.dispatch(dk({actions:b}))}};LF.prototype.ngOnInit=function(){var a=this;this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId});MF(this,[vF({chartId:this.chartId,chartGroupId:this.chartGroupId})]);AF(this,Hza).pipe(Bf(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
LF.prototype.ngOnChanges=function(a){("chartId"in a||"chartGroupId"in a)&&this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId})};LF.prototype.ngAfterViewChecked=function(){nUc(this)};LF.prototype.ngOnDestroy=function(){var a=wF({chartId:this.chartId,chartGroupId:this.chartGroupId});MF(this,[a]);nUc(this);this.destroyed.next();this.destroyed.complete()};LF.\u0275fac=function(){Ze()};
LF.\u0275dir=df({type:LF,inputs:{chartGroupId:"chartGroupId",chartId:"chartId",title:"title"},features:[Gf,bx]});var oUc=function(){},Fk=function(a){if(typeof a=="number"){var b=new oUc;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(":",KB(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=pUc(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new oUc;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},pUc=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(KB(Math.floor(a/60)%100,2),":",KB(a%60,2));return b.join("")},qUc=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]},Rk=function(a,
b){a=a.standardOffset_-qUc(a,b);return a===-1440?0:a};var jAa={};var kAa={americaLosAngeles:{id:"America/Los_Angeles",names:["PST","Pacific Standard Time","PDT","Pacific Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-08:00",STD_GENERIC_LOCATION:"Los Angeles Time",DST_LONG_NAME_GMT:"GMT-07:00",DST_GENERIC_LOCATION:"Los Angeles Time"},std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,
0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,
60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,
0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]},americaNewYork:{id:"America/New_York",names:["EST","Eastern Standard Time","EDT","Eastern Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-05:00",STD_GENERIC_LOCATION:"New York Time",DST_LONG_NAME_GMT:"GMT-04:00",DST_GENERIC_LOCATION:"New York Time"},std_offset:-300,transitions:[2767,60,7134,0,11503,60,16038,0,20407,60,24774,0,29143,60,33510,0,35191,60,42246,0,45103,60,50982,0,55351,60,59886,0,64087,60,68622,0,72991,60,77358,0,81727,60,
86094,0,90463,60,94830,0,99199,60,103566,0,107935,60,112470,0,116671,60,121206,0,125575,60,129942,0,134311,60,138678,0,143047,60,147414,0,151279,60,156150,0,160015,60,165054,0,168751,60,173790,0,177487,60,182526,0,186391,60,191262,0,195127,60,199998,0,203863,60,208902,0,212599,60,217638,0,221335,60,226374,0,230239,60,235110,0,238975,60,243846,0,247711,60,252582,0,256447,60,261486,0,265183,60,270222,0,273919,60,278958,0,282823,60,287694,0,291559,60,296430,0,300295,60,305334,0,309031,60,314070,0,317767,
60,322806,0,325999,60,331710,0,334735,60,340446,0,343471,60,349182,0,352375,60,358086,0,361111,60,366822,0,369847,60,375558,0,378583,60,384294,0,387319,60,393030,0,396055,60,401766,0,404959,60,410670,0,413695,60,419406,0,422431,60,428142,0,431167,60,436878,0,439903,60,445614,0,448807,60,454518,0,457543,60,463254,0,466279,60,471990,0,475015,60,480726,0,483751,60,489462,0,492487,60,498198,0,501391,60,507102,0,510127,60,515838,0,518863,60,524574,0,527599,60,533310,0,536335,60,542046,0,545239,60,550950,
0,553975,60,559686,0,562711,60,568422,0,571447,60,577158,0,580183,60,585894,0,588919,60,594630,0]},UTC:{id:"UTC",names:["UTC","Coordinated Universal Time"],names_ext:{STD_LONG_NAME_GMT:"GMT",STD_GENERIC_LOCATION:"GMT"},std_offset:0,transitions:[]},americaAnchorage:{id:"America/Anchorage",names:["AKST","Alaska Standard Time","AKDT","Alaska Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-09:00",STD_GENERIC_LOCATION:"Anchorage Time",DST_LONG_NAME_GMT:"GMT-08:00",DST_GENERIC_LOCATION:"Anchorage Time"},
std_offset:-540,transitions:[2772,60,7139,0,11508,60,16043,0,20412,60,24779,0,29148,60,33515,0,35196,60,42251,0,45108,60,50987,0,55356,60,59891,0,64092,60,68627,0,72996,60,77363,0,81732,60,86099,0,90468,60,94835,0,99204,60,103571,0,107940,60,112475,0,116676,60,121211,0,125579,60,129946,0,134315,60,138682,0,143051,60,147418,0,151283,60,156154,0,160019,60,165058,0,168755,60,173794,0,177491,60,182530,0,186395,60,191266,0,195131,60,200002,0,203867,60,208906,0,212603,60,217642,0,221339,60,226378,0,230243,
60,235114,0,238979,60,243850,0,247715,60,252586,0,256451,60,261490,0,265187,60,270226,0,273923,60,278962,0,282827,60,287698,0,291563,60,296434,0,300299,60,305338,0,309035,60,314074,0,317771,60,322810,0,326003,60,331714,0,334739,60,340450,0,343475,60,349186,0,352379,60,358090,0,361115,60,366826,0,369851,60,375562,0,378587,60,384298,0,387323,60,393034,0,396059,60,401770,0,404963,60,410674,0,413699,60,419410,0,422435,60,428146,0,431171,60,436882,0,439907,60,445618,0,448811,60,454522,0,457547,60,463258,
0,466283,60,471994,0,475019,60,480730,0,483755,60,489466,0,492491,60,498202,0,501395,60,507106,0,510131,60,515842,0,518867,60,524578,0,527603,60,533314,0,536339,60,542050,0,545243,60,550954,0,553979,60,559690,0,562715,60,568426,0,571451,60,577162,0,580187,60,585898,0,588923,60,594634,0]},asiaCalcutta:{id:"Asia/Calcutta",names:["GMT+5:30","India Standard Time"],names_ext:{STD_LONG_NAME_GMT:"GMT+05:30",STD_GENERIC_LOCATION:"India Time"},std_offset:330,transitions:[]}};var lAa=(new Date).getTimezoneOffset();var rUc={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},OF=rUc;OF=rUc;var sUc=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),tUc=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,uUc=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,vUc=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},wUc=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},PF=function(a,b,c,d,e,f){typeof a===
"string"?(this.years=a=="y"?b:0,this.months=a=="m"?b:0,this.days=a=="d"?b:0,this.hours=a=="h"?b:0,this.minutes=a=="n"?b:0,this.seconds=a=="s"?b:0):(this.years=a||0,this.months=b||0,this.days=c||0,this.hours=d||0,this.minutes=e||0,this.seconds=f||0)};h=PF.prototype;
h.toIsoString=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(b<0&&c>0)return null;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");(this.years||a)&&c.push(Math.abs(this.years)+"Y");(this.months||a)&&c.push(Math.abs(this.months)+"M");(this.days||a)&&c.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||a)c.push("T"),(this.hours||
a)&&c.push(Math.abs(this.hours)+"H"),(this.minutes||a)&&c.push(Math.abs(this.minutes)+"M"),(this.seconds||a)&&c.push(Math.abs(this.seconds)+"S");return c.join("")};h.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};h.clone=function(){return new PF(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
h.isZero=function(){return this.years==0&&this.months==0&&this.days==0&&this.hours==0&&this.minutes==0&&this.seconds==0};h.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
var rm=function(a,b,c){typeof a==="number"?(this.date=xUc(a,b||0,c||1),yUc(this,c||1)):Oa(a)?(this.date=xUc(a.getFullYear(),a.getMonth(),a.getDate()),yUc(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),yUc(this,a))},xUc=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};h=rm.prototype;h.firstDayOfWeek_=OF.FIRSTDAYOFWEEK;
h.firstWeekCutOffDay_=OF.FIRSTWEEKCUTOFFDAY;h.clone=function(){var a=new rm(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};h.getFullYear=function(){return this.date.getFullYear()};h.getYear=function(){return this.getFullYear()};h.getMonth=function(){return this.date.getMonth()};h.getDate=function(){return this.date.getDate()};h.getTime=function(){return this.date.getTime()};h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};h.getUTCMonth=function(){return this.date.getUTCMonth()};h.getUTCDate=function(){return this.date.getUTCDate()};h.getUTCDay=function(){return this.date.getDay()};h.getUTCHours=function(){return this.date.getUTCHours()};h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};var zUc=function(a){return vUc(a.getFullYear(),a.getMonth())};h=rm.prototype;h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};h.setFullYear=function(a){this.date.setFullYear(a)};h.setYear=function(a){this.setFullYear(a)};h.setMonth=function(a){this.date.setMonth(a)};h.setDate=function(a){this.date.setDate(a)};h.setTime=function(a){this.date.setTime(a)};h.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};h.setUTCMonth=function(a){this.date.setUTCMonth(a)};h.setUTCDate=function(a){this.date.setUTCDate(a)};
h.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(vUc(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()),yUc(this,a.getDate()))};
h.toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+KB(Math.abs(b),c?6:4),KB(this.getMonth()+1,2),KB(this.getDate(),2)].join(a?"-":"")};h.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};h.toString=function(){return this.toIsoString()};var yUc=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};rm.prototype.valueOf=function(){return this.date.valueOf()};
var bo=function(a,b,c,d,e,f,g){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a&&a.getTime?a.getTime():Date.now())};rw(bo,rm);h=bo.prototype;h.getHours=function(){return this.date.getHours()};h.getMinutes=function(){return this.date.getMinutes()};h.getSeconds=function(){return this.date.getSeconds()};h.getMilliseconds=function(){return this.date.getMilliseconds()};h.getUTCDay=function(){return this.date.getUTCDay()};h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getUTCSeconds=function(){return this.date.getUTCSeconds()};h.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};h.setHours=function(a){this.date.setHours(a)};h.setMinutes=function(a){this.date.setMinutes(a)};h.setSeconds=function(a){this.date.setSeconds(a)};h.setMilliseconds=function(a){this.date.setMilliseconds(a)};h.setUTCHours=function(a){this.date.setUTCHours(a)};h.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
h.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};h.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};h.add=function(a){rm.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
h.toIsoString=function(a){var b=rm.prototype.toIsoString.call(this,a);return a?b+"T"+KB(this.getHours(),2)+":"+KB(this.getMinutes(),2)+":"+KB(this.getSeconds(),2):b+"T"+KB(this.getHours(),2)+KB(this.getMinutes(),2)+KB(this.getSeconds(),2)};h.equals=function(a){return this.getTime()==a.getTime()};h.toString=function(){return this.toIsoString()};h.clone=function(){var a=new bo(this.date),b=this.getFirstDayOfWeek();a.firstDayOfWeek_=b;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var nl=function(a){this.patternParts_=[];this.dateTimeSymbols_=OF;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},AUc=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],BUc=function(a){return a.getHours?a.getHours():0};
nl.prototype.applyPattern_=function(a){for(CUc&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<AUc.length;++c){var d=a.match(AUc[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("lc`"+a);}};
nl.prototype.format=function(a,b){if(!a)throw Error("mc");var c=b?(a.getTimezoneOffset()-Rk(b,a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-a.getTimezoneOffset())*6E4),e=new Date(a.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var g=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(DUc(this,g,a,d,e,b)):c.push(g)}return c.join("")};
nl.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 QF=function(a,b){return H7a(b,a.dateTimeSymbols_)},CUc=!1,H7a=function(a,b){a=String(a);b=b||OF;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("")},FUc=function(a,b,c,d){c=c.getFullYear();c<=0&&d&&(c=1-c);return QF(a,EUc(c,b))},EUc=function(a,b){b==2&&(a%=100);a<0&&b++;return KB(a,b)},RF=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("nc");},GUc=function(a,
b){RF(b);b=BUc(b);return a.dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},DUc=function(a,b,c,d,e,f){var g=b.length;switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,g>=4?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];case "y":return FUc(a,g,d,!0);case "Y":return c=d.getFullYear(),e=d.getMonth(),c=wUc(c,e,d.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),g==2&&(c%=100),QF(a,EUc(c,g));case "u":return FUc(a,g,d,!1);case "M":a:switch(c=
d.getMonth(),g){case 5:g=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:g=a.dateTimeSymbols_.MONTHS[c];break a;case 3:g=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:g=QF(a,KB(c+1,g))}return g;case "k":return RF(e),c=BUc(e)||24,QF(a,KB(c,g));case "S":return QF(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,g)).slice(2)+(g>3?KB(0,g-3):""));case "E":return c=d.getDay(),g>=4?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return GUc(a,e);case "b":return GUc(a,e);case "B":return GUc(a,
e);case "h":return RF(e),c=BUc(e)%12||12,QF(a,KB(c,g));case "K":return RF(e),c=BUc(e)%12,QF(a,KB(c,g));case "H":return RF(e),c=BUc(e),QF(a,KB(c,g));case "c":a:switch(c=d.getDay(),g){case 5:g=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:g=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:g=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:g=QF(a,KB(c,1))}return g;case "L":a:switch(c=d.getMonth(),g){case 5:g=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:g=
a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:g=a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:g=QF(a,KB(c+1,g))}return g;case "Q":return c=Math.floor(d.getMonth()/3),g<4?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return QF(a,KB(d.getDate(),g));case "m":return RF(e),QF(a,KB(e.getMinutes?e.getMinutes():0,g));case "s":return RF(e),QF(a,KB(e.getSeconds(),g));case "v":return(f||Fk(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||Fk(c.getTimezoneOffset()),
g<=2?a.timeZoneId_:qUc(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=wUc(c,d,e.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),QF(a,KB(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,
g));case "z":return a=f||Fk(c.getTimezoneOffset()),g<4?a.tzNames_[qUc(a,c)>0?2:0]:a.tzNames_[qUc(a,c)>0?3:1];case "Z":return d=f||Fk(c.getTimezoneOffset()),g<4?(g=-Rk(d,c),a=[g<0?"-":"+"],g=Math.abs(g),a.push(KB(Math.floor(g/60)%100,2),KB(g%60,2)),g=a.join("")):g=QF(a,pUc(Rk(d,c))),g;default:return""}};var HUc={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"}}},IUc=HUc;IUc=HUc;var JUc={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 KUc={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"},Mk=KUc;Mk=KUc;var SF=function(a){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.showTrailingZeros_=this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=Mk.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)},IAa=function(a,b){if(b>308)throw Error("qc`"+b);a.maximumFractionDigits_=b},KAa=function(a,b){if(a.minimumFractionDigits_>0&&b>=0)throw Error("pc");a.significantDigits_=b};
SF.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=LUc(this,a,b);for(var c=b[0],d=-1,e=0,f=0,g=0,k=-1,l=a.length,r=!0;b[0]<l&&r;b[0]++)switch(a.charAt(b[0])){case "#":f>0?g++:e++;k>=0&&d<0&&k++;break;case "0":if(g>0)throw Error("xc`"+a);f++;k>=0&&d<0&&k++;break;case ",":k>0&&this.groupingArray_.push(k);k=0;break;case ".":if(d>=0)throw Error("yc`"+a);d=e+f+g;break;case "E":if(this.useExponentialNotation_)throw Error("zc`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<l&&a.charAt(b[0]+1)=="+"&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<l&&a.charAt(b[0]+1)=="0";)b[0]++,this.minExponentDigits_++;if(e+f<1||this.minExponentDigits_<1)throw Error("Ac`"+a);r=!1;break;default:b[0]--,r=!1}f==0&&e>0&&d>=0&&(f=d,f==0&&f++,g=e-f,e=f-1,f=1);if(d<0&&g>0||d>=0&&(d<e||d>e+f)||k==0)throw Error("Bc`"+a);g=e+f+g;this.maximumFractionDigits_=d>=0?g-d:0;d>=0&&(this.minimumFractionDigits_=e+f-d,this.minimumFractionDigits_<0&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(d>=0?d:g)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,this.maximumFractionDigits_==0&&this.minimumIntegerDigits_==0&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=d==0||d==g;c=b[0]-c;this.positiveSuffix_=LUc(this,a,b);b[0]<a.length&&a.charAt(b[0])==";"?(b[0]++,this.multiplier_!=1&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=LUc(this,a,b),b[0]+=c,
this.negativeSuffix_=LUc(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
SF.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(Mk.DECIMAL_PATTERN);break;case 2:this.applyPattern_(Mk.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(Mk.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=Mk.CURRENCY_PATTERN;var c=["0"],d=JUc[Mk.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:MUc(this,1);break;case 6:MUc(this,2);break;default:throw Error("rc");
}};var MUc=function(a,b){a.compactStyle_=b;a.applyPattern_(Mk.DECIMAL_PATTERN);a.minimumFractionDigits_=0;IAa(a,2);KAa(a,2)};
SF.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("sc");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(Mk.INFINITY,b[0])==b[0]){b[0]+=Mk.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,g=!1,k=!1,l=-1,r=1,w=Mk.DECIMAL_SEP,x=Mk.GROUP_SEP,C=Mk.EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("tc");x=x.replace(/\u202f/g,"\u00a0");for(var H="";b[0]<e.length;b[0]++){var J=e.charAt(b[0]),O=NUc(J);if(O>=0&&O<=9)H+=O,k=!0;else if(J==w.charAt(0)){if(f||g)break;H+=".";f=!0}else if(J==x.charAt(0)&&("\u00a0"!=x.charAt(0)||b[0]+1<e.length&&NUc(e.charAt(b[0]+1))>=0)){if(f||g)break}else if(J==C.charAt(0)){if(g)break;H+="E";g=!0;l=b[0]}else if(J=="+"||J=="-"){if(k&&l!=b[0]-1)break;H+=
J}else if(this.multiplier_==1&&J==Mk.PERCENT.charAt(0)){if(r!=1)break;r=100;if(k){b[0]++;break}}else if(this.multiplier_==1&&J==Mk.PERMILL.charAt(0)){if(r!=1)break;r=1E3;if(k){b[0]++;break}}else break}this.multiplier_!=1&&(r=this.multiplier_);e=parseFloat(H)/r}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?-e:e};
SF.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("uc");if(isNaN(a))return Mk.NAN;var b=[];var c=a;if(this.compactStyle_==0)c=OUc;else{c=Math.abs(c);var d=PUc(this,c<=1?0:QUc(c)).divisorBase;c=PUc(this,d+QUc(RUc(this,TF(c,-d)).intValue))}a=TF(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)SUc(this,e,this.minimumIntegerDigits_,b),TUc(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=TF(e,-f);var g=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(g=f%this.maximumIntegerDigits_,g<0&&(g=this.maximumIntegerDigits_+g),e=TF(e,g),f-=g,g=1):this.minimumIntegerDigits_<1?(f++,e=TF(e,-1)):(f-=this.minimumIntegerDigits_-1,e=TF(e,this.minimumIntegerDigits_-
1));SUc(this,e,g,b);TUc(this,f,b)}}else SUc(this,a,this.minimumIntegerDigits_,b);else b.push(Mk.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 RUc=function(a,b){var c=TF(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=UUc(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(TF(c,-a.maximumFractionDigits_));c=Math.floor(c-TF(d,a.maximumFractionDigits_));if(c<0||c>=TF(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},SUc=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("uc");d||(d=[]);b=RUc(a,b);var e=b.intValue,
f=b.fracValue,g=e==0?0:QUc(e)+1,k=a.minimumFractionDigits_>0||f>0||a.showTrailingZeros_&&g<a.significantDigits_;b=a.minimumFractionDigits_;k&&(b=a.showTrailingZeros_&&a.significantDigits_>0?a.significantDigits_-g:a.minimumFractionDigits_);var l="";for(g=e;g>1E20;)l="0"+l,g=Math.round(TF(g,-1));l=g+l;var r=Mk.DECIMAL_SEP;g=Mk.ZERO_DIGIT.codePointAt(0);var w=l.length,x=0;if(e>0||c>0){for(e=w;e<c;e++)d.push(String.fromCodePoint(g));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)x+=
a.groupingArray_[c];c=w-x;if(c>0){e=a.groupingArray_;x=w=0;for(var C,H=Mk.GROUP_SEP,J=l.length,O=0;O<J;O++)if(d.push(String.fromCodePoint(g+Number(l.charAt(O)))),J-O>1)if(C=e[x],O<c){var R=c-O;(C===1||C>0&&R%C===1)&&d.push(H)}else x<e.length&&(O===c?x+=1:C===O-c-w+1&&(d.push(H),w+=C,x+=1))}else{c=l;l=a.groupingArray_;e=Mk.GROUP_SEP;C=c.length;H=[];for(w=l.length-1;w>=0&&C>0;w--){x=l[w];for(J=0;J<x&&C-J-1>=0;J++)H.push(String.fromCodePoint(g+Number(c.charAt(C-J-1))));C-=x;C>0&&H.push(e)}d.push.apply(d,
H.reverse())}}else k||d.push(String.fromCodePoint(g));(a.decimalSeparatorAlwaysShown_||k)&&d.push(r);f=String(f);k=f.split("e+");k.length==2&&(f=String(UUc(parseFloat(k[0]),a.significantDigits_,1)),f=f.replace(".",""),f+=tHc("0",parseInt(k[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+tHc("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(g+Number(f.charAt(b))))},TUc=function(a,b,c){c.push(Mk.EXP_SYMBOL);
b<0?(b=-b,c.push(Mk.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(Mk.PLUS_SIGN);b=""+b;for(var d=Mk.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);a=d.codePointAt(0)-VUc;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},NUc=function(a){a=a.codePointAt(0);if(48<=a&&a<58)return a-48;var b=Mk.ZERO_DIGIT.codePointAt(0);return b<=a&&a<b+10?a-b:-1},VUc="0".codePointAt(0),LUc=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var g=b.charAt(c[0]);if(g=="'")c[0]+
1<f&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=g;else switch(g){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&b.charAt(c[0]+1)=="\u00a4"?(c[0]++,d+=Mk.DEF_CURRENCY_CODE):(g=Mk.DEF_CURRENCY_CODE,d+=g in JUc?JUc[g][1]:g);break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("vc");if(a.negativePercentSignExpected_&&a.multiplier_!=100)throw Error("wc");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=Mk.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&
a.multiplier_!=1)throw Error("vc");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("wc");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=Mk.PERMILL;break;default:d+=g}}return d},OUc={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},PUc=function(a,b){a=a.compactStyle_==1?IUc.COMPACT_DECIMAL_SHORT_PATTERN:IUc.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=IUc.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return OUc;b=Math.min(14,b);var c=a[TF(1,b)];for(--b;!c&&b>=
3;)c=a[TF(1,b)],b--;if(!c)return OUc;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]}:OUc:OUc},QUc=function(a){if(!isFinite(a))return a>0?a:0;for(var b=0;(a/=10)>=1;)b++;return b},TF=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))},WUc=function(a,b){return a&&isFinite(a)?TF(Math.round(TF(a,b)),-b):a},UUc=function(a,b,c){if(!a)return a;b=b-QUc(a)-1;return b<-c?WUc(a,-c):WUc(a,b)};var pBa=Math.sqrt(50),qBa=Math.sqrt(10),rBa=Math.sqrt(2),sAa={1:{key:"1",coef:1,base:1},"%":{key:"%",suffix:"%",coef:.01,base:4},ratio:{key:"ratio",coef:1,base:4},"10^2":{key:"10^2",suffix:"\u00b7100",coef:100,base:4},s:{key:"s",suffix:"s",coef:1,base:5},min:{key:"min",suffix:"min",coef:60,base:5},h:{key:"h",suffix:"h",coef:3600,base:5},d:{key:"d",suffix:"d",coef:86400,base:5},w:{key:"w",suffix:"w",coef:604800,base:5},By:{key:"By",suffix:"B",coef:1,base:2,scale:2},"\u00a2":{key:"\u00a2",suffix:"\u00a2",
coef:.01,base:3},$:{key:"$",prefix:"$",coef:1,base:3}},XUc={1:["count","load","Count","Cycles"],"%":["whole_percent"],"10^2.%":["percent"],s:["second","seconds"],min:["minute","minutes"],h:["hour","hours"],d:["day","days"],By:["byte","bytes","BY","by"],kBy:["KB","KBy","kB"],MBy:["MB"],GBy:["GB"],TBy:["TB"],KiBy:"kilobyte kilobytes kibibyte kibibytes Ki KIB".split(" "),MiBy:"megabyte megabytes mebibyte mebibytes Mi MIB".split(" "),GiBy:"gigabyte gigabytes gibibyte gibibytes Gi GIB".split(" "),TiBy:"terabyte terabytes tebibyte tebibytes Ti TIB".split(" "),
$:["us_dollar","USD"],"\u00a2":["us_cent"]},wAa=Object.keys(XUc).reduce(function(a,b){for(var c=m(XUc[b]),d=c.next();!d.done;d=c.next())a[d.value]=b;return a},{}),tAa={y:{coef:1E-24,scale:1},z:{coef:1E-21,scale:1},a:{coef:1E-18,scale:1},f:{coef:1E-15,scale:1},p:{coef:1E-12,scale:1},n:{coef:1E-9,scale:1},u:{coef:1E-6,scale:1},m:{coef:.001,scale:1},k:{coef:1E3,scale:1},K:{coef:1E3,scale:1},M:{coef:1E6,scale:1},G:{coef:1E9,scale:1},T:{coef:1E12,scale:1},P:{coef:1E15,scale:1},E:{coef:1E18,scale:1},Z:{coef:1E21,
scale:1},Y:{coef:1E24,scale:1},Ki:{coef:1024,scale:2},Mi:{coef:1048576,scale:2},Gi:{coef:1073741824,scale:2},Ti:{coef:1099511627776,scale:2},Pi:{coef:0x4000000000000,scale:2},Ei:{coef:0x1000000000000000,scale:2},Zi:{coef:1.1805916207174113E21,scale:2},Yi:{coef:1.2089258196146292E24,scale:2}},UF={},yAa=(UF["1,1"]="1kMGTPEZY".split(""),UF["1,2"]="By kBy MBy GBy TBy PBy EBy ZBy YBy".split(" "),UF["2,2"]="By KiBy MiBy GiBy TiBy PiBy EiBy ZiBy YiBy".split(" "),UF["1,3"]="\u00a2 $ k$ M$ G$ T$ P$ E$ Z$ Y$".split(" "),
UF["1,4"]=["%","ratio"],UF["1,5"]="ys zs as fs ps ns us ms s min h d w".split(" "),UF),YUc=Object.keys(tAa).map(oAa).join("|"),ZUc=Object.keys(sAa).map(oAa).join("|"),rAa=new RegExp("^("+YUc+")?("+ZUc+")?$"),VAa={neverScaleRates:!0,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)},JAa=new SF(1),LAa=new SF(2);KAa(LAa,3);var MAa=new SF("#,##0.00"),SAa=new nl(8);var $Uc={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"},VF=$Uc;VF=$Uc;var Qk={WEEKLY:6048E5,DAILY:864E5,QUARTER_DAY:216E5,TWO_HOURLY:72E5,HOURLY:36E5,HALF_HOURLY:18E5,TEN_MINUTES:6E5,FIVE_MINUTES:3E5,ONE_MINUTE:6E4,THIRTY_SECONDS:3E4,TEN_SECONDS:1E4,ONE_SECOND:1E3,HUNDRED_MILLIS:100,TEN_MILLIS:10,ONE_MILLI:1},gBa=Object.values(Qk),WF={},jBa=(WF[Qk.WEEKLY]=new nl(2),WF[Qk.DAILY]=new nl(VF.MONTH_DAY_ABBR),WF[Qk.QUARTER_DAY]=new nl(7),WF[Qk.TWO_HOURLY]=new nl(7),WF[Qk.HOURLY]=new nl(7),WF[Qk.HALF_HOURLY]=new nl(7),WF[Qk.TEN_MINUTES]=new nl(7),WF[Qk.FIVE_MINUTES]=new nl(7),
WF[Qk.ONE_MINUTE]=new nl(7),WF[Qk.THIRTY_SECONDS]=new nl(6),WF[Qk.TEN_SECONDS]=new nl(6),WF[Qk.ONE_SECOND]=new nl(6),WF[Qk.HUNDRED_MILLIS]=new nl("HH:mm:ss.SSS"),WF[Qk.TEN_MILLIS]=new nl("HH:mm:ss.SSS"),WF[Qk.ONE_MILLI]=new nl("HH:mm:ss.SSS"),WF);new nl(2);new nl(VF.MONTH_DAY_ABBR);new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm:ss");new nl("HH:mm:ss");new nl("HH:mm:ss");new nl("HH:mm:ss.SSS");new nl("HH:mm:ss.SSS");new nl("HH:mm:ss.SSS");
var XF={},iBa=(XF[Qk.DAILY]=new nl(VF.YEAR_FULL),XF[Qk.QUARTER_DAY]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.TWO_HOURLY]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.HOURLY]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.HALF_HOURLY]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.TEN_MINUTES]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.FIVE_MINUTES]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.ONE_MINUTE]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.THIRTY_SECONDS]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.TEN_SECONDS]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.ONE_SECOND]=new nl(VF.MONTH_DAY_ABBR),XF[Qk.HUNDRED_MILLIS]=
new nl("HH:mm:ss.SSS"),XF[Qk.TEN_MILLIS]=new nl("HH:mm:ss.SSS"),XF[Qk.ONE_MILLI]=new nl("HH:mm:ss.SSS"),XF);new nl("yyyy-MM-dd");new nl("MM-dd");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm");new nl("HH:mm:ss");new nl("HH:mm:ss");new nl("HH:mm:ss");new nl("HH:mm:ss.SSS");new nl("HH:mm:ss.SSS");new nl("HH:mm:ss.SSS");new nl(VF.YEAR_FULL);new nl("MM-dd");new nl("MM-dd");new nl("MM-dd");new nl("MM-dd");new nl("MM-dd");new nl("MM-dd");new nl("MM-dd");
new nl("MM-dd");new nl("MM-dd");new nl("MM-dd");new nl("HH:mm:ss.SSS");new nl("HH:mm:ss.SSS");new nl("HH:mm:ss.SSS");var aVc={format:Nk,ignoreFloatImprecision:!1};var YF=function(){this.valueStrategyRegistry=new Map},bVc=function(a,b,c){var d=a.valueStrategyRegistry.get(b.chartId);d?d.next(c):(d=new Nj(c),a.valueStrategyRegistry.set(b.chartId,d))};YF.prototype.getValueStrategy=function(a){var b=this.valueStrategyRegistry.get(a.chartId);b||(b=new Nj(aVc),this.valueStrategyRegistry.set(a.chartId,b));return b.pipe(pf())};var cVc=function(a,b,c){var d=a.valueStrategyRegistry.get(b);d&&(d.pipe(nf(1)).subscribe(function(e){bVc(a,{chartId:c},e)}),a.valueStrategyRegistry.delete(b))};
YF.\u0275fac=function(a){return new (a||YF)};YF.\u0275prov=Fc({token:YF,factory:YF.\u0275fac,providedIn:"root"});var dVc=new fd("TOOLTIP_POSITION"),eVc=new fd("TOOLTIP_VISIBLE_ON_OVERLAY_HOVER"),fVc=new fd("TOOLTIP_MOCK_REQUEST_ANIMATION_FRAME"),gVc=new fd("TOOLTIP_RENDER_DEBOUNCE_MS");var hVc=[{style:"alert",color:"var(--ac-sys-color-status-error, #d93025)",icon:"alert"},{style:"warning",color:"var(--ac-sys-color-status-warning, #e37400)",icon:"warning"},{style:"comment",color:"var(--ac-sys-color-status-info, #3367D6)",icon:"topic"},{style:"info",color:"var(--ac-sys-color-status-default, #757575)",icon:"info"},{style:"error",color:"var(--ac-sys-color-status-error, #d93025)",icon:"error"}],iVc=new Map([["warning","M 9.3731 4.5 C 10.5338 2.4688 13.4626 2.4688 14.6233 4.5 L 21.5073 16.5469 C 22.6591 18.5625 21.2038 21.0705 18.8822 21.0705 H 5.1142 C 2.7927 21.0705 1.3373 18.5625 2.4891 16.5469 L 9.3731 4.5 Z M 10.4866 13.5117 H 13.5101 V 7.4648 H 10.4866 V 13.5117 Z M 13.5101 18.047 H 10.4866 V 15.0235 H 13.5101 V 18.047 Z"],
["alert","M 14 19.3333 H 10 C 10 20.7999 10.9 21.9999 12 21.9999 C 13.1 21.9999 14 20.7999 14 19.3333 Z M 13.3269 3.4654 C 16.373 4.0806 18.6666 6.7724 18.6666 10 V 15.3277 L 19.9999 16.661 V 17.9999 H 4 V 16.661 L 5.3333 15.3277 V 10 C 5.3333 6.7724 7.6269 4.0806 10.673 3.4654 C 10.6688 3.4219 10.6666 3.3779 10.6666 3.3333 C 10.6666 2.5969 11.2636 2 12 2 C 12.7363 2 13.3333 2.5969 13.3333 3.3333 C 13.3333 3.3779 13.3311 3.4219 13.3269 3.4654 Z"],["topic","M 5.5715 4 C 4.1572 4 3.0128 5.1572 3.0128 6.5715 L 3 22 L 6.8572 18.1428 H 18.4286 C 19.8428 18.1428 21 16.9857 21 15.5714 V 6.5715 C 21 5.1572 19.8428 4 18.4286 4 H 5.5715 Z M 6.8572 9.1428 V 7.8572 H 17.1428 V 9.1428 H 6.8572 Z M 6.8572 11.7143 V 10.4286 H 17.1428 V 11.7143 H 6.8572 Z M 6.8572 14.2857 V 13 H 13.2857 V 14.2857 H 6.8572 Z"],
["info","M 12 21 C 16.9705 21 21 16.9705 21 12 C 21 7.0295 16.9705 3 12 3 C 7.0295 3 3 7.0295 3 12 C 3 16.9705 7.0295 21 12 21 Z M 13.2857 10.7143 V 17.1428 H 10.7143 V 10.7143 H 13.2857 Z M 13.2857 9.4285 V 6.8572 H 10.7143 V 9.4285 H 13.2857 Z"],["insights","M3 20q-.825 0-1.412-.587Q1 18.825 1 18q0-.825.588-1.413Q2.175 16 3 16h.263q.112 0 .237.05l4.55-4.55Q8 11.375 8 11.262V11q0-.825.588-1.413Q9.175 9 10 9t1.413.587Q12 10.175 12 11q0 .05-.05.5l2.55 2.55q.125-.05.238-.05h.524q.113 0 .238.05l3.55-3.55q-.05-.125-.05-.238V10q0-.825.587-1.413Q20.175 8 21 8q.825 0 1.413.587Q23 9.175 23 10q0 .825-.587 1.412Q21.825 12 21 12h-.262q-.113 0-.238-.05l-3.55 3.55q.05.125.05.238V16q0 .825-.587 1.413Q15.825 18 15 18q-.825 0-1.412-.587Q13 16.825 13 16v-.262q0-.113.05-.238l-2.55-2.55q-.125.05-.238.05H10q-.05 0-.5-.05L4.95 17.5q.05.125.05.238V18q0 .825-.588 1.413Q3.825 20 3 20ZM4 9.975l-.625-1.35L2.025 8l1.35-.625L4 6.025l.625 1.35L5.975 8l-1.35.625ZM15 9l-.95-2.05L12 6l2.05-.95L15 3l.95 2.05L18 6l-2.05.95Z"],
["error","M 12 3 C 7.0295 3 3 7.0295 3 12 C 3 16.9705 7.0295 21 12 21 C 16.9705 21 21 16.9705 21 12 C 21 7.0295 16.9705 3 12 3 Z M 10.7143 13.2857 V 6.8572 H 13.2857 V 13.2857 H 10.7143 Z M 10.7143 14.5715 V 17.1428 H 13.2857 V 14.5715 H 10.7143 Z"]]),jVc=["left","right"],kVc=["chart_group","bottom","ops_group"],lVc=new fd("AC_USE_MINIMUM_CANVASES");var xBa=Math.log10(1E12),yBa=Math.log10(1);var ZF=function(a,b){this.store=a;this.formatterService=b;this.factoryRegistry=new Map;this.xAxisTickStrategyRegistry=new Map;this.yAxisTickStrategyRegistry=new Map;this.categoricalAxisTickStrategyRegistry=new Map},mVc=function(a,b){var c=a.factoryRegistry.get(b);c||(c={selectors:new Map,selections:new Map},a.factoryRegistry.set(b,c));return c};
ZF.prototype.getSelector=function(a,b){var c=this,d=mVc(this,a),e=a.getKey(b),f=d.selectors.get(e);f||(f=cia(function(){var g=new sf;return{selectorObservable:a.getSelector(b,c),destroyed:g,unsubscribe:function(){d.selectors.delete(e);g.next();g.complete()}}},function(g){var k=new wf(1);g.selectorObservable.pipe(Bf(g.destroyed)).subscribe(function(l){k.next(l)});return k}).pipe(xf({refCount:!0,bufferSize:1})),d.selectors.set(e,f));return f};
ZF.prototype.getSelection=function(a,b){var c=this,d=mVc(this,a),e=a.getKey(b),f=d.selections.get(e);f||(f=this.getSelector(a,b).pipe(Af(function(g){return c.store.pipe(ak(g))})),d.selections.set(e,f));return f};
var nVc=function(a,b,c){b=b.chartId+","+b.yAxisId;var d=a.yAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Nj(c),a.yAxisTickStrategyRegistry.set(b,d))},oVc=function(a,b){b=b.chartId+","+b.yAxisId;var c=a.yAxisTickStrategyRegistry.get(b);c||(c=new Nj(zBa),a.yAxisTickStrategyRegistry.set(b,c));return c.pipe(pf())},pVc=function(a,b,c){b=Ek(b.chartGroupId,b.chartId,b.xAxisId);var d=a.xAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Nj(c),a.xAxisTickStrategyRegistry.set(b,d))},qVc=function(a,b){b=
Ek(b.chartGroupId,b.chartId,b.xAxisId);var c=a.xAxisTickStrategyRegistry.get(b);c||(c=new Nj(kBa),a.xAxisTickStrategyRegistry.set(b,c));return c.pipe(pf())},rVc=function(a,b,c,d){b=Ek(b.chartGroupId,b.chartId,b.xAxisId);var e=a.categoricalAxisTickStrategyRegistry.get(b);c={strategy:c,options:d};e?e.next(c):(e=new Nj(c),a.categoricalAxisTickStrategyRegistry.set(b,e))},sVc=function(a,b){b=Ek(b.chartGroupId,b.chartId,b.xAxisId);var c=a.categoricalAxisTickStrategyRegistry.get(b);c||(c=new Nj({strategy:mBa}),
a.categoricalAxisTickStrategyRegistry.set(b,c));return c.pipe(pf(function(d,e){if(d.strategy!==e.strategy)return!1;if(d.options===e.options)return!0;if(!d.options||!e.options)return!1;var f,g;return Gba((f=d.options.customOrder)!=null?f:[],(g=e.options.customOrder)!=null?g:[])}))};ZF.prototype.getValueStrategy=function(a){return this.formatterService.getValueStrategy(a)};
var kUc=function(a,b){var c=b.previousValue,d=b.currentValue;if((c==null?0:c.chartGroupId)&&(c==null?0:c.chartId)&&(d==null?0:d.chartGroupId)&&(d==null?0:d.chartId)&&(c.chartGroupId!==d.chartGroupId||c.chartId!==d.chartId)){b=m(kVc);for(var e=b.next(),f={};!e.done;f={xAxisId$jscomp$3:void 0},e=b.next())f.xAxisId$jscomp$3=e.value,(e=a.xAxisTickStrategyRegistry.get(Ek(c.chartGroupId,c.chartId,f.xAxisId$jscomp$3)))&&e.pipe(nf(1)).subscribe(function(g){return function(k){pVc(a,{chartGroupId:d.chartGroupId,
chartId:d.chartId,xAxisId:g.xAxisId$jscomp$3},k)}}(f));b=m(jVc);e=b.next();for(f={};!e.done;f={yAxisId$jscomp$3:void 0},e=b.next())f.yAxisId$jscomp$3=e.value,(e=a.yAxisTickStrategyRegistry.get(c.chartId+","+f.yAxisId$jscomp$3))&&e.pipe(nf(1)).subscribe(function(g){return function(k){nVc(a,{chartId:d.chartId,yAxisId:g.yAxisId$jscomp$3},k)}}(f));cVc(a.formatterService,c.chartId,d.chartId)}};ZF.\u0275fac=function(a){return new (a||ZF)($c(sF),$c(YF))};ZF.\u0275prov=Fc({token:ZF,factory:ZF.\u0275fac,providedIn:"root"});var $F={chartGroupId:"",axis:0,panning:!1,brushing:!1,xPos:null,xPosStart:null,yAxes:[],chartId:null};var tVc=Vj("[AC] Set project id for chart",Wj()),uVc=Vj("[AC] Set y axis orientation for chart",Wj());var vVc=Vj("[AC] Update chart dimensions",Wj()),aG=Vj("[AC] Set chart margin requirement",Wj()),wVc=Vj("[AC] Remove chart margin requirements",Wj()),xVc=Vj("[AC] Set margins strategy to use max chart group margins",Wj());var yVc=Vj("[AC] Set Y Axis requirement",Wj()),zVc=Vj("[AC] Set Y Axis label",Wj()),AVc=Vj("[AC] Remove Y Axis requirements by priority",Wj()),BVc=Vj("[AC] Remove Y Axis requirement by id",Wj()),CVc=Vj("[AC] Set for Y Axis",Wj());var DVc=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"},EVc=DVc;EVc=DVc;var FVc=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"},GVc=FVc;GVc=FVc;var Tl=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=Mk;var b=IUc;if(HVc!==a||IVc!==b)HVc=a,IVc=b,JVc=new SF(1);this.numberFormatter_=JVc},HVc=null,IVc=null,JVc=null,KVc=RegExp("'([{}#].*?)'","g"),LVc=RegExp("''","g");Tl.prototype.format=function(a){return this.format_(a,!1)};
Tl.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=MVc(this,this.pattern_);this.parsedPattern_=NVc(this,c);this.pattern_=null}if(!this.parsedPattern_||this.parsedPattern_.length==0)return"";this.literals_=Ma(this.initialLiterals_);c=[];OVc(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 OVc=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var g=b[f].value;var k=a,l=e,r=c[g];r===void 0?l.push("Undefined parameter - "+g):(k.literals_.push(r),l.push(k.buildPlaceholder_(k.literals_)));break;case 2:g=b[f].value;k=a;l=c;r=d;var w=e,x=g.argumentIndex;l[x]===void 0?w.push("Undefined parameter - "+x):(x=g[l[x]],x===void 0&&(x=g.other),OVc(k,x,l,r,w));break;case 0:g=b[f].value;PVc(a,g,c,GVc,d,e);break;case 1:g=b[f].value,PVc(a,g,c,
EVc,d,e)}},PVc=function(a,b,c,d,e,f){var g=b.argumentIndex,k=b.argumentOffset,l=+c[g];isNaN(l)?f.push("Undefined or invalid parameter - "+g):(k=l-k,g=b[c[g]],g===void 0&&(d=d(Math.abs(k)),g=b[d],g===void 0&&(g=b.other)),b=[],OVc(a,g,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},MVc=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);b=b.replace(LVc,function(){c.push("'");return d(c)});return b=b.replace(KVc,function(e,f){c.push(f);return d(c)})},
QVc=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var g=f.index;f[0]=="}"?(c.pop(),c.length==0&&(f={type:1},f.value=a.substring(b,g),d.push(f),b=g+1)):(c.length==0&&(b=a.substring(b,g),b!=""&&d.push({type:0,value:b}),b=g+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},RVc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,SVc=/^\s*(\w+)\s*,\s*selectordinal\s*,/,TVc=/^\s*(\w+)\s*,\s*select\s*,/,NVc=function(a,b){var c=[];b=QVc(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(RVc.test(f)?0:SVc.test(f)?1:TVc.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=UVc(a,b[d].value);break;case 0:e.type=0;e.value=VVc(a,b[d].value);break;case 1:e.type=1;e.value=WVc(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},UVc=function(a,b){var c="";b=b.replace(TVc,function(k,l){c=l;return""});var d={};d.argumentIndex=c;b=QVc(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=NVc(a,b[e].value));d[f.replace(/\s/g,"")]=g;e++}return d},VVc=function(a,b){var c="",d=0;b=b.replace(RVc,function(l,r,w){c=r;w&&(d=parseInt(w,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=QVc(b);for(var f=0;f<b.length;){var g=b[f].value;f++;var k=void 0;1==b[f].type&&(k=NVc(a,b[f].value));e[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},WVc=function(a,b){var c="";b=b.replace(SVc,function(k,l){c=l;return""});var d=
{};d.argumentIndex=c;d.argumentOffset=0;b=QVc(b);for(var e=0;e<b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=NVc(a,b[e].value));d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;e++}return d};Tl.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var KBa={get scaleFactor(){return window.devicePixelRatio||2}};var HBa=/var\((--[\w\-]+)(?:\s*,\s*(.+?))?\)$/,IBa=/^#([0-9a-f]{1,8})$/i,GBa=document.createElement("div");GBa.style.display="none";var XVc=kw(["pan-"]),bG=function(a){this.base=a;this.canvas=document.createElement("canvas");this.fastResizeBufferMap=new Map;this.lastDrawnDomain=null;this.drawListener=function(){};this.panInstrumentationAdded=!1;this.canvas.setAttribute("aria-hidden","true");this.canvas.style.position="absolute";var b=this.canvas.getContext("2d");if(!b)throw Error("Ec");this.ctx=b;a.appendChild(this.canvas)};bG.prototype.detach=function(){this.isAttached()&&this.base.removeChild(this.canvas)};
bG.prototype.reattach=function(){this.isAttached()||this.base.appendChild(this.canvas)};bG.prototype.isAttached=function(){return this.base.contains(this.canvas)};var cG=function(a,b){a.drawListener=b},YVc=function(a){a.drawListener=function(){}},dG=function(a){a.panInstrumentationAdded||(gsa([new fsa(XVc[0].toLowerCase())],a.base,"pan-async-rendered",""),a.panInstrumentationAdded=!0)};bG.prototype.destroy=function(){this.canvas&&(this.canvas.height=0,this.canvas.width=0)};
bG.prototype.pan=function(a){this.ctx.save();var b=KBa.scaleFactor,c=new Path2D;c.rect(a.clip.left,a.clip.top,a.clip.width,a.clip.height);this.ctx.clip(c);this.ctx.globalCompositeOperation="copy";this.ctx.translate(a.shift,0);this.ctx.drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,this.canvas.width/b,this.canvas.height/b);this.lastDrawnDomain={min:a.xAxisMin,max:a.xAxisMax};this.ctx.restore()};var eG=function(a,b,c){a.lastDrawnDomain={min:b,max:c}},fG=function(a,b){a.fastResizeBufferMap.delete(b)};
bG.prototype.resize=function(a,b,c,d){d=d===void 0?!1:d;var e=a.height,f=a.width;a=a.margins;var g=f,k=e;d&&(g=f-a.left-a.right,k=e-a.top-a.bottom);e=this.fastResizeBufferMap.get(b);e||(e=document.createElement("canvas"),f=e.getContext("2d"),bl(e,this.base,b.height,b.width,"transparent",1),b.width!==0&&b.height!==0&&f.drawImage(b,0,0,b.width,b.height,0,0,b.width,b.height),f=c.getTransform&&c.getTransform()||c.getTransform&&c.getTransform(),e={bufferCanvas:e,bufferScaleFactor:f&&(f.a||f.a)||1},this.fastResizeBufferMap.set(b,
e));f=e;e=f.bufferCanvas;f=f.bufferScaleFactor;if(d)b.style.left=a.left+"px",b.style.top=a.top+"px",bl(b,this.base,k,g),e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,0,0,g,k);else{d=g/(e.width/f);f=k/(e.height/f);b.style.left="0px";b.style.top="0px";bl(b,this.base,k,g);b=a.left*(1-d);var l=a.top*(1-f);g=g-b-a.right*(1-d);a=k-l-a.bottom*(1-f);e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,b|0,l|0,g|0,a|0)}};var gG=function(){bG.apply(this,arguments)};Y(gG,bG);
gG.prototype.draw=function(a){this.lastChanges=a;this.drawInternal(a)};gG.prototype.redraw=function(){this.lastChanges&&this.drawInternal(this.lastChanges)};var hG=function(){bG.apply(this,arguments)};Y(hG,bG);h=hG.prototype;h.draw=function(a,b){this.lastChanges=a;this.lastChangeContext=b;this.drawV1(b)};h.redraw=function(){this.lastChanges&&this.lastChangeContext&&this.drawV1(this.lastChangeContext)};h.onConfigChange=function(){};h.onResizeChange=function(){};h.onXAxisChange=function(){};
h.onCategoricalAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onColorScaleChange=function(){};h.onColorMapChange=function(){};
var ZVc=function(a,b){b=b.state;if(!b)return null;var c=b.resize,d=b.xAxis;if(!c||!d)return null;b=d.min;var e=d.max;if(d.lastUpdateCausedBy!==3||!b||!e||!a.lastDrawnDomain||e-b!==a.lastDrawnDomain.max-a.lastDrawnDomain.min)return null;var f=c.width-c.margins.left-c.margins.right;c=c.height-c.margins.top-c.margins.bottom;return(d=Xk(d,0,f))?{shift:d(a.lastDrawnDomain.min)-d(b),xAxisMin:b,xAxisMax:e,clip:{left:0,top:0,width:f,height:c}}:null},iG=function(a,b,c,d,e){(b=b.state)&&(b=b.resize)&&a.resize({height:b.height,
width:b.width,margins:b.margins},c,d,e===void 0?!1:e)},aWc=function(a,b){hG.call(this,a);var c=this;this.drawScheduler=new $Vc(this.canvas,b,function(d){c.drawInternal(d)})};Y(aWc,hG);aWc.prototype.drawV1=function(a){this.drawScheduler.schedule(a)};
var $Vc=function(a,b,c){var d=this;this.callback=c;this.isVisible=!1;this.contextForScheduledCallback=this.contextForWhenVisible=null;b.runOutsideAngular(function(){(new IntersectionObserver(function(e){var f=e[0];e=m(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.time>f.time&&(f=g);d.isVisible=f.isIntersecting;d.isVisible&&d.contextForWhenVisible!==null&&(d.schedule(d.contextForWhenVisible),d.contextForWhenVisible=null)},{rootMargin:"50% 0px 50% 0px"})).observe(a)})};
$Vc.prototype.schedule=function(a){var b=this;this.contextForScheduledCallback!==null?this.contextForScheduledCallback=a:this.isVisible?(this.contextForScheduledCallback=a,queueMicrotask(function(){b.contextForScheduledCallback===null?console.error("tried to run a scheduled callback, but there was no context set"):(b.callback(b.contextForScheduledCallback),b.contextForScheduledCallback=null)})):this.contextForWhenVisible=a};var fl=Zj(pk,function(a){return a.brush}),bWc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(fl,function(c){return c.entities[b]}))}}),cWc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.brushing}))}}),dWc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.panning}))}}),eWc=new ik({getKey:ok,getSelector:function(a){var b=
a.chartGroupId;return ee(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPosStart}))}}),fWc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPos}))}}),gWc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(fl,function(c){var d;return(d=c.entities[b])==null?void 0:d.axis}))}});var hWc=Vj("[AC] Set Categorical Axis requirement",Wj()),iWc=Vj("[AC] Remove Categorical Axis requirement by id",Wj()),jWc=Vj("[AC] Set Categorical Axis gutter ratio",Wj());var kWc=Zj(pk,function(a){return a.categoricalAxis}),lWc=new ik({getKey:QBa,getSelector:function(a){return ee(Zj(kWc,function(b){var c;return(c=b.entities[QBa(a)])==null?void 0:c.requirements}))}}),mWc=new ik({getKey:QBa,getSelector:function(a){return ee(Zj(kWc,function(b){var c;return(c=b.entities[QBa(a)])==null?void 0:c.gutterRatio}))}}),nWc=new ik({getKey:RBa,getSelector:function(a,b){return le([sVc(b,a),b.getSelector(lWc,a)]).pipe(A(function(c){c=m(c);var d=c.next().value;var e=d.strategy;var f=
d.options;c=c.next().value;return Yj(function(g){return Xj(g,function(k,l){return k===l},PBa)})(c,function(g){if(g!==void 0&&g.length>0)return e(g,f!=null?f:{})})}))}}),oWc=new ik({getKey:RBa,getSelector:function(a,b){return le([b.getSelector(lWc,a),b.getSelector(nWc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return Zj(c,d,function(e,f){if(e!==void 0&&f!==void 0)return Object.assign({},a,{requirements:e},f)})}))}});var pWc=Vj("[AC] Set layer color map",Wj());var qWc=Zj(pk,function(a){return a.colorMap}),rWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(qWc,function(c){return c.entities[b]}))}});var sWc=Zj(pk,function(a){return a.colorScale}),tWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(sWc,function(c){return c.entities[b]}))}});var uWc=Vj("[AC] Set chart error for source",Wj()),vWc=Vj("[AC] Clear chart error for source",Wj()),wWc=Vj("[AC] Set non-blocking chart error for source",Wj()),xWc=Vj("[AC] Clear non-blocking chart error for source",Wj());var yWc=Zj(pk,function(a){return a.error}),zWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(yWc,function(c){return c.entities[b]}))}});var AWc=Vj("[AC] Set focus requirement",Wj()),BWc=Vj("[AC] Remove focus requirement",Wj());var CWc=Zj(pk,function(a){return a.lastInteraction}),DWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(CWc,function(c){return c.entities[b]}))}});var EWc=Vj("[AC] Set chart loading for source",Wj()),FWc=Vj("[AC] Clear chart loading for source",Wj());var GWc=Zj(pk,function(a){return a.loading}),HWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(GWc,function(c){return c.entities[b]}))}});var IWc=Zj(pk,function(a){return a.seriesSelection}),JWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(IWc,function(c){return c.entities[b]}))}});var KWc=Zj(pk,function(a){return a.chartSpec}),LWc=new ik({getKey:nk,getSelector:function(a){var b=a.chartId;return ee(Zj(KWc,function(c){return c.entities[b]}))}});var MWc=Vj("[AC] Set X Axis requirement",Wj()),NWc=Vj("[AC] Remove X Axis requirements by priority",Wj()),OWc=Vj("[AC] Remove X Axis requirement by id",Wj()),PWc=Vj("[AC] Set X axis relative-to",Wj()),QWc=Vj("[AC] Set X axis timezone offset",Wj()),RWc=Vj("[AC] Set X axis time zone ID",Wj());var SWc={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],min:null,max:null,unit:"ms_since_epoch",bucketWidth:void 0,ticks:[],scaleType:0,lastUpdateCausedBy:0};var jG=function(a){return Ek(a.chartGroupId,a.chartId,a.xAxisId)},kG=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Ek(b,c,a.xAxisId)},lG=Zj(pk,function(a){return a.xAxis}),TWc=new ik({getKey:jG,getSelector:function(a){return ee(Zj(lG,function(b){var c;return(c=b.entities[jG(a)])==null?void 0:c.requirements}))}}),UWc=new ik({getKey:jG,getSelector:function(a){return ee(Zj(lG,function(b){var c;return(c=b.entities[jG(a)])==null?void 0:c.lastUpdateCausedBy}))}}),
VWc=new ik({getKey:jG,getSelector:function(a){return ee(Zj(lG,function(b){var c;return(c=b.entities[jG(a)])==null?void 0:c.timezoneOffset}))}}),WWc=new ik({getKey:jG,getSelector:function(a){return ee(Zj(lG,function(b){var c;return(c=b.entities[jG(a)])==null?void 0:c.timeZoneId}))}}),XWc=kk(kG,function(a,b){return Gk(a,b)},VWc,WWc),YWc=new ik({getKey:jG,getSelector:function(a){return ee(Zj(lG,function(b){var c;return(c=b.entities[jG(a)])==null?void 0:c.relativeTo}))}}),mG=new ik({getKey:kG,getSelector:function(a,
b){return b.getSelection(YWc,a).pipe(Af(function(c){var d=a;(c==null?0:c.xAxisId)&&(c==null?0:c.shift)&&(d=Object.assign({},a,{xAxisId:c.xAxisId}));return le([qVc(b,d),b.getSelector(TWc,d),b.getSelector(UWc,d),b.getSelector(VWc,d),b.getSelector(WWc,d),b.getSelector(hTc,d)]).pipe(A(function(e){var f=m(e);var g=f.next().value;e=f.next().value;var k=f.next().value;var l=f.next().value;var r=f.next().value;f=f.next().value;return Yj(function(w){return Xj(w,function(x,C){return x===C},VBa)})(e,k,l,r,f,
function(w,x,C,H,J){if(w!==void 0&&x!==void 0)return g(w,{lastUpdateCausedBy:x,timezoneOffset:C,timeZoneId:H,axisWidth:J,shift:c==null?void 0:c.shift})})}))}))}}),ZWc=new ik({getKey:kG,getSelector:function(a,b){return le([b.getSelector(TWc,a),b.getSelector(UWc,a),b.getSelector(VWc,a),b.getSelector(WWc,a),b.getSelector(YWc,a),b.getSelector(mG,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;var k=d.next().value;d=d.next().value;return Zj(c,
e,f,g,k,d,function(l,r,w,x,C,H){if(l!==void 0&&r!==void 0&&H!==void 0)return Object.assign({},a,{requirements:l,lastUpdateCausedBy:r,timezoneOffset:w,timeZoneId:x,relativeTo:C},H)})}))}}),$Wc=new ik({getKey:kG,getSelector:function(a,b){return b.getSelector(mG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.min})}))}}),aXc=new ik({getKey:kG,getSelector:function(a,b){return b.getSelector(mG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.max})}))}}),bXc=new ik({getKey:kG,
getSelector:function(a,b){return b.getSelector(mG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.tickIncrement})}))}}),cXc=new ik({getKey:kG,getSelector:function(a,b){return b.getSelector(mG,a).pipe(A(function(c){return Zj(c,function(d){if(d!==void 0)return d.unit})}))}}),dXc=new ik({getKey:kG,getSelector:function(a,b){return b.getSelector(mG,a).pipe(A(function(c){return Yj(function(d){return Xj(d,function(e,f){return e===f},function(e,f){return Array.isArray(e)&&Array.isArray(f)?
mAa(e,f):e===f})})(c,function(d){if(d!==void 0)return d.ticks})}))}}),nG=new ik({getKey:kG,getSelector:function(a,b){return le([b.getSelector($Wc,a),b.getSelector(aXc,a),b.getSelector(cXc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return Zj(c,e,d,function(f,g,k){if(f!=null&&g!=null&&k!==void 0)return{min:f,max:g,unit:k}})}))}});var eXc=Zj(pk,function(a){return a.chart}),oG=new ik({getKey:function(a){return a.chartId},getSelector:function(a){var b=a.chartId;return ee(Zj(eXc,function(c){var d;return(d=c.entities[b])==null?void 0:d.yAxisOrientation}))}});var fAa={chartId:"",yAxisId:"right",label:"",requirements:[],min:0,max:1,unit:"count",ticks:[],scaleType:0,lastUpdateCausedBy:0,position:"right"};var pG=function(a){return a.chartId+","+a.yAxisId},fXc=Zj(pk,function(a){return a.yAxis}),gXc=new ik({getKey:pG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ee(Zj(fXc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.label}))}}),hXc=new ik({getKey:pG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ee(Zj(fXc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.requirements}))}}),iXc=new ik({getKey:pG,getSelector:function(a){var b=a.chartId;var c=
a.yAxisId;return ee(Zj(fXc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.lastUpdateCausedBy}))}}),jXc=new ik({getKey:pG,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return ee(Zj(fXc,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.position}))}}),kXc=new ik({getKey:pG,getSelector:function(a,b){return le([le([oVc(b,a),b.getValueStrategy(a),b.getSelector(hXc,a),b.getSelector(iXc,a),b.getSelector(gTc,a),b.getSelector(hTc,a)]),b.getSelector(oG,a),b.getSelector(jXc,
a)]).pipe(A(function(c){var d=m(c);var e=m(d.next().value);var f=e.next().value;var g=e.next().value;c=e.next().value;var k=e.next().value;var l=e.next().value;e=e.next().value;var r=d.next().value;d=d.next().value;return Yj(function(w){return Xj(w,function(x,C){return x===C},WBa)})(c,k,l,e,r,d,function(w,x,C,H,J,O){if(w!==void 0&&x!==void 0&&C!==void 0&&H!==void 0)return f(w,{lastUpdateCausedBy:x,axisLength:J==="vertical"?C:H,valueFormatter:function(R,V,ca,oa){var ua,ka;return(ka=(ua=g.formatShort)==
null?void 0:ua.call(g,R,V,ca,Object.assign({},oa,{yAxisPosition:O})))!=null?ka:g.format(R,V,ca,Object.assign({},oa,{yAxisPosition:O}))}})})}))}}),qG=new ik({getKey:pG,getSelector:function(a,b){return le([b.getSelector(gXc,a),b.getSelector(hXc,a),b.getSelector(iXc,a),b.getSelector(jXc,a),b.getSelector(kXc,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;d=d.next().value;return Zj(c,e,f,g,d,function(k,l,r,w,x){if(l!==void 0&&r!==void 0&&
w!==void 0&&x!==void 0)return Object.assign({},a,{label:k!=null?k:"",requirements:l,lastUpdateCausedBy:r,position:w},x)})}))}});var rG=function(){};rG.\u0275fac=function(a){return new (a||rG)};rG.\u0275prov=Fc({token:rG,factory:rG.\u0275fac});var lXc=0,sG=function(a,b,c,d){zF.call(this,c);var e=this;this.el=a;this.chart=b;this.deprecateOmnibusStateObservable=d;this.destroyed=new sf;this.logger=null;this.views=[];this.layerType=null;this.layerId=this.objectiveLayerId="ac-composable-layer-"+lXc++;this.xAxisId="chart_group";this.yAxisId="right";this.chartId=this.chartGroupId="default";this.layerScopeSubject=new wf(1);this.dataObservableSwitcher=new Nj(ee({previousValue:null,currentValue:null}));this.dataObservableInternal=this.dataObservableSwitcher.pipe(Af(function(f){return f}));
this.configObservableSwitcher=new Nj(ee({previousValue:null,currentValue:null}));this.configObservableInternal=this.configObservableSwitcher.pipe(Af(function(f){return f}));this.context={scope:{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,yAxisId:this.yAxisId,layerId:this.layerId},data:null,state:null,config:null};this.redrawableViews=this.views;b.scopeObservable.pipe(Bf(this.destroyed)).subscribe(function(f){e.chartId=f.chartId;e.chartGroupId=f.chartGroupId});this.scopeObservable=
le([b.scopeObservable,this.layerScopeSubject]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;return Object.assign({},f,g)}));this.defaultStateSelectionObservables=d?{brush:ee(void 0),colorMap:ee(void 0),colorScale:ee(void 0),error:ee(void 0),focus:ee(void 0),loading:ee(void 0),resize:ee(void 0),seriesSelection:ee(void 0),spec:ee(void 0),xAxisPin:ee(void 0),timeSeries:ee(void 0),xAxis:ee(void 0),yAxis:ee(void 0),categoricalAxis:ee(void 0),lastInteraction:ee(void 0)}:{brush:this.selectorFactoryToObservable(bWc),
colorMap:this.selectorFactoryToObservable(rWc),colorScale:this.selectorFactoryToObservable(tWc),error:this.selectorFactoryToObservable(zWc),focus:this.selectorFactoryToObservable(dTc),loading:this.selectorFactoryToObservable(HWc),resize:this.selectorFactoryToObservable(fTc),seriesSelection:this.selectorFactoryToObservable(JWc),spec:this.selectorFactoryToObservable(LWc),xAxisPin:this.selectorFactoryToObservable(fUc),timeSeries:this.selectorFactoryToObservable(eUc),xAxis:this.selectorFactoryToObservable(ZWc),
yAxis:this.selectorFactoryToObservable(qG),categoricalAxis:this.selectorFactoryToObservable(oWc),lastInteraction:this.selectorFactoryToObservable(DWc)};this.latestObservable=le([this.scopeObservable,this.dataObservable,this.stateObservable,this.configObservable]);this.latestObservable.pipe(Bf(this.destroyed)).subscribe(function(f){var g=m(f);f=g.next().value;var k=g.next().value;var l=g.next().value;g=g.next().value;e.context.scope=f;e.context.data=k.currentValue;e.context.state=l.currentValue;e.context.config=
g.currentValue});(a=p(rG,{optional:!0}))&&a.redrawTrigger$.pipe(Bf(this.destroyed)).subscribe(function(){for(var f=m(e.redrawableViews),g=f.next();!g.done;g=f.next())g.value.redraw()})};Y(sG,zF);var tG=function(a,b){a=a.chart.getBoundingClientRect();return{x:b.clientX-a.left,y:b.clientY-a.top}};h=sG.prototype;
h.setup=function(a){var b=this,c=a.dataObservable,d=a.configObservable;c&&(this.dataObservable=c.pipe(zf(null),vf(),A(gk)));d&&(this.configObservable=d.pipe(zf(null),vf(),A(gk)));this.scopeObservable.pipe(Bf(this.destroyed),zf(null),vf(),A(gk)).subscribe(function(e){var f=e.previousValue;e=e.currentValue;if((f||e)&&b.layerType!=null){var g=[],k=e!=null&&f!=null&&(e.chartId!==f.chartId||e.chartGroupId!==f.chartGroupId),l=e&&(f==null||k),r=f&&(e==null||k);!k&&e!=null&&f!=null&&e.layerId!==f.layerId&&
e&&f&&g.push(yF({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f.layerId,currentLayerId:e.layerId}));r&&f&&g.push(bTc({layerType:b.layerType,layerId:f.layerId,chartId:f.chartId,chartGroupId:f.chartGroupId}));l&&e&&g.push(aTc({layerType:b.layerType,layerId:e.layerId,chartId:e.chartId,chartGroupId:e.chartGroupId}));MF(b.chart,g)}});this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),zF.prototype.setup.call(this,
{stateSelectionObservables:a}),this.dataObservable.pipe(Bf(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,context:b.context,componentHandlerUsingContext:jl(function(f,g){return b.onDataChange(f,g)},b.destroyed),viewHandlerUsingContext:jl(function(f,g){for(var k=m(b.views),l=k.next();!l.done;l=k.next())l.value.draw(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-data",scope:b.context.scope})}),this.configObservable.pipe(Bf(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,
context:b.context,componentHandlerUsingContext:jl(function(f,g){return b.onConfigChange(f,g)},b.destroyed),viewHandlerUsingContext:jl(function(f,g){for(var k=m(b.views),l=k.next();!l.done;l=k.next())l.value.onConfigChange(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-config",scope:b.context.scope})}),this.scopeObservable.pipe(Bf(this.destroyed),zf(null),vf(),A(gk),Ef(this.dataObservable,this.stateObservable,this.configObservable)).subscribe(function(e){var f=m(e);e=f.next().value;f.next();
f.next();f.next();if(e.currentValue)b.onScopeChange(e)}),(this.onResizeChange!==sG.prototype.onResizeChange||this.views.some(function(e){return e.onResizeChange!==hG.prototype.onResizeChange}))&&this.setupStateChangeHandler(a.resize,function(e,f){e=hk(e,function(g){return g.resize});return b.onResizeChange(e,f)},function(e,f){e=hk(e,function(l){return l.resize});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onResizeChange(e,f)},"resize"),(this.onXAxisChange!==sG.prototype.onXAxisChange||
this.views.some(function(e){return e.onXAxisChange!==hG.prototype.onXAxisChange}))&&this.setupStateChangeHandler(a.xAxis,function(e,f){e=hk(e,function(g){return g.xAxis});return b.onXAxisChange(e,f)},function(e,f){e=hk(e,function(l){return l.xAxis});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisChange(e,f)},"xAxis"),(this.onCategoricalAxisChange!==sG.prototype.onCategoricalAxisChange||this.views.some(function(e){return e.onCategoricalAxisChange!==hG.prototype.onCategoricalAxisChange}))&&
this.setupStateChangeHandler(a.categoricalAxis,function(e,f){e=hk(e,function(g){return g.categoricalAxis});return b.onCategoricalAxisChange(e,f)},function(e,f){e=hk(e,function(l){return l.categoricalAxis});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onCategoricalAxisChange(e,f)},"categoricalAxis"),(this.onYAxisChange!==sG.prototype.onYAxisChange||this.views.some(function(e){return e.onYAxisChange!==hG.prototype.onYAxisChange}))&&this.setupStateChangeHandler(a.yAxis,function(e,f){e=
hk(e,function(g){return g.yAxis});return b.onYAxisChange(e,f)},function(e,f){e=hk(e,function(l){return l.yAxis});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onYAxisChange(e,f)},"yAxis"),(this.onErrorChange!==sG.prototype.onErrorChange||this.views.some(function(e){return e.onErrorChange!==hG.prototype.onErrorChange}))&&this.setupStateChangeHandler(a.error,function(e,f){e=hk(e,function(g){return g.error});return b.onErrorChange(e,f)},function(e,f){e=hk(e,function(l){return l.error});
for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onErrorChange(e,f)},"error"),(this.onLoadingChange!==sG.prototype.onLoadingChange||this.views.some(function(e){return e.onLoadingChange!==hG.prototype.onLoadingChange}))&&this.setupStateChangeHandler(a.loading,function(e,f){e=hk(e,function(g){return g.loading});return b.onLoadingChange(e,f)},function(e,f){e=hk(e,function(l){return l.loading});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onLoadingChange(e,f)},"loading"),(this.onBrushChange!==
sG.prototype.onBrushChange||this.views.some(function(e){return e.onBrushChange!==hG.prototype.onBrushChange}))&&this.setupStateChangeHandler(a.brush,function(e,f){e=hk(e,function(g){return g.brush});return b.onBrushChange(e,f)},function(e,f){e=hk(e,function(l){return l.brush});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onBrushChange(e,f)},"brush"),(this.onSeriesSelectionChange!==sG.prototype.onSeriesSelectionChange||this.views.some(function(e){return e.onSeriesSelectionChange!==hG.prototype.onSeriesSelectionChange}))&&
this.setupStateChangeHandler(a.seriesSelection,function(e,f){e=hk(e,function(g){return g.seriesSelection});return b.onSeriesSelectionChange(e,f)},function(e,f){e=hk(e,function(l){return l.seriesSelection});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onSeriesSelectionChange(e,f)},"seriesSelection"),(this.onXAxisPinChange!==sG.prototype.onXAxisPinChange||this.views.some(function(e){return e.onXAxisPinChange!==hG.prototype.onXAxisPinChange}))&&this.setupStateChangeHandler(a.xAxisPin,function(e,
f){e=hk(e,function(g){return g.xAxisPin});return b.onXAxisPinChange(e,f)},function(e,f){e=hk(e,function(l){return l.xAxisPin});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisPinChange(e,f)},"xAxisPin"),(this.onTimeSeriesChange!==sG.prototype.onTimeSeriesChange||this.views.some(function(e){return e.onTimeSeriesChange!==hG.prototype.onTimeSeriesChange}))&&this.setupStateChangeHandler(a.timeSeries,function(e,f){e=hk(e,function(g){return g.timeSeries});return b.onTimeSeriesChange(e,
f)},function(e,f){e=hk(e,function(l){return l.timeSeries});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onTimeSeriesChange(e,f)},"timeSeries"),(this.onFocusChange!==sG.prototype.onFocusChange||this.views.some(function(e){return e.onFocusChange!==hG.prototype.onFocusChange}))&&this.setupStateChangeHandler(a.focus,function(e,f){e=hk(e,function(g){return g.focus});return b.onFocusChange(e,f)},function(e,f){e=hk(e,function(l){return l.focus});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onFocusChange(e,
f)},"focus"),(this.onColorScaleChange!==sG.prototype.onColorScaleChange||this.views.some(function(e){return e.onColorScaleChange!==hG.prototype.onColorScaleChange}))&&this.setupStateChangeHandler(a.colorScale,function(e,f){e=hk(e,function(g){return g.colorScale});return b.onColorScaleChange(e,f)},function(e,f){e=hk(e,function(l){return l.colorScale});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onColorScaleChange(e,f)},"colorScale"),(this.onColorMapChange!==sG.prototype.onColorMapChange||
this.views.some(function(e){return e.onColorMapChange!==hG.prototype.onColorMapChange}))&&this.setupStateChangeHandler(a.colorMap,function(e,f){e=hk(e,function(g){return g.colorMap});return b.onColorMapChange(e,f)},function(e,f){e=hk(e,function(l){return l.colorMap});for(var g=m(b.views),k=g.next();!k.done;k=g.next())k.value.onColorMapChange(e,f)},"colorMap"))};
h.setupStateChangeHandler=function(a,b,c,d){var e=this;if(this.setupCalled&&a){var f=null;a.pipe(Xza(this.stateObservable),Bf(this.destroyed)).subscribe(function(g){g=m(g).next().value;var k={previousValue:f,currentValue:g.currentValue};f=g.currentValue;e.chart.scheduleStateChangeHandler({changes:k,context:e.context,componentHandlerUsingContext:jl(b,e.destroyed),viewHandlerUsingContext:jl(c,e.destroyed),mergeKey:e.context.scope.layerId+"-"+d,scope:e.context.scope})})}};h.onDataChange=function(){};
h.onScopeChange=function(a){var b=a.previousValue;a=a.currentValue;var c=[];a&&(b==null?0:b.layerId)&&(b==null?void 0:b.layerId)!==(a==null?void 0:a.layerId)&&c.push(yF({chartGroupId:a.chartGroupId,chartId:a.chartId,previousLayerId:b==null?void 0:b.layerId,currentLayerId:a.layerId}));MF(this.chart,c)};h.onConfigChange=function(){};h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onCategoricalAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};
h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onColorScaleChange=function(){};h.onLastInteractionChange=function(){};h.onColorMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,data:this.context.data,state:this.context.state,config:this.context.config})};
h.onFocus=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(AWc({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.onBlur=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(BWc({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.ngOnInit=function(){this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};
h.ngOnChanges=function(a){("layerId"in a||"yAxisId"in a||"xAxisId"in a)&&this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};h.ngOnDestroy=function(){for(var a=this,b=m(this.views),c=b.next();!c.done;c=b.next())c=c.value,YVc(c),c.destroy();this.withLatest(function(d){MF(a.chart,[bTc(Object.assign({},d.scope,{layerType:a.layerType}))])});this.destroyed.next();this.destroyed.complete()};
var uG=function(a,b,c){c=c?a.objectiveLayerId+"-"+c:a.objectiveLayerId;return b?yVc(Object.assign({},b,{chartId:a.chartId,yAxisId:a.yAxisId,id:c})):BVc({chartId:a.chartId,yAxisId:a.yAxisId,id:c})},vG=function(a,b){var c=c===void 0?a.objectiveLayerId:c;return b?MWc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):OWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c,keepLastCause:!0})},mXc=function(a,b){var c=c===void 0?a.objectiveLayerId:
c;return b?hWc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):iWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})},wG=function(a,b,c){return b?EWc({chartId:a.chartId,sourceId:a.objectiveLayerId,loading:b,loadingDescription:c}):FWc({chartId:a.chartId,sourceId:a.objectiveLayerId})},xG=function(a,b,c){return b&&b.name==="NoDataError"&&c?uWc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):b?uWc({chartId:a.chartId,
layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:b}):c?uWc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):vWc({chartId:a.chartId,sourceId:a.objectiveLayerId})},yG=function(a,b,c,d){if(a.onDataChange){a=a.onDataChange(b,c,d);var e=d==null?void 0:d.colorMap;if(a){d=a.order;var f=a.colorMap,g=a.shapeMap;if(!e||Object.keys(f).some(function(k){return f[k]!==e.colorMap[k]})||Object.keys(g).some(function(k){return g[k]!==e.shapeMap[k]}))return pWc({chartId:b.chartId,
layerId:b.layerId,order:d,colorMap:f,shapeMap:g})}}return null};da.Object.defineProperties(sG.prototype,{dataObservable:{configurable:!0,enumerable:!0,set:function(a){this.dataObservableSwitcher.next(a)},get:function(){return this.dataObservableInternal}},configObservable:{configurable:!0,enumerable:!0,set:function(a){this.configObservableSwitcher.next(a)},get:function(){return this.configObservableInternal}}});sG.\u0275fac=function(){Ze()};
sG.\u0275dir=df({type:sG,inputs:{layerId:"layerId",xAxisId:"xAxisId",yAxisId:"yAxisId"},features:[Gf,bx]});var nXc=Vj("[AC] Start brushing on the x axis",Wj()),oXc=Vj("[AC] Stop brushing on the x axis",Wj()),pXc=Vj("[AC] Update brush position on the x axis",Wj()),qXc=Vj("[AC] Start panning on the x axis",Wj()),rXc=Vj("[AC] Stop panning on the x axis",Wj()),sXc=Vj("[AC] Start brushing on the y axis",Wj()),tXc=Vj("[AC] Stop brushing on the y axis",Wj()),uXc=Vj("[AC] Update brush position on the y axis",Wj());var zG=Vj("[AC] Set last interaction for chart X axis",Wj()),AG=Vj("[AC] Set last interaction for Y axis",Wj()),vXc=Vj("[AC] Set last interaction for categorical axis",Wj()),wXc=Vj("[AC] Set last interaction for gauge threshold",Wj());var BG=Vj("[AC] Sets x axis pin position",Wj()),CG=Vj("[AC] Sets whether x axis pin is locked",Wj()),DG=Vj("[AC] Sets whether x axis pin is tracking now",Wj());var xXc=new nl(VF.MONTH_DAY_ABBR),yXc=new nl(7),zXc=function(a,b){return yXc.format(a,b)},YBa=function(a,b){var c=xXc.format(a,b);a=zXc(a,b);return c+", "+a},EG={},XBa=(EG[Qk.WEEKLY]=YBa,EG[Qk.DAILY]=YBa,EG[Qk.QUARTER_DAY]=YBa,EG[Qk.TWO_HOURLY]=YBa,EG[Qk.HOURLY]=zXc,EG[Qk.HALF_HOURLY]=zXc,EG[Qk.TEN_MINUTES]=zXc,EG[Qk.FIVE_MINUTES]=zXc,EG);var AXc={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},BXc=[4,4],CXc=function(a){gG.call(this,a);this.canvas.className="overlay-z-index"};Y(CXc,gG);
CXc.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyLeft,d=b.bodyHeight,e=b.bodyWidth,f=b.chartHeight,g=b.chartWidth,k=b.brushing,l=b.brushStart,r=b.brushEnd;b=b.brushAxis;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,f,g);f=new Path2D;f.rect(c,a,e,d);this.ctx.clip(f);r&&b===0&&(l&&k&&(this.drawBrushSelection(l,r,a,d),this.drawBrushLine(l,a,d)),this.drawBrushLine(r,a,d))}}};
CXc.prototype.drawBrushLine=function(a,b,c){var d=d===void 0?AXc:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(BXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};CXc.prototype.drawBrushSelection=function(a,b,c,d){var e=e===void 0?AXc:e;this.ctx.save();$k(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};var DXc;
DXc={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var dCa=function(){this.rdtfSymbols_=DXc};dCa.prototype.format=function(a,b){b=EXc(this,b).LONG;if(b){var c=Math.abs(a);a=(new Tl("{N,plural,"+(a>0||a==0&&1/a==Infinity?b.F:b.P)+"}")).format({N:c})}else a="";return a};
var EXc=function(a,b){switch(b){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND}};var ZBa=[24192E5,25056E5,2592E6,26784E5],$Ba=[7776E6,78624E5,79488E5],bCa=[31536E6,316224E5],aCa=3/90,cCa=5/365;var FG={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",textAlign:"center",textBaseline:"top",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)",lineWidth:1,lineCap:"square"},FXc={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},GXc=[4,4],HXc={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},
IXc=Object.assign({},FG,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),JXc={globalAlpha:.2},KXc={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"};var LXc=function(){gG.apply(this,arguments);this.lastDrawnState=null};Y(LXc,gG);h=LXc.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c){var d=c.state;c=c.config;if(d&&c){var e=d.bodyTop,f=d.bodyRight,g=d.bodyLeft,k=d.chartWidth,l=d.ticks,r=d.axisTopEdge,w=d.timeZoneLabel,x=c.shift?eCa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,r+20,k);var C;if(!(c==null?0:(C=c.styles)==null?0:C.hideAxis)){C=FG;var H,J,O,R;C=Object.assign({},C,{fillStyle:(O=c==null?void 0:(H=c.styles)==null?void 0:H.textColor)!=null?O:C.fillStyle,
font:(R=c==null?void 0:(J=c.styles)==null?void 0:J.font)!=null?R:C.font});H=x||w;J=0;var V;H&&(c==null?void 0:(V=c.styles)==null?void 0:V.hideLeftLabel)!==!0&&(J=this.drawLeftLabel(r,g,H,C));V=this.drawAxisTickLabels(r,l,J,k,C);var ca;((ca=c.styles)==null?0:ca.drawGrid)&&this.drawAxisGridLines(r,e,V,FXc);this.drawAxisAndTickLines(r,g,f,V,c.styles,C);this.drawBrushInternal(a);if(a=a.currentValue)if(l=a.state)a=l.bodyHeight,ca=l.bodyWidth,c=l.bodyLeft,e=l.bodyTop,f=l.bodyRight,g=l.bodyBottom,r=l.bottomMarginHeight,
V=l.xAxisPinPosition,k=l.xAxisPinLocked,l=l.xAxisPinCanTrackNow,C=k?IXc:KXc,H=C.lineWidth===void 0?0:C.lineWidth,(new Path2D).rect(c-H,e,ca+H*2,a+r),V&&(l&&!k&&this.drawXAxisPinGradient(e,f,a),this.drawXAxisPinLine(V,e,g,C));a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.lastDrawnState=d}}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=m(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,q(cl([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([e,a],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawAxisAndTickLines=function(a,b,c,d,e,f){f=f===void 0?{}:f;this.ctx.save();$k(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&$k(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,q(cl([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=m(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,q(cl([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([c,a+5],f.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawAxisTickLabels=function(a,b,c,d,e){e=e===void 0?{}:e;var f=[];this.ctx.save();$k(this.ctx,e,this.base);b=m(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var l=this.ctx.measureText(k).width,r=g-l/2;l=g+l/2;r<0||r<c+6||l>d||(dl(this.ctx,k,g,a+8),c=l,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=dl(this.ctx,c,b,a+8);this.ctx.restore();return b+a};h.drawBrushInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyHeight,d=b.brushing,e=b.brushStart,f=b.brushEnd;b=b.brushAxis;f&&b===0&&(e&&d&&(this.drawBrushSelection(e,f,a,c),this.drawBrushLine(e,a,c)),this.drawBrushLine(f,a,c))}}};
h.drawBrushLine=function(a,b,c){var d=d===void 0?HXc:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(GXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b,c,d){var e=e===void 0?HXc:e;this.ctx.save();$k(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};
h.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(GXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,Zk("var(--ac-sys-color-extensions-pin-stop, #000)",this.base));b.addColorStop(.7,"hsla(0, 0%, 0%, 0.125)");b.addColorStop(.9,"hsla(0, 0%, 0%, 0.02)");b.addColorStop(.95,"hsla(0, 0%, 0%, 0.008)");b.addColorStop(1,"transparent");$k(this.ctx,Object.assign({},JXc,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var MXc=kk(lk,function(a,b){if(a&&a.min!==null&&a.max!==null&&a.unit==="ms_since_epoch")return a=b.tzNames_[qUc(b,new Date(a.min))>0?2:0],a!=null?a:void 0},mG,XWc),GG=kk(lk,function(a,b){if(a&&b){var c=a.bodyLeft,d=a.bodyRight;if(d>0&&c>0&&d>c){var e=b.min,f=b.max;return{domainMap:function(g){return Sk(e,f,c,d,g)},inverseDomainMap:function(g){return Sk(c,d,e,f,g)}}}}},mTc,nG),NXc=kk(lk,function(a,b){return a&&b===0||!1},dWc,gWc),OXc=kk(lk,function(a,b){if(a)return(b!=null?b:[]).map(function(c){return{label:c.label,
value:a.domainMap(c.value)}})},GG,dXc),PXc=kk(mk,function(a,b,c){return{position:a,locked:b!=null?b:!1,trackingNow:c!=null?c:!1}},gUc,hUc,iUc),QXc=kk(Eza,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},lTc,qTc),RXc=kk(lk,function(a,b){if(a!==void 0&&a!==null&&b!==null&&b!==void 0&&b>0)return Date.now()-b<=a},aXc,bXc),SXc=kk(lk,function(a,b,c,d,e,f){if(a&&a.bodyWidth>0&&a.bodyHeight>0){var g;return Object.assign({},a,{brushing:(g=c&&f===0)!=null?g:!1,brushStart:d!==
void 0&&d!==null&&b?b.domainMap(d):null,brushEnd:e!==void 0&&e!==null&&b?b.domainMap(e):null,brushAxis:f!=null?f:0})}},kk(nk,function(a,b,c,d,e,f){if(a!==void 0&&b!==void 0&&c!==void 0&&d!==void 0&&e!==void 0&&f!==void 0)return{bodyTop:a,bodyLeft:b,bodyWidth:c,bodyHeight:d,chartWidth:e,chartHeight:f}},iTc,jTc,hTc,gTc,nTc,oTc),GG,cWc,eWc,fWc,gWc),TXc=kk(lk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.bodyHeight>0)return Object.assign({},a,{bottomMarginHeight:Math.max(0,a.chartHeight-a.bodyBottom),xAxisPinPosition:c!==
void 0&&b?b.domainMap(c):null,xAxisPinLocked:d!=null?d:!1,xAxisPinCanTrackNow:e!=null?e:!1})},BF,GG,gUc,hUc,RXc),UXc=kk(mk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.chartHeight>0&&d!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,axisTopEdge:d,ticks:b!=null?b:[],timeZoneLabel:c,domainMaps:e}},BF,OXc,MXc,QXc,GG),VXc=kk(mk,function(a,b,c){if(a&&b&&c)return Object.assign({},a,b,c)},kk(mk,function(a,b,c,d,e){if(a&&a.bodyWidth>
0&&a.chartHeight>0&&d!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,chartHeight:a.chartHeight,bodyHeight:a.bodyHeight,bodyWidth:a.bodyWidth,bottomMarginHeight:Math.max(0,a.chartHeight-a.bodyBottom),axisTopEdge:d,ticks:b!=null?b:[],timeZoneLabel:c,domainMaps:e}},BF,OXc,MXc,QXc,GG),kk(lk,function(a,b,c,d,e){var f;return{brushing:(f=b&&e===0)!=null?f:!1,brushStart:c!==void 0&&c!==null&&a?a.domainMap(c):null,brushEnd:d!==void 0&&
d!==null&&a?a.domainMap(d):null,brushAxis:e!=null?e:0}},GG,cWc,eWc,fWc,gWc),kk(lk,function(a,b,c,d){return{xAxisPinPosition:b!==void 0&&a?a.domainMap(b):null,xAxisPinLocked:c!=null?c:!1,xAxisPinCanTrackNow:d!=null?d:!1}},GG,gUc,hUc,RXc)),WXc=kk(mk,function(a,b){if(a!==void 0&&b)return{xAxisPinPxPos:b.domainMap(a)}},gUc,GG),XXc=kk(mk,function(a,b,c,d,e,f){if(e.position!==void 0&&a&&a.max!==null&&d&&f!==void 0)return{xAxisPinPxPos:d.xAxisPinPxPos,xAxisPinPosition:e.trackingNow?a.max:e.position,axisTopEdge:f,
xAxisTickIncrement:b,xAxisUnit:a.unit,xAxisTimeZone:c,xAxisPinTrackingNow:e.trackingNow,xAxisPinLocked:e.locked}},nG,bXc,XWc,WXc,PXc,QXc),YXc=kk(mk,function(a,b){if(a)return{xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,xAxisTimeZone:b}},nG,XWc),ZXc=kk(mk,function(a,b,c){if(a.position!==void 0&&b&&b.unit==="ms_since_epoch")return{xAxisPinPosition:a.position,xAxisPinLocked:a.locked,xAxisPinTrackingNow:a.trackingNow,xAxisPinCanTrackNow:c!=null?c:!1,xAxisMin:b.min,xAxisMax:b.max}},PXc,nG,RXc),$Xc=kk(lk,
function(a,b,c,d,e){return{brushPanning:e!=null?e:!1,brushBrushing:b!=null?b:!1,brushAxis:d!=null?d:0,brushPositionStart:c!=null?c:null,xAxisUnit:a!=null?a:null}},cXc,cWc,eWc,gWc,dWc),aYc=kk(lk,function(a,b,c){return{xAxisMax:a!=null?a:null,xAxisPinCanTrackNow:b!=null?b:!1,xAxisUnit:c!=null?c:null}},aXc,RXc,cXc),bYc=kk(lk,function(a,b,c,d,e){var f;return{brushPanning:a!=null?a:!1,xAxisMax:b!=null?b:null,xAxisPinCanTrackNow:c!=null?c:!1,xAxisPinLocked:d.locked,xAxisPinPosition:(f=d.position)!=null?
f:null,xAxisPinTrackingNow:d.trackingNow,xAxisUnit:e!=null?e:null}},dWc,aXc,RXc,PXc,cXc),cYc=kk(lk,function(a,b,c,d,e){var f,g,k;return{brushAxis:a!=null?a:0,brushBrushing:b!=null?b:!1,brushPanning:c!=null?c:!1,brushPosition:d!=null?d:null,xAxisMax:(f=e==null?void 0:e.max)!=null?f:null,xAxisMin:(g=e==null?void 0:e.min)!=null?g:null,xAxisUnit:(k=e==null?void 0:e.unit)!=null?k:null}},gWc,cWc,dWc,fWc,nG);var dYc={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"},eYc=Object.assign({},dYc,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),fYc={globalAlpha:.2},gYc=function(a){gG.call(this,a);this.canvas.className="overlay-z-index"};Y(gYc,gG);
gYc.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyHeight;var c=b.bodyWidth,d=b.bodyLeft,e=b.bodyTop,f=b.bodyRight,g=b.bodyBottom,k=b.chartHeight,l=b.chartWidth,r=b.bottomMarginHeight,w=b.xAxisPinPosition,x=b.xAxisPinLocked;b=b.xAxisPinCanTrackNow;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,k,l);k=x?eYc:dYc;l=k.lineWidth===void 0?0:k.lineWidth;var C=new Path2D;C.rect(d-l,e,c+l*2,a+r);this.ctx.clip(C);w&&(b&&!x&&this.drawXAxisPinGradient(e,
f,a),this.drawXAxisPinLine(w,e,g,k))}}};gYc.prototype.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.setLineDash(BXc);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
gYc.prototype.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,Zk("var(--ac-sys-color-extensions-pin-stop, #000)",this.base));b.addColorStop(.7,"hsla(0, 0%, 0%, 0.125)");b.addColorStop(.9,"hsla(0, 0%, 0%, 0.02)");b.addColorStop(.95,"hsla(0, 0%, 0%, 0.008)");b.addColorStop(1,"transparent");$k(this.ctx,Object.assign({},fYc,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var hYc=function(){gG.apply(this,arguments);this.lastDrawnState=null};Y(hYc,gG);h=hYc.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c&&(a=c.state,c=c.config,a&&c)){var d=a.bodyTop,e=a.bodyRight,f=a.bodyLeft,g=a.chartWidth,k=a.ticks,l=a.axisTopEdge,r=a.timeZoneLabel,w=c.shift?eCa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,l+20,g);var x;if(!(c==null?0:(x=c.styles)==null?0:x.hideAxis)){x=FG;var C,H,J,O;x=Object.assign({},x,{fillStyle:(J=c==null?void 0:(C=c.styles)==null?void 0:C.textColor)!=null?J:x.fillStyle,
font:(O=c==null?void 0:(H=c.styles)==null?void 0:H.font)!=null?O:x.font});C=w||r;H=0;var R;C&&(c==null?void 0:(R=c.styles)==null?void 0:R.hideLeftLabel)!==!0&&(H=this.drawLeftLabel(l,f,C,x));R=this.drawAxisTickLabels(l,k,H,g,x);var V;((V=c.styles)==null?0:V.drawGrid)&&this.drawAxisGridLines(l,d,R,FXc);this.drawAxisAndTickLines(l,f,e,R,c.styles,x);V=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:V});this.lastDrawnState=a}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=m(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,q(cl([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([e,a],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawAxisAndTickLines=function(a,b,c,d,e,f){f=f===void 0?{}:f;this.ctx.save();$k(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&$k(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,q(cl([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=m(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,q(cl([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl([c,a+5],f.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawAxisTickLabels=function(a,b,c,d,e){e=e===void 0?{}:e;var f=[];this.ctx.save();$k(this.ctx,e,this.base);b=m(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var l=this.ctx.measureText(k).width,r=g-l/2;l=g+l/2;r<0||r<c+6||l>d||(dl(this.ctx,k,g,a+8),c=l,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=dl(this.ctx,c,b,a+8);this.ctx.restore();return b+a};var iYc=function(a){DC.call(this,a)};Y(iYc,DC);var ul=function(a){var b=this;this.lastAveEvent=this.tracker=null;this.interactionEventListener=function(){b.lastAveEvent=null};a&&(this.tracker=FMc(a))&&this.tracker.addInteractionEventListener(this.interactionEventListener)},tl=function(a,b,c,d,e){e=e===void 0?{}:e;!(a.tracker&&a.tracker.logSyntheticEvent&&d)||e.debounce&&a.lastAveEvent&&a.lastAveEvent.eventType===b&&a.lastAveEvent.visualElement===c&&a.lastAveEvent.el===d||(a.tracker.logSyntheticEvent(b,new iYc(c),d),a.lastAveEvent={eventType:b,
visualElement:c,el:d})};ul.prototype.ngOnDestroy=function(){this.tracker&&this.tracker.removeInteractionEventListener(this.interactionEventListener)};ul.ve={AccessibilityGrid:118923,AwesomeChartImage:68528,AwesomeChartLegendPane:68529,HovercardCloseButton:164075,HovercardPinToggle:164076,HovercardUnpinToggle:164077,HovercardZone:118924,LineDeselectToggle:68567,LineMultiSelectToggle:118925,LineSelectToggle:68568,LineSpecificSelectToggle:118926,XPanZone:118927,XZoomZone:68583,YZoomZone:68585};
ul.\u0275fac=function(a){return new (a||ul)($c(CMc,8))};ul.\u0275prov=Fc({token:ul,factory:ul.\u0275fac,providedIn:"root"});var ll=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);var jYc=Vj("[AC] Map chart IDs to a dashboard ID",Wj());var HG=function(a){var b=this;this.document=a;this.hiddenPageMeasurements=new Map;this.isPageHidden=this.document.visibilityState!=="visible";this.onVisibilityChange=function(){if(b.document.visibilityState==="visible"){var c=performance.now();b.isPageHidden=!1;for(var d=m(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e=e.value.hiddenSpans,(e=e[e.length-1])?e.endTimestamp=c:console.error("No latest span was found for a hidden time measurement")}else for(c=performance.now(),b.isPageHidden=
!0,d=m(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e.value.hiddenSpans.push({startTimestamp:c})};this.document.addEventListener("visibilitychange",this.onVisibilityChange)},kYc=function(a,b){var c=performance.now();return(b=a.hiddenPageMeasurements.get(b))?b.hiddenSpans.reduce(function(d,e){var f=e.startTimestamp;e=e.endTimestamp;if(e==null){if(a.isPageHidden)return d+c-f;console.error("Page hidden time span is missing an end timestamp");return d}return d+e-f},0):null};
HG.prototype.endHiddenMeasurement=function(a){var b=kYc(this,a);this.hiddenPageMeasurements.delete(a);return b};HG.prototype.ngOnDestroy=function(){this.document.removeEventListener("visibilitychange",this.onVisibilityChange)};HG.prototype.endHiddenMeasurement=HG.prototype.endHiddenMeasurement;HG.\u0275fac=function(a){return new (a||HG)($c(Sh))};HG.\u0275prov=Fc({token:HG,factory:HG.\u0275fac,providedIn:"root"});var IG=function(a,b){var c=this;this.pageVisibilityService=a;this.store=b;this.generator=this.logger=null;this.didWarnMissingGenerator=!1;this.signalsFlushed$=new sf;this.isRequestIdleCallbackSupported="requestIdleCallback"in window;this.signalsToSendOnIdle=[];this.idleTimerId=0;this.processSignalQueue=function(d){for(var e;(d.didTimeout||d.timeRemaining()>0)&&(e=c.signalsToSendOnIdle.shift());){var f=void 0;(f=c.generator)==null||f.receiveSignal(e)}c.idleTimerId=0;lYc(c);c.signalsToSendOnIdle.length||
c.signalsFlushed$.next()};this.dashboardState$=this.store.pipe(ak(fCa()),we(function(d){return(d==null?void 0:d.chartIdToDashboardId)!=null}))},JG=function(a,b){a.didWarnMissingGenerator||a.generator!==null?a.generator&&(b.dashboardId!=null||"dashboardId"in b?mYc(a,b):nYc(a,b.chartId).subscribe(function(c){b.dashboardId=c;mYc(a,b)})):a.didWarnMissingGenerator=!0},mYc=function(a,b){if(a.isRequestIdleCallbackSupported)a.signalsToSendOnIdle.push(b),lYc(a);else{var c;(c=a.generator)==null||c.receiveSignal(b)}},
lYc=function(a){!a.idleTimerId&&a.signalsToSendOnIdle.length&&(a.idleTimerId=requestIdleCallback(a.processSignalQueue,{timeout:5E3}))};IG.prototype.initialize=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.initialize():this.didWarnMissingGenerator=!0};IG.prototype.stop=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.stop():this.didWarnMissingGenerator=!0};
var nYc=function(a,b){return a.dashboardState$.pipe(we(function(c){return c.chartIdToDashboardId[b]!=null}),A(function(c){return c.chartIdToDashboardId[b]}),nf(1))};IG.\u0275fac=function(a){return new (a||IG)($c(HG),$c(sF))};IG.\u0275prov=Fc({token:IG,factory:IG.\u0275fac,providedIn:"root"});var oYc=["pinPill"],hCa=function(a,b){return{left:a,top:b}},nCa=function(a,b,c){return{locked:a,draggable:b,dragging:c}},oCa=function(a,b,c){return{top:a,"min-height":b,"border-radius":c}},pCa=function(a,b){return{"margin-left":a,"margin-right":b}},qCa=function(a,b,c){return{height:a,width:b,padding:c}},pYc=new fd("AwesomechartsTimezoneOffset");new fd("AwesomechartsTimeZoneId");
var qYc={dragZoom:!0,ctrlScrollZoom:!0,ctrlDragPan:!0,hoverBrush:!0,clickTimePin:!0,hoverTimePin:!0,moveTimePinOnChartClick:!1,touchPan:!0,touchZoom:!0},rYc={lineDash:[],hideAxis:!1},sYc=new Tl("Data in this chart spans a time range from {MIN} to {MAX}."),tYc=new Tl("Independent values in this chart along the X axis range from {MIN} to {MAX}."),uYc=new Tl("Unpin X axis cursor at {PIN_LABEL}"),vYc=0,wYc={comment:"M11 14H13V11H16V9H13V6H11V9H8V11H11ZM2 22V4Q2 3.175 2.588 2.587Q3.175 2 4 2H20Q20.825 2 21.413 2.587Q22 3.175 22 4V16Q22 16.825 21.413 17.413Q20.825 18 20 18H6ZM4 16H20Q20 16 20 16Q20 16 20 16V4Q20 4 20 4Q20 4 20 4H4Q4 4 4 4Q4 4 4 4V16ZM4 16V4Q4 4 4 4Q4 4 4 4Q4 4 4 4Q4 4 4 4V16Q4 16 4 16Q4 16 4 16Z"},
KG=function(a,b,c,d,e,f,g,k,l){sG.call(this,a,b,c,!0);this.interactionService=d;this.instrumentationService=e;this.liveAnnouncer=f;this.ngZone=g;this.tickStrategy=kBa;this.timePinLabelStrategy=kl;this.relativeTo=null;this.rightOverhangMargin=this.leftOverhangMargin=10;this.xAxisBrushActionButtonConfig=null;this.onPinChange=new Ui;this.axisDescriptionObservable=ee("");this.dataSubject=new Nj(null);var r;this.configSubject=new Nj({shift:((r=this.relativeTo)==null?void 0:r.shift)||0,styles:this.styles});
this.stylesInternal=rYc;this.interactionsInternal=qYc;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=this.lastCloseXAxisPinEvent=null;this.touchState={lastTouchDistance:null,lastTouchCenter:null};var w;this.timePinLabelStrategySubject=new Nj((w=this.timePinLabelStrategy)!=null?w:kl);var x,C;this.showXAxisPinPillSubject=new Nj(!!(((x=this.interactions)==null?0:x.clickTimePin)||((C=this.interactions)==null?0:C.hoverTimePin)));this.relativeToSubject=new Nj(null);this.xAxisPinPillObservable=
ee(null);this.xAxisUnpinAriaLabelObservable=ee("Unpin X axis cursor");this.actionButtonPosition$=ee(null);this.isActionButtonBeingHovered$=new Nj(!1);this.xAxisCursorDescribedById="ac-x-axis-aria-describedby-"+vYc++;this.isCurrentChartBeingHovered$=new Nj(!1);this.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE="var(--ac-sys-color-extensions-on-surface, #202124)";this.layerType="axis";k&&(this.timezoneOffset=k);l?(this.axisView=new LXc(a.nativeElement),this.redrawableViews=[this.axisView]):(this.axisView=new hYc(a.nativeElement),
this.brushView=new CXc(a.nativeElement),this.xAxisPinView=new gYc(a.nativeElement),this.redrawableViews=[this.axisView,this.brushView,this.xAxisPinView]);this.bindDrawInstrumentation()};Y(KG,sG);KG.\u0275dir=sG.\u0275dir;h=KG.prototype;h.isPrimaryModifierKeyDown=function(a){return ll?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;cG(this.axisView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;a.scopeObservable.pipe(nf(1)).subscribe(function(e){var f=e.chartId;e=e.layerId;JG(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});JG(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onClick(g)});this.chart.mouseDownObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onMouseDown(g)});le([this.chart.mouseLeaveObservable,this.isActionButtonBeingHovered$]).pipe(Bf(this.destroyed)).subscribe(function(g){g=m(g);g.next();if(!g.next().value)a.onMouseLeave()});
NF(this.chart,"chart",function(g){return a.onMouseMove(g)},this.destroyed);this.chart.keyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onKeyDown(g)});this.chart.keyUpObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onKeyUp(g)});this.chart.scrollObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onScroll(g)});this.chart.syncScrollObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.syncOnScroll(g)});this.chart.touchStartObservable.pipe(Bf(this.destroyed)).subscribe(function(g){if(g.touches.length===
2){var k,l;if(((k=a.interactions)==null?0:k.touchPan)||((l=a.interactions)==null?0:l.touchZoom))g.preventDefault(),k=g.touches[0],g=g.touches[1],a.touchState.lastTouchDistance=Math.abs(k.clientX-g.clientX),a.touchState.lastTouchCenter=tG(a,{clientX:(k.clientX+g.clientX)/2,clientY:(k.clientY+g.clientY)/2})}});this.chart.touchMoveObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a:if(g.touches.length===2){var k,l;if(((k=a.interactions)==null?0:k.touchPan)||((l=a.interactions)==null?0:l.touchZoom)){g.preventDefault();
k=g.touches[0];l=g.touches[1];g=Math.abs(k.clientX-l.clientX);k=tG(a,{clientX:(k.clientX+l.clientX)/2,clientY:(k.clientY+l.clientY)/2});if(a.touchState.lastTouchDistance!==null&&a.touchState.lastTouchCenter!==null){var r=a.touchState.lastTouchDistance/g;l=k.x-a.touchState.lastTouchCenter.x;var w=a.select(nG);if(!w)break a;var x=w.min,C=w.max;w=w.unit;var H=a.axisView.calculateDataValue(a.touchState.lastTouchCenter.x);if(H===null)break a;x=H-(H-x)*r;r=H+(C-H)*r;if(l=a.axisView.pxToXAxisUnit(-l))x+=
l,r+=l;xYc(a,x,r,w)}a.touchState.lastTouchDistance=g;a.touchState.lastTouchCenter=k}}});this.chart.touchEndObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.touchState.lastTouchDistance=null;a.touchState.lastTouchCenter=null});this.chart.documentMouseUpObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onMouseUp(g)});NF(this.chart,"document",function(g){return a.onDocumentMouseMove(g)},this.destroyed);this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(g){a.onMouseEnter(g)});
ve(this.chart.syncDragStartObservable,this.chart.syncDragObservable,this.chart.syncDragEndObservable).pipe(Bf(this.destroyed)).subscribe(function(g){var k,l;if(((k=a.interactions)==null?0:k.ctrlDragPan)||((l=a.interactions)==null?0:l.dragZoom))g.preventDefault(),g.stopPropagation()});ve(this.chart.syncTouchStartObservable,this.chart.syncTouchMoveObservable,this.chart.syncTouchEndObservable).pipe(Bf(this.destroyed)).subscribe(function(g){var k,l;if(((k=a.interactions)==null?0:k.touchZoom)||((l=a.interactions)==
null?0:l.touchPan))g.preventDefault(),g.stopPropagation()});this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(QWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));this.timeZoneId&&b.push(RWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));b.push(aG({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?
0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));pVc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy);var c=this.selectorFactoryToObservable(UXc),d=this.selectorFactoryToObservable(SXc),e=this.selectorFactoryToObservable(TXc),f=this.selectorFactoryToObservable(VXc);le([f,this.configObservable]).pipe(A(function(g){var k=m(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,
state:g!=null?g:null}}),zf(null),vf(),A(gk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(l){a.axisView.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([c,this.configObservable]).pipe(A(function(g){var k=m(g);g=k.next().value;return{data:null,
config:k.next().value.currentValue,state:g!=null?g:null}}),zf(null),vf(),A(gk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(l){a.axisView instanceof hYc&&a.axisView.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([d,this.configObservable]).pipe(A(function(g){var k=
m(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),zf(null),vf(),A(gk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawBrushFromSelection",changes:g,viewHandler:function(l){var r;(r=a.brushView)==null||r.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});
le([e,this.configObservable]).pipe(A(function(g){var k=m(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),zf(null),vf(),A(gk),Bf(this.destroyed),Ef(this.scopeObservable)).subscribe(function(g){var k=m(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawTimePinFromSelection",changes:g,viewHandler:function(l){var r;(r=a.xAxisPinView)==null||r.draw(l)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,
xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.xAxisPinPillObservable=le([this.selectorFactoryToObservable(XXc),this.timePinLabelStrategySubject,this.showXAxisPinPillSubject]).pipe(A(function(g){var k=m(g);g=k.next().value;var l=k.next().value;if(!k.next().value||!g)return null;k=g.xAxisPinPxPos;var r=g.xAxisPinPosition,w=g.xAxisPinTrackingNow,x=g.xAxisPinLocked,C=g.axisTopEdge;return r?{label:l({position:r,tickIncrement:g.xAxisTickIncrement,timeZone:g.xAxisTimeZone,trackingNow:w,unit:g.xAxisUnit||
"ms_since_epoch"}),locked:x,draggable:!x,dragging:!x,left:k,top:C+4,height:16,trackingNow:w}:null}));this.xAxisUnpinAriaLabelObservable=this.xAxisPinPillObservable.pipe(A(function(g){return(g==null?0:g.label)?uYc.format({PIN_LABEL:g.label}):"Unpin X axis cursor"}));this.actionButtonPosition$=(d!=null?d:f).pipe(A(function(g){return g&&g.brushEnd?{left:g.brushEnd,top:g.bodyTop}:null}),Bf(this.destroyed));this.axisDescriptionObservable=this.selectorFactoryToObservable(YXc).pipe(A(function(g){if(!g)return"";
var k=g.xAxisUnit,l=g.xAxisMin,r=g.xAxisMax;g=g.xAxisTimeZone;return l!==null&&r!==null?k==="ms_since_epoch"?sYc.format({MIN:TAa(new Date(l),g),MAX:TAa(new Date(r),g)}):tYc.format({MIN:Nk(l,k),MAX:Nk(r,k)}):""}),of(0),xk(this.ngZone));this.selectorFactoryToObservable(ZXc).pipe(Bf(this.destroyed)).subscribe(function(g){if(g){var k=g.xAxisPinPosition,l=g.xAxisPinTrackingNow,r=g.xAxisPinCanTrackNow,w=g.xAxisMin,x=g.xAxisMax;g.xAxisPinLocked&&l?r?a.store.dispatch(BG({chartGroupId:a.chartGroupId,position:x})):
a.store.dispatch(dk({actions:yYc(a,!0)})):w!==null&&x!==null&&(k<w||x<k)&&a.store.dispatch(dk({actions:yYc(a,!0)}))}});this.scopeObservable.pipe(Bf(this.destroyed),zf(null),vf(),A(gk)).subscribe(function(g){var k=g.previousValue;(g=g.currentValue)&&(k==null?void 0:k.layerId)!==(g==null?void 0:g.layerId)&&MF(a.chart,[yF({chartGroupId:g.chartGroupId,chartId:g.chartId,previousLayerId:k==null?void 0:k.layerId,currentLayerId:g.layerId})])});MF(this.chart,b)};
h.ngAfterViewInit=function(){var a=this;le([this.selectorFactoryToObservable(WXc),this.showXAxisPinPillSubject,this.pillEl.changes]).pipe(Bf(this.destroyed)).subscribe(function(b){var c=m(b);b=c.next().value;c.next().value&&a.pillEl&&a.pillEl.length&&b&&(a.pillEl.first.nativeElement.style.left=b.xAxisPinPxPos+"px")})};
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"tickStrategy"in a&&(pVc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy),this.interactions=this.interactionsInternal);if("timePinLabelStrategy"in a){var c;this.timePinLabelStrategySubject.next((c=this.timePinLabelStrategy)!=null?c:kl)}"timezoneOffset"in a&&this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(QWc({chartGroupId:this.chartGroupId,chartId:this.chartId,
xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));"timeZoneId"in a&&this.timeZoneId&&b.push(RWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));if("styles"in a||"relativeTo"in a){var d;this.configSubject.next({shift:(d=this.relativeTo)==null?void 0:d.shift,styles:this.styles})}if("interactions"in a){var e,f,g;if(((e=this.interactions)==null?0:e.hoverBrush)||((f=this.interactions)==null?0:f.dragZoom)||(g=this.brushView)==null||!g.isAttached()){var k,
l,r;if((((k=this.interactions)==null?0:k.hoverBrush)||((l=this.interactions)==null?0:l.dragZoom))&&((r=this.brushView)==null||!r.isAttached())){var w;(w=this.brushView)==null||w.reattach()}}else this.brushView.detach();var x,C,H;if(((x=this.interactions)==null?0:x.clickTimePin)||((C=this.interactions)==null?0:C.hoverTimePin)||(H=this.xAxisPinView)==null||!H.isAttached()){var J,O,R;if((((J=this.interactions)==null?0:J.clickTimePin)||((O=this.interactions)==null?0:O.hoverTimePin))&&((R=this.xAxisPinView)==
null||!R.isAttached())){var V;(V=this.xAxisPinView)==null||V.reattach();this.showXAxisPinPillSubject.next(!0)}}else this.xAxisPinView.detach(),this.showXAxisPinPillSubject.next(!1)}"relativeTo"in a&&(this.relativeTo&&b.push(PWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,relativeToId:this.relativeTo.xAxisId,shift:this.relativeTo.shift})),this.relativeToSubject.next(this.relativeTo));("leftOverhangMargin"in a||"rightOverhangMargin"in a)&&b.push(aG({chartGroupId:this.chartGroupId,
chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));MF(this.chart,b)};h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);this.axisView.destroy();var a;(a=this.brushView)==null||a.destroy();var b;(b=this.xAxisPinView)==null||b.destroy();a=vG(this,null);this.store.dispatch(dk({actions:[wVc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
h.onClick=function(a){var b=this.select(aYc);if(b){var c=b.xAxisUnit,d=b.xAxisMax,e=b.xAxisPinCanTrackNow,f=tG(this,a);b=this.axisView.calculateDataValue(f.x);this.axisView.withinBodyOrAxis(f.x,f.y)&&this.store.dispatch(zG({chartId:this.chartId,lastInteraction:{click:f.x}}));var g,k;if(((g=this.interactions)==null?0:g.clickTimePin)&&a.timeStamp!==((k=this.lastCloseXAxisPinEvent)==null?void 0:k.timeStamp)&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(f.x,f.y)||this.axisView.withinAxis(f.x,
f.y))){if((g=this.pillEl.first)&&g.nativeElement.className.includes("x-axis-pin")&&g.nativeElement.querySelector(".x-axis-pin-icon-wrapper")&&(g=g.nativeElement.children[1].getBoundingClientRect(),k=a.clientX-g.x,f=a.clientY-g.y,k>0&&k<g.width&&f>0&&f<g.height)){kCa(this,a);return}if(c=(a=zYc(this,e,b,c,d))&&c==="ms_since_epoch"&&d!==null?d:b)this.onPinChange.emit(c),this.store.dispatch(dk({actions:[BG({chartGroupId:this.chartGroupId,position:c}),CG({chartGroupId:this.chartGroupId,locked:!0}),DG({chartGroupId:this.chartGroupId,
trackingNow:a})]}))}}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=[],c=this.select(bYc);if(!c)return b;var d=c.xAxisPinLocked,e=c.xAxisPinPosition,f=c.xAxisPinTrackingNow,g=c.xAxisPinCanTrackNow,k=c.brushPanning,l=c.xAxisUnit;c=c.xAxisMax;a=tG(this,a);var r;((r=this.interactions)==null?0:r.hoverTimePin)&&!d&&!k&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(a.x,a.y)||this.axisView.withinAxis(a.x,a.y)?(d=this.axisView.calculateDataValue(a.x),g=zYc(this,g,d,l,c),b.push(BG({chartGroupId:this.chartGroupId,
position:g&&l==="ms_since_epoch"&&c!==null?c:d})),b.push(DG({chartGroupId:this.chartGroupId,trackingNow:g}))):d||(e!==null&&b.push(BG({chartGroupId:this.chartGroupId,position:null})),f&&b.push(DG({chartGroupId:this.chartGroupId,trackingNow:!1}))));this.axisView.withinBody(a.x,a.y)?(b.push(zG({chartId:this.chartId,lastInteraction:{hover:a.x}})),this.isCurrentChartBeingHovered$.getValue()||this.isCurrentChartBeingHovered$.next(!0)):b.push(zG({chartId:this.chartId,lastInteraction:{hover:null}}));return b};
h.onMouseEnter=function(){this.isCurrentChartBeingHovered$.next(!0)};
h.onMouseLeave=function(){this.isCurrentChartBeingHovered$.next(!1);var a=this.select(PXc);if(a){a.locked||(a.position!==void 0&&this.store.dispatch(BG({chartGroupId:this.chartGroupId,position:null})),a.trackingNow&&this.store.dispatch(DG({chartGroupId:this.chartGroupId,trackingNow:!1})));var b;((b=this.interactions)==null?0:b.hoverBrush)&&this.store.dispatch(pXc({chartGroupId:this.chartGroupId,position:null}));this.store.dispatch(zG({chartId:this.chartId,lastInteraction:{hover:null}}))}};
h.onDocumentMouseMove=function(a){var b=[],c=this.select(cYc);if(!c)return b;var d=c.brushBrushing,e=c.brushPanning,f=c.brushAxis,g=c.brushPosition,k=c.xAxisMin,l=c.xAxisMax;c=c.xAxisUnit;var r=tG(this,a),w;if(this.axisView.withinBody(r.x,r.y)&&((w=this.interactions)==null?0:w.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseDownEvent){w=tG(this,this.lastMouseDownEvent);var x=this.axisView.withinBody(w.x,w.y),C;if(C=!d){var H=this.lastMouseDownEvent;C=a.clientX-H.clientX;
H=a.clientY-H.clientY;var J=Math.sqrt(Math.pow(C,2)+Math.pow(H,2));C=Math.abs(H/C)<1&&J>10}C&&x&&(r=this.axisView.calculateDataValue(r.x),(w=this.axisView.calculateDataValue(w.x))&&r&&b.push(nXc({chartGroupId:this.chartGroupId,positionStart:(new Date(w)).valueOf(),position:(new Date(r)).valueOf()})))}r=0;var O;if(((O=this.interactions)==null?0:O.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseMoveEvent&&k!==null&&l!==null&&(e||b.push(qXc({chartGroupId:this.chartGroupId})),
e=tG(this,this.lastMouseMoveEvent),O=tG(this,a),this.axisView.withinBody(O.x,O.y)&&(e=this.axisView.pxToXAxisUnit(e.x-O.x)))){r=l-k;var R,V;O=(V=(R=this.interactionBounds)==null?void 0:R.max)!=null?V:Date.now();var ca,oa;R=(oa=(ca=this.interactionBounds)==null?void 0:ca.max)!=null?oa:c==="ms_since_epoch"?O:r;ca=Math.min(k+e,R-r);this.interactionBounds&&this.interactionBounds.min!=null&&this.interactionBounds.min>ca&&(e+=this.interactionBounds.min-ca,ca=this.interactionBounds.min);l=Math.min(l+e,R);
r=ca-k;b.push(NWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}));b.push(MWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:3,min:ca,max:l,unit:c}))}if(this.isEventInsideWindow(a)){var ua;k=((ua=this.interactions)==null?void 0:ua.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&d&&f===0;l=this.lastMouseDownEvent&&tG(this,this.lastMouseDownEvent);ua=tG(this,a);c=this.lastMouseMoveEvent&&
tG(this,this.lastMouseMoveEvent);l=l&&this.axisView.withinBody(l.x,l.y);c=c&&this.axisView.withinBody(c.x,c.y);ca=this.axisView.withinBody(ua.x,ua.y);var ka;((ka=this.interactions)==null?0:ka.hoverBrush)&&ca&&(!d||f!==0)||k&&l?(d=this.axisView.calculateDataValue(ua.x))&&b.push(pXc({chartGroupId:this.chartGroupId,position:d+r})):!c||ca||g===null||this.isActionButtonBeingHovered$.getValue()||b.push(pXc({chartGroupId:this.chartGroupId,position:null}))}else b.push(oXc({chartGroupId:this.chartGroupId}));
this.lastMouseMoveEvent=a;return b};
h.onMouseUp=function(a){var b=this.select($Xc);if(b){var c=b.brushPanning,d=b.brushBrushing,e=b.brushAxis,f=b.brushPositionStart;b=b.xAxisUnit;var g;((g=this.interactions)==null?0:g.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&c&&e===0&&(this.store.dispatch(rXc({chartGroupId:this.chartGroupId})),tl(this.interactionService,"drag",ul.ve.XPanZone,this.el.nativeElement));var k;if(((k=this.interactions)==null?0:k.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&d&&e===0&&this.isEventInsideWindow(a)&&(a=
tG(this,a),c=this.axisView.calculateDataValue(a.x),d=(d=this.lastMouseDownEvent&&tG(this,this.lastMouseDownEvent))&&this.axisView.withinBody(d.x,d.y),c&&d&&f!==null)){d=f<c;this.store.dispatch(dk({actions:[oXc({chartGroupId:this.chartGroupId}),NWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}),MWc({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:4,min:d?f:c,max:d?c:f,unit:b})]}));tl(this.interactionService,
"drag",ul.ve.XZoomZone,this.el.nativeElement);var l;(f=(l=this.select(GG))==null?void 0:l.inverseDomainMap)&&this.store.dispatch(pXc({chartGroupId:this.chartGroupId,position:f(a.x)}))}this.lastMouseDownEvent=null}};h.syncOnScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=tG(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&a.preventDefault())};
h.onScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=tG(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&this.scrollZoom(b,a.deltaY))};
h.scrollZoom=function(a,b){var c=this.select(nG);if(c&&this.lastMouseMoveEvent){var d=c.min,e=c.max;c=c.unit;if(b=this.axisView.pxToXAxisUnit(b))if(a=this.axisView.calculateDataValue(a.x))a=(a-d)/(e-d),xYc(this,d-b*a,e+b*(1-a),c),tl(this.interactionService,"scroll",ul.ve.XZoomZone,this.el.nativeElement,{debounce:!0})}};h.onKeyDown=function(a){var b=this.select(eTc);switch(a.key){case "Escape":b&&(a=yYc(this,!0),this.store.dispatch(dk({actions:a})))}};
h.onKeyUp=function(a){var b=this.select(NXc),c;((c=this.interactions)==null?0:c.ctrlDragPan)&&b&&!this.isPrimaryModifierKeyDown(a)&&(this.store.dispatch(rXc({chartGroupId:this.chartGroupId})),tl(this.interactionService,"drag",ul.ve.XPanZone,this.el.nativeElement))};
var kCa=function(a,b){a.lastCloseXAxisPinEvent=b;a.store.dispatch(dk({actions:yYc(a)}));a.pillEl&&a.pillEl.length&&a.pillEl.first.nativeElement.focus();a.liveAnnouncer.announce("X axis cursor unpinned.");a.onPinChange.emit(null)},gCa=function(a){a.xAxisBrushActionButtonConfig&&a.actionButtonPosition$.pipe(nf(1),A(function(b){return b&&b.left})).subscribe(function(b){if((b=b&&a.axisView.calculateDataValue(b))&&a.xAxisBrushActionButtonConfig)a.xAxisBrushActionButtonConfig.onClick(b)})},yYc=function(a,
b){b=b===void 0?!1:b;var c=[];c.push(CG({chartGroupId:a.chartGroupId,locked:!1}));b&&(c.push(BG({chartGroupId:a.chartGroupId,position:null})),c.push(DG({chartGroupId:a.chartGroupId,trackingNow:!1})));return c};KG.prototype.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
var zYc=function(a,b,c,d,e){if(!b||!c||d!=="ms_since_epoch"||e===null)return!1;a=a.axisView.pxToXAxisUnit(30);c=Math.abs(e-c);return!!a&&c<=a},xYc=function(a,b,c,d){if(d==="ms_since_epoch"){var e,f,g=(f=(e=a.interactionBounds)==null?void 0:e.max)!=null?f:Date.now();c>g&&(e=c-g,c-=e,b-=e)}if(a.interactionBounds){var k;e=(k=a.interactionBounds.max)!=null?k:d==="ms_since_epoch"?Date.now():Infinity;var l;k=(l=a.interactionBounds.min)!=null?l:-Infinity;e<c?(b=Math.max(k,b+e-c),c=e):k>b&&(c=Math.min(e,
c+k-b),b=k)}a.store.dispatch(dk({actions:[NWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,priority:4}),MWc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:a.layerId,priority:4,cause:4,min:b,max:c,unit:d})]}))};
da.Object.defineProperties(KG.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){a?this.interactionsInternal=Object.assign({},qYc,a):this.interactionsInternal=qYc},get:function(){return this.interactionsInternal}},styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},rYc,a)},get:function(){return this.stylesInternal}},topButtonIconPath:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.xAxisBrushActionButtonConfig)!=null&&a.icon?
wYc[this.xAxisBrushActionButtonConfig.icon]||"":""}}});KG.\u0275fac=function(a){return new (a||KG)(Ye(Jd),Ye(LF),Ye(ZF),Ye(ul),Ye(IG),Ye(Yy),Ye(Rg),Ye(pYc,8),Ye(lVc,8))};
KG.\u0275cmp=D({type:KG,selectors:[["ac-x-axis"]],viewQuery:function(a,b){a&1&&hg(oYc,5);if(a&2){var c;lg(c=mg())&&(b.pillEl=c)}},hostAttrs:[1,"composable-layer","ac-x-axis"],inputs:{timeZoneId:"timeZoneId",timezoneOffset:"timezoneOffset",tickStrategy:"tickStrategy",timePinLabelStrategy:"timePinLabelStrategy",interactions:"interactions",relativeTo:"relativeTo",styles:"styles",leftOverhangMargin:"leftOverhangMargin",rightOverhangMargin:"rightOverhangMargin",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",
interactionBounds:"interactionBounds"},outputs:{onPinChange:"onPinChange"},features:[Gf,bx],decls:9,vars:10,consts:function(){return[["pinPill",""]," Unpinning the X axis cursor allows the cursor to follow the mouse while hovering over the chart. The X axis cursor will always be pinned while using keyboard navigation to indicate that the values reflected in the tooltip or the legend are associated with the position of the X axis cursor.\n",[1,"ac-screen-reader-only-content"],[4,"ngIf"],["class","x-axis-pin overlay-z-index",
3,"ngClass","ngStyle",4,"ngIf"],[1,"ac-screen-reader-only-content",3,"id"],["class","x-axis-cursor-action-button overlay-z-index",3,"ngStyle","mouseenter","mouseleave",4,"ngIf"],[1,"x-axis-cursor-action-button","overlay-z-index",3,"mouseenter","mouseleave","ngStyle"],["type","button","aria-label","Select a point on a chart",1,"ac-a11y-focusable",3,"click"],"width;16px;height;16px;viewBox;0 0 24 24".split(";"),[1,"x-axis-pin","overlay-z-index",3,"ngClass","ngStyle"],[1,"x-axis-pin-label",3,"ngStyle"],
[1,"x-axis-pin-icon-wrapper",3,"ngStyle"],["type","button","class","x-axis-icon ac-a11y-focusable",3,"click",4,"ngIf"],["class","icon x-axis-pin-mat-icon","svgIcon","ac:time_pin_set",4,"ngIf"],["type","button",1,"x-axis-icon","ac-a11y-focusable",3,"click"],["svgIcon","ac:time_pin_unset",1,"icon","x-axis-pin-mat-icon"],["svgIcon","ac:time_pin_set",1,"icon","x-axis-pin-mat-icon"]]},template:function(a,b){a&1&&(K(0,"p",2),Q(1),T(2,"async"),L(),E(3,jCa,3,3,"ng-container",3),T(4,"async"),E(5,rCa,7,25,
"div",4),T(6,"async"),K(7,"p",5),Yf(8,1),L());a&2&&(B(),yg(U(2,4,b.axisDescriptionObservable)),B(2),I("ngIf",U(4,6,b.xAxisBrushActionButtonConfig&&b.isCurrentChartBeingHovered$)),B(2),I("ngIf",U(6,8,b.xAxisPinPillObservable)),B(2),I("id",b.xAxisCursorDescribedById))},dependencies:[Dy,Dx,Fx,Jx,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.x-axis-cursor-action-button[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%) translateY(-100%);padding-bottom:4px}.x-axis-cursor-action-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;display:flex;background-color:var(--ac-sys-color-extensions-surface, #fff);border-radius:10000px;box-shadow:0 0 5px var(--ac-sys-color-extensions-on-surface-variant, #5F6368);justify-content:center;align-items:center;width:24px;height:24px}.x-axis-pin[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%);border:none;box-sizing:border-box;cursor:default;line-height:10px;width:fit-content;white-space:nowrap}.x-axis-pin[_ngcontent-%COMP%]:focus-within{outline-offset:1px}.x-axis-pin.draggable[_ngcontent-%COMP%]{cursor:grabbing}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline-offset:3px}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon-wrapper[_ngcontent-%COMP%]{box-sizing:border-box}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:50%;text-align:center;display:block;cursor:default}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-label[_ngcontent-%COMP%]{margin:auto 6px;vertical-align:top;font-family:sans-serif;font-style:normal;font-weight:400;font-size:10px}.x-axis-pin.locked[_ngcontent-%COMP%]{background:var(--ac-sys-color-chart-x-axis-pin, #5F6368);color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin.locked[_ngcontent-%COMP%]   .x-axis-pin-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-primary, #fff);cursor:pointer}.x-axis-pin[_ngcontent-%COMP%]:not(.locked){background:var(--ac-sys-color-extensions-neutral, #bdbdbd);color:var(--ac-sys-color-extensions-on-neutral, #404040)}.x-axis-pin[_ngcontent-%COMP%]:not(.locked)   .x-axis-pin-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-neutral, #404040)}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{height:100%;width:100%;vertical-align:top}.dragging[_ngcontent-%COMP%]{cursor:grabbing}"],
changeDetection:0});var LG=function(a){this.liveAnnouncer=a;this.subscriptions=new Map;this.currentlyLoading=0},AYc=function(a,b,c){a.subscriptions.set(b,c.pipe(zf(!1),pf()).subscribe(function(d){d?(a.currentlyLoading===0&&a.liveAnnouncer.announce("One or more charts on this pages are loading."),++a.currentlyLoading):a.currentlyLoading>0&&(--a.currentlyLoading,a.currentlyLoading===0&&a.liveAnnouncer.announce("All charts have finished loading."))}))},BYc=function(a,b){var c=a.subscriptions.get(b);c&&(c.unsubscribe(),
a.subscriptions.delete(b))};LG.\u0275fac=function(a){return new (a||LG)($c(Yy))};LG.\u0275prov=Fc({token:LG,factory:LG.\u0275fac,providedIn:"root"});var MG=function(a,b,c,d){this.store=a;this.ngZone=b;this.instrumentationService=c;this.pageVisibilityService=d;this.pendingComponentRequests=new Map;this.pendingViewRequests=new Map;this.nextSetTimeoutId=this.nextAnimationFrameId=null;this.pendingEventTimeouts=new Map;this.trailingDelays=[];this.trailingDelaysSum=0;this.timeInit=Date.now();this.logger=this.lastTaskRunTime=this.eventStartTime=this.timeToInteractivity=this.timeToFirstDraw=this.timeToFirstQueue=null},NG=function(a,b,c){var d=Date.now(),
e=a.pendingEventTimeouts.has(b);a.pendingEventTimeouts.set(b,c);e||setTimeout(function(){var f=a.pendingEventTimeouts.get(b);a.eventStartTime=d;f&&f();a.eventStartTime=null;a.pendingEventTimeouts.delete(b)},0)};
MG.prototype.scheduleChangeHandler=function(a){var b=this;a.mergeKey?CYc(this,a):this.ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c=a.changes;Yza(a)?a.viewHandler(c):Zza(a)&&a.viewHandlerUsingContext(c,a.context);var d;$za(a)?d=a.componentHandler(c):aAa(a)&&(d=a.componentHandlerUsingContext(c,a.context));d&&d.length&&b.store.dispatch(dk({actions:d}))})})};
var CYc=function(a,b){var c=b.changes,d=b.mergeKey,e=Date.now();if(Yza(b)||Zza(b)){var f=a.pendingViewRequests.get(d);f?f.changes={previousValue:f.changes.previousValue,currentValue:c.currentValue}:Yza(b)?a.pendingViewRequests.set(d,{handler:b.viewHandler,changes:c,scheduledTime:e,scope:b.scope,eventStartTime:a.eventStartTime}):a.pendingViewRequests.set(d,{handlerUsingContext:b.viewHandlerUsingContext,changes:c,context:b.context,scheduledTime:e,scope:b.scope,eventStartTime:a.eventStartTime});a.timeToFirstQueue===
null&&(a.timeToFirstQueue=Date.now()-a.timeInit)}if($za(b)||aAa(b))(e=a.pendingComponentRequests.get(d))?e.changes={previousValue:e.changes.previousValue,currentValue:c.currentValue}:$za(b)?a.pendingComponentRequests.set(d,{handler:b.componentHandler,changes:c,scope:b.scope,eventStartTime:a.eventStartTime}):a.pendingComponentRequests.set(d,{handlerUsingContext:b.componentHandlerUsingContext,changes:c,context:b.context,scope:b.scope,eventStartTime:a.eventStartTime});($za(b)||aAa(b))&&DYc(a);(Yza(b)||
Zza(b))&&EYc(a)},DYc=function(a){a.nextSetTimeoutId||a.ngZone.runOutsideAngular(function(){a.nextSetTimeoutId=setTimeout(function(){a.nextSetTimeoutId=null;var b=[],c=Array.from(a.pendingComponentRequests.keys());c=m(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(d=a.pendingComponentRequests.get(e))a.eventStartTime=d.eventStartTime,a.pendingComponentRequests.delete(e),e=void 0,d.handlerUsingContext?e=d.handlerUsingContext(d.changes,d.context):d.handler&&(e=d.handler(d.changes)),a.eventStartTime=
null,e&&(b=b.concat(e))}b.length&&a.store.dispatch(dk({actions:b}));a.pendingComponentRequests.size&&DYc(a)},0)})},EYc=function(a){a.nextAnimationFrameId||a.ngZone.runOutsideAngular(function(){a.nextAnimationFrameId=requestAnimationFrame(function(){a.nextAnimationFrameId=null;var b=Array.from(a.pendingViewRequests.keys());b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.pendingViewRequests.get(c);if(d){var e=void 0;if(a.timeToFirstDraw===null){var f=void 0,g=a;g.timeToFirstDraw=Date.now()-
((f=g.timeToFirstQueue)!=null?f:0)-g.timeInit;f=g.pageVisibilityService;g=performance.now();var k=[];f.isPageHidden&&k.push({startTimestamp:g});f.hiddenPageMeasurements.set("timeToInteractivity",{hiddenSpans:k})}if(f=a.pendingViewRequests.get(c))if(g=Date.now(),k=g-Math.max(f.scheduledTime,(e=a.lastTaskRunTime)!=null?e:0),a.lastTaskRunTime=g,k>50&&FYc(a,performance.now(),f.scope,k),a.timeToInteractivity===null){a.trailingDelays.unshift({delay:k,time:g});a.trailingDelaysSum+=k;for(e=g-500;a.trailingDelays[a.trailingDelays.length-
1].time<e;)g=f=void 0,a.trailingDelaysSum-=(g=(f=a.trailingDelays.pop())==null?void 0:f.delay)!=null?g:0;(a.trailingDelays.length>=10?a.trailingDelaysSum/a.trailingDelays.length:Infinity)<50&&(f=e=void 0,g=a,g.timeToInteractivity=Date.now()-((f=g.timeToFirstDraw)!=null?f:0)-((e=g.timeToFirstQueue)!=null?e:0)-g.timeInit,g.pageVisibilityService.endHiddenMeasurement("timeToInteractivity"))}a.eventStartTime=d.eventStartTime;a.pendingViewRequests.delete(c);d.handlerUsingContext?d.handlerUsingContext(d.changes,
d.context):d.handler&&d.handler(d.changes);a.eventStartTime=null}}a.pendingViewRequests.size&&EYc(a)})})},FYc=function(a,b,c,d){nYc(a.instrumentationService,c.chartId).subscribe(function(e){JG(a.instrumentationService,{type:"dashboard-non-interactivity",dashboardId:e,timestamp:b,metadata:{blockingTimeMs:d}})})};MG.\u0275fac=function(a){return new (a||MG)($c(sF),$c(Rg),$c(IG),$c(HG))};MG.\u0275prov=Fc({token:MG,factory:MG.\u0275fac,providedIn:"root"});mF.setThrowPartials&&mF.setThrowPartials(!1);
var GYc=new fd("window-with-resize-observer",{providedIn:"root",factory:function(){return window}}),HYc=0,OG=function(a,b,c,d,e,f,g,k,l,r){LF.call(this,a,b);var w=this;this.window=c;this.renderer=d;this.queueService=e;this.liveAnnouncerService=f;this.formatterService=g;this.instrumentationService=k;this.ngZone=l;this.testingTimezoneOffset=r;this.lastMeasuredBoundingClientRect=null;this.labelledById="ac-chart-aria-labelledby-"+HYc++;this.describedById="ac-chart-aria-describedby-"+HYc++;this.keyboardNavInstructions=
"This chart is described by one or more grids. A grid row represents a time series. A grid column corresponds to a timestamp. By default, charts hide most columns. To display the hidden columns next to the activated column, use the Read previous item (up arrow) key until you access the column header, and then use the Activate button (enter) key.";this.defaultTimezone=(new Date).getTimezoneOffset();this.featureFlags={};this.useChartGroupHorizontalMargins=!1;this.yAxisOrientation="vertical";this.refactorA11yNavInstructions=
!1;this.anyLayerLoading=new Ui;this.ve={AwesomechartsGeneric:170573,AwesomechartsHeatmap:84053,AwesomechartsStackedArea:84058,AwesomechartsTimeBar:84059,AwesomechartsLine:84054,AwesomeChartImage:68528};this.chartVe=170573;this.unregisterFunctions=[];AYc(this.liveAnnouncerService,this.objectiveChartId,this.anyLayerLoading);this.setup({});this.mouseUpObservable.pipe(Ef(this.mouseDownObservable),Bf(this.destroyed)).subscribe(function(H){var J=m(H);H=J.next().value;J=J.next().value;Math.abs(J.clientX-
H.clientX)+Math.abs(J.clientY-H.clientY)<10&&(w.mouseClickSubject.next(H),w.afterMouseClickSubject.next(H))});var x=a.nativeElement,C=navigator.maxTouchPoints>1;OG.sharedWindowScrollCapture$.pipe(Bf(this.destroyed)).subscribe(function(H){w.windowCaptureScrollSubject.next(H)});this.ngZone.runOutsideAngular(function(){IYc(w,"chart");IYc(w,"document");w.unregisterFunctions.push(d.listen(x,"mousedown",function(H){NG(e,w.objectiveChartId+"-mousedown",function(){sCa(H)&&w.mouseDownSubject.next(H)})}),d.listen(x,
"mouseup",function(H){NG(e,w.objectiveChartId+"-mouseup",function(){sCa(H)&&w.mouseUpSubject.next(H)})}),d.listen(x,"mouseenter",function(H){NG(e,w.objectiveChartId+"-mouseenter",function(){w.mouseEnterSubject.next(H)})}),d.listen(x,"mouseleave",function(H){NG(e,w.objectiveChartId+"-mouseleave",function(){w.mouseLeaveSubject.next(H)})}),d.listen(x,"wheel",function(H){w.syncScrollSubject.next(H);NG(e,w.objectiveChartId+"-wheel",function(){w.scrollSubject.next(H)})}),d.listen(x,"dragstart",function(H){w.syncDragStartSubject.next(H);
NG(e,w.objectiveChartId+"-dragstart",function(){w.dragStartSubject.next(H)})}),d.listen(x,"drag",function(H){w.syncDragSubject.next(H);NG(e,w.objectiveChartId+"-drag",function(){w.dragSubject.next(H)})}),d.listen(x,"dragend",function(H){w.syncDragEndSubject.next(H);NG(e,w.objectiveChartId+"-dragend",function(){w.dragEndSubject.next(H)})}),C?d.listen(x,"touchstart",function(H){w.syncTouchStartSubject.next(H);NG(e,w.objectiveChartId+"-touchstart",function(){w.touchStartSubject.next(H)})}):null,C?d.listen(x,
"touchmove",function(H){w.syncTouchMoveSubject.next(H);NG(e,w.objectiveChartId+"-touchmove",function(){w.touchMoveSubject.next(H)})}):null,C?d.listen(x,"touchend",function(H){w.syncTouchEndSubject.next(H);NG(e,w.objectiveChartId+"-touchend",function(){w.touchEndSubject.next(H)})}):null,d.listen(c,"keydown",function(H){w.syncKeyDownSubject.next(H);NG(e,w.objectiveChartId+"-window-keydown",function(){w.keyDownSubject.next(H)})}),d.listen(c,"keyup",function(H){NG(e,w.objectiveChartId+"-window-keyup",
function(){w.keyUpSubject.next(H)})}),d.listen(document,"mouseup",function(H){NG(e,w.objectiveChartId+"-document-mouseup",function(){sCa(H)&&w.documentMouseUpSubject.next(H)})}))})};Y(OG,LF);OG.\u0275dir=LF.\u0275dir;OG.prototype.ngOnInit=function(){var a=this;LF.prototype.ngOnInit.call(this);JG(this.instrumentationService,{type:"chart-initialization-start",timestamp:performance.now(),chartId:this.chartId});this.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)})};
OG.prototype.onMouseEnter=function(){JYc(this)};var IYc=function(a,b){switch(b){case "chart":var c=a.el.nativeElement;break;case "document":c=document;break;case "window":c=window;break;default:wb(b,"Unknown event target for chart.")}lUc(a,b);a.unregisterFunctions.push(a.renderer.listen(c,"mousemove",function(d){NG(a.queueService,a.objectiveChartId+"-"+b+"-mousemove",function(){var e=mUc(a,b),f=[];e=m(e.values());for(var g=e.next();!g.done;g=e.next())g=g.value,f=f.concat(g(d));f.length&&a.store.dispatch(dk({actions:f}))})}))};
OG.prototype.ngAfterViewInit=function(){var a=this;typeof this.window.ResizeObserver==="function"?(this.resizeObserver=new ResizeObserver(function(){a.resizeObserverTimeout=setTimeout(function(){a.resizeObserverTimeout=void 0;KYc(a,a.el.nativeElement.getBoundingClientRect())},0)}),this.resizeObserver.observe(this.el.nativeElement)):this.resizeSensor=new iSc(this.el.nativeElement,function(){KYc(a,a.el.nativeElement.getBoundingClientRect())});JYc(this,!0);OG.sharedWindowScrollCapture$.pipe(Bf(this.destroyed)).subscribe(function(){var b=
a.el.nativeElement.getBoundingClientRect();a.lastMeasuredBoundingClientRect&&b.height===a.lastMeasuredBoundingClientRect.height&&b.width===a.lastMeasuredBoundingClientRect.width&&b.left===a.lastMeasuredBoundingClientRect.left&&b.top===a.lastMeasuredBoundingClientRect.top||(a.lastMeasuredBoundingClientRect=b,b=vVc({chartGroupId:a.chartGroupId,chartId:a.chartId,height:b.height,width:b.width,offsets:{top:b.top,left:b.left}}),Bza(a.store,b))})};
OG.prototype.ngOnChanges=function(a){LF.prototype.ngOnChanges.call(this,a);var b=[];if("height"in a||"width"in a){var c,d,e=(d=this.height)!=null?d:(c=this.lastMeasuredBoundingClientRect)==null?void 0:c.height,f,g;c=(g=this.width)!=null?g:(f=this.lastMeasuredBoundingClientRect)==null?void 0:f.width;e!==void 0&&c!==void 0&&this.resize(e,c)}"useChartGroupHorizontalMargins"in a&&b.push(xVc({chartGroupId:this.chartGroupId,chartId:this.chartId,useChartGroupHorizontalMargins:this.useChartGroupHorizontalMargins}));
"yAxisOrientation"in a&&b.push(uVc({chartId:this.chartId,yAxisOrientation:this.yAxisOrientation}));"valueStrategy"in a&&this.valueStrategy&&bVc(this.formatterService,{chartId:this.chartId},this.valueStrategy);MF(this,b)};
OG.prototype.ngOnDestroy=function(){LF.prototype.ngOnDestroy.call(this);this.resizeObserver&&this.resizeObserver.unobserve(this.el.nativeElement);this.resizeObserverTimeout&&clearTimeout(this.resizeObserverTimeout);this.resizeSensor&&this.resizeSensor.detach(function(){});for(var a=m(this.unregisterFunctions),b=a.next();!b.done;b=a.next())(b=b.value)&&b();this.formatterService.valueStrategyRegistry.delete(this.chartId);BYc(this.liveAnnouncerService,this.objectiveChartId)};
var JYc=function(a,b){var c=a.el.nativeElement.getBoundingClientRect();KYc(a,c,b)},KYc=function(a,b,c){a.lastMeasuredBoundingClientRect=b;var d,e;a.resize((d=a.height)!=null?d:b.height,(e=a.width)!=null?e:b.width,b.top,b.left,c)};
OG.prototype.resize=function(a,b,c,d,e){if(c===void 0||d===void 0)this.lastMeasuredBoundingClientRect=d=this.el.nativeElement.getBoundingClientRect(),c=d.top,d=d.left;var f,g;a=vVc({chartGroupId:this.chartGroupId,chartId:this.chartId,height:a,width:b,offsets:{top:(f=c)!=null?f:0,left:(g=d)!=null?g:0}});e?MF(this,[a]):this.store.dispatch(a)};OG.prototype.trackByIndex=function(a){return a};
OG.prototype.scheduleStateChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};OG.prototype.scheduleChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};
da.Object.defineProperties(OG.prototype,{disableZoomAndPan:{configurable:!0,enumerable:!0,set:function(){}},timezoneOffset:{configurable:!0,enumerable:!0,set:function(a){this.timezoneOffsetInternal=a},get:function(){if(this.testingTimezoneOffset)return this.testingTimezoneOffset;var a;return(a=this.timezoneOffsetInternal)!=null?a:this.defaultTimezone}}});OG.sharedWindowScrollCapture$=re(window,"scroll",{passive:!0,capture:!0}).pipe(Df(250),zla());
OG.\u0275fac=function(a){return new (a||OG)(Ye(Jd),Ye(ZF),Ye(GYc),Ye(di),Ye(MG),Ye(LG),Ye(YF),Ye(IG),Ye(Rg),Ye(pYc,8))};
OG.\u0275cmp=D({type:OG,selectors:[["ac-chart"]],hostAttrs:["draggable","true",1,"ac-chart","ac-composable-chart"],hostVars:4,hostBindings:function(a,b){a&2&&vg("height",b.height,"px")("width",b.width,"px")},inputs:{disableZoomAndPan:"disableZoomAndPan",timezoneOffset:"timezoneOffset",timeZoneId:"timeZoneId",height:"height",width:"width",featureFlags:"featureFlags",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",useChartGroupHorizontalMargins:"useChartGroupHorizontalMargins",yAxisOrientation:"yAxisOrientation",
refactorA11yNavInstructions:"refactorA11yNavInstructions",valueStrategy:"valueStrategy"},outputs:{anyLayerLoading:"anyLayerLoading"},features:[Gg([{provide:LF,useExisting:OG}]),Gf,bx],ngContentSelectors:["*"],decls:8,vars:8,consts:[[3,"ve","veMutable"],[1,"ac-screen-reader-only-content",3,"id"]],template:function(a,b){a&1&&(cg(),K(0,"figure",0)(1,"div",1)(2,"p"),Q(3),L()(),K(4,"div",1)(5,"p"),Q(6),L()(),dg(7),L());a&2&&(I("ve",b.chartVe)("veMutable",!0),Kf("aria-labelledby",b.labelledById)("aria-describedby",
b.describedById),B(),I("id",b.labelledById),B(2),yg(b.title),B(),I("id",b.describedById),B(2),yg(b.keyboardNavInstructions))},dependencies:[aD],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{position:relative;width:100%;height:100%;display:block}[_nghost-%COMP%]   figure[_ngcontent-%COMP%]{margin:0}.ac-composable-chart[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}/*# sourceMappingURL=ac_chart_style.css.map */"],
changeDetection:0});var LYc=Zj(pk,function(a){return a.map}),MYc=new ik({getKey:ok,getSelector:function(a){var b=a.chartGroupId;return ee(Zj(LYc,function(c){return c.entities[b]}))}});var NYc={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},OYc=0,PG=function(a,b){zF.call(this,a);var c=this;this.deprecateOmnibusStateObservable=b;this.destroyed=new sf;this.logger=null;this.extensionId="ac-extension-"+OYc++;this.inputScopeSubject=new Nj({});var d;this.enclosingChart=(d=p(LF,{optional:!0}))!=null?d:void 0;var e;this.enclosingLayer=(e=p(sG,{optional:!0}))!=null?e:void 0;var f,g;a=((f=this.enclosingLayer)==null?void 0:f.scopeObservable)||((g=this.enclosingChart)==
null?void 0:g.scopeObservable)||ee({});this.scopeObservable=le([a,this.inputScopeSubject]).pipe(A(function(C){var H=m(C);C=H.next().value;H=H.next().value;return Object.assign({},NYc,C,H)}));this.defaultStateSelectionObservables=b?{brush:ee(void 0),colorScale:ee(void 0),error:ee(void 0),focus:ee(void 0),lastInteraction:ee(void 0),loading:ee(void 0),map:ee(void 0),resize:ee(void 0),seriesSelection:ee(void 0),spec:ee(void 0),xAxisPin:ee(void 0),timeSeries:ee(void 0),xAxis:ee(void 0),yAxis:ee(void 0)}:
{brush:this.selectorFactoryToObservable(bWc),colorScale:this.selectorFactoryToObservable(tWc),error:this.selectorFactoryToObservable(zWc),focus:this.selectorFactoryToObservable(dTc),lastInteraction:this.selectorFactoryToObservable(DWc),loading:this.selectorFactoryToObservable(HWc),map:this.selectorFactoryToObservable(MYc),resize:this.selectorFactoryToObservable(fTc),seriesSelection:this.selectorFactoryToObservable(JWc),spec:this.selectorFactoryToObservable(LWc),xAxisPin:this.selectorFactoryToObservable(fUc),
timeSeries:this.selectorFactoryToObservable(eUc),xAxis:this.selectorFactoryToObservable(ZWc),yAxis:this.selectorFactoryToObservable(qG)};var k,l,r,w,x;this.context={scope:{chartGroupId:((k=this.scope)==null?void 0:k.chartGroupId)||"",chartId:((l=this.scope)==null?void 0:l.chartId)||"",yAxisId:((r=this.scope)==null?void 0:r.yAxisId)||"right",xAxisId:((w=this.scope)==null?void 0:w.xAxisId)||"chart_group",layerId:((x=this.scope)==null?void 0:x.layerId)||""},state:null};le([this.scopeObservable,this.stateObservable]).pipe(Bf(this.destroyed)).subscribe(function(C){var H=
m(C);C=H.next().value;H=H.next().value;c.context.scope=C;c.context.state=H.currentValue})};Y(PG,zF);h=PG.prototype;
h.setup=function(a){var b=this;this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),zF.prototype.setup.call(this,{stateSelectionObservables:a}),this.scopeObservable.pipe(zf(null),vf(),A(gk),Ef(this.stateObservable),Bf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)}),this.setupStateChangeHandler(a.resize,function(c,d){c=hk(c,function(e){return e.resize});b.onResizeChange(c,
d)},"resize"),this.setupStateChangeHandler(a.xAxis,function(c,d){c=hk(c,function(e){return e.xAxis});b.onXAxisChange(c,d)},"xAxis"),this.setupStateChangeHandler(a.yAxis,function(c,d){c=hk(c,function(e){return e.yAxis});b.onYAxisChange(c,d)},"yAxis"),this.setupStateChangeHandler(a.error,function(c,d){c=hk(c,function(e){return e.error});b.onErrorChange(c,d)},"error"),this.setupStateChangeHandler(a.loading,function(c,d){c=hk(c,function(e){return e.loading});b.onLoadingChange(c,d)},"loading"),this.setupStateChangeHandler(a.brush,
function(c,d){c=hk(c,function(e){return e.brush});b.onBrushChange(c,d)},"brush"),this.setupStateChangeHandler(a.seriesSelection,function(c,d){c=hk(c,function(e){return e.seriesSelection});b.onSeriesSelectionChange(c,d)},"seriesSelection"),this.setupStateChangeHandler(a.xAxisPin,function(c,d){c=hk(c,function(e){return e.xAxisPin});b.onXAxisPinChange(c,d)},"xAxisPin"),this.setupStateChangeHandler(a.timeSeries,function(c,d){c=hk(c,function(e){return e.timeSeries});b.onTimeSeriesChange(c,d)},"timeSeries"),
this.setupStateChangeHandler(a.focus,function(c,d){c=hk(c,function(e){return e.focus});b.onFocusChange(c,d)},"focus"),this.setupStateChangeHandler(a.lastInteraction,function(c,d){c=hk(c,function(e){return e.lastInteraction});b.onLastInteractionChange(c,d)},"lastInteraction"),this.setupStateChangeHandler(a.colorScale,function(c,d){c=hk(c,function(e){return e.colorScale});b.onColorScaleChange(c,d)},"colorScale"),this.setupStateChangeHandler(a.spec,function(c){c=hk(c,function(d){return d.spec});b.onChartSpecChange(c)},
"spec"),this.setupStateChangeHandler(a.map,function(c,d){c=hk(c,function(e){return e.map});b.onMapChange(c,d)},"map"))};h.setupStateChangeHandler=function(a,b,c){var d=this;if(this.setupCalled&&a){var e=null;a.pipe(Xza(this.stateObservable),Bf(this.destroyed)).subscribe(function(f){f=m(f).next().value;var g={previousValue:e,currentValue:f.currentValue};e=f.currentValue;d.scheduleStateChangeHandler(g,d.context,b,d.extensionId+"-"+c,d.context.scope)})}};h.onScopeChange=function(){};
h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onLastInteractionChange=function(){};h.onColorScaleChange=function(){};h.onChartSpecChange=function(){};h.onMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a,b,c){c(a,b)};h.ngOnChanges=function(a){"scope"in a&&this.inputScopeSubject.next(Object.assign({},this.scope))};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};PG.\u0275fac=function(){Ze()};PG.\u0275dir=df({type:PG,inputs:{scope:"scope"},features:[Gf,bx]});var GLa={chartId:"",byLayer:{ids:[],entities:{}}},PYc={layerId:"",yAxisId:"right",xAxisId:"chart_group",valueType:1,unit:null,bySeries:{ids:[],entities:{}}},QYc={seriesId:"",name:"",atTimeKey:{}};var RYc={chartGroupId:"",xPos:null,locked:!1,trackingNow:!1,directionOfTravel:0};var SYc=["hoverContent"],QG=function(a,b,c,d,e,f,g){sG.call(this,a,b,c);var k=this;this.queueService=d;this.overlay=e;this.viewContainerRef=f;this.ngZone=g;this.mouseInBounds=new Nj(!1);this.focusAndXAxisPinInChart=new Nj(!1);this.isPinned$=new Nj(!1);this.showHovercardOverrideSubject=new Nj("no_override");this.shouldShowSeriesActionText$=new Nj(!0);this.dataSubject=new Nj(null);this.defaultShowHovercard=le([this.mouseInBounds,this.focusAndXAxisPinInChart]).pipe(Ef(this.isPinned$),Af(function(l){var r=
m(l);var w=m(r.next().value);l=w.next().value;w=w.next().value;return r.next().value?ee(!0):w?ee(!0):l?TYc(k).pipe(A(function(x){return!x})):ee(!1)}));this.globalHoverDisabled=this.isShowing=!1;this.showHovercard=this.showHovercardOverrideSubject.pipe(Af(function(l){return UYc(k,l)}),xf({bufferSize:1,refCount:!0}),pf(),Cf(function(l){k.isShowing=l}),xk(this.ngZone));this.timeKeySubject=new Nj(1);this.timeKeyObservable=this.timeKeySubject.pipe(pf());this.globalOverlayPositionStrategy=this.overlay.position().global();
this.overlayRef=this.overlay.create(new ei({positionStrategy:this.globalOverlayPositionStrategy,scrollStrategy:this.overlay.scrollStrategies.close()}));this.setup({dataObservable:this.dataSubject});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(l){if(!k.globalHoverDisabled)k.onMouseEnter(l)});NF(this.chart,"chart",function(l){if(k.mouseInBounds.value&&!k.globalHoverDisabled)k.onMouseMove(l);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){k.onMouseLeave()});
this.showHovercard.pipe(we(function(l){return!l}),Bf(this.destroyed)).subscribe(function(){return void k.detachHovercard()})};Y(QG,sG);h=QG.prototype;h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);AF(this,Hza).pipe(Bf(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
h.ngAfterViewInit=function(){this.connectedOverlayPositionStrategy=this.connectedOverlayPositionAnchor?zz(Fz(this.overlay.position(),this.connectedOverlayPositionAnchor),[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"end",overlayY:"bottom"}]):void 0};h.onFocusChange=function(a,b){VYc(this,b);WYc(this,b)};
h.onXAxisPinChange=function(a,b){VYc(this,b)};h.onLastInteractionChange=function(a,b){WYc(this,b)};
var WYc=function(a,b){var c=b.state;b=b.scope;if(c){var d=c.focus,e=c.resize,f=c.lastInteraction;c=c.xAxisPin;d&&e&&f&&c&&!a.isPinned$.value&&(f=ml(b,f),d.chartGroupId===b.chartGroupId&&d.chartId===b.chartId&&f.focus!==null&&f.focus.x!==null&&f.focus.y!==null&&e.offsets?(b=new MouseEvent("mousemove",{clientX:f.focus.x+e.offsets.left,clientY:f.focus.y+e.offsets.top}),a.reposition(b,0,c.directionOfTravel)):(a.isPinned$.next(!1),a.detachHovercard()))}};h=QG.prototype;h.onAttach=function(){};
h.onDetach=function(){};h.onMouseEnter=function(a){this.mouseInBounds.next(!0);this.reposition(a,1)};h.onMouseMove=function(a){this.reposition(a,1)};h.onMouseLeave=function(){this.mouseInBounds.next(!1)};
h.reposition=function(a,b,c,d){var e=this;b=b===void 0?1:b;c=c===void 0?0:c;this.withLatest(function(f){f=f.state;if(f!=null&&f.resize&&!e.isPinned$.value)if(f=e.positionStrategy(a,{height:e.overlayRef.overlayElement.offsetHeight,width:e.overlayRef.overlayElement.offsetWidth},f.resize,c,d),f===void 0)e.detachHovercard();else{e.timeKeySubject.next(b);e.overlayRef.hasAttached()||e.attachHovercard();if(d&&e.connectedOverlayPositionStrategy){tDc(e.overlayRef,e.connectedOverlayPositionStrategy);var g=
e.connectedOverlayPositionStrategy;g._offsetX=f.x;g._offsetY=f.y}else tDc(e.overlayRef,e.globalOverlayPositionStrategy),e.globalOverlayPositionStrategy.top(f.y+"px").left(f.x+"px");e.overlayRef.updatePosition()}})};h.onResizeChange=function(a){this.isPinned$.value&&(a=a.currentValue,(a==null?void 0:a.height)===0||(a==null?void 0:a.width)===0)&&(this.isPinned$.next(!1),this.detachHovercard())};
h.attachHovercard=function(){this.overlayRef.hasAttached()||(this.overlayRef.attach(new Iz(this.hoverContent,this.viewContainerRef)),this.onAttach())};h.detachHovercard=function(){this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.onDetach())};h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);this.detachHovercard()};
var UYc=function(a,b){switch(b){case "no_override":return a.defaultShowHovercard;case "show":return ee(!0);case "hide":return ee(!1);default:return wb(b)}},VYc=function(a,b){var c=b.state;b=b.scope;if(c){var d=c.focus;c=(c=c.xAxisPin)&&c.locked&&c.xPos&&c.chartGroupId===b.chartGroupId;b=!(!d||d.chartGroupId!==b.chartGroupId||d.chartId!==b.chartId||!c);a.focusAndXAxisPinInChart.value!==b&&a.focusAndXAxisPinInChart.next(b)}},TYc=function(a){return a.scopeObservable.pipe(Af(function(b){return a.store.select(NBa(b))}),
xf({bufferSize:1,refCount:!0}),A(function(b){return!(b==null||!b.brushing)}))};da.Object.defineProperties(QG.prototype,{showHovercardOverride:{configurable:!0,enumerable:!0,set:function(a){this.showHovercardOverrideSubject.next(a)}}});QG.\u0275fac=function(a){return new (a||QG)(Ye(Jd),Ye(LF),Ye(ZF),Ye(MG),Ye(Nz),Ye(fg),Ye(Rg))};
QG.\u0275dir=df({type:QG,viewQuery:function(a,b){a&1&&hg(SYc,5);if(a&2){var c;lg(c=mg())&&(b.hoverContent=c.first)}},inputs:{positionStrategy:"positionStrategy",connectedOverlayPositionAnchor:"connectedOverlayPositionAnchor",showHovercardOverride:"showHovercardOverride"},features:[Gf]});var XYc=[[["","prefix",""]],[["","suffix",""]]],RG=function(){PG.call(this,p(ZF));var a=this;this.timeKey=1;this.updateDebouncedTriggerSubject=new sf;this.dateFormatStrategy=tCa;this.numericFormatStrategy=uCa;this.dateTimeSubject=new Nj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Nj(Fk(lAa));this.queueService=p(MG);this.formattedDateTimeObservable=le([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;if(c.unit==="ms_since_epoch"){var e,
f,g;return c.cursor?a.dateFormatStrategy(new Date((e=c.cursor)!=null?e:""),c.min?new Date((f=c.min)!=null?f:""):null,c.max?new Date((g=c.max)!=null?g:""):null,d):""}return a.numericFormatStrategy(c.cursor,c.min,c.max)}));this.setup({});var b=p(QG,{optional:!0});b&&b.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(c){a.timeKey=c;a.withLatest(function(d){a.update(d)})});p(Rg).runOutsideAngular(function(){a.updateDebouncedTriggerSubject.pipe(Df(250)).pipe(Bf(a.destroyed)).subscribe(function(){a.withLatest(function(c){a.update(c)})})})};
Y(RG,PG);RG.\u0275dir=PG.\u0275dir;h=RG.prototype;h.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};h.onXAxisChange=function(a){if(Vk(a)||Wk(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Gk(c,a);this.timeZoneSubject.next(c)}};h.onXAxisPinChange=function(){this.timeKey===0&&this.updateDebouncedTriggerSubject.next()};h.onTimeSeriesChange=function(){this.updateDebouncedTriggerSubject.next()};
h.update=function(a){var b=a.state;if(b){var c=b.xAxis,d=b.resize,e=b.lastInteraction,f=b.xAxisPin;b=b.timeSeries;if(c&&d&&e&&f){a=ml(a.scope,e);d=Yk(c,d.margins.left,d.width-d.margins.right);a:{switch(this.timeKey){case 0:var g;var k=(g=f==null?void 0:f.xPos)!=null?g:null;break a;case 2:g=(k=a.click)==null?void 0:k.x;k=d&&g?d(g):null;break a;case 1:var l;g=(l=a.hover)==null?void 0:l.x;k=d&&g?d(g):null;break a;case 3:k=c.max;break a;case 4:var r;g=(r=a.multiselectAnchor)==null?void 0:r.x;k=d&&g?d(g):
null;break a;default:wb(this.timeKey,"unknown data source")}k=void 0}g=k;if(g!==null){d=b==null?void 0:b.byLayer.ids;b=b==null?void 0:b.byLayer.entities;l=k=null;f=r=Infinity;if((d==null?0:d.length)&&b)for(d=m(d),a=d.next();!a.done;a=d.next())if((e=b[a.value])&&(e.valueType===1||e.valueType===2)){var w=void 0,x=void 0,C=void 0;a=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x0;C=x=w=void 0;e=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?
void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x;a&&e?(w=Math.abs(e-g)+Math.abs(a-g),w<f&&(l=a,k=e,f=w)):e&&f===Infinity&&(a=Math.abs(e-g),a<r&&(k=e,r=a))}this.dateTimeSubject.next({cursor:g,max:k,min:l,unit:c.unit})}}}};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
da.Object.defineProperties(RG.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.updateDebouncedTriggerSubject.next()}}});RG.\u0275fac=function(a){return new (a||RG)};
RG.\u0275cmp=D({type:RG,selectors:[["ac-date-time"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy"},features:[Gf],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(cg(XYc),F(0,vCa,4,1,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[Lx],styles:[".date-time-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_date_time.css.map */"]});var SG=Vj("[AC] Set selected series for chart and layer",Wj()),TG=Vj("[AC] Clear selected series for chart and layer",Wj()),YYc=Vj("[AC] Add a selected series for chart and layer",Wj()),ZYc=Vj("[AC] Remove a selected series for chart and layer",Wj()),UG=Vj("[AC] Set hovered series for chart and layer",Wj()),$Yc=Vj("[AC] Set last clicked series for chart and layer",Wj()),aZc=Vj("[AC] Set multiselect anchor series for chart and layer",Wj()),bZc=Vj("[AC] Set tooltip annotations for chart and layer",
Wj()),cZc=Vj("[AC] Set selected annotations for chart and layer",Wj());var dZc="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0;m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835;m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82;m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28;m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28;m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19;m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94;m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158;m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19;m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7;m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464;m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36".split(";");
Array.from((new Map([["circle","m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"],["square","m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835"],["diamond","m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82"],["down_triangle","m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28"],["up_triangle","m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28"],["hill","m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19"],["plus",
"m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94"],["cross","m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158"],["valley","m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19"],["star","m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7"],
["pentagon","m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464"],["marker","m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36"]])).entries()).map(function(a){var b=m(a);a=b.next().value;return[b.next().value,a]});var eZc={height:28,width:28};var ICa=function(a,b){return{fill:a,stroke:b}},fZc=new Map([[0,"line"],[1,"line-with-area"],[2,"square"],[3,"square"],[4,"band-max"],[5,"band-min"],[6,"threshold"],[7,"square"]]),gZc=0,VG=function(){this.keyShape="circle";this.color="var(--ac-sys-color-extensions-on-surface, #202124)";this.hollow=this.condensed=!1;this.clipPathId="ac-key-clip-path-"+gZc++;this.defaultCircleShape="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"};
da.Object.defineProperties(VG.prototype,{drawnAs:{configurable:!0,enumerable:!0,set:function(a){this.keyShape=a!==void 0?fZc.get(a)||"circle":"circle"}}});VG.\u0275fac=function(a){return new (a||VG)};
VG.\u0275cmp=D({type:VG,selectors:[["ac-key"]],hostAttrs:["aria-hidden","true"],inputs:{drawnAs:"drawnAs",color:"color",shape:"shape",condensed:"condensed",hollow:"hollow",lineDash:"lineDash"},decls:3,vars:2,consts:[["condensedIcon",""],["circle",""],["class","icon",3,"ngSwitch","ngStyle",4,"ngIf","ngIfElse"],[1,"icon",3,"ngSwitch","ngStyle"],["class","line","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","line-with-area","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","band-max","viewBox","0 0 12 12",
4,"ngSwitchCase"],["class","band-min","viewBox","0 0 12 12",4,"ngSwitchCase"],["class","threshold","viewBox","0 0 12 12",4,"ngSwitchCase"],["class","square","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","circle","viewBox","0 0 12 12",4,"ngSwitchDefault"],["viewBox","0 0 24 12",1,"line"],["d","M 0 6 H 18","stroke-width","2"],["transform","translate(18 6) scale(0.6 0.6)",4,"ngIf"],["transform","translate(18 6) scale(0.6 0.6)"],["stroke-width","4","stroke","white"],["viewBox","0 0 24 12",1,"line-with-area"],
"d;M 0 6 H 18 V 18 H 0 Z;fill-rule;evenodd;fill-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"band-max"],"d;M 0 4 H 12 V 12 H 0 Z;fill-rule;evenodd;fill-opacity;0.12".split(";"),"d;M 0 4 H 12;stroke-width;2;stroke-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"band-min"],"d;M 0 8 H 12 V 0 H 0 Z;fill-rule;evenodd;fill-opacity;0.12".split(";"),"d;M 0 8 H 12;stroke-width;2;stroke-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"threshold"],"d;M 0 6 H 12;stroke-width;2;stroke-dasharray;3 1".split(";"),
["viewBox","0 0 24 12",1,"square"],["d","M 3 0 h 18 v 12 h -18 Z","fill-rule","evenodd",4,"ngIf"],["transform","translate(12 6) scale(0.6 0.6)",4,"ngIf"],["d","M 3 0 h 18 v 12 h -18 Z","fill-rule","evenodd"],["transform","translate(12 6) scale(0.6 0.6)"],["viewBox","0 0 12 12",1,"circle"],"cx 6 cy 6 r 6 fill-rule evenodd".split(" "),[1,"icon","condensed",3,"ngStyle"],["viewBox","0 0 12 12",4,"ngIf","ngIfElse"],["viewBox","0 0 12 12"],["transform","translate(6 6) scale(0.6 0.6)"],["stroke-width","4"]],
template:function(a,b){a&1&&E(0,JCa,8,11,"i",2)(1,MCa,4,6,"ng-template",null,0,Mg);a&2&&(a=qg(2),I("ngIf",!b.condensed)("ngIfElse",a))},dependencies:[Fx,Jx,Gx,Hx,Ix],styles:["i[_ngcontent-%COMP%]{position:relative;display:block;width:24px;height:12px;line-height:0}i[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}i.condensed[_ngcontent-%COMP%]{width:12px}\n/*# sourceMappingURL=ac_key.css.map */"],changeDetection:0});var hZc=new fd("MAT_MENU_PANEL");var iZc=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],WG=function(){this._elementRef=p(Jd);this._document=p(Sh);this._focusMonitor=p(Hy);this._parentMenu=p(hZc,{optional:!0});this._changeDetectorRef=p(ux);this.role="menuitem";this.disableRipple=this.disabled=!1;this._hovered=new sf;this._focused=new sf;this._triggersSubmenu=this._highlighted=!1;p($h).load(Yz);var a,b;(a=this._parentMenu)==null||(b=a.addItem)==null||b.call(a,this)};h=WG.prototype;
h.focus=function(a,b){this._focusMonitor&&a?Iy(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};h.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};h.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};
h._getTabIndex=function(){return this.disabled?"-1":"0"};h._getHostElement=function(){return this._elementRef.nativeElement};h._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};h._handleMouseEnter=function(){this._hovered.next(this)};h.getLabel=function(){for(var a=this._elementRef.nativeElement.cloneNode(!0),b=a.querySelectorAll("mat-icon, .material-icons"),c=0;c<b.length;c++)b[c].remove();var d;return((d=a.textContent)==null?void 0:d.trim())||""};
h._setHighlighted=function(a){this._highlighted=a;this._changeDetectorRef.markForCheck()};h._setTriggersSubmenu=function(a){this._triggersSubmenu=a;this._changeDetectorRef.markForCheck()};h._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};WG.\u0275fac=function(a){return new (a||WG)};
WG.\u0275cmp=D({type:WG,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&&(Kf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null),wg("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{role:"role",
disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g]},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&&(cg(iZc),dg(0),K(1,
"span",0),dg(2,1),L(),M(3,"div",1),F(4,NCa,2,0,":svg:svg",2));a&2&&(B(3),I("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(),G(b._triggersSubmenu?4:-1))},dependencies:[aA],encapsulation:2,changeDetection:0});var jZc=new fd("MatMenuContent"),XG=function(){this._template=p(eg);this._appRef=p(Wg);this._injector=p(Ae);this._viewContainerRef=p(fg);this._document=p(Sh);this._changeDetectorRef=p(ux);this._attached=new sf};
XG.prototype.attach=function(a){a=a===void 0?{}:a;this._portal||(this._portal=new Iz(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new gi(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()};
XG.prototype.detach=function(){var a;((a=this._portal)==null?0:a.isAttached)&&this._portal.detach()};XG.prototype.ngOnDestroy=function(){this.detach();var a;(a=this._outlet)==null||a.dispose()};XG.\u0275fac=function(a){return new (a||XG)};XG.\u0275dir=df({type:XG,selectors:[["ng-template","matMenuContent",""]],features:[Gg([{provide:jZc,useExisting:XG}])]});var kZc=new fd("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),YG=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(ux);this._injector=p(Ae);this._animationsDisabled=ni();this._directDescendantItems=new gg;this._classList={};this._panelAnimationState="void";this._animationDone=new sf;this._isAnimating=ng.apply(null,[!1].concat(q([])));this.close=this.closed=
new Ui;this.panelId=p(bi).getId("mat-menu-panel-");var a=p(kZc);this.overlayPanelClass=a.overlayPanelClass||"";this._xPosition=a.xPosition;this._yPosition=a.yPosition;this.backdropClass=a.backdropClass;this.overlapTrigger=a.overlapTrigger;this.hasBackdrop=a.hasBackdrop};h=YG.prototype;h.ngOnInit=function(){this.setPositionClasses()};
h.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=jz(WCc(gz(new mz(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(zf(this._directDescendantItems),Af(function(b){return ve.apply(null,q(b.map(function(c){return c._focused})))})).subscribe(function(b){return kz(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=a._keyManager,d;
a._panelAnimationState==="enter"&&((d=c.activeItem)==null?0:d._hasFocus())&&(b=b.toArray(),d=Math.max(0,Math.min(b.length-1,c.activeItemIndex||0)),b[d]&&!b[d].disabled?c.setActiveItem(d):c.setNextItemActive())})};h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._directDescendantItems.destroy();this.closed.complete();var b;(b=this._firstItemFocusRef)==null||b.destroy();clearTimeout(this._exitFallbackTimeout)};
h._hovered=function(){return this._directDescendantItems.changes.pipe(zf(this._directDescendantItems),Af(function(a){return ve.apply(null,q(a.map(function(b){return b._hovered})))}))};h.addItem=function(){};h.removeItem=function(){};
h._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:Gh(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||ZCc(c,"keyboard"),c.onKeydown(a)}};
var lZc=function(a,b){b=b===void 0?"program":b;var c;(c=a._firstItemFocusRef)==null||c.destroy();a._firstItemFocusRef=Ge(function(){var d=a._resolvePanel();if(!d||!d.contains(document.activeElement)){var e=a._keyManager;ZCc(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}},{injector:a._injector})};h=YG.prototype;
h.setPositionClasses=function(a,b){a=a===void 0?this.xPosition:a;b=b===void 0?this.yPosition:b;var c={};this._classList=Object.assign({},this._classList,(c["mat-menu-before"]=a==="before",c["mat-menu-after"]=a==="after",c["mat-menu-above"]=b==="above",c["mat-menu-below"]=b==="below",c));this._changeDetectorRef.markForCheck()};
h._onAnimationDone=function(a){var b=a==="_mat-menu-exit";if(b||a==="_mat-menu-enter")b&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(b?"void":"enter"),this._isAnimating.set(!1)};h._onAnimationStart=function(a){a!=="_mat-menu-enter"&&a!=="_mat-menu-exit"||this._isAnimating.set(!0)};
h._setIsOpen=function(a){var b=this;this._panelAnimationState=a?"enter":"void";if(a){if(this._keyManager.activeItemIndex===0){var c=this._resolvePanel();c&&(c.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(function(){return b._onAnimationDone("_mat-menu-exit")},200));this._animationsDisabled&&setTimeout(function(){b._onAnimationDone(a?"_mat-menu-enter":"_mat-menu-exit")});this._changeDetectorRef.markForCheck()};
h._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(zf(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));kg(a._directDescendantItems)})};h._resolvePanel=function(){var a=null;this._directDescendantItems.length&&(a=this._directDescendantItems.first._getHostElement().closest('[role="menu"]'));return a};
da.Object.defineProperties(YG.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}}});YG.\u0275fac=function(a){return new (a||YG)};
YG.\u0275cmp=D({type:YG,selectors:[["mat-menu"]],contentQueries:function(a,b,c){a&1&&(ig(c,jZc,5),ig(c,WG,5),ig(c,WG,4));if(a&2){var d;lg(d=mg())&&(b.lazyContent=d.first);lg(d=mg())&&(b._allItems=d);lg(d=mg())&&(b.items=d)}},viewQuery:function(a,b){a&1&&hg(eg,5);if(a&2){var c;lg(c=mg())&&(b.templateRef=c.first)}},hostVars:3,hostBindings:function(a){a&2&&Kf("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",$g],hasBackdrop:[2,"hasBackdrop","hasBackdrop",function(a){return a==null?null:$g(a)}],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Gg([{provide:hZc,useExisting:YG}])],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&&(cg(),If(0,OCa,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{border-top-color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],
encapsulation:2,changeDetection:0});var mZc=new fd("mat-menu-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Uh(a)}}}),ZG=new WeakMap,$G=function(a){this._canHaveBackdrop=a;this._element=p(Jd);this._viewContainerRef=p(fg);this._menuItemInstance=p(WG,{optional:!0,self:!0});this._dir=p(ci,{optional:!0});this._focusMonitor=p(Hy);this._ngZone=p(Rg);this._injector=p(Ae);this._scrollStrategy=p(mZc);this._changeDetectorRef=p(ux);this._animationsDisabled=ni();this._overlayRef=null;this._menuOpen=
!1;this._menuCloseSubscription=this._closingActionsSubscription=Rd.EMPTY;this._openedBy=void 0;var b=p(hZc,{optional:!0});this._parentMaterialMenu=b instanceof YG?b:void 0};h=$G.prototype;h.ngOnDestroy=function(){this._menu&&this._ownsMenu(this._menu)&&ZG.delete(this._menu);var a;(a=this._pendingRemoval)==null||a.unsubscribe();this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)};
h._triggersSubmenu=function(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)};h._closeMenu=function(){var a;(a=this._menu)==null||a.close.emit()};
h._openMenu=function(a){var b=this,c=this._menu;if(!this._menuOpen&&c){var d;(d=this._pendingRemoval)==null||d.unsubscribe();d=ZG.get(c);ZG.set(c,this);d&&d!==this&&d._closeMenu();d=this._createOverlay(c);var e=d.getConfig(),f=e.positionStrategy;this._setPosition(c,f);e.hasBackdrop=this._canHaveBackdrop?c.hasBackdrop==null?!this._triggersSubmenu():c.hasBackdrop:!1;if(!d.hasAttached()){d.attach(this._getPortal(c));var g;(g=c.lazyContent)==null||g.attach(this.menuData)}this._closingActionsSubscription=
this._menuClosingActions().subscribe(function(){return b._closeMenu()});c.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0;c.direction=this.dir;a&&lZc(c,this._openedBy||"program");this._setIsMenuOpen(!0);c instanceof YG&&(c._setIsOpen(!0),c._directDescendantItems.changes.pipe(Bf(c.close)).subscribe(function(){wDc(ADc(f,!1));ADc(f,!0)}))}};h.focus=function(a,b){this._focusMonitor&&a?Iy(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};
h._destroyMenu=function(a){var b=this._overlayRef,c=this._menu;if(b&&this.menuOpen){this._closingActionsSubscription.unsubscribe();var d;(d=this._pendingRemoval)==null||d.unsubscribe();if(c instanceof YG&&this._ownsMenu(c))this._pendingRemoval=c._animationDone.pipe(nf(1)).subscribe(function(){b.detach();if(!ZG.has(c)){var f;(f=c.lazyContent)==null||f.detach()}}),c._setIsOpen(!1);else{b.detach();var e;c==null||(e=c.lazyContent)==null||e.detach()}c&&this._ownsMenu(c)&&ZG.delete(c);!this.restoreFocus||
a!=="keydown"&&this._openedBy&&this._triggersSubmenu()||this.focus(this._openedBy);this._openedBy=void 0;this._setIsMenuOpen(!1)}};h._setIsMenuOpen=function(a){a!==this._menuOpen&&((this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(a),this._changeDetectorRef.markForCheck())};
h._createOverlay=function(a){var b=this;if(!this._overlayRef){var c=this._getOverlayConfig(a);this._subscribeToPositions(a,c.positionStrategy);this._overlayRef=li(this._injector,c);this._overlayRef.keydownEvents().subscribe(function(d){b._menu instanceof YG&&b._menu._handleKeydown(d)})}return this._overlayRef};
h._getOverlayConfig=function(a){return new ei({positionStrategy:BDc(yDc(ADc(Yh(this._injector,this._element))),".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:a.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:a.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})};
h._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){c._ngZone.run(function(){a.setPositionClasses(d.connectionPair.overlayX==="start"?"after":"before",d.connectionPair.overlayY==="top"?"below":"above")})})};
h._setPosition=function(a,b){var c=m(a.xPosition==="before"?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=m(a.yPosition==="above"?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var g=m([f,e]),k=g.next().value;g=g.next().value;var l=m([d,c]),r=l.next().value;l=l.next().value;var w=0;this._triggersSubmenu()?(l=d=a.xPosition==="before"?"start":"end",c=r=d==="end"?"start":"end",this._parentMaterialMenu&&(this._parentInnerPadding==null&&(this._parentInnerPadding=
(a=this._parentMaterialMenu.items.first)?a._getHostElement().offsetTop:0),w=f==="bottom"?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k=f==="top"?"bottom":"top",g=e==="top"?"bottom":"top");zz(b,[{originX:d,originY:k,overlayX:r,overlayY:f,offsetY:w},{originX:c,originY:k,overlayX:l,overlayY:f,offsetY:w},{originX:d,originY:g,overlayX:r,overlayY:e,offsetY:-w},{originX:c,originY:g,overlayX:l,overlayY:e,offsetY:-w}])};
h._menuClosingActions=function(){var a=this,b=this._getOutsideClickStream(this._overlayRef),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:ee(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(we(function(f){return a._menuOpen&&f!==a._menuItemInstance})):ee();return ve(b,d,e,c)};h._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new Iz(a.templateRef,this._viewContainerRef));return this._portal};
h._ownsMenu=function(a){return ZG.get(a)===this};
da.Object.defineProperties($G.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"}}});$G.\u0275fac=function(){Ze()};$G.\u0275dir=df({type:$G});var aH=function(){$G.call(this,!0);var a=this;this._hoverSubscription=Rd.EMPTY;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Ui;this.onMenuClose=this.menuClosed=new Ui;this._cleanupTouchstart=p(di).listen(this._element.nativeElement,"touchstart",function(b){hra(b)||(a._openedBy="touch")},{passive:!0})};Y(aH,$G);h=aH.prototype;h.openMenu=function(){this._openMenu(!0)};h.closeMenu=function(){this._closeMenu()};h.updatePosition=function(){var a;(a=this._overlayRef)==null||a.updatePosition()};
h.ngAfterContentInit=function(){this._handleHover()};h.ngOnDestroy=function(){$G.prototype.ngOnDestroy.call(this);this._cleanupTouchstart();this._hoverSubscription.unsubscribe()};h._getOverlayOrigin=function(){return this._element};h._getOutsideClickStream=function(a){return a.backdropClick()};h._handleMousedown=function(a){gra(a)||(this._openedBy=a.button===0?"mouse":void 0,$G.prototype._triggersSubmenu.call(this)&&a.preventDefault())};
h._handleKeydown=function(a){a=a.keyCode;if(a===13||a===32)this._openedBy="keyboard";$G.prototype._triggersSubmenu.call(this)&&(a===39&&this.dir==="ltr"||a===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())};h._handleClick=function(a){$G.prototype._triggersSubmenu.call(this)?(a.stopPropagation(),this.openMenu()):this.menuOpen?this.closeMenu():this.openMenu()};
h._handleHover=function(){var a=this;$G.prototype._triggersSubmenu.call(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(function(b){var c;b!==a._menuItemInstance||b.disabled||((c=a._parentMaterialMenu)==null?void 0:c._panelAnimationState)==="void"||(a._openedBy="mouse",a._openMenu(!1))}))};
da.Object.defineProperties(aH.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}}});aH.\u0275fac=function(a){return new (a||aH)};
aH.\u0275dir=df({type:aH,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&&Kf("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:[Gf]});var bH=function(){};bH.\u0275fac=function(a){return new (a||bH)};bH.\u0275mod=cf({type:bH});bH.\u0275inj=Hc({imports:[dA,Qz,Ey,wz]});var nZc=["streamActionsMenuContents"],cH=function(a){this.cdr=a;this.streamActions=[];this.filteredStreamActions=[]};cH.prototype.ngOnChanges=function(a){var b=this;if(a.streamMetadata||a.streamActions)this.filteredStreamActions=this.streamActions.filter(function(c){return b.streamMetadata?c.relevant(b.streamMetadata):!1}),this.streamActionMenu&&this.streamActionMenu.clear(),oZc(this),this.cdr.detectChanges()};
cH.prototype.ngAfterViewInit=function(){var a;this.streamActionMenu&&((a=this.filteredStreamActions)==null?0:a.length)&&(this.streamActionMenu.clear(),oZc(this),this.cdr.detectChanges())};var oZc=function(a){if(a.streamActionMenu)for(var b=m(a.filteredStreamActions),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.streamActionMenu.createComponent(c.menuItem);d.instance.config=c.config;d.instance.streamMetadata=a.streamMetadata}};cH.\u0275fac=function(a){return new (a||cH)(Ye(ux))};
cH.\u0275cmp=D({type:cH,selectors:[["ac-stream-action-menu"]],viewQuery:function(a,b){a&1&&hg(nZc,5,fg);if(a&2){var c;lg(c=mg())&&(b.streamActionMenu=c.first)}},inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[bx],decls:3,vars:0,consts:[["streamActionsMenuContents",""],[1,"stream-action-menu"]],template:function(a){a&1&&(Rf(0,"div",1),Tf(1,"div",null,0),Sf())},styles:[".stream-action-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-filter-button{text-transform:none}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-pantheon-link{text-transform:none}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-gke-link{text-transform:none}"],
changeDetection:0});var dH=function(){this.streamActions=[];this.filteredStreamActions=[]};dH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};dH.\u0275fac=function(a){return new (a||dH)};
dH.\u0275cmp=D({type:dH,selectors:[["ac-series-stream-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[bx],decls:4,vars:3,consts:[["streamActionsMenu",""],["class","stream-actions","mat-icon-button","","aria-label","Open timeserie action menu",3,"matMenuTriggerFor",4,"ngIf"],[3,"streamMetadata","streamActions"],["mat-icon-button","","aria-label","Open timeserie action menu",1,"stream-actions",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&(E(0,PCa,3,
1,"button",1),K(1,"mat-menu",null,0),M(3,"ac-stream-action-menu",2),L());a&2&&(I("ngIf",b.filteredStreamActions.length>0),B(3),I("streamMetadata",b.streamMetadata)("streamActions",b.filteredStreamActions))},dependencies:[Yx,Fx,Fy,Dy,fB,eB,bH,YG,aH,cH],styles:["button.stream-actions[_ngcontent-%COMP%]{width:16px;height:16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0}button.stream-actions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#202124}\n/*# sourceMappingURL=ac_series_stream_actions.css.map */"],
changeDetection:0});var pZc=function(a){this.valueType=0;this.getColor=a.getColor;this.getShape=a.getShape;this.getDisplayValue=a.getDisplayValue;this.getIsInteracted=a.getIsInteracted;this.getName=a.getName;this.getMinDisplayValue=a.getMinDisplayValue;this.getMaxDisplayValue=a.getMaxDisplayValue;this.getMetadata=a.getMetadata;this.drawnAs=a.drawnAs;this.lineDash=a.lineDash;this.rawValue=a.rawValue;this.scaledValue=a.scaledValue;this.pxValue=a.pxValue;this.stackingIndex=a.stackingIndex};
da.Object.defineProperties(pZc.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this.getColor()}},shape:{configurable:!0,enumerable:!0,get:function(){return this.getShape()}},displayValue:{configurable:!0,enumerable:!0,get:function(){return this.displayValueCache?this.displayValueCache:this.displayValueCache=this.getDisplayValue()}},minDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.minDisplayValueCache)return this.minDisplayValueCache;if(this.getMinDisplayValue)return this.minDisplayValueCache=
this.getMinDisplayValue()}},maxDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.maxDisplayValueCache)return this.maxDisplayValueCache;if(this.getMaxDisplayValue)return this.maxDisplayValueCache=this.getMaxDisplayValue()}},isInteracted:{configurable:!0,enumerable:!0,get:function(){return this.getIsInteracted()}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()}},timeshiftDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.getTimeshiftDisplayValue)return this.getTimeshiftDisplayValue()}},
metadata:{configurable:!0,enumerable:!0,get:function(){if(this.getMetadata)return this.getMetadata()}}});var qZc=function(){pZc.apply(this,arguments);this.valueType=1};Y(qZc,pZc);var rZc=function(){pZc.apply(this,arguments);this.valueType=2};Y(rZc,pZc);var eH=function(){};
eH.prototype.updateLabelsModel=function(a,b){var c=!1,d=function(g){var k=a.selectedColumns.filter(function(l){return l.uniqueId!==g.uniqueId});k.length<a.selectedColumns.length&&(c=!0,a.selectedColumns=k)},e=function(g){a.selectedColumns.filter(function(k){return k.uniqueId===g.uniqueId}).length===0&&(c=!0,a.selectedColumns.push(g))},f=1;a.selectableColumns.forEach(function(g){delete g.order});b.forEach(function(g,k){g&&g.forEach(function(l){var r=!1;a.selectableColumns.forEach(function(w){l.title===w.title&&
(r=!0,w.order=w.order||f++,w.isDefault!==l.isDefault&&((w.isDefault=l.isDefault)?e(w):d(w)),l.template!==w.templates[k]&&(w.templates[k]=l.template,w.tokenizers[k]=l.tokenizer))});r||(l={isDefault:l.isDefault,title:l.title,templates:[l.template],tokenizers:[l.tokenizer],uniqueId:l.uniqueId},l.uniqueId=a.nextColumnId++,l.order=f++,a.selectableColumns.push(l),l.isDefault&&e(l))})});a.selectableColumns.forEach(function(g){g.order||d(g)});a.selectableColumns=a.selectableColumns.filter(function(g){return g.order});
a.selectableColumns=a.selectableColumns.map(function(g){return g});a.selectableColumns.sort(function(g,k){return g.order-k.order});b=a.selectedColumns;a.selectedColumns=a.selectedColumns.map(function(g){return g});a.selectedColumns.sort(function(g,k){return g.order-k.order});b.forEach(function(g,k){g.uniqueId!==a.selectedColumns[k].uniqueId&&(c=!0)});return c};
eH.prototype.updatePercents=function(a,b,c,d){d=d||640;a.labelWidths=b.map(function(k,l){var r=a.labelWidths&&a.labelWidths.length&&a.labelWidths[l]||0;r===0&&(r=a.labelHeaders&&a.labelHeaders[l]&&a.labelHeaders[l].length||0);return Math.max(r,k.length)});var e=0;a.labelWidths.forEach(function(k){e+=k});var f=Math.max(80,d/8)-e;a.scale=f<0?c-1.25*f:c;var g=a.labelWidths.length;a.labelPercents=f>0&&g?a.labelWidths.map(function(k){return k+f/g}):a.labelWidths.map(function(k){return k});e=0;a.labelPercents.forEach(function(k){e+=
k});for(a.labelPercents=a.labelPercents.map(function(k){return Math.floor(k/e*c)});a.labelPercents.includes(0);){d=Math.max.apply(Math,q(a.labelPercents));if(d<=1)break;b=a.labelPercents.indexOf(0);d=a.labelPercents.indexOf(d);a.labelPercents[b]++;a.labelPercents[d]--}};var rl=function(a){return a[0]!=='"'||a.length<2||a[a.length-1]!=='"'?a:a.substring(1,a.length-1).replace(/\\([\\"])/g,"$1")};eH.prototype.updatePercents=eH.prototype.updatePercents;eH.prototype.updateLabelsModel=eH.prototype.updateLabelsModel;
var sZc=new eH;qw("awesomecharts.utils.LabelUtils",sZc);var tZc=function(a){this.labelsCache=this.statsModeSummaryValueCache=this.displayValueSubstringsCache=this.displayValueCache=this.nameCache=null;this.seriesId=a.seriesId;this.color=a.color;this.shape=a.shape;this.drawnAs=a.drawnAs;this.dataSeriesMetadata=a.dataSeriesMetadata;this.isInteracted=a.isInteracted;this.isSelected=a.isSelected;this.rawValue=a.rawValue;this.pxValue=a.pxValue;this.timeshiftValue=a.timeshiftValue;this.setHovered=a.setHovered;this.setSelected=a.setSelected;this.unit=a.unit;this.hideValue=
a.hideValue;this.getNameInternal=a.getName;this.getDisplayValueInternal=a.getDisplayValue;this.getStatsModeSummaryValueInternal=a.getStatsModeSummaryValue;this.getLabelsInternal=a.getLabels;this.getColumnIdsInternal=a.getColumnIds;this.getDisplayValueAndSubstringsInternal=a.getDisplayValueAndSubstrings;this.onLabelsChange=a.onLabelsChange};
da.Object.defineProperties(tZc.prototype,{getName:{configurable:!0,enumerable:!0,set:function(a){this.nameCache=null;this.getNameInternal=a},get:function(){return this.getNameInternal}},getDisplayValue:{configurable:!0,enumerable:!0,set:function(a){this.displayValueCache=null;this.getDisplayValueInternal=a},get:function(){return this.getDisplayValueInternal}},getDisplayValueAndSubstrings:{configurable:!0,enumerable:!0,set:function(a){this.displayValueSubstringsCache=null;this.getDisplayValueAndSubstringsInternal=
a},get:function(){return this.getDisplayValueAndSubstringsInternal}},getStatsModeSummaryValue:{configurable:!0,enumerable:!0,set:function(a){this.statsModeSummaryValueCache=null;this.getStatsModeSummaryValueInternal=a},get:function(){return this.getStatsModeSummaryValueInternal}},getLabels:{configurable:!0,enumerable:!0,set:function(a){this.labelsCache=null;this.getLabelsInternal=a},get:function(){return this.getLabelsInternal}},getColumnIds:{configurable:!0,enumerable:!0,set:function(a){this.getColumnIdsInternal=
a},get:function(){return this.getColumnIdsInternal}},name:{configurable:!0,enumerable:!0,get:function(){if(this.nameCache!==null)return this.nameCache;var a=this.getName();return this.nameCache=a}},displayValue:{configurable:!0,enumerable:!0,get:function(){if(this.displayValueCache!==null)return this.displayValueCache;if(this.getDisplayValueAndSubstrings){var a=this.getDisplayValueAndSubstrings(),b=a.displayValue;a=a.displayValueSubstrings;this.displayValueCache=b;this.displayValueSubstringsCache=
a;return b}return this.displayValueCache=b=this.getDisplayValue()}},displayValueSubstrings:{configurable:!0,enumerable:!0,get:function(){if(this.displayValueSubstringsCache!==null)return this.displayValueSubstringsCache;if(this.getDisplayValueAndSubstrings){var a=this.getDisplayValueAndSubstrings(),b=a.displayValueSubstrings;this.displayValueCache=a.displayValue;return this.displayValueSubstringsCache=b}this.displayValueSubstringsCache=void 0}},statsModeSummaryValue:{configurable:!0,enumerable:!0,
get:function(){if(this.statsModeSummaryValueCache!==null)return this.statsModeSummaryValueCache;var a=this.getStatsModeSummaryValue();return this.statsModeSummaryValueCache=a}},labels:{configurable:!0,enumerable:!0,get:function(){if(this.labelsCache!==null)return this.labelsCache;var a=this.getLabels();this.labelsCache=a;if(this.onLabelsChange)this.onLabelsChange(a);return a}}});var uZc={getColor:function(a,b){a=fDa(b.max,b.colorPivots)(a);var c=m(a);a=c.next().value;b=c.next().value;c=c.next().value;return"rgb("+a+", "+b+", "+c+")"}};var CDa=function(){return[]},mDa=function(a,b){return{$implicit:a,name:b}},rDa=function(a,b,c){return{$implicit:a,seriesMetadata:b,displayValue:c}},ODa=function(a){return{"min-width":a}},vZc=["right","left"],fH=function(){var a=p(ZF);PG.call(this,a);var b=this;this.queueService=p(MG);this.formatterService=p(YF);this.cdr=p(ux);this.enclosingHovercard=p(QG,{optional:!0});this.onlyShowSelectedSeriesInternal=!1;this.timeKey=1;this.hideSelectedSection=this.hideThresholds=!1;this.visibleRowsInternal=5;
this.layout="default";this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=uZc;this.chartQuickActionsEnabled=this.formatDistribution=!1;this.updateTriggerSubject=new sf;this.xAxisLookup={ids:[],entities:{}};this.isQuery=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.valueColumnLabel="Value";this.updateTimeout=null;this.allStreamsSubject=new Nj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return c.sort(XDa)}));
this.relativeYPosSubject=new Nj(null);this.centerStreamIndexObservable=le([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),pf());this.truncatedStreamsObservable=le([this.sortedStreamsObservable,this.centerStreamIndexObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;d=Math.max(0,d-Math.ceil(Math.max(0,b.visibleRows-1)/2));var e=Math.min(d+b.visibleRows,c.length),f=
b.visibleRows-(e-d);f&&(d===0?e=Math.min(c.length,e+f):d=Math.max(0,d-f));return{streams:c.slice(d,e),streamsAboveCount:d,streamsBelowCount:c.length-e}}),xf({bufferSize:1,refCount:!0}));this.streamsObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streams}),xf({bufferSize:1,refCount:!0}));this.selectedStreamsSubject=new Nj([]);this.selectedStreamsObservable=this.selectedStreamsSubject.asObservable();this.streamsAboveCountObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streamsAboveCount}),
xf({bufferSize:1,refCount:!0}));this.streamsBelowCountObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streamsBelowCount}),xf({bufferSize:1,refCount:!0}));this.timeshiftColumnLabelSubject=new Nj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(xf({bufferSize:1,refCount:!0}));this.showSelectedSeriesHeadersObservable=le([this.selectedStreamsObservable,this.timeshiftColumnLabelObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;
d=b.chartQuickActionsEnabled&&d!=="";return c.length>0?!b.onlyShowSelectedSeriesInternal||d:!1}),xf({bufferSize:1,refCount:!0}));this.setup({});this.scopeObservable.pipe(Af(function(c){return b.formatterService.getValueStrategy(c)}),Bf(this.destroyed)).subscribe(function(c){b.ignoreFloatImprecision=c.ignoreFloatImprecision;b.valueFormatter=function(d,e,f,g){var k,l;return(l=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?l:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Y(fH,PG);
fH.\u0275dir=PG.\u0275dir;h=fH.prototype;h.ngOnChanges=function(a){PG.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(ak(lG),Bf(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=vZc.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(qG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),zf(null),vf(),A(gk),we(function(d){return ol(d)}))});this.enclosingHovercard&&(this.enclosingHovercard.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(c){a.timeKey=c}),this.enclosingHovercard.showHovercard.pipe(Bf(this.destroyed)).subscribe(function(c){c&&
a.update()}));this.truncatedStreamsObservable.pipe(Bf(this.destroyed)).subscribe(function(c){if(a.showHovercardSeriesActionText!==void 0&&a.showHovercardSeriesActionText!==null&&a.enclosingHovercard){var d=!1;c=m(c.streams);for(var e=c.next();!e.done;e=c.next())e=e.value,e.metadata!==void 0&&(d=d||a.showHovercardSeriesActionText(e.metadata));a.enclosingHovercard.shouldShowSeriesActionText$.next(d)}});ve.apply(null,[this.updateTriggerSubject].concat(q(b))).pipe(we(function(){var c,d;return(d=(c=a.enclosingHovercard)==
null?void 0:c.isShowing)!=null?d:!0}),Bf(this.destroyed)).subscribe(function(){a.throttledUpdate()})};h.throttledUpdate=function(){var a=this;this.updateTimeout||(this.updateTimeout=setTimeout(function(){a.update();a.updateTimeout=null},0))};
h.update=function(a){var b=this,c=vZc.map(function(d){return b.scopeObservable.pipe(Af(function(e){return b.selectorService.getSelection(qG,Object.assign({},e,{yAxisId:d}))}))});le(c).pipe(nf(1)).subscribe(function(d){for(var e=new Map,f=0;f<vZc.length;f++)e.set(vZc[f],d[f]);b.withLatest(function(g){var k=g.scope;var l=g.state;if(k&&l&&l.timeSeries&&l.brush&&l.resize&&Object.keys(l.timeSeries.byLayer.entities).length!==0){g=l.colorScale;var r=l.seriesSelection,w=l.timeSeries,x=l.resize;if(!l.brush.panning){a&&
b.deselectAllSeries(k,r);l=wZc(r);r=b.getInteractedSeries(r);for(var C=new Map,H=m(vZc),J=H.next();!J.done;J=H.next()){J=J.value;var O=e.get(J);if(O){O=pl(O,x.margins.top,x.height-x.margins.bottom,O.unit);var R=void 0;C.set(J,(R=O)!=null?R:null)}else C.set(J,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);g=b.buildStreams(k,w,r,C,e,g);b.allStreamsSubject.next(g);k=xZc(b,k,w,l,e);b.selectedStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,l=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Ek((l=(e=a)==null?void 0:e.chartGroupId)!=null?l:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?eCa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Fc");}return c||""};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){il(a)&&this.updateTriggerSubject.next()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0};h.onTimeSeriesChange=function(){this.updateTriggerSubject.next()};h.onResizeChange=function(){this.updateTriggerSubject.next()};
h.onLastInteractionChange=function(a,b){if(a=a.currentValue)b=this.getLastInteractionYPos(ml(b.scope,a)),this.relativeYPosSubject.next(b)};var wZc=function(a){var b=[];a&&Object.values(a.byLayer.entities).forEach(function(c){b=b.concat((c==null?void 0:c.selectedSeries)||[])});return b};h=fH.prototype;
h.deselectAllSeries=function(a,b){var c=this;b&&Object.values(b.byLayer.entities).filter(function(d){return d!==void 0&&d!==null}).forEach(function(d){d.selectedSeries&&a.chartId&&c.store.dispatch(TG({chartId:a.chartId,layerId:d.layerId}))})};h.getInteractedSeries=function(a){var b=this,c=[];a&&Object.values(a.byLayer.entities).forEach(function(d){c=c.concat(b.getLayerInteractedSeries(d))});return c};
h.getLayerInteractedSeries=function(a){if(!a)return[];switch(this.timeKey){case 2:return[];case 0:case 3:return a.selectedSeries;case 1:return a.hoveredSeries;case 4:return[];default:wb(this.timeKey,"unknown data source")}};
h.getLastInteractionYPos=function(a){if(!a)return null;switch(this.timeKey){case 0:var b,c;return(c=(b=a.focus)==null?void 0:b.y)!=null?c:null;case 2:var d,e;return(e=(d=a.click)==null?void 0:d.y)!=null?e:null;case 1:var f,g;return(g=(f=a.hover)==null?void 0:f.y)!=null?g:null;case 3:return null;case 4:var k,l;return(l=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?l:null;default:wb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new sl(a.legendTemplate):this.labelTemplate&&(b=new sl(this.labelTemplate));var d=bDa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
var xZc=function(a,b,c,d,e){var f=new Map,g=new Map;c=m(c);for(var k=c.next(),l={};!k.done;l={labelFormatter$jscomp$1:void 0,layer$jscomp$6:void 0,yAxisState$jscomp$1:void 0},k=c.next())if(l.layer$jscomp$6=k.value,l.yAxisState$jscomp$1=e.get(l.layer$jscomp$6.yAxisId),l.yAxisState$jscomp$1){var r=void 0,w=void 0,x=void 0,C=void 0,H=void 0,J=void 0;k=!!((x=a.xAxisLookup.entities[Ek((H=(r=b)==null?void 0:r.chartGroupId)!=null?H:"",(J=(w=b)==null?void 0:w.chartId)!=null?J:"",l.layer$jscomp$6.xAxisId)])==
null?0:(C=x.relativeTo)==null?0:C.shift);if(l.layer$jscomp$6.valueType!==2&&(l.layer$jscomp$6.valueType===1||l.layer$jscomp$6.valueType===3))for(r=Object.values(l.layer$jscomp$6.bySeries.entities),w=void 0,l.labelFormatter$jscomp$1=a.getCachedLabelFormatter(r,(w=l.layer$jscomp$6.legendTemplate)!=null?w:a.labelTemplate),r=m(r),x=r.next(),w={};!x.done;w={series$jscomp$22:void 0,value$jscomp$8606:void 0,getName:void 0},x=r.next())if(w.series$jscomp$22=x.value,w.series$jscomp$22&&(!a.hideThresholds||
w.series$jscomp$22.drawnAs!==6)&&d.map(function(ua){return ua.seriesId}).includes(w.series$jscomp$22.seriesId)){w.value$jscomp$8606=w.series$jscomp$22.atTimeKey[a.timeKey];C=function(ua){return function(){return ua.series$jscomp$22.color}}(w);H=function(ua){return function(){return ua.series$jscomp$22.shape}}(w);w.getName=function(ua,ka){return function(){return a.displayName(ua.series$jscomp$22,ka.labelFormatter$jscomp$1)}}(w,l);J=function(ua,ka){return function(){var Ga;return a.formatNumericValue((Ga=
ua.value$jscomp$8606)==null?void 0:Ga.y,ka.layer$jscomp$6.unit,ka.layer$jscomp$6.yAxisId,ka.yAxisState$jscomp$1.min,ka.yAxisState$jscomp$1.max,ka.yAxisState$jscomp$1.unit,ka.yAxisState$jscomp$1.maximumFractionDigits,ka.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,l);var O=void 0;x=((O=w.value$jscomp$8606)==null?void 0:O.min)!==void 0?function(ua,ka){return function(){var Ga;return a.formatNumericValue((Ga=ua.value$jscomp$8606)==null?void 0:Ga.min,ka.layer$jscomp$6.unit,ka.layer$jscomp$6.yAxisId,
ka.yAxisState$jscomp$1.min,ka.yAxisState$jscomp$1.max,ka.yAxisState$jscomp$1.unit,ka.yAxisState$jscomp$1.maximumFractionDigits,ka.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,l):void 0;var R=void 0;O=((R=w.value$jscomp$8606)==null?void 0:R.max)!==void 0?function(ua,ka){return function(){var Ga;return a.formatNumericValue((Ga=ua.value$jscomp$8606)==null?void 0:Ga.max,ka.layer$jscomp$6.unit,ka.layer$jscomp$6.yAxisId,ka.yAxisState$jscomp$1.min,ka.yAxisState$jscomp$1.max,ka.yAxisState$jscomp$1.unit,
ka.yAxisState$jscomp$1.maximumFractionDigits,ka.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,l):void 0;var V=function(ua){return function(){return ua.series$jscomp$22.dataSeriesMetadata}}(w),ca=void 0;R=w.value$jscomp$8606!==void 0&&w.value$jscomp$8606!==null?(ca=Lk(l.layer$jscomp$6.unit,l.yAxisState$jscomp$1.unit,w.value$jscomp$8606.y))!=null?ca:w.value$jscomp$8606.y:void 0;var oa=ca=void 0;C=new qZc({getColor:C,getShape:H,getDisplayValue:J,getIsInteracted:function(){return!1},getName:w.getName,
getMetadata:V,drawnAs:w.series$jscomp$22.drawnAs,lineDash:w.series$jscomp$22.lineDash,rawValue:(oa=(ca=w.value$jscomp$8606)==null?void 0:ca.y)!=null?oa:void 0,scaledValue:R,stackingIndex:w.series$jscomp$22.stackingIndex,getMinDisplayValue:x,getMaxDisplayValue:O});k?g.set(w.series$jscomp$22.seriesId,C):f.set(w.series$jscomp$22.seriesId,C)}}b=m(f);e=b.next();for(d={};!e.done;d={shiftedStream:void 0},e=b.next())c=m(e.value),e=c.next().value,c=c.next().value,d.shiftedStream=g.get(e),d.shiftedStream&&
(c.getTimeshiftDisplayValue=function(ua){return function(){return ua.shiftedStream.displayValue}}(d),g.delete(e));return Array.from(f.values()).concat(Array.from(g.values())).sort(XDa)};h=fH.prototype;
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,l=new Map;b=m(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$7:void 0,yAxisState$jscomp$2:void 0,layerColorScale:void 0,labelFormatter$jscomp$2:void 0,labelFormatter$jscomp$3:void 0},r=b.next())if(w.layer$jscomp$7=r.value,w.yAxisState$jscomp$2=e.get(w.layer$jscomp$7.yAxisId),w.yAxisState$jscomp$2){var x=void 0,C=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Ek((O=(x=a)==null?void 0:x.chartGroupId)!=null?O:
"",(R=(C=a)==null?void 0:C.chartId)!=null?R:"",w.layer$jscomp$7.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$7.valueType===2)for(x=void 0,w.layerColorScale=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$7.layerId],x=Object.values(w.layer$jscomp$7.bySeries.entities),C=void 0,w.labelFormatter$jscomp$2=this.getCachedLabelFormatter(x,(C=w.layer$jscomp$7.legendTemplate)!=null?C:this.labelTemplate),x=m(x),H=x.next(),C={};!H.done;C={series$jscomp$23:void 0,getDisplayValueAndBucketCount:void 0},
H=x.next())(C.series$jscomp$23=H.value,!C.series$jscomp$23||this.hideThresholds&&C.series$jscomp$23.drawnAs===6||(H=C.series$jscomp$23.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(C.getDisplayValueAndBucketCount=function(ta,xa){return function(){return g.formatDistributionValue(ta.series$jscomp$23,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits)}}(C,w),H=void 0,
J=new rZc({getColor:function(ta,xa){return function(){var Sa=(0,ta.getDisplayValueAndBucketCount)().bucketCount;Sa=xa.layerColorScale?g.distributionColorStrategy.getColor(Sa!=null?Sa:xa.layerColorScale.min,xa.layerColorScale):"var(--ac-sys-color-chart-on-surface, #000)";return typeof Sa!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":Sa}}(C,w),getShape:function(){},getDisplayValue:function(ta){return function(){return(0,ta.getDisplayValueAndBucketCount)().displayValue}}(C),getIsInteracted:function(ta){return function(){return c.map(function(xa){return xa.seriesId}).includes(ta.series$jscomp$23.seriesId)}}(C),
getName:function(ta,xa){return function(){return g.displayName(ta.series$jscomp$23,xa.labelFormatter$jscomp$2)}}(C,w),getMetadata:function(ta){return function(){return ta.series$jscomp$23.dataSeriesMetadata}}(C),drawnAs:C.series$jscomp$23.drawnAs,lineDash:C.series$jscomp$23.lineDash,rawValue:(H=C.series$jscomp$23.atTimeKey[this.timeKey])!=null?H:void 0}),r?l.set(C.series$jscomp$23.seriesId,J):k.set(C.series$jscomp$23.seriesId,J));else if(w.layer$jscomp$7.valueType===1||w.layer$jscomp$7.valueType===
3)if(x=d.get(w.layer$jscomp$7.yAxisId))for(C=Object.values(w.layer$jscomp$7.bySeries.entities),H=void 0,w.labelFormatter$jscomp$3=this.getCachedLabelFormatter(C,(H=w.layer$jscomp$7.legendTemplate)!=null?H:this.labelTemplate),C=m(C),J=C.next(),H={};!J.done;H={series$jscomp$24:void 0,value$jscomp$8608:void 0,getName$jscomp$2:void 0},J=C.next())if(H.series$jscomp$24=J.value,H.series$jscomp$24&&(!this.hideThresholds||H.series$jscomp$24.drawnAs!==6)&&(H.value$jscomp$8608=H.series$jscomp$24.atTimeKey[this.timeKey],
!this.hideUndefinedValues||H.value$jscomp$8608)){O=function(ta){return function(){return ta.series$jscomp$24.color}}(H);R=function(ta){return function(){return ta.series$jscomp$24.shape}}(H);H.getName$jscomp$2=function(ta,xa){return function(){return g.displayName(ta.series$jscomp$24,xa.labelFormatter$jscomp$3)}}(H,w);var V=function(ta,xa){return function(){var Sa;return g.formatNumericValue((Sa=ta.value$jscomp$8608)==null?void 0:Sa.y,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,
xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits,xa.layer$jscomp$7.pointConnectionMethod,(0,ta.getName$jscomp$2)())}}(H,w),ca=void 0;J=((ca=H.value$jscomp$8608)==null?void 0:ca.min)!==void 0?function(ta,xa){return function(){var Sa;return g.formatNumericValue((Sa=ta.value$jscomp$8608)==null?void 0:Sa.min,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits,
xa.layer$jscomp$7.pointConnectionMethod,(0,ta.getName$jscomp$2)())}}(H,w):void 0;var oa=void 0;ca=((oa=H.value$jscomp$8608)==null?void 0:oa.max)!==void 0?function(ta,xa){return function(){var Sa;return g.formatNumericValue((Sa=ta.value$jscomp$8608)==null?void 0:Sa.max,xa.layer$jscomp$7.unit,xa.layer$jscomp$7.yAxisId,xa.yAxisState$jscomp$2.min,xa.yAxisState$jscomp$2.max,xa.yAxisState$jscomp$2.unit,xa.yAxisState$jscomp$2.maximumFractionDigits,xa.layer$jscomp$7.pointConnectionMethod,(0,ta.getName$jscomp$2)())}}(H,
w):void 0;var ua=function(ta){return function(){return c.map(function(xa){return xa.seriesId}).includes(ta.series$jscomp$24.seriesId)}}(H),ka=function(ta){return function(){return ta.series$jscomp$24.dataSeriesMetadata}}(H),Ga=void 0;oa=H.value$jscomp$8608!==void 0&&H.value$jscomp$8608!==null?(Ga=Lk(w.layer$jscomp$7.unit,w.yAxisState$jscomp$2.unit,H.value$jscomp$8608.y))!=null?Ga:H.value$jscomp$8608.y:void 0;var ja=Ga=void 0;O=new qZc({getColor:O,getShape:R,getDisplayValue:V,getIsInteracted:ua,getName:H.getName$jscomp$2,
getMetadata:ka,drawnAs:H.series$jscomp$24.drawnAs,lineDash:H.series$jscomp$24.lineDash,rawValue:(ja=(Ga=H.value$jscomp$8608)==null?void 0:Ga.y)!=null?ja:void 0,scaledValue:oa,pxValue:H.value$jscomp$8608!==void 0&&H.value$jscomp$8608!==null?x(H.value$jscomp$8608.y):void 0,stackingIndex:H.series$jscomp$24.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:ca});r?l.set(H.series$jscomp$24.seriesId,O):k.set(H.series$jscomp$24.seriesId,O)}}a=m(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$1:void 0},
e=a.next())f=m(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$1=l.get(e),d.shiftedStream$jscomp$1&&(f.getTimeshiftDisplayValue=function(ta){return function(){return ta.shiftedStream$jscomp$1.displayValue}}(d),l.delete(e));return Array.from(k.values()).concat(Array.from(l.values()))};
h.getCachedLabelFormatter=function(a,b){a=cDa(a);var c=dDa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==null?void 0:(r=l.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==
null?void 0:(r=l.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,l=a.atTimeKey[this.timeKey];if(l&&l.bucketIndex!==void 0){var r=l.bucketIndex;a=l.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/l.y.count).toFixed(),C=m(ql(l.y,r)),H=C.next().value;C=C.next().value;r===l.y.bucketCounts.length&&(C=null);H===-Infinity&&(H=null);r=m([H,C].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Lk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Nk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));l=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,l,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,l){var r,w=(r=this.valueFormatter)!=null?r:Nk;c=d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0;if(a!==void 0&&a!==null){b==="{not_a_unit}"&&(b="1");var x;k=(x=Lk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(l){var C;c=Object.assign({},(C=c)!=null?C:{},{displayName:l})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new Tl("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new Tl("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new Tl("{COUNT} ({PERCENT}%) between {LOWER} and {UPPER}")).format({COUNT:a,PERCENT:b,LOWER:c,UPPER:d})};
h.getCenterStreamIndex=function(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];if(e.isInteracted){c=d;break}b!==null&&e.valueType===1&&e.pxValue!==void 0&&e.pxValue>b&&(c=d)}return c};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({mergeKey:d,context:b,changes:a,scope:e,componentHandlerUsingContext:c})};h.ngOnDestroy=function(){PG.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(fH.prototype,{onlyShowSelectedSeries:{configurable:!0,enumerable:!0,set:function(a){(this.onlyShowSelectedSeriesInternal=a)||this.update(!0)}},dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.update()}},visibleRows:{configurable:!0,
enumerable:!0,set:function(a){this.visibleRowsInternal=a;this.update()},get:function(){return this.visibleRowsInternal}},compact:{configurable:!0,enumerable:!0,get:function(){return this.layout==="compact"}}});fH.\u0275fac=function(a){return new (a||fH)};
fH.\u0275cmp=D({type:fH,selectors:[["ac-series-snapshot"]],inputs:{onlyShowSelectedSeries:"onlyShowSelectedSeries",dataSource:"dataSource",hideThresholds:"hideThresholds",hideSelectedSection:"hideSelectedSection",visibleRows:"visibleRows",labelTemplate:"labelTemplate",customTranslationFunctions:"customTranslationFunctions",layout:"layout",seriesRowTemplate:"seriesRowTemplate",seriesValueTemplate:"seriesValueTemplate",streamActions:"streamActions",condensedShapes:"condensedShapes",hideUndefinedValues:"hideUndefinedValues",
layerIdsToIgnore:"layerIdsToIgnore",showHovercardSeriesActionText:"showHovercardSeriesActionText",showLineDash:"showLineDash",distributionColorStrategy:"distributionColorStrategy",formatDistribution:"formatDistribution",chartQuickActionsEnabled:"chartQuickActionsEnabled"},features:[Gf,bx],decls:2,vars:3,consts:[[1,"series-snapshot"],[1,"list"],["id","above-count"],[1,"subhead","subhead-spacing"],[1,"stream-actions"],[1,"key","bright"],[3,"color","drawnAs","shape","condensed","lineDash"],[1,"name-wrapper"],
[1,"name"],[1,"value","current-value","strong"],[1,"value","current-value"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"streamMetadata","streamActions"],[1,"series-snapshot-fade","subhead-spacing"],["id","below-count"],[1,"name",3,"ngStyle"],[1,"value","current-value",3,"strong"],["colspan","4",1,"series-snapshot-fade"]],template:function(a,b){a&1&&(F(0,WDa,5,4,"div",0),T(1,"async"));if(a&2){var c;G(((c=U(1,1,b.streamsObservable))==null?0:c.length)?0:-1)}},dependencies:[VG,dH,Jx,Kx,Lx],styles:[".series-snapshot[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface,#202124);text-align:left;min-height:16px;font-size:12px}table[_ngcontent-%COMP%]{table-layout:auto;width:100%}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:12px;font-weight:400;line-height:20px;max-width:300px}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]{font-size:11px;line-height:16px;letter-spacing:.25px}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{opacity:.8;padding:0}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.series-snapshot-fade[_ngcontent-%COMP%]{opacity:.5}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:2px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr.dummy-row[_ngcontent-%COMP%]{position:absolute;visibility:hidden}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:12px;opacity:.66;overflow:hidden;padding:1px 0;text-overflow:ellipsis;top:0;vertical-align:top;padding-right:20px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:has(+.stream-actions), table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead-spacing[_ngcontent-%COMP%]{padding:8px 0 1px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead[_ngcontent-%COMP%]{font-size:10px;line-height:16px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{opacity:.9;padding-right:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.bright[_ngcontent-%COMP%]{opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.dim[_ngcontent-%COMP%]{opacity:.3}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]{width:100%;max-width:250px;overflow-x:hidden;overflow-y:hidden;text-align:left}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;max-height:60px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   td.value2[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.value[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}table[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=ac_series_snapshot.css.map */"],
changeDetection:0});var yZc=["right","left"],gH=function(a,b,c,d,e){PG.call(this,a);var f=this;this.cdRef=b;this.elementRef=c;this.queueService=d;this.formatterService=e;this.hideThresholds=!1;this.valueName="Value";this.initialized=this.showAllColumnsByDefault=!1;this.streamsInternal=null;this.streamsSubject=new Nj(this.streamsInternal);this.streamsObservable=this.streamsSubject.pipe(zf(null));this.anyStreamInteractedObservable=this.streamsObservable.pipe(A(function(g){a:{if(g){g=m(g);for(var k=g.next();!k.done;k=g.next())if(k=
k.value,k.isSelected||k.isInteracted){g=!0;break a}}g=!1}return g}));this.dataSourceInternal="most_recent";this.customTemplate=this.labelTablesCacheInvalid=this.multipleLayers=this.isQuery=!1;this.statsModeSummaryColumnLabel=this.timeshiftName="";this.sortFunc=YDa();this.xAxisLookup={ids:[],entities:{}};this.legendHovered=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.layerIdsToIgnore=[];this.lastSeriesSelectedInLegend=null;this.isLoadingSubject=new Nj(!1);this.setup({});
this.store.pipe(ak(lG),Bf(this.destroyed)).subscribe(function(g){f.xAxisLookup=g});this.scopeObservable.pipe(Af(function(g){return f.store.pipe(ak(Uza(g)))}),Bf(this.destroyed)).subscribe(function(g){f.labelStats=g;f.labelTablesCacheInvalid=!0});this.scopeObservable.pipe(Af(function(g){return f.formatterService.getValueStrategy(g)}),Bf(this.destroyed)).subscribe(function(g){f.valueStrategy=g;f.update()})};Y(gH,PG);h=gH.prototype;h.bringLastSelectedIntoView=function(){};
h.ngOnInit=function(){var a=this;this.initialized=!0;var b=yZc.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(qG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),zf(null),vf(),A(gk),we(function(d){return ol(d)}))});ve.apply(null,q(b)).pipe(Bf(this.destroyed)).subscribe(function(){a.update()})};
h.ngOnChanges=function(a){PG.prototype.ngOnChanges.call(this,a);"legendTemplate"in a&&this.update();"filterByColumnValue"in a&&this.update();"layerIdsToIgnore"in a&&this.update()};
h.update=function(){var a=this,b=yZc.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(qG,Object.assign({},d,{yAxisId:c}))}))});le(b).pipe(nf(1)).subscribe(function(c){for(var d=new Map,e=0;e<yZc.length;e++)d.set(yZc[e],c[e]);a.withLatest(function(f){var g=f.scope;f=f.state;if(g&&f&&f.timeSeries&&Object.keys(f.timeSeries.byLayer.entities).length!==0){var k=g.layerId,l=f.seriesSelection,r=f.timeSeries;f=f.resize;g=zZc(a,l);l=AZc(l);k=a.getRelevantLayers(r,
k);a.multipleLayers!==k.length>1&&(a.multipleLayers=!a.multipleLayers,a.labelTablesCacheInvalid=!0);r=new Map;for(var w=m(yZc),x=w.next();!x.done;x=w.next()){x=x.value;var C=d.get(x);if(C&&f){C=pl(C,f.margins.top,f.height-f.margins.bottom,C.unit);var H=void 0;r.set(x,(H=C)!=null?H:null)}else r.set(x,null)}f=a.buildStreams(k,g,l,d,r);a.streams=f.slice().sort(a.sortFunc);a.initialized&&a.cdRef.detectChanges()}})})};h.onScopeChange=function(){this.update()};
h.onLastInteractionChange=function(a,b){BZc(this,b)};h.onMapChange=function(){this.update()};h.onSeriesSelectionChange=function(a,b){il(a,b.scope.layerId)&&this.update()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0;this.labelTablesCacheInvalid=!0;this.update()};h.onTimeSeriesChange=function(){this.update()};
h.onLoadingChange=function(a){var b;a=(b=a.currentValue)==null?void 0:b.loading;this.isLoadingSubject.next(!(!a||!(Array.isArray(a)&&(a==null?0:a.length)||!Array.isArray(a)&&a)))};h.onXAxisPinChange=function(a,b){BZc(this,b);this.update()};
var BZc=function(a,b){var c,d,e,f,g=(f=(d=((c=b.state)==null?0:c.lastInteraction)?ml(b.scope,b.state.lastInteraction):null)==null?void 0:(e=d.hover)==null?void 0:e.x)!=null?f:null,k;b=(k=b.state)==null?void 0:k.xAxisPin;a.dataSource=b&&b.xPos!==null&&b.locked?"time_pin":g!==null?"hover":"most_recent"},zZc=function(a,b){var c=[];b&&Object.values(b.byLayer.entities).forEach(function(d){c=c.concat(CZc(a,d))});return c},CZc=function(a,b){if(!b)return[];if(a.legendHovered)return b.hoveredSeries.map(function(c){return c.seriesId});
switch(a.dataSource){case "time_pin":case "click":case "most_recent":case "multiselect_anchor":return[];case "hover":return b.hoveredSeries.map(function(c){return c.seriesId});default:wb(a.dataSource,"unknown data source")}},AZc=function(a){var b=[];a&&Object.values(a.byLayer.entities).forEach(function(c){b=b.concat((c==null?void 0:c.selectedSeries.map(function(d){return d.seriesId}))||[])});return b};
gH.prototype.getRelevantLayers=function(a,b){var c=this;return Object.values(a.byLayer.entities).filter(function(d){return!(!d||c.layerIdsToIgnore.includes(d.layerId)||d.valueType!==1&&d.valueType!==3||b&&d.layerId!==b)}).filter(function(d){return!Object.values(d.bySeries.entities).every(function(e){return!e||DZc(c,e)})})};
gH.prototype.getTranslationFunctions=function(){var a,b,c=Object.assign({},(b=(a=this.customTranslationFunctions)==null?void 0:a.getBoundGlobalFunctions())!=null?b:{},{credentialNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.credential_id)!=null?g:""},instanceNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.instance_id)!=null?g:""},getName:function(d){var e;return(e=d.name)!=
null?e:""},metricDisplayName:function(d){var e;return d.metricDisplayName?d.metricDisplayName():(e=d.shortMetric)!=null?e:""}});this.withLatest(function(d){var e=d.state;if(e==null?0:e.map)c.instanceNameOrId=function(f){var g,k,l;f=(l=f==null?void 0:(g=f.resource)==null?void 0:(k=g.labels)==null?void 0:k.instance_id)!=null?l:"";var r;return(r=e.map.instance[f])!=null?r:f}});return c};
gH.prototype.buildStreams=function(a,b,c,d,e){var f=this,g=new Map,k=new Map;this.customTemplate=!!this.legendTemplate;var l="",r="";a=m(a);for(var w=a.next(),x={};!w.done;x={layerUnit$jscomp$2:void 0,layer$jscomp$10:void 0,yAxisState$jscomp$4:void 0},w=a.next())if(x.layer$jscomp$10=w.value,x.layer$jscomp$10.valueType!==2&&(x.layerUnit$jscomp$2=x.layer$jscomp$10.unit,x.layerUnit$jscomp$2==="{not_a_unit}"&&(x.layerUnit$jscomp$2="1"),x.yAxisState$jscomp$4=d.get(x.layer$jscomp$10.yAxisId),x.yAxisState$jscomp$4)){w=
e.get(x.layer$jscomp$10.yAxisId);var C=void 0,H=void 0,J=void 0,O=void 0,R=void 0,V=void 0,ca=(J=this.xAxisLookup.entities[Ek((R=(C=this.scope)==null?void 0:C.chartGroupId)!=null?R:"",(V=(H=this.scope)==null?void 0:H.chartId)!=null?V:"",x.layer$jscomp$10.xAxisId)])==null?void 0:(O=J.relativeTo)==null?void 0:O.shift;C=!!ca;ca=ca?eCa(ca):"";if(l==="")l=ca;else if(ca!==""&&l!==ca)throw Error("Fc");x.layer$jscomp$10.legendTemplate&&(this.customTemplate=!0);H=Object.values(x.layer$jscomp$10.bySeries.entities);
ca=this.legendTemplate&&new sl(this.legendTemplate)||x.layer$jscomp$10.legendTemplate&&new sl(x.layer$jscomp$10.legendTemplate)||EZc(this,H);H=m(H);O=H.next();for(J={};!O.done;J={series$jscomp$27:void 0,seriesLegendFormatter:void 0},O=H.next())if(J.series$jscomp$27=O.value,J.series$jscomp$27&&!DZc(this,J.series$jscomp$27)){J.series$jscomp$27.statsModeSummaryValue===null||J.series$jscomp$27.statsModeSummaryValue===void 0||r||(r="All Values");J.seriesLegendFormatter=J.series$jscomp$27.legendTemplate&&
new sl(J.series$jscomp$27.legendTemplate)||ca;var oa=b.includes(J.series$jscomp$27.seriesId),ua=c.includes(J.series$jscomp$27.seriesId),ka=J.series$jscomp$27.atTimeKey[this.timeKey];O=ka!==void 0&&ka!==null&&typeof ka.y==="number"?Lk(x.layerUnit$jscomp$2,x.yAxisState$jscomp$4.unit,ka.y):null;V=R=void 0;oa=new tZc({seriesId:J.series$jscomp$27.seriesId,color:J.series$jscomp$27.color,shape:J.series$jscomp$27.shape,drawnAs:J.series$jscomp$27.drawnAs,dataSeriesMetadata:J.series$jscomp$27.dataSeriesMetadata,
getDisplayValue:x.layer$jscomp$10.valueType===3?function(){return""}:function(Ga,ja){return function(){return f.formatNumericValue(Ga.series$jscomp$27,ja.layerUnit$jscomp$2,ja.layer$jscomp$10.yAxisId,ja.yAxisState$jscomp$4.min,ja.yAxisState$jscomp$4.max,ja.yAxisState$jscomp$4.unit,ja.yAxisState$jscomp$4.maximumFractionDigits,ja.layer$jscomp$10.pointConnectionMethod)}}(J,x),getDisplayValueAndSubstrings:x.layer$jscomp$10.valueType===3?void 0:function(Ga,ja){return function(){return FZc(f,Ga.series$jscomp$27,
ja.layerUnit$jscomp$2,ja.layer$jscomp$10.yAxisId,ja.yAxisState$jscomp$4.min,ja.yAxisState$jscomp$4.max,ja.yAxisState$jscomp$4.unit,ja.yAxisState$jscomp$4.maximumFractionDigits,ja.layer$jscomp$10.pointConnectionMethod)}}(J,x),getStatsModeSummaryValue:function(Ga,ja){return function(){a:{var ta=Ga.series$jscomp$27.statsModeSummaryValue,xa=ja.layerUnit$jscomp$2;var Sa=ja.layer$jscomp$10.yAxisId;var $a=ja.yAxisState$jscomp$4.min,pb=ja.yAxisState$jscomp$4.max,Xb=ja.yAxisState$jscomp$4.unit,lc=ja.yAxisState$jscomp$4.maximumFractionDigits;
if(ta!==void 0&&ta!==null&&(xa==="{not_a_unit}"&&(xa="1"),ta=Lk(xa,Xb,ta),ta!==null)){lc={maximumFractionDigits:lc};$a=$a!==null&&pb!==null&&Xb!==null?{domain:{min:$a,max:pb,unit:Xb},yAxisPosition:Sa}:void 0;var ec,pc,sb;Sa=((sb=(pc=f.valueFormatter)!=null?pc:(ec=f.valueStrategy)==null?void 0:ec.format)!=null?sb:Nk)(ta,Xb,lc,$a);break a}Sa="-"}return Sa}}(J,x),isInteracted:oa,isSelected:ua,hideValue:x.layer$jscomp$10.valueType===3,getColumnIds:function(){return[]},getLabels:function(){return[]},getName:function(Ga){return function(){var ja=
bDa(Ga.series$jscomp$27.dataSeriesMetadata),ta;return ja&&((ta=Ga.seriesLegendFormatter)==null?void 0:ta.format(ja,f.getTranslationFunctions()))||Ga.series$jscomp$27.name}}(J),rawValue:(V=(R=ka)==null?void 0:R.y)!=null?V:void 0,unit:x.layerUnit$jscomp$2,pxValue:typeof O==="number"&&w?w(O):void 0,setHovered:function(Ga,ja){return function(ta){ta=ta?[{seriesId:Ga.series$jscomp$27.seriesId}]:[];var xa,Sa;f.store.dispatch(UG({chartId:(Sa=(xa=f.scope)==null?void 0:xa.chartId)!=null?Sa:"",layerId:ja.layer$jscomp$10.layerId,
series:ta}))}}(J,x),setSelected:function(Ga,ja){return function(ta){if(ta){f.lastSeriesSelectedInLegend=Ga.series$jscomp$27.seriesId;var xa,Sa;f.store.dispatch(YYc({chartId:(Sa=(xa=f.scope)==null?void 0:xa.chartId)!=null?Sa:"",layerId:ja.layer$jscomp$10.layerId,series:{seriesId:Ga.series$jscomp$27.seriesId}}))}else{var $a,pb;f.store.dispatch(ZYc({chartId:(pb=($a=f.scope)==null?void 0:$a.chartId)!=null?pb:"",layerId:ja.layer$jscomp$10.layerId,series:{seriesId:Ga.series$jscomp$27.seriesId}}))}}}(J,
x)});C?k.set(J.series$jscomp$27.seriesId,oa):g.set(J.series$jscomp$27.seriesId,oa)}}this.timeshiftName=l;this.statsModeSummaryColumnLabel=r;b=m(g);for(c=b.next();!c.done;c=b.next())if(d=m(c.value),c=d.next().value,d=d.next().value,e=k.get(c))d.timeshiftValue=e.displayValue,k.delete(c);return Array.from(g.values()).concat(Array.from(k.values()))};
var DZc=function(a,b){if(a.hideThresholds&&b.drawnAs===6)return!0;if(!a.filterByColumnValue||!a.filterByColumnValue.column)return!1;var c;return((c=b.dataSeriesMetadata)==null?0:c.metadata)?b.dataSeriesMetadata.metadata[a.filterByColumnValue.column]!==a.filterByColumnValue.value:!0};gH.prototype.formatNumericValue=function(a,b,c,d,e,f,g,k){return FZc(this,a,b,c,d,e,f,g,k).displayValue};
var FZc=function(a,b,c,d,e,f,g,k,l){b=b.atTimeKey[a.timeKey];if(b!==void 0&&b!==null){c==="{not_a_unit}"&&(c="1");c=Lk(c,g,b.y)||0;l={maximumFractionDigits:k,rawValue:b.y};d=e!==null&&f!==null&&g!==null?{domain:{min:e,max:f,unit:g},yAxisPosition:d}:void 0;if(a.valueFormatter)return{displayValue:a.valueFormatter(c,g,l),displayValueSubstrings:void 0};if(a.valueStrategy)return a.valueStrategy.formatSubstrings?(a=a.valueStrategy.formatSubstrings(c,g,l,d),{displayValue:OAa(a)+a.unitSuffix,displayValueSubstrings:a}):
{displayValue:a.valueStrategy.format(c,g,l,d),displayValueSubstrings:void 0};a=NAa(c,g,{maximumFractionDigits:k,rawValue:b.y});return{displayValue:OAa(a)+a.unitSuffix,displayValueSubstrings:a}}switch(l){case "gap_detection":return{displayValue:"-",displayValueSubstrings:void 0};case "zero_fill":return{displayValue:"0",displayValueSubstrings:void 0};default:return{displayValue:"",displayValueSubstrings:void 0}}},GZc=function(a,b,c){c=c===void 0?!1:c;if(!a.labelTablesCacheInvalid&&a.labelTablesCache&&
a.seriesMetadataForLabelTablesCache&&a.seriesMetadataForLabelTablesCache.length===b.length){for(var d=!0,e=0;e<a.seriesMetadataForLabelTablesCache.length;e++)if(a.seriesMetadataForLabelTablesCache[e]!==b[e]){d=!1;break}if(d)return a.labelTablesCache}c=a.customTemplate?WCa():a.isQuery?YCa(b):ZCa(b,a.multipleLayers&&c);if(a.showAllColumnsByDefault&&c)for(d=m(c),e=d.next();!e.done;e=d.next()){e=m(e.value);for(var f=e.next();!f.done;f=e.next())f=f.value,a.filterByColumnValue&&a.filterByColumnValue.column===
f.title||(f.isDefault=!0)}if(c&&a.multipleLayers&&a.labelStats){d=a.labelStats;e="";d.metric>1&&(e=d.metric>d.shortMetric?e+'${metric.type}" "':e+'${metricDisplayName()}" "');d.aligner>1&&(e+='${requestParams.aggregation\\.perSeriesAligner}" "');d.primaryReducer>1&&(e+='${requestParams.aggregation\\.crossSeriesReducer}" "');d.secondaryReducer>1&&(e+='${requestParams.secondaryAggregation\\.crossSeriesReducer}" "');if(d.filter){f=m(Object.keys(d.filter));for(var g=f.next();!g.done;g=f.next()){g=d.filter[g.value];
for(var k=g.count,l=m(Object.keys(g.entries)),r=l.next();!r.done;r=l.next()){r=r.value;var w=g.entries[r];if(w.count!==k||w.set.size!==1)e+="${requestParams.filterTokens."+r+".key}${requestParams.filterTokens."+r+".op}${requestParams.filterTokens."+r+'.value}" "'}}}if(d=e?{isDefault:!0,title:"Metric",template:e,tokenizer:new sl(e)}:null)for(e=m(c),f=e.next();!f.done;f=e.next())f.value.unshift(d)}a.labelTablesCache=c;a.labelTablesCacheInvalid=!1;a.seriesMetadataForLabelTablesCache=b;return c},EZc=
function(a,b){var c=b.map(function(g){var k;return(k=g.dataSeriesMetadata)!=null?k:null});b=GZc(a,c!=null?c:[],b.length>1);if(!b)return null;c=aDa(c);a="";b=m(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value){d=m(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.isDefault&&c.get(e.title)!==!1){var f=void 0;a+=((f=e.template)!=null?f:"")+'" "'}}return a?new sl(a):null};
gH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};gH.prototype.hover=function(a){this.legendHovered=!0;var b;(b=a.setHovered)==null||b.call(a,!0)};var dEa=function(a,b){a.legendHovered=!1;var c;(c=b.setHovered)==null||c.call(b,!1)};
da.Object.defineProperties(gH.prototype,{streams:{configurable:!0,enumerable:!0,get:function(){return this.streamsInternal},set:function(a){this.streamsInternal=a;this.streamsSubject.next(a)}},dataSource:{configurable:!0,enumerable:!0,set:function(a){a!==this.dataSourceInternal&&(this.dataSourceInternal=a,this.update())},get:function(){return this.dataSourceInternal}},timeKey:{configurable:!0,enumerable:!0,get:function(){switch(this.dataSource){case "time_pin":return 0;case "click":return 2;case "hover":return 1;
case "most_recent":return 3;case "multiselect_anchor":return 4;default:wb(this.dataSource,"unknown data source")}}}});gH.\u0275fac=function(a){return new (a||gH)(Ye(ZF),Ye(ux),Ye(Jd),Ye(MG),Ye(YF))};
gH.\u0275dir=df({type:gH,inputs:{hideThresholds:"hideThresholds",valueName:"valueName",valueFormatter:"valueFormatter",filterByColumnValue:"filterByColumnValue",showAllColumnsByDefault:"showAllColumnsByDefault",customTranslationFunctions:"customTranslationFunctions",legendTemplate:"legendTemplate",layerIdsToIgnore:"layerIdsToIgnore"},features:[Gf,bx]});var HZc=["condensedList"],fEa=function(a){return{scrollable:a}},gEa=function(){return[]},IZc=0,hH=function(){this.el=p(Jd)};hH.prototype.focus=function(){this.el.nativeElement.focus()};hH.\u0275fac=function(a){return new (a||hH)};hH.\u0275dir=df({type:hH,selectors:[["","focusableLegendItem",""]]});
var iH=function(a,b,c,d,e){gH.call(this,a,b,c,d,e);var f=this;this.cdRef=b;this.elementRef=c;this.ve={ChartLegendPane:68535};this.valueLabel="Value: ";this.describedById="ac-inline-legend-"+IZc++ +"-describedby";this.inlineLegendLabel="Legend for nearby chart";this.hideAllValues=this.enableSelection=this.enableScrolling=this.condensed=!1;this.maxSeriesSubject=new Nj(30);this.hideSingleSeriesLegends=this.sortByValue=!1;this.legendItems=Koa.apply(null,[hH].concat(q([])));this.focusKeyManager=new mz(this.legendItems,
p(Ae));this.legendClick=new Ui;this.narrowSubject=new Nj(!1);this.isLoadingObservable=this.isLoadingSubject.pipe(pf());this.condensedStreamsObservable=le([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=m(g);g=k.next().value;k=k.next().value;return g?k?g.slice(0,k):g:[]}));this.additionalStreamsObservable=le([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=m(g);g=k.next().value;k=k.next().value;return g===null?0:g.length-k}));this.hideSingleSeriesLegendsObservable=
this.condensedStreamsObservable.pipe(A(function(g){if(f.hideSingleSeriesLegends&&g!==void 0){var k=0;g=m(g);for(var l=g.next();!l.done;l=g.next())l.value.seriesId.startsWith("ac-threshold-line")||k++;k=k<2}else k=!1;return k}));gf(function(){f.legendItems();(!f.focusKeyManager.activeItemIndex||f.focusKeyManager.activeItemIndex<0)&&kz(f.focusKeyManager,0)})};Y(iH,gH);iH.\u0275dir=gH.\u0275dir;h=iH.prototype;
h.ngAfterViewInit=function(){var a=this;this.condensedList&&(this.listResizeObserver=new ResizeObserver(function(b){var c,d;b=(d=(c=b[0])==null?void 0:c.contentRect.width)!=null?d:Infinity;a.narrowSubject.next(b<200)}),this.listResizeObserver.observe(this.condensedList.nativeElement))};
h.ngOnChanges=function(a){gH.prototype.ngOnChanges.call(this,a);"sortByValue"in a?(this.sortFunc=this.sortByValue?$Da(-1):YDa(),this.update()):"sortByMethod"in a&&this.sortByMethod!==void 0&&(this.sortFunc=this.sortByMethod,this.update())};h.toggleSelection=function(a){this.legendClick.emit({legendName:a.name});if(this.enableSelection){var b=!a.isSelected;a.isSelected=b;var c;(c=a.setSelected)==null||c.call(a,b);this.cdRef.markForCheck()}};h.trackByStreamId=function(a){return a.seriesId};
h.showMore=function(){};var kEa=function(a,b,c){return!(!a.enableSelection||!c||b.isSelected||b.isInteracted)};iH.prototype.ngOnDestroy=function(){gH.prototype.ngOnDestroy.call(this);var a;(a=this.listResizeObserver)==null||a.disconnect()};
da.Object.defineProperties(iH.prototype,{inlineLegendDescribedBy:{configurable:!0,enumerable:!0,get:function(){return this.condensed?"Name and value for each data series. Values listed are usually the most recent values for the data series. When using keyboard navigation on the chart, values listed are the values as of the focused time. Up and down arrow keys to navigate entries.":"Name and value for each data series. Values listed are usually the most recent values for the data series. When using keyboard navigation on the chart, values listed are the values as of the focused time."}},
maxSeries:{configurable:!0,enumerable:!0,set:function(a){this.maxSeriesSubject.next(a)}},chartTitle:{configurable:!0,enumerable:!0,set:function(a){this.inlineLegendLabel='Legend for chart, "'+a+'"'}}});iH.\u0275fac=function(a){return new (a||iH)(Ye(ZF),Ye(ux),Ye(Jd),Ye(MG),Ye(YF))};
iH.\u0275cmp=D({type:iH,selectors:[["ac-inline-legend"],["cola-inline-legend"]],viewQuery:function(a,b){a&1&&(og(b.legendItems,hH),hg(HZc,5,Jd));if(a&2){pg();var c;lg(c=mg())&&(b.condensedList=c.first)}},inputs:{condensed:"condensed",enableScrolling:"enableScrolling",enableSelection:"enableSelection",hideAllValues:"hideAllValues",maxSeries:"maxSeries",sortByValue:"sortByValue",sortByMethod:"sortByMethod",hideSingleSeriesLegends:"hideSingleSeriesLegends",chartTitle:"chartTitle"},outputs:{legendClick:"legendClick"},
features:[Gf,bx],decls:5,vars:4,consts:[["condensedFormat",""],["condensedList",""],["class","ac-inline-legend","role","list",3,"ve","ngClass",4,"ngIf","ngIfElse"],[1,"ac-screen-reader-only-content"],["role","list",1,"ac-inline-legend",3,"ve","ngClass"],["class","ac-inline-legend-items","role","listitem",4,"ngFor","ngForOf"],["role","listitem",1,"ac-inline-legend-items"],[1,"ac-inline-legend-item",3,"mouseenter","mouseleave","click"],[1,"ac-legend-label"],[3,"color","drawnAs","shape"],[4,"ngIf"],
["class","ac-legend-value",4,"ngIf"],[1,"ac-legend-value"],[1,"ac-inline-legend","condensed",3,"keydown","ve"],["class","empty-placeholder",4,"ngIf"],["class","ac-inline-legend-items",4,"ngFor","ngForOf","ngForTrackBy"],["class","n-more",4,"ngIf"],[1,"empty-placeholder"],[1,"ac-inline-legend-items"],["focusableLegendItem","","type","button",1,"ac-inline-legend-item","ac-a11y-focusable",3,"mouseenter","focusin","mouseleave","focusout","click","matTooltip","matTooltipPosition","matTooltipShowDelay",
"matTooltipClass"],[3,"color","drawnAs","shape","condensed","hollow"],[1,"ac-legend-label-visible"],["aria-hidden","true",1,"ac-legend-label-ruler"],[1,"n-more"]],template:function(a,b){a&1&&(E(0,hEa,3,10,"div",2)(1,nEa,14,32,"ng-template",null,0,Mg),K(3,"p",3),Q(4),L());a&2&&(a=qg(2),I("ngIf",!b.condensed)("ngIfElse",a),B(3),Kf("id",b.describedById),B(),yg(b.inlineLegendDescribedBy))},dependencies:[VG,hH,iA,Dx,Ex,Fx,aD,Lx],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{max-height:inherit}.scrollable[_ngcontent-%COMP%]{overflow-y:auto}button[_ngcontent-%COMP%]{border:none;background:none}.ac-inline-legend[_ngcontent-%COMP%]{display:inline-block;max-height:inherit}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]{display:inline-block}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-block;height:12px;margin-right:6px;padding:4px 6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:inline-block;margin-right:6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-value[_ngcontent-%COMP%]{margin:0 5px;min-width:5em;text-overflow:ellipsis;white-space:nowrap}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;height:12px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:700}.ac-inline-legend.condensed[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;padding:0 0 0 6px;margin:0;min-height:24px;line-height:24px}.ac-inline-legend.condensed.narrow[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]{max-width:100%}.ac-inline-legend.condensed.hidden-trivial-legend[_ngcontent-%COMP%]{display:none}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.empty-placeholder[_ngcontent-%COMP%], .ac-inline-legend.condensed[_ngcontent-%COMP%]   li.n-more[_ngcontent-%COMP%]{font-style:italic;padding:0 4px}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.empty-placeholder[_ngcontent-%COMP%]{list-style-type:none}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:100%}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:0 4px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;height:unset}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:500}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:block;margin:6px 3px 6px 0}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]{font-size:12px;display:block;height:24px;position:relative;text-align:left;overflow:hidden;line-height:24px}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-visible[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--ac-sys-color-chart-legend-label,#000)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-ruler[_ngcontent-%COMP%]{top:0;left:0;height:0;overflow:hidden;font-weight:500}  .mat-mdc-tooltip.ac-inline-legend-hover-tooltip{margin:0;font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}\n/*# sourceMappingURL=ac_inline_legend_style.css.map */"],
changeDetection:0});var jH=function(){this.registry=new Map};jH.prototype.register=function(a,b){this.registry.set(a,b)};jH.prototype.unregister=function(a,b){var c=this.registry.get(a);b===c&&this.registry.delete(a)};jH.prototype.focus=function(a,b){(a=this.registry.get(a))&&a.focus(function(){b.focus()})};jH.\u0275fac=function(a){return new (a||jH)};jH.\u0275prov=Fc({token:jH,factory:jH.\u0275fac,providedIn:"root"});var JZc=function(a){var b=this;this.isFrozen=a;this.strategy=function(c,d,e,f,g){b.isFrozen()||(b.lastPosition=oEa(c,d,e,f,g));return b.lastPosition}};var KZc=["*"],LZc=["closeButton"],MZc=function(){return".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}div.ac-hover-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}div.ac-hover-bg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;opacity:.9;background-color:var(--ac-sys-color-extensions-surface, #fff);z-index:-1}button.close-button[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);position:absolute;right:6px;top:0px;height:24px;width:24px;line-height:24px;padding:0;z-index:10}button.close-button-small[_ngcontent-%COMP%]{right:0px;transform:scale(0.5)}.close-icon-small[_ngcontent-%COMP%]{transform:scale(1.5)}  .close-tooltip{display:flex;flex-direction:row-reverse;color:var(--ac-sys-color-extensions-on-surface-inverse, #fff);background:var(--ac-sys-color-extensions-surface-inverse, #757575);border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0);max-width:320px;padding:2px 4px}.pinnable-cursor[_nghost-%COMP%]{cursor:pointer}.pinPromptBanner[_ngcontent-%COMP%]{padding:4px;margin:12px -12px -12px;text-align:left;height:26px;font-size:12px;font-style:italic;border-top:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);background-color:var(--ac-sys-color-extensions-neutral-container, #f1f3f4);color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);width:auto}.pin-button[_ngcontent-%COMP%]{margin-left:12px;margin-right:4px;color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);height:18px;width:18px;vertical-align:middle}mat-divider[_ngcontent-%COMP%]{margin:12px -12px 0}.ac-hovercard-action-button[_ngcontent-%COMP%]{margin-bottom:0;margin-left:0}/*# sourceMappingURL=ac_hovercard.css.map */"},
kH=function(){this.refocusAfterViewChecked=this.isPinned=this.grabFocusAndUseAsModal=this.initialized=!1};kH.prototype.ngOnInit=function(){this.initialized=!0};kH.prototype.ngOnChanges=function(a){this.initialized&&"grabFocusAndUseAsModal"in a&&this.grabFocusAndUseAsModal&&(this.refocusAfterViewChecked=!0)};kH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){var a;if((a=this.cdkTrapFocus)==null?0:My(a.focusTrap))this.refocusAfterViewChecked=!1}};
kH.\u0275fac=function(a){return new (a||kH)};
kH.\u0275cmp=D({type:kH,selectors:[["ac-hovercard-dialog"]],viewQuery:function(a,b){a&1&&hg(Qy,5);if(a&2){var c;lg(c=mg())&&(b.cdkTrapFocus=c.first)}},inputs:{grabFocusAndUseAsModal:"grabFocusAndUseAsModal",isPinned:"isPinned"},features:[bx],ngContentSelectors:KZc,decls:3,vars:5,consts:[[1,"ac-hover-container",3,"cdkTrapFocus"],[1,"ac-hover-bg"]],template:function(a,b){a&1&&(cg(),K(0,"div",0),M(1,"div",1),dg(2),L());a&2&&(wg("ac-hover-container-pinned",b.isPinned),I("cdkTrapFocus",!0),Kf("aria-modal",
b.grabFocusAndUseAsModal?!0:void 0)("role",b.grabFocusAndUseAsModal?"dialog":"tooltip"))},dependencies:[Qy],styles:[MZc()],changeDetection:0});
var lH=function(a,b,c,d,e,f,g,k,l,r){QG.call(this,a,b,c,d,e,f,r);this.cdr=g;this.interactionService=k;this.modalService=l;this.ngZone=r;this.positionStrategy=oEa;this.pinningEnabled$=new Nj(!1);this.chartQuickActionsEnabled=this.pinIfVisible=!1;this.closeOnDeselect$=new Nj(!1);this.hideHovercard=this.hasSeriesActionType=this.hidePinPrompt=!1;this.isPinnedOutput$=new Ui;this.showPointerCursor=this.pinningEnabled$.value;this.onClose=function(){};this.closeAriaLabel="Return to chart";this.grabFocusAndUseAsModalSubject=
new Nj(!1);this.grabFocusAndUseAsModalObservable=this.grabFocusAndUseAsModalSubject.pipe(xk(this.ngZone))};Y(lH,QG);lH.\u0275dir=QG.\u0275dir;
lH.prototype.ngOnInit=function(){var a=this;QG.prototype.ngOnInit.call(this);this.pinningEnabled$.pipe(Bf(this.destroyed)).subscribe(function(b){a.positionStrategy=b?(new JZc(function(){return a.isPinned$.value})).strategy:oEa;a.showPointerCursor=b;a.cdr.detectChanges()});this.overlayRef.outsidePointerEvents().pipe(Bf(this.destroyed)).subscribe(function(b){a.isPinned$.value&&a.closeOnDeselect$.value&&!(a.chartQuickActionsEnabled?(ll?b.metaKey:b.ctrlKey)||b.shiftKey:b.ctrlKey)&&(b.stopPropagation(),
pEa(a))})};lH.prototype.ngAfterViewInit=function(){var a=this;QG.prototype.ngAfterViewInit.call(this);this.chart.afterMouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseClick(b)});this.isPinned$.pipe(Bf(this.destroyed)).subscribe(function(b){a.isPinnedOutput$.emit(b)})};
var NZc=function(a,b){var c=b.xAxis;b=b.resize;return c&&b?(c=Xk(c,b.margins.left,b.width-b.margins.right))?c(a.x.valueOf()):null:null},OZc=function(a,b,c){var d=b.yAxis;b=b.resize;return d&&b?(c=pl(d,b.margins.top,b.height-b.margins.bottom,c))?c(a.y):null:null},PZc=function(a){if(!a)return null;var b,c,d,e=(d=Object.values((c=(b=a.seriesSelection)==null?void 0:b.byLayer.entities)!=null?c:{}).find(function(l){var r;return((r=l==null?void 0:l.selectedSeries)!=null?r:[]).length>0}))==null?void 0:d.selectedSeries[0].seriesId;
if(!e)return null;var f,g;b=Object.values((g=(f=a.timeSeries)==null?void 0:f.byLayer.entities)!=null?g:{});f=null;g=m(b);for(b=g.next();!b.done;b=g.next())if((c=b.value)&&c.valueType===1){var k=d=void 0;b=(d=c)==null?void 0:(k=d.bySeries.entities[e])==null?void 0:k.atTimeKey[2];k=d=void 0;c=(k=(d=c)==null?void 0:d.unit)!=null?k:null;if(b){e=NZc(b,a);a=OZc(b,a,c);e!==null&&a!==null&&(f={x:e,y:a});break}}return f};
lH.prototype.onMouseClick=function(a){var b=this;this.withLatest(function(c){c=c.state;var d,e,f=Object.values((e=c==null?void 0:(d=c.seriesSelection)==null?void 0:d.byLayer.entities)!=null?e:{});d=f.some(function(g){var k;return((k=g==null?void 0:g.selectedSeries)!=null?k:[]).length>0});e=f.some(function(g){var k;return((k=g==null?void 0:g.selectedSeries)!=null?k:[]).length===1});if(b.pinningEnabled$.value&&(!(b.chartQuickActionsEnabled?(ll?a.metaKey:a.ctrlKey)||a.shiftKey:a.ctrlKey)||e)&&(!b.chartQuickActionsEnabled||
d)){if(e=b.pinIfVisible?!!b.overlayRef.hostElement.querySelector(".ac-hover-container")&&!b.isPinned$.value:!b.isPinned$.value)b.chartQuickActionsEnabled?(c=PZc(c),b.reposition(a,2,0,c!=null?c:void 0)):b.reposition(a,2);b.isPinned$.next(e);tl(b.interactionService,"click",e?ul.ve.HovercardPinToggle:ul.ve.HovercardUnpinToggle,b.el.nativeElement)}b.chartQuickActionsEnabled&&b.isPinned$.value&&!d&&pEa(b)})};
lH.prototype.focus=function(a){this.pinningEnabled$.value&&this.isPinned$.next(!0);this.onClose=a;this.grabFocusAndUseAsModalSubject.next(!0);var b;(b=this.closeButton)==null||b.focus()};lH.prototype.onFocusIn=function(a){this.onFocus(a)};var pEa=function(a){a.isPinned$.next(!1);a.onClose();a.detachHovercard();a.grabFocusAndUseAsModalSubject.next(!1)};lH.prototype.onDetach=function(){this.modalService.unregister(0,this);this.grabFocusAndUseAsModalSubject.next(!1)};
lH.prototype.onAttach=function(){this.modalService.register(0,this);tl(this.interactionService,"hover",ul.ve.HovercardZone,this.el.nativeElement)};da.Object.defineProperties(lH.prototype,{pinningEnabled:{configurable:!0,enumerable:!0,set:function(a){this.pinningEnabled$.next(a)}},closeOnDeselect:{configurable:!0,enumerable:!0,set:function(a){this.closeOnDeselect$.next(a)}}});lH.\u0275fac=function(a){return new (a||lH)(Ye(Jd),Ye(LF),Ye(ZF),Ye(MG),Ye(Nz),Ye(fg),Ye(ux),Ye(ul),Ye(jH),Ye(Rg))};
lH.\u0275cmp=D({type:lH,selectors:[["ac-hovercard"]],viewQuery:function(a,b){a&1&&(hg(Qy,5),hg(LZc,5));if(a&2){var c;lg(c=mg())&&(b.cdkTrapFocus=c.first);lg(c=mg())&&(b.closeButton=c.first)}},hostAttrs:[1,"composable-layer","ac-hovercard"],hostVars:2,hostBindings:function(a,b){a&2&&wg("pinnable-cursor",b.showPointerCursor)},inputs:{pinningEnabled:"pinningEnabled",pinIfVisible:"pinIfVisible",chartQuickActionsEnabled:"chartQuickActionsEnabled",closeOnDeselect:"closeOnDeselect",hidePinPrompt:"hidePinPrompt",
hasSeriesActionType:"hasSeriesActionType",hideHovercard:"hideHovercard"},outputs:{isPinnedOutput$:"isPinnedOutput$"},features:[Gg([{provide:sG,useExisting:lH},{provide:QG,useExisting:lH}]),Gf],ngContentSelectors:KZc,decls:2,vars:0,consts:function(){return[["hoverContent",""],["closeButton",""],["pinPrompt",""]," Select resources to view details. "," Click \ufffd#3\ufffdon chart\ufffd/#3\ufffd to pin card. ",[3,"grabFocusAndUseAsModal","isPinned","focusin",4,"ngIf"],[3,"focusin","grabFocusAndUseAsModal",
"isPinned"],["mat-icon-button","","class","close-button ac-a11y-focusable",3,"close-button-small","matTooltip","matTooltipClass","click","focus",4,"ngIf"],["class","pinPromptBanner",4,"ngIf"],["mat-icon-button","",1,"close-button","ac-a11y-focusable",3,"click","focus","matTooltip","matTooltipClass"],["svgIcon","ac:close"],[1,"pinPromptBanner"],[4,"ngIf","ngIfElse"],["svgIcon","ac:time_pin_set",1,"pin-button"],[4,"ngIf"],["svgIcon","ac:pin_outline",1,"pin-button"]]},template:function(a){a&1&&(cg(),
E(0,wEa,2,3,"ng-template",null,0,Mg))},dependencies:[kH,Dy,eB,iA,Fx,Lx],styles:[MZc()],changeDetection:0});var mH=Vj("[AC] Set the value for multiple time series in a chart",Wj()),nH=Vj("[AC] Set the metadata for multiple time series in a chart",Wj()),oH=Vj("[AC] Sets the time series metadata for a layer",Wj());var QZc,SZc=function(){QZc||(QZc=Uint8Array.from(atob(RZc),function(a){return a.charCodeAt(0)}).buffer);return QZc.slice(0)},RZc="UklGRpYGAABXQVZFZm10IBAAAAABAAEAgLsAAAB3AQACABAAZGF0YXIGAAAVABMCiwc3CUwKDPwt+nv/3pyOIa0hAoD8J+pEGwikGsU+jW+hJvM1iURL0gW7VeYNlTmB2axy1mK8ov0+UqB5+lv/f2d1JVmPFkUATsFoll+bbYUBgKvq67zF/4RSlVc1ZgBw43NEOFEPlQgfy+WoHpbNmQ+hz8X749sOoiA3VatuWmWQPAFQbRDW8PHcX7e4nKOi/7kI1y7QEg+zNstAF1EOUsFDITvYFozxXtRlyTar9rQCyzLFjt2QIvYmTSwhRoVOujizKdUS0vhe1cjT1MPysXnFVuq36iUEYRygOfg4jToXMSElmAiR+9Hmo9G4wmPOl9ZF4KntvwnXGLosrDCMLPUt7xolDSX51Oab2pjQBdj43NLd6PaZDEAVaRtILrImohwFHuYMiPbg5dDm1tz012fek/PN81kCThGcIL8eqyASGSga+QAS+WX1S+l82RXlVuxI6uz1EQ+1Ba0Xdh8SGRcTkA8oCib9tuoQ8bzneOm+5zHzOf7kAdkLRRABF7wXixAyC+ICnQED77jzJO+M527vNvcM/v0BawajEUoOKxQvECQHzwG+/1n4cvGO7yrzEfD/+Av9HAXjAt8LPhBXDg8J6gjYAl78kfm59gP1zvDd9ZP8+fvp/msIzgpLC6YGRwtDCPH/Cfzi/Ur4v/Or9Zz78/eD/ncDVgMrBhkJKgnaB3YDfgJu/Wj7Qvle+vD29/k3/EX9UQOVA/sDogcAB0cGbwNAAUv+t/ux/H36Tvj0+439nP3+/28GCgOEAvQGJAbiATYAlf6q/+v52Pqc/Kr9bvt9/wMABgXuAGwFtgNOAsMD7AAR/in+2v18+4z84vys/rv/AgCSAI8E2APUAHYCxgPcAEj9uP4t/4H7Ev6R/tj9q/5/AX8BkgAmBMACHQHDANYAGQF4/jH7NwAr/aL/Wf6Q/TsCiQFqAIYCVwFSAlEAfAAIALb+Nf45/2f9qP5YAIT/6f6uAQUBgwJJAPMANAGTAHD/JwDf/SH+sP/s/tb/ZP9u/4QBIwHUAPMAKAGDAJgAYf7+AI3+zv66/8H+r/4mAe7/BQCjAMEBFQDFAFwAuQAa/2oAHf80/4z+ewAM/7f/iAChAFIAJgCTAHgB4//g/x0AYv/i/27/Nf+c/4D/BQBGALwAq/+KAJsAxgDU/73/AwEG/2X/bwDZ/mr/IQBLACAA1f8kAH0AwwDs/8EArP9x/4IAXP/a//X/BP9dAOv/kf/OADUAzP/PAHn/MAF8/7L/nQDg/jYAFQA//+T/UgAOALD/jgAxAOL/RQCuAIv/+f/k/9//Yf+lAKX/f/87AMb/RQA8AB0AUwDP/zsA9//1/zIAof/1/9z/wv8dAM//UgDX/ysAGgD2/4cAsf/x/2wAdf/y//7//v8/AE//6/+GAMn/SwDe/zcALgCc/0QALgCW/xoAKQCI/9X/QgDy/+f/JwAkAOn/IQD9/xsABQAOAP3/uf8PADYAg/8hAAoA6v8SADQA5P/l/00A6v8iAM7/NwDU//j/BADV/8P/ZwDr/+7/FADx/xkAFADt/xMADQD3//X/2v8eAOT/1f9CAP3/AAD6/9z/PQAxAMD/9v8qANj/QADI/9z/EwDf/zoAyf82APL/1P8nACQAxv81AAAAxf8iAPD/+f/c/yUANwCL/2sAxP8oACAAq/9nANL/7f81ALb/QwDZ/9f/LgD8/wsA8v/+/xQA+P/i/04A1v/q/zUA2//a/z8A4f8RAPn/7v8JABEA8f8NAPz/BAD+/wIA+/8CAPz////+//////8DAP7/BAAAAAIAAQACAP7/AwD8/wEA/f////////8AAAIA/f8FAP3/BQD//wEAAAAAAP//////////AAD//wAA//8CAAAAAgD//wMA/v8CAP////8BAP7/AAD//wAA//8CAP//AgD+/wMA/v8DAP//AAD/////AQD+/wIA/f8BAAEA/v8EAPv/BwD6/wUA/f8BAAEA/f8CAP7/AQD//wEA/f8FAPv/BQD8/wMA//8AAAEA/v8BAAAA//8BAP//AAAAAAEA//8BAAAAAAAAAAEA/v8CAP//AAD//wIA/v8BAP//AQD//wIA/////wMA/f8CAAAA/v8DAP7/AAABAP//AQD//wEA//8BAAAA//8BAAAAAAAAAP//AgD9/wQA+/8FAPz/AwD+/wEAAAD//wEAAAAAAP//AQA=",
TZc=new function(){};var UZc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UZc,W);var VZc=cta(UZc);var WZc;var XZc=[{frequencyMultiplier:1,gain:10},{frequencyMultiplier:4,gain:2}],YZc=function(a){this.mixerMaxGain=1/XZc.map(function(f){return f.gain}).reduce(function(f,g){return f+g},0);this.oscillators=[];this.mixer=a.createGain();this.mixer.gain.value=0;for(var b=m(XZc),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.createOscillator();d.type="sine";d.start();this.oscillators.push(d);var e=a.createGain();e.gain.value=c.gain;d.connect(e).connect(this.mixer)}};YZc.prototype.connect=function(a){return this.mixer.connect(a)};var Al=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Al,W);var UEa=$Ea(WZc||(WZc=VZc('[null,null,null,null,null,"\'use strict\';function h(a,b,c){const e\\u003dMath.min(a.length,b.length);for(let f\\u003d0;f\\u003ce;f++){var d\\u003da[f],k\\u003db[f],n\\u003dc;const p\\u003dMath.min(d.length,k.length);for(let g\\u003d0;g\\u003cp;g++)l(d[g],k[g],n)}}function l(a,b,c){const e\\u003da.length;for(let d\\u003d0;d\\u003ce;d++)b[d]\\u003dc(a[d])}class m extends AudioWorkletProcessor{process(a,b){h(a,b,Math.abs);return!0}}class q extends AudioWorkletProcessor{process(a,b){h(a,b,c\\u003d\\u003ec\\u003e.2?0:1);return!0}}\\nfunction r(a){a\\u003d2*Math.PI*a/sampleRate;return Math.cos(a)-1+Math.sqrt(Math.pow(Math.cos(a),2)-4*Math.cos(a)+3)}\\nclass t extends AudioWorkletProcessor{constructor(){super(...arguments);this.i\\u003dr(.04);this.h\\u003dr(1E3);this.g\\u003d0}process(a,b){if(a.length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one input.\\");if(a[0].length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one input channel.\\");if(b.length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one output.\\");if(b[0].length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one output channel.\\");l(a[0][0],b[0][0],c\\u003d\\u003e{const e\\u003dc\\u003ethis.g?this.i:this.h;return this.g\\u003de*c+(1-e)*this.g});\\nreturn!0}}registerProcessor(\\"rectifier-worklet\\",m);registerProcessor(\\"threshold-worklet\\",q);registerProcessor(\\"slew-worklet\\",t);\\n"]'))),
ZZc=function(){this.audioContext=new AudioContext({latencyHint:.04});this.voices=[];this.nextVoice=0;this.gain=this.audioContext.createGain();this.panner=this.audioContext.createStereoPanner();this.polyVoice=this.audioContext.createGain();this.earcons=this.audioContext.createGain();this.voiceAndEarcons=this.audioContext.createGain();this.playbackTimes=null;for(var a=this.gain.gain.value=0;a<10;a++){var b=new YZc(this.audioContext);this.voices.push(b);b.connect(this.polyVoice)}this.polyVoice.gain.value=
12/13;a=this.audioContext.createDynamicsCompressor();this.polyVoice.connect(this.voiceAndEarcons);this.earcons.connect(this.voiceAndEarcons);this.voiceAndEarcons.connect(this.panner).connect(a).connect(this.gain).connect(this.audioContext.destination)};
ZZc.prototype.play=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa;return y(function(ua){switch(ua.nextAddress){case 1:return z(ua,b.audioContext.suspend(),2);case 2:c=b.audioContext.currentTime;b.gain.gain.setTargetAtTime(.8,c,.004);d="audioWorklet"in AudioContext.prototype;if(!d){ua.jumpTo(3);break}return z(ua,aFa(b.voiceAndEarcons),4);case 4:e=ua.yieldResult,e.gain.value=.3,e.connect(b.panner),e.gain.setTargetAtTime(0,c+a.durationSeconds,.004);case 3:f=m(a.notes);for(g=f.next();!g.done;g=
f.next()){k=g.value;b.panner.pan.setTargetAtTime(k.pan,c+k.onset,0);l=b.voices[b.nextVoice];b.nextVoice=(b.nextVoice+1)%10;for(var ka=l,Ga=k.frequency,ja=c+k.onset,ta=m(XZc.entries()),xa=ta.next();!xa.done;xa=ta.next()){var Sa=m(xa.value);xa=Sa.next().value;Sa=Sa.next().value;ka.oscillators[xa].frequency.setTargetAtTime(Ga*Sa.frequencyMultiplier,ja,0)}ka.mixer.gain.setTargetAtTime(0,ja,0);ka.mixer.gain.linearRampToValueAtTime(ka.mixerMaxGain,ja+.005);ka.mixer.gain.exponentialRampToValueAtTime(1E-5,
ja+.8);ka.mixer.gain.setTargetAtTime(0,ja+.8,0)}r=m(a.earcons||[]);w=r.next();case 5:if(w.done)return oa=Math.max(((V=a.notes[a.notes.length-1])==null?void 0:V.onset)||0,((ca=a.earcons[a.earcons.length-1])==null?void 0:ca.onset)||0),b.playbackTimes={startTime:c,endTime:c+oa},z(ua,b.audioContext.resume(),0);C=x=w.value;H=C.onset;return z(ua,b.audioContext.decodeAudioData(SZc()),8);case 8:J=ua.yieldResult,ka=b.audioContext.createBufferSource(),ka.buffer=J,O=ka,R=b.audioContext.createGain(),R.connect(b.earcons),
R.gain.value=.25,O.connect(R),O.start(c+H),w=r.next(),ua.jumpTo(5)}})};var $Zc=function(a){a.gain.gain.setTargetAtTime(0,a.audioContext.currentTime,.004);setTimeout(function(){a.audioContext.close()},1E3)};ZZc.prototype.getProgress=function(){return!this.playbackTimes||this.audioContext.currentTime>this.playbackTimes.endTime?null:PEa(this.playbackTimes.startTime,this.playbackTimes.endTime,0,1,this.audioContext.currentTime)};var a_c=function(){this.xAxis=this.synth=null};a_c.prototype.play=function(a){var b=this,c,d;return y(function(e){b.stop();c=NEa(a);d=TEa(c);b.synth=new ZZc;b.xAxis=c.xAxis;return z(e,b.synth.play(d),0)})};a_c.prototype.stop=function(){this.synth&&($Zc(this.synth),this.xAxis=this.synth=null)};a_c.prototype.getProgress=function(){if(this.synth===null||this.xAxis===null)return null;var a=this.synth.getProgress();return a===null?null:PEa(0,1,this.xAxis.min,this.xAxis.max,a)};var pH=function(){this.logger=null;try{this.session=new a_c}catch(a){this.session=null}};pH.\u0275fac=function(a){return new (a||pH)};pH.\u0275prov=Fc({token:pH,factory:pH.\u0275fac,providedIn:"root"});var b_c=["topLeftCell"],c_c=["audioHeader"],d_c=["virtualTableValueButton"],e_c=["virtualTableColumnHeaderButton"],f_c=["virtualTableRowHeaderButton"],g_c=["virtualTableAudioValueButton"],eFa=function(a,b){return{"left.px":a,"top.px":b}},zoa=function(a,b,c,d){return{"left.px":a,"top.px":b,"height.px":c,"width.px":d}},h_c="ArrowUp ArrowDown ArrowLeft ArrowRight Enter Space PageDown PageUp Home End".split(" "),i_c=0,qH=function(a,b,c,d){var e=this;this.chart=a;this.audioChartsService=b;this.cdr=c;this.ngZone=
d;this.rowMask=this.columnMaskGenerator=this.columnMask=this.gridGenerator=this.grid=null;this.onGridCellActivateDescription="Activating a grid cell will open the tooltip at this data point.";this.chartTitle="Untitled";this.layerTitle="";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=!1;this.onFocus=new Ui;this.onBlur=new Ui;this.onFocusedCellChange=new Ui;this.onGridCellActivate=new Ui;this.internalValues=[];this.internalColumns=[];this.internalRows=[];this.internalAudioValues=[];this.statusUpdate=
"";this.NAV_INSTRUCTIONS="Navigate this grid using arrow keys. Page Up and Page Down moves focus up and down by 10 rows. Home and End moves focus to the first and last cell in the current row. Ctrl+Home and Ctrl+End moves focus to the first and last cell of the grid.";this.AUDIO_HEADER="Audio";this.refocusAfterViewChecked=!1;this.ignoreKeyboardEvents=new Set;this.focused=!1;this.id="ac-accessibility-grid-"+i_c++;this.columnToggleDescriptionId=this.id+"-column-toggle-description";this.rowToggleDescriptionId=
this.id+"-row-toggle-description";this.activateGridCellDescriptionId=this.id+"-activate-gridcell-description";this.audioChartButtonDescriptionId=this.id+"-audio-chart-button-description";this.navInstructionsId=this.id+"-nav-instructions";this.tableId=this.id+"-table";this.focusColumnMask=[];this.expansionColumnMask=[];this.baseColumnMask=[];this.focusRowMask=[];this.expansionRowMask=[];this.baseRowMask=[];this.focusedCellInternal=null;this.destroyed=new sf;this.isActive=this.internalFocusTransfer=
!1;this.chart.keyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(f){e.ngZone.run(function(){e.onKeyDown(f)})});this.chart.syncKeyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(f){e.focused?e.grid&&e.grid.rows.length&&e.grid.columns.length&&h_c.includes(f.key)&&f.preventDefault():e.ignoreKeyboardEvents.add(f)})};qH.prototype.shownColumns=function(a){for(var b=[],c=0;c<a.length;c++)fFa(this,c)&&b.push({colIndex:c,column:a[c]});return b};
var j_c=function(a,b){for(var c=[],d=0;d<b.length;d++)oFa(a,d)&&c.push({rowIndex:d,row:b[d]});return c},k_c=function(a,b){if(b===0)return a.internalRows;if(a.audioChartsEnabled&&b===1)return a.internalAudioValues;for(var c=[],d=0;d<a.internalValues.length;d++)c.push(a.internalValues[d][b-a.numberOfHeaderColumns]);return c},rH=function(a,b,c){return b<1?b:k_c(a,c).findIndex(function(d){return d.visualRowIndex===b})+1};qH.prototype.trackByIndex=function(a){return String(a)};
qH.prototype.trackColumnById=function(a,b){return b.column.id};qH.prototype.trackRowById=function(a,b){return b.row.id};
qH.prototype.onKeyDown=function(a){if(this.focused&&this.grid&&this.grid.rows.length&&!this.ignoreKeyboardEvents.has(a)&&this.grid.columns.length&&h_c.includes(a.key)){this.statusUpdate="";var b=this.grid,c=b.rows.length+1-1,d=b.columns.length+this.numberOfHeaderColumns-1;if(this.focusedCell){var e=m(this.focusedCell);b=e.next().value;e=e.next().value;var f,g,k=(g=(f=l_c(this,b,e))==null?void 0:f.visualRowIndex)!=null?g:0;g=b;f=e;switch(a.key){case "ArrowUp":a=Math.max(0,k-1);g=rH(this,a,f);break;
case "PageUp":a=Math.max(0,k-10);g=rH(this,a,f);break;case "ArrowDown":a=Math.min(c,k+1);g=rH(this,a,f);break;case "PageDown":a=Math.min(c,k+10);g=rH(this,a,f);break;case "ArrowLeft":f=Math.max(0,e-1);break;case "ArrowRight":f=Math.min(d,e+1);break;case "Home":a.ctrlKey&&(g=0);f=0;break;case "End":f=d;a.ctrlKey&&(g=rH(this,c,f));break;case "Enter":case "Space":jFa(this,g-1,f<this.numberOfHeaderColumns);var l;f>=this.numberOfHeaderColumns&&g>=1&&((l=this.audioChartsService.session)==null?void 0:l.getProgress())===
null?(a=this.focusedCellRef)&&this.focused&&this.onGridCellActivate.emit(a.nativeElement):f>=this.numberOfHeaderColumns&&g===0?dFa(this,f-this.numberOfHeaderColumns):f===0&&g>=1&&this.toggleRow(g-1)}if(b!==g||e!==f)this.focusedCell=[g,f],m_c(this,this.focusedCell);b!==g&&(this.statusUpdate=g>=1?(new Tl("Data series {SERIES_NAME} is now selected")).format({SERIES_NAME:this.internalRows[g-1].label}):"Data series unselected")}else{b=null;switch(a.key){case "ArrowUp":case "PageDown":case "ArrowLeft":case "ArrowDown":case "ArrowRight":case "PageUp":case "Home":b=
[1,0];break;case "End":b=[c,d]}b!==this.focusedCell&&(b[0]=rH(this,b[0],b[1]),this.focusedCell=b,m_c(this,this.focusedCell))}}else this.ignoreKeyboardEvents.has(a)&&this.ignoreKeyboardEvents.delete(a)};
var l_c=function(a,b,c){if(b===0)return a.internalColumns[c-a.numberOfHeaderColumns];if(c===0)return a.internalRows[b-1];if(a.audioChartsEnabled&&c===1)return a.internalAudioValues[b-1];if(!a.focusedValue)return null;c=m(a.focusedValue);b=c.next().value;c=c.next().value;return(a=a.internalValues[b])?a[c]||null:null};
qH.prototype.focus=function(a){this.isActive||(this.isActive=!0,this.gridGenerator&&(this.grid=this.gridGenerator(),n_c(this)),this.columnMaskGenerator&&(this.columnMask=this.columnMaskGenerator()));this.focused=!0;this.onFocus.next(a);this.focusedCell||(this.focusedCell=[0,0]);this.internalFocusTransfer||m_c(this,this.focusedCell)};qH.prototype.blur=function(a){this.focused=!1;this.internalFocusTransfer||(this.onBlur.next(a),m_c(this,null))};
var rFa=function(a){return(new Tl('Populate data for table, "{LAYER_TITLE}", on chart, "{CHART_TITLE}"')).format({CHART_TITLE:a.chartTitle||"Untitled",LAYER_TITLE:a.layerTitle})},o_c=function(a){return a.refactorA11yNavInstructions?"Time Series Name":(new Tl('Grid for data, "{LAYER_TITLE}", on chart, "{CHART_TITLE}". Navigate this grid using arrow keys. Page Up and Page Down moves focus up and down by 10 rows. Home and End moves focus to the first and last cell in the current row. Ctrl+Home and Ctrl+End moves focus to the first and last cell of the grid.')).format({CHART_TITLE:a.chartTitle||
"Untitled",LAYER_TITLE:a.layerTitle})},n_c=function(a){p_c(a);if(a.grid){var b=a.grid.columns;a.baseColumnMask=b.map(function(f,g){return g===0||g===b.length-1});a.expansionColumnMask=b.map(function(){return!1});var c=vl(a.focusedCell,a.numberOfHeaderColumns)[1];a.focusColumnMask=b.map(function(f,g){return g===c});var d=a.grid.rows;a.baseRowMask=d.length<=12?d.map(function(){return!0}):d.map(function(f,g){return g===0||g===d.length-1});a.expansionRowMask=d.map(function(){return!1});var e=vl(a.focusedCell,
a.numberOfHeaderColumns)[0];a.focusRowMask=d.map(function(f,g){return g===e})}};qH.prototype.ngOnChanges=function(a){if("grid"in a||"gridGenerator"in a)this.gridGenerator&&this.isActive&&(this.grid=this.gridGenerator()),n_c(this);"columnMaskGenerator"in a&&this.columnMaskGenerator&&this.isActive&&(this.columnMask=this.columnMaskGenerator())};
var fFa=function(a,b){var c=a.columnMask||[];return!!(a.baseColumnMask[b]||c[b]||a.expansionColumnMask[b]||a.focusColumnMask[b])},oFa=function(a,b){var c=a.rowMask||[];return!!(a.baseRowMask[b]||c[b]||a.expansionRowMask[b]||a.focusRowMask[b])};qH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){this.refocusAfterViewChecked=!1;var a=this.focusedCellRef;this.internalFocusTransfer=!0;a&&a.nativeElement.focus();this.internalFocusTransfer=!1}};
var dFa=function(a,b){if(fFa(a,b+1))a.expansionColumnMask[b]=!1,a.statusUpdate="1 column hidden";else{var c=b+1,d=0;for(a.expansionColumnMask[b]=!0;c<a.expansionColumnMask.length&&!fFa(a,c)&&d<10;)a.expansionColumnMask[c]=!0,c++,d++;a.statusUpdate=(new Tl("{NUM_COLUMNS, plural, =1 {1 more column shown} other {{NUM_COLUMNS} more columns shown}}")).format({NUM_COLUMNS:d})}a.cdr.markForCheck()};
qH.prototype.toggleRow=function(a){if(oFa(this,a+1))this.expansionRowMask[a]=!1,this.statusUpdate="1 row hidden";else{var b=a+1,c=0;for(this.expansionRowMask[a]=!0;b<this.expansionRowMask.length&&!oFa(this,b)&&c<10;)this.expansionRowMask[b]=!0,b++,c++;this.statusUpdate=(new Tl("{NUM_ROWS, plural, =1 {1 more row shown} other {{NUM_ROWS} more rows shown}}")).format({NUM_ROWS:c})}this.cdr.markForCheck()};
var jFa=function(a,b,c){if(a.audioChartsEnabled){var d=q_c(a);c&&!d&&(c=a.audioChartsService.session,b=a.internalAudioValues[b].audioChartOptions,q_c(a),b&&(c==null||c.play(b)))}},hFa=function(a){var b;return((b=a.audioChartsService.session)==null?void 0:b.getProgress())!==null},q_c=function(a){if(hFa(a)){var b;(b=a.audioChartsService.session)==null||b.stop();return!0}return!1},p_c=function(a){var b=a.focusedCellRow,c=a.focusedCellColumn,d=a.focusedCell;if(a.grid){var e=a.grid,f=e.rows,g=e.columns,
k=e.values;e=[];for(var l=0;l<f.length;l++){var r=k[l];if(!r)break;e.push([]);for(var w=0;w<g.length;w++){var x=r[w];if(!x)break;e[l].push(Object.assign({},{id:a.id+"-value-"+l+"-"+w,tabindex:-1,visualRowIndex:0},x))}}for(k=0;k<g.length;k++){l=[];for(r=0;r<f.length;r++)l.push(e[r][k]);l=l.sort(function(J,O){return J.value===void 0&&O.value===void 0?0:J.value===void 0?1:O.value===void 0?-1:J.position.y-O.position.y});for(r=0;r<l.length;r++)l[r].visualRowIndex=r+1}var C=[];for(k=0;k<g.length;k++)r=
void 0,l=(r=e[0])==null?void 0:r[k],w=r=void 0,l=Object.assign({},(w=(r=l)==null?void 0:r.position)!=null?w:{},{y:0,height:void 0,width:void 0}),C.push(Object.assign({},{id:a.id+"-column-"+k,tabindex:-1,position:l,visualRowIndex:0},g[k]));g=[];k=[];l=a.grid.audioChartContext;for(r=0;r<f.length;r++){x=void 0;w=Object.assign({},(x=e[r][0])==null?void 0:x.position,{height:void 0,width:void 0});x=void 0;g.push(Object.assign({},{id:a.id+"-row-"+r,tabindex:-1,position:w,visualRowIndex:(x=e[r][0])==null?
void 0:x.visualRowIndex},f[r]));x=null;l&&(x={values:e[r].reduce(function(J,O,R){R=C[R].value;O=O.value;return R===void 0||O===void 0?J:J.concat([{x:R,y:O}])},[]),earcons:C.length>=l.xAxis.ticks.length*5?l.xAxis.ticks.map(function(J){return{x:J,earcon:TZc}}):void 0,xAxis:{density:C.length,min:l.xAxis.min,max:l.xAxis.max},yAxis:{min:l.yAxis.min,max:l.yAxis.max}});var H=void 0;k.push({id:a.id+"-audio-"+r,tabindex:-1,position:w,visualRowIndex:(H=e[r][0])==null?void 0:H.visualRowIndex,audioChartOptions:x})}a.internalValues=
e;a.internalColumns=C;a.internalRows=g;a.internalAudioValues=k}else a.internalValues=[],a.internalColumns=[],a.internalRows=[],a.internalAudioValues=[];r_c(a,d,b,c)},r_c=function(a,b,c,d){if(b){var e=null,f=null;c&&(e=a.internalRows.findIndex(function(g){return g.label===c.label}),e=e>-1?e:null);d&&(f=a.internalColumns.findIndex(function(g){return g.label===d.label}),f=f>-1?f:null);e!==null&&f!==null?a.focusedCell=[e+1,f+a.numberOfHeaderColumns]:e!==null&&f===null&&b[1]<a.numberOfHeaderColumns?a.focusedCell=
[e+1,b[1]]:f!==null&&e===null&&b[0]<1?a.focusedCell=[b[0],f+a.numberOfHeaderColumns]:a.focusedCell=null;m_c(a,a.focusedCell)}};
qH.prototype.getAriaLabel=function(){return this.grid&&this.internalRows.length?(new Tl("{NUM_OTHER_TIME_SERIES, plural,=0 {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}}=1 {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}, and # other}other {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}, and # others}}")).format({CHART_TITLE:this.chartTitle||"Untitled",FIRST_TIME_SERIES_NAME:this.internalRows[0].label,
NUM_OTHER_TIME_SERIES:this.internalRows.length-1}):(new Tl("No data available for table, {LAYER_TITLE}, on chart, {CHART_TITLE}")).format({CHART_TITLE:this.chartTitle||"Untitled",LAYER_TITLE:this.layerTitle})};
var kFa=function(a,b){var c=a.internalRows[b];return a.internalAudioValues[b].audioChartOptions?(new Tl("Play audio overview for {ROW_LABEL}")).format({ROW_LABEL:c.label}):(new Tl("No audio overview available for {ROW_LABEL}")).format({ROW_LABEL:c.label})},lFa=function(a,b){if(!a.internalAudioValues[b].audioChartOptions)return"";b=a.internalRows[b];b=[(new Tl("Pitch represents the y axis and time represents the x axis.")).format({ROW_LABEL:b.label})];var c,d=(c=a.grid)==null?void 0:c.yAxisState;d&&
d.min!==null&&d.max!==null&&b.push((new Tl("Y axis ranges from {MIN} to {MAX}.")).format({MIN:Nk(d.min,d.unit),MAX:Nk(d.max,d.unit)}));var e;(a=(e=a.grid)==null?void 0:e.xAxisState)&&a.min!==null&&a.max!==null&&(a.unit==="ms_since_epoch"?(e=Gk(a.timezoneOffset,a.timeZoneId),b.push((new Tl("X axis ranges from {MIN} to {MAX}.")).format({MIN:TAa(new Date(a.min),e),MAX:TAa(new Date(a.max),e)}))):b.push((new Tl("X axis ranges from {MIN} to {MAX}.")).format({MIN:Nk(a.min,a.unit),MAX:Nk(a.max,a.unit)})));
return b.join(" ")},s_c=function(a){if(!a.focusedCell)return!1;var b=m(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===0},bFa=function(a){if(!a.focusedCell||!a.audioChartsEnabled)return!1;var b=m(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===1},m_c=function(a,b){a.onFocusedCellChange.emit({focusedCell:b,focusedGridIndices:vl(b,a.numberOfHeaderColumns)})};qH.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
da.Object.defineProperties(qH.prototype,{numberOfHeaderColumns:{configurable:!0,enumerable:!0,get:function(){return this.audioChartsEnabled?2:1}},focusedCell:{configurable:!0,enumerable:!0,get:function(){return this.focusedCellInternal},set:function(a){var b=this.focusedCellProps;b&&(b.tabindex=-1);this.focusedCellInternal=a;if(b=this.focusedCellProps)b.tabindex=0;var c=vl(a,this.numberOfHeaderColumns)[0],d=vl(a,this.numberOfHeaderColumns)[1],e;this.focusColumnMask=((e=this.grid)==null?void 0:e.columns.map(function(g,
k){return k===d}))||[];var f;this.focusRowMask=((f=this.grid)==null?void 0:f.rows.map(function(g,k){return k===c}))||[];this.focused&&(this.refocusAfterViewChecked=!0)}},focusedValue:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;var b=m(a);a=b.next().value;b=b.next().value;return a<1||b<this.numberOfHeaderColumns?null:[a-1,b-this.numberOfHeaderColumns]}},focusedCellRef:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell)return null;if(s_c(this))return this.topLeftCellRef;
if(bFa(this))return this.audioHeaderRef;var a,b=(a=this.focusedCellProps)==null?void 0:a.id;return b?this.valueRefs.find(function(c){return c.nativeElement.id===b})||this.columnHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.rowHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.audioValueRefs.find(function(c){return c.nativeElement.id===b})||null:null}},focusedCellProps:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell||this.focusedCell.length!==2)return null;
var a=m(this.focusedCell),b=a.next().value;a=a.next().value;return l_c(this,b,a)}},focusedCellRow:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=m(vl(a,this.numberOfHeaderColumns)).next().value;return a===null?null:this.internalRows[a]}},focusedCellColumn:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=m(vl(a,this.numberOfHeaderColumns));a.next();a=a.next().value;return a===null?null:this.internalColumns[a]}}});
qH.\u0275fac=function(a){return new (a||qH)(Ye(LF),Ye(pH),Ye(ux),Ye(Rg))};
qH.\u0275cmp=D({type:qH,selectors:[["ac-accessibility-grid"]],viewQuery:function(a,b){a&1&&(hg(b_c,5),hg(c_c,5),hg(d_c,5),hg(e_c,5),hg(f_c,5),hg(g_c,5));if(a&2){var c;lg(c=mg())&&(b.topLeftCellRef=c.first);lg(c=mg())&&(b.audioHeaderRef=c.first);lg(c=mg())&&(b.valueRefs=c);lg(c=mg())&&(b.columnHeaderRefs=c);lg(c=mg())&&(b.rowHeaderRefs=c);lg(c=mg())&&(b.audioValueRefs=c)}},hostAttrs:[1,"ac-accessibility-grid"],inputs:{grid:"grid",gridGenerator:"gridGenerator",columnMask:"columnMask",columnMaskGenerator:"columnMaskGenerator",
rowMask:"rowMask",onGridCellActivateDescription:"onGridCellActivateDescription",chartTitle:"chartTitle",layerTitle:"layerTitle",audioChartsEnabled:"audioChartsEnabled",refactorA11yNavInstructions:"refactorA11yNavInstructions"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onFocusedCellChange:"onFocusedCellChange",onGridCellActivate:"onGridCellActivate"},features:[bx],decls:26,vars:32,consts:function(){return[["virtualTable",""],["topLeftCell",""],["audioHeader",""],["virtualTableColumnHeaderButton",
""],["virtualTableRowHeaderButton",""],["virtualTableAudioValueButton",""],["virtualTableValueButton",""]," If subsequent columns are omitted, activating a column header will reveal all subsequent columns up to the next revealed column.\n"," If subsequent rows are omitted, activating a row header will reveal all subsequent rows up to the next revealed row.\n"," No data. ",' To save memory, this table is inactive by default. To populate this table, click the "\ufffd0\ufffd" button just prior to this table. ',
[1,"show-on-focus","ac-screen-reader-only-content","ac-a11y-focusable",3,"click","disabled"],["role","grid",1,"ac-accessibility-grid-table"],["role","rowgroup"],["role","row",1,"table-rendering-layer"],["scope","col","role","columnheader",1,"top-left-table-header","ac-a11y-focusable","show-on-focus",3,"focus","blur"],[1,"ac-screen-reader-only-content"],["scope","col","role","columnheader","class","top-left-table-header ac-a11y-focusable",3,"focus","blur",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],
["role","row","class","table-rendering-layer series-row",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["role","status","aria-live","polite",1,"ac-screen-reader-only-content"],["scope","col","role","columnheader",1,"top-left-table-header","ac-a11y-focusable",3,"focus","blur"],["scope","col","role","columnheader",1,"positioned-table-header",3,"ngStyle"],[1,"ac-screen-reader-only-content","show-on-focus","ac-a11y-focusable",3,"click","focus","blur"],["role","row",1,"table-rendering-layer","series-row"],
["scope","row","role","rowheader",1,"positioned-table-header",3,"ngStyle"],["class","positioned-table-header","role","gridcell",3,"ngStyle",4,"ngIf"],["role","gridcell",1,"positioned-table-header",3,"ngStyle"],[1,"ac-screen-reader-only-content","show-on-focus","ac-a11y-focusable",3,"click","focus","blur","disabled"],["hidden",""],["role","presentation",1,"audio-chart-icon",3,"svgIcon"],["role","gridcell",1,"ac-a11y-focus-within","positioned-table-value",3,"ngStyle"],[1,"ac-screen-reader-only-content",
3,"click","focus","blur"],["role","gridcell","colspan","0"]]},template:function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){u(c);b.isActive||(b.isActive=!0,b.gridGenerator&&(b.grid=b.gridGenerator(),n_c(b)),b.columnMaskGenerator&&(b.columnMask=b.columnMaskGenerator()),b.statusUpdate=(new Tl("Table populated. A {NUM_ROWS} \u00d7 {NUM_COLUMNS} (rows \u00d7 columns) datasetis now available.")).format({NUM_COLUMNS:b.internalColumns.length,NUM_ROWS:b.internalRows.length}),b.focused=!0,
b.focusedCell=[0,0]);return v()});Q(1);L();K(2,"p");Q(3);L();K(4,"table",12,0)(6,"thead",13)(7,"tr",14)(8,"th",15,1);N("focus",function(d){u(c);return v(b.focus(d))})("blur",function(d){u(c);return v(b.blur(d))});K(10,"span",16);Q(11);L()();E(12,cFa,4,3,"th",17)(13,gFa,5,10,"ng-container",18);L()();K(14,"tbody",13);E(15,pFa,8,14,"tr",19)(16,qFa,4,0,"tr",20)(17,sFa,4,1,"tr",20);L()();K(18,"p",16);Yf(19,7);L();K(20,"p",16);Yf(21,8);L();K(22,"p",16);Q(23);L();K(24,"p",21);Q(25);L()}a&2&&(I("disabled",
b.focused),Kf("aria-controls",b.tableId)("aria-expanded",b.grid!==null&&b.isActive),B(),S(" ",rFa(b),"\n"),B(),wg("hidden",!(b.refactorA11yNavInstructions&&b.focused)),Kf("id",b.navInstructionsId),B(),S(" ",b.NAV_INSTRUCTIONS,"\n"),B(),wg("ac-a11y-focusable",!0),Kf("id",b.tableId)("aria-label",b.getAriaLabel())("aria-describedby",b.refactorA11yNavInstructions?b.navInstructionsId:null)("aria-rowcount",b.internalRows.length+1)("aria-colcount",b.internalColumns.length+1),B(3),Kf("aria-rowindex",1),B(),
Kf("aria-colindex",1)("tabindex",!b.focusedCell||s_c(b)?0:-1),B(3),yg(o_c(b)),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalColumns))("ngForTrackBy",b.trackByIndex),B(2),I("ngForOf",j_c(b,b.internalRows))("ngForTrackBy",b.trackRowById),B(),I("ngIf",j_c(b,b.internalRows).length===0&&b.grid),B(),I("ngIf",!b.grid&&b.gridGenerator&&!b.isActive),B(),Kf("id",b.columnToggleDescriptionId),B(2),Kf("id",b.rowToggleDescriptionId),B(2),Kf("id",b.activateGridCellDescriptionId),B(),
S(" ",b.onGridCellActivateDescription,"\n"),B(),Kf("aria-hidden",!b.statusUpdate),B(),S(" ",b.statusUpdate,"\n"))},dependencies:[Dy,Ex,Fx,Jx],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{position:relative}[_nghost-%COMP%]   .ac-accessibility-grid-table[_ngcontent-%COMP%]{position:relative;height:100%;width:100%}.table-rendering-layer[_ngcontent-%COMP%]{will-change:opacity}.series-row[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px}.positioned-table-header[_ngcontent-%COMP%]{position:absolute;white-space:nowrap;text-align:left;padding:0;max-width:100%;background-color:var(--ac-sys-color-extensions-overlay, rgba(255, 255, 255, 0.5))}.positioned-table-value[_ngcontent-%COMP%]{position:absolute;text-align:left;padding:6px;transform:translate(-50%, -50%)}.audio-chart-icon[_ngcontent-%COMP%]{height:1em;width:1em;vertical-align:top;margin-top:-1px}.top-left-table-header[_ngcontent-%COMP%]{position:absolute;text-align:left;padding:0;font-weight:normal;top:0;left:0;background-color:var(--ac-sys-color-extensions-overlay, rgba(255, 255, 255, 0.5))}button.show-on-focus[_ngcontent-%COMP%]:focus, th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface, #fff);font-family:sans-serif;font-size:11px;line-height:1.4em;padding:3px;color:var(--ac-sys-color-extensions-on-surface, #202124)}button.show-on-focus[_ngcontent-%COMP%]:focus.ac-screen-reader-only-content, th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:unset;height:unset;margin:unset;overflow:unset;position:unset;white-space:unset;width:unset;z-index:unset}th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content[_ngcontent-%COMP%]{padding:5.5px;display:block}.hidden[_ngcontent-%COMP%]{display:none}/*# sourceMappingURL=ac_accessibility_grid.css.map */"],
changeDetection:0});var t_c=function(a){this.context=a;this.line=this.t0=this.y1=this.y0=this.x1=this.x0=NaN;this.numPoints=0};t_c.prototype.lineStart=function(){this.x0=this.x1=this.y0=this.y1=this.t0=NaN;this.numPoints=0};t_c.prototype.lineEnd=function(){this.numPoints===2?this.context.lineTo(this.x1,this.y1):this.numPoints===3&&u_c(this,this.t0,v_c(this,this.t0));(this.line||this.line!==0&&this.numPoints===1)&&this.context.closePath();this.line=1-this.line};
t_c.prototype.point=function(a,b){var c=NaN;if(a!==this.x1||b!==this.y1){switch(this.numPoints){case 0:this.numPoints=1;this.line?this.context.lineTo(a,b):this.context.moveTo(a,b);break;case 1:this.numPoints=2;break;case 2:this.numPoints=3;u_c(this,v_c(this,c=w_c(this,a,b)),c);break;default:u_c(this,this.t0,c=w_c(this,a,b))}this.x0=this.x1;this.x1=a;this.y0=this.y1;this.y1=b;this.t0=c}};
var w_c=function(a,b,c){var d=a.x1-a.x0;b-=a.x1;var e=(a.y1-a.y0)/d;a=(c-a.y1)/b;return((e<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(e),Math.abs(a),.5*Math.abs((e*b+a*d)/(d+b)))||0},v_c=function(a,b){var c=a.x1-a.x0;return c?(3*(a.y1-a.y0)/c-b)/2:b},u_c=function(a,b,c){var d=a.x0,e=a.x1,f=a.y1,g=(e-d)/3;a.context.bezierCurveTo(d+g,a.y0+g*b,e-g,f-g*c,e,f)};var x_c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25,lineCap:"butt"},y_c={globalAlpha:.3,lineWidth:.5},z_c={globalAlpha:.05},A_c=Object.assign({},x_c,{lineWidth:1.75}),B_c=Object.assign({},y_c,{globalAlpha:1}),C_c=Object.assign({},z_c,{globalAlpha:.3}),D_c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},E_c=2*Math.PI,F_c=function(a,b){hG.call(this,
a);this.queueService=b;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1};Y(F_c,hG);h=F_c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=window.setTimeout(function(){c.drawInternal(b)},250)))};
h.onYAxisChange=function(a,b){ol(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){(SBa(a)||il(a,b.scope.layerId))&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,l=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:l},bodyLeft:l,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,l=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,C=a.bodyTop,H=a.bodyRight,J=a.bodyWidth,O=a.bodyHeight;if(!(g&&l&&k&&r))return null;var R=pl(k,C,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),V=Xk(g,x,H,d==null?void 0:d.xAxisUnit),ca=Yk(g,x,H,d==null?void 0:d.xAxisUnit);if(!V||!R||!ca||g.min===null||g.max===null)return null;var oa=
(c=l.byLayer.entities[c.layerId])?c.selectedSeries.map(function(pc){return pc.seriesId}):[],ua=c?c.hoveredSeries.map(function(pc){return pc.seriesId}):[],ka=Object.values(l.byLayer.entities).filter(function(pc){return!!pc}).some(function(pc){return gl(pc.selectedSeries).length||gl(pc.hoveredSeries).length});c=f.colorStrategy.getShape?function(pc){var sb,Ob;return b.shouldShowShape((sb=f.clickDotInteraction)!=null?sb:!1,ka,oa.includes(pc.id),ua.includes(pc.id),(Ob=f.multiselectMode)!=null?Ob:!1)?f.colorStrategy.getShape(pc,
e):""}:null;var Ga,ja,ta,xa=(ta=w==null?void 0:(Ga=w.domain)==null?void 0:Ga.multiselectAnchor)!=null?ta:w==null?void 0:(ja=w.domain)==null?void 0:ja.click,Sa,$a=w==null?void 0:(Sa=w.domain)==null?void 0:Sa.hover,pb,Xb;Ga=(Xb=(pb=f.styles)==null?void 0:pb.lineWidth)!=null?Xb:1.25;var lc;pb=((lc=f.styles)==null?0:lc.lineBorderColor)?Ga*2:Ga;lc=Math.ceil(pb/2);pb=new Path2D;pb.rect(x-lc,C-lc,J+2*lc+1,O+2*lc+1);var ec;return Object.assign({},a,{data:d,colorMap:function(pc){return f.colorStrategy.getColor(pc,
e)},shapeMap:c,shapeStateMap:function(pc){if(f.clickDotInteraction&&xa&&oa.includes(pc.id)){var sb=yl(pc.data||[],ca(xa),null,!0);return{position:pc.data[sb],lineSelectedStatus:1}}return f.clickDotInteraction&&$a&&ua.includes(pc.id)&&!f.multiselectMode?(sb=yl(pc.data||[],ca($a),null,!0),{position:pc.data[sb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(pc,sb){return[V(pc.valueOf()),R(sb)]},domainMap:V,rangeMap:R,inverseDomainMap:ca,
selectedSeriesIds:oa,hoveredSeriesIds:ua,anySeriesSelectedOrHovered:ka,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,bodyClippingPath:pb,clickDotInteraction:(ec=f.clickDotInteraction)!=null?ec:!1})};h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=Yk(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),l=[];e.data&&(l=e.data.series.reduce(function(w,x){var C=m(JEa(x,k.valueOf(),0)),H=C.next().value;C=C.next().value;H=x.data[H];C=x.data[C];var J=e.config.pointConnectionMethod;if(!H||!C)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||zl(f,H,C,g).gapDetected)||w.push({series:x,value:Sk(+H.x,+C.x,H.y,C.y,+k)});J===
"zero_fill"&&zl(f,H,C,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;l=m(l);for(var r=l.next();!r.done;r=l.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=m(a.data.series),l=k.next();!l.done;l=k.next()){l=l.value;var r=m(JEa(l,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,l.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=l.data[w],C=l.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(C.x,C.y));x<d&&x<=c&&(d=x,e=l.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(fG(this,this.canvas),this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c,d,e=(d=(c=a.config.styles)==null?void 0:c.lineWidth)!=null?d:1.25;c={lineDrawingOptions:Object.assign({},x_c,{lineWidth:e,globalAlpha:a.anySeriesSelectedOrHovered&&!a.brushing?.15:1}),bandLineDrawingOptions:y_c,bandShadingDrawingOptions:z_c};var f=a.selectedSeriesIds;a.brushing||
(f=f.concat(a.hoveredSeriesIds));var g,k;d=(k=(g=a.data)==null?void 0:g.series)!=null?k:[];g=d.filter(function(C){return!f.includes(C.id)});if(g.length){if(k=a.shapeMap){e=new Set;d=m(d);for(var l=d.next();!l.done;l=d.next())e.add(k(l.value));g.length>e.size&&(k=null)}this.drawLines(g,a.domainMap,a.rangeMap,a.colorMap,k,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,c,a.clickDotInteraction)}var r;c=(r=a.data)==null?void 0:r.series.filter(function(C){return f.includes(C.id)});
if(c==null?0:c.length){var w,x;this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,{lineDrawingOptions:Object.assign({},A_c,{lineWidth:((x=(w=a.config.styles)==null?void 0:w.lineWidth)!=null?x:1.25)+.5}),bandLineDrawingOptions:B_c,bandShadingDrawingOptions:C_c},a.clickDotInteraction)}eG(this,a.xAxisMin,a.xAxisMax);r=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:r});this.enableManualLatencyTracking&&
dG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,l,r,w,x){this.ctx.save();a=m(a);for(var C=a.next();!C.done;C=a.next()){C=C.value;var H=d(C),J=e&&e(C),O=f&&f(C),R=void 0;if((R=r.styles)==null?0:R.lineBorderColor){var V=R=void 0,ca=void 0,oa=2*((ca=(R=w)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ca:1);R=Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineWidth:oa})});V=void 0;this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:(V=r.styles)==null?
void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:l,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}R=void 0;this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:l,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,
useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineDash:(R=r.styles)==null?void 0:R.lineDash})}),lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,l=a.bodyClippingPath,r=a.outputPeriodMs,w=a.pointConnectionMethod,x=a.useLegacyGapDetection,C=a.drawingOptions,H=a.lineInterpolationMethod,J=a.clickDotInteraction,O=a.points;if(O.length){var R=r||Infinity,V=[],ca=[],oa,ua,ka,Ga,ja=typeof((oa=O)==null?void 0:(ua=oa[0])==null?void 0:ua.min)==="number"&&typeof((ka=O)==null?void 0:(Ga=ka[0])==null?void 0:Ga.max)==="number",ta=void 0,
xa=null,Sa=[],$a=[],pb=void 0,Xb=function(Xi,nm){pb?(pb.x=Xi,pb.y=nm):pb={x:Xi,y:nm}},lc=typeof d==="string"?void 0:d,ec=!!lc,pc=[];if(ec){var sb=this.generateMulticolorPoints(O,lc),Ob=sb.linePathsColors;O=sb.multicolorPoints;pc=Ob}for(var ib=0;ib<O.length;ib++){var Yb=O[ib-1]||null,rc=O[ib],Gc=b(rc.x.valueOf()),Rb=void 0,Cc=m(cl([Gc,c(rc.y)],(Rb=C.lineDrawingOptions.lineWidth)!=null?Rb:1)),Sc=Cc.next().value,Bd=Cc.next().value,Nc=Sc,fe=Bd,Xe=void 0,Ve=void 0,Hh=void 0;if(ja){var Gw=void 0,dp=void 0,
Ej=void 0,Rm=m(cl([Gc,c((Gw=rc.min)!=null?Gw:rc.y),c((dp=rc.max)!=null?dp:rc.y)],(Ej=C.bandLineDrawingOptions.lineWidth)!=null?Ej:1));Xe=Rm.next().value;Ve=Rm.next().value;Hh=Rm.next().value}(!xa||Nc>xa[0])&&Nc>=k.left-1&&Nc<=k.right+1&&fe>=k.top-1&&fe<=k.bottom+1&&(xa=[Nc,fe]);var Hq=!1,Hw=0,fk=!1;if(Yb){if(w==="gap_detection"||w==="zero_fill"){var Bl=zl(R,Yb,rc,x);Hq=Bl.gapDetected;Hw=Bl.gapWidthMs}if(rc.tileDomain&&Yb.tileDomain&&rc.tileDomain!==Yb.tileDomain){var ep=m(Yb.tileDomain),Iw=ep.next().value,
XK=ep.next().value,Cl=Iw,Xz=XK,bX=m(rc.tileDomain),i9=bX.next().value,j9=bX.next().value,k9=i9;if(Cl>j9||k9>Xz)fk=!0}}if(Hq||fk||w==="never")if(fk||w!=="zero_fill")Sa.length&&V.push(Sa),Sa=[[Nc,fe]],ja&&(ca.push($a),$a=[],Xe!==void 0&&Ve!==void 0&&Hh!==void 0&&$a.push([Xe,Ve,Hh]));else{for(var cX=Hw/R-1,Sx=rc.x.valueOf()>Yb.x.valueOf(),Tx=Sx?Yb.x.valueOf()+R:Yb.x.valueOf()-R,$N=0;$N<cX;$N++){var aO=void 0,dX=m(cl([b(Tx),c(0)],(aO=C.lineDrawingOptions.lineWidth)!=null?aO:1)),zh=dX.next().value,vqa=
dX.next().value,eX=zh,l9=vqa;Sa.push([eX,l9]);ta=el(ta,eX,l9,pb,k);if(ja){var RHa=m(cl([b(Tx),c(0)],C.bandLineDrawingOptions.lineWidth)),SHa=RHa.next().value,fX=RHa.next().value;$a.push([SHa,fX,fX])}Xb(eX,l9);Tx=Sx?Tx+R:Tx-R}Sa.push([Nc,fe]);ta=el(ta,Nc,fe,pb,k);ja&&Xe!==void 0&&Ve!==void 0&&Hh!==void 0&&$a.push([Xe,Ve,Hh])}else Sa.push([Nc,fe]),ta=el(ta,Nc,fe,pb,k),ja&&Xe!==void 0&&Ve!==void 0&&Hh!==void 0&&$a.push([Xe,Ve,Hh]);Xb(Nc,fe)}Sa.length&&V.push(Sa);ja&&$a.length&&ca.push($a);if(w==="zero_fill"&&
r&&V.length&&V[0].length&&V[V.length-1].length){var yv=Math.abs(b(r)-b(0)),om=V[0],Fo=V[V.length-1],gX=om[0][0]<Fo[Fo.length-1][0],XB=c(0),Ux=function(Xi,nm,YB){var zv=YB?{x:Xi[0][0],y:Xi[0][1]}:{x:Xi[Xi.length-1][0],y:Xi[Xi.length-1][1]},bO;nm=m(cl([nm,XB],(bO=C.lineDrawingOptions.lineWidth)!=null?bO:1));bO=nm.next().value;nm=nm.next().value;if((!gX&&YB||gX&&!YB)&&bO>zv.x||(!gX&&!YB||gX&&YB)&&bO<zv.x)ta=el(ta,bO,nm,zv,k),YB?Xi.unshift([bO,nm]):Xi.push([bO,nm])};gX?(Ux(om,om[0][0]-yv,!0),Ux(om,k.left,
!0),Ux(Fo,Fo[Fo.length-1][0]+yv,!1),Ux(Fo,k.right,!1)):(Ux(om,om[0][0]+yv,!0),Ux(om,k.right,!0),Ux(Fo,Fo[Fo.length-1][0]-yv,!1),Ux(Fo,k.left,!1))}this.ctx.save();if(ca.length){ec||(this.ctx.fillStyle=Zk(d,this.base),this.ctx.strokeStyle=Zk(d,this.base));for(var wqa=m(ca),xqa=wqa.next();!xqa.done;xqa=wqa.next()){var uH=xqa.value;if(uH.length!==0){var m9=m(uH[0]),yqa=m9.next().value,vH=m9.next().value,zqa=m9.next().value,Us=yqa,hX=vH,cO=zqa,sn=new Path2D,Vx=new Path2D,Go=new Path2D;if(uH.length===1)sn.moveTo(Us-
2,hX),sn.lineTo(Us+2,hX),Vx.moveTo(Us-2,cO),Vx.lineTo(Us+2,cO),Go.moveTo(Us-2,cO),Go.lineTo(Us+2,cO),Go.lineTo(Us+2,hX),Go.lineTo(Us-2,hX);else{sn.moveTo(Us,hX);Vx.moveTo(Us,cO);Go.moveTo(Us,cO);for(var wH=1;wH<uH.length;wH++){var xH=m(uH[wH]),Wx=xH.next().value,Aqa=xH.next().value,Bqa=xH.next().value,Cqa=Wx,THa=Bqa;sn.lineTo(Cqa,Aqa);Vx.lineTo(Cqa,THa);Go.lineTo(Cqa,THa)}for(var Dqa=uH.length-1;Dqa>=0;Dqa--){var n9=m(uH[Dqa]),UHa=n9.next().value,Eqa=n9.next().value;Go.lineTo(UHa,Eqa)}}Go.closePath();
$k(this.ctx,C.bandShadingDrawingOptions,this.base);this.ctx.fill(Go);$k(this.ctx,C.bandLineDrawingOptions,this.base);this.ctx.stroke(sn);this.ctx.stroke(Vx)}}}$k(this.ctx,C.lineDrawingOptions,this.base);var Fqa;this.ctx.lineWidth=(Fqa=C.lineDrawingOptions.lineWidth)!=null?Fqa:1;ec||(this.ctx.strokeStyle=Zk(d,this.base),this.ctx.fillStyle=Zk(d,this.base));this.applyPathsToCanvas(V,pc,w,H,ec,l);$k(this.ctx,D_c,this.base);if(e)if(J&&f.position&&f.lineSelectedStatus!==0)this.drawShapeWithinBounds(b(f.position.x.valueOf()),
c(f.position.y),k,e,g,f.lineSelectedStatus,J);else if(ta&&w!=="never"&&this.drawShapeOrInterpolate(ta,k,e,g,f.lineSelectedStatus,J),xa&&(w==="never"||!ta)){var VHa=m(xa),r3a=VHa.next().value,Vs=VHa.next().value;this.drawShapeWithinBounds(r3a,Vs,k,e,g,f.lineSelectedStatus,J)}this.ctx.restore()}};
h.applyPathsToCanvas=function(a,b,c,d,e,f){this.ctx.save();this.ctx.clip(f);this.ctx.beginPath();switch(d){case "linear":d=m(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var g=m(a[0]);f=g.next().value;g=g.next().value;this.ctx.moveTo(f,g);if(a.length===1)this.drawSinglePoint(f,g,c);else for(f=1;f<a.length;f++){var k=m(a[f]);g=k.next().value;k=k.next().value;this.ctx.lineTo(g,k);e&&(this.ctx.strokeStyle=Zk(b[f-1],this.base),this.ctx.fillStyle=Zk(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),
this.ctx.moveTo(g,k))}}break;case "step-before":case "step-after":a=m(a);for(f=a.next();!f.done;f=a.next())if(f=f.value,f[0]){k=m(f[0]);g=k.next().value;var l=k.next().value;k=g;var r=l;this.ctx.moveTo(k,r);if(f.length===1)this.drawSinglePoint(k,r,c);else for(g=1;g<f.length;g++){l=m([k,r]);k=l.next().value;var w=l.next().value;l=k;r=m(f[g]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(l,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=Zk(b[g-1],this.base),
this.ctx.fillStyle=Zk(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new t_c(this.ctx);e=m(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(f=m(d[0]),a=f.next().value,f=f.next().value,b.lineStart(),b.point(a,f),d.length===1)this.drawSinglePoint(a,f,c);else{for(a=1;a<d.length;a++)g=m(d[a]),f=g.next().value,g=g.next().value,b.point(f,g);b.lineEnd()}break;default:wb(d,"value not in LineInterpolationMethod type.")}this.ctx.stroke();this.ctx.restore()};
h.drawSinglePoint=function(a,b,c){c==="never"?(this.ctx.beginPath(),this.ctx.arc(a,b,2,0,E_c),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()):(this.ctx.moveTo(a-2,b),this.ctx.lineTo(a+2,b))};
h.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.ctx.moveTo(a,b);a=MBa(a,b,c,d?g/d.width:1);f&&e===1?(this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.lineWidth=3,this.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.lineWidth=3,this.ctx.strokeStyle=this.ctx.fillStyle,
this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.globalAlpha=.25,this.ctx.fill(a),this.ctx.globalAlpha=1):(this.ctx.save(),this.ctx.globalAlpha=1,f&&(this.ctx.lineWidth=3),this.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.fill(a))};
h.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
h.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=Math.max(b.right,Math.min(a.x0,a.x1)),k=Tk(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=Math.min(b.top,Math.max(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=Math.max(b.bottom,Math.min(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};
h.generateMulticolorPoints=function(a,b){var c=[],d=[];c.push(a[0]);for(var e=1;e<a.length;e++){var f=a[e-1],g=a[e],k=[].concat(q(b));f.y>g.y&&k.reverse();k=m(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,f.x!==g.x&&l.interval.min<=f.y&&f.y<=l.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,l.interval.max):Math.max(g.y,l.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(l.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var G_c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25},H_c={globalAlpha:.3,lineWidth:.5},I_c={globalAlpha:.05},J_c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},K_c=2*Math.PI,L_c=function(a,b){hG.call(this,a);this.queueService=b;this.shapeCanvas=document.createElement("canvas");this.bandCanvas=document.createElement("canvas");this.bandCanvasAttached=
!1;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;this.bandCanvas.setAttribute("aria-hidden","true");this.bandCanvas.style.position="absolute";b=this.bandCanvas.getContext("2d");if(!b)throw Error("Ec");this.bandCtx=b;a.appendChild(this.shapeCanvas)};Y(L_c,hG);h=L_c.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),iG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){ol(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){SBa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,l=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:l},bodyLeft:l,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,l=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,C=a.bodyRight;if(!(g&&l&&k&&r))return null;var H=pl(k,a.bodyTop,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),J=Xk(g,x,C,d==null?void 0:d.xAxisUnit),O=Yk(g,x,C,d==null?void 0:d.xAxisUnit);if(!J||!H||!O||g.min===null||g.max===null)return null;var R=(c=l.byLayer.entities[c.layerId])?
c.selectedSeries.map(function(Sa){return Sa.seriesId}):[],V=c?c.hoveredSeries.map(function(Sa){return Sa.seriesId}):[],ca=Object.values(l.byLayer.entities).filter(function(Sa){return!!Sa}).some(function(Sa){return gl(Sa.selectedSeries).length||gl(Sa.hoveredSeries).length});c=f.colorStrategy.getShape?function(Sa){var $a,pb;return b.shouldShowShape(($a=f.clickDotInteraction)!=null?$a:!1,ca,R.includes(Sa.id),V.includes(Sa.id),(pb=f.multiselectMode)!=null?pb:!1)?f.colorStrategy.getShape(Sa,e):""}:null;
var oa,ua,ka,Ga=(ka=w==null?void 0:(oa=w.domain)==null?void 0:oa.multiselectAnchor)!=null?ka:w==null?void 0:(ua=w.domain)==null?void 0:ua.click,ja,ta=w==null?void 0:(ja=w.domain)==null?void 0:ja.hover,xa;return Object.assign({},a,{data:d,colorMap:function(Sa){return f.colorStrategy.getColor(Sa,e)},shapeMap:c,shapeStateMap:function(Sa){if(f.clickDotInteraction&&Ga&&R.includes(Sa.id)){var $a=yl(Sa.data||[],O(Ga),null,!0);return{position:Sa.data[$a],lineSelectedStatus:1}}return f.clickDotInteraction&&
ta&&V.includes(Sa.id)&&!f.multiselectMode?($a=yl(Sa.data||[],O(ta),null,!0),{position:Sa.data[$a],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(Sa,$a){return[J(Sa.valueOf()),H($a)]},domainMap:J,rangeMap:H,inverseDomainMap:O,selectedSeriesIds:R,hoveredSeriesIds:V,anySeriesSelectedOrHovered:ca,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,clickDotInteraction:(xa=f.clickDotInteraction)!=null?xa:!1})};
h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=Yk(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),l=[];e.data&&(l=e.data.series.reduce(function(w,x){var C=m(JEa(x,k.valueOf(),0)),H=C.next().value;C=C.next().value;H=x.data[H];C=x.data[C];var J=e.config.pointConnectionMethod;if(!H||!C)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||zl(f,H,C,g).gapDetected)||w.push({series:x,value:Sk(+H.x,+C.x,H.y,C.y,+k)});J===
"zero_fill"&&zl(f,H,C,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;l=m(l);for(var r=l.next();!r.done;r=l.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=m(a.data.series),l=k.next();!l.done;l=k.next()){l=l.value;var r=m(JEa(l,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,l.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=l.data[w],C=l.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(C.x,C.y));x<d&&x<=c&&(d=x,e=l.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";bl(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(fG(this,this.canvas),fG(this,this.shapeCanvas),this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c,d,e=(d=(c=a.config.styles)==null?void 0:c.lineWidth)!=null?d:1.25;c=Math.ceil(Math.max(0,e-1.25)/2);this.ctx.save();d=new Path2D;d.rect(a.bodyLeft,a.bodyTop-c,a.bodyWidth,a.bodyHeight+2*c+1);this.ctx.clip(d);c=a.anySeriesSelectedOrHovered&&!a.brushing;
e={lineDrawingOptions:Object.assign({},G_c,{lineWidth:e,globalAlpha:c?.15:1}),bandLineDrawingOptions:H_c,bandShadingDrawingOptions:I_c};this.shapeCtx.globalAlpha=c?.15:1;var f;c=(f=a.data)==null?void 0:f.series;if(c==null?0:c.length){if(f=a.shapeMap){d=new Set;for(var g=m(c),k=g.next();!k.done;k=g.next())d.add(f(k.value));c.length>d.size&&(f=null)}this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,e,a.clickDotInteraction)}this.ctx.restore();eG(this,
a.xAxisMin,a.xAxisMax);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.enableManualLatencyTracking&&dG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,l,r,w){this.ctx.save();var x;$k(this.ctx,Object.assign({},r.lineDrawingOptions,{lineDash:(x=l.styles)==null?void 0:x.lineDash}),this.base);$k(this.shapeCtx,J_c,this.base);x=!1;a=m(a);for(var C=a.next();!C.done;C=a.next()){C=C.value;var H=d(C),J=e&&e(C),O=f&&f(C),R=void 0;if((R=l.styles)==null?0:R.lineBorderColor){var V=R=void 0,ca=void 0,oa=2*((ca=(R=r)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ca:1);R=Object.assign({},r,{lineDrawingOptions:Object.assign({},
r.lineDrawingOptions,{lineWidth:oa})});V=void 0;this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:(V=l.styles)==null?void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,outputPeriodMs:l.outputPeriodMs,pointConnectionMethod:l.pointConnectionMethod,useLegacyGapDetection:l.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:l.lineInterpolationMethod,clickDotInteraction:w})}C=this.drawLine({points:C.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,
bounds:k,outputPeriodMs:l.outputPeriodMs,pointConnectionMethod:l.pointConnectionMethod,useLegacyGapDetection:l.useLegacyGapDetection,drawingOptions:r,lineInterpolationMethod:l.lineInterpolationMethod,clickDotInteraction:w}).drewBands;x||(x=C)}x&&!this.bandCanvasAttached&&(this.base.insertBefore(this.bandCanvas,this.canvas),this.bandCanvasAttached=!0);this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,l=a.outputPeriodMs,r=a.pointConnectionMethod,w=a.useLegacyGapDetection,x=a.drawingOptions,C=a.lineInterpolationMethod,H=a.clickDotInteraction,J=a.points;if(!J.length)return{drewBands:!1};var O=l||Infinity,R=[],V=[],ca,oa,ua,ka,Ga=typeof((ca=J)==null?void 0:(oa=ca[0])==null?void 0:oa.min)==="number"&&typeof((ua=J)==null?void 0:(ka=ua[0])==null?void 0:ka.max)==="number",ja=void 0,
ta=null,xa=[],Sa=[],$a=void 0,pb=function(Vs,Xi){$a?($a.x=Vs,$a.y=Xi):$a={x:Vs,y:Xi}},Xb=typeof d==="string"?void 0:d,lc=!!Xb,ec=[];if(lc){var pc=this.generateMulticolorPoints(J,Xb),sb=pc.linePathsColors;J=pc.multicolorPoints;ec=sb}for(var Ob=0;Ob<J.length;Ob++){var ib=J[Ob-1]||null,Yb=J[Ob],rc=b(Yb.x.valueOf()),Gc=void 0,Rb=m(cl([rc,c(Yb.y)],(Gc=x.lineDrawingOptions.lineWidth)!=null?Gc:1)),Cc=Rb.next().value,Sc=Rb.next().value,Bd=Cc,Nc=Sc,fe=void 0,Xe=void 0,Ve=void 0;if(Ga){var Hh=void 0,Gw=void 0,
dp=void 0,Ej=m(cl([rc,c((Hh=Yb.min)!=null?Hh:Yb.y),c((Gw=Yb.max)!=null?Gw:Yb.y)],(dp=x.bandLineDrawingOptions.lineWidth)!=null?dp:1));fe=Ej.next().value;Xe=Ej.next().value;Ve=Ej.next().value}(!ta||Bd>ta[0])&&Bd>=k.left-1&&Bd<=k.right+1&&Nc>=k.top-1&&Nc<=k.bottom+1&&(ta=[Bd,Nc]);var Rm=!1,Hq=0,Hw=!1;if(ib){if(r==="gap_detection"||r==="zero_fill"){var fk=zl(O,ib,Yb,w);Rm=fk.gapDetected;Hq=fk.gapWidthMs}if(Yb.tileDomain&&ib.tileDomain&&Yb.tileDomain!==ib.tileDomain){var Bl=m(ib.tileDomain),ep=Bl.next().value,
Iw=Bl.next().value,XK=ep,Cl=Iw,Xz=m(Yb.tileDomain),bX=Xz.next().value,i9=Xz.next().value,j9=bX;if(XK>i9||j9>Cl)Hw=!0}}if(Rm||Hw||r==="never")if(Hw||r!=="zero_fill")xa.length&&R.push(xa),xa=[[Bd,Nc]],Ga&&(V.push(Sa),Sa=[],fe!==void 0&&Xe!==void 0&&Ve!==void 0&&Sa.push([fe,Xe,Ve]));else{for(var k9=Hq/O-1,cX=Yb.x.valueOf()>ib.x.valueOf(),Sx=cX?ib.x.valueOf()+O:ib.x.valueOf()-O,Tx=0;Tx<k9;Tx++){var $N=void 0,aO=m(cl([b(Sx),c(0)],($N=x.lineDrawingOptions.lineWidth)!=null?$N:1)),dX=aO.next().value,zh=aO.next().value,
vqa=dX,eX=zh;xa.push([vqa,eX]);ja=el(ja,vqa,eX,$a,k);if(Ga){var l9=m(cl([b(Sx),c(0)],x.bandLineDrawingOptions.lineWidth)),RHa=l9.next().value,SHa=l9.next().value;Sa.push([RHa,SHa,SHa])}pb(vqa,eX);Sx=cX?Sx+O:Sx-O}xa.push([Bd,Nc]);ja=el(ja,Bd,Nc,$a,k);Ga&&fe!==void 0&&Xe!==void 0&&Ve!==void 0&&Sa.push([fe,Xe,Ve])}else xa.push([Bd,Nc]),ja=el(ja,Bd,Nc,$a,k),Ga&&fe!==void 0&&Xe!==void 0&&Ve!==void 0&&Sa.push([fe,Xe,Ve]);pb(Bd,Nc)}xa.length&&R.push(xa);Ga&&Sa.length&&V.push(Sa);if(r==="zero_fill"&&l&&R.length&&
R[0].length&&R[R.length-1].length){var fX=Math.abs(b(l)-b(0)),yv=R[0],om=R[R.length-1],Fo=yv[0][0]<om[om.length-1][0],gX=c(0),XB=function(Vs,Xi,nm){var YB=nm?{x:Vs[0][0],y:Vs[0][1]}:{x:Vs[Vs.length-1][0],y:Vs[Vs.length-1][1]},zv;Xi=m(cl([Xi,gX],(zv=x.lineDrawingOptions.lineWidth)!=null?zv:1));zv=Xi.next().value;Xi=Xi.next().value;if((!Fo&&nm||Fo&&!nm)&&zv>YB.x||(!Fo&&!nm||Fo&&nm)&&zv<YB.x)ja=el(ja,zv,Xi,YB,k),nm?Vs.unshift([zv,Xi]):Vs.push([zv,Xi])};Fo?(XB(yv,yv[0][0]-fX,!0),XB(yv,k.left,!0),XB(om,
om[om.length-1][0]+fX,!1),XB(om,k.right,!1)):(XB(yv,yv[0][0]+fX,!0),XB(yv,k.right,!0),XB(om,om[om.length-1][0]-fX,!1),XB(om,k.left,!1))}this.ctx.save();var Ux;this.ctx.lineWidth=(Ux=x.lineDrawingOptions.lineWidth)!=null?Ux:1;lc||(this.ctx.strokeStyle=Zk(d,this.base),this.shapeCtx.fillStyle=Zk(d,this.base));this.applyPathsToCanvas(R,ec,r,C,lc);if(e)if(H&&f.position&&f.lineSelectedStatus!==0)this.drawShapeWithinBounds(b(f.position.x.valueOf()),c(f.position.y),k,e,g,f.lineSelectedStatus,H);else if(ja&&
r!=="never"&&this.drawShapeOrInterpolate(ja,k,e,g,f.lineSelectedStatus,H),ta&&(r==="never"||!ja)){var wqa=m(ta),xqa=wqa.next().value,uH=wqa.next().value;this.drawShapeWithinBounds(xqa,uH,k,e,g,f.lineSelectedStatus,H)}if(V.length){lc||(this.bandCtx.fillStyle=Zk(d,this.base),this.bandCtx.strokeStyle=Zk(d,this.base));for(var m9=m(V),yqa=m9.next();!yqa.done;yqa=m9.next()){var vH=yqa.value;if(vH.length!==0){var zqa=m(vH[0]),Us=zqa.next().value,hX=zqa.next().value,cO=zqa.next().value,sn=Us,Vx=hX,Go=cO,
wH=new Path2D,xH=new Path2D,Wx=new Path2D;if(vH.length===1)wH.moveTo(sn-2,Vx),wH.lineTo(sn+2,Vx),xH.moveTo(sn-2,Go),xH.lineTo(sn+2,Go),Wx.moveTo(sn-2,Go),Wx.lineTo(sn+2,Go),Wx.lineTo(sn+2,Vx),Wx.lineTo(sn-2,Vx);else{wH.moveTo(sn,Vx);xH.moveTo(sn,Go);Wx.moveTo(sn,Go);for(var Aqa=1;Aqa<vH.length;Aqa++){var Bqa=m(vH[Aqa]),Cqa=Bqa.next().value,THa=Bqa.next().value,Dqa=Bqa.next().value,n9=Cqa,UHa=Dqa;wH.lineTo(n9,THa);xH.lineTo(n9,UHa);Wx.lineTo(n9,UHa)}for(var Eqa=vH.length-1;Eqa>=0;Eqa--){var Fqa=m(vH[Eqa]),
VHa=Fqa.next().value,r3a=Fqa.next().value;Wx.lineTo(VHa,r3a)}}Wx.closePath();$k(this.bandCtx,x.bandShadingDrawingOptions,this.base);this.bandCtx.fill(Wx);$k(this.bandCtx,x.bandLineDrawingOptions,this.base);this.bandCtx.stroke(wH);this.bandCtx.stroke(xH)}}}this.ctx.restore();return{drewBands:!(!Ga||!V.length)}};
h.applyPathsToCanvas=function(a,b,c,d,e){this.ctx.beginPath();switch(d){case "linear":d=m(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var f=m(a[0]),g=f.next().value;f=f.next().value;this.ctx.moveTo(g,f);if(a.length===1)this.drawSinglePoint(g,f,c);else for(g=1;g<a.length;g++){var k=m(a[g]);f=k.next().value;k=k.next().value;this.ctx.lineTo(f,k);e&&(this.ctx.strokeStyle=Zk(b[g-1],this.base),this.shapeCtx.fillStyle=Zk(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(f,
k))}}break;case "step-before":case "step-after":a=m(a);for(g=a.next();!g.done;g=a.next())if(g=g.value,g[0]){k=m(g[0]);f=k.next().value;var l=k.next().value;k=f;var r=l;this.ctx.moveTo(k,r);if(g.length===1)this.drawSinglePoint(k,r,c);else for(f=1;f<g.length;f++){l=m([k,r]);k=l.next().value;var w=l.next().value;l=k;r=m(g[f]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(l,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=Zk(b[f-1],this.base),this.shapeCtx.fillStyle=
Zk(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new t_c(this.ctx);e=m(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(g=m(d[0]),a=g.next().value,g=g.next().value,b.lineStart(),b.point(a,g),d.length===1)this.drawSinglePoint(a,g,c);else{for(a=1;a<d.length;a++)f=m(d[a]),g=f.next().value,f=f.next().value,b.point(g,f);b.lineEnd()}break;default:wb(d,"value not in LineInterpolationMethod type.")}this.ctx.stroke()};
h.drawSinglePoint=function(a,b,c){c==="never"?(this.ctx.beginPath(),this.ctx.arc(a,b,2,0,K_c),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()):(this.ctx.moveTo(a-2,b),this.ctx.lineTo(a+2,b))};
h.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.shapeCtx.moveTo(a,b);a=MBa(a,b,c,d?g/d.width:1);f&&e===1?(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.save(),this.shapeCtx.globalAlpha=
1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=this.shapeCtx.fillStyle,this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.globalAlpha=.25,this.shapeCtx.fill(a),this.shapeCtx.globalAlpha=1):(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,f&&(this.shapeCtx.lineWidth=3),this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};h.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
h.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=Math.max(b.right,Math.min(a.x0,a.x1)),k=Tk(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=Math.min(b.top,Math.max(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=Math.max(b.bottom,Math.min(a.y0,a.y1)),g=Tk(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};
h.generateMulticolorPoints=function(a,b){var c=[],d=[];c.push(a[0]);for(var e=1;e<a.length;e++){var f=a[e-1],g=a[e],k=[].concat(q(b));f.y>g.y&&k.reverse();k=m(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,f.x!==g.x&&l.interval.min<=f.y&&f.y<=l.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,l.interval.max):Math.max(g.y,l.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(l.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var M_c=Object.assign({},G_c,{lineWidth:1.75}),N_c=Object.assign({},H_c,{globalAlpha:1}),O_c=Object.assign({},I_c,{globalAlpha:.3}),P_c=function(){L_c.apply(this,arguments)};Y(P_c,L_c);P_c.prototype.onSeriesSelectionChange=function(a,b){il(a,b.scope.layerId)&&this.drawInternal(b)};
P_c.prototype.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";bl(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,
a.bodyTop,a.bodyWidth,a.bodyHeight+1);this.ctx.clip(b);return!0};
P_c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){var b=a.selectedSeriesIds;a.brushing||(b=b.concat(a.hoveredSeriesIds));var c,d=(c=a.data)==null?void 0:c.series.filter(function(g){return b.includes(g.id)});if(d==null?0:d.length){var e,f;this.drawLines(d,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,{lineDrawingOptions:Object.assign({},M_c,{lineWidth:((f=(e=a.config.styles)==null?void 0:e.lineWidth)!=
null?f:1.25)+.5}),bandLineDrawingOptions:N_c,bandShadingDrawingOptions:O_c},a.clickDotInteraction)}eG(this,a.xAxisMin,a.xAxisMax)}};var R_c=function(a){a=bxc(a);var b=0,c=a.length,d={a:-1640531527,b:-1640531527,c:314159265},e;for(e=c;e>=12;e-=12,b+=12)d.a+=sH(a,b),d.b+=sH(a,b+4),d.c+=sH(a,b+8),Q_c(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.b+=sH(a,b+4);d.a+=sH(a,b);break;case 7:d.b+=(a[b+6]&255)<<16;case 6:d.b+=(a[b+5]&255)<<8;case 5:d.b+=a[b+4]&255;case 4:d.a+=sH(a,b);break;case 3:d.a+=(a[b+2]&255)<<16;case 2:d.a+=(a[b+1]&255)<<8;case 1:d.a+=a[b]&255}return Q_c(d)},
Q_c=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},sH=function(a,b){return S_c(a[b])+(S_c(a[b+1])<<8)+(S_c(a[b+2])<<16)+(S_c(a[b+3])<<24)},S_c=function(a){return a>127?a-256:a};var wFa="var(--ac-sys-color-palette-category1, #1A73E8);var(--ac-sys-color-palette-category2, #129EAF);var(--ac-sys-color-palette-category3, #D01884);var(--ac-sys-color-palette-category4, #E64A19);var(--ac-sys-color-palette-category5, #7627BB);var(--ac-sys-color-palette-category6, #34A853);var(--ac-sys-color-palette-category7, #283593);var(--ac-sys-color-palette-category8, #455A64);var(--ac-sys-color-palette-category9, #EF6C00);var(--ac-sys-color-palette-category10, #B31412);var(--ac-sys-color-palette-category11, #0D652D);var(--ac-sys-color-palette-category12, #0091EA)".split(";");var tH=function(){var a=a===void 0?wFa:a;var b=b===void 0?dZc:b;var c=c===void 0?eZc:c;this.colorPalette=a;this.shapePalette=b;this.shapeBoundingBox=c},T_c=function(a,b,c,d){var e={},f=new Map,g={};c=m(c);for(var k=c.next();!k.done;k=c.next()){k=m(Object.entries(k.value));for(var l=k.next();!l.done;l=k.next()){var r=m(l.value);l=r.next().value;r=r.next().value;g[l]=r;l=void 0;f.set(r,((l=f.get(r))!=null?l:0)+1)}}c=new Map(f);k=m(Object.entries(d));for(l=k.next();!l.done;l=k.next())r=m(l.value),l=
r.next().value,r=r.next().value,a.includes(l)&&(l=void 0,f.set(r,((l=f.get(r))!=null?l:0)+1));a=m(a);for(k=a.next();!k.done;k=a.next())if(k=k.value,(l=g[k])||!d[k]||c.get(d[k])||(l=d[k]),l)e[k]=l;else if(f.size<b.length)l=b.filter(function(J){return!f.get(J)}),e[k]=l[0],f.set(l[0],1);else{l=b[0];r=Infinity;for(var w=m(b),x=w.next();!x.done;x=w.next()){x=x.value;var C=void 0,H=(C=f.get(x))!=null?C:0;H<r&&(r=H,l=x)}r=void 0;f.set(l,((r=f.get(l))!=null?r:0)+1);e[k]=l}return e};
tH.prototype.onDataChange=function(a,b,c){b=b.series.map(function(r){return String(r.id)}).sort();var d,e=c==null?void 0:(d=c.colorMap)==null?void 0:d.byLayer.entities[a.layerId],f=e?e.order:U_c++,g;c=Object.values((c==null?void 0:(g=c.colorMap)==null?void 0:g.byLayer.entities)||{});g=c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.colorMap)!=null?w:{}});var k;g=T_c(b,this.colorPalette,g,(k=e==null?void 0:e.colorMap)!=null?k:{});k=
c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.shapeMap)!=null?w:{}});var l;b=T_c(b,this.shapePalette,k,(l=e==null?void 0:e.shapeMap)!=null?l:{});return{order:f,colorMap:g,shapeMap:b}};tH.prototype.isReady=function(a,b){var c,d=b==null?void 0:(c=b.colorMap)==null?void 0:c.colorMap;return d?a.series.every(function(e){return d[String(e.id)]}):!1};
tH.prototype.getColor=function(a,b){a=String(a.id);var c;return(b==null?0:(c=b.colorMap)==null?0:c.colorMap[a])?b.colorMap.colorMap[a]:this.colorPalette[Math.abs(R_c(a))%this.colorPalette.length]};tH.prototype.getShape=function(a,b){a=String(a.id);var c;return(b==null?0:(c=b.colorMap)==null?0:c.shapeMap)?b.colorMap.shapeMap[a]:this.shapePalette[Math.abs(R_c(a))%this.shapePalette.length]};var U_c=0;var V_c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},W_c={lineDash:[],lineWidth:1.25},yH=function(a,b,c,d,e,f,g,k,l){sG.call(this,a,b,c);this.interactionService=e;this.instrumentationService=f;this.modalService=g;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.pointConnectionMethod="gap_detection";this.lineInterpolationMethod="linear";this.alignmentPeriodMs=null;this.enableManualLatencyTracking=!1;this.outputPeriodMsInternal=null;this.colorStrategyInternal=new tH;this.layerName=
"";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=this.useLegacyGapDetection=!1;this.nearestPoint="default";this.onSelect=new Ui;this.dataSubject=new Nj(this.data);this.updateGridTriggerSubject=new sf;this.gridGeneratorSubject=new Nj(null);this.defaultColumnMaskGeneratorSubject=new Nj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.stylesInternal=W_c;this.interactionsInternal=V_c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=
!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.hoverHighlightTriggerSubject=new wf(1);this.updateHoverValuesTriggerSubject=new wf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=2;var r;this.configSubject=new Nj({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,colorStrategy:this.colorStrategy,outputPeriodMs:null,useLegacyGapDetection:this.useLegacyGapDetection,styles:this.styles,nearestPoint:this.nearestPoint,
clickDotInteraction:(r=this.interactions)==null?void 0:r.clickDot,multiselectMode:!1});this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(of(0),xk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),xk(this.ngZone));this.layerType="graphic";l?(this.lineView=new F_c(a.nativeElement,d),this.views.push(this.lineView)):(this.lineView=new L_c(a.nativeElement,d),this.views.push(this.lineView),this.views.push(new P_c(a.nativeElement)));this.bindDrawInstrumentation()};
Y(yH,sG);yH.\u0275dir=sG.\u0275dir;yH.prototype.bindDrawInstrumentation=function(){var a=this;cG(this.lineView,function(b){X_c(a,Object.assign({},b,{hasCompleteData:!a.loading}))})};
var X_c=function(a,b){var c=b.drawStartTimestamp,d=b.drawStopTimestamp,e=b.hasCompleteData;a.scopeObservable.pipe(nf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;JG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});JG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})};h=yH.prototype;
h.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue;a=b.scope;var f=b.state,g=[],k;g.push(oH({chartId:b.scope.chartId,layerId:b.scope.layerId,yAxisId:b.scope.yAxisId,xAxisId:b.scope.xAxisId,valueType:1,unit:(e==null?void 0:e.unit)||null,pointConnectionMethod:((k=b.config)==null?void 0:k.pointConnectionMethod)||void 0,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}));g.push(nH({chartId:b.scope.chartId,
layerId:b.scope.layerId,series:(e==null?void 0:e.series.map(function(R){var V;return{seriesId:R.id,name:(V=R.name)!=null?V:R.id,drawnAs:0,lineDash:c.styles.lineDash,dataSeriesMetadata:R.metadata,statsModeSummaryValue:R.statsModeSummaryValue}}))||[]}));this.derivedMinMaxBand=$Aa(e);(f==null?0:f.xAxis)&&d!==e&&((k=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(k=cBa(k)),
Pk(this.yAxisRequirement,k)&&(this.yAxisRequirement=k,g.push(uG(this,this.yAxisRequirement))));d!==e&&(this.xAxisRequirement=aBa(e),g.push(vG(this,this.xAxisRequirement)));if(f&&e){if(d=yG(this.colorStrategy,a,e,f))this.store.dispatch(d),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){var V=R.scope;(R=R.state)&&g.push(c.createSetSeriesColorMetadataAction(V,e,R))});(d=this.updateMostRecentValues(b))&&g.push(d)}var l;if(d=f==null?void 0:(l=f.seriesSelection)==null?void 0:l.byLayer.entities[a.layerId]){l=
d.selectedSeries;d=d.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=l.filter(function(R){return w.has(R.seriesId)});r.length!==l.length&&g.push(SG({chartId:a.chartId,layerId:a.layerId,series:r}));r=d.filter(function(R){return w.has(R.seriesId)});if(r.length!==d.length){var x,C,H=f==null?void 0:(x=f.lastInteraction)==null?void 0:(C=x.domain)==null?void 0:C.hover;H&&(r=r.map(function(R){var V,ca,oa=(f==null?0:(V=f.lastInteraction)==null?0:(ca=V.domain)==
null?0:ca.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:oa})}));g.push(UG({chartId:a.chartId,layerId:a.layerId,series:r}))}}this.updateGridTriggerSubject.next(b);var J,O;(f==null?0:(J=f.xAxisPin)==null?0:J.xPos)&&(f==null?0:(O=f.xAxisPin)==null?0:O.locked)&&(x=this.lineView.getValuesAtTime(b,f.xAxisPin.xPos),(x=this.updateTimeSeriesValues(x,0))&&g.push(x));return g};
h.onResizeChange=function(a,b){var c=[];qk(a)&&(this.updateGridTriggerSubject.next(b),(a=this.updateMostRecentValues(b))&&c.push(a));return c};h.onYAxisChange=function(a,b){ol(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(Uk(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(e=cBa(e)),Pk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(uG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(DBa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(l){k=l&&l()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.lineView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this;a=b.scope;var d=b.data;b=b.state;var e=[];d&&b&&(this.colorRecalculationAttemptsRemaining>0&&(b=yG(this.colorStrategy,a,d,b))&&(this.store.dispatch(b),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(f){var g=f.scope;(f=f.state)&&e.push(c.createSetSeriesColorMetadataAction(g,d,f))}));return e};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return nH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:0,lineDash:d.styles.lineDash,color:Fl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(k){if(k=k&&k()){var l=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch(SG({chartId:g.chartId,layerId:g.layerId,series:l?[{seriesId:l.metadata.seriesId}]:[]})),r!==null||l!==null)&&(b.store.dispatch(BG({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),
b.store.dispatch(CG({chartGroupId:g.chartGroupId,locked:!!r})));b.store.dispatch(UG({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(zG({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(AG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:k.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.onClick=function(a){var b=this,c=tG(this,a),d=!1;this.withLatest(function(e){var f=e.scope,g=e.state,k=e.data;if(g&&k){var l=g.seriesSelection,r=g.brush,w=g.resize;g=g.lastInteraction;if(l&&r&&!r.brushing&&w&&tFa(c,w)){l=(l=l.byLayer.entities[f.layerId])?l.selectedSeries.map(function(H){return H.seriesId}):[];var x=b.lineView.getSeriesIdOfClosestLine(e,c,10);x&&(k=k.series.find(function(H){return H.id===x}))&&b.onSelect.emit(k);if(b.interactions.clickSelect){k=[];r=ul.ve.LineDeselectToggle;if(x)if(r=
ul.ve.LineSelectToggle,l.length===1&&l.includes(x))k=[];else if(b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&l.length>0){var C;k=b.lineView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,(C=g==null?void 0:g.domain.multiselectAnchor)!=null?C:c.x)||[x];r=ul.ve.LineMultiSelectToggle}else b.isPrimaryModifierKeyDown?(k=l.includes(x)?l.filter(function(H){return H!==x}):l.concat([x]),r=ul.ve.LineSpecificSelectToggle):k=[x];b.shiftSelectingFromSeriesId=x;k.length===0&&(b.store.dispatch(zG({chartId:f.chartId,
lastInteraction:{multiselectAnchor:null}})),b.store.dispatch(aZc({chartId:f.chartId,layerId:f.layerId,series:null})));l.length===0&&k.length===1&&(d=!0,b.store.dispatch(zG({chartId:f.chartId,lastInteraction:{multiselectAnchor:c.x}})),x&&b.store.dispatch(aZc({chartId:f.chartId,layerId:f.layerId,series:{seriesId:x,datumIndices:b.getDatumIndices(e,x,c.x,!0)}})));b.store.dispatch(SG({chartId:e.scope.chartId,layerId:e.scope.layerId,series:k.map(function(H){return{seriesId:H}})}));tl(b.interactionService,
"click",r,b.el.nativeElement)}}}});this.withLatest(function(e){e=b.lineView.getValuesAtPosition(e,c);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};
h.updateMultiselectMode=function(){var a=this;this.withLatest(function(b){var c,d,e,f=(d=(c=b.state)==null?void 0:c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.selectedSeries;(f==null?0:f.length)&&a.updateViewConfig({multiselectMode:f.length>0&&(a.isShiftKeyDown||a.isPrimaryModifierKeyDown)})})};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=tG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.lineView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,l){l=l.data;var r=wl(l,f,xl(d.outputPeriodMs));return(l=l[r])&&(k===null||Math.abs(f-l.x.valueOf())<Math.abs(f-k))?l.x.valueOf():k},null);c=void 0;d.outputPeriodMs&&(c=Math.max(d.outputPeriodMs,3E5));return(a=this.lineView.getValuesAtTime(a,b!=null?b:f,c))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=mH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};
h.getDatumIndices=function(a,b,c,d){d=d===void 0?!1:d;var e=a.state,f=a.data;if(e){var g;a=(g=a.data)==null?void 0:g.series.find(function(k){return k.id===b});e=b&&(e==null?0:e.xAxis)&&(e==null?0:e.resize)?Yk(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?yl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?b.lineView.getSeriesIdOfClosestLine(c,a,10):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];hl(e,g)&&(d=UG({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):
b.store.dispatch(d))}})};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=Xk(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,l=pl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!l)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var C,H,J,O;return IEa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:FEa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:kl({position:R,tickIncrement:r,timeZone:Gk(w,x)}),value:R}},valueFormatter:DEa(g,k),positionMap:HEa(f,l,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(C=d.min)!=null?C:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?AEa({ticks:a.ticks,grid:b}):[]:[]};
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.lineView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(Bf(this.destroyed),lf(500)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&(c=a.generateGrid(b));return c})});this.hoverHighlightTriggerSubject.pipe(Bf(this.destroyed)).subscribe(function(b){a.hoverHighlight(b)});
this.updateHoverValuesTriggerSubject.pipe(Bf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});NF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.keyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});
this.chart.keyUpObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||uFa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(xG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a line chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a line chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(xG(this,this.dataTypeError,!1))));if("pointConnectionMethod"in a||"outputPeriodMs"in a||"alignmentPeriodMs"in a||"colorStrategy"in a||"styles"in a||"useLegacyGapDetection"in a||"nearestPoint"in a||"interactions"in a){var c;this.updateViewConfig({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,useLegacyGapDetection:this.useLegacyGapDetection,styles:this.styles,
nearestPoint:this.nearestPoint,clickDotInteraction:(c=this.interactions)==null?void 0:c.clickDot})}"loading"in a&&b.push(wG(this,this.loading,"Line"));"error"in a&&b.push(xG(this,this.error,this.hasData()));MF(this.chart,b)};h.getLayerTitle=function(){return this.layerName?"Line "+this.layerName:"Line"};h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null),vG(this,null),wG(this,!1,"Line"),xG(this,null,!1),TG({chartId:this.chartId,layerId:this.layerId})])};
h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(yH.prototype,{outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new tH},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},V_c,a)},get:function(){return this.interactionsInternal}},
styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},W_c,a)},get:function(){return this.stylesInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ll?this.isMetaKeyDown:this.isCtrlKeyDown}}});yH.\u0275fac=function(a){return new (a||yH)(Ye(Jd),Ye(LF),Ye(ZF),Ye(MG),Ye(ul),Ye(IG),Ye(jH),Ye(Rg),Ye(lVc,8))};
yH.\u0275cmp=D({type:yH,selectors:[["ac-line"]],hostAttrs:[1,"composable-layer","ac-line"],inputs:{data:"data",loading:"loading",error:"error",pointConnectionMethod:"pointConnectionMethod",lineInterpolationMethod:"lineInterpolationMethod",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",enableManualLatencyTracking:"enableManualLatencyTracking",colorStrategy:"colorStrategy",interactions:"interactions",styles:"styles",layerName:"layerName",legendTemplate:"legendTemplate",audioChartsEnabled:"audioChartsEnabled",
useLegacyGapDetection:"useLegacyGapDetection",refactorA11yNavInstructions:"refactorA11yNavInstructions",nearestPoint:"nearestPoint"},outputs:{onSelect:"onSelect"},features:[Gf,bx],decls:3,vars:10,consts:[[3,"onGridCellActivate","onFocusedCellChange","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","audioChartsEnabled","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocusedCellChange",
function(c){return b.onFocusedCellChange(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",U(1,6,b.gridGeneratorObservable))("columnMaskGenerator",U(2,8,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("audioChartsEnabled",b.audioChartsEnabled)("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[qH,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_line.css.map */"],
changeDetection:0});var zH=function(){};zH.prototype.getBrushSegment=function(a,b,c,d){d=d===void 0?0:d;return{start:[d,a],end:[d+b,a]}};zH.prototype.getBrushSelectionRect=function(a,b,c,d,e){return{x:e===void 0?0:e,y:a,width:c,height:b-a}};zH.prototype.getRangeMap=function(a,b,c,d){return function(e){return Sk(a,b,d,0,e)}};var AH=function(){};AH.prototype.getBrushSegment=function(a,b,c,d,e){e=e===void 0?0:e;return{start:[a,e],end:[a,e+c]}};
AH.prototype.getBrushSelectionRect=function(a,b,c,d,e,f){return{x:a,y:f===void 0?0:f,width:b-a,height:d}};AH.prototype.getRangeMap=function(a,b,c){return function(d){return Sk(a,b,0,c,d)}};var Y_c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},Z_c=[4,4],$_c=function(a,b){hG.call(this,a);this.brushStrategy=b};Y($_c,hG);h=$_c.prototype;h.updateStrategy=function(a,b){this.brushStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onBrushChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.scope,c=a.state;if(!c)return null;a=c.resize;var d=c.yAxis;c=c.brush;if(!(a&&d&&c&&d.min!==null&&d.max)||a.height<=0||a.width<=0)return null;var e=c.yAxes.find(function(l){return l.chartId===b.chartId&&l.yAxisId===b.yAxisId}),f=a.margins.left,g=a.margins.top,k=a.height-a.margins.top-a.margins.bottom;d=this.brushStrategy.getRangeMap(d.min,d.max,a.width-a.margins.left-a.margins.right,k);return{map:d,bodyTopEdge:g,bodyLeftEdge:f,bodyHeight:k,bodyWidth:a.width-a.margins.left-
a.margins.right,brushing:c.brushing&&c.axis===1,brushStart:(e==null?0:e.yPosStart)?d(e.yPosStart):null,brushEnd:(e==null?0:e.yPos)?d(e.yPos):null,brushAxis:c.axis}};
h.drawInternal=function(a){if(a=this.unpack(a)){var b=a.bodyTopEdge,c=a.bodyHeight,d=a.bodyWidth,e=a.brushing,f=a.brushStart,g=a.brushEnd,k=a.brushAxis;this.canvas.style.left=a.bodyLeftEdge+"px";this.canvas.style.top=b+"px";bl(this.canvas,this.base,c,d);g&&k===1&&(f&&e&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(f,g,d,c)),this.drawBrushLine(this.brushStrategy.getBrushSegment(f,d,c))),this.drawBrushLine(this.brushStrategy.getBrushSegment(g,d,c)))}};
h.drawBrushLine=function(a,b){b=b===void 0?Y_c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.setLineDash(Z_c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b){b=b===void 0?Y_c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var a0c={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},b0c={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)"},c0c=Object.assign({},b0c,{textAlign:"left",textBaseline:"middle"}),d0c=Object.assign({},b0c,{textAlign:"right",textBaseline:"middle"});var e0c=[4,4],f0c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},BH=function(a,b,c){hG.call(this,a);this.axisStrategy=b;this.brushStrategy=c};Y(BH,hG);h=BH.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onConfigChange=function(a,b){this.drawInternal(b)};h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,l=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,C=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;l!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&C!==null?function(V){return CBa(l,w,f,g,V,C)}:function(V){return Sk(l,w,f,g,V)},r=function(V){return Sk(f,
g,l,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now(),c=this.unpack(a.state,a.config);if(c){var d=c.map,e=c.chartBodyLeft,f=c.chartBodyRight,g=c.chartBodyTop,k=c.chartBodyBottom,l=c.yAxisTicks,r=c.yAxisHeight,w=c.yAxisCanvasWidth,x=c.offset,C=c.rangeBottom,H=c.rangeTop,J=c.label,O=c.labelAnchorX,R=c.labelAnchorY,V=c.labelRotation,ca=c.chartBodyHeight,oa=c.config.position;l=d?l.map(function(pb){return{label:pb.label,value:d(pb.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,
this.base,r,w);if(oa!=="none"){r=oa==="right"?c0c:oa==="left"?d0c:FG;var ua,ka,Ga,ja;r=Object.assign({},r,{fillStyle:(Ga=(ua=c.config.styles)==null?void 0:ua.textColor)!=null?Ga:r.fillStyle,font:(ja=(ka=c.config.styles)==null?void 0:ka.font)!=null?ja:r.font});ua=a0c;var ta,xa,Sa,$a;ua=Object.assign({},ua,{lineDash:(Sa=(ta=c.config.styles)==null?void 0:ta.lineDash)!=null?Sa:ua.lineDash,strokeStyle:($a=(xa=c.config.styles)==null?void 0:xa.gridLineColor)!=null?$a:ua.strokeStyle});this.drawAxisAndTickLines(C,
H,e,f,g,k,l,ua);this.drawAxisTickLabels(x,l,oa,r);this.drawAxisLabel(J,O,R,V,ca,r);this.drawBrushInternal(a);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();$k(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,q(cl(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl(c,k.lineWidth)));this.ctx.closePath();this.ctx.stroke();this.ctx.restore()};
h.drawAxisTickLabels=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,dl(this.ctx,b.label,b.x,b.y);this.ctx.restore()};h.drawAxisLabel=function(a,b,c,d,e,f){f=f===void 0?{}:f;a&&(this.ctx.save(),$k(this.ctx,f,this.base),LBa(this.ctx,a,b,c,e,d),this.ctx.restore())};h.onBrushChange=function(a,b){if(a=g0c(this,b)){var c=a.brushAxis;a=!!a.brushEnd&&c===1}else a=!1;a&&this.drawInternal(b)};
var g0c=function(a,b){var c=b.scope,d=b.state;if(!d)return null;b=d.resize;var e=d.yAxis;d=d.brush;if(!(b&&e&&d&&e.min!==null&&e.max)||b.height<=0||b.width<=0)return null;var f=d.yAxes.find(function(r){return r.chartId===c.chartId&&r.yAxisId===c.yAxisId}),g=b.margins.left,k=b.margins.top,l=b.height-b.margins.top-b.margins.bottom;a=a.brushStrategy.getRangeMap(e.min,e.max,b.width-b.margins.left-b.margins.right,l);return{map:a,bodyTopEdge:k,bodyLeftEdge:g,bodyHeight:l,bodyWidth:b.width-b.margins.left-
b.margins.right,brushing:d.brushing&&d.axis===1,brushStart:(f==null?0:f.yPosStart)?a(f.yPosStart):null,brushEnd:(f==null?0:f.yPos)?a(f.yPos):null,brushAxis:d.axis}};
BH.prototype.drawBrushInternal=function(a){var b=g0c(this,a);if(b){a=b.bodyTopEdge;var c=b.bodyLeftEdge,d=b.bodyHeight,e=b.bodyWidth,f=b.brushing,g=b.brushStart,k=b.brushEnd;b=b.brushAxis;var l=a;this.brushStrategy instanceof AH&&(l=c);k&&b===1&&(g&&f&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(l+g,l+k,e,d,c,a)),this.drawBrushLine(this.brushStrategy.getBrushSegment(l+g,e,d,c,a))),this.drawBrushLine(this.brushStrategy.getBrushSegment(l+k,e,d,c,a)))}};
BH.prototype.drawBrushLine=function(a,b){b=b===void 0?f0c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.setLineDash(e0c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,q(cl(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,q(cl(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};BH.prototype.drawBrushSelection=function(a,b){b=b===void 0?f0c:b;this.ctx.save();$k(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var CH=function(){};CH.prototype.getCanvasRange=function(a){return{rangeMin:a.height-a.margins.bottom,rangeMax:a.margins.top}};CH.prototype.getDataValue=function(a,b){return b?b(a.y):null};CH.prototype.generateTickLines=function(a,b,c){return a.map(function(d){d=d.value;return{start:[b,d],end:[c,d]}})};CH.prototype.generateTickLabels=function(a,b,c){var d=c==="right"?b+8:b-8;return a.map(function(e){return{label:e.label,x:d,y:e.value}})};var h0c=function(){};
h0c.prototype.getCanvasRange=function(a){return{rangeMin:a.margins.left,rangeMax:a.width-a.margins.right}};h0c.prototype.getDataValue=function(a,b){return b?b(a.x):null};h0c.prototype.generateTickLines=function(a,b,c,d,e){return a.map(function(f){f=f.value;return{start:[f,d],end:[f,e]}})};h0c.prototype.generateTickLabels=function(a,b,c){var d=c==="bottom"?b+8:b-8;return a.map(function(e){return{label:e.label,x:e.value,y:d}})};var i0c=function(a,b){hG.call(this,a);this.axisStrategy=b};Y(i0c,hG);h=i0c.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,l=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,C=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;l!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&C!==null?function(V){return CBa(l,w,f,g,V,C)}:function(V){return Sk(l,w,f,g,V)},r=function(V){return Sk(f,
g,l,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now();if(a=this.unpack(a.state,a.config)){var c=a.map,d=a.chartBodyLeft,e=a.chartBodyRight,f=a.chartBodyTop,g=a.chartBodyBottom,k=a.yAxisTicks,l=a.yAxisHeight,r=a.yAxisCanvasWidth,w=a.offset,x=a.rangeBottom,C=a.rangeTop,H=a.label,J=a.labelAnchorX,O=a.labelAnchorY,R=a.labelRotation,V=a.chartBodyHeight,ca=a.config.position;k=c?k.map(function($a){return{label:$a.label,value:c($a.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,
this.base,l,r);if(ca!=="none"){l=ca==="right"?c0c:ca==="left"?d0c:FG;var oa,ua,ka,Ga;l=Object.assign({},l,{fillStyle:(ka=(oa=a.config.styles)==null?void 0:oa.textColor)!=null?ka:l.fillStyle,font:(Ga=(ua=a.config.styles)==null?void 0:ua.font)!=null?Ga:l.font});oa=a0c;var ja,ta,xa,Sa;oa=Object.assign({},oa,{lineDash:(xa=(ja=a.config.styles)==null?void 0:ja.lineDash)!=null?xa:oa.lineDash,strokeStyle:(Sa=(ta=a.config.styles)==null?void 0:ta.gridLineColor)!=null?Sa:oa.strokeStyle});this.drawAxisAndTickLines(x,
C,d,e,f,g,k,oa);this.drawAxisTickLabels(w,k,ca,l);this.drawAxisLabel(H,J,O,R,V,l);ja=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:ja})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();$k(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,q(cl(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,q(cl(c,k.lineWidth)));this.ctx.closePath();this.ctx.stroke();this.ctx.restore()};
h.drawAxisTickLabels=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();$k(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=m(a);for(b=a.next();!b.done;b=a.next())b=b.value,dl(this.ctx,b.label,b.x,b.y);this.ctx.restore()};h.drawAxisLabel=function(a,b,c,d,e,f){f=f===void 0?{}:f;a&&(this.ctx.save(),$k(this.ctx,f,this.base),LBa(this.ctx,a,b,c,e,d),this.ctx.restore())};var j0c={dragZoom:!0,ctrlScrollZoom:!0},k0c=new Tl("Data values on this chart range from a minimum of {MIN} to a maximum of {MAX}."),DH=function(a,b,c,d,e,f,g){sG.call(this,a,b,c);this.interactionService=d;this.instrumentationService=e;this.ngZone=f;this.dataSubject=new Nj(null);this.position="right";this.styles={};this.tickStrategy=zBa;this.configSubject=new Nj({position:this.position,styles:this.styles});this.interactionsInternal=j0c;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=
null;this.cachedScrollAmount=0;this.scrollZoomSubject=new wf(1);this.axisDescriptionSubject=new Nj("");this.lastAxisDynamicWidth=0;this.initialized=!1;this.axisDescriptionObservable=this.axisDescriptionSubject.pipe(of(0),xk(this.ngZone));this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.layerType="axis";g?(this.axisView=new BH(a.nativeElement,new CH,new zH),this.views.push(this.axisView)):(this.axisView=new i0c(a.nativeElement,new CH),this.brushView=
new $_c(a.nativeElement,new zH),this.views.push(this.axisView),this.views.push(this.brushView));this.bindDrawInstrumentation()};Y(DH,sG);DH.\u0275dir=sG.\u0275dir;h=DH.prototype;h.isPrimaryModifierKeyDown=function(a){return ll?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;cG(this.axisView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;a.scopeObservable.pipe(nf(1)).subscribe(function(e){var f=e.chartId;e=e.layerId;JG(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});JG(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.onYAxisChange=function(){var a=this,b=[];this.withLatest(function(c){var d=c.scope;var e=c.config;c=c.state;var f,g=c==null?void 0:(f=c.yAxis)==null?void 0:f.requirements,k;f=(c==null?void 0:(k=c.yAxis)==null?void 0:k.unit)||null;if(g==null?0:g.length){k=nBa(g,[1,0]);var l;g=(l=k==null?void 0:k.min)!=null?l:null;var r;l=(r=k==null?void 0:k.max)!=null?r:null;f&&k&&f!==k.unit&&(g=Lk(k.unit,f,k.min),l=Lk(k.unit,f,k.max));g!==null&&l!==null&&a.axisDescriptionSubject.next(k0c.format({MIN:Nk(g,f),MAX:Nk(l,
f)}))}var w;if(c==null?0:(w=c.yAxis)==null?0:w.ticks){var x;r=c==null?void 0:(x=c.yAxis)==null?void 0:x.ticks.reduce(function(H,J){return Math.max(H,a.rulerCanvasCtx.measureText(J.label).width)},0);var C;x=c==null?void 0:(C=c.yAxis)==null?void 0:C.label;C=r+10+8+(x?a.rulerCanvasCtx.measureText(x).fontBoundingBoxAscent:0);a.lastAxisDynamicWidth!==C&&(a.lastAxisDynamicWidth=C,b.push(a.createMarginRequirementAction(d,e,C)))}});return b};
h.onConfigChange=function(a,b){MF(this.chart,[this.createMarginRequirementAction(b.scope,a.currentValue,this.lastAxisDynamicWidth||void 0)])};
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.initialized=!0;this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.configSubject.next({position:this.position,styles:this.styles});l0c(this);this.scrollZoomSubject.pipe(Bf(this.destroyed)).subscribe(function(b){a.scrollZoom(b)});this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.mouseDownObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseDown(b)});
this.chart.documentMouseUpObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseUp(b)});this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});NF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);NF(this.chart,"document",function(b){return a.onDocumentMouseMove(b)},this.destroyed);this.chart.scrollObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onScroll(b)});this.chart.syncScrollObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.syncOnScroll(b)});
ve(this.chart.syncDragStartObservable,this.chart.syncDragObservable,this.chart.syncDragEndObservable).pipe(Bf(this.destroyed)).subscribe(function(b){a.interactions.dragZoom&&(b.preventDefault(),b.stopPropagation())});this.withLatest(function(b){b=b.scope;var c=[];nVc(a.selectorService,b,a.tickStrategy);c.push(CVc({chartId:b.chartId,yAxisId:b.yAxisId,position:a.position}));var d;c.push(zVc({chartId:b.chartId,yAxisId:b.yAxisId,label:(d=a.label)!=null?d:""}));var e,f;if(((e=a.includeRange)==null?void 0:
e.min)!==void 0||((f=a.includeRange)==null?void 0:f.max)!==void 0){var g,k,l,r,w,x,C,H,J,O;c.push(uG(a,{priority:1,min:Math.min((x=(g=a.includeRange)==null?void 0:g.min)!=null?x:Infinity,(C=(k=a.includeRange)==null?void 0:k.max)!=null?C:Infinity),max:Math.max((H=(l=a.includeRange)==null?void 0:l.min)!=null?H:-Infinity,(J=(r=a.includeRange)==null?void 0:r.max)!=null?J:-Infinity),unit:(O=(w=a.includeRange)==null?void 0:w.unit)!=null?O:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}var R,
V;if(((R=a.exactRange)==null?void 0:R.min)!==void 0||((V=a.exactRange)==null?void 0:V.max)!==void 0){var ca,oa,ua,ka;c.push(uG(a,{priority:2,min:(ca=a.exactRange)==null?void 0:ca.min,max:(oa=a.exactRange)==null?void 0:oa.max,unit:(ka=(ua=a.exactRange)==null?void 0:ua.unit)!=null?ka:null,cause:2},"exactRange"))}MF(a.chart,c)})};
h.ngOnChanges=function(a){var b=this;sG.prototype.ngOnChanges.call(this,a);var c=[];if(this.initialized){"tickStrategy"in a&&this.withLatest(function(ka){nVc(b.selectorService,ka.scope,b.tickStrategy)});"label"in a&&this.withLatest(function(ka){ka=ka.scope;var Ga;c.push(zVc({chartId:ka.chartId,yAxisId:ka.yAxisId,label:(Ga=b.label)!=null?Ga:""}))});if("position"in a||"styles"in a)this.configSubject.next({position:this.position,styles:this.styles}),"position"in a&&(this.withLatest(function(ka){var Ga=
ka.scope;ka=ka.config;c.push(CVc({chartId:Ga.chartId,yAxisId:Ga.yAxisId,position:b.position}));c.push(b.createMarginRequirementAction(Ga,ka,b.lastAxisDynamicWidth||void 0))}),l0c(this));if("includeRange"in a){var d,e;if(((d=this.includeRange)==null?void 0:d.min)!==void 0||((e=this.includeRange)==null?void 0:e.max)!==void 0){var f,g,k,l,r,w,x,C,H,J;c.push(uG(this,{priority:1,min:Math.min((w=(f=this.includeRange)==null?void 0:f.min)!=null?w:Infinity,(x=(g=this.includeRange)==null?void 0:g.max)!=null?
x:Infinity),max:Math.max((C=(k=this.includeRange)==null?void 0:k.min)!=null?C:-Infinity,(H=(l=this.includeRange)==null?void 0:l.max)!=null?H:-Infinity),unit:(J=(r=this.includeRange)==null?void 0:r.unit)!=null?J:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}else c.push(uG(this,null,"includeRange"))}if("exactRange"in a){var O,R;if(((O=this.exactRange)==null?void 0:O.min)!==void 0||((R=this.exactRange)==null?void 0:R.max)!==void 0){var V,ca,oa,ua;c.push(uG(this,{priority:2,min:(V=
this.exactRange)==null?void 0:V.min,max:(ca=this.exactRange)==null?void 0:ca.max,unit:(ua=(oa=this.exactRange)==null?void 0:oa.unit)!=null?ua:null,cause:2},"exactRange"))}else this.withLatest(function(){c.push(uG(b,null,"exactRange"))})}MF(this.chart,c)}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;if(g&&k){var l=tG(b,a),r=b.axisView.withinBodyOrAxis(l.x,l.y,b.position,k);r?c.push(AG({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:l.y}})):c.push(AG({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:null}}));if(r&&b.interactions.dragZoom&&b.isMouseDown&&!b.isPrimaryModifierKeyDown(a)&&b.lastMouseDownEvent&&!g.panning&&!g.brushing){g=
tG(b,b.lastMouseDownEvent);var w=b.lastMouseDownEvent;r=a.clientX-w.clientX;w=a.clientY-w.clientY;var x=Math.sqrt(Math.pow(r,2)+Math.pow(w,2));r=Math.abs(w/r)>=1&&x>10;k=b.axisView.withinBodyOrAxis(g.x,g.y,b.position,k);(b.isVertical&&r||!b.isVertical&&!r)&&k&&(l=b.axisView.calculateDataValue(l,f,d),f=b.axisView.calculateDataValue(g,f,d),l&&f&&c.push(sXc({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:l,positionStart:f})))}}}});this.lastMouseMoveEvent=a;return c};
h.onDocumentMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;g&&k&&(k=tG(b,a),b.isEventInsideWindow(a)?b.interactions.dragZoom&&b.isMouseDown&&g.brushing&&g.axis===1&&(f=b.axisView.calculateDataValue(k,f,d))&&c.push(uXc({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:f})):c.push(tXc({chartGroupId:e.chartGroupId,chartId:e.chartId})))}});return c};
h.onMouseUp=function(a){var b=this;this.isMouseDown=!1;this.lastMouseDownEvent=null;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e){var g=e.brush;c=e.yAxis;if(g&&c&&b.interactions.dragZoom&&g.brushing&&g.axis===1&&(b.store.dispatch(tXc({chartGroupId:d.chartGroupId,chartId:d.chartId})),b.isEventInsideWindow(a))){var k=tG(b,a);e=b.axisView.calculateDataValue(k,e,f);var l;g=(l=g.yAxes.find(function(r){return r.chartId===d.chartId&&r.yAxisId===d.yAxisId}))==null?void 0:l.yPosStart;
e&&g&&(l=g<e,b.store.dispatch(yVc({chartId:d.chartId,yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:l?g:e,max:l?e:g,unit:c.unit})),tl(b.interactionService,"drag",ul.ve.YZoomZone,b.el.nativeElement))}}})};h.onMouseLeave=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(AG({chartId:b.chartId,yAxisId:b.yAxisId,lastInteraction:{hover:null}}))})};
h.syncOnScroll=function(a){var b=this;this.interactions.ctrlScrollZoom&&this.isPrimaryModifierKeyDown(a)&&this.withLatest(function(c){if((c=c.state)&&b.lastMouseMoveEvent&&(c=c.resize)){var d=tG(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&a.preventDefault()}})};
h.onScroll=function(a){var b=this;this.interactions.ctrlScrollZoom&&this.isPrimaryModifierKeyDown(a)&&this.withLatest(function(c){if((c=c.state)&&b.lastMouseMoveEvent&&(c=c.resize)){var d=tG(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&(b.cachedScrollAmount+=a.deltaY,b.scrollZoomSubject.next(d))}})};
h.scrollZoom=function(a){var b=this;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e&&b.lastMouseMoveEvent&&(c=e.yAxis)&&c.min!==null&&c.max!==null){var g=b.axisView.pxToScaleType(b.cachedScrollAmount,e,f);if(g&&(e=b.axisView.calculateDataValue(a,e,f))){e=(e-c.min)/(c.max-c.min);g=Math.min(g,(c.max-c.min)*.999);f=c.min+g*e;var k=c.max-g*(1-e);g=f;f=k;k=1E-9-Math.abs(f-g);k>0&&(g-=k*e,f+=k*(1-e));e=m([g,f]);f=e.next().value;k=e.next().value;b.store.dispatch(yVc({chartId:d.chartId,
yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:f,max:k,unit:c.unit}));tl(b.interactionService,"scroll",ul.ve.YZoomZone,b.el.nativeElement,{debounce:!0});b.cachedScrollAmount=0}}})};h.onClick=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state)if(c=c.resize){var e=tG(b,a);b.axisView.withinBodyOrAxis(e.x,e.y,b.position,c)&&b.store.dispatch(AG({chartId:d.chartId,yAxisId:d.yAxisId,lastInteraction:{click:e.y}}))}})};
h.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
h.createMarginRequirementAction=function(a,b,c){var d={},e={},f=Math.max(50,c||0);c=Math.max((c||0)/2,10);if(b)switch(b.position){case "right":d={right:f};e={left:10,top:10,bottom:10};break;case "left":d={left:f};e={right:10,top:10,bottom:10};break;case "top":d={top:20};e={left:c,right:c};break;case "bottom":d={bottom:20};e={left:c,right:c};break;default:e={top:10,bottom:10}}return aG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:e})};
var l0c=function(a){a.withLatest(function(b){switch(a.position){case "left":case "right":a.axisView.updateStrategy(new CH,b);if(a.axisView instanceof BH){var c=a.axisView;c.brushStrategy=new zH;c.drawBrushInternal(b)}var d;(d=a.brushView)==null||d.updateStrategy(new zH,b);break;case "top":case "bottom":a.axisView.updateStrategy(new h0c,b),a.axisView instanceof BH&&(d=a.axisView,d.brushStrategy=new AH,d.drawBrushInternal(b)),(c=a.brushView)==null||c.updateStrategy(new AH,b)}})};
DH.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[wVc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};da.Object.defineProperties(DH.prototype,{isVertical:{configurable:!0,enumerable:!0,get:function(){return this.position==="right"||this.position==="left"}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},j0c,a)},get:function(){return this.interactionsInternal}}});
DH.\u0275fac=function(a){return new (a||DH)(Ye(Jd),Ye(LF),Ye(ZF),Ye(ul),Ye(IG),Ye(Rg),Ye(lVc,8))};
DH.\u0275cmp=D({type:DH,selectors:[["ac-y-axis"]],hostAttrs:[1,"composable-layer","ac-y-axis"],inputs:{label:"label",position:"position",styles:"styles",tickStrategy:"tickStrategy",interactions:"interactions",includeRange:"includeRange",exactRange:"exactRange"},features:[Gf,bx],decls:3,vars:3,consts:[[1,"ac-screen-reader-only-content"]],template:function(a,b){a&1&&(Rf(0,"p",0),Q(1),T(2,"async"),Sf());a&2&&(B(),yg(U(2,1,b.axisDescriptionObservable)))},dependencies:[Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}"],
changeDetection:0});var m0c=new fd("deferredTypes");new fd("hadPreloadClick");var EH=function(a,b,c,d){PG.call(this,a);var e=this;this.queueService=b;this.ngZone=c;this.enclosingHovercard=d;this.timeKey=1;this.updateDebouncedTriggerSubject=new sf;this.categoryHeaderObservable=this.categoryHeaderSubject=new Nj(null);this.hideCardWhenEmpty=!1;this.setup({});d&&d.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(f){e.timeKey=f;e.withLatest(function(g){e.update(g)})});this.ngZone.runOutsideAngular(function(){e.updateDebouncedTriggerSubject.pipe(Df(10)).pipe(Bf(e.destroyed)).subscribe(function(){e.withLatest(function(f){e.update(f)})})})};
Y(EH,PG);EH.\u0275dir=PG.\u0275dir;EH.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};EH.prototype.update=function(a){if(a=a.state){var b=a.lastInteraction;a.resize&&b&&(this.timeKey===1?this.categoryHeaderSubject.next(b.category.hover):this.timeKey===2&&this.categoryHeaderSubject.next(b.category.click),this.hideCardWhenEmpty&&this.enclosingHovercard&&(this.enclosingHovercard.showHovercardOverride=this.categoryHeaderSubject.value===null?"hide":"no_override"))}};
EH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};da.Object.defineProperties(EH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}}}});
EH.\u0275fac=function(a){return new (a||EH)(Ye(ZF),Ye(MG),Ye(Rg),Ye(QG,8))};EH.\u0275cmp=D({type:EH,selectors:[["ac-category-header"]],inputs:{hideCardWhenEmpty:"hideCardWhenEmpty",dataSource:"dataSource"},features:[Gf],decls:2,vars:3,consts:[[4,"ngIf"],[1,"category-header-card"]],template:function(a,b){a&1&&(E(0,xFa,3,1,"ng-container",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.categoryHeaderObservable))},dependencies:[Fx,Lx],styles:[".category-header-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_category_header.css.map */"]});var n0c=[[["","prefix",""]],[["","suffix",""]]],o0c=0,p0c={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},FH=function(){var a=this;this.acDateTimeFastId=o0c++;this.timeKey=1;this.dateFormatStrategy=tCa;this.numericFormatStrategy=uCa;this.dateTimeSubject=new Nj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Nj(Fk(lAa));this.inputScopeSubject=new Nj({});this.destroyed=new sf;this.queueService=p(MG);this.selectorService=p(ZF);this.timeSeriesState=this.lastInteractionState=
this.resizeState=this.xAxisPinState=this.xAxisState=null;this.scope=p0c;var b=p(sG,{optional:!0}),c=p(LF,{optional:!0});b=(b==null?void 0:b.scopeObservable)||(c==null?void 0:c.scopeObservable)||ee({});this.scopeObservable=le([b,this.inputScopeSubject]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;return Object.assign({},p0c,d,e)}));this.formattedDateTimeObservable=le([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;if(d.unit===
"ms_since_epoch"){var f,g,k;return d.cursor?a.dateFormatStrategy(new Date((f=d.cursor)!=null?f:""),d.min?new Date((g=d.min)!=null?g:""):null,d.max?new Date((k=d.max)!=null?k:""):null,e):""}return a.numericFormatStrategy(d.cursor,d.min,d.max)}));(b=p(QG,{optional:!0}))&&b.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(d){a.timeKey=d;a.update()});this.setupStateChangeHandler(this.selectorFactoryToObservable(ZWc),function(d){a.onXAxisChange(d)},"xAxis");this.setupStateChangeHandler(this.selectorFactoryToObservable(fUc),
function(d){a.onXAxisPinChange(d)},"xAxisPin");this.setupStateChangeHandler(this.selectorFactoryToObservable(fTc),function(d){a.onResizeChange(d)},"resize");this.setupStateChangeHandler(this.selectorFactoryToObservable(DWc),function(d){a.onLastInteractionChange(d)},"lastInteraction");this.setupStateChangeHandler(this.selectorFactoryToObservable(eUc),function(d){a.onTimeSeriesChange(d)},"timeSeries");this.scopeObservable.subscribe(function(d){a.onScopeChange(d)})};h=FH.prototype;
h.onXAxisChange=function(a){this.xAxisState=a.currentValue;if(Vk(a)||Wk(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Gk(c,a);this.timeZoneSubject.next(c)}};h.onXAxisPinChange=function(a){this.xAxisPinState=a.currentValue;this.timeKey===0&&this.update()};h.onLastInteractionChange=function(a){this.lastInteractionState=a.currentValue;this.update()};h.onResizeChange=function(a){this.resizeState=a.currentValue};
h.onTimeSeriesChange=function(a){this.timeSeriesState=a.currentValue;this.update()};h.onScopeChange=function(a){a!==null&&(this.scope=a,this.update())};
h.update=function(){var a=this.xAxisState,b=this.xAxisPinState,c=this.lastInteractionState,d=this.resizeState,e=this.timeSeriesState;if(a&&d&&c&&b){c=ml(this.scope,c);d=Yk(a,d.margins.left,d.width-d.margins.right);a:{var f=this.timeKey;switch(f){case 0:var g;d=(g=b==null?void 0:b.xPos)!=null?g:null;break a;case 2:var k;g=(k=c.click)==null?void 0:k.x;d=d&&g?d(g):null;break a;case 1:var l;g=(l=c.hover)==null?void 0:l.x;d=d&&g?d(g):null;break a;case 3:d=a.max;break a;case 4:var r;g=(r=c.multiselectAnchor)==
null?void 0:r.x;d=d&&g?d(g):null;break a;default:wb(f,"unknown data source")}d=void 0}if(d!==null){b=e==null?void 0:e.byLayer.ids;e=e==null?void 0:e.byLayer.entities;k=g=null;r=l=Infinity;if((b==null?0:b.length)&&e)for(b=m(b),c=b.next();!c.done;c=b.next())if((f=e[c.value])&&(f.valueType===1||f.valueType===2)){var w=void 0,x=void 0,C=void 0;c=(w=f)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x0;C=x=w=void 0;f=(w=f)==null?void 0:(x=w.snapshotMetadata)==
null?void 0:(C=x[this.timeKey])==null?void 0:C.alignmentRange.x;c&&f?(w=Math.abs(f-d)+Math.abs(c-d),w<r&&(k=c,g=f,r=w)):f&&r===Infinity&&(c=Math.abs(f-d),c<l&&(g=f,l=c))}this.dateTimeSubject.next({cursor:d,max:g,min:k,unit:a.unit})}}};h.setupStateChangeHandler=function(a,b,c){var d=this,e=null;a.pipe(Bf(this.destroyed)).subscribe(function(f){var g={previousValue:e,currentValue:f};e=f;d.scheduleStateChangeHandler(g,{},b,d.acDateTimeFastId+"-"+c,d.scope)})};
h.selectorFactoryToObservable=function(a){var b=this;return this.scopeObservable.pipe(Af(function(c){return b.selectorService.getSelection(a,c)}),we(function(c){return c!==void 0}))};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
h.ngOnChanges=function(a){"scopeInput"in a&&this.inputScopeSubject.next(Object.assign({},this.scopeInput))};da.Object.defineProperties(FH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.update()}}});
FH.\u0275fac=function(a){return new (a||FH)};
FH.\u0275cmp=D({type:FH,selectors:[["ac-date-time-fast"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy",scopeInput:[0,"scope","scopeInput"]},features:[bx],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(cg(n0c),F(0,yFa,4,1,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[Lx],styles:[".date-time-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_date_time_fast.css.map */"]});var GH=function(a,b){PG.call(this,a);this.ngZone=b;this.nonblockingErrorMessageSubject=new Nj(null);this.nonblockingErrorMessageObservable=this.nonblockingErrorMessageSubject.pipe(pf(),xk(this.ngZone));this.setup({})};Y(GH,PG);GH.\u0275dir=PG.\u0275dir;GH.prototype.onErrorChange=function(a){var b,c,d;a=(b=a.currentValue)==null?void 0:(c=b.nonblockingErrors)==null?void 0:(d=c[0])==null?void 0:d.error.displayMessage;this.nonblockingErrorMessageSubject.next(a||null)};
GH.\u0275fac=function(a){return new (a||GH)(Ye(ZF),Ye(Rg))};
GH.\u0275cmp=D({type:GH,selectors:[["ac-nonblocking-error-banner"]],outputs:{nonblockingErrorMessageObservable:"nonblockingErrorMessageObservable"},features:[Gf],decls:2,vars:3,consts:[["class","partial-error-div",4,"ngIf"],[1,"partial-error-div"],["svgIcon","ac:warning",1,"icon","mat-18","partial-error-icon"],[1,"partial-error-message"]],template:function(a,b){a&1&&(E(0,zFa,5,3,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.nonblockingErrorMessageObservable))},dependencies:[Dy,Fx,Lx],styles:['.partial-error-div[_ngcontent-%COMP%]{width:100%;display:flex;font-family:"Roboto",sans-serif;font-size:13px;line-height:20px;margin:0;border-radius:8px;max-height:80px;overflow:auto;padding:16px 24px 12px;background:var(--ac-sys-color-extensions-warning-surface, #fef7e0);box-sizing:border-box}.partial-error-icon[_ngcontent-%COMP%]{flex:0 0 26px}.partial-error-message[_ngcontent-%COMP%]{flex:0 0 1}/*# sourceMappingURL=ac_nonblocking_error_banner.css.map */'],
changeDetection:0});var HH=function(a,b,c,d){PG.call(this,a);var e=this;this.queueService=b;this.ngZone=c;this.enclosingHovercard=d;this.hideCardWhenEmpty=!1;this.aboveLabel="Above";this.belowLabel="Below";this.updateDebouncedTriggerSubject=new sf;this.thresholdInfoObservable=this.thresholdInfoSubject=new Nj(null);this.setup({});this.ngZone.runOutsideAngular(function(){e.updateDebouncedTriggerSubject.pipe(Df(10)).pipe(Bf(e.destroyed)).subscribe(function(){e.withLatest(function(f){e.update(f)})})})};Y(HH,PG);
HH.\u0275dir=PG.\u0275dir;HH.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};HH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
HH.prototype.update=function(a){if(a=a.state){var b=a.lastInteraction;a.resize&&b&&(b.threshold?this.thresholdInfoSubject.next(b.threshold.hover):this.thresholdInfoSubject.next(null),this.hideCardWhenEmpty&&this.enclosingHovercard&&(this.enclosingHovercard.showHovercardOverride=this.thresholdInfoSubject.value===null?"hide":"no_override"))}};HH.\u0275fac=function(a){return new (a||HH)(Ye(ZF),Ye(MG),Ye(Rg),Ye(QG,8))};
HH.\u0275cmp=D({type:HH,selectors:[["ac-threshold-info"]],inputs:{hideCardWhenEmpty:"hideCardWhenEmpty"},features:[Gf],decls:2,vars:3,consts:[[4,"ngIf"],[1,"threshold-info-body"],[1,"threshold-info-label"],[1,"threshold-info-bounds-label"]],template:function(a,b){a&1&&(E(0,AFa,8,5,"ng-container",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.thresholdInfoObservable))},dependencies:[Fx,Lx],styles:[".threshold-info-body[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:400;color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368)}.threshold-info-bounds-label[_ngcontent-%COMP%]{font-weight:800}/*# sourceMappingURL=ac_threshold_info.css.map */"]});var IH=function(){this.streamActions=[];this.filteredStreamActions=[]};IH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};IH.\u0275fac=function(a){return new (a||IH)};
IH.\u0275cmp=D({type:IH,selectors:[["ac-streams-legend-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[bx],decls:4,vars:3,consts:[["streamActionsMenu",""],["class","stream-actions","mat-icon-button","","aria-label","Open timeserie action menu",3,"matMenuTriggerFor",4,"ngIf"],[3,"streamMetadata","streamActions"],["mat-icon-button","","aria-label","Open timeserie action menu",1,"stream-actions",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&(E(0,BFa,
3,1,"button",1),K(1,"mat-menu",null,0),M(3,"ac-stream-action-menu",2),L());a&2&&(I("ngIf",b.filteredStreamActions.length>0),B(3),I("streamMetadata",b.streamMetadata)("streamActions",b.filteredStreamActions))},dependencies:[Yx,Fx,Fy,Dy,fB,eB,bH,YG,aH,cH],styles:["button.stream-actions[_ngcontent-%COMP%]{width:16px;height:16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0}button.stream-actions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#202124}\n/*# sourceMappingURL=ac_streams_legend_actions.css.map */"],
changeDetection:0});var q0c=function(a){this.valueType=0;this.getColor=a.getColor;this.getDisplayValue=a.getDisplayValue;this.getIsInteracted=a.getIsInteracted;this.getName=a.getName;this.getMinDisplayValue=a.getMinDisplayValue;this.getMaxDisplayValue=a.getMaxDisplayValue;this.getMetadata=a.getMetadata;this.drawnAs=a.drawnAs;this.lineDash=a.lineDash;this.rawValue=a.rawValue;this.scaledValue=a.scaledValue;this.pxValue=a.pxValue;this.shape=a.shape;this.stackingIndex=a.stackingIndex};
da.Object.defineProperties(q0c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this.getColor()}},displayValue:{configurable:!0,enumerable:!0,get:function(){return this.displayValueCache?this.displayValueCache:this.displayValueCache=this.getDisplayValue()}},minDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.minDisplayValueCache)return this.minDisplayValueCache;if(this.getMinDisplayValue)return this.minDisplayValueCache=this.getMinDisplayValue()}},maxDisplayValue:{configurable:!0,
enumerable:!0,get:function(){if(this.maxDisplayValueCache)return this.maxDisplayValueCache;if(this.getMaxDisplayValue)return this.maxDisplayValueCache=this.getMaxDisplayValue()}},isInteracted:{configurable:!0,enumerable:!0,get:function(){return this.getIsInteracted()}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()}},timeshiftDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.getTimeshiftDisplayValue)return this.getTimeshiftDisplayValue()}},metadata:{configurable:!0,
enumerable:!0,get:function(){if(this.getMetadata)return this.getMetadata()}}});var r0c=function(){q0c.apply(this,arguments);this.valueType=1};Y(r0c,q0c);var s0c=function(){q0c.apply(this,arguments);this.valueType=2};Y(s0c,q0c);var QFa=function(){return[]},OFa=function(a){return{"min-width":a}},DFa=function(a,b){return{$implicit:a,name:b}},IFa=function(a){return{$implicit:a}},t0c=["right","left"],JH=function(){var a=p(ZF);PG.call(this,a);var b=this;this.AC_SYS_COLOR_CHART_ON_SURFACE="var(--ac-sys-color-chart-on-surface, #000)";this.queueService=p(MG);this.formatterService=p(YF);this.cdr=p(ux);this.enclosingHovercard=p(QG,{optional:!0});this.timeKey=1;this.hideThresholds=!1;this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=
this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=uZc;this.chartQuickActionsEnabled=this.formatDistribution=!1;this.sortingSetting="by_value";this.updateTriggerSubject=new sf;this.xAxisLookup={ids:[],entities:{}};this.isQuery=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.valueColumnLabel="Value";this.updateTimeout=null;this.allStreamsSubject=new Nj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return b.sortingSetting===
"alphabetical"?c.sort(function(d,e){return d.name.localeCompare(e.name,"en")}):c.sort(SFa)}));this.relativeYPosSubject=new Nj(null);this.centerStreamIndexObservable=le([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),pf());this.streamsObservable=this.sortedStreamsObservable;this.timeshiftColumnLabelSubject=new Nj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(xf({bufferSize:1,
refCount:!0}));this.setup({});this.scopeObservable.pipe(Af(function(c){return b.formatterService.getValueStrategy(c)}),Bf(this.destroyed)).subscribe(function(c){b.ignoreFloatImprecision=c.ignoreFloatImprecision;b.valueFormatter=function(d,e,f,g){var k,l;return(l=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?l:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Y(JH,PG);JH.\u0275dir=PG.\u0275dir;h=JH.prototype;
h.ngOnChanges=function(a){PG.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(ak(lG),Bf(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=t0c.map(function(c){return a.scopeObservable.pipe(Af(function(d){return a.selectorService.getSelection(qG,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),zf(null),vf(),A(gk),we(function(d){return ol(d)}))});this.enclosingHovercard&&(this.enclosingHovercard.timeKeyObservable.pipe(Bf(this.destroyed)).subscribe(function(c){a.timeKey=c}),this.enclosingHovercard.showHovercard.pipe(Bf(this.destroyed)).subscribe(function(c){c&&
a.update()}));ve.apply(null,[this.updateTriggerSubject].concat(q(b))).pipe(we(function(){var c,d;return(d=(c=a.enclosingHovercard)==null?void 0:c.isShowing)!=null?d:!0}),Bf(this.destroyed)).subscribe(function(){a.throttledUpdate()})};h.throttledUpdate=function(){var a=this;this.updateTimeout||(this.updateTimeout=setTimeout(function(){a.update();a.updateTimeout=null},0))};
h.update=function(a){var b=this,c=t0c.map(function(d){return b.scopeObservable.pipe(Af(function(e){return b.selectorService.getSelection(qG,Object.assign({},e,{yAxisId:d}))}))});le(c).pipe(nf(1)).subscribe(function(d){for(var e=new Map,f=0;f<t0c.length;f++)e.set(t0c[f],d[f]);b.withLatest(function(g){var k=g.scope;var l=g.state;if(k&&l&&l.timeSeries&&l.brush&&l.resize){g=l.colorScale;var r=l.seriesSelection,w=l.timeSeries,x=l.resize;if(!l.brush.panning){a&&b.deselectAllSeries(k,r);l=b.getInteractedSeries(r);
r=new Map;for(var C=m(t0c),H=C.next();!H.done;H=C.next()){H=H.value;var J=e.get(H);if(J){J=pl(J,x.margins.top,x.height-x.margins.bottom,J.unit);var O=void 0;r.set(H,(O=J)!=null?O:null)}else r.set(H,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);k=b.buildStreams(k,w,l,r,e,g);b.allStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,l=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Ek((l=(e=a)==null?void 0:e.chartGroupId)!=null?l:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?eCa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Fc");}return c||""};h.trackByIndex=function(a){return a};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){il(a)&&this.updateTriggerSubject.next()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0};h.onTimeSeriesChange=function(){this.updateTriggerSubject.next()};h.onResizeChange=function(){this.updateTriggerSubject.next()};
h.onLastInteractionChange=function(a,b){if(a=a.currentValue)b=this.getLastInteractionYPos(ml(b.scope,a)),this.relativeYPosSubject.next(b)};h.deselectAllSeries=function(a,b){var c=this;b&&Object.values(b.byLayer.entities).filter(function(d){return d!==void 0&&d!==null}).forEach(function(d){d.selectedSeries&&a.chartId&&c.store.dispatch(TG({chartId:a.chartId,layerId:d.layerId}))})};
h.getInteractedSeries=function(a){var b=this,c=[];a&&Object.values(a.byLayer.entities).forEach(function(d){c=c.concat(b.getLayerInteractedSeries(d))});return c};h.getLayerInteractedSeries=function(a){if(!a)return[];switch(this.timeKey){case 2:return[];case 0:case 3:return a.selectedSeries;case 1:return a.hoveredSeries;case 4:return[];default:wb(this.timeKey,"unknown data source")}};
h.getLastInteractionYPos=function(a){if(!a)return null;switch(this.timeKey){case 0:var b,c;return(c=(b=a.focus)==null?void 0:b.y)!=null?c:null;case 2:var d,e;return(e=(d=a.click)==null?void 0:d.y)!=null?e:null;case 1:var f,g;return(g=(f=a.hover)==null?void 0:f.y)!=null?g:null;case 3:return null;case 4:var k,l;return(l=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?l:null;default:wb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new sl(a.legendTemplate):this.labelTemplate&&(b=new sl(this.labelTemplate));var d=bDa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,l=new Map;b=m(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$14:void 0,yAxisState$jscomp$8:void 0,layerColorScale$jscomp$1:void 0,labelFormatter$jscomp$5:void 0,labelFormatter$jscomp$6:void 0},r=b.next())if(w.layer$jscomp$14=r.value,w.yAxisState$jscomp$8=e.get(w.layer$jscomp$14.yAxisId),w.yAxisState$jscomp$8){var x=void 0,C=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Ek((O=(x=a)==null?void 0:x.chartGroupId)!=
null?O:"",(R=(C=a)==null?void 0:C.chartId)!=null?R:"",w.layer$jscomp$14.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$14.valueType===2)for(x=void 0,w.layerColorScale$jscomp$1=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$14.layerId],x=Object.values(w.layer$jscomp$14.bySeries.entities),C=void 0,w.labelFormatter$jscomp$5=this.getCachedLabelFormatter(x,(C=w.layer$jscomp$14.legendTemplate)!=null?C:this.labelTemplate),x=m(x),H=x.next(),C={};!H.done;C={series$jscomp$53:void 0,
getDisplayValueAndBucketCount$jscomp$1:void 0},H=x.next())(C.series$jscomp$53=H.value,!C.series$jscomp$53||this.hideThresholds&&C.series$jscomp$53.drawnAs===6||(H=C.series$jscomp$53.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(C.getDisplayValueAndBucketCount$jscomp$1=function(ja,ta){return function(){return g.formatDistributionValue(ja.series$jscomp$53,ta.layer$jscomp$14.unit,ta.layer$jscomp$14.yAxisId,ta.yAxisState$jscomp$8.min,ta.yAxisState$jscomp$8.max,ta.yAxisState$jscomp$8.unit,ta.yAxisState$jscomp$8.maximumFractionDigits)}}(C,
w),H=void 0,J=new s0c({getColor:function(ja,ta){return function(){var xa=(0,ja.getDisplayValueAndBucketCount$jscomp$1)().bucketCount;xa=ta.layerColorScale$jscomp$1?g.distributionColorStrategy.getColor(xa!=null?xa:ta.layerColorScale$jscomp$1.min,ta.layerColorScale$jscomp$1):"var(--ac-sys-color-chart-on-surface, #000)";return typeof xa!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":xa}}(C,w),getDisplayValue:function(ja){return function(){return(0,ja.getDisplayValueAndBucketCount$jscomp$1)().displayValue}}(C),
getIsInteracted:function(ja){return function(){return c.map(function(ta){return ta.seriesId}).includes(ja.series$jscomp$53.seriesId)}}(C),getName:function(ja,ta){return function(){return g.displayName(ja.series$jscomp$53,ta.labelFormatter$jscomp$5)}}(C,w),getMetadata:function(ja){return function(){return ja.series$jscomp$53.dataSeriesMetadata}}(C),drawnAs:C.series$jscomp$53.drawnAs,lineDash:C.series$jscomp$53.lineDash,rawValue:(H=C.series$jscomp$53.atTimeKey[this.timeKey])!=null?H:void 0}),r?l.set(C.series$jscomp$53.seriesId,
J):k.set(C.series$jscomp$53.seriesId,J));else if(w.layer$jscomp$14.valueType===1||w.layer$jscomp$14.valueType===3)if(x=d.get(w.layer$jscomp$14.yAxisId))for(C=Object.values(w.layer$jscomp$14.bySeries.entities),H=void 0,w.labelFormatter$jscomp$6=this.getCachedLabelFormatter(C,(H=w.layer$jscomp$14.legendTemplate)!=null?H:this.labelTemplate),C=m(C),J=C.next(),H={};!J.done;H={series$jscomp$54:void 0,value$jscomp$8649:void 0,getName$jscomp$4:void 0},J=C.next())if(H.series$jscomp$54=J.value,H.series$jscomp$54&&
(!this.hideThresholds||H.series$jscomp$54.drawnAs!==6)&&(H.value$jscomp$8649=H.series$jscomp$54.atTimeKey[this.timeKey],!this.hideUndefinedValues||H.value$jscomp$8649)){O=function(ja){return function(){return ja.series$jscomp$54.color}}(H);H.getName$jscomp$4=function(ja,ta){return function(){return g.displayName(ja.series$jscomp$54,ta.labelFormatter$jscomp$6)}}(H,w);R=function(ja,ta){return function(){var xa;return g.formatNumericValue((xa=ja.value$jscomp$8649)==null?void 0:xa.y,ta.layer$jscomp$14.unit,
ta.layer$jscomp$14.yAxisId,ta.yAxisState$jscomp$8.min,ta.yAxisState$jscomp$8.max,ta.yAxisState$jscomp$8.unit,ta.yAxisState$jscomp$8.maximumFractionDigits,ta.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w);var V=void 0;J=((V=H.value$jscomp$8649)==null?void 0:V.min)!==void 0?function(ja,ta){return function(){var xa;return g.formatNumericValue((xa=ja.value$jscomp$8649)==null?void 0:xa.min,ta.layer$jscomp$14.unit,ta.layer$jscomp$14.yAxisId,ta.yAxisState$jscomp$8.min,ta.yAxisState$jscomp$8.max,
ta.yAxisState$jscomp$8.unit,ta.yAxisState$jscomp$8.maximumFractionDigits,ta.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w):void 0;var ca=void 0;V=((ca=H.value$jscomp$8649)==null?void 0:ca.max)!==void 0?function(ja,ta){return function(){var xa;return g.formatNumericValue((xa=ja.value$jscomp$8649)==null?void 0:xa.max,ta.layer$jscomp$14.unit,ta.layer$jscomp$14.yAxisId,ta.yAxisState$jscomp$8.min,ta.yAxisState$jscomp$8.max,ta.yAxisState$jscomp$8.unit,ta.yAxisState$jscomp$8.maximumFractionDigits,
ta.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w):void 0;var oa=function(ja){return function(){return c.map(function(ta){return ta.seriesId}).includes(ja.series$jscomp$54.seriesId)}}(H),ua=function(ja){return function(){return ja.series$jscomp$54.dataSeriesMetadata}}(H),ka=void 0;ca=H.value$jscomp$8649!==void 0&&H.value$jscomp$8649!==null?(ka=Lk(w.layer$jscomp$14.unit,w.yAxisState$jscomp$8.unit,H.value$jscomp$8649.y))!=null?ka:H.value$jscomp$8649.y:void 0;var Ga=ka=void 0;
O=new r0c({getColor:O,getDisplayValue:R,getIsInteracted:oa,getName:H.getName$jscomp$4,getMetadata:ua,drawnAs:H.series$jscomp$54.drawnAs,lineDash:H.series$jscomp$54.lineDash,rawValue:(Ga=(ka=H.value$jscomp$8649)==null?void 0:ka.y)!=null?Ga:void 0,scaledValue:ca,pxValue:H.value$jscomp$8649!==void 0&&H.value$jscomp$8649!==null?x(H.value$jscomp$8649.y):void 0,shape:H.series$jscomp$54.shape,stackingIndex:H.series$jscomp$54.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:V});r?l.set(H.series$jscomp$54.seriesId,
O):k.set(H.series$jscomp$54.seriesId,O)}}a=m(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$3:void 0},e=a.next())f=m(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$3=l.get(e),d.shiftedStream$jscomp$3&&(f.getTimeshiftDisplayValue=function(ja){return function(){return ja.shiftedStream$jscomp$3.displayValue}}(d),l.delete(e));return Array.from(k.values()).concat(Array.from(l.values()))};
h.getCachedLabelFormatter=function(a,b){a=cDa(a);var c=dDa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==null?void 0:(r=l.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var l,r,w;k=(w=k==null?void 0:(l=k.resource)==
null?void 0:(r=l.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,l=a.atTimeKey[this.timeKey];if(l&&l.bucketIndex!==void 0){var r=l.bucketIndex;a=l.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/l.y.count).toFixed(),C=m(ql(l.y,r)),H=C.next().value;C=C.next().value;r===l.y.bucketCounts.length&&(C=null);H===-Infinity&&(H=null);r=m([H,C].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Lk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Nk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));l=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,l,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,l){var r,w=(r=this.valueFormatter)!=null?r:Nk;c=d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0;if(a!==void 0&&a!==null){b==="{not_a_unit}"&&(b="1");var x;k=(x=Lk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(l){var C;c=Object.assign({},(C=c)!=null?C:{},{displayName:l})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new Tl("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new Tl("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new Tl("{COUNT} ({PERCENT}%) between {LOWER} and {UPPER}")).format({COUNT:a,PERCENT:b,LOWER:c,UPPER:d})};
h.getCenterStreamIndex=function(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];if(e.isInteracted){c=d;break}b!==null&&e.valueType===1&&e.pxValue!==void 0&&e.pxValue>b&&(c=d)}return c};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({mergeKey:d,context:b,changes:a,scope:e,componentHandlerUsingContext:c})};h.ngOnDestroy=function(){PG.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(JH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:wb(a,"unknown data source")}this.update()}}});JH.\u0275fac=function(a){return new (a||JH)};
JH.\u0275cmp=D({type:JH,selectors:[["ac-streams-legend"]],inputs:{dataSource:"dataSource",hideThresholds:"hideThresholds",labelTemplate:"labelTemplate",customTranslationFunctions:"customTranslationFunctions",seriesRowTemplate:"seriesRowTemplate",seriesValueTemplate:"seriesValueTemplate",streamActions:"streamActions",condensedShapes:"condensedShapes",hideUndefinedValues:"hideUndefinedValues",layerIdsToIgnore:"layerIdsToIgnore",showHovercardSeriesActionText:"showHovercardSeriesActionText",showLineDash:"showLineDash",
distributionColorStrategy:"distributionColorStrategy",formatDistribution:"formatDistribution",chartQuickActionsEnabled:"chartQuickActionsEnabled",sortingSetting:"sortingSetting"},features:[Gf,bx],decls:2,vars:3,consts:[[1,"legend-container",3,"itemSize"],[1,"list"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"key","bright"],[3,"color","drawnAs","shape","condensed","lineDash"],[1,"name-wrapper"],[1,"name",3,"ngStyle"],[1,"value","current-value",3,"strong"],[1,"value","current-value"],
[1,"stream-actions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"streamMetadata","streamActions"]],template:function(a,b){a&1&&(F(0,RFa,5,6,"cdk-virtual-scroll-viewport",0),T(1,"async"));if(a&2){var c;G(((c=U(1,1,b.streamsObservable))==null?0:c.length)?0:-1)}},dependencies:[VG,IH,Jx,Kx,xz,pz,vz,uz,Lx],styles:[".legend-container[_ngcontent-%COMP%]{height:100%;color:var(--ac-sys-color-extensions-on-surface,#202124);text-align:left;min-height:16px;font-size:12px;overflow:auto}table[_ngcontent-%COMP%]{table-layout:auto;width:100%}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:12px;font-weight:400;line-height:20px;max-width:300px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr.dummy-row[_ngcontent-%COMP%]{position:absolute;visibility:hidden}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:12px;opacity:.66;overflow:hidden;padding:1px 0;text-overflow:ellipsis;top:0;vertical-align:top;padding-right:20px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:has(+.stream-actions), table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead-spacing[_ngcontent-%COMP%]{padding:8px 0 1px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead[_ngcontent-%COMP%]{font-size:10px;line-height:16px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{opacity:.9;padding-right:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.bright[_ngcontent-%COMP%]{opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.dim[_ngcontent-%COMP%]{opacity:.3}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]{width:100%;max-width:250px;overflow-x:hidden;overflow-y:hidden;text-align:left}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;word-break:break-all}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   td.value2[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.value[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}table[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=ac_streams_legend.css.map */"],
changeDetection:0});var u0c=["content"],v0c=[[["","header",""]],"*"],w0c=function(a){return{transform:a,"z-index":"1",height:"unset"}},TFa=function(a){return{height:a}},KH=function(a,b,c){this.element=a;this.renderer=b;this.changeDetector=c;this.items=[];this.hasHeader=!1;this.update=new Ui;this.change=new Ui;this.start=new Ui;this.end=new Ui;this.scroll$=new sf;this.startupLoop=!0;this.buriedHeader=!1};h=KH.prototype;h.onScroll=function(a){this.scroll$.next(a)};
h.ngOnInit=function(){var a=this;this.scroll$.pipe(Af(function(){a.refresh();return ee()})).subscribe();this.scrollbarHeight=this.scrollbarWidth=0};h.ngOnChanges=function(a){this.previousEnd=this.previousStart=void 0;var b=a.items||{};a.items==void 0||b.previousValue!=void 0&&b.previousValue.length!==0||(this.startupLoop=!0);this.refresh()};h.ngOnDestroy=function(){if(this.onScrollListener!==void 0)this.onScrollListener()};
h.refresh=function(){var a=this;requestAnimationFrame(function(){a.changeDetector.markForCheck();var b=a.element.nativeElement,c=x0c(a),d=a.items||[];a.scrollHeight=c.childHeight*c.itemCount/c.itemsPerRow;a.element.nativeElement.scrollTop>a.scrollHeight&&(a.element.nativeElement.scrollTop=a.scrollHeight);var e=Math.max(0,a.scrollTop||b.scrollTop)/a.scrollHeight*c.itemCount/c.itemsPerRow,f=b=Math.min(c.itemCount,Math.ceil(e)*c.itemsPerRow+c.itemsPerRow*(c.itemsPerCol+1)),g=b%c.itemsPerRow;g&&(f=b+
c.itemsPerRow-g);e=Math.min(Math.max(0,f-c.itemsPerCol*c.itemsPerRow-c.itemsPerRow),Math.floor(e)*c.itemsPerRow);a.topPadding=c.childHeight*Math.ceil(e/c.itemsPerRow);e=isNaN(e)?-1:e;b=isNaN(b)?-1:b;c=e;f=b;e!==a.previousStart||b!==a.previousEnd?(a.buriedHeader=!1,a.hasHeader&&(isNaN(e)||e===-1?c=e:e===0?(c=e,a.buriedHeader=!0):c=e-1,isNaN(b)||b===-1?f=b:b===0?(f=b,a.buriedHeader=!0):f=b-1),a.update.emit(d.slice(c,f)),e!==a.previousStart&&a.startupLoop===!1&&a.start.emit({start:e,end:b}),b!==a.previousEnd&&
a.startupLoop===!1&&a.end.emit({start:e,end:b}),a.previousStart=e,a.previousEnd=b,a.startupLoop===!0?a.refresh():a.change.emit({start:e,end:b})):a.startupLoop===!0&&(a.startupLoop=!1,a.refresh())})};
var x0c=function(a){var b=a.element.nativeElement,c=a.contentElementRef.nativeElement,d=(a.items||[]).length+(a.hasHeader?1:0),e=b.clientWidth-a.scrollbarWidth,f=b.clientHeight-a.scrollbarHeight;if(a.childWidth==void 0||a.childHeight==void 0)var g=c.children[0]?c.children[0].getBoundingClientRect():{width:e,height:f};c=a.childWidth||g.width;g=a.childHeight||g.height;var k,l=a.contentElementRef.nativeElement.children;for(k=0;k<l.length&&(r==void 0||r===l[k].offsetTop);k++)var r=l[k].offsetTop;r=Math.max(1,
k);k=Math.max(1,Math.floor(e/c));l=Math.max(1,Math.floor(f/g));b=Math.max(0,a.scrollTop||b.scrollTop);l===1&&Math.floor(b/a.scrollHeight*d)+k>=d&&(r=k);return{itemCount:d,viewWidth:e,viewHeight:f,childWidth:c,childHeight:g,itemsPerRow:r,itemsPerCol:l,itemsPerRowByCalc:k}};KH.\u0275fac=function(a){return new (a||KH)(Ye(Jd),Ye(di),Ye(ux))};
KH.\u0275cmp=D({type:KH,selectors:[["virtual-scroll"],["","virtualScroll",""]],viewQuery:function(a,b){a&1&&hg(u0c,5,Jd);if(a&2){var c;lg(c=mg())&&(b.contentElementRef=c.first)}},hostBindings:function(a,b){a&1&&N("scroll",function(){return b.onScroll()})},inputs:{items:"items",hasHeader:"hasHeader",scrollbarWidth:"scrollbarWidth",scrollbarHeight:"scrollbarHeight",childWidth:"childWidth",childHeight:"childHeight",scrollTop:"scrollTop"},outputs:{update:"update",change:"change",start:"start",end:"end"},
exportAs:["virtualScroll"],standalone:!1,features:[bx],ngContentSelectors:["[header]","*"],decls:7,vars:8,consts:[["content",""],[1,"total-padding"],[1,"scrollable-content","header",3,"ngStyle"],[1,"scrollable-content"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(a,b){a&1&&(cg(v0c),M(0,"div",1),K(1,"div",2),dg(2),L(),K(3,"div",3,0),E(5,UFa,1,3,"div",4),dg(6,1),L());a&2&&(vg("height",b.scrollHeight+"px"),B(),I("ngStyle",Ig(6,w0c,"translateY("+b.scrollTop+"px)")),B(2),vg("transform","translateY("+
b.topPadding+"px)"),B(2),I("ngIf",b.buriedHeader))},dependencies:[Fx,Jx],styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      overflow-y: auto;\n      position: relative;\n      -webkit-overflow-scrolling: touch;\n    }\n    .scrollable-content[_ngcontent-%COMP%] {\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      position: absolute;\n    }\n    .total-padding[_ngcontent-%COMP%] {\n      width: 1px;\n      opacity: 0;\n    }"]});var LH=function(){};
LH.\u0275fac=function(a){return new (a||LH)};LH.\u0275mod=cf({type:LH});LH.\u0275inj=Hc({imports:[Yx]});var y0c=["trigger"],z0c=["panel"],A0c=[[["mat-select-trigger"]],"*"],B0c=new fd("mat-select-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Uh(a)}}}),C0c=new fd("MAT_SELECT_CONFIG"),D0c=new fd("MatSelectTrigger"),E0c=function(a,b){this.source=a;this.value=b},MH=function(){var a=this;this._viewportRuler=p(Rh);this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._dir=p(ci,{optional:!0});this._idGenerator=p(bi);this._renderer=p(di);this._parentFormField=
p(wPc,{optional:!0});this.ngControl=p(YD,{self:!0,optional:!0});this._liveAnnouncer=p(Yy);this._defaultOptions=p(C0c,{optional:!0});this._animationsDisabled=ni();this._initialized=new sf;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=p(B0c);this._panelOpen=!1;this._compareWith=function(r,w){return r===w};this._uid=this._idGenerator.getId("mat-select-");this._triggerAriaLabelledBy=null;this._destroy=new sf;this.stateChanges=new sf;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=ng.apply(null,[!1].concat(q([])));this.tabIndex=0;var c,d;this._hideSingleSelectionIndicator=(d=(c=this._defaultOptions)==null?void 0:c.hideSingleSelectionIndicator)!=null?d:!1;this._multiple=!1;var e,f;this.disableOptionCentering=(f=(e=this._defaultOptions)==null?void 0:e.disableOptionCentering)!=null?f:!1;this.ariaLabel="";this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth!=="undefined"?
this._defaultOptions.panelWidth:"auto";var g,k;this.canSelectNullableOptions=(k=(g=this._defaultOptions)==null?void 0:g.canSelectNullableOptions)!=null?k:!1;this.optionSelectionChanges=pe(function(){var r=a.options;return r?r.changes.pipe(zf(r),Af(function(){return ve.apply(null,q(r.map(function(w){return w.onSelectionChange})))})):a._initialized.pipe(Af(function(){return a.optionSelectionChanges}))});this.openedChange=new Ui;this._openedStream=this.openedChange.pipe(we(function(r){return r}),A(function(){}));
this._closedStream=this.openedChange.pipe(we(function(r){return!r}),A(function(){}));this.selectionChange=new Ui;this.valueChange=new Ui;this._trackedModal=null;this._skipPredicate=function(r){return a.panelOpen?!1:r.disabled};b=p(Wz);c=p(eE,{optional:!0});d=p(oE,{optional:!0});e=p(new cx("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this);var l;((l=this._defaultOptions)==null?void 0:l.typeaheadDebounceInterval)!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval);
this._errorStateTracker=new JDc(b,this.ngControl,d,c,this.stateChanges);this._scrollStrategy=this._scrollStrategyFactory();this.tabIndex=e==null?0:parseInt(e)||0;this.id=this.id};h=MH.prototype;h._scrollOptionIntoView=function(a){var b=this.options.toArray()[a];if(b){var c=this.panel.nativeElement,d=Yra(a,this.options,this.optionGroups);b=b._getHostElement();c.scrollTop=a===0&&d===1?0:Zra(b.offsetTop,b.offsetHeight,c.scrollTop,c.offsetHeight)}};
h._positioningSettled=function(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)};h._getChangeEvent=function(a){return new E0c(this,a)};h.ngOnInit=function(){var a=this;this._selectionModel=new rz(this.multiple);this.stateChanges.next();this._viewportRuler.change().pipe(Bf(this._destroy)).subscribe(function(){a.panelOpen&&(a._overlayWidth=a._getOverlayWidth(a._preferredOverlayOrigin),a._changeDetectorRef.detectChanges())})};
h.ngAfterContentInit=function(){var a=this;this._initialized.next();this._initialized.complete();this._initKeyManager();this._selectionModel.changed.pipe(Bf(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(zf(null),Bf(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
h.ngDoCheck=function(){var a=this._getTriggerAriaLabelledby(),b=this.ngControl;if(a!==this._triggerAriaLabelledBy){var c=this._elementRef.nativeElement;(this._triggerAriaLabelledBy=a)?c.setAttribute("aria-labelledby",a):c.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(this._previousControl!==void 0&&b.disabled!==null&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
h.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&WCc(this._keyManager,this.typeaheadDebounceInterval)};h.ngOnDestroy=function(){var a;(a=this._cleanupDetach)==null||a.call(this);var b;(b=this._keyManager)==null||b.destroy();this._destroy.next();this._destroy.complete();this.stateChanges.complete();this._clearFromModal()};h.toggle=function(){this.panelOpen?this.close():this.open()};
h.open=function(){var a=this;if(this._canOpen()){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin());var b;(b=this._cleanupDetach)==null||b.call(this);this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin);this._applyModalPanelOwnership();this._panelOpen=!0;this._overlayDir.positionChange.pipe(nf(1)).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()});HDc(this._overlayDir);iz(this._keyManager,null);
this._highlightCorrectOption();this._changeDetectorRef.markForCheck();this.stateChanges.next();Promise.resolve().then(function(){return a.openedChange.emit(!0)})}};h._applyModalPanelOwnership=function(){var a=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.id+"-panel";this._trackedModal&&Qh(this._trackedModal,"aria-owns",b);Ara(a,"aria-owns",b);this._trackedModal=a}};
h._clearFromModal=function(){this._trackedModal&&(Qh(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};h.close=function(){var a=this;this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),iz(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(function(){return a.openedChange.emit(!1)}))};
h._exitAndDetach=function(){var a=this;if(this._animationsDisabled||!this.panel)this._detachOverlay();else{var b;(b=this._cleanupDetach)==null||b.call(this);this._cleanupDetach=function(){c();clearTimeout(d);a._cleanupDetach=void 0};b=this.panel.nativeElement;var c=this._renderer.listen(b,"animationend",function(e){if(e.animationName==="_mat-select-exit"){var f;(f=a._cleanupDetach)==null||f.call(a);a._detachOverlay()}}),d=setTimeout(function(){var e;(e=a._cleanupDetach)==null||e.call(a);a._detachOverlay()},
200);b.classList.add("mat-select-panel-exit")}};h._detachOverlay=function(){IDc(this._overlayDir);this._changeDetectorRef.markForCheck()};h.writeValue=function(a){this._assignValue(a)};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};h.updateErrorState=function(){this._errorStateTracker.updateErrorState()};
h._isRtl=function(){return this._dir?this._dir.value==="rtl":!1};h._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};
h._handleClosedKeydown=function(a){var b=a.keyCode,c=b===40||b===38||b===37||b===39,d=this._keyManager;!(d.isTyping()||b!==13&&b!==32||Gh(a))||(this.multiple||a.altKey)&&c?(a.preventDefault(),this.open()):this.multiple||(b=this.selected,d.onKeydown(a),(a=this.selected)&&b!==a&&this._liveAnnouncer.announce(a.viewValue,1E4))};
h._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=c===40||c===38,e=b.isTyping();if(d&&a.altKey)a.preventDefault(),this.close();else if(e||c!==13&&c!==32||!b.activeItem||Gh(a))if(!e&&this._multiple&&c===65&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(g){return!g.disabled&&!g.selected});this.options.forEach(function(g){g.disabled||(f?g.select():g.deselect())})}else c=b.activeItemIndex,b.onKeydown(a),this._multiple&&d&&a.shiftKey&&b.activeItem&&b.activeItemIndex!==
c&&b.activeItem._selectViaInteraction();else a.preventDefault(),b.activeItem._selectViaInteraction()};h._handleOverlayKeydown=function(a){a.keyCode!==27||Gh(a)||(a.preventDefault(),this.close())};h._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};h._onBlur=function(){this._focused=!1;var a;if((a=this._keyManager)!=null){var b;(b=a._typeahead)==null||b.reset()}this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};
h._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};h._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
h._setSelectionByValue=function(a){var b=this;this.options.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?kz(this._keyManager,a):this.panelOpen||kz(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
h._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return(d.value!=null||b.canSelectNullableOptions)&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};h._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
h._getOverlayWidth=function(a){return this.panelWidth==="auto"?(a instanceof Oz?a.elementRef:a||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth};h._syncParentProperties=function(){if(this.options)for(var a=m(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
h._initKeyManager=function(){var a=this;this._keyManager=VCc(XCc(jz(iz(hz(WCc(new lz(this.options),this.typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")))).skipPredicate(this._skipPredicate);this._keyManager.tabOut.subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||
a.multiple||!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};h._resetOptions=function(){var a=this,b=ve(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Bf(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});ve.apply(null,q(this.options.map(function(c){return c._stateChanges}))).pipe(Bf(b)).subscribe(function(){a._changeDetectorRef.detectChanges();a.stateChanges.next()})};
h._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);this.canSelectNullableOptions||a.value!=null||this._multiple?(c!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),b&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),b&&this.focus())):(a.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
h._sortValues=function(){var a=this;if(this.multiple){var b=this.options.toArray();this._selectionModel.sort(function(c,d){return a.sortComparator?a.sortComparator(c,d,b):b.indexOf(c)-b.indexOf(d)});this.stateChanges.next()}};h._propagateChanges=function(a){var b;this.multiple?b=this.selected.map(function(c){return c.value}):b=this.selected?this.selected.value:a;this._value=b;this.valueChange.emit(b);this._onChange(b);this.selectionChange.emit(this._getChangeEvent(b));this._changeDetectorRef.markForCheck()};
h._highlightCorrectOption=function(){if(this._keyManager)if(this.empty){for(var a=-1,b=0;b<this.options.length;b++)if(!this.options.get(b).disabled){a=b;break}this._keyManager.setActiveItem(a)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])};h._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&((a=this.options)==null?void 0:a.length)>0&&!!this._overlayDir};h.focus=function(a){this._elementRef.nativeElement.focus(a)};
h._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||null;return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};h._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
h._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||"";this.ariaLabelledby&&(b+=" "+this.ariaLabelledby);b||(b=this._valueId);return b};h.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};
h.onContainerClick=function(a){a=Kh(a);var b,c=(b=this._overlayDir.overlayRef)==null?void 0:b.hostElement;a&&c&&c.contains(a)||(this.focus(),this.open())};
da.Object.defineProperties(MH.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:awa(b._rawValidators,wj))!=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}}});MH.\u0275fac=function(a){return new (a||MH)};
MH.\u0275cmp=D({type:MH,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(ig(c,D0c,5),ig(c,cA,5),ig(c,NDc,5));if(a&2){var d;lg(d=mg())&&(b.customTrigger=d.first);lg(d=mg())&&(b.options=d);lg(d=mg())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(hg(y0c,5),hg(z0c,5),hg(Pz,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.panel=c.first);lg(c=mg())&&(b._overlayDir=c.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(a,
b){a&1&&N("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});a&2&&(Kf("id",b.id)("tabindex",b.disabled?-1:b.tabIndex)("aria-controls",b.panelOpen?b.id+"-panel":null)("aria-expanded",b.panelOpen)("aria-label",b.ariaLabel||null)("aria-required",b.required.toString())("aria-disabled",b.disabled.toString())("aria-invalid",b.errorState)("aria-activedescendant",b._getAriaActiveDescendant()),wg("mat-mdc-select-disabled",b.disabled)("mat-mdc-select-invalid",
b.errorState)("mat-mdc-select-required",b.required)("mat-mdc-select-empty",b.empty)("mat-mdc-select-multiple",b.multiple)("mat-select-open",b.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",
$g],placeholder:"placeholder",required:[2,"required","required",$g],multiple:[2,"multiple","multiple",$g],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",$g],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ah],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",
canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",$g]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Gg([{provide:HD,useExisting:MH},{provide:MDc,useExisting:MH}]),bx],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();cg(A0c);K(0,"div",2,0);N("click",function(){u(c);return v(b.open())});K(3,"div",3);F(4,VFa,2,1,"span",4)(5,YFa,3,1,"span",5);L();K(6,"div",6)(7,
"div",7);Ad();K(8,"svg",8);M(9,"path",9);L()()()();E(10,ZFa,3,10,"ng-template",10);N("detach",function(){u(c);return v(b.close())})("backdropClick",function(){u(c);return v(b.close())})("overlayKeydown",function(d){u(c);return v(b._handleOverlayKeydown(d))})}a&2&&(a=qg(1),B(3),Kf("id",b._valueId),B(),G(b.empty?4:5),B(6),I("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",b._preferredOverlayOrigin||
a)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayWidth",b._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0))},dependencies:[Oz,Pz,Dx],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],
encapsulation:2,changeDetection:0});var NH=function(){};NH.\u0275fac=function(a){return new (a||NH)};NH.\u0275dir=df({type:NH,selectors:[["mat-select-trigger"]],features:[Gg([{provide:D0c,useExisting:NH}])]});var OH=function(){};OH.\u0275fac=function(a){return new (a||OH)};OH.\u0275mod=cf({type:OH});OH.\u0275inj=Hc({imports:[Qz,fA,Ey,wz,ND,fA]});var F0c=["matSelect"],PH=function(){this.ve={ChartLegendMenu:68533,ColumnMenuToggle:68546,ChartLegendMenuItem:68534};this.VALUE_COLUMN_UNIQUE_ID=-1;this.TIMESHIFT_COLUMN_UNIQUE_ID=-2;this.selectedColumnsChanged=new Ui;this.columnsModel=[]};PH.prototype.ngOnChanges=function(a){a.labelsModel&&(this.columnsModel=(a=this.labelsModel.selectedColumns)?[-1,-2].concat.apply([-1,-2],q(a.map(function(b){return b.uniqueId}))):[-1,-2])};
PH.prototype.valueChanged=function(a){this.columnsModel=a;var b;this.labelsModel.selectedColumns=((b=this.labelsModel.selectableColumns)==null?void 0:b.filter(function(c){return c.uniqueId&&a.indexOf(c.uniqueId)!==-1}))||[];this.selectedColumnsChanged.emit()};PH.\u0275fac=function(a){return new (a||PH)};
PH.\u0275cmp=D({type:PH,selectors:[["ac-column-selector"]],viewQuery:function(a,b){a&1&&hg(F0c,5);if(a&2){var c;lg(c=mg())&&(b.matSelect=c.first)}},inputs:{labelsModel:"labelsModel",timeshiftName:"timeshiftName",valueName:"valueName"},outputs:{selectedColumnsChanged:"selectedColumnsChanged"},features:[bx],decls:11,vars:10,consts:function(){return[["matSelect",""],["multipleOptions",""]," \ufffd0\ufffd [Required] "," \ufffd0\ufffd [Required] "," \ufffd0\ufffd ",[1,"ac-legend-column-selector-root"],
["multiple","","aria-label","Legend columns","matTooltip","Legend columns","matTooltipClass","ac-mat-tooltip",1,"ac-legend-column-selector-mat-select",3,"valueChange","value","panelClass","ve"],[3,"ve","veClick"],["svgIcon","ac:view_column","aria-label","Open legend columns selector",1,"ac-column-selector-icon"],["disabled","true",3,"value",4,"ngIf"],["disabled","true",3,"value"],[4,"ngIf","ngIfElse"],[3,"value","ve","veClick",4,"ngFor","ngForOf"],[3,"value","ve","veClick"]]},template:function(a,
b){if(a&1){var c=t();K(0,"div",5)(1,"mat-select",6,0);N("valueChange",function(d){u(c);return v(b.valueChanged(d))});K(3,"mat-select-trigger",7);M(4,"mat-icon",8);L();E(5,$Fa,2,2,"mat-option",9);K(6,"mat-option",10);Yf(7,2);L();E(8,aGa,3,2,"ng-container",11)(9,cGa,1,1,"ng-template",null,1,Mg);L()()}a&2&&(a=qg(10),B(),I("value",b.columnsModel)("panelClass","ac-legend-column-selector-panel")("ve",b.ve.ChartLegendMenu),B(2),I("ve",b.ve.ColumnMenuToggle)("veClick",!0),B(2),I("ngIf",b.timeshiftName),B(),
I("value",b.VALUE_COLUMN_UNIQUE_ID),B(),Zf(b.valueName),cna(34),B(),I("ngIf",(b.labelsModel.selectableColumns==null?null:b.labelsModel.selectableColumns.length)===1)("ngIfElse",a))},dependencies:[Dy,cA,MH,NH,iA,Ex,Fx,aD],styles:[".ac-screen-reader-only-content{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within:focus-within,.ac-a11y-focusable:focus-visible,.ac-a11y-focused,.ac-a11y-keyboard-focusable.cdk-keyboard-focused{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable{outline:none}::ng-deep .mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}div.ac-legend-column-selector-root{position:absolute;z-index:1;top:1px;right:8px;height:40px;width:40px}.ac-column-selector-icon{border-radius:50%;-moz-box-sizing:border-box;box-sizing:border-box;height:32px;margin-top:4px;margin-left:4px;padding:4px;width:32px;fill:var(--ac-sys-color-extensions-on-surface,#202124)}.ac-column-selector-icon:hover{background-color:var(--ac-sys-color-extensions-on-surface-hover,#f7f8f8)}.mat-mdc-select.ac-legend-column-selector-mat-select .mat-mdc-select-trigger{width:100%}.mat-mdc-select.ac-legend-column-selector-mat-select .mat-mdc-select-arrow-wrapper{display:none}.mat-mdc-select.ac-legend-column-selector-mat-select:focus-visible{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}div.mat-mdc-select-panel.ac-legend-column-selector-panel{max-width:448px;min-width:156px;position:absolute;right:1px;background-color:var(--ac-sys-color-extensions-surface,#fff)}div.mat-mdc-select-panel.ac-legend-column-selector-panel mat-option.mat-mdc-option{height:28px}\n/*# sourceMappingURL=ac_column_selector_style.css.map */"],
encapsulation:2,changeDetection:0});var G0c=function(a,b,c){this.baseKey=a;this.defaultValue=b;this.inputKeys=c},H0c=function(a,b,c){this._options=a;this._mediaMonitor=b;this._onMediaChanges=c;this._subscribers=[];this._registryMap=this._buildRegistryMap();this._subscribers=this._configureChangeObservers()};h=H0c.prototype;h.hasKeyValue=function(a){return typeof this._options.inputKeys[a]!=="undefined"};h.destroy=function(){this._subscribers.forEach(function(a){a.unsubscribe()});this._subscribers=[]};
h._configureChangeObservers=function(){var a=this,b=[];this._registryMap.forEach(function(c){a._keyInUse(c.key)&&b.push(a.mediaMonitor.observe(c.alias).pipe(A(function(d){d=d.clone();d.property=a._options.baseKey;return d})).subscribe(function(d){a._onMonitorEvents(d)}))});return b};h._buildRegistryMap=function(){var a=this;return this.mediaMonitor.breakpoints.map(function(b){return Gl({},b,{baseKey:a._options.baseKey,key:a._options.baseKey+b.suffix})}).filter(function(b){return a._keyInUse(b.key)})};
h._onMonitorEvents=function(a){a.property==this._options.baseKey&&(a.value=this._calculateActivatedValue(a),this._onMediaChanges(a))};h._keyInUse=function(a){return this._lookupKeyValue(a)!==void 0};h._calculateActivatedValue=function(a){var b=this._options.baseKey+a.suffix,c=this._activatedInputKey;c=a.matches?b:c==b?null:c;this._activatedInputKey=this._validateInputKey(c);return this.activatedInput};
h._validateInputKey=function(a){var b=this,c=this.mediaMonitor.activeOverlaps;!b._keyInUse(a)&&c.some(function(d){d=b._options.baseKey+d.suffix;return b._keyInUse(d)?(a=d,!0):!1});return a};h._lookupKeyValue=function(a){return this._options.inputKeys[a]};
da.Object.defineProperties(H0c.prototype,{mediaMonitor:{configurable:!0,enumerable:!0,get:function(){return this._mediaMonitor}},activatedInputKey:{configurable:!0,enumerable:!0,get:function(){return this._activatedInputKey||this._options.baseKey}},activatedInput:{configurable:!0,enumerable:!0,get:function(){var a=this.activatedInputKey;return this.hasKeyValue(a)?this._lookupKeyValue(a):this._options.defaultValue}}});var I0c=new fd("Token (@angular/flex-layout) Breakpoints");var QH=function(a){this._registry=a},J0c=function(a,b){return a._registry.find(function(c){return c.alias==b})},K0c=function(a,b){return a._registry.find(function(c){return c.mediaQuery==b})};
da.Object.defineProperties(QH.prototype,{items:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._registry))}},sortedItems:{configurable:!0,enumerable:!0,get:function(){var a=this._registry.filter(function(c){return c.overlapping===!0}),b=this._registry.filter(function(c){return c.overlapping!==!0});return[].concat(q(a),q(b))}},overlappings:{configurable:!0,enumerable:!0,get:function(){return this._registry.filter(function(a){return a.overlapping==1})}},aliases:{configurable:!0,
enumerable:!0,get:function(){return this._registry.map(function(a){return a.alias})}},suffixes:{configurable:!0,enumerable:!0,get:function(){return this._registry.map(function(a){return a.suffix})}}});QH.\u0275fac=function(a){return new (a||QH)($c(I0c))};QH.\u0275prov=Fc({token:QH,factory:QH.\u0275fac});var L0c=function(a,b,c,d){this.matches=a===void 0?!1:a;this.mediaQuery=b===void 0?"all":b;this.mqAlias=c===void 0?"":c;this.suffix=d===void 0?"":d};L0c.prototype.clone=function(){return new L0c(this.matches,this.mediaQuery,this.mqAlias,this.suffix)};var RH=function(a,b){this._zone=a;this._document=b;this._registry=new Map;this._source=new Nj(new L0c(!0));this._observable$=this._source.asObservable()};RH.prototype.isActive=function(a){return this._registry.has(a)?this._registry.get(a).matches:!1};RH.prototype.observe=function(a){M0c(this,a);return this._observable$.pipe(we(function(b){return a?b.mediaQuery===a:!0}))};
var M0c=function(a,b){b=typeof b==="undefined"?[]:typeof b==="string"?[b]:gGa(b);b.length>0&&(fGa(b,a._document),b.forEach(function(c){var d=a._registry.get(c),e=function(f){a._zone.run(function(){a._source.next(new L0c(f.matches,c))})};d||(d=a._buildMQL(c),d.addListener(e),a._registry.set(c,d));d.matches&&e(d)}))};RH.prototype._buildMQL=function(a){return dGa()&&window.matchMedia("all").addListener?window.matchMedia(a):{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}};
RH.\u0275fac=function(a){return new (a||RH)($c(Rg),$c(Sh))};RH.\u0275prov=Fc({token:RH,factory:RH.\u0275fac});var eGa={};var SH=function(a,b){this._breakpoints=a;this._matchMedia=b;this._registerBreakpoints()};SH.prototype.isActive=function(a){var b=J0c(this._breakpoints,a)||K0c(this._breakpoints,a);return this._matchMedia.isActive(b?b.mediaQuery:a)};SH.prototype.observe=function(a){var b=J0c(this._breakpoints,a)||K0c(this._breakpoints,a);return this._matchMedia.observe(b?b.mediaQuery:a).pipe(A(function(c){return hGa(c,b)}),we(function(c){return b?c.mqAlias!=="":!0}))};
SH.prototype._registerBreakpoints=function(){var a=this._breakpoints.sortedItems.map(function(b){return b.mediaQuery});M0c(this._matchMedia,a)};
da.Object.defineProperties(SH.prototype,{breakpoints:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._breakpoints.items))}},activeOverlaps:{configurable:!0,enumerable:!0,get:function(){var a=this;return this._breakpoints.overlappings.reverse().filter(function(b){return a._matchMedia.isActive(b.mediaQuery)})}},active:{configurable:!0,enumerable:!0,get:function(){var a=this,b=null;this.breakpoints.reverse().forEach(function(d){d.alias!==""&&!b&&a._matchMedia.isActive(d.mediaQuery)&&
(b=d)});var c=this.breakpoints[0];return b||(this._matchMedia.isActive(c.mediaQuery)?c:null)}}});SH.\u0275fac=function(a){return new (a||SH)($c(QH),$c(RH))};SH.\u0275prov=Fc({token:SH,factory:SH.\u0275fac});var kGa=["row","column","row-reverse","column-reverse"];var TH=function(a,b,c){this._mediaMonitor=a;this._elementRef=b;this._renderer=c;this._inputMap={};this._hasInitialized=!1};h=TH.prototype;h._queryInput=function(a){return this._inputMap[a]};h.ngOnInit=function(){this._display=this._getDisplayStyle();this._hasInitialized=!0};h.ngOnChanges=function(a){throw Error("Hc`"+a);};h.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy();this._mediaMonitor=null};
h._getDefaultVal=function(a,b){a=this._queryInput(a);return a!==void 0&&a!==null&&a!==""?a:b};h._getDisplayStyle=function(a){a=a===void 0?this.nativeElement:a;return rGa(a||this.nativeElement,"display")};h._getAttributeValue=function(a,b){b=(b=b===void 0?this.nativeElement:b)||this.nativeElement;return oGa()?b.getAttribute(a):""};
h._getFlowDirection=function(a,b){b=b===void 0?!1:b;var c="row";a&&(c=rGa(a,"flex-direction")||"row",oGa()&&a.style["flex-direction"]||!b||qGa(this._renderer,jGa(c),[a]));return c.trim()};h._applyStyleToElement=function(a,b,c){c=c===void 0?this.nativeElement:c;var d=this._renderer;c=c||this.nativeElement;var e={};typeof a==="string"&&(e[a]=b,a=e);e=nGa(a);pGa(e,c,d)};h._applyStyleToElements=function(a,b){qGa(this._renderer,a,b||[])};
h._cacheInput=function(a,b){if(typeof b==="object")for(var c in b)this._inputMap[c]=b[c];else this._inputMap[a]=b};h._listenForMediaQueryChanges=function(a,b,c){this._mqActivation||(this._mqActivation=new H0c(new G0c(a,b,this._inputMap),this._mediaMonitor,function(d){return c(d)}));return this._mqActivation};h.hasKeyValue=function(a){return this._mqActivation.hasKeyValue(a)};
da.Object.defineProperties(TH.prototype,{parentElement:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement.parentNode}},nativeElement:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement}},hasInitialized:{configurable:!0,enumerable:!0,get:function(){return this._hasInitialized}}});TH.\u0275fac=function(a){return new (a||TH)(Ye(SH),Ye(Jd),Ye(di))};TH.\u0275dir=df({type:TH,features:[bx]});var UH=function(a,b,c){TH.call(this,a,b,c);this._announcer=new Nj("row");this.layout$=this._announcer.asObservable()};Y(UH,TH);UH.prototype.ngOnChanges=function(a){(a.layout!=null||this._mqActivation)&&this._updateWithDirection()};UH.prototype.ngOnInit=function(){var a=this;TH.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("layout","row",function(b){a._updateWithDirection(b.value)});this._updateWithDirection()};
UH.prototype._updateWithDirection=function(a){a=a||this._queryInput("layout")||"row";this._mqActivation&&(a=this._mqActivation.activatedInput);a=jGa(a);this._applyStyleToElement(a);this._announcer.next(a["flex-direction"])};
da.Object.defineProperties(UH.prototype,{layout:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layout",a)}},layoutXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutXs",a)}},layoutSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutSm",a)}},layoutMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutMd",a)}},layoutLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLg",a)}},layoutXl:{configurable:!0,
enumerable:!0,set:function(a){this._cacheInput("layoutXl",a)}},layoutGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtXs",a)}},layoutGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtSm",a)}},layoutGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtMd",a)}},layoutGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtLg",a)}},layoutLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtSm",
a)}},layoutLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtMd",a)}},layoutLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtLg",a)}},layoutLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtXl",a)}}});UH.\u0275fac=function(a){return new (a||UH)(Ye(SH),Ye(Jd),Ye(di))};
UH.\u0275dir=df({type:UH,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{layout:[0,"fxLayout","layout"],layoutXs:[0,"fxLayout.xs","layoutXs"],layoutSm:[0,"fxLayout.sm","layoutSm"],layoutMd:[0,"fxLayout.md",
"layoutMd"],layoutLg:[0,"fxLayout.lg","layoutLg"],layoutXl:[0,"fxLayout.xl","layoutXl"],layoutGtXs:[0,"fxLayout.gt-xs","layoutGtXs"],layoutGtSm:[0,"fxLayout.gt-sm","layoutGtSm"],layoutGtMd:[0,"fxLayout.gt-md","layoutGtMd"],layoutGtLg:[0,"fxLayout.gt-lg","layoutGtLg"],layoutLtSm:[0,"fxLayout.lt-sm","layoutLtSm"],layoutLtMd:[0,"fxLayout.lt-md","layoutLtMd"],layoutLtLg:[0,"fxLayout.lt-lg","layoutLtLg"],layoutLtXl:[0,"fxLayout.lt-xl","layoutLtXl"]},standalone:!1,features:[Gf,bx]});var VH=function(a,b,c,d){TH.call(this,a,b,c);this._layout="row";d&&(this._layoutWatcher=d.layout$.subscribe(this._onLayoutChange.bind(this)))};Y(VH,TH);h=VH.prototype;h.ngOnChanges=function(a){(a.wrap!=null||this._mqActivation)&&this._updateWithValue()};h.ngOnInit=function(){var a=this;TH.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("wrap","wrap",function(b){a._updateWithValue(b.value)});this._updateWithValue()};
h.ngOnDestroy=function(){TH.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){var b=this;this._layout=(a||"").toLowerCase().replace("-reverse","");kGa.find(function(c){return c===b._layout})||(this._layout="row");this._updateWithValue()};h._updateWithValue=function(a){a=a||this._queryInput("wrap");this._mqActivation&&(a=this._mqActivation.activatedInput);a=lGa(a||"wrap");this._applyStyleToElement(this._buildCSS(a))};
h._buildCSS=function(a){return{display:"flex","flex-wrap":a,"flex-direction":this.flowDirection}};
da.Object.defineProperties(VH.prototype,{wrap:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrap",a)}},wrapXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapXs",a)}},wrapSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapSm",a)}},wrapMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapMd",a)}},wrapLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLg",a)}},wrapXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapXl",
a)}},wrapGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtXs",a)}},wrapGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtSm",a)}},wrapGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtMd",a)}},wrapGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtLg",a)}},wrapLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtSm",a)}},wrapLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtMd",
a)}},wrapLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtLg",a)}},wrapLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtXl",a)}},flowDirection:{configurable:!0,enumerable:!0,get:function(){return this._layoutWatcher?this._layout:this._getFlowDirection(this.nativeElement)}}});VH.\u0275fac=function(a){return new (a||VH)(Ye(SH),Ye(Jd),Ye(di),Ye(UH,10))};
VH.\u0275dir=df({type:VH,selectors:[["","fxLayoutWrap",""],["","fxLayoutWrap.xs",""],["","fxLayoutWrap.sm",""],["","fxLayoutWrap.lg",""],["","fxLayoutWrap.xl",""],["","fxLayoutWrap.gt-xs",""],["","fxLayoutWrap.gt-sm",""],["","fxLayoutWrap.gt-md",""],["","fxLayoutWrap.gt-lg",""],["","fxLayoutWrap.lt-xs",""],["","fxLayoutWrap.lt-sm",""],["","fxLayoutWrap.lt-md",""],["","fxLayoutWrap.lt-lg",""]],inputs:{wrap:[0,"fxLayoutWrap","wrap"],wrapXs:[0,"fxLayoutWrap.xs","wrapXs"],wrapSm:[0,"fxLayoutWrap.sm",
"wrapSm"],wrapMd:[0,"fxLayoutWrap.md","wrapMd"],wrapLg:[0,"fxLayoutWrap.lg","wrapLg"],wrapXl:[0,"fxLayoutWrap.xl","wrapXl"],wrapGtXs:[0,"fxLayoutWrap.gt-xs","wrapGtXs"],wrapGtSm:[0,"fxLayoutWrap.gt-sm","wrapGtSm"],wrapGtMd:[0,"fxLayoutWrap.gt-md","wrapGtMd"],wrapGtLg:[0,"fxLayoutWrap.gt-lg","wrapGtLg"],wrapLtSm:[0,"fxLayoutWrap.lt-sm","wrapLtSm"],wrapLtMd:[0,"fxLayoutWrap.lt-md","wrapLtMd"],wrapLtLg:[0,"fxLayoutWrap.lt-lg","wrapLtLg"],wrapLtXl:[0,"fxLayoutWrap.lt-xl","wrapLtXl"]},standalone:!1,features:[Gf,
bx]});var WH=function(a,b,c,d,e){TH.call(this,a,b,c);var f=this;this._container=d;this._wrap=e;this._layout="row";this._cacheInput("flex","");this._cacheInput("shrink",1);this._cacheInput("grow",1);d&&(this._layoutWatcher=d.layout$.subscribe(function(g){f._onLayoutChange(g)}))};Y(WH,TH);h=WH.prototype;h.ngOnChanges=function(a){(a.flex!=null||this._mqActivation)&&this._updateStyle()};
h.ngOnInit=function(){var a=this;TH.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("flex","",function(b){a._updateStyle(b.value)});this._updateStyle()};h.ngOnDestroy=function(){TH.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){this._layout=a||this._layout||"row";this._updateStyle()};
h._updateStyle=function(a){a=a||this._queryInput("flex")||"";this._mqActivation&&(a=this._mqActivation.activatedInput);a=String(a).replace(";","");var b=this._queryInput("grow"),c=this._queryInput("shrink");b=b===void 0?"1":b;c=c===void 0?"1":c;var d=[b,c,a],e=a.indexOf("calc");e>0?(d[2]=sGa(a.substring(e).trim()),a=a.substr(0,e).trim().split(" "),a.length==2&&(d[0]=a[0],d[1]=a[1])):e==0?d[2]=sGa(a.trim()):(d=a.split(" "),d=d.length===3?d:[b,c,a]);this._applyStyleToElement(this._validateValue.apply(this,
d))};
h._validateValue=function(a,b,c){var d=this._getFlowDirection(this.parentElement,!0).indexOf("column")>-1?"column":"row";a=a=="0"?0:a;b=b=="0"?0:b;var e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(c||""){case "":e=Gl(e,{flex:"1 1 0.000000001px"});break;case "initial":case "nogrow":a=0;e=Gl(e,{flex:"0 1 auto"});break;case "grow":e=Gl(e,{flex:"1 1 100%"});break;case "noshrink":b=0;e=Gl(e,{flex:"1 0 auto"});break;case "auto":e=Gl(e,{flex:a+" "+b+" auto"});break;case "none":b=
a=0;e=Gl(e,{flex:"0 0 auto"});break;default:var f=String(c).indexOf("calc")>-1;var g=String(c).indexOf("%")>-1&&!f;(f=f||String(c).indexOf("px")>-1||String(c).indexOf("em")>-1||String(c).indexOf("vw")>-1||String(c).indexOf("vh")>-1)||g||isNaN(c)||(c+="%");c==="0px"&&(c="0%");e=Gl(e,{flex:a+" "+b+" "+(f||this._wrap?c:"100%")})}g=mGa(d)?"max-width":"max-height";d=mGa(d)?"min-width":"min-height";f=String(c).indexOf("calc")>-1||c=="auto";var k=String(c).indexOf("px")>-1||f,l=!a&&!b;e[d]=c=="0%"?0:l||
k&&a?c:null;e[g]=c=="0%"?0:l||!f&&b?c:null;return Gl(e,{"box-sizing":"border-box"})};
da.Object.defineProperties(WH.prototype,{shrink:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("shrink",a)}},grow:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("grow",a)}},flex:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flex",a)}},flexXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexXs",a)}},flexSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexSm",a)}},flexMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexMd",
a)}},flexLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLg",a)}},flexXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexXl",a)}},flexGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtXs",a)}},flexGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtSm",a)}},flexGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtMd",a)}},flexGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtLg",
a)}},flexLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtSm",a)}},flexLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtMd",a)}},flexLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtLg",a)}},flexLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtXl",a)}}});WH.\u0275fac=function(a){return new (a||WH)(Ye(SH),Ye(Jd),Ye(di),Ye(UH,12),Ye(VH,12))};
WH.\u0275dir=df({type:WH,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""],[""]],inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"],flex:[0,"fxFlex","flex"],flexXs:[0,"fxFlex.xs","flexXs"],flexSm:[0,"fxFlex.sm","flexSm"],flexMd:[0,
"fxFlex.md","flexMd"],flexLg:[0,"fxFlex.lg","flexLg"],flexXl:[0,"fxFlex.xl","flexXl"],flexGtXs:[0,"fxFlex.gt-xs","flexGtXs"],flexGtSm:[0,"fxFlex.gt-sm","flexGtSm"],flexGtMd:[0,"fxFlex.gt-md","flexGtMd"],flexGtLg:[0,"fxFlex.gt-lg","flexGtLg"],flexLtSm:[0,"fxFlex.lt-sm","flexLtSm"],flexLtMd:[0,"fxFlex.lt-md","flexLtMd"],flexLtLg:[0,"fxFlex.lt-lg","flexLtLg"],flexLtXl:[0,"fxFlex.lt-xl","flexLtXl"]},standalone:!1,features:[Gf,bx]});var uGa=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},
{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1920px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}];var vGa=/(\.|-|_)/g;var N0c={provide:I0c,useFactory:function(){return wGa()}};var O0c=function(){},XH=function(a,b){this.breakpoints=a;this.mediaWatcher=b;this._registerBreakPoints();this.observable$=this._buildObservable()};h=XH.prototype;h.isActive=function(a){a=this._toMediaQuery(a);return this.mediaWatcher.isActive(a)};h.subscribe=function(a,b,c){return this.observable$.subscribe(a,b,c)};h.asObservable=function(){return this.observable$};h._registerBreakPoints=function(){var a=this.breakpoints.sortedItems.map(function(b){return b.mediaQuery});M0c(this.mediaWatcher,a)};
h._buildObservable=function(){var a=this;return this.mediaWatcher.observe().pipe(we(function(b){return b.matches===!0}),we(function(b){return(b=K0c(a.breakpoints,b.mediaQuery))?!b.overlapping:!0}),A(function(b){return hGa(b,a._findByQuery(b.mediaQuery))}))};h._findByAlias=function(a){return J0c(this.breakpoints,a)};h._findByQuery=function(a){return K0c(this.breakpoints,a)};h._toMediaQuery=function(a){var b=this._findByAlias(a)||this._findByQuery(a);return b?b.mediaQuery:a};
XH.\u0275fac=function(a){return new (a||XH)($c(QH),$c(RH))};XH.\u0275prov=Fc({token:XH,factory:XH.\u0275fac});var P0c={provide:O0c,deps:[[new azc,new bzc,O0c],RH,QH],useFactory:function(a,b,c){return a||new XH(c,b)}};var YH=function(){};YH.\u0275fac=function(a){return new (a||YH)};YH.\u0275mod=cf({type:YH});YH.\u0275inj=Hc({providers:[N0c,QH,RH,SH,P0c]});var Q0c={provide:SH,deps:[[new azc,new bzc,SH],QH,RH],useFactory:function(a,b,c){return a||new SH(b,c)}};var ZH=function(){};ZH.\u0275fac=function(a){return new (a||ZH)};ZH.\u0275mod=cf({type:ZH});ZH.\u0275inj=Hc({providers:[Q0c,N0c,P0c],imports:[YH,Ey,YH]});var R0c=["valueHeader"],WGa=function(a){return{transform:a}},QGa=function(a,b){return{transform:a,width:b}},xGa=function(a){return{hidden:a}},S0c={category:"",id:null,direction:null},$H=function(a,b,c){this.focusMonitor=a;this.ngZone=b;this.cdr=c;this.columnKeys=[];this.valueColumnWidth=80;this.statsModeSummaryColumnLabel="";this.xAxisPinEnabled=!0;this.defaultSortingColumn="";this.defaultSortingDirection=null;this.streamActions=[];this.sortFunc=new Ui;this.setAndSnapXAxisPin=new Ui;this.currentSortColumn=
S0c;this.hoveredColumn=null;this.ve={ColumnSortButton:68547};this.sortBySelectedTooltip="Sort by selected";this.streamActionsMenuTooltip="Actions";this.isXAxisPinSet=!0;this.prevSortColumn=S0c;this.destroyed=new sf};$H.prototype.ngAfterViewInit=function(){var a=this;this.focusMonitor.monitor(this.valueHeader,!0).pipe(Bf(this.destroyed)).subscribe(function(){a.ngZone.run(function(){a.cdr.markForCheck()})})};
$H.prototype.ngOnInit=function(){var a=this;this.defaultSortingColumn==="VALUE"&&(T0c(this,this.defaultSortingColumn,1E3,this.defaultSortingDirection),EGa(this));this.xAxisPinEnabled&&this.xAxisPinUpdated&&this.xAxisPinUpdated.pipe(Bf(this.destroyed)).subscribe(function(b){b[0]&&b[1]?(a.isXAxisPinSet||T0c(a,"VALUE",1E3,-1),a.isXAxisPinSet=!0):(a.currentSortColumn=Object.assign({},a.prevSortColumn),a.isXAxisPinSet=!1);U0c(a)})};$H.prototype.ngOnDestroy=function(){this.destroyed.next()};
var EGa=function(a){a.prevSortColumn=Object.assign({},a.currentSortColumn)},U0c=function(a){if(a.currentSortColumn.id)switch(a.currentSortColumn.category){case "MAIN":a.sortFunc.emit(YDa(a.currentSortColumn.direction));break;case "LABEL":var b=0;a.labelsModel.selectedColumns&&a.labelsModel.selectedColumns.forEach(function(c,d){a.currentSortColumn.id!==null&&c.uniqueId===a.currentSortColumn.id-10&&(b=d)});a.sortFunc.emit(ZDa(b,a.currentSortColumn.direction));break;case "VALUE":a.sortFunc.emit($Da(a.currentSortColumn.direction));
break;case "IS_SELECTED":a.sortFunc.emit(aEa(a.currentSortColumn.direction))}else a.sortFunc.emit(YDa(a.currentSortColumn.direction))},DGa=function(a,b,c){if(a.currentSortColumn.id===c){a:switch(a.currentSortColumn.direction){case null:case 1:b=-1;break a;case -1:b=1;break a;default:b=null}a.currentSortColumn=Object.assign({},a.currentSortColumn,{direction:b});a.currentSortColumn.direction===null&&(a.currentSortColumn=Object.assign({},a.currentSortColumn,{id:0}))}else T0c(a,b,c,-1);U0c(a)},T0c=function(a,
b,c,d){a.currentSortColumn={category:b,id:c,direction:d};U0c(a)},V0c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)>0},W0c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)<0};$H.prototype.getColIndexOffset=function(){var a,b=(a=this.labelsModel.labelHeaders)==null?void 0:a.length;return b?b-1:0};$H.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};
$H.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshiftName&&(a+=1);return a+this.getColIndexOffset()};$H.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshiftName&&(a+=1);this.statsModeSummaryColumnLabel&&(a+=1);return a+this.getColIndexOffset()};
var KGa=function(a,b){return MGa(a,b)?"ascending":NGa(a,b)?"descending":"none"},LGa=function(a,b){return MGa(a,b)?"Sort in descending order.":NGa(a,b)?"Sort in ascending order.":"Sort in descending order."},MGa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)>0},NGa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)<0},X0c=function(a){return a.currentSortColumn.id===1E3&&(a.currentSortColumn.direction||0)>0},Y0c=function(a){return a.currentSortColumn.id===
1E3&&(a.currentSortColumn.direction||0)<0};$H.\u0275fac=function(a){return new (a||$H)(Ye(Hy),Ye(Rg),Ye(ux))};
$H.\u0275cmp=D({type:$H,selectors:[["ac-table-legend-header"]],viewQuery:function(a,b){a&1&&hg(R0c,5);if(a&2){var c;lg(c=mg())&&(b.valueHeader=c.first)}},inputs:{columnKeys:"columnKeys",xAxisPinUpdated:"xAxisPinUpdated",valueName:"valueName",valueColumnWidth:"valueColumnWidth",timeshiftName:"timeshiftName",statsModeSummaryColumnLabel:"statsModeSummaryColumnLabel",columnFlexWidth:"columnFlexWidth",scale:"scale",labelsModel:"labelsModel",scrollLeft:"scrollLeft",widthDifference:"widthDifference",xAxisPinEnabled:"xAxisPinEnabled",
defaultSortingColumn:"defaultSortingColumn",defaultSortingDirection:"defaultSortingDirection",streamActions:"streamActions"},outputs:{sortFunc:"sortFunc",setAndSnapXAxisPin:"setAndSnapXAxisPin"},decls:24,vars:35,consts:[["valueHeader",""],["fxLayout","row","role","presentation"],["role","columnheader","aria-colindex","1","aria-colspan","2",1,"ac-combined-chip-and-is-selected-container",3,"ngStyle"],["type","button","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-checkbox-header",
"sortable-column",3,"click","mouseenter","mouseleave","ve","veClick","matTooltip"],[1,"ac-table-legend-checkbox-header-container"],["class","icon sort-icon hovered-icon","svgIcon","ac:keyboard_arrow_down",3,"ngClass",4,"ngIf"],["class","icon sort-icon checkbox-sort-icon","svgIcon","ac:keyboard_arrow_up",4,"ngIf"],["class","icon sort-icon checkbox-sort-icon","svgIcon","ac:keyboard_arrow_down",4,"ngIf"],["svgIcon","ac:selected_series",1,"icon","checkbox-header-icon"],["aria-colindex","2","role","columnheader",
"class","ac-table-legend-label-header-column-keys","fxFlex","100",4,"ngIf"],["fxFlex","100","role","presentation",1,"ac-legend-key"],[4,"ngIf"],["class","ac-table-legend-header ac-table-legend-value-header ac-table-value-column legend-table-cell timeshift-value ac-a11y-keyboard-focusable","role","columnheader","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["class","ac-table-legend-header ac-table-legend-value-header ac-table-value-column legend-table-cell stats-mode-summary-value ac-a11y-keyboard-focusable",
"role","columnheader","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["role","columnheader",1,"ac-legend-key","ac-table-value-column","current-value","sortable-column","Value","ac-a11y-keyboard-focusable",3,"ngStyle"],["fxFlex","100",1,"ac-table-legend-header","ac-table-legend-value-header","legend-table-cell",3,"mouseenter","mouseleave","click","ngClass","ve","veClick"],[1,"sort-by-value-trigger"],["class","icon sort-icon","svgIcon","ac:keyboard_arrow_up",4,"ngIf"],
["class","icon sort-icon","svgIcon","ac:keyboard_arrow_down",4,"ngIf"],["matTooltipClass","ac-mat-tooltip",3,"matTooltip"],["class","ac-table-options-column legend-table-cell last table-options","role","none",3,"ngStyle",4,"ngIf"],["class","ac-table-options-column legend-table-cell last table-options","role","columnheader",3,"ngStyle",4,"ngIf"],["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon","hovered-icon",3,"ngClass"],["svgIcon","ac:keyboard_arrow_up",1,"icon","sort-icon","checkbox-sort-icon"],
["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon","checkbox-sort-icon"],["aria-colindex","2","role","columnheader","fxFlex","100",1,"ac-table-legend-label-header-column-keys"],["matTooltipClass","ac-mat-tooltip",3,"class","fxFlex","matTooltip","click",4,"ngFor","ngForOf"],["matTooltipClass","ac-mat-tooltip",3,"click","fxFlex","matTooltip"],["svgIcon","ac:keyboard_arrow_up",1,"icon","sort-icon"],["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon"],["role","columnheader",3,"fxFlex","class",
4,"ngFor","ngForOf"],["role","columnheader",3,"fxFlex"],["matTooltipClass","ac-mat-tooltip",1,"legend-table-cell","ac-table-legend-header","ac-table-legend-label-header",3,"mouseenter","mouseleave","click","ve","veClick","matTooltip"],["role","columnheader","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-value-header","ac-table-value-column","legend-table-cell","timeshift-value","ac-a11y-keyboard-focusable",3,"matTooltip","ngStyle","ngClass"],["role","columnheader",
"matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-value-header","ac-table-value-column","legend-table-cell","stats-mode-summary-value","ac-a11y-keyboard-focusable",3,"matTooltip","ngStyle","ngClass"],["role","none",1,"ac-table-options-column","legend-table-cell","last","table-options",3,"ngStyle"],["role","columnheader",1,"ac-table-options-column","legend-table-cell","last","table-options",3,"ngStyle"],[1,"ac-screen-reader-only-content"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);DGa(b,"IS_SELECTED",2);EGa(b);return v()})("mouseenter",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=2);return v()})("mouseleave",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=null);return v()});K(3,"span",4);E(4,yGa,1,3,"mat-icon",5)(5,zGa,1,0,"mat-icon",6)(6,AGa,1,0,"mat-icon",7);M(7,"mat-icon",8);L()()();E(8,GGa,2,1,"div",9);K(9,"div",10);E(10,PGa,2,1,"ng-container",11);L();E(11,RGa,2,10,"span",12)(12,SGa,2,10,"span",
13);K(13,"div",14)(14,"button",15,0);N("mouseenter",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=1E3);return v()})("mouseleave",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=null);return v()})("click",function(){u(c);b.xAxisPinEnabled&&(b.isXAxisPinSet?DGa(b,"VALUE",1E3):b.setAndSnapXAxisPin.emit());return v()});K(16,"span",16);E(17,TGa,1,3,"mat-icon",5)(18,UGa,1,0,"mat-icon",17)(19,VGa,1,0,"mat-icon",18);K(20,"span",19);Q(21);L()()()();E(22,XGa,1,3,"span",20)(23,YGa,3,4,"span",21);L()}a&
2&&(B(),I("ngStyle",Ig(30,WGa,"translateX("+b.scrollLeft+"px)")),Kf("aria-sort",V0c(b)?"ascending":W0c(b)?"descending":"none"),B(),I("ve",b.ve.ColumnSortButton)("veClick",!0)("matTooltip",b.sortBySelectedTooltip),Kf("aria-label",b.sortBySelectedTooltip)("title",V0c(b)?"Sort in descending order.":W0c(b)?"Sort in ascending order.":"Sort in descending order."),B(2),I("ngIf",!(V0c(b)||W0c(b))),B(),I("ngIf",V0c(b)),B(),I("ngIf",W0c(b)),B(2),I("ngIf",!(b.labelsModel==null?0:b.labelsModel.labelHeaders==
null?0:b.labelsModel.labelHeaders.length)),B(2),I("ngIf",b.labelsModel&&b.labelsModel.labelPercents&&b.labelsModel.selectedColumns),B(),I("ngIf",b.timeshiftName),B(),I("ngIf",b.statsModeSummaryColumnLabel),B(),I("ngStyle",Jg(32,QGa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px")),Kf("aria-sort",X0c(b)?"ascending":Y0c(b)?"descending":"none")("aria-colindex",b.getColIndexOffsetForValue()),B(),I("ngClass",!b.timeshiftName&&!b.statsModeSummaryColumnLabel&&b.scale>100?
"leftmost-frozen":"")("ve",b.ve.ColumnSortButton)("veClick",!0),Kf("title",X0c(b)?"Sort in descending order.":"Sort in ascending order."),B(3),I("ngIf",!(X0c(b)||Y0c(b))),B(),I("ngIf",X0c(b)),B(),I("ngIf",Y0c(b)),B(),I("matTooltip",Dg(b.valueName)),Kf("aria-label",b.valueName),B(),yg(b.valueName),B(),I("ngIf",b.streamActions.length===0),B(),I("ngIf",b.streamActions.length>0))},dependencies:[ZH,UH,WH,Dy,iA,Dx,Ex,Fx,Jx,aD],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}  .mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}button.ac-table-legend-header[_ngcontent-%COMP%], span.ac-table-legend-header[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;background:none;font-family:inherit;font-size:100%;font-style:inherit;font-weight:700;-moz-box-sizing:border-box;box-sizing:border-box}button.ac-table-legend-header[_ngcontent-%COMP%]{border:3px solid transparent}button.ac-table-legend-header[_ngcontent-%COMP%]:focus-visible{border:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6)}button.ac-table-legend-label-header[_ngcontent-%COMP%]{padding-left:1px;padding-right:5px;text-align:left}button.ac-table-legend-checkbox-header[_ngcontent-%COMP%]{padding-left:0;padding-right:0;margin-right:-3px}.checkbox-header-text[_ngcontent-%COMP%]{padding-left:4px}button.ac-table-legend-value-header[_ngcontent-%COMP%]{padding-right:5px;text-align:right}.ac-table-options-column[_ngcontent-%COMP%]{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:40px}.ac-table-value-column[_ngcontent-%COMP%]{display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;text-align:right;background:var(--ac-sys-color-extensions-surface,#fff)}.sortable-column[_ngcontent-%COMP%]{cursor:pointer}.sort-icon[_ngcontent-%COMP%]{vertical-align:middle;visibility:visible;width:18px}.sort-icon.hidden[_ngcontent-%COMP%]{overflow:hidden;visibility:hidden}.sort-icon.hovered-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant,#5f6368)}.checkbox-header-icon[_ngcontent-%COMP%]{vertical-align:middle;visibility:visible;width:18px}.ac-table-legend-checkbox-header[_ngcontent-%COMP%]{-webkit-box-flex:100%;-webkit-flex:100%;-moz-box-flex:100%;-ms-flex:100%;flex:100%;text-align:right;padding-left:12px;padding-right:5px}\n/*# sourceMappingURL=ac_table_legend_header_style.css.map */",
".ac-chip-absolute-background[_ngcontent-%COMP%], .ac-chip-static-container[_ngcontent-%COMP%], .ac-is-selected-container[_ngcontent-%COMP%], .ac-table-legend-options.legend-table-cell[_ngcontent-%COMP%], .ac-table-legend-value.legend-table-cell[_ngcontent-%COMP%], .ac-table-options-column.legend-table-cell[_ngcontent-%COMP%], .ac-table-value-column.legend-table-cell[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff)}.ac-chip-absolute-background[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;height:12px;line-height:42px;padding:15px 8px 15px 24px;position:absolute;width:12px}.ac-chip-relative-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;line-height:42px;position:relative}.ac-chip-static-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:50px}.ac-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.ac-legend-key[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-table-legend-chip[_ngcontent-%COMP%]{border-radius:50px;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;height:12px;line-height:42px;margin:15px 8px 15px 24px;position:absolute;width:12px}.ac-table-legend-chip.ac-chip-position-static[_ngcontent-%COMP%]{position:static}.legend-table-cell[_ngcontent-%COMP%]{height:42px;padding-left:4px;padding-right:8px}.legend-table-cell[_ngcontent-%COMP%]   .current-value[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;padding:0 8px 0 0}.legend-table-cell.leftmost-frozen[_ngcontent-%COMP%]{border-left:1px solid var(--ac-sys-color-extensions-hairline,#dadce0);padding-left:8px}.legend-table-cell.last[_ngcontent-%COMP%]{padding-right:0}.ac-combined-chip-and-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;width:72px}\n/*# sourceMappingURL=ac_table_legend_header_and_row_style.css.map */"],
changeDetection:0});var Z0c={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},$0c=new fd("mat-checkbox-default-options",{providedIn:"root",factory:function(){return Z0c}});var a1c=["input"],b1c=["label"],c1c=function(){},aI=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(ux);this._ngZone=p(Rg);this._animationsDisabled=ni();this._options=p($0c,{optional:!0});this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",
indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};this.ariaLabel="";this.ariaLabelledby=null;this.labelPosition="after";this.name=null;this.change=new Ui;this.indeterminateChange=new Ui;this._onTouched=function(){};this._currentAnimationClass="";this._currentCheckState=0;this._controlValueAccessorChangeFn=function(){};this._validatorChangeFn=function(){};this._disabled=this._checked=!1;this._indeterminate=ng.apply(null,[!1].concat(q([])));p($h).load(Yz);var a=p(new cx("tabindex"),
{optional:!0});this._options=this._options||Z0c;this.color=this._options.color||Z0c.color;this.tabIndex=a==null?0:parseInt(a)||0;this.id=this._uniqueId=p(bi).getId("mat-mdc-checkbox-");var b,c;this.disabledInteractive=(c=(b=this._options)==null?void 0:b.disabledInteractive)!=null?c:!1};h=aI.prototype;h.focus=function(){this._inputElement.nativeElement.focus()};h._createChangeEvent=function(a){var b=new c1c;b.source=this;b.checked=a;return b};
h._getAnimationTargetElement=function(){var a;return(a=this._inputElement)==null?void 0:a.nativeElement};h.ngOnChanges=function(a){a.required&&this._validatorChangeFn()};h.ngAfterViewInit=function(){this._syncIndeterminate(this.indeterminate)};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};h._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};h.writeValue=function(a){this.checked=!!a};h.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};
h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};h.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};h.registerOnValidatorChange=function(a){this._validatorChangeFn=a};
h._transitionCheckState=function(a){var b=this._currentCheckState,c=this._getAnimationTargetElement();if(b!==a&&c&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};h._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};h.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
h._handleInputClick=function(){var a=this,b,c=(b=this._options)==null?void 0:b.clickAction;if(!this.disabled&&c!=="noop")this.indeterminate&&c!=="check"&&Promise.resolve().then(function(){a._indeterminate.set(!1);a.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent();else if(this.disabled&&this.disabledInteractive||!this.disabled&&c==="noop")this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=
this.indeterminate};h._onInteractionEvent=function(a){a.stopPropagation()};h._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
h._getAnimationClassForCheckStateTransition=function(a,b){if(this._animationsDisabled)return"";switch(a){case 0:if(b===1)return this._animationClasses.uncheckedToChecked;if(b==3)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return b===1?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return b===2?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;
case 3:return b===1?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""};h._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};h._onInputClick=function(){this._handleInputClick()};h._onTouchTargetClick=function(){this._handleInputClick();this.disabled||this._inputElement.nativeElement.focus()};h._preventBubblingFromLabel=function(a){a.target&&this._labelElement.nativeElement.contains(a.target)&&a.stopPropagation()};
da.Object.defineProperties(aI.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)}}});aI.\u0275fac=function(a){return new (a||aI)};
aI.\u0275cmp=D({type:aI,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(hg(a1c,5),hg(b1c,5));if(a&2){var c;lg(c=mg())&&(b._inputElement=c.first);lg(c=mg())&&(b._labelElement=c.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(a,b){a&2&&(Qf("id",b.id),Kf("tabindex",null)("aria-label",null)("aria-labelledby",null),xg(b.color?"mat-"+b.color:"mat-accent"),wg("_mat-animation-noopable",b._animationsDisabled)("mdc-checkbox--disabled",b.disabled)("mat-mdc-checkbox-disabled",
b.disabled)("mat-mdc-checkbox-checked",b.checked)("mat-mdc-checkbox-disabled-interactive",b.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",$g],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",$g],labelPosition:"labelPosition",name:"name",value:"value",
disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?void 0:ah(a)}],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g],checked:[2,"checked","checked",$g],disabled:[2,"disabled","disabled",$g],indeterminate:[2,"indeterminate","indeterminate",$g]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Gg([{provide:VD,useExisting:Yc(function(){return aI}),multi:!0},
{provide:WD,useExisting:aI,multi:!0}]),bx],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();cg();K(0,"div",3);N("click",function(d){u(c);return v(b._preventBubblingFromLabel(d))});K(1,"div",4,0)(3,"div",5);N("click",function(){u(c);
return v(b._onTouchTargetClick())});L();K(4,"input",6,1);N("blur",function(){u(c);return v(b._onBlur())})("click",function(){u(c);return v(b._onInputClick())})("change",function(d){u(c);return v(b._onInteractionEvent(d))});L();M(6,"div",7);K(7,"div",8);Ad();K(8,"svg",9);M(9,"path",10);L();Cd();M(10,"div",11);L();M(11,"div",12);L();K(12,"label",13,2);dg(14);L()()}a&2&&(a=qg(2),I("labelPosition",b.labelPosition),B(4),wg("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),Kf("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby)("aria-checked",b.indeterminate?"mixed":null)("aria-controls",b.ariaControls)("aria-disabled",b.disabled&&b.disabledInteractive?!0:null)("aria-expanded",b.ariaExpanded)("aria-owns",b.ariaOwns)("name",b.name)("value",b.value),B(7),I("matRippleTrigger",a)("matRippleDisabled",
b.disableRipple||b.disabled)("matRippleCentered",!0),B(),I("for",b.inputId))},dependencies:[aA,Zz],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var bI=function(){};bI.\u0275fac=function(a){return new (a||bI)};bI.\u0275mod=cf({type:bI});bI.\u0275inj=Hc({imports:[aI,Ey]});var d1c=function(a){return{strong:a}},eHa=function(a){return{transform:a}},bHa=function(a,b){return{transform:a,width:b}},e1c=function(a){return[a]},$Ga=function(){return{"user-select":"text"}},cI=function(a){this.liveAnnouncer=a;this.showStatsModeSummaryColumn=this.timeshift=!1;this.labelPercents=[];this.widthDifference=this.scrollLeft=0;this.scale=100;this.valueColumnWidth=80;this.streamActions=[];this.ve={LineDeselectToggle:68567,LineSelectToggle:68568,MonitoringStreamActionTableLegendMenu:137569};
this.selectedTooltip="Selected";this.notSelectedTooltip="Not selected";this.streamActionsMenuTooltip="Actions for this timeseries"};cI.prototype.getColIndexOffset=function(){var a=this.stream.labels.length;return a?a-1:0};cI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};cI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshift&&(a+=1);return a+this.getColIndexOffset()};
var f1c=function(a){var b=a.stream.unit,c;a=(c=a.stream.rawValue)!=null?c:null;c=b!=null?b:null;a==null?a="":(b=RAa({min:0,max:a,unit:c},{idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)}),a=Lk(c,b.unit,a),a=a===null?"":Nk(a,b.unit));return a};cI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshift&&(a+=1);this.showStatsModeSummaryColumn&&(a+=1);return a+this.getColIndexOffset()};
cI.prototype.checkboxChange=function(a){var b,c;(c=(b=this.stream).setSelected)==null||c.call(b,a.checked);this.liveAnnouncer.announce(a.checked?"Highlighted stream: "+this.stream.name:"Unhighlighted stream: "+this.stream.name)};da.Object.defineProperties(cI.prototype,{filteredStreamActions:{configurable:!0,enumerable:!0,get:function(){var a=this.stream.dataSeriesMetadata;return a?this.streamActions.filter(function(b){return b.relevant(a)}):[]}}});cI.\u0275fac=function(a){return new (a||cI)(Ye(Yy))};
cI.\u0275cmp=D({type:cI,selectors:[["ac-table-legend-row"]],inputs:{stream:"stream",timeshift:"timeshift",showStatsModeSummaryColumn:"showStatsModeSummaryColumn",labelPercents:"labelPercents",columnFlexWidth:"columnFlexWidth",scrollLeft:"scrollLeft",widthDifference:"widthDifference",scale:"scale",valueColumnWidth:"valueColumnWidth",streamActions:"streamActions"},decls:19,vars:34,consts:[["streamActionsMenu",""],["fxLayout","row","role","presentation","draggable","false",3,"ngClass"],["role","cell",
"aria-colindex","1","aria-colspan","2",1,"ac-combined-chip-and-is-selected-container",3,"ngStyle"],["role","presentation",1,"ac-chip-static-container"],[1,"ac-chip-absolute-background"],[3,"color","drawnAs","shape"],["role","presentation",1,"ac-is-selected-container"],["matTooltipClass","ac-mat-tooltip",1,"ac-is-selected",3,"change","checked","aria-label","matTooltip","ve","veClick","veMutable"],["class","ac-legend-key ac-table-legend-stream","role","rowheader","aria-colindex","2","fxFlex","100",
4,"ngIf"],["role","presentation","fxFlex","100","fxLayout","row",1,"ac-legend-key"],["class","ac-table-legend-label legend-table-cell","matTooltipClass","ac-mat-tooltip",3,"ngStyle","fxFlex","matTooltip",4,"ngFor","ngForOf"],["class","ac-table-legend-value legend-table-cell timeshift-value","role","cell","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["class","ac-table-legend-value legend-table-cell stats-mode-summary-value","role","cell","matTooltipClass","ac-mat-tooltip",
3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell","current-value",3,"matTooltip","ngStyle","ngClass"],["class","ac-table-legend-options last legend-table-cell table-options","role","none",3,"ngStyle",4,"ngIf"],["class","ac-table-legend-options last legend-table-cell table-options","role","cell",3,"ngStyle",4,"ngIf"],[1,"ac-table-legend-stream-actions",3,"ve"],[3,"streamMetadata","streamActions"],["role","rowheader",
"aria-colindex","2","fxFlex","100",1,"ac-legend-key","ac-table-legend-stream"],["matTooltipClass","ac-mat-tooltip",1,"legend-table-cell",3,"matTooltip"],["matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-label","legend-table-cell",3,"ngStyle","fxFlex","matTooltip"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell","timeshift-value",3,"matTooltip","ngStyle","ngClass"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell",
"stats-mode-summary-value",3,"matTooltip","ngStyle","ngClass"],["role","none",1,"ac-table-legend-options","last","legend-table-cell","table-options",3,"ngStyle"],["role","cell",1,"ac-table-legend-options","last","legend-table-cell","table-options",3,"ngStyle"],["type","button","mat-icon-button","","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-stream-actions-button",3,"matTooltip","matMenuTriggerFor"],["svgIcon","ac:more_vert"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",
2)(2,"span",3);M(3,"span",4)(4,"ac-key",5);L();K(5,"span",6)(6,"mat-checkbox",7);N("change",function(d){u(c);return v(b.checkboxChange(d))});L()()();E(7,ZGa,3,3,"div",8);K(8,"div",9);E(9,aHa,2,9,"span",10);L();E(10,cHa,2,9,"div",11)(11,dHa,2,9,"div",12);K(12,"div",13);Q(13);L();E(14,fHa,1,3,"div",14)(15,gHa,3,6,"div",15);K(16,"mat-menu",16,0);M(18,"ac-stream-action-menu",17);L()()}a&2&&(I("ngClass",Ig(25,d1c,b.stream.isInteracted)),B(),I("ngStyle",Ig(27,eHa,"translateX("+b.scrollLeft+"px)")),B(3),
I("color",b.stream.color)("drawnAs",b.stream.drawnAs)("shape",b.stream.shape),B(2),I("checked",b.stream.isSelected),Jf("aria-label","Highlight stream: "+b.stream.name),I("matTooltip",b.stream.isSelected?b.selectedTooltip:b.notSelectedTooltip)("ve",b.stream.isSelected?b.ve.LineDeselectToggle:b.ve.LineSelectToggle)("veClick",!0)("veMutable",!0),B(),I("ngIf",!b.stream.labels.length),B(2),I("ngForOf",b.stream.labels),B(),I("ngIf",b.timeshift),B(),I("ngIf",b.showStatsModeSummaryColumn),B(),I("matTooltip",
f1c(b))("ngStyle",Jg(29,bHa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px"))("ngClass",Ig(32,e1c,!b.timeshift&&!b.showStatsModeSummaryColumn&&b.scale>100?"leftmost-frozen":"")),Kf("aria-colindex",b.getColIndexOffsetForValue()),B(),S(" ",b.stream.displayValue," "),B(),I("ngIf",b.filteredStreamActions.length===0),B(),I("ngIf",b.filteredStreamActions.length>0),B(),I("ve",b.ve.MonitoringStreamActionTableLegendMenu),B(2),I("streamMetadata",b.stream.dataSeriesMetadata)("streamActions",
b.streamActions))},dependencies:[VG,cH,ZH,UH,WH,aI,Dy,eB,YG,aH,iA,Dx,Ex,Fx,Jx,aD],styles:[".mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}.ac-table-legend-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}mat-checkbox[_ngcontent-%COMP%]{margin-top:-1px;margin-left:calc((var(--mat-checkbox-state-layer-size) - 18px)/-2);margin-right:calc((var(--mat-checkbox-state-layer-size) - 18px)/-2)}.ac-table-legend-options.legend-table-cell.table-options[_ngcontent-%COMP%]{min-width:40px;width:40px}.ac-table-legend-value[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;text-align:right;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;-moz-box-sizing:border-box;box-sizing:border-box}.ac-chip-static-container[_ngcontent-%COMP%]{position:relative}.ac-chip-static-container[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}\n/*# sourceMappingURL=ac_table_legend_row_style.css.map */",
".ac-chip-absolute-background[_ngcontent-%COMP%], .ac-chip-static-container[_ngcontent-%COMP%], .ac-is-selected-container[_ngcontent-%COMP%], .ac-table-legend-options.legend-table-cell[_ngcontent-%COMP%], .ac-table-legend-value.legend-table-cell[_ngcontent-%COMP%], .ac-table-options-column.legend-table-cell[_ngcontent-%COMP%], .ac-table-value-column.legend-table-cell[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff)}.ac-chip-absolute-background[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;height:12px;line-height:42px;padding:15px 8px 15px 24px;position:absolute;width:12px}.ac-chip-relative-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;line-height:42px;position:relative}.ac-chip-static-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:50px}.ac-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.ac-legend-key[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-table-legend-chip[_ngcontent-%COMP%]{border-radius:50px;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;height:12px;line-height:42px;margin:15px 8px 15px 24px;position:absolute;width:12px}.ac-table-legend-chip.ac-chip-position-static[_ngcontent-%COMP%]{position:static}.legend-table-cell[_ngcontent-%COMP%]{height:42px;padding-left:4px;padding-right:8px}.legend-table-cell[_ngcontent-%COMP%]   .current-value[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;padding:0 8px 0 0}.legend-table-cell.leftmost-frozen[_ngcontent-%COMP%]{border-left:1px solid var(--ac-sys-color-extensions-hairline,#dadce0);padding-left:8px}.legend-table-cell.last[_ngcontent-%COMP%]{padding-right:0}.ac-combined-chip-and-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;width:72px}\n/*# sourceMappingURL=ac_table_legend_header_and_row_style.css.map */"],
changeDetection:0});var g1c=["scrollingDiv"],h1c=["virtualScroll"],dI=function(a,b,c,d,e,f,g,k){gH.call(this,a,b,c,d,e);var l=this;this.cdRef=b;this.elementRef=c;this.focusMonitor=f;this.ngZone=g;this.interactionService=k;this.viewPortStreams=[];this.columnKeys=["Name"];this.divComputedStyle=this.contentComputedStyle=null;this.widthDifference=this.scrollTop=this.scrollLeft=0;this.scale=100;this.ve={ChartLegendPane:68535};this.isOnSdDashboard=!1;this.height=210;this.defaultSortingColumn="";this.defaultSortingDirection=
null;this.streamActions=[];this.labelsModel={columnsModel:[],selectedColumns:[],selectableColumns:[],labelHeaders:[],labelWidths:[],labelPercents:[],scale:100,nextColumnId:1};this.labelsModelSubject=new Nj(this.labelsModel);this.preventAveScrollEvents=!1;this.lastSelected=null;this.updatePercentsWithLabelsSubject=new sf;this.scrollResizeObserver=this.streamRowIndexMap=null;this.updatePercentsWithLabelsSubject.pipe(Zka(this.updatePercentsWithLabelsSubject.pipe(lf(0))),Bf(this.destroyed)).subscribe(function(r){var w=
i1c(l);l.labelsModel.labelWidths=[];r=m(r);for(var x=r.next();!x.done;x=r.next())sZc.updatePercents(l.labelsModel,x.value,100,w);l.labelsModel=Object.assign({},l.labelsModel);l.labelsModelSubject.next(l.labelsModel);l.cdRef.markForCheck()})};Y(dI,gH);dI.\u0275dir=gH.\u0275dir;
dI.prototype.ngAfterViewInit=function(){var a=this;this.focusMonitor.monitor(this.scrollingDiv).pipe(Bf(this.destroyed)).subscribe(function(){a.ngZone.run(function(){a.cdRef.markForCheck()})});this.scrollResizeObserver=new ResizeObserver(function(b){if(b.length)a.onScroll(!1)});this.scrollResizeObserver.observe(this.scrollingDiv.nativeElement)};dI.prototype.ngOnDestroy=function(){gH.prototype.ngOnDestroy.call(this);var a;(a=this.scrollResizeObserver)==null||a.disconnect()};
dI.prototype.onMapChange=function(a,b){gH.prototype.onMapChange.call(this,a,b);j1c(this)};dI.prototype.update=function(){gH.prototype.update.call(this);j1c(this);k1c(this);this.streams&&(this.streams=this.streams.slice().sort(this.sortFunc));this.streamRowIndexMap=new Map;if(this.streams)for(var a=m(this.streams.entries()),b=a.next();!b.done;b=a.next()){var c=m(b.value);b=c.next().value;c=c.next().value;this.streamRowIndexMap.set(c,b+2)}this.bringLastSelectedIntoView();this.cdRef.markForCheck()};
var i1c=function(a){if(!a.divComputedStyle&&!a.scrollingDiv)return 0;a.divComputedStyle=a.divComputedStyle||getComputedStyle(a.scrollingDiv.nativeElement);return+a.divComputedStyle.getPropertyValue("width").replace("px","")};
dI.prototype.selectedColumnsChanged=function(){if(this.columnComparator&&this.labelsModel.selectedColumns){var a=this.columnComparator;this.labelsModel.selectedColumns.sort(function(c,d){return a(c.title,d.title)})}var b=(this.labelsModel.selectedColumns||[]).map(function(c){return c.title||""});this.labelsModel.labelHeaders=b;this.labelsModel.labelWidths=[];this.labelsModel.labelPercents=[];this.labelsModel=Object.assign({},this.labelsModel);this.labelsModelSubject.next(this.labelsModel)};
var j1c=function(a){if(a.labelsModel){var b,c,d=GZc(a,(c=(b=a.streams)==null?void 0:b.map(function(e){var f;return(f=e.dataSeriesMetadata)!=null?f:null}))!=null?c:[]);d||(d=WCa());d&&d.length>0&&(b=sZc.updateLabelsModel(a.labelsModel,d),a.labelsModel=Object.assign({},a.labelsModel),a.labelsModelSubject.next(a.labelsModel),b&&a.selectedColumnsChanged())}},k1c=function(a){var b;(b=a.streams)==null||b.forEach(function(c){c.getLabels=function(){return(a.labelsModel.selectedColumns||[]).map(function(d){var e=
c.dataSeriesMetadata&&c.dataSeriesMetadata.childId||0,f=null;if(d.tokenizers&&d.tokenizers[e]){var g;f=(g=c.dataSeriesMetadata)!=null?g:{};g=a.getTranslationFunctions();g.getName=function(k){return c.getName()||k.name||""};f=d.tokenizers[e].format(f,g)}return f||""})};c.onLabelsChange=function(d){a.updatePercentsWithLabelsSubject.next(d)};c.getColumnIds=function(){return(a.labelsModel.selectedColumns||[]).map(function(d){return d.uniqueId})}});requestAnimationFrame(function(){a.onScroll(!1)})};
dI.prototype.onScroll=function(a){if(this.scrollingDiv&&this.scrollingDiv.nativeElement&&this.scrollingDiv.nativeElement.children&&this.scrollingDiv.nativeElement.children.length){a&&!this.preventAveScrollEvents&&(tl(this.interactionService,"scroll",ul.ve.AwesomeChartLegendPane,this.elementRef.nativeElement,{debounce:!0}),this.preventAveScrollEvents=!0);this.contentComputedStyle=this.contentComputedStyle||getComputedStyle(this.scrollingDiv.nativeElement.children[0]);a=+this.contentComputedStyle.getPropertyValue("width").replace("px",
"");var b=i1c(this);a-=b;b=this.scrollingDiv.nativeElement.scrollLeft;var c=this.scrollingDiv.nativeElement.scrollTop;if(this.widthDifference!==a||this.scrollLeft!==b||this.scrollTop!==c)this.widthDifference=a,this.scrollLeft=b,this.scrollTop=c,this.cdRef.detectChanges()}};
dI.prototype.onSeriesSelectionChange=function(a,b){var c=this;this.lastSelected=UBa(a,b.scope.layerId);this.lastSeriesSelectedInLegend&&(this.lastSelected=this.lastSelected.filter(function(d){return d!==c.lastSeriesSelectedInLegend}));this.lastSeriesSelectedInLegend=null;gH.prototype.onSeriesSelectionChange.call(this,a,b)};
dI.prototype.bringLastSelectedIntoView=function(){gH.prototype.bringLastSelectedIntoView.call(this);if(this.lastSelected){if(this.lastSelected.length>=1){var a=this.lastSelected[0],b,c,d=(c=(b=this.streams)==null?void 0:b.findIndex(function(e){return e.seriesId===a}))!=null?c:-1;if(d<0)return;b=x0c(this.virtualScrollRef);d=Math.floor(d/b.itemsPerRow)*b.childHeight;b=d-Math.max(0,b.itemsPerCol-2)*b.childHeight;c=this.scrollingDiv.nativeElement.scrollTop;c>d?c=d:c<b&&(c=b);this.scrollToPosition(c)}this.lastSelected=
null}};dI.prototype.scrollToPosition=function(a){var b=this;this.scrollingDiv.nativeElement.scrollTop!==a&&(this.scrollTop=this.scrollingDiv.nativeElement.scrollTop=a,requestAnimationFrame(function(){b.onScroll(!1)}))};var l1c=function(a,b){a.scale!==b&&requestAnimationFrame(function(){a.onScroll(!1)});a.scale=b;return{width:b+"%",height:a.height+"px"}};dI.prototype.trackByStreamName=function(a,b){return b.name};
var m1c=function(a){return!!a.streams&&a.streams.length>0},jHa=function(a,b){var c;return(c=a.streamRowIndexMap)==null?void 0:c.get(b)},hHa=function(a){if(!a.streams||a.streams.length===0)return 80;a=a.streams.reduce(function(b,c){var d,e,f,g;return Math.max(b,c.displayValue.length,(f=(d=c.timeshiftValue)==null?void 0:d.length)!=null?f:0,(g=(e=c.statsModeSummaryValue)==null?void 0:e.length)!=null?g:0)},0)*10;return Math.max(a,80)};
dI.\u0275fac=function(a){return new (a||dI)(Ye(ZF),Ye(ux),Ye(Jd),Ye(MG),Ye(YF),Ye(Hy),Ye(Rg),Ye(ul))};
dI.\u0275cmp=D({type:dI,selectors:[["ac-table-legend"],["cola-table-legend"]],viewQuery:function(a,b){a&1&&(hg(g1c,5),hg(h1c,5));if(a&2){var c;lg(c=mg())&&(b.scrollingDiv=c.first);lg(c=mg())&&(b.virtualScrollRef=c.first)}},inputs:{isOnSdDashboard:"isOnSdDashboard",height:"height",defaultSortingColumn:"defaultSortingColumn",defaultSortingDirection:"defaultSortingDirection",streamActions:"streamActions",columnComparator:"columnComparator"},features:[Gf],decls:7,vars:12,consts:[["scrollingDiv",""],["virtualScroll",
""],["scrollingHeader",""],[1,"ac-legend-outer-div"],[1,"ac-table-legend-switch","scrolling-div","ac-a11y-keyboard-focusable",3,"scroll","draggable","ve"],["role","presentation",1,"ac-legend-table-virtual-scroll","overflow-visible",3,"update","items","childHeight","ngStyle","scrollTop","hasHeader"],["role","rowgroup","header","",4,"ngIf"],["role","rowgroup",4,"ngIf"],["role","rowgroup","header",""],["role","row","aria-rowindex","1",1,"ac-table-legend-header",3,"sortFunc","columnKeys","labelsModel",
"valueName","columnFlexWidth","scrollLeft","widthDifference","scale","valueColumnWidth","streamActions","defaultSortingColumn","defaultSortingDirection","timeshiftName","statsModeSummaryColumnLabel"],[3,"selectedColumnsChanged","labelsModel","valueName"],["role","rowgroup"],["class","ac-table-legend-row","role","row",3,"stream","labelPercents","columnFlexWidth","scrollLeft","scale","valueColumnWidth","streamActions","widthDifference","timeshift","showStatsModeSummaryColumn","mouseenter","mouseleave",
4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"ac-table-legend-row",3,"mouseenter","mouseleave","stream","labelPercents","columnFlexWidth","scrollLeft","scale","valueColumnWidth","streamActions","widthDifference","timeshift","showStatsModeSummaryColumn"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"div",4,0);N("scroll",function(){u(c);return v(b.onScroll(!0))});K(3,"virtual-scroll",5,1);N("update",function(d){u(c);return v(b.viewPortStreams=d)});E(5,iHa,5,17,"div",6)(6,lHa,2,2,
"div",7);L()()()}a&2&&(B(),I("draggable",b.isOnSdDashboard)("ve",b.ve.ChartLegendPane),Kf("role",m1c(b)?"table":"presentation")("aria-label",m1c(b)?"Legend":void 0)("aria-rowcount",b.streams&&m1c(b)?b.streams.length+1:void 0),B(2),I("items",b.streams)("childHeight",42)("ngStyle",l1c(b,b.labelsModel.scale))("scrollTop",b.scrollTop)("hasHeader",!0),B(2),I("ngIf",m1c(b)),B(),I("ngIf",b.viewPortStreams.length>0))},dependencies:[PH,$H,cI,Ex,Fx,Jx,aD,LH,KH,Lx],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ac-table-legend-switch[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ac-table-legend-switch.scrolling-div[_ngcontent-%COMP%]{overflow:auto}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar{height:7px;width:7px;-webkit-appearance:none}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar-corner{color:var(--ac-sys-color-extensions-surface,#fff)}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--ac-sys-color-extensions-scrollbar-surface,rgba(0,0,0,.4))}.ac-table-legend-switch[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .ac-table-legend-switch[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .ac-table-legend-switch[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{-moz-box-sizing:content-box;box-sizing:content-box}.ac-table-legend-switch[_ngcontent-%COMP%]:focus{outline-offset:0}.ac-legend-table-virtual-scroll[_ngcontent-%COMP%]{display:block;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow-y:scroll}.ac-legend-table-virtual-scroll.overflow-visible[_ngcontent-%COMP%]{overflow-y:visible;overflow:visible}.ac-table-legend-header[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff);border-color:var(--ac-sys-color-extensions-hairline,#dadce0);display:block;font-weight:700;margin:0}ac-stats-legend-header[_ngcontent-%COMP%], ac-table-legend-header[_ngcontent-%COMP%]{border-style:solid;border-width:1px 0;cursor:default;display:block;height:42px;line-height:42px}.ac-table-legend-row[_ngcontent-%COMP%]{border-style:solid;border-width:0 0 1px;display:block;height:42px;line-height:42px}virtual-scroll[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;min-height:100px;overflow-y:scroll}virtual-scroll[_ngcontent-%COMP%]   .ac-table-legend-row[_ngcontent-%COMP%]{border-color:var(--ac-sys-color-extensions-hairline,#dadce0)}virtual-scroll[_ngcontent-%COMP%]   .ac-stream-hovered[_ngcontent-%COMP%], virtual-scroll[_ngcontent-%COMP%]   .ac-stream-selected[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-on-surface-hover,#f7f8f8)}.ac-legend-outer-div[_ngcontent-%COMP%]{position:relative;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}\n/*# sourceMappingURL=ac_table_legend_style.css.map */"],
changeDetection:0});var n1c=function(){};var oHa=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,vHa=RegExp("{{\\s*(.+?)\\s*}}","g"),xHa=/-+([a-z0-9])/g;var o1c=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(" ")),p1c=function(){};Y(p1c,n1c);
var BHa=function(a,b,c){var d="",e=b.toString().trim();o1c.has(a)&&b!==0&&b!=="0"&&(typeof b==="number"?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&a[1].length==0&&c.push(new Vc(3005,!1)));return e+d};var HHa=typeof document==="undefined"?null:document.documentElement;var q1c=function(){};var NHa=new Set(["true","1"]),OHa=new Set(["false","0"]);var PHa=RegExp("s*:selfs*,?","g"),r1c=function(a){this._driver=a};h=r1c.prototype;h.build=function(a,b){b=new s1c(b);this._resetContextStyleTimingState(b);return Ll(this,sHa(a),b)};h._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
h.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],g=[];a.name.charAt(0)=="@"&&b.errors.push(new Vc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(k.type==0){var l=k.name;l.toString().split(/\s*,\s*/).forEach(function(r){k.name=r;f.push(c.visitState(k,b))});k.name=l}else k.type==1?(l=c.visitTransition(k,b),d+=l.queryCount,e+=l.depCount,g.push(l)):b.errors.push(new Vc(3007,!1))});return{type:7,name:a.name,states:f,transitions:g,queryCount:d,
depCount:e,options:null}};h.visitState=function(a,b){var c=this.visitStyle(a.styles,b),d=a.options&&a.options.params||null;if(c.containsDynamicStyles){var e=new Set,f=d||{};c.styles.forEach(function(g){g instanceof Map&&g.forEach(function(k){tHa(k).forEach(function(l){f.hasOwnProperty(l)||e.add(l)})})});e.size&&b.errors.push(mHa([].concat(q(e.values()))))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
h.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=Ll(this,sHa(a.animation),b);return{type:1,matchers:MHa(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Pl(a.options)}};h.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Ll(c,d,b)}),options:Pl(a.options)}};
h.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(g){b.currentTime=d;g=Ll(c,g,b);e=Math.max(e,b.currentTime);return g});b.currentTime=e;return{type:3,steps:f,options:Pl(a.options)}};
h.visitAnimate=function(a,b){var c=XHa(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Wi({});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=Wi(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};h.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
h._makeStyleAst=function(a,b){for(var c=[],d=m(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 Vc(3002,!1)):c.push(new Map(Object.entries(e)));var f=!1,g=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(g=k.get("easing"),k.delete("easing")),!f)){k=m(k.values());for(var l=k.next();!l.done;l=k.next())if(l.value.toString().indexOf("{{")>=0){f=!0;break}}});return{type:6,styles:c,easing:g,offset:a.offset,
containsDynamicStyles:f,options:null}};h._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&e>0&&(e-=c.duration+c.delay);a.styles.forEach(function(f){typeof f!=="string"&&f.forEach(function(g,k){var l=b.collectedStyles.get(b.currentQuerySelector),r=l.get(k),w=!0;r&&(e!=d&&e>=r.startTime&&d<=r.endTime&&(b.errors.push(new Vc(3010,!1)),w=!1),e=r.startTime);w&&l.set(k,{startTime:e,endTime:d});b.options&&uHa(g,b.options,b.errors)})})};
h.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new Vc(3011,!1)),d;var e=0,f=[],g=!1,k=!1,l=0,r=a.steps.map(function(O){O=c._makeStyleAst(O,b);var R=O.offset!=null?O.offset:WHa(O.styles),V=0;R!=null&&(e++,V=O.offset=R);k=k||V<0||V>1;g=g||V<l;l=V;f.push(V);return O});k&&b.errors.push(new Vc(3012,!1));g&&b.errors.push(new Vc(3200,!1));a=a.steps.length;var w=0;e>0&&e<a?b.errors.push(new Vc(3202,!1)):e==0&&(w=1/(a-1));var x=
a-1,C=b.currentTime,H=b.currentAnimateTimings,J=H.duration;r.forEach(function(O,R){R=w>0?R==x?1:w*R:f[R];var V=R*J;b.currentTime=C+H.delay+V;H.duration=V;c._validateStyleAst(O,b);O.offset=R;d.styles.push(O)});return d};h.visitReference=function(a,b){return{type:8,animation:Ll(this,sHa(a.animation),b),options:Pl(a.options)}};h.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Pl(a.options)}};
h.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Pl(a.options)}};
h.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=m(QHa(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Ol(b.collectedStyles,b.currentQuerySelector,new Map);var g=Ll(this,sHa(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:g,originalSelector:a.selector,options:Pl(a.options)}};
h.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Vc(3013,!1));var c=a.timings==="full"?{duration:0,delay:0,easing:"full"}:pHa(a.timings,b.errors,!0);return{type:12,animation:Ll(this,sHa(a.animation),b),timings:c,options:null}};var s1c=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 eI=function(){this._map=new Map};eI.prototype.get=function(a){return this._map.get(a)||[]};eI.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,q(b))};eI.prototype.has=function(a){return this._map.has(a)};eI.prototype.clear=function(){this._map.clear()};var t1c=RegExp(":enter","g"),u1c=RegExp(":leave","g"),ZHa=function(){};h=ZHa.prototype;
h.buildKeyframes=function(a,b,c,d,e,f,g,k,l,r){r=r===void 0?[]:r;l=l||new eI;a=new v1c(a,b,l,d,e,r,[]);a.options=k;d=k.delay?Il(k.delay):0;a.currentTimeline.delayNextStep(d);a.currentTimeline.setStyles([f],null,a.errors,k);Ll(this,c,a);c=a.timelines.filter(function(x){return x.containsAnimation()});if(c.length&&g.size){for(f=c.length-1;f>=0;f--)if(e=c[f],e.element===b){var w=e;break}w&&w._currentEmptyStepKeyframe===w._currentKeyframe&&w.setStyles([g],null,a.errors,k)}return c.length?c.map(function(x){return x.buildKeyframes()}):
[YHa(b,[],[],[],0,d,"",!1)]};h.visitTrigger=function(){};h.visitState=function(){};h.visitTransition=function(){};h.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=fI(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&gI(b,c)}b.previousNode=a};
h.visitAnimateRef=function(a,b){var c=fI(b,a.options);gI(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);gI(b,c.currentTimeline.currentTime);b.previousNode=a};h._applyAnimationRefDelays=function(a,b,c){a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(e=d)==null?void 0:e.delay;if(f){var g=e=void 0;d=typeof f==="number"?f:Il(wHa(f,(g=(e=d)==null?void 0:e.params)!=null?g:{},b.errors));c.delayNextStep(d)}}};
h._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=c.duration!=null?Il(c.duration):null,f=c.delay!=null?Il(c.delay):null;e!==0&&a.forEach(function(g){var k={duration:e!=null?e:g.duration,delay:b.currentTimeline.currentTime+(f!=null?f:0)+g.delay,easing:""};g=new w1c(b._driver,g.element,g.keyframes,g.preStyleProps,g.postStyleProps,k,g.stretchStartingKeyframe);b.timelines.push(g);d=Math.max(d,k.duration+k.delay)});return d};
h.visitReference=function(a,b){x1c(b,a.options,!0);Ll(this,a.animation,b);b.previousNode=a};h.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=fI(b,f),gI(e),f.delay!=null&&(e.previousNode.type==6&&(y1c(e.currentTimeline),e.previousNode=z1c),e.delayNextStep(Il(f.delay))));a.steps.length&&(a.steps.forEach(function(g){return Ll(c,g,e)}),hI(e.currentTimeline),e.subContextCount>d&&gI(e));b.previousNode=a};
h.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Il(a.options.delay):0;a.steps.forEach(function(g){var k=fI(b,a.options);f&&k.delayNextStep(f);Ll(c,g,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(g){return A1c(b.currentTimeline,g)});gI(b,e);b.previousNode=a};
h._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?wHa(a,b.params,b.errors):a,pHa(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
h.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(B1c(b.currentTimeline,b.currentTimeline.duration+c.delay),y1c(d));var e=a.style;e.type==5?this.visitKeyframes(e,b):(B1c(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),hI(d));b.currentAnimateTimings=null;b.previousNode=a};
h.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&c._currentKeyframe.size>0&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=m(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else c.setStyles(a.styles,d,b.errors,b.options);b.previousNode=
a};h.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=fI(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(g){B1c(f,(g.offset||0)*e);f.setStyles(g.styles,g.easing,b.errors,b.options);hI(f)});A1c(b.currentTimeline,f);gI(b,d+e);b.previousNode=a};
h.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Il(e.delay):0;f&&(b.previousNode.type===6||d==0&&b.currentTimeline._currentKeyframe.size>0)&&(y1c(b.currentTimeline),b.previousNode=z1c);var g=d;d=C1c(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(l,r){b.currentQueryIndex=r;r=fI(b,a.options,l);f&&r.delayNextStep(f);l===b.element&&(k=r.currentTimeline);Ll(c,a.animation,r);hI(r.currentTimeline);
g=Math.max(g,r.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;gI(b,g);k&&(A1c(b.currentTimeline,k),y1c(b.currentTimeline));b.previousNode=a};
h.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),g=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(e.duration<0?"reverse":e.easing){case "reverse":f=g-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;Ll(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var z1c={},v1c=function(a,b,c,d,e,f,g,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=g;this.currentAnimateTimings=this.parentContext=null;this.previousNode=z1c;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new iI(this._driver,b,0);g.push(this.currentTimeline)},x1c=function(a,b,c){if(b){var d=a.options;b.duration!=null&&(d.duration=
Il(b.duration));b.delay!=null&&(d.delay=Il(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(g){c&&f.hasOwnProperty(g)||(f[g]=wHa(e[g],f,a.errors))})}}};v1c.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 fI=function(a,b,c){b=b===void 0?null:b;c=c||a.element;c=new v1c(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();x1c(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},gI=function(a,b){a.previousNode=z1c;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};v1c.prototype.delayNextStep=function(a){a>0&&this.currentTimeline.delayNextStep(a)};var C1c=function(a,b,c,d,e,f){var g=[];d&&g.push(a.element);b.length>0&&(b=b.replace(t1c,"."+a._enterClassName),b=b.replace(u1c,"."+a._leaveClassName),a=a._driver.query(a.element,b,c!=1),c!==0&&(a=c<0?a.slice(a.length+c,a.length):a.slice(0,c)),g.push.apply(g,q(a)));e||g.length!=0||f.push(new Vc(3014,!1));return g};
da.Object.defineProperties(v1c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var iI=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()};iI.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this._currentKeyframe.size>0;default:return!0}};iI.prototype.delayNextStep=function(a){var b=this._keyframes.size===1&&this._pendingStyles.size;this.duration||b?(B1c(this,this.currentTime+a),b&&y1c(this)):this.startTime+=a};
iI.prototype.fork=function(a,b){hI(this);return new iI(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};iI.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 B1c=function(a,b){hI(a);a.duration=b;a._loadKeyframe()};
iI.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
iI.prototype.setStyles=function(a,b,c,d){b&&this._previousKeyframe.set("easing",b);b=d&&d.params||{};a=aIa(a,this._globalTimelineStyles);a=m(a);for(d=a.next();!d.done;d=a.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e=wHa(e,b,c);this._pendingStyles.set(d,e);if(!this._localTimelineStyles.has(d)){var f=void 0;this._backFill.set(d,(f=this._globalTimelineStyles.get(d))!=null?f:"*")}this._updateStyle(d,e)}};
var hI=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)}))},y1c=function(a){for(var b=m(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},A1c=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)})};
iI.prototype.buildKeyframes=function(){var a=this;hI(this);var b=new Set,c=new Set,d=this._keyframes.size===1&&this.duration===0,e=[];this._keyframes.forEach(function(r,w){r=new Map([].concat(q(a._backFill),q(r)));r.forEach(function(x,C){x==="!"?b.add(C):x==="*"&&c.add(C)});d||r.set("offset",w/a.duration);e.push(r)});var f=[].concat(q(b.values())),g=[].concat(q(c.values()));if(d){var k=e[0],l=new Map(k);k.set("offset",0);l.set("offset",1);e=[k,l]}return YHa(this.element,e,f,g,this.duration,this.startTime,
this.easing,!1)};da.Object.defineProperties(iI.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 w1c=function(a,b,c,d,e,f,g){g=g===void 0?!1:g;iI.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=g;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
Y(w1c,iI);w1c.prototype.containsAnimation=function(){return this.keyframes.length>1};
w1c.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,g=new Map(a[0]);g.set("offset",0);b.push(g);g=new Map(a[0]);g.set("offset",Math.round(f*100)/100);b.push(g);f=a.length-1;for(g=1;g<=f;g++){var k=new Map(a[g]),l=k.get("offset");k.set("offset",Math.round((c+l*d)/e*100)/100);b.push(k)}d=e;c=0;e="";a=b}return YHa(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var D1c={},eIa=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};eIa.prototype.match=function(a,b,c,d){return cIa(this.ast.matchers,a,b,c,d)};eIa.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};
eIa.prototype.build=function(a,b,c,d,e,f,g,k,l,r){var w=[],x=this.ast.options&&this.ast.options.params||D1c;g=this.buildStyles(c,g&&g.params||D1c,w);var C=k&&k.params||D1c;k=this.buildStyles(d,C,w);var H=new Set,J=new Map,O=new Map,R=d==="void",V;x={params:dIa(C,x),delay:(V=this.ast.options)==null?void 0:V.delay};a=r?[]:$Ha(a,b,this.ast.animation,e,f,g,k,x,l,w);var ca=0;a.forEach(function(oa){ca=Math.max(oa.duration+oa.delay,ca)});if(w.length)return bIa(b,this._triggerName,c,d,R,g,k,[],[],J,O,ca,
w);a.forEach(function(oa){var ua=oa.element,ka=Ol(J,ua,new Set);oa.preStyleProps.forEach(function(ja){return ka.add(ja)});var Ga=Ol(O,ua,new Set);oa.postStyleProps.forEach(function(ja){return Ga.add(ja)});ua!==b&&H.add(ua)});return bIa(b,this._triggerName,c,d,R,g,k,a,[].concat(q(H.values())),J,O,ca)};var E1c=function(a,b){this.styles=a;this.defaultParams=b};
E1c.prototype.buildStyles=function(a,b){var c=new Map,d=dIa(a,this.defaultParams);this.styles.styles.forEach(function(e){typeof e!=="string"&&e.forEach(function(f,g){f&&(f=wHa(f,d,b));var k=rHa(g);f=BHa(k,f,b);c.set(g,f)})});return c};var F1c=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 E1c(e.style,e.options&&e.options.params||{}))});gIa(this.states,"true","1");gIa(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new eIa(a,e,d.states))});this.fallbackTransition=fIa(a,this.states)},G1c=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var H1c=new eI,I1c=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};h=I1c.prototype;h.register=function(a,b){var c=[];b=(new r1c(this._driver)).build(b,c,[]);if(c.length)throw new Vc(3503,!1);this._animations.set(a,b)};h._buildPlayer=function(a,b,c){var d=a.element;b=CHa(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
h.create=function(a,b,c){var d=this;c=c===void 0?{}:c;var e=[],f=this._animations.get(a),g=new Map;f?(b=$Ha(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,H1c,e),b.forEach(function(k){var l=Ol(g,k.element,new Map);k.postStyleProps.forEach(function(r){return l.set(r,null)})})):(e.push(new Vc(3300,!1)),b=[]);if(e.length)throw new Vc(3504,!1);g.forEach(function(k,l){k.forEach(function(r,w){k.set(w,yHa(l,w))})});e=b.map(function(k){var l=g.get(k.element);return d._buildPlayer(k,new Map,l)});
e=Nl(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};h.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);a>=0&&this.players.splice(a,1)};h._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new Vc(3301,!1);return a};h.listen=function(a,b,c,d){b=FHa(b,"","","");EHa(this._getPlayer(a),c,b,d);return function(){}};
h.command=function(a,b,c,d){if(c=="register")this.register(a,d[0]);else if(c=="create")this.create(a,b,d[0]||{});else switch(b=this._getPlayer(a),c){case "play":b.play();break;case "pause":b.pause();break;case "reset":b.reset();break;case "restart":b.restart();break;case "finish":b.finish();break;case "init":b.init();break;case "setPosition":b.setPosition(parseFloat(d[0]));break;case "destroy":this.destroy(a)}};var J1c=[],K1c={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jIa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},L1c=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={})},M1c=function(a,b){var c=b.params;if(c){var d=a.options.params;
Object.keys(c).forEach(function(e){d[e]==null&&(d[e]=c[e])})}};da.Object.defineProperties(L1c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var N1c=new L1c("void"),jI=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;Ql(b,this._hostClassName)};h=jI.prototype;
h.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Vc(3302,!1);if(c==null||c.length==0)throw new Vc(3303,!1);if(c!="start"&&c!="done")throw new Vc(3400,!1);var f=Ol(this._elementListeners,a,[]),g={name:b,phase:c,callback:d};f.push(g);var k=Ol(this._engine.statesByElement,a,new Map);k.has(b)||(Ql(a,"ng-trigger"),Ql(a,"ng-trigger-"+b),k.set(b,N1c));return function(){O1c(e._engine,function(){var l=f.indexOf(g);l>=0&&f.splice(l,1);e._triggers.has(b)||k.delete(b)})}};
h.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};h._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new Vc(3401,!1);return a};
h.trigger=function(a,b,c,d){var e=this;d=d===void 0?!0:d;var f=this._getTrigger(b),g=new P1c(this.id,b,a),k=this._engine.statesByElement.get(a);k||(Ql(a,"ng-trigger"),Ql(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var l=k.get(b),r=new L1c(c,this.id);c&&c.hasOwnProperty("value")||!l||M1c(r,l.options);k.set(b,r);l||(l=N1c);if(r.value!=="void"&&l.value===r.value){if(!qIa(l.params,r.params)){d=[];var w=f.fallbackTransition.buildStyles(l.value,l.params,d),x=f.fallbackTransition.buildStyles(r.value,
r.params,d);d.length?this._engine.reportError(d):O1c(this._engine,function(){Kl(a,w);Jl(a,x)})}}else{c=Ol(this._engine.playersByElement,a,[]);c.forEach(function(H){H.namespaceId==e.id&&H.triggerName==b&&H.queued&&H.destroy()});k=G1c(f,l.value,r.value,a,r.params);var C=!1;if(!k){if(!d)return;k=f.fallbackTransition;C=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:l,toState:r,player:g,isFallbackTransition:C});C||(Ql(a,"ng-animate-queued"),g.onStart(function(){Rl(a,
"ng-animate-queued")}));g.onDone(function(){var H=e.players.indexOf(g);H>=0&&e.players.splice(H,1);if(H=e._engine.playersByElement.get(a)){var J=H.indexOf(g);J>=0&&H.splice(J,1)}});this.players.push(g);c.push(g);return g}};h.deregister=function(a){var b=this;this._triggers.delete(a);this._engine.statesByElement.forEach(function(c){return c.delete(a)});this._elementListeners.forEach(function(c,d){b._elementListeners.set(d,c.filter(function(e){return e.name!=a}))})};
var Q1c=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))};
jI.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=R1c(c._engine,e);f.size?f.forEach(function(g){return S1c(g,e,b,!1,!0)}):Q1c(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return Q1c(c,e)})})};
var S1c=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),g=new Map;if(f){var k=[];f.forEach(function(l,r){g.set(r,l.value);a._triggers.has(r)&&(l=a.trigger(b,r,"void",e))&&k.push(l)});if(k.length){T1c(a._engine,a.id,b,!0,c,g);if(d)Nl(k).onDone(function(){return mIa(a._engine,b)});return!0}}return!1},U1c=function(a,b){var c=a._elementListeners.get(b),d=a._engine.statesByElement.get(b);if(c&&d){var e=new Set;c.forEach(function(f){f=f.name;if(!e.has(f)){e.add(f);var g=a._triggers.get(f).fallbackTransition,
k=d.get(f)||N1c,l=new L1c("void"),r=new P1c(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:g,fromState:k,toState:l,player:r,isFallbackTransition:!0})}})}};
jI.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!S1c(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}}U1c(this,a);e?T1c(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==K1c||(O1c(d,function(){return Q1c(c,a)}),V1c(d,a),d._onRemovalComplete(a,b)))}};
jI.prototype.insertNode=function(a){Ql(a,this._hostClassName)};
var W1c=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,g=a._elementListeners.get(f);g&&g.forEach(function(k){if(k.name==d.triggerName){var l=FHa(f,d.triggerName,d.fromState.value,d.toState.value);l._data=b;EHa(d.player,k.phase,l,k.callback)}});e.markedForDestroy?O1c(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,g=e.transition.ast.depCount;return f==0||g==0?f-g:JHa(d.element,
e.element)?1:-1})};jI.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var kI=function(a,b,c){this.bodyNode=a;this.driver=b;this._normalizer=c;this.players=[];this.newHostElements=new Map;this.playersByElement=new Map;this.playersByQueriedElement=new Map;this.statesByElement=new Map;this.disabledNodes=new Set;this.totalQueuedPlayers=this.totalAnimations=0;this._namespaceLookup={};this._namespaceList=[];this._flushFns=[];this._whenQuietFns=[];this.namespacesByHostElement=new Map;this.collectedEnterElements=[];this.collectedLeaveElements=[];this.onRemovalComplete=function(){}};
h=kI.prototype;h._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};h._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(c.length-1>=0){for(var e=!1,f=this.driver.getParentElement(b);f;){var g=d.get(f);if(g){e=c.indexOf(g);c.splice(e+1,0,a);e=!0;break}f=this.driver.getParentElement(f)}e||c.unshift(a)}else c.push(a);d.set(b,a);return a};
h.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new jI(a,b,this),this.bodyNode&&JHa(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};h.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
h.destroy=function(a,b){var c=this;a&&(O1c(this,function(){}),this.afterFlushAnimationsDone(function(){var d=c._fetchNamespace(a);c.namespacesByHostElement.delete(d.hostElement);var e=c._namespaceList.indexOf(d);e>=0&&c._namespaceList.splice(e,1);d.destroy(b);delete c._namespaceLookup[a]}))};h._fetchNamespace=function(a){return this._namespaceLookup[a]};
var R1c=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=m(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};kI.prototype.trigger=function(a,b,c,d){return hIa(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
kI.prototype.insertNode=function(a,b,c,d){if(hIa(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 X1c=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),Ql(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),Rl(b,"ng-animate-disabled"))};
kI.prototype.removeNode=function(a,b,c){if(hIa(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):T1c(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var T1c=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};kI.prototype.listen=function(a,b,c,d,e){return hIa(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
kI.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 V1c=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return Y1c(a,d)});a.playersByQueriedElement.size!=0&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return Z1c(a,d)}))},Y1c=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},Z1c=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},mIa=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
K1c;if(c.namespaceId){V1c(a,b);var d=a._fetchNamespace(c.namespaceId);d&&Q1c(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;((e=b.classList)==null?0:e.contains("ng-animate-disabled"))&&X1c(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){X1c(a,f,!1)})};
kI.prototype.flush=function(a){var b=this;a=a===void 0?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,g){return b._balanceNamespaceList(f,g)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)Ql(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++)mIa(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)Nl(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
kI.prototype.reportError=function(){throw new Vc(3402,!1);};
kI.prototype._flushAnimations=function(a,b){var c=this,d=new eI,e=[],f=new Map,g=[],k=new Map,l=new Map,r=new Map,w=new Set;this.disabledNodes.forEach(function(ib){w.add(ib);ib=c.driver.query(ib,".ng-animate-queued",!0);for(var Yb=0;Yb<ib.length;Yb++)w.add(ib[Yb])});var x=this.bodyNode,C=Array.from(this.statesByElement.keys()),H=lIa(C,this.collectedEnterElements),J=new Map,O=0;H.forEach(function(ib,Yb){var rc="ng-enter"+O++;J.set(Yb,rc);ib.forEach(function(Gc){return Ql(Gc,rc)})});for(var R=[],V=
new Set,ca=new Set,oa=0;oa<this.collectedLeaveElements.length;oa++){var ua=this.collectedLeaveElements[oa],ka=ua.__ng_removed;ka&&ka.setForRemoval&&(R.push(ua),V.add(ua),ka.hasAnimation?this.driver.query(ua,".ng-star-inserted",!0).forEach(function(ib){return V.add(ib)}):ca.add(ua))}var Ga=new Map,ja=lIa(C,Array.from(V));ja.forEach(function(ib,Yb){var rc="ng-leave"+O++;Ga.set(Yb,rc);ib.forEach(function(Gc){return Ql(Gc,rc)})});a.push(function(){H.forEach(function(ib,Yb){var rc=J.get(Yb);ib.forEach(function(Gc){return Rl(Gc,
rc)})});ja.forEach(function(ib,Yb){var rc=Ga.get(Yb);ib.forEach(function(Gc){return Rl(Gc,rc)})});R.forEach(function(ib){mIa(c,ib)})});var ta=[],xa=[];for(a=this._namespaceList.length-1;a>=0;a--)W1c(this._namespaceList[a],b).forEach(function(ib){var Yb=ib.player,rc=ib.element;ta.push(Yb);if(c.collectedEnterElements.length){var Gc=rc.__ng_removed;if(Gc&&Gc.setForMove){if(Gc.previousTriggersValues&&Gc.previousTriggersValues.has(ib.triggerName)){Gc=Gc.previousTriggersValues.get(ib.triggerName);var Rb=
c.statesByElement.get(ib.element);if(Rb&&Rb.has(ib.triggerName)){var Cc=Rb.get(ib.triggerName);Cc.value=Gc;Rb.set(ib.triggerName,Cc)}}Yb.destroy();return}}Gc=!x||!JHa(x,rc);Rb=Ga.get(rc);Cc=J.get(rc);var Sc=c._buildInstruction(ib,d,Cc,Rb,Gc);if(Sc.errors&&Sc.errors.length)xa.push(Sc);else if(Gc)Yb.onStart(function(){return Kl(rc,Sc.fromStyles)}),Yb.onDestroy(function(){return Jl(rc,Sc.toStyles)}),e.push(Yb);else if(ib.isFallbackTransition)Yb.onStart(function(){return Kl(rc,Sc.fromStyles)}),Yb.onDestroy(function(){return Jl(rc,
Sc.toStyles)}),e.push(Yb);else{var Bd=[];Sc.timelines.forEach(function(Nc){Nc.stretchStartingKeyframe=!0;c.disabledNodes.has(Nc.element)||Bd.push(Nc)});Sc.timelines=Bd;d.append(rc,Sc.timelines);g.push({instruction:Sc,player:Yb,element:rc});Sc.queriedElements.forEach(function(Nc){return Ol(k,Nc,[]).push(Yb)});Sc.preStyleProps.forEach(function(Nc,fe){if(Nc.size){var Xe=l.get(fe);Xe||l.set(fe,Xe=new Set);Nc.forEach(function(Ve,Hh){return Xe.add(Hh)})}});Sc.postStyleProps.forEach(function(Nc,fe){var Xe=
r.get(fe);Xe||r.set(fe,Xe=new Set);Nc.forEach(function(Ve,Hh){return Xe.add(Hh)})})}});if(xa.length){var Sa=[];xa.forEach(function(){Sa.push(new Vc(3505,!1))});ta.forEach(function(ib){return ib.destroy()});this.reportError(Sa)}var $a=new Map,pb=new Map;g.forEach(function(ib){var Yb=ib.element;d.has(Yb)&&(pb.set(Yb,Yb),c._beforeAnimationBuild(ib.player.namespaceId,ib.instruction,$a))});e.forEach(function(ib){var Yb=ib.element;c._getPreviousPlayers(Yb,!1,ib.namespaceId,ib.triggerName,null).forEach(function(rc){Ol($a,
Yb,[]).push(rc);rc.destroy()})});var Xb=R.filter(function(ib){return rIa(ib,l,r)}),lc=new Map;kIa(lc,ca,r).forEach(function(ib){rIa(ib,l,r)&&Xb.push(ib)});var ec=new Map;H.forEach(function(ib){kIa(ec,new Set(ib),l)});Xb.forEach(function(ib){var Yb=lc.get(ib),rc=ec.get(ib),Gc,Rb;lc.set(ib,new Map([].concat(q((Gc=Yb==null?void 0:Yb.entries())!=null?Gc:[]),q((Rb=rc==null?void 0:rc.entries())!=null?Rb:[]))))});var pc=[],sb=[],Ob={};g.forEach(function(ib){var Yb=ib.element,rc=ib.player,Gc=ib.instruction;
if(d.has(Yb))if(w.has(Yb))rc.onDestroy(function(){return Jl(Yb,Gc.toStyles)}),rc.disabled=!0,rc.totalTime=Gc.totalTime,e.push(rc);else{var Rb=Ob;if(pb.size>1){ib=Yb;for(var Cc=[];ib=ib.parentNode;){var Sc=pb.get(ib);if(Sc){Rb=Sc;break}Cc.push(ib)}Cc.forEach(function(Bd){return pb.set(Bd,Rb)})}ib=c._buildAnimation(rc.namespaceId,Gc,$a,f,ec,lc);$1c(rc,ib);Rb===Ob?pc.push(rc):((ib=c.playersByElement.get(Rb))&&ib.length&&(rc.parentPlayer=Nl(ib)),e.push(rc))}else Kl(Yb,Gc.fromStyles),rc.onDestroy(function(){return Jl(Yb,
Gc.toStyles)}),sb.push(rc),w.has(Yb)&&e.push(rc)});sb.forEach(function(ib){var Yb=f.get(ib.element);Yb&&Yb.length&&(Yb=Nl(Yb),$1c(ib,Yb))});e.forEach(function(ib){ib.parentPlayer?a2c(ib,ib.parentPlayer):ib.destroy()});for(b=0;b<R.length;b++)if(ca=R[b],a=ca.__ng_removed,Rl(ca,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((C=k.get(ca))&&C.length&&a.push.apply(a,q(C)),C=this.driver.query(ca,".ng-animating",!0),oa=0;oa<C.length;oa++)(ua=k.get(C[oa]))&&ua.length&&a.push.apply(a,q(ua));a=a.filter(function(ib){return!ib.destroyed});
a.length?nIa(this,ca,a):mIa(this,ca)}R.length=0;pc.forEach(function(ib){c.players.push(ib);ib.onDone(function(){ib.destroy();var Yb=c.players.indexOf(ib);c.players.splice(Yb,1)});ib.play()});return pc};var O1c=function(a,b){a._flushFns.push(b)};h=kI.prototype;h.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
h._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var g=!e||e=="void";a.forEach(function(k){k.queued||(g||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
h._beforeAnimationBuild=function(a,b,c){var d=b.triggerName,e=b.element;a=b.isRemovalTransition?void 0:a;d=b.isRemovalTransition?void 0:d;for(var f=m(b.timelines),g=f.next(),k={};!g.done;k={players$jscomp$10:void 0},g=f.next()){g=g.value.element;var l=g!==e;k.players$jscomp$10=Ol(c,g,[]);this._getPreviousPlayers(g,l,a,d,b.toState).forEach(function(r){return function(w){var x=w._player;x.beforeDestroy&&x.beforeDestroy();w.destroy();r.players$jscomp$10.push(w)}}(k))}Kl(e,b.fromStyles)};
h._buildAnimation=function(a,b,c,d,e,f){var g=this,k=b.triggerName,l=b.element,r=[],w=new Set,x=new Set,C=b.timelines.map(function(J){var O=J.element;w.add(O);var R=O.__ng_removed;if(R&&R.removedBeforeQueried)return new Ml(J.duration,J.delay);R=O!==l;var V=pIa((c.get(O)||J1c).map(function(ua){return ua._player})).filter(function(ua){return ua.element?ua.element===O:!1}),ca=e.get(O),oa=f.get(O);ca=CHa(J.keyframes,ca,oa);V=g._buildPlayer(J,ca,V);J.subTimeline&&d&&x.add(O);R&&(J=new P1c(a,k,O),$1c(J,
V),r.push(J));return V});r.forEach(function(J){Ol(g.playersByQueriedElement,J.element,[]).push(J);J.onDone(function(){var O=g.playersByQueriedElement,R=J.element,V=O.get(R);if(V){if(V.length){var ca=V.indexOf(J);V.splice(ca,1)}V.length==0&&O.delete(R)}return V})});w.forEach(function(J){return Ql(J,"ng-animating")});var H=Nl(C);H.onDestroy(function(){w.forEach(function(J){return Rl(J,"ng-animating")});Jl(l,b.toStyles)});x.forEach(function(J){Ol(d,J,[]).push(H)});return H};
h._buildPlayer=function(a,b,c){return b.length>0?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Ml(a.duration,a.delay)};
var P1c=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Ml;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},$1c=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return EHa(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
a2c=function(a,b){var c=a._player;if(c.triggerCallback)b.onStart(function(){return c.triggerCallback("start")});b.onDone(function(){return a.finish()});b.onDestroy(function(){return a.destroy()})};h=P1c.prototype;h._queueEvent=function(a,b){Ol(this._queuedCallbacks,a,[]).push(b)};h.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};h.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};
h.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};h.init=function(){this._player.init()};h.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};h.play=function(){!this.queued&&this._player.play()};h.pause=function(){!this.queued&&this._player.pause()};h.restart=function(){!this.queued&&this._player.restart()};h.finish=function(){this._player.finish()};h.destroy=function(){this.destroyed=!0;this._player.destroy()};
h.reset=function(){!this.queued&&this._player.reset()};h.setPosition=function(a){this.queued||this._player.setPosition(a)};h.getPosition=function(){return this.queued?0:this._player.getPosition()};h.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};var lI=function(a,b,c){var d=this;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new kI(a.body,b,c);this._timelineEngine=new I1c(a.body,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};h=lI.prototype;
h.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new r1c(this._driver)).build(e,c,[]);if(c.length)throw new Vc(3404,!1);c=new F1c(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};h.register=function(a,b){this._transitionEngine.register(a,b)};h.destroy=function(a,b){this._transitionEngine.destroy(a,b)};h.disableAnimations=function(a,b){X1c(this._transitionEngine,a,b)};
h.process=function(a,b,c,d){c.charAt(0)=="@"?(c=m(GHa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};h.listen=function(a,b,c,d,e){return c.charAt(0)=="@"?(c=m(GHa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};h.flush=function(a){this._transitionEngine.flush(a===void 0?-1:a)};h.afterFlushAnimationsDone=function(a){this._transitionEngine.afterFlushAnimationsDone(a)};
da.Object.defineProperties(lI.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this._transitionEngine.players),q(this._timelineEngine.players))}}});var tIa=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=b2c.get(a);d||b2c.set(a,d=new Map);this._initialStyles=d};tIa.prototype.start=function(){this._state<1&&(this._startStyles&&Jl(this._element,this._startStyles,this._initialStyles),this._state=1)};tIa.prototype.finish=function(){this.start();this._state<2&&(Jl(this._element,this._initialStyles),this._endStyles&&(Jl(this._element,this._endStyles),this._endStyles=null),this._state=1)};
tIa.prototype.destroy=function(){this.finish();this._state<3&&(b2c.delete(this._element),this._startStyles&&(Kl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Kl(this._element,this._endStyles),this._endStyles=null),Jl(this._element,this._initialStyles),this._state=3)};var b2c=new WeakMap;var c2c=function(a,b,c,d){this.element=a;this.keyframes=b;this.options=c;this._specialStyles=d;this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._destroyed=this._started=this._finished=this._initialized=!1;this._originalOnDoneFns=[];this._originalOnStartFns=[];this.domPlayer=null;this.time=0;this.parentPlayer=null;this.currentSnapshot=new Map;this._duration=c.duration;this._delay=c.delay||0;this.time=this._duration+this._delay};h=c2c.prototype;
h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.init=function(){this._buildPlayer()&&this._preparePlayerBeforeStart()};
h._buildPlayer=function(){var a=this;if(this._initialized)return this.domPlayer;this._initialized=!0;var b=this.keyframes,c=this._triggerWebAnimation(this.element,b,this.options);if(!c)return this._onFinish(),null;this.domPlayer=c;this._finalKeyframe=b.length?b[b.length-1]:new Map;var d=function(){return a._onFinish()};c.addEventListener("finish",d);this.onDestroy(function(){c.removeEventListener("finish",d)});return c};
h._preparePlayerBeforeStart=function(){if(this._delay)this._resetDomPlayerState();else{var a;(a=this.domPlayer)==null||a.pause()}};h._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};h._triggerWebAnimation=function(a,b,c){b=this._convertKeyframesToObject(b);try{return a.animate(b,c)}catch(d){return null}};h.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
h.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};h.play=function(){var a=this._buildPlayer();a&&(this.hasStarted()||(this._onStartFns.forEach(function(b){return b()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),a.play())};h.pause=function(){this.init();var a;(a=this.domPlayer)==null||a.pause()};
h.finish=function(){this.init();this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())};h.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};h._resetDomPlayerState=function(){var a;(a=this.domPlayer)==null||a.cancel()};h.restart=function(){this.reset();this.play()};h.hasStarted=function(){return this._started};
h.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};h.setPosition=function(a){this.domPlayer||this.init();this.domPlayer&&(this.domPlayer.currentTime=a*this.time)};h.getPosition=function(){if(!this.domPlayer)return this._initialized?1:0;var a;return+((a=this.domPlayer.currentTime)!=null?a:0)/this.time};
h.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){d!=="offset"&&b.set(d,a._finished?c:yHa(a.element,d))});this.currentSnapshot=b};h.triggerCallback=function(a){a=a==="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};da.Object.defineProperties(c2c.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var d2c=function(){};d2c.prototype.getParentElement=function(a){return IHa(a)};d2c.prototype.query=function(a,b,c){a=c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[];return a};
d2c.prototype.animate=function(a,b,c,d,e,f){f=f===void 0?[]:f;var g={duration:c,delay:d,fill:d==0?"both":"forwards"};e&&(g.easing=e);var k=new Map;e=f.filter(function(r){return r instanceof c2c});c!==0&&d!==0||e.forEach(function(r){r.currentSnapshot.forEach(function(w,x){return k.set(x,w)})});var l=qHa(b).map(function(r){return new Map(r)});l=zHa(a,l,k);b=uIa(a,l);return new c2c(a,l,g,b)};var e2c=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};h=e2c.prototype;h.destroyNode=function(a){var b,c;(c=(b=this.delegate).destroyNode)==null||c.call(b,a)};h.destroy=function(){var a=this;this.engine.destroy(this.namespaceId,this.delegate);this.engine.afterFlushAnimationsDone(function(){queueMicrotask(function(){a.delegate.destroy()})});var b;(b=this._onDestroy)==null||b.call(this)};h.createElement=function(a,b){return this.delegate.createElement(a,b)};
h.createComment=function(a){return this.delegate.createComment(a)};h.createText=function(a){return this.delegate.createText(a)};h.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};h.insertBefore=function(a,b,c,d){d=d===void 0?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};
h.removeChild=function(a,b,c,d){d?this.delegate.removeChild(a,b,c,d):this.parentNode(b)&&this.engine._transitionEngine.removeNode(this.namespaceId,b,this.delegate)};h.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};h.parentNode=function(a){return this.delegate.parentNode(a)};h.nextSibling=function(a){return this.delegate.nextSibling(a)};h.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};
h.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};h.addClass=function(a,b){this.delegate.addClass(a,b)};h.removeClass=function(a,b){this.delegate.removeClass(a,b)};h.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};h.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};h.setProperty=function(a,b,c){b.charAt(0)=="@"&&b=="@.disabled"?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};h.setValue=function(a,b){this.delegate.setValue(a,b)};
h.listen=function(a,b,c,d){return this.delegate.listen(a,b,c,d)};h.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};da.Object.defineProperties(e2c.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});var f2c=function(a,b,c,d,e){e2c.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};Y(f2c,e2c);
f2c.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)};
f2c.prototype.listen=function(a,b,c,d){var e=this;return b.charAt(0)=="@"?(a=vIa(a),b=b.slice(1),d="",b.charAt(0)!="@"&&(d=m(wIa(b)),b=d.next().value,d=d.next().value),this.engine.listen(this.namespaceId,a,b,d,function(f){g2c(e.factory,f._data||-1,c,f)})):this.delegate.listen(a,b,c,d)};var h2c=function(){var a=p(ky),b=p(lI),c=p(Rg);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)}};
h2c.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 e2c("",d,this.engine,function(){return f.delete(d)}),f.set(d,b));return b}var g=b.id,k=b.id+"-"+this._currentId;this._currentId++;this.engine.register(k,a);var l=function(r){Array.isArray(r)?r.forEach(l):c.engine.registerTrigger(g,k,a,r.name,r)};b.data.animation.forEach(l);return new f2c(this,k,d,this.engine)};
h2c.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};h2c.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var g2c=function(a,b,c,d){if(b>=0&&b<a._microtaskId)a._zone.run(function(){return c(d)});else{var e=a._animationCallbacksBuffer;e.length==0&&queueMicrotask(function(){a._zone.run(function(){e.forEach(function(f){var g=m(f);f=g.next().value;g=g.next().value;f(g)});a._animationCallbacksBuffer=[]})});e.push([c,d])}};
h2c.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 mI=function(a,b,c){lI.call(this,a,b,c)};Y(mI,lI);mI.prototype.ngOnDestroy=function(){this.flush()};mI.\u0275fac=function(a){return new (a||mI)($c(Sh),$c(q1c),$c(n1c))};mI.\u0275prov=Fc({token:mI,factory:mI.\u0275fac});var i2c=[{provide:n1c,useFactory:function(){return new p1c}},{provide:lI,useClass:mI},{provide:af,useFactory:function(){return new h2c}}];q(i2c);var j2c=[{provide:q1c,useFactory:function(){return new d2c}},{provide:ki,useFactory:function(){return"BrowserAnimations"}}].concat(q(i2c));var nI=function(){};nI.\u0275fac=function(a){return new (a||nI)};nI.\u0275mod=cf({type:nI});nI.\u0275inj=Hc({providers:j2c,imports:[By]});zIa(function(){});Ih({passive:!0,capture:!0});Ih({passive:!0,capture:!0});xIa(function(a){this._elementRef=a},"primary");var k2c=new fd("mat-progress-spinner-default-options",{providedIn:"root",factory:AIa});var l2c=xIa(function(a){this._elementRef=a},"primary"),oI=function(a,b,c,d,e,f,g,k,l){var r=l2c.call(this,a)||this;r._document=c;r._nonce=l;r._diameter=100;r._value=0;r._resizeSubscription=Rd.EMPTY;r.mode="determinate";var w=oI._diameters;r._spinnerAnimationLabel=r._getSpinnerAnimationLabel();w.has(c.head)||w.set(c.head,new Set([100]));r._noopAnimations=d==="NoopAnimations"&&!!e&&!e._forceAnimations;a.nativeElement.nodeName.toLowerCase()==="mat-spinner"&&(r.mode="indeterminate");e&&(e.color&&(r.color=
r.defaultColor=e.color),e.diameter&&(r.diameter=e.diameter),e.strokeWidth&&(r.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&g&&f&&k&&(r._resizeSubscription=g.change(150).subscribe(function(){r.mode==="indeterminate"&&k.run(function(){return f.markForCheck()})}));return r};Y(oI,l2c);h=oI.prototype;h.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=sra(a)||this._document.head;this._attachStyleNode();a.classList.add("mat-progress-spinner-indeterminate-animation")};
h.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};h._getCircleRadius=function(){return(this.diameter-10)/2};h._getViewBox=function(){var a=this._getCircleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};h._getStrokeCircumference=function(){return 2*Math.PI*this._getCircleRadius()};h._getStrokeDashOffset=function(){return this.mode==="determinate"?this._getStrokeCircumference()*(100-this._value)/100:null};h._getCircleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
h._getCircleTransformOrigin=function(a){var b;a=((b=a.currentScale)!=null?b:1)*50;return a+"% "+a+"%"};h._attachStyleNode=function(){var a=this._styleRoot,b=this._diameter,c=oI._diameters,d=c.get(a);if(!d||!d.has(b)){var e=this._document.createElement("style");this._nonce&&(e.nonce=this._nonce);e.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);e.textContent=this._getAnimationText();a.appendChild(e);d||(d=new Set,c.set(a,d));d.add(b)}};
h._getAnimationText=function(){var a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,
""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,this._spinnerAnimationLabel)};h._getSpinnerAnimationLabel=function(){return this.diameter.toString().replace(".","_")};
da.Object.defineProperties(oI.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=Ph(a);this._spinnerAnimationLabel=this._getSpinnerAnimationLabel();this._styleRoot&&this._attachStyleNode()}},strokeWidth:{configurable:!0,enumerable:!0,get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=Ph(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,Ph(a)))}}});oI._diameters=new WeakMap;oI.\u0275fac=function(a){return new (a||oI)(Ye(Jd),Ye(Wh),Ye(Sh,8),Ye(ki,8),Ye(k2c),Ye(ux),Ye(Rh),Ye(Rg),Ye(gzc,8))};
oI.\u0275cmp=D({type:oI,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:11,hostBindings:function(a,b){a&2&&(Kf("aria-valuemin",b.mode==="determinate"?0:null)("aria-valuemax",b.mode==="determinate"?100:null)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode)("mat-id-collision",null),vg("width",b.diameter,"px")("height",b.diameter,"px"),wg("_mat-animation-noopable",b._noopAnimations))},
inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],standalone:!1,features:[Gf],decls:4,vars:8,consts:[["svg",""],["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",
4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(Ad(),K(0,"svg",1,0),E(2,BIa,1,11,"circle",2)(3,CIa,1,9,"circle",3),L());a&2&&(vg("width",b.diameter,"px")("height",b.diameter,"px"),I("ngSwitch",b.mode==="indeterminate"),Kf("viewBox",b._getViewBox()),B(2),I("ngSwitchCase",!0),B(),I("ngSwitchCase",!1))},dependencies:[Gx,Hx],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}@media(forced-colors: active){.mat-progress-spinner circle{stroke:CanvasText}}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],
encapsulation:2,changeDetection:0});var pI=function(a,b){this.elementRef=a;this.renderer=b;this.iconset="common";this.icon="";this.size="small";m2c(this)};pI.prototype.ngOnChanges=function(a){this.icon==="working"?this.iconSpec={kind:"mat-spinner",sizePx:HIa(this.size)}:this.iconset==="material"&&this.icon?this.iconSpec={kind:"mat-icon-font",icon:this.icon}:this.icon?this.iconSpec={kind:"mat-icon",iconset:this.iconset,icon:this.icon,size:this.size}:this.iconSpec=void 0;a.size&&m2c(this)};
var m2c=function(a){var b=a.elementRef.nativeElement;if(b.tagName.toUpperCase()==="FOREIGNOBJECT"){var c=String(HIa(a.size));a.renderer.setAttribute(b,"height",c);a.renderer.setAttribute(b,"width",c)}};da.Object.defineProperties(pI.prototype,{classes:{configurable:!0,enumerable:!0,get:function(){return["ace-icon","ace-icon-size-"+this.size,this.icon?"ace-icon-"+this.icon:""].join(" ")}}});pI.\u0275fac=function(a){return new (a||pI)(Ye(Jd),Ye(di))};
pI.\u0275cmp=D({type:pI,selectors:[["ace-icon"],["foreignObject","ace-icon",""]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.classes)},inputs:{iconset:"iconset",icon:"icon",size:"size"},standalone:!1,features:[bx],decls:1,vars:1,consts:function(){return[[4,"ngIf"],[3,"svgIcon"],["color","primary","aria-label","Loading",3,"diameter","strokeWidth"]]},template:function(a,b){a&1&&E(0,GIa,4,3,"ng-container",0);a&2&&I("ngIf",b.iconSpec)},dependencies:[Fx,Dy,oI],styles:[".ace-icon{display:inline-block;line-height:0;vertical-align:middle;margin-top:-2px}.ace-icon svg{forced-color-adjust:auto}.ace-icon.ace-icon-size-small mat-icon{height:18px;width:18px}.ace-icon.ace-icon-size-medium mat-icon{height:24px;width:24px}.ace-icon.ace-icon-size-large mat-icon{height:32px;width:32px}.ace-icon.ace-icon-size-small .material-icons{font-size:18px}.ace-icon.ace-icon-size-medium .material-icons{font-size:24px}.ace-icon.ace-icon-size-large .material-icons{font-size:32px}.ace-icon .mat-icon{overflow:visible}\n"],
encapsulation:2,changeDetection:0});var n2c=kw(["//ssl.gstatic.com/pantheon/images/","/icons-","_v",".svg"]),qI=function(a){this.mdIconRegistry=a},o2c=function(a,b){var c=Fh(n2c,"common",b,77);a.mdIconRegistry._addSvgIconSetConfig("common-"+b,new qCc(c,null))};qI.\u0275fac=function(a){return new (a||qI)($c(Cy))};qI.\u0275prov=Fc({token:qI,factory:qI.\u0275fac,providedIn:"root"});var p2c=["determinateSpinner"],q2c=new fd("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),rI=function(){this._elementRef=p(Jd);this._defaultColor="primary";this._value=0;this._diameter=100;var a=p(q2c),b=Tra(),c=this._elementRef.nativeElement;this._noopAnimations=b==="di-disabled"&&!!a&&!a._forceAnimations;this.mode=c.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate";this._noopAnimations||b!=="reduced-motion"||c.classList.add("mat-progress-spinner-reduced-motion");
a&&(a.color&&(this.color=this._defaultColor=a.color),a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))};h=rI.prototype;h._circleRadius=function(){return(this.diameter-10)/2};h._viewBox=function(){var a=this._circleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};h._strokeCircumference=function(){return 2*Math.PI*this._circleRadius()};h._strokeDashOffset=function(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null};
h._circleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
da.Object.defineProperties(rI.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}}});rI.\u0275fac=function(a){return new (a||rI)};
rI.\u0275cmp=D({type:rI,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(a,b){a&1&&hg(p2c,5);if(a&2){var c;lg(c=mg())&&(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&&(Kf("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode),xg("mat-"+b.color),vg("width",b.diameter,"px")("height",b.diameter,"px")("--mat-progress-spinner-size",
b.diameter+"px")("--mat-progress-spinner-active-indicator-width",b.diameter+"px"),wg("_mat-animation-noopable",b._noopAnimations)("mdc-circular-progress--indeterminate",b.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ah],diameter:[2,"diameter","diameter",ah],strokeWidth:[2,"strokeWidth","strokeWidth",ah]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(E(0,IIa,2,8,"ng-template",null,0,Mg),K(2,"div",2,1),Ad(),K(4,"svg",3),M(5,"circle",4),L()(),Cd(),K(6,"div",5)(7,"div",6)(8,"div",7),Wf(9,8),L(),K(10,"div",9),Wf(11,8),L(),K(12,"div",10),Wf(13,8),L()()());a&2&&(a=qg(1),B(4),Kf("viewBox",b._viewBox()),B(),vg("stroke-dasharray",b._strokeCircumference(),"px")("stroke-dashoffset",b._strokeDashOffset(),
"px")("stroke-width",b._circleStrokeWidth(),"%"),Kf("r",b._circleRadius()),B(4),I("ngTemplateOutlet",a),B(2),I("ngTemplateOutlet",a),B(2),I("ngTemplateOutlet",a))},dependencies:[Kx],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 sI=function(){};sI.\u0275fac=function(a){return new (a||sI)};sI.\u0275mod=cf({type:sI});sI.\u0275inj=Hc({imports:[Ey]});var tI=function(){};tI.\u0275fac=function(a){return new (a||tI)};tI.\u0275mod=cf({type:tI});tI.\u0275inj=Hc({imports:[Yx,Ey]});var uI=function(a){this.iconService=a;o2c(this.iconService,"small");o2c(this.iconService,"medium")};uI.\u0275fac=function(a){return new (a||uI)($c(qI))};uI.\u0275mod=cf({type:uI});uI.\u0275inj=Hc({imports:[Yx,Fy,tI]});var r2c=kw(["aria-"]),s2c="ace-labelledby-message-container-goog_"+JIa++,vI=new Map,wI=null,MIa=function(a){var b=[a].concat(q(bd.apply(1,arguments)));return function(c,d,e){gsa(b,c,d,e)}}(new fsa(r2c[0].toLowerCase())),xI=function(a){this.document=a};xI.prototype.ngOnDestroy=function(){for(var a=this.document.querySelectorAll("[ace-labelledby-host]"),b=0;b<a.length;b++)t2c(a[b]),a[b].removeAttribute("ace-labelledby-host");wI&&u2c();vI.clear()};
var u2c=function(){wI&&wI.parentNode&&(wI.parentNode.removeChild(wI),wI=null)},t2c=function(a){var b=LIa(a).filter(function(c){return c.indexOf("ace-labelledby-message")!==0});a.setAttribute("aria-labelledby",b.join(" "))},v2c=function(a,b){a=LIa(a);b=(b=vI.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!==-1};xI.\u0275fac=function(a){return new (a||xI)($c(Sh))};xI.\u0275prov=Fc({token:xI,factory:xI.\u0275fac,providedIn:"root"});var w2c=function(a){this.overlayRef=a;this.ariaHiddenSiblings=new Map},yI=function(a){this.overlayContainer=a;this.overlayContextStack=[]},y2c=function(a,b){b=new w2c(b);x2c(a,b);a.overlayContextStack.push(b)},z2c=function(){var a=document;return a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||null},x2c=function(a,b){var c=b.overlayRef.hostElement,d=Qra(a.overlayContainer),e,f;a=[].concat(q(Array.from(((e=d.parentElement)==null?void 0:e.children)||[])),
q(Array.from(((f=c.parentElement)==null?void 0:f.children)||[])));(e=z2c())&&a.push.apply(a,q(Array.from(e.children)));a.forEach(function(g){if(g!==d&&g.nodeName!=="SCRIPT"&&!g.classList.contains("ace-accessible-modal-overlay-do-not-hide")&&g.nodeName!=="STYLE"&&!g.hasAttribute("aria-live")){var k=g.getAttribute("aria-hidden");b.ariaHiddenSiblings.set(g,k==="true"?!0:!1);g===c?g.removeAttribute("aria-hidden"):g.setAttribute("aria-hidden","true")}})},A2c=function(a){a.ariaHiddenSiblings.forEach(function(b,
c){b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")})};yI.\u0275fac=function(a){return new (a||yI)($c(Xh))};yI.\u0275prov=Fc({token:yI,factory:yI.\u0275fac,providedIn:"root"});var B2c=new fd("ace-overlay-default-config");var C2c=["mat-button",""],D2c=["*"],E2c=function(){return".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}@media(forced-colors: active){.mat-button,.mat-flat-button,.mat-raised-button,.mat-icon-button,.mat-fab,.mat-mini-fab{outline:solid 1px}}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"},
F2c="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),G2c=xIa(zIa(yIa(function(a){this._elementRef=a}))),zI=function(a,b,c){var d=G2c.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=m(F2c),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(zI,G2c);h=zI.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.focus=function(a,b){a?Iy(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};h._getHostElement=function(){return this._elementRef.nativeElement};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};
h._hasHostAttributes=function(){var a=this;return bd.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};zI.\u0275fac=function(a){return new (a||zI)(Ye(Jd),Ye(Hy),Ye(ki,8))};
zI.\u0275cmp=D({type:zI,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&&hg(aA,5);if(a&2){var c;lg(c=mg())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:6,hostBindings:function(a,b){a&2&&(Kf("disabled",b.disabled||null)("mat-id-collision",null),wg("_mat-animation-noopable",b._animationMode===
"NoopAnimations")("mat-button-disabled",b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],standalone:!1,features:[Gf],attrs:C2c,ngContentSelectors:D2c,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&&(cg(),K(0,"span",0),dg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),wg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[aA],styles:[E2c()],encapsulation:2,changeDetection:0});var AI=function(a,b,c,d){var e=zI.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};Y(AI,zI);
AI.prototype.ngAfterViewInit=function(){var a=this;zI.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};AI.prototype.ngOnDestroy=function(){zI.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
AI.\u0275fac=function(a){return new (a||AI)(Ye(Hy),Ye(Jd),Ye(ki,8),Ye(Rg,8))};
AI.\u0275cmp=D({type:AI,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&2&&(Kf("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString())("mat-id-collision",null),wg("_mat-animation-noopable",b._animationMode==="NoopAnimations")("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],standalone:!1,features:[Gf],attrs:C2c,ngContentSelectors:D2c,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&&(cg(),K(0,"span",0),dg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),wg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[aA],styles:[E2c()],encapsulation:2,changeDetection:0});var BI=function(){};BI.prototype.ngOnInit=function(){};var PIa=function(a){a.action.kind==="executable"&&a.action.executeCallback()};BI.\u0275fac=function(a){return new (a||BI)};
BI.\u0275cmp=D({type:BI,selectors:[["ace-tooltip-action"]],inputs:{action:"action"},standalone:!1,decls:4,vars:3,consts:[[1,"ace-tooltip-action-button"],[3,"ngSwitch"],["mat-button","","color","primary",3,"click",4,"ngSwitchCase"],["mat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),Uf(1,1),E(2,QIa,2,2,"button",2)(3,RIa,2,4,"a",2),Vf(),L());a&2&&(B(),I("ngSwitch",b.action.kind),B(),I("ngSwitchCase","executable"),B(),I("ngSwitchCase","link"))},dependencies:[Gx,Hx,
zI,AI],styles:["[_nghost-%COMP%]   .ace-tooltip-action-button[_ngcontent-%COMP%]{margin:12px 0 -12px -12px}"],changeDetection:0});var CI=function(a,b,c,d,e){this.tooltipRef=a;this.triggerElement=b;this.ariaDescriber=c;this.elementRef=d;this.id=CI.uniqueIdCounter++;this.overlayId="tooltip_overlay_"+this.id;this.tooltipContentId="tooltip_content_"+this.id;this.destroy=new sf;this.tooltipRef.onChange.pipe(Bf(this.destroy)).subscribe(function(){e.markForCheck()})};
CI.prototype.ngAfterViewInit=function(){this.tooltipRef.aceTooltipInteractive||typeof this.tooltipRef.content!=="string"&&this.tooltipRef.ariaRelationship==="description"&&az(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement)};CI.prototype.isString=function(){return typeof this.tooltipRef.content==="string"};CI.prototype.ngOnDestroy=function(){this.tooltipRef.ariaRelationship==="description"&&bz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement);this.destroy.next()};
CI.uniqueIdCounter=0;CI.\u0275fac=function(a){return new (a||CI)(Ye("tooltipRef"),Ye("triggerElement"),Ye($y),Ye(Jd),Ye(ux))};
CI.\u0275cmp=D({type:CI,selectors:[["cfc-tooltip-overlay"]],hostVars:9,hostBindings:function(a,b){a&2&&(Kf("id",b.overlayId)("role",b.tooltipRef.modal?"dialog":"tooltip")("aria-describedby",b.tooltipRef.modal?b.tooltipContentId:null)("aria-label",b.tooltipRef.modal?b.tooltipRef.aceTooltipInteractiveDialogAriaLabel:null)("aria-modal",b.tooltipRef.modal||null),wg("ace-tooltip-overlay-rich",b.tooltipRef.aceTooltipRich||b.tooltipRef.aceTooltipInteractive)("ace-tooltip-overlay-simple",!b.tooltipRef.aceTooltipRich&&
!b.tooltipRef.aceTooltipInteractive))},standalone:!1,decls:7,vars:5,consts:function(){return[["tooltipWithTemplate",""],["mat-icon-button","","class","mat-icon-button ace-tooltip-close-button","aria-label","Close",4,"ngIf"],[1,"ace-tooltip-content",3,"id"],[4,"ngIf"],["mat-icon-button","","aria-label","Close",1,"mat-icon-button","ace-tooltip-close-button"],["icon","close","size","medium"],[3,"action",4,"ngIf"],[3,"action"],[3,"innerHTML"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]]},
template:function(a,b){a&1&&(E(0,SIa,2,0,"button",1),K(1,"div",2),E(2,UIa,3,2,"ng-container",3)(3,WIa,3,2,"ng-container",3)(4,YIa,2,1,"ng-container",3),L(),E(5,$Ia,1,2,"ng-template",null,0,Mg));a&2&&(I("ngIf",b.tooltipRef.showCloseButton||b.tooltipRef.aceTooltipInteractive),B(),I("id",b.tooltipContentId),B(),I("ngIf",b.isString()),B(),I("ngIf",!1),B(),I("ngIf",b.tooltipRef.content instanceof eg))},dependencies:[Fx,Kx,pI,zI,BI],styles:['ace-tooltip-overlay[_nghost-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]{color:rgba(0,0,0,.66);font-family:"Roboto";font-size:12px;font-weight:400;line-height:16px;display:flex;flex-direction:row-reverse;border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0)}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]{color:#fff;background:#757575;max-width:320px;padding:4px 8px}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{color:#fff}ace-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%]{background:#fff;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);max-height:384px;max-width:384px;overflow-y:auto;padding:16px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{margin:-12px;margin-bottom:-11.9px;margin-left:8px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%]{overflow-wrap:anywhere}@media screen and (hover: none){ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}}'],
changeDetection:0});var DI=[{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}],EI=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"}],FI=[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"start",originY:"top",
overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],H2c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],GI=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],
I2c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J2c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"top"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"}],K2c={top:[].concat(q(FI),q(GI),q(DI),q(EI)),topleft:[].concat(q(H2c),q(I2c),q(DI),q(EI)),
bottom:[].concat(q(GI),q(FI),q(EI),q(DI)),bottomleft:[].concat(q(I2c),q(H2c),q(EI),q(DI)),left:[].concat(q(DI),q(EI),q(FI),q(GI)),right:[].concat(q(EI),q(DI),q(GI),q(FI)),righttop:[].concat(q([{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"}]),q(DI),q(GI),q(FI)),lefttop:[].concat(q([{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom"},
{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"}]),q(DI),q(GI),q(EI)),leftbottom:[].concat(q([{originX:"start",originY:"center",overlayX:"end",overlayY:"top"},{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"center",overlayX:"start",overlayY:"bottom"}]),q(GI),q(J2c),q(FI)),rightbottom:[].concat(q(J2c),q(GI),q(DI),q(FI))};var HI=function(a,b){this.overlay=a;this.scrollDispatcher=b},L2c=function(a,b,c){c=zz(Bz(Fz(a.overlay.position(),b),!1),c);xDc(c,eDc(a.scrollDispatcher,b));b=new ei;b.positionStrategy=c;b.scrollStrategy=a.overlay.scrollStrategies.reposition();return b};HI.\u0275fac=function(a){return new (a||HI)($c(Nz),$c(Th))};HI.\u0275prov=Fc({token:HI,factory:HI.\u0275fac,providedIn:"root"});var II=function(a,b,c,d,e,f){var g=this;this.overlay=a;this.connectedOverlayHelper=b;this.accessibleModalManager=c;this.focusTrapFactory=d;this.ngZone=e;this.defaultConfig=f;this.focusTrap=void 0;this.tooltips=new Map;this.overlayRef=void 0;this.tooltipRenderTimeoutId=this.tooltipHideTimeoutId=0;this.visibleTooltipRef=void 0;this.lastTouchTimestamp=0;this.onDestroy=new sf;this.backdrop=void 0;this.eventsToListen="mouseover mouseout focusin focusout touchstart touchend touchcancel click keydown".split(" ");
document.addEventListener("click",this);e.runOutsideAngular(function(){for(var k=m(g.eventsToListen),l=k.next();!l.done;l=k.next())document.addEventListener(l.value,g)})};II.prototype.ngOnDestroy=function(){for(var a=m(this.tooltips.values()),b=a.next();!b.done;b=a.next())b=b.value,b.disabledTooltip&&b.disableChangeSubscription.unsubscribe();a=m(this.eventsToListen);for(b=a.next();!b.done;b=a.next())document.removeEventListener(b.value,this);M2c(this);this.onDestroy.next();this.onDestroy.complete()};
var N2c=function(a,b){a.visibleTooltipRef===b&&a.hideTooltip();var c;b=(c=b.elementRef)==null?void 0:c.nativeElement;b!=null&&a.tooltips.has(b)&&(c=a.tooltips.get(b),c.enabledTooltip=void 0,c.disabledTooltip||c.enabledTooltip?a.tooltips.set(b,c):a.tooltips.delete(b))},O2c=function(a,b){if(b=cKc(b.target,function(d){if(!d)return!1;var e=a.isDisabled(d);return a.tooltips.has(d)?(d=a.tooltips.get(d),!e&&d.enabledTooltip!==void 0||e&&d.disabledTooltip!==void 0):!1})){var c=a.tooltips.get(b);return a.isDisabled(b)?
c.disabledTooltip:c.enabledTooltip}};II.prototype.isDisabled=function(a){return a.disabled||a instanceof Element&&(a.getAttribute("aria-disabled")==="true"||a.classList.contains("ace-disabled"))};
II.prototype.handleEvent=function(a){var b=this;if(this.visibleTooltipRef&&this.visibleTooltipRef.modal&&a.type==="click"&&a.target.classList.contains("cdk-overlay-backdrop"))this.ngZone.run(function(){b.hideTooltip()});else if(this.overlayRef&&NBb(this.overlayRef.hostElement,a.target))this.ngZone.run(function(){a.type==="mouseover"?clearTimeout(b.tooltipHideTimeoutId):a.type!=="mouseout"||b.visibleTooltipRef&&b.visibleTooltipRef.modal?(a.type==="click"||a.type==="keydown"&&a.key==="Enter")&&dKc(a.target)&&
(a.preventDefault(),a.stopPropagation(),b.hideTooltip()):P2c(b)});else{var c=O2c(this,a);c?this.ngZone.run(function(){a.type==="mouseout"?c.modal||(c.aceTooltipRich||c.aceTooltipInteractive||c.aceTooltipVisibleOnOverlayHover?P2c(b):b.hideTooltip()):a.type==="mouseover"?b.showTooltip(c,a):a.type!=="focusin"||c.aceTooltipInteractive&&!c.aceTooltipAlwaysShowOnFocus?a.type==="focusout"?b.overlayRef&&NBb(b.overlayRef.hostElement,a.relatedTarget)||b.hideTooltip():a.type==="touchstart"?Q2c(b,a,c):a.type===
"touchend"||a.type==="touchcancel"?(b.lastTouchTimestamp=Date.now(),clearTimeout(b.touchStartSetTimeoutId)):(a.type==="click"||a.type==="keydown"&&a.key==="Enter")&&c.aceTooltipInteractive&&!c.aceTooltipDisabled&&c.content&&(b.visibleTooltipRef||b.showTooltip(c,a),R2c(b)):b.showTooltip(c,a)}):this.visibleTooltipRef&&a.type==="click"&&!this.visibleTooltipRef.modal&&this.ngZone.run(function(){b.hideTooltip()})}};
var R2c=function(a){var b=a.visibleTooltipRef,c=a.overlayRef;b.modal||(b.modal=!0,b.onChange.next(),y2c(a.accessibleModalManager,c),S2c(a),M2c(a),a.focusTrap=a.focusTrapFactory.create(c.hostElement),setTimeout(function(){var d;(d=a.focusTrap)==null||KCc(d)}))},Q2c=function(a,b,c){a.lastTouchTimestamp=Date.now();clearTimeout(a.touchStartSetTimeoutId);a.touchStartSetTimeoutId=setTimeout(function(){a.showTooltip(c,b)},251)},P2c=function(a){clearTimeout(a.tooltipHideTimeoutId);a.tooltipHideTimeoutId=
setTimeout(function(){a.hideTooltip()},100)};
II.prototype.showTooltip=function(a,b){var c=this;a.aceTooltipDisabled||!a.content||b.type!=="touchstart"&&Date.now()-this.lastTouchTimestamp<1E3&&(a.aceTooltipTapToShow!==void 0?!a.aceTooltipTapToShow:!a.aceTooltipInteractive&&!a.elementRef.nativeElement.classList.contains("ace-icon"))||(a.showCloseButton=Date.now()-this.lastTouchTimestamp<1E3||b.type==="touchstart",clearTimeout(this.tooltipHideTimeoutId),this.overlayRef&&this.visibleTooltipRef===a||(this.overlayRef&&this.hideTooltip(),a.aceTooltipRenderDebounceMs>
0?(clearTimeout(this.tooltipRenderTimeoutId),this.tooltipRenderTimeoutId=setTimeout(function(){T2c(c,a,b)},a.aceTooltipRenderDebounceMs)):T2c(this,a,b)))};
var T2c=function(a,b,c){b.onShow.next();var d=L2c(a.connectedOverlayHelper,b.elementRef,K2c[b.aceTooltipPosition]);a.overlayRef=a.overlay.create(d);var e;((e=a.defaultConfig)==null?0:e.panelClass)&&a.overlayRef.addPanelClass(a.defaultConfig.panelClass);b.aceTooltipPanelClass&&a.overlayRef.addPanelClass(b.aceTooltipPanelClass);c=Yg({providers:[{provide:"tooltipRef",useValue:b},{provide:"triggerElement",useValue:c.target}]});a.overlayRef.attach(new Hz(CI,void 0,c));a.overlayRef.keydownEvents().pipe(Bf(a.onDestroy)).subscribe(function(f){f.key===
"Escape"&&a.hideTooltip()});a.visibleTooltipRef=b},S2c=function(a){var b=document.createElement("div");b.classList.add("cdk-overlay-backdrop");b.classList.add("cdk-overlay-dark-backdrop");b.classList.add("cdk-overlay-backdrop-showing");var c=a.overlayRef.hostElement;c.insertBefore(b,c.firstChild);a.backdrop=b};
II.prototype.hideTooltip=function(){this.tooltipRenderTimeoutId&&clearTimeout(this.tooltipRenderTimeoutId);if(this.overlayRef){var a=this.visibleTooltipRef;if(a&&a.modal){this.backdrop&&this.backdrop.parentNode&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=void 0);a.modal=!1;a.onChange.next();var b=this.accessibleModalManager,c=b.overlayContextStack[b.overlayContextStack.length-1];if(c&&this.overlayRef===c.overlayRef){do A2c(b.overlayContextStack.pop()),c=b.overlayContextStack[b.overlayContextStack.length-
1];while(c&&!c.overlayRef.hasAttached())}M2c(this);a.focusableElementRef?a.focusableElementRef.nativeElement.focus():a.elementRef.nativeElement.focus()}a&&a.onHide.next();this.overlayRef&&(this.overlayRef.detach(),this.overlayRef.dispose());this.visibleTooltipRef=this.overlayRef=void 0}};var M2c=function(a){a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0)};II.\u0275fac=function(a){return new (a||II)($c(Nz),$c(HI),$c(yI),$c(ez),$c(Rg),$c(B2c,8))};
II.\u0275prov=Fc({token:II,factory:II.\u0275fac,providedIn:"root"});(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!ra.requestAnimationFrame;++c)ra.requestAnimationFrame=ra[b+"RequestAnimationFrame"],ra.cancelAnimationFrame=ra[b+"CancelAnimationFrame"]||ra[b+"CancelRequestAnimationFrame"];if(!ra.requestAnimationFrame){var d=0;ra.requestAnimationFrame=function(e){var f=(new Date).getTime(),g=Math.max(0,16-(f-d));d=f+g;return ra.setTimeout(function(){e(f+g)},g)};ra.cancelAnimationFrame||(ra.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var U2c=[[],[]],V2c=0,W2c=!1,X2c=0,Z2c=function(a,b){var c=X2c++,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,U2c[V2c].push(d));W2c||(W2c=!0,window.requestAnimationFrame(Y2c))}},Y2c=
function(){W2c=!1;var a=U2c[V2c],b=a.length;V2c=(V2c+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 JI=function(a,b,c,d,e,f,g,k){this.tooltipManager=a;this.ariaDescriber=b;this.ariaLabeller=c;this.elementRef=d;this.aceTooltipTemplateData={};this.aceTooltipDisabled=this.aceTooltipRich=!1;this.aceTooltipTapToShow=void 0;this.aceTooltipAlwaysShowOnFocus=this.aceTooltipInteractive=!1;this.onChange=new sf;this.onShow=new sf;this.onHide=new sf;this.isInitialized=!1;this.aceTooltipPosition=(e===void 0?"bottom":e)||"bottom";this.aceTooltipVisibleOnOverlayHover=f!==!1;this.shouldMockAnimationFrames=
!!g;this.aceTooltipRenderDebounceMs=k!=null?k:0};JI.prototype.ngOnDestroy=function(){N2c(this.tooltipManager,this)};JI.prototype.ngOnChanges=function(){this.onChange.next()};
JI.prototype.ngAfterViewInit=function(){var a=this.elementRef.nativeElement;this.isInitialized=!0;$2c(this);if(this.acePreventEventPropagation)for(var b=m(["click","keydown"]),c=b.next();!c.done;c=b.next())a.addEventListener(c.value,function(d){if(!(d instanceof KeyboardEvent&&d.key!=="Enter"&&d.key!=="Space")){d.preventDefault();d.stopPropagation();var e=new d.constructor(d.type,d);Object.defineProperty(e,"target",{writable:!1,value:d.target});document.dispatchEvent(e)}})};
var $2c=function(a,b){var c=typeof b==="string"||a.ariaRelationship==="description"||a.ariaRelationship==="label";if(a.isInitialized&&c){var d;c=function(){var f=a.elementRef.nativeElement;if(!((f.matches?f.matches("[tabindex], a[href], area[href], iframe, input, textarea, select, button"):Array.from(document.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button")).includes(f))&&cJa(f))){var g=g===void 0?!1:g;for(var k=[],l=f.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button"),
r=0;r<l.length;++r){var w=l[r];(cJa(w)||g)&&k.push(w)}f=k[0]||f}d=f};var e=function(){if(typeof b==="string"){bz(a.ariaDescriber,d,b);var f=d;if(v2c(f,b)){var g=vI.get(b);g.referenceCount--;OIa(f,g.messageElement.id);f.removeAttribute("ace-labelledby-host")}typeof b==="string"&&(f=vI.get(b))&&f.referenceCount===0&&(f=(f=vI.get(b))&&f.messageElement,wI&&f&&wI.removeChild(f),vI.delete(b));wI&&wI.childNodes.length===0&&u2c()}if(a.ariaRelationship==="description")a.aceTooltipInteractive||typeof a.content!==
"string"||az(a.ariaDescriber,d,a.content);else if(a.ariaRelationship==="label"&&typeof a.content==="string"){g=a.ariaLabeller;f=d;var k=a.content;if(typeof k!=="string")KIa(k),vI.set(k,{messageElement:k,referenceCount:0});else if(!vI.has(k)){var l=g.document.createElement("div");KIa(l);l.textContent=k;l.setAttribute("aria-hidden","false");if(!wI){var r=g.document.getElementById(s2c);r&&r.parentNode.removeChild(r);wI=g.document.createElement("div");wI.id=s2c;wI.setAttribute("aria-hidden","true");wI.style.display=
"none";g.document.body.appendChild(wI)}wI.appendChild(l);vI.set(k,{messageElement:l,referenceCount:0})}v2c(f,k)||(g=vI.get(k),NIa(f,g.messageElement.id),f.setAttribute("ace-labelledby-host",""),g.referenceCount++)}};a.shouldMockAnimationFrames?(c(),e()):Z2c({measure:c,mutate:e})()}};
da.Object.defineProperties(JI.prototype,{aceTooltip:{configurable:!0,enumerable:!0,set:function(a){var b=this.content;if(a){var c=this.tooltipManager,d=this.elementRef.nativeElement,e=c.tooltips.get(d)||{};e.enabledTooltip=this;c.tooltips.set(d,e);if(a instanceof eg||typeof a==="string")this.content=a;else for(c=m(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,this[d]=a[d];$2c(this,b)}else N2c(this.tooltipManager,this)},get:function(){return this.content}},ariaRelationship:{configurable:!0,
enumerable:!0,get:function(){return this.aceTooltipDisabled?"none":this.elementRef.nativeElement.tagName==="ACE-ICON"||this.elementRef.nativeElement.hasAttribute("mat-icon-button")?this.ariaLabelAttribute?"none":"label":"description"}},ariaLabelAttribute:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement.getAttribute("aria-label")}}});JI.\u0275fac=function(a){return new (a||JI)(Ye(II),Ye($y),Ye(xI),Ye(Jd),Ye(dVc,8),Ye(eVc,8),Ye(fVc,8),Ye(gVc,8))};
JI.\u0275dir=df({type:JI,selectors:[["","aceTooltip",""],["","cfcTooltip",""]],hostVars:6,hostBindings:function(a,b){a&2&&wg("cfc-tooltip",!0)("ace-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)("cfc-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)},inputs:{aceTooltip:"aceTooltip",aceTooltipTemplateData:"aceTooltipTemplateData",aceTooltipRich:"aceTooltipRich",aceTooltipDisabled:"aceTooltipDisabled",aceTooltipPosition:"aceTooltipPosition",aceTooltipTapToShow:"aceTooltipTapToShow",
aceTooltipInteractive:"aceTooltipInteractive",aceTooltipInteractiveDialogAriaLabel:"aceTooltipInteractiveDialogAriaLabel",acePreventEventPropagation:"acePreventEventPropagation",aceTooltipAlwaysShowOnFocus:"aceTooltipAlwaysShowOnFocus",aceTooltipAction:"aceTooltipAction",aceTooltipPanelClass:"aceTooltipPanelClass"},standalone:!1,features:[bx]});var KI=function(){};KI.\u0275fac=function(a){return new (a||KI)};KI.\u0275mod=cf({type:KI});KI.\u0275inj=Hc({imports:[Yx,Qz]});var LI=function(){};LI.\u0275fac=function(a){return new (a||LI)};LI.\u0275mod=cf({type:LI});LI.\u0275inj=Hc({imports:[dA,Ey]});var MI=function(){};MI.\u0275fac=function(a){return new (a||MI)};MI.\u0275mod=cf({type:MI});MI.\u0275inj=Hc({imports:[Yx,KI,uI,LI,Qz,bD]});var a3c=function(){gG.apply(this,arguments)};Y(a3c,gG);
a3c.prototype.drawInternal=function(a){if(a.currentValue){var b=a.currentValue;a=b.data;var c=b.state;b=b.config;if(a&&c&&b)if(c.highlightedAnnotation){if(this.canvas.style.left="0px",this.canvas.style.top="0px",bl(this.canvas,this.base,c.chartHeight,c.chartWidth),a=a.find(function(f){return f.annotationId===c.highlightedAnnotation})){var d=a.start;a=a.end;b=c.domainMap(d);d=c.domainMap(a!=null?a:d);this.ctx.fillStyle=Zk("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);this.ctx.strokeStyle=
Zk("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);var e={top:c.bodyTop,bottom:c.bodyBottom,left:c.bodyLeft,right:c.bodyRight};b>e.right||(a===void 0||d-b<1?jJa(this.ctx,b,e):eJa(this.ctx,b,d,e))}}else al(this.canvas,void 0,this.base)}};var b3c=new ik({getKey:function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},getSelector:function(a,b){return le([b.getSelector(rTc,a),b.getSelector(mG,a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return Zj(c,d,function(e,f){if(e!==void 0&&f!==void 0&&(f=Xk(Object.assign({},f,{unit:"ms_since_epoch"}),e.margins.left,e.width-e.margins.right)))return{chartHeight:e.height,chartWidth:e.width,bodyTop:e.margins.top,bodyBottom:e.height-e.margins.bottom,
bodyLeft:e.margins.left,bodyRight:e.width-e.margins.right,domainMap:f}})}))}});var c3c=function(){gG.apply(this,arguments);this.lastAnnotationSpans=[];this.lastBodyBottom=this.lastBodyTop=null;this.minAnnotationWidth=0};Y(c3c,gG);
c3c.prototype.drawInternal=function(a){if(a.currentValue){var b=a.currentValue,c=b.data;a=b.state;var d=b.config;if(a&&d){b=[];var e=1,f={top:a.bodyTop,bottom:a.bodyBottom,left:a.bodyLeft,right:a.bodyRight};this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.chartHeight,a.chartWidth);var g=[],k;c=(k=c==null?void 0:c.sort(function(R,V){return R.start-V.start}))!=null?k:[];k=void 0;c=m(c);for(var l=c.next();!l.done;l=c.next()){var r=l.value,w=r.start,x=r.end,C=r.isOngoing;
l=r.annotationId;var H=d.styleProvider.getStyle(r.style);r=w=a.domainMap(w);H=H.color;this.ctx.fillStyle=Zk(H,this.base);this.ctx.strokeStyle=Zk(H,this.base);w>f.right||(x!==void 0||C?(r=C?a.bodyRight+1:a.domainMap(x),r-w<this.minAnnotationWidth&&w<f.right&&r>f.left&&(x=(this.minAnnotationWidth-r+w)/2,w-x<f.left?(x=w-f.left+x,w=f.left,r=Math.min(r+x,f.right)):r+x>f.right?(x=f.right-r+x,r=f.right,w=Math.max(w-x,f.left)):(w-=x,r+=x)),d.newVisuals?dJa(this.ctx,w,r,f):fJa(this.ctx,this.base,w,r,f)):d.newVisuals?
d.pointClustering?k!==void 0&&w-k.x0<3?(k.count++,k.x1=w):(C=x=void 0,e=Math.max(e,(C=(x=k)==null?void 0:x.count)!=null?C:1),k={count:1,colors:new Set([H]),x0:w,x1:w},b.push(k)):hJa(this.ctx,w,f):gJa(this.ctx,this.base,w,f),g.push({annotationId:l,left:Math.max(w-2,a.bodyLeft),right:Math.min(r+2,a.bodyRight)}))}if(d.newVisuals&&d.pointClustering){var J,O;e=Math.max(e,(O=(J=k)==null?void 0:J.count)!=null?O:1);J=m(b);for(O=J.next();!O.done;O=J.next())O=O.value,e===1&&hJa(this.ctx,O.x0,f),d=Math.ceil(b.length/
(f.right-f.left)),d=d<.1?.375:d<.2?.3:d<.3?.225:.15,iJa(this.ctx,this.base,(O.x0+O.x1)/2,f,O.colors,O.count/e*(.75-d)+d)}this.lastBodyTop=a.bodyTop;this.lastBodyBottom=a.bodyBottom;this.lastAnnotationSpans=g.sort(function(R,V){return R.left-V.left})}}};
var d3c=function(a,b){var c=b.x;b=b.y;if(!a.lastBodyTop||b<a.lastBodyTop||!a.lastBodyBottom||b>a.lastBodyBottom)return[];b=[];a=m(a.lastAnnotationSpans);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.annotationId,f=d.right;c>=d.left&&c<=f&&b.push(e)}return b};var e3c={style:"default",color:"var(--ac-sys-color-annotation-on-surface, #202124)",icon:"info"},NI=function(){this.fallbackAnnotationStyle=e3c;this.annotationStyleRegistry=new Map;this.annotationIconRegistry=new Map;this.stylesUpdated$=this.stylesUpdated=new sf;this.setStyles(hVc);for(var a=m(iVc.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.annotationIconRegistry.set(b,iVc.get(b));this.stylesUpdated.next()};h=NI.prototype;h.setIcon=function(a,b){this.annotationIconRegistry.set(a,b);this.stylesUpdated.next()};
h.getIcon=function(a){var b;return(b=this.annotationIconRegistry.get(a))!=null?b:""};h.setStyle=function(a,b){this.annotationStyleRegistry.set(a,b);this.stylesUpdated.next()};h.setStyles=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.annotationStyleRegistry.set(b.style,b);this.stylesUpdated.next()};h.getStyle=function(a){var b;return(b=this.annotationStyleRegistry.get(a))!=null?b:this.fallbackAnnotationStyle};NI.\u0275fac=function(a){return new (a||NI)};
NI.\u0275prov=Fc({token:NI,factory:NI.\u0275fac,providedIn:"root"});var f3c=["projectedContent"],uJa=function(a,b){return{left:a,top:b}},vJa=function(a){return{$implicit:a}},wJa=function(a){return{width:a}},pJa=function(a,b){return{fill:a,left:b}},OI=function(a,b,c,d,e){sG.call(this,a,b,c,!0);var f=this;this.annotationStyleService=d;this.ngZone=e;this.data=null;this.tooltipPosition="bottom";this.pointClustering=this.newVisuals=!1;this.dataSubject=new Nj(this.data);this.iconStrokeColor="var(--ac-sys-color-annotation-surface, #FFF)";this.configSubject=new Nj({newVisuals:this.newVisuals,
pointClustering:this.pointClustering,styleProvider:this.annotationStyleService});this.highlightedAnnotationSubject=new Nj(null);this.annotationClusterSubject=new Nj([]);this.annotationClusterObservable=this.annotationClusterSubject.pipe(of(0),xk(this.ngZone));this.iconSize=20;this.groupedIconOffset=8;this.ve={AnnotationButton:213894};this.annotationView=new c3c(a.nativeElement);this.annotationHighlightView=new a3c(a.nativeElement);this.redrawableViews=[this.annotationView,this.annotationHighlightView];
d.stylesUpdated$.pipe(Bf(this.destroyed)).subscribe(function(){f.configSubject.next({newVisuals:f.newVisuals,pointClustering:f.pointClustering,styleProvider:f.annotationStyleService})})};Y(OI,sG);OI.\u0275dir=sG.\u0275dir;
OI.prototype.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});var b=this.selectorFactoryToObservable(b3c);le([this.dataObservable,b,this.configObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;var f;return{data:c.currentValue,config:(f=d.currentValue)!=null?f:null,state:e!=null?e:null}}),zf(null),vf(),A(gk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=
m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.annotationView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([this.dataObservable,b,this.highlightedAnnotationSubject,this.configObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:c.currentValue,
config:d.currentValue,state:e?Object.assign({},e,{highlightedAnnotation:f}):null}}),zf(null),vf(),A(gk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.newVisuals&&a.annotationHighlightView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([this.dataObservable,
this.scopeObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return{data:c.currentValue,scope:d}}),zf(null),vf(),A(gk),Bf(this.destroyed)).subscribe(function(c){var d,e;a.chart.scheduleChangeHandler({mergeKey:(((d=c.currentValue)==null?void 0:d.scope.layerId)||a.layerId)+"-setMarginRequirement",changes:c,componentHandler:function(f){var g;if(f.currentValue){var k=f.currentValue;f=k.scope;k=((g=k.data)==null?0:g.length)?a.newVisuals?28:33:0;g=[aG({chartGroupId:f.chartGroupId,
chartId:f.chartId,layerId:f.layerId,reservedMargins:{top:k}})]}else g=[];return g},scope:((e=c.currentValue)==null?void 0:e.scope)||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([this.dataObservable,b,this.configObservable,this.scopeObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:c.currentValue,config:f.currentValue,scope:d,state:e!=null?e:null}}),zf(null),
vf(),A(gk),Bf(this.destroyed)).subscribe(function(c){var d,e;a.chart.scheduleChangeHandler({mergeKey:(((d=c.currentValue)==null?void 0:d.scope.layerId)||a.layerId)+"-drawIcons",changes:c,componentHandler:function(f){a.newVisuals?(f=lJa(f,a.annotationStyleService,a.severityMap),a.annotationClusterSubject.next(f)):(f=nJa(f,a.annotationStyleService),a.annotationClusterSubject.next(f))},scope:((e=c.currentValue)==null?void 0:e.scope)||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,
yAxisId:a.yAxisId}})});NF(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed)};OI.prototype.onMouseMove=function(a){var b=[];a=tG(this,a);a=d3c(this.annotationView,a);var c;b.push(cZc({chartId:this.chartId,layerId:this.layerId,annotations:(c=a==null?void 0:a.map(function(d){return{annotationId:d}}))!=null?c:[]}));return b};
var tJa=function(a,b,c){c===void 0?(sJa(a,b),b.annotationIds.length===1&&(a.highlightedAnnotation=b.annotationIds[0])):a.highlightedAnnotation=b.annotationIds[c]},sJa=function(a,b){a.scopeObservable.pipe(nf(1)).subscribe(function(c){a.store.dispatch(bZc({chartId:c.chartId,layerId:c.layerId,annotations:b.annotationIds.map(function(d){return{annotationId:d}})}))})};OI.prototype.ngAfterViewInit=function(){for(var a=m(this.data||[]),b=a.next();!b.done&&!b.value.annotationContent;b=a.next());};
OI.prototype.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);"newVisuals"in a&&(this.iconSize=this.newVisuals?18:20);("styles"in a||"newVisuals"in a||"pointClustering"in a)&&this.configSubject.next({newVisuals:this.newVisuals,pointClustering:this.pointClustering,styleProvider:this.annotationStyleService})};
OI.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[wVc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};
da.Object.defineProperties(OI.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.annotationStyleService.setStyles(a)}},highlightedAnnotation:{configurable:!0,enumerable:!0,set:function(a){this.highlightedAnnotationSubject.next(a)},get:function(){return this.highlightedAnnotationSubject.value}},minWidth:{configurable:!0,enumerable:!0,set:function(a){this.annotationView.minAnnotationWidth=Math.max(0,a)}}});OI.\u0275fac=function(a){return new (a||OI)(Ye(Jd),Ye(LF),Ye(ZF),Ye(NI),Ye(Rg))};
OI.\u0275cmp=D({type:OI,selectors:[["ac-annotation"]],viewQuery:function(a,b){a&1&&hg(f3c,5);if(a&2){var c;lg(c=mg())&&(b.projectedContent=c.first)}},hostAttrs:[1,"composable-layer","ac-annotation"],inputs:{data:"data",styles:"styles",tooltipContentTemplate:"tooltipContentTemplate",clusterActionTemplate:"clusterActionTemplate",tooltipPosition:"tooltipPosition",newVisuals:"newVisuals",pointClustering:"pointClustering",severityMap:"severityMap",highlightedAnnotation:"highlightedAnnotation",minWidth:"minWidth"},
features:[Gf,bx],ngContentSelectors:["*"],decls:6,vars:3,consts:function(){return[["tooltipContent",""],["projectedContent",""],["projectedTooltipContents",""],["mat-button","","aria-label","Click to view annotation detail","class","annotation-cluster-button","aceTooltipPanelClass","ac-annotation-tooltip",3,"annotation-cluster-button","new-annotation-cluster-button","ngStyle","aceTooltip","aceTooltipTemplateData","aceTooltipInteractive","aceTooltipPosition","ve","veClick","click","mouseenter","mouseleave",
4,"ngFor","ngForOf"],["mat-button","","aria-label","Click to view annotation detail","aceTooltipPanelClass","ac-annotation-tooltip",1,"annotation-cluster-button",3,"click","mouseenter","mouseleave","ngStyle","aceTooltip","aceTooltipTemplateData","aceTooltipInteractive","aceTooltipPosition","ve","veClick"],[1,"button-content"],["class","annotation-count",4,"ngIf"],[1,"icon-group",3,"ngStyle"],[4,"ngFor","ngForOf"],[1,"annotation-count"],[3,"ngStyle"],["viewBox","0 0 24 24"],"stroke-width 3 fill-rule evenodd clip-rule evenodd".split(" "),
["fill-rule","evenodd","clip-rule","evenodd"],[4,"ngIf","ngIfElse"],[1,"cluster-content",3,"mouseover","mouseout"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]]},template:function(a,b){a&1&&(cg(),E(0,xJa,6,22,"button",3),T(1,"async"),E(2,KJa,3,2,"ng-template",null,0,Mg)(4,LJa,1,0,"ng-template",null,1,Mg));a&2&&I("ngForOf",U(1,1,b.annotationClusterObservable))},dependencies:[cB,Ex,Fx,Jx,Gx,Hx,Ix,Kx,MI,JI,aD,Lx],styles:['.composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]{position:absolute;line-height:18px;font-size:12px;padding:3px 4px;min-width:unset;z-index:9;background:rgba(0,0,0,0);font-weight:700;color:var(--ac-sys-color-annotation-on-surface-variant, #4f4f4f);height:26px}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]{position:relative;height:20px}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;height:20px;width:20px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]{position:absolute;line-height:18px;font-size:12px;padding:2px 3px;min-width:unset;z-index:9;background:rgba(0,0,0,0);font-weight:700;color:var(--ac-sys-color-annotation-on-surface-variant, #4f4f4f);height:26px;border:1px solid var(--ac-sys-color-annotation-outline, rgba(0, 0, 0, 0.125))}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]{position:relative;height:18px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;height:18px;width:18px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]     span.mat-mdc-button-touch-target{height:unset}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]::before{content:"";width:0px;height:0px;position:absolute;z-index:9;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-top:4px solid var(--ac-sys-color-annotation-outline, rgba(0, 0, 0, 0.125));border-bottom:4px solid rgba(0,0,0,0);text-align:center;top:100%}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]::after{content:"";width:0px;height:0px;position:absolute;z-index:9;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-top:4px solid var(--ac-sys-color-annotation-tail, #fff);border-bottom:4px solid rgba(0,0,0,0);text-align:center;top:calc(100% - 1px)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-overlay-simple,   .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-overlay-rich{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);background:var(--ac-sys-color-extensions-surface, #fff)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);background:var(--ac-sys-color-extensions-surface, #fff)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button:hover .mat-button-ripple{background:var(--ac-sys-color-extensions-neutral, #bdbdbd);z-index:0}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button:hover .mat-button-wrapper{position:relative;z-index:1}/*# sourceMappingURL=ac_annotation.css.map */'],
changeDetection:0});var PI=function(a,b,c){sG.call(this,a,b,c);this.color="transparent";this.canvas=document.createElement("canvas");this.marginTop=this.marginLeft=this.width=this.height=0;this.canvas.setAttribute("aria-hidden","true");this.canvas.style.position="absolute";b=this.canvas.getContext("2d");if(!b)throw Error("Ec");this.ctx=b;a.nativeElement.appendChild(this.canvas)};Y(PI,sG);PI.\u0275dir=sG.\u0275dir;h=PI.prototype;h.ngOnInit=function(){sG.prototype.ngOnInit.call(this);this.setup({})};
h.drawInternal=function(){this.canvas.style.left=this.marginLeft+"px";this.canvas.style.top=this.marginTop+"px";bl(this.canvas,this.canvas,this.height,this.width,this.color)};h.onResizeChange=function(a,b){var c;if(a=b==null?void 0:(c=b.state)==null?void 0:c.resize)this.marginLeft=a.margins.left,this.marginTop=a.margins.top,this.width=a.width-a.margins.left-a.margins.right,this.height=a.height-a.margins.top-a.margins.bottom,this.drawInternal()};
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);"color"in a&&this.drawInternal()};h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this)};PI.\u0275fac=function(a){return new (a||PI)(Ye(Jd),Ye(LF),Ye(ZF))};PI.\u0275cmp=D({type:PI,selectors:[["ac-background"]],inputs:{color:"color"},features:[Gf,bx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var g3c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalCompositeOperation:"source-over"},QI=function(){hG.apply(this,arguments);this.fullDrawDebounceId=null};Y(QI,hG);h=QI.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){fG(c,c.canvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){ol(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.xAxis,f=c.yAxis;c=c.brush;if(!(d&&e&&f&&c))return null;var g=d.width,k=d.height,l=d.margins.top,r=d.height-d.margins.bottom,w=d.margins.left,x=d.width-d.margins.right,C=pl(f,l,r,b?b.unit:null),H=Xk(e,w,x,b==null?void 0:b.xAxisUnit);e=Yk(e,w,x,b==null?void 0:b.xAxisUnit);return H&&C&&e?{data:b,config:a,colorMap:function(){return"var(--ac-sys-color-chart-on-surface, #000)"},marginTop:d.margins.top,marginLeft:d.margins.left,
canvasWidth:g,canvasHeight:k,bodyTop:l,bodyBottom:r,bodyLeft:w,bodyRight:x,bodyWidth:x-w,bodyHeight:r-l,dataMap:function(J){var O=J.x,R=J.y0,V=J.y1;if(R==null||V==null)throw Error("Jc`"+JSON.stringify(J));return[H(O.valueOf()),C(R),C(V)]},inverseDomainMap:e,brushing:c.brushing||!1}:null};
h.drawInternal=function(a){if(a=this.unpack(a)){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.data&&a.data.series.length>0&&a.data.series.length<=2){b=a.data;a:{var c=b.series;switch(c.length){case 1:c=m(c).next().value;c=MJa(NJa(c),c);break a;
case 2:var d=m(c);c=d.next().value;d=d.next().value;c=MJa(c,d);break a;default:throw Error("Ic");}}b=Object.assign({},b,{series:[c]}).series}b.length&&h3c(this,b,a.dataMap,a.colorMap,a.config)}};
var h3c=function(a,b,c,d,e){a.ctx.save();$k(a.ctx,g3c,a.base);if(e.showBand){b=m(b);for(var f=b.next(),g={};!f.done;g={color$jscomp$20:void 0},f=b.next())switch(f=f.value,g.color$jscomp$20=d(f),e.pointConnectionMethod){case "always":i3c(f,function(k){return function(l){a.drawLineAlwaysConnect(l,c,k.color$jscomp$20)}}(g),e.outputPeriodMs||Infinity,OJa);break;case "zero_fill":i3c(f,function(k){return function(l){a.drawLineZeroFill(l,c,k.color$jscomp$20,e.outputPeriodMs)}}(g),e.outputPeriodMs||Infinity,
OJa);break;case "never":throw Error("Kc");default:a.drawLineGapDetection(f,c,g.color$jscomp$20,e.outputPeriodMs)}}a.ctx.restore()};QI.prototype.drawLineGapDetection=function(a,b,c,d){var e=this;i3c(a,function(f){e.drawLineAlwaysConnect(f,b,c)},d||Infinity,function(f,g,k){return Sl(f,g,k)||OJa(f,g,k)})};
var i3c=function(a,b,c,d){d=d===void 0?Sl:d;c=c!=null?c:Infinity;c=c===void 0?Infinity:c;d=d===void 0?Sl:d;var e=a.shiftedData;d=PJa(a.data,c,d);c=e&&PJa(e,c);c=c===void 0?[]:c;d=m(d);for(e=d.next();!e.done;e=d.next())b(Object.assign({},a,{data:e.value}));d=m(c);for(c=d.next();!c.done;c=d.next())b(Object.assign({},a,{shiftedData:c.value}))};QI.prototype.drawLineAlwaysConnect=function(a,b,c){this.drawLineZeroFill(a,b,c,Infinity)};
QI.prototype.drawLineZeroFill=function(a,b,c,d,e){e=e===void 0?{}:e;a=a.data;if(a.length){d=d||Infinity;this.ctx.save();this.ctx.beginPath();var f=Zk(c,this.base);typeof f==="string"&&f.length===7?(this.ctx.strokeStyle=f+"60",this.ctx.fillStyle=f+"20"):(this.ctx.strokeStyle=c,this.ctx.fillStyle=c);c=a[0];f=m(cl(b(c),e.lineWidth));c=f.next().value;f.next();f=f.next().value;this.ctx.moveTo(c,f);for(var g=1;g<a.length;g++){var k=a[g-1];c=a[g];var l=m(cl(b(c),e.lineWidth));f=l.next().value;l.next();l=
l.next().value;if(k&&Sl(k,c,d)){k=new Date(k.x.valueOf()+d);for(var r={x:k,y:0,y0:0,y1:0};k<c.x;k.setMilliseconds(k.getMilliseconds()+d)){var w=m(cl(b(r),e.lineWidth)),x=w.next().value;w=w.next().value;this.ctx.lineTo(x,w)}}this.ctx.lineTo(f,l)}for(c=a.length-1;c>=0;c--){k=a[c+1];f=a[c];l=m(cl(b(f),e.lineWidth));g=l.next().value;l=l.next().value;if(k&&Sl(k,f,d))for(k=new Date(k.x.valueOf()-d),r={x:k,y:0,y0:0,y1:0};k>f.x;k.setMilliseconds(k.getMilliseconds()-d))w=m(cl(b(r),e.lineWidth)),x=w.next().value,
w=w.next().value,this.ctx.lineTo(x,w);this.ctx.lineTo(g,l)}this.ctx.stroke();this.ctx.fill();this.ctx.restore()}};QI.prototype.getValuesAtPosition=function(a,b){a=this.unpack(a);if(a==null||!a.data)return null;var c;b=(c=a.inverseDomainMap(b.x-a.marginLeft))==null?void 0:c.valueOf();return El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection)};
QI.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);return a!=null&&a.data?El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection):null};var RI=function(a,b,c){sG.call(this,a,b,c);this.showBand=!0;this.loading=!1;this.outputPeriodMsInternal=this.alignmentPeriodMs=this.error=null;this.pointConnectionMethod="gap_detection";this.useLegacyGapDetection=!1;this.configSubject=new Nj({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});this.dataSubject=new Nj(null);this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=
new wf(1);this.bandView=new QI(a.nativeElement);this.views.push(this.bandView)};Y(RI,sG);RI.\u0275dir=sG.\u0275dir;h=RI.prototype;
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({configObservable:this.configSubject,dataObservable:this.dataSubject});this.updateHoverValuesTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});NF(this.chart,"chart",function(b){a.onMouseMove(b);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});
this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onClick(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];("outputPeriodMs"in a||"pointConnectionMethod"in a||"alignmentPeriodMs"in a||"showBand"in a||"useLegacyGapDetection"in a)&&this.configSubject.next({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});"loading"in a&&b.push(wG(this,this.loading,"Band"));"error"in a&&b.push(xG(this,this.error,this.hasData()));MF(this.chart,
b)};
h.onDataChange=function(a,b){var c=a.currentValue,d=b.scope,e=b.state,f=[];if(a.previousValue!==c){if(e){var g=e.xAxis;g&&(this.yAxisRequirement=XAa(c,g.min,g.max))}this.xAxisRequirement=aBa(a.currentValue);f.push(uG(this,this.yAxisRequirement));f.push(vG(this,this.xAxisRequirement));f.push(oH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}))}var k,
l;(e==null?0:(k=e.xAxisPin)==null?0:k.xPos)&&(e==null?0:(l=e.xAxisPin)==null?0:l.locked)&&(a=this.bandView.getValuesAtTime(b,e.xAxisPin.xPos),(a=this.updateTimeSeriesValues(a,0))&&f.push(a));f.length&&this.store.dispatch(dk({actions:f}))};h.onXAxisChange=function(a,b){b=b.data;var c=a.currentValue,d=[];Uk(a)&&c&&(this.yAxisRequirement=XAa(b,c.min,c.max),d.push(uG(this,this.yAxisRequirement)));return d};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.bandView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};h.onClick=function(a){var b=this,c=tG(this,a);this.withLatest(function(d){d=b.bandView.getValuesAtPosition(d,c);(d=b.updateTimeSeriesValues(d,2))&&b.store.dispatch(d)})};
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){this.isMouseOver&&(a=tG(this,a),this.updateHoverValuesTriggerSubject.next(a))};h.onMouseLeave=function(){this.isMouseOver=!1};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.bandView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&b.store.dispatch(c)})};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;a&&(c=mH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:a.values,timeRange:a.timeRange}))});return c};h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null),vG(this,null),xG(this,null,!1),wG(this,!1,"Band")])};
da.Object.defineProperties(RI.prototype,{data:{configurable:!0,enumerable:!0,set:function(a){this.dataSubject.next(a)}},outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}}});RI.\u0275fac=function(a){return new (a||RI)(Ye(Jd),Ye(LF),Ye(ZF))};
RI.\u0275cmp=D({type:RI,selectors:[["ac-band"]],hostAttrs:[1,"composable-layer","ac-band"],inputs:{data:"data",showBand:"showBand",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",pointConnectionMethod:"pointConnectionMethod",useLegacyGapDetection:"useLegacyGapDetection"},features:[Gf,bx],decls:0,vars:0,template:function(){},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}\n/*# sourceMappingURL=ac_band.css.map */"],
changeDetection:0});var j3c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:0},k3c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},SI=function(a,b){hG.call(this,a);this.queueService=b;this.drawnRects=[];this.drawnStacks=new Map;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.gutterRatioInternal=.35;this.enableManualLatencyTracking=!1;this.forceMinHeight=
0;this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(SI,hG);h=SI.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),iG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){fG(c,c.canvas);fG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){ol(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){SBa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.getValuesAtTime=function(a,b){if(!b)return null;var c;a=(c=a.data)==null?void 0:c.series;if(!a)return null;var d=null;c=a.map(function(e){var f=l3c(b,e);if(f&&!d){var g;d={x:f.x.valueOf(),x0:(g=f.x0)==null?void 0:g.valueOf()}}return{value:f,seriesId:e.id}});return d?{values:c,timeRange:d}:null};var l3c=function(a,b){return(b=b.data.find(function(c){return c.x0==null||c.x==null?!1:c.x0.valueOf()<=a&&c.x.valueOf()>a}))?b:null};
SI.prototype.getValuesAtXPosition=function(a,b){a:{a=this.drawnRects;for(var c=0,d=a.length-1;c<=d;){var e=Math.floor((d+c)/2),f=a[e],g=Math.ceil(this.halfGutterInverseRatio*f.width),k=f.left+f.width+g;if(b>=f.left-g){if(b<k){b=a[e];break a}c=e+1}else d=e-1}b=null}b=b?this.getStackForRect(b):null;if(!b)return null;var l,r,w;return{values:m3c(b),timeRange:{x:(l=b[0])==null?void 0:l.metadata.point.x.valueOf(),x0:(r=b[0])==null?void 0:(w=r.metadata.point.x0)==null?void 0:w.valueOf()}}};
var m3c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=SI.prototype;h.getRectAtPosition=function(a){return RJa(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnStacks.get(a.left)||null};
h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=m(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpackForClearing=function(a){var b=a.data,c=a.state,d=a.config;if(!c||!d)return null;var e=c.resize;if(!e)return null;a=e.width;var f=e.height,g=e.margins.top,k=e.height-e.margins.bottom,l=e.margins.left;e=e.width-e.margins.right;c=!b||!d.colorStrategy.isReady||d.colorStrategy.isReady(b,c);return{data:b,canvasWidth:a,canvasHeight:f,bodyLeft:l,bodyTop:g,bodyBottom:k,bodyRight:e,bodyWidth:e-l,bodyHeight:k-g,bounds:{top:g,right:e,bottom:k,left:l},isColorMapReady:c}};
h.unpackForDrawing=function(a){var b=this.unpackForClearing(a),c=a.scope,d=a.data,e=a.state,f=a.config;if(!e||!f||!b)return null;a=e.xAxis;var g=e.yAxis,k=e.brush,l=e.seriesSelection,r=b.bodyLeft,w=b.bodyRight;if(!(a&&g&&k&&l))return null;var x=pl(g,b.bodyTop,b.bodyBottom,d?d.unit:null);g=Xk(a,r,w,d==null?void 0:d.xAxisUnit);r=Yk(a,r,w,d==null?void 0:d.xAxisUnit);if(a.min===null||a.max===null||!g||!x||!r)return null;c=l.byLayer.entities[c.layerId];x=this.createPointToRectMap(g,x);var C=f.colorStrategy;
d=C.getShape&&(d==null?0:d.series.length)&&d.series.length>1?function(O){return C.getShape(O,e)}:null;l=Object.values(l.byLayer.entities).filter(function(O){return!!O}).some(function(O){return O.selectedSeries.length||O.hoveredSeries.length});var H,J;return Object.assign({},b,{colorMap:function(O){return Fl(f.colorStrategy.getColor(O,e))},shapeMap:d,shapeBoundingBox:f.colorStrategy.shapeBoundingBox,hideSymbolShapes:f.hideSymbolShapes,pointToRectMap:x,brushing:k.brushing||!1,hoveredSeries:(c==null?
void 0:c.hoveredSeries)||[],selectedSeries:(c==null?void 0:c.selectedSeries)||[],anySeriesSelectedOrHovered:l,inverseDomainMap:r,domainMap:g,xAxisMin:(H=a==null?void 0:a.min)!=null?H:null,xAxisMax:(J=a==null?void 0:a.max)!=null?J:null,gutterRatio:f.gutterRatio,verticalBarPadding:f.verticalBarPadding})};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.drawnRects=[];this.drawnStacks.clear();var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){this.gutterRatio=a.gutterRatio!==void 0?a.gutterRatio:.35;var c=!a.brushing&&a.anySeriesSelectedOrHovered,d=Object.assign({},j3c,{globalAlpha:c?.15:1});this.shapeCtx.globalAlpha=c?.15:1;var e;c=(e=a.data)==null?void 0:e.series;if(c==null?0:c.length){if(e=a.shapeMap){for(var f=new Set,g=m(c),k=g.next();!k.done;k=
g.next())f.add(e(k.value));c.length>f.size&&(e=null)}this.drawBars(c,a.pointToRectMap,a.colorMap,e,a.shapeBoundingBox,a.bounds,d,void 0,a.verticalBarPadding,a.hideSymbolShapes)}d=Array.from(this.drawnStacks.keys()).sort(function(l,r){return l-r});d=m(d);for(c=d.next();!c.done;c=d.next())c=c.value,e=this.drawnStacks.get(c)||[],e.sort(function(l,r){return l.top-r.top}),this.drawnStacks.set(c,e),this.drawnRects=this.drawnRects.concat(e);a.xAxisMin!==null&&a.xAxisMax!==null&&eG(this,a.xAxisMin,a.xAxisMax);
a=performance.now();this.enableManualLatencyTracking&&dG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,l,r){this.ctx.save();$k(this.ctx,g,this.base);$k(this.shapeCtx,k3c,this.base);g=a.map(function(ua){return[ua.id,ua.data.map(function(ka,Ga){return b(ka,ua,Ga)})]});TJa(SJa(g),l);a=k?a.filter(function(ua){return k.has(ua.id)}):a;a=m(a);l=a.next();for(var w={};!l.done;w={series$jscomp$67:void 0,rects:void 0},l=a.next()){w.series$jscomp$67=l.value;l=c(w.series$jscomp$67);this.ctx.fillStyle=Zk(l,this.base);this.shapeCtx.fillStyle=Zk(l,this.base);l=d&&d(w.series$jscomp$67);
w.rects=[];var x=g.findIndex(function(ua){return function(ka){return m(ka).next().value===ua.series$jscomp$67.id}}(w));x>-1&&(w.rects=g[x][1],g.splice(x,1));if(k){x=k.get(w.series$jscomp$67.id);var C=void 0,H=void 0;if((C=x)==null?0:(H=C.datumIndices)==null?0:H.length)w.rects=x.datumIndices.map(function(ua){return function(ka){return ua.rects[ka.index]}}(w))}C=void 0;x=!((C=k)==null||!C.get(w.series$jscomp$67.id));H=C=null;w=m(w.rects);for(var J=w.next();!J.done;J=w.next()){J=J.value;this.ctx.fillRect(J.left,
J.top,J.width,J.height);if(l){var O=QJa(J,e),R=O.x,V=O.y,ca=O.shapeWidth,oa=O.shapeHeight;O=O.scalingFactor;C===null&&(C=ca<=10);C||r||!(x||oa<J.height)||this.drawShapeWithinBounds(R,V,f,l,O)}R=J.left+J.width;R<=f.right&&(H===null||H.left+H.width<R)&&(H=J);this.drawnStacks.set(J.left,(this.drawnStacks.get(J.left)||[]).concat([J]))}l&&C&&H&&!r&&this.drawShape(H.left+H.width+8,H.top+H.height/2,l,e?16.8/e.width:1)}this.ctx.restore()};
h.createPointToRectMap=function(a,b){var c=this;return function(d,e,f){var g=d.y1||d.y,k=d.y0||0;if(g<k){var l=m([g,k]);k=l.next().value;g=l.next().value}l=Math.round(b(g));var r=Math.round(b(k))-l;r<c.forceMinHeight&&g!==k&&(l-=c.forceMinHeight-r,r=c.forceMinHeight);var w;k=a(((w=d.x0)!=null?w:d.x).valueOf());w=a(d.x.valueOf());g=w-k;k=Math.round(k+g*c.halfGutterRatio);return{top:l,left:k,height:r,width:Math.max(Math.round(w-g*c.halfGutterRatio)-k,1),metadata:{point:d,series:e,index:f}}}};
h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=MBa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.lineWidth=d!==void 0?d>=.6?3:d>=.4?2:1:3;this.shapeCtx.stroke(a);this.shapeCtx.fill(a);this.shapeCtx.restore();this.shapeCtx.fill(a)};
h.drawShapeWithinBounds=function(a,b,c,d,e){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e)};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};
da.Object.defineProperties(SI.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}}});var n3c=function(){SI.apply(this,arguments)};Y(n3c,SI);n3c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
n3c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){this.gutterRatio=a.gutterRatio!==void 0?a.gutterRatio:.35;var b=[];if(!a.brushing&&a.hoveredSeries.length){var c=[].concat(q(new Set(a.hoveredSeries.flatMap(function(f){return f.datumIndices||[]}).map(function(f){return f.index}))));b=a.selectedSeries.map(function(f){return Object.assign({},f,{datumIndices:c.map(function(g){return{index:g}})})}).concat(a.hoveredSeries)}else b=a.selectedSeries;b=b.reduce(function(f,
g){return f.set(g.seriesId,g)},new Map);var d,e=(d=a.data)==null?void 0:d.series;(e==null?0:e.length)&&this.drawBars(e,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,j3c,b,a.verticalBarPadding);a.xAxisMin!==null&&a.xAxisMax!==null&&eG(this,a.xAxisMin,a.xAxisMax)}};var o3c={clickSelect:!0,hoverHighlight:!0},TI=function(a,b,c,d,e,f,g,k){sG.call(this,a,b,c);this.modalService=d;this.interactionService=e;this.instrumentationService=f;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.outputPeriodMsInternal=void 0;this.layerName="";this.colorStrategyInternal=new tH;this.enableManualLatencyTracking=this.refactorA11yNavInstructions=this.hideSymbolShapes=!1;this.forceMinHeight=0;this.isBucketedData=!1;this.onSelect=new Ui;this.dataSubject=new Nj(this.data);
this.configSubject=new Nj({colorStrategy:this.colorStrategy,hideSymbolShapes:this.hideSymbolShapes,gutterRatio:this.gutterRatio,isBucketedData:this.isBucketedData});this.updateGridTriggerSubject=new sf;this.gridGeneratorSubject=new Nj(null);this.defaultColumnMaskGeneratorSubject=new Nj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=o3c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=
null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=new wf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=2;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(of(0),xk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),xk(this.ngZone));this.layerType="graphic";this.barView=new SI(a.nativeElement,g);this.views.push(this.barView);this.views.push(new n3c(a.nativeElement));this.bindDrawInstrumentation()};
Y(TI,sG);TI.\u0275dir=sG.\u0275dir;
TI.prototype.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b?WJa(b,!1):null}),vla(),Eha()),configObservable:this.configSubject});this.barView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.barView.forceMinHeight=Math.max(0,this.forceMinHeight);this.updateGridTriggerSubject.pipe(lf(500),Bf(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&
(c=a.generateGrid(b));return c})});this.updateHoverValuesTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});NF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onClick(b)});
this.chart.keyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});this.chart.keyUpObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};
TI.prototype.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=$Aa(e);if(d!==e){if(g==null?0:g.xAxis)d=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,g.xAxis.min,g.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,g.xAxis.unit||null),Pk(this.yAxisRequirement,d)&&(this.yAxisRequirement=d,k.push(uG(this,this.yAxisRequirement)));this.xAxisRequirement=this.isBucketedData?p3c(this,e):aBa(a.currentValue);k.push(uG(this,this.yAxisRequirement));
k.push(vG(this,this.xAxisRequirement));k.push(oH({chartId:f.chartId,layerId:f.layerId,yAxisId:f.yAxisId,xAxisId:f.xAxisId,valueType:1,unit:(e==null?void 0:e.unit)||null,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}));k.push(nH({chartId:f.chartId,layerId:f.layerId,series:(e==null?void 0:e.series.map(function(H,J){var O;return{seriesId:H.id,name:(O=H.name)!=null?O:H.id,drawnAs:2,stackingIndex:e.series.length-1-J,dataSeriesMetadata:H.metadata,
statsModeSummaryValue:H.statsModeSummaryValue,legendTemplate:H.legendTemplate}}))||[]}));if(g&&e){if(a=yG(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(H){(H=H.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,H))});(a=this.updateMostRecentValues(b))&&k.push(a)}var l;if(a=g==null?void 0:(l=g.seriesSelection)==null?void 0:l.byLayer.entities[f.layerId]){l=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:
e.series.map(function(H){return H.id}))!=null?r:[]);r=l.filter(function(H){return w.has(H.seriesId)});r.length!==l.length&&k.push(SG({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(H){return w.has(H.seriesId)});r.length!==a.length&&k.push(UG({chartId:f.chartId,layerId:f.layerId,series:r}))}this.updateGridTriggerSubject.next(b)}var x,C;(g==null?0:(x=g.xAxisPin)==null?0:x.xPos)&&(g==null?0:(C=g.xAxisPin)==null?0:C.locked)&&(b=this.barView.getValuesAtTime(b,g.xAxisPin.xPos),(b=this.updateTimeSeriesValues(b,
0))&&k.push(b));return k};var p3c=function(a,b){if((b==null?0:b.series)&&b.series.length>0){var c=b.series[0];if(c.data.length>0){var d=c.data[0],e=c.data[c.data.length-1],f,g=((f=d.x0)!=null?f:d.x).valueOf();f=e.x.valueOf();c=c.data.length>1?(e.x.valueOf()-d.x.valueOf())/(c.data.length-1):void 0;var k;b=(k=b.unit)!=null?k:null;return{id:a.layerId,priority:1,min:g,max:f,unit:b,bucketWidth:c}}}return null};h=TI.prototype;
h.bindDrawInstrumentation=function(){var a=this;cG(this.barView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(nf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;JG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});JG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};h.onResizeChange=function(a,b){qk(a)&&this.updateGridTriggerSubject.next(b)};
h.onYAxisChange=function(a,b){ol(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(Uk(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)e=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null),Pk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(uG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(DBa(a)){var g=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=
null;g===void 0&&(c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(l){k=l&&l()}),g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.barView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=b.scope,e=b.data;a=b.state;var f=[];e&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=yG(this.colorStrategy,d,e,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&f.push(c.createSetSeriesColorMetadataAction(d,e,g))}));return f};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||uFa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(xG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a bar chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a bar chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(xG(this,this.dataTypeError,!1))));"isBucketedData"in a&&(this.xAxisRequirement=this.isBucketedData?p3c(this,this.data):aBa(this.data),b.push(vG(this,this.xAxisRequirement)));("outputPeriodMs"in a||"colorStrategy"in a||"alignmentPeriodMs"in a||"gutterRatio"in a||"verticalBarPadding"in a||"hideSymbolShapes"in a||"isBucketedData"in a)&&this.configSubject.next({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,gutterRatio:this.gutterRatio,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes,isBucketedData:this.isBucketedData});"loading"in a&&b.push(wG(this,this.loading,"Bar"));"forceMinHeight"in a&&(this.barView.forceMinHeight=Math.max(0,this.forceMinHeight));"error"in a&&b.push(xG(this,this.error,this.hasData()));MF(this.chart,b)};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;var k=f.config;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(l){if(l=l&&l()){var r=d!==null?l.rows[d]:null,w=e!==null?l.columns[e]:null;if(a.focusedCell){b.store.dispatch(SG({chartId:g.chartId,layerId:g.layerId,series:r?[{seriesId:r.metadata.seriesId}]:[]}));var x;r=(x=w==null?void 0:w.metadata.timeMs)!=null?x:null;r!==null&&(k==null?0:k.outputPeriodMs)&&
(r-=((k==null?void 0:k.outputPeriodMs)||0)/2);var C;b.store.dispatch(BG({chartGroupId:g.chartGroupId,position:(C=r)!=null?C:null}));b.store.dispatch(CG({chartGroupId:g.chartGroupId,locked:!!w}))}b.store.dispatch(UG({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(x=l.values[d][e],b.store.dispatch(zG({chartId:g.chartId,lastInteraction:{focus:x.position.x}})),b.store.dispatch(AG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:x.position.y}})))}})})};
h.onGridCellActivate=function(a){this.modalService.focus(0,a)};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.barView.getValuesAtXPosition(c,a.x);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.config,d,e,f=(d=a.state)==null?void 0:(e=d.xAxis)==null?void 0:e.max;if(!f||!c)return null;b=b==null?void 0:b.series.reduce(function(g,k){k=k.data;var l,r=wl(k,f,xl((l=c.outputPeriodMs)!=null?l:null));return(l=k[r])&&(g===null||Math.abs(f-l.x.valueOf())<Math.abs(f-g.x.valueOf()))?l:g},null);return(a=this.barView.getValuesAtTime(a,b&&b.x0!==void 0?(b.x.valueOf()+b.x0.valueOf())/2:f))?this.updateTimeSeriesValues(a,3):null};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=mH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=tG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlight(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.onClick=function(a){var b=this,c=tG(this,a),d=!1;this.withLatest(function(e){var f=e.state,g=e.data;if(f&&g){var k=f.seriesSelection,l=f.brush;f=f.resize;if(k&&l&&!l.brushing&&f&&tFa(c,f)){k=k.byLayer.entities[e.scope.layerId];var r=b.barView.getRectAtPosition(c);k=k?k.selectedSeries.map(function(w){return w.seriesId}):[];if(r==null?0:r.metadata.series.id)g=g.series.find(function(w){return w.id===r.metadata.series.id}),b.onSelect.emit(g);b.interactions.clickSelect&&(g=[],l=ul.ve.LineDeselectToggle,
r&&(l=ul.ve.LineSelectToggle,k.length===1&&k.includes(r.metadata.series.id)?(g=[],l=ul.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&k.length>0?(g=b.barView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,r.metadata.series.id,c)||[r.metadata.series.id],l=ul.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(g=k.includes(r.metadata.series.id)?k.filter(function(w){return w!==r.metadata.series.id}):k.concat([r.metadata.series.id]),l=ul.ve.LineSpecificSelectToggle):(g=[r.metadata.series.id],
l=ul.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(r==null?void 0:r.metadata.series.id)||null,k.length===0&&g.length===1&&(d=!0),b.store.dispatch(SG({chartId:e.scope.chartId,layerId:e.scope.layerId,series:g.map(function(w){return{seriesId:w}})})),tl(b.interactionService,"click",l,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(e){e=b.barView.getValuesAtXPosition(e,c.x);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=Xk(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,l=pl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!l)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var C,H,J,O;return IEa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:FEa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:kl({position:R,tickIncrement:r,timeZone:Gk(w,x)}),value:R}},valueFormatter:DEa(g,k),positionMap:HEa(f,l,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0,centerInOutputPeriod:!0,widthMultiplier:1-this.barView.gutterRatio}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(C=d.min)!=null?C:void 0,max:(H=d.max)!=
null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?AEa({ticks:a.ticks,grid:b}):[]:[]};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state){var e=c.brush,f=c.seriesSelection;if(e&&f&&!e.panning){e=a&&b.barView.getRectAtPosition(a);var g,k;c=(c==null?void 0:(g=c.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=e?[{seriesId:e.metadata.series.id,datumIndices:[{index:e.metadata.index}]}]:[];hl(c,g)&&(d=UG({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):
b.store.dispatch(d))}}})};h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return nH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Fl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};h.getLayerTitle=function(){return this.layerName?"Bar "+this.layerName:"Bar"};
h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null),vG(this,null),xG(this,null,!1),wG(this,!1,"Bar")])};
da.Object.defineProperties(TI.prototype,{outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},o3c,
a)},get:function(){return this.interactionsInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ll?this.isMetaKeyDown:this.isCtrlKeyDown}}});TI.\u0275fac=function(a){return new (a||TI)(Ye(Jd),Ye(LF),Ye(ZF),Ye(jH),Ye(ul),Ye(IG),Ye(MG),Ye(Rg))};
TI.\u0275cmp=D({type:TI,selectors:[["ac-bar"]],hostAttrs:[1,"composable-layer","ac-bar"],inputs:{data:"data",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",layerName:"layerName",colorStrategy:"colorStrategy",interactions:"interactions",legendTemplate:"legendTemplate",gutterRatio:"gutterRatio",verticalBarPadding:"verticalBarPadding",hideSymbolShapes:"hideSymbolShapes",refactorA11yNavInstructions:"refactorA11yNavInstructions",enableManualLatencyTracking:"enableManualLatencyTracking",
forceMinHeight:"forceMinHeight",isBucketedData:"isBucketedData"},outputs:{onSelect:"onSelect"},features:[Gf,bx],decls:3,vars:9,consts:[[3,"onFocusedCellChange","onGridCellActivate","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onFocusedCellChange",function(c){return b.onFocusedCellChange(c)})("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocus",
function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",U(1,5,b.gridGeneratorObservable))("columnMaskGenerator",U(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[qH,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_bar.css.map */"],
changeDetection:0});var q3c=kk(lk,function(a,b,c){if(b&&a&&a.categories&&c)return c==="vertical"?(b.bodyRight-b.bodyLeft)/a.categories.length:(b.bodyBottom-b.bodyTop)/a.categories.length},nWc,BF,oG),r3c=kk(lk,function(a,b,c,d,e){if(a&&a.categories&&b&&c&&d!==void 0&&e!==void 0)return a.categories.map(function(f,g){return{label:f,value:(c==="vertical"?d:e)+(.5+g)*b}})},nWc,q3c,oG,jTc,iTc),s3c=kk(mk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.chartHeight>0&&c!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,
bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,chartHeight:a.chartHeight,axisTopEdge:c,ticks:b!=null?b:[],yAxisOrientation:e!=null?e:"vertical",gutterRatio:d!=null?d:0}},BF,r3c,kk(Eza,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},lTc,qTc),mWc,oG);var t3c=function(){gG.apply(this,arguments);this.lastDrawnState=null};Y(t3c,gG);
t3c.prototype.drawInternal=function(a){var b=a.currentValue;if(b&&(a=b.state,b=b.config,a&&b)){var c=a.bodyLeft,d=a.bodyRight,e=a.bodyBottom,f=a.bodyTop,g=a.chartHeight,k=a.chartWidth,l=a.ticks,r=a.axisTopEdge;if(a.yAxisOrientation==="vertical"){this.canvas.style.left="0px";this.canvas.style.top=r+"px";var w=u3c(this,l,k);e=!b.hideLabels&&w.some(function(x){return x.drawOnSecondRow});bl(this.canvas,this.base,e?33:20,k);b.hideLabels?v3c(this,c,d,l):(w3c(this,w),v3c(this,c,d,w))}else this.canvas.style.left=
"0px",this.canvas.style.top="0px",bl(this.canvas,this.base,g,k),c=(w=b.actualWidth)!=null?w:50,b.hideLabels||x3c(this,l,g,c),y3c(this,e,f,c,l);this.lastDrawnState=a}};
var y3c=function(a,b,c,d,e){var f=d0c;f=f===void 0?{}:f;a.ctx.save();$k(a.ctx,f,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,q(cl([d,b],f.lineWidth)));a.ctx.lineTo.apply(a.ctx,q(cl([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=m(e.length?e:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,a.ctx.moveTo.apply(a.ctx,q(cl([d-5,c],f.lineWidth))),a.ctx.lineTo.apply(a.ctx,q(cl([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore()},
v3c=function(a,b,c,d){var e=FG;e=e===void 0?{}:e;a.ctx.save();$k(a.ctx,e,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,q(cl([b,0],e.lineWidth)));a.ctx.lineTo.apply(a.ctx,q(cl([c,0],e.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=m(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value,d=c.drawOnSecondRow?18:5,a.ctx.moveTo.apply(a.ctx,q(cl([c.value,0],e.lineWidth))),a.ctx.lineTo.apply(a.ctx,q(cl([c.value,d],e.lineWidth)));
a.ctx.stroke();a.ctx.restore()},x3c=function(a,b,c,d){var e=d0c;e=e===void 0?{}:e;var f=[];a.ctx.save();$k(a.ctx,e,a.base);d=d-5-8;e=0;b=m(b);for(var g=b.next();!g.done;g=b.next()){var k=g=g.value,l=k.label;k=k.value;var r=a.ctx.measureText(l);r.width>d&&(l=z3c(a,l,r.width,d));var w=r.actualBoundingBoxAscent-r.actualBoundingBoxDescent;r=k-w/2;w=k+w/2;r<0||r<e+6||w>c||(dl(a.ctx,l,d,k),e=w,f.push(g))}a.ctx.restore()},z3c=function(a,b,c,d){if(c<=d)return b;c=Math.floor(b.length/2);if(c<=1)return b;for(;c>
0;c--){var e=b.slice(0,c)+"..."+b.slice(-c);if(a.ctx.measureText(e).width<d)return e}return b.charAt(0)+"..."},w3c=function(a,b){var c=FG;c=c===void 0?{}:c;a.ctx.save();$k(a.ctx,c,a.base);b=m(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d=c.labelCenterValue,e=c.truncatedLabel;c.drawOnSecondRow?dl(a.ctx,e,d,21):dl(a.ctx,e,d,8)}a.ctx.restore()},u3c=function(a,b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e-1],g=b[e+1],k=b[e],l=k.label;k=k.value;var r=a.ctx.measureText(l).width,w=Math.min(f?Math.abs(k-
f.value)/2:k,g?Math.abs(g.value-k)/2:c-k)*2-6,x=void 0,C=k;if(r>w){var H=void 0;x=void 0;var J=(x=(H=f)==null?void 0:H.value)!=null?x:0,O=x=void 0;H=(O=(x=g)==null?void 0:x.value)!=null?O:c;f=f?Math.abs(k-f.value):k;x=g?Math.abs(g.value-k):c-k;g=Math.min(f,x)*2-6;x=z3c(a,l,r,f+x-6);r>g&&(C=(J+H)/2)}J=void 0;d.push({label:l,value:k,labelCenterValue:C,widerThanCollisionSafeWidth:r>w,truncatedLabel:(J=x)!=null?J:l,drawOnSecondRow:!1})}for(a=0;a<d.length;a++)b=d[a-1],c=d[a+1],l=e=void 0,d[a].drawOnSecondRow=
!(a%2===0||!(((e=b)==null?0:e.widerThanCollisionSafeWidth)||((l=c)==null?0:l.widerThanCollisionSafeWidth)));return d},A3c=function(a,b,c){return u3c(a,b,c).some(function(d){return d.drawOnSecondRow})};t3c.prototype.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
t3c.prototype.getCategory=function(a){if(!this.lastDrawnState)return null;var b=this.lastDrawnState.ticks;if(b.length===0)return null;if(b.length===1)return b[0].label;for(var c=(b[1].value-b[0].value)/2,d=0,e=b.length-1;d<=e;){var f=Math.floor((d+e)/2),g=Math.abs(b[f].value-a);if(g<c){if(g<c*(1-this.lastDrawnState.gutterRatio))return b[f].label;break}else b[f].value>a?e=f-1:d=f+1}return null};var UI=function(a,b,c){sG.call(this,a,b,c,!0);this.tickStrategy=mBa;this.hideTickLabels=!1;this.dataSubject=new Nj(null);this.configSubject=new Nj({});this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.yAxisOrientationSubject=new Nj("vertical");this.maxVerticalAxisWidth=50;this.initialized=!1;this.layerType="axis";this.axisView=new t3c(a.nativeElement);this.redrawableViews=[this.axisView]};Y(UI,sG);UI.\u0275dir=sG.\u0275dir;
UI.prototype.onCategoricalAxisChange=function(){var a=this,b=[];this.withLatest(function(c){var d=c.scope;c=c.state;var e;if(c==null?0:(e=c.categoricalAxis)==null?0:e.categories){var f;e=(c==null?void 0:(f=c.categoricalAxis)==null?void 0:f.categories.reduce(function(g,k){return Math.max(g,a.rulerCanvasCtx.measureText(k).width)},0))+10+8;a.lastVerticalAxisDynamicWidth!==e&&(a.lastVerticalAxisDynamicWidth=e,b.push(a.createMarginRequirementAction(d,a.yAxisOrientation,e,a.lastUseDoubleHeightCheck)))}});
return b};
UI.prototype.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.initialized=!0;var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});NF(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.gutterRatio!==void 0&&this.withLatest(function(e){e=e.scope;e=jWc({chartGroupId:e.chartGroupId,chartId:e.chartId,xAxisId:a.xAxisId,gutterRatio:a.gutterRatio});b.push(e)});this.selectorFactoryToObservable(oG).pipe(zf("vertical"),Bf(this.destroyed)).subscribe(function(e){e&&
a.yAxisOrientationSubject.next(e)});this.withLatest(function(e){b.push(a.createMarginRequirementAction(e.scope,a.yAxisOrientation,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck))});var c;rVc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},(c=this.tickStrategy)!=null?c:mBa,this.tickOptions);c=this.selectorFactoryToObservable(s3c);le([c,this.configObservable]).pipe(A(function(e){var f=m(e);e=f.next().value;return{data:null,config:f.next().value.currentValue,
state:e!=null?e:null}}),zf(null),vf(),A(gk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(e){var f=m(e);e=f.next().value;f=f.next().value;a.chart.scheduleChangeHandler({mergeKey:(f.layerId||a.layerId)+"-drawFromSelection",changes:e,viewHandler:function(g){a.axisView.draw(g)},scope:f||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(zf(null),vf(),A(gk),Bf(this.destroyed)).subscribe(function(e){var f=
e.previousValue;(e=e.currentValue)&&(f==null?void 0:f.layerId)!==(e==null?void 0:e.layerId)&&MF(a.chart,[yF({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f==null?void 0:f.layerId,currentLayerId:e.layerId})])});c=this.selectorFactoryToObservable(nTc);var d=this.selectorFactoryToObservable(r3c);le([this.scopeObservable,this.yAxisOrientationSubject,c,d]).pipe(Bf(this.destroyed)).subscribe(function(e){var f=m(e);e=f.next().value;var g=f.next().value;var k=f.next().value;if(f=f.next().value)a.lastVerticalAxisDynamicWidth=
B3c(a,f);f&&k!==void 0&&(a.lastUseDoubleHeightCheck=A3c(a.axisView,f,k));a.maxVerticalAxisWidth=k?Math.round(k*.3):50;MF(a.chart,[a.createMarginRequirementAction(e,g,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck)])});MF(this.chart,b)};UI.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);var a=vG(this,null);this.store.dispatch(dk({actions:[wVc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
UI.prototype.onMouseMove=function(a){var b=[];a=tG(this,a);if(this.axisView.withinBody(a.x,a.y)){var c=this.axisView,d=null;c.lastDrawnState&&(d=c.getCategory(c.lastDrawnState.yAxisOrientation==="vertical"?a.x:a.y));b.push(vXc({chartId:this.chartId,lastInteraction:{hover:d}}))}else b.push(vXc({chartId:this.chartId,lastInteraction:{hover:null}}));return b};var B3c=function(a,b){return b.reduce(function(c,d){return Math.max(c,a.rulerCanvasCtx.measureText(d.label).width)},0)+10+8};
UI.prototype.ngOnChanges=function(a){var b=this;sG.prototype.ngOnChanges.call(this,a);var c=[];this.initialized&&(("tickStrategy"in a||"tickOptions"in a)&&rVc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy,this.tickOptions),"gutterRatio"in a&&this.withLatest(function(d){d=d.scope;d=jWc({chartGroupId:d.chartGroupId,chartId:d.chartId,xAxisId:b.xAxisId,gutterRatio:b.gutterRatio});c.push(d)}),"hideTickLabels"in a&&this.withLatest(function(d){c.push(b.createMarginRequirementAction(d.scope,
b.yAxisOrientation,b.lastVerticalAxisDynamicWidth,b.lastUseDoubleHeightCheck))}),MF(this.chart,c))};
UI.prototype.createMarginRequirementAction=function(a,b,c,d){c=Math.min(this.maxVerticalAxisWidth,c!=null?c:this.maxVerticalAxisWidth);d={bottom:this.hideTickLabels?6:d?33:20};b==="horizontal"?(d={left:c},this.configSubject.next({actualWidth:c,hideLabels:this.hideTickLabels}),b={top:10,bottom:10}):(this.configSubject.next({hideLabels:this.hideTickLabels}),b={left:10,right:10});return aG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:b})};
da.Object.defineProperties(UI.prototype,{yAxisOrientation:{configurable:!0,enumerable:!0,get:function(){return this.yAxisOrientationSubject.value}}});UI.\u0275fac=function(a){return new (a||UI)(Ye(Jd),Ye(LF),Ye(ZF))};
UI.\u0275cmp=D({type:UI,selectors:[["ac-categorical-axis"]],hostAttrs:[1,"composable-layer","ac-catgorical-axis"],inputs:{tickStrategy:"tickStrategy",tickOptions:"tickOptions",gutterRatio:"gutterRatio",hideTickLabels:"hideTickLabels"},features:[Gf,bx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var C3c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:0},D3c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},VI=function(a,b){hG.call(this,a);this.barsStrategy=b;this.drawnRects=[];this.drawnCategories=new Map;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.shapeCanvas.setAttribute("aria-hidden",
"true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(VI,hG);h=VI.prototype;h.updateStrategy=function(a,b){this.barsStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;qk(a)&&(Iza(a)||rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),iG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){fG(c,c.canvas);fG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onSeriesSelectionChange=function(a,b){SBa(a)&&this.drawInternal(b)};
h.onCategoricalAxisChange=function(a,b){a:{var c=a.previousValue;if(a=a.currentValue){var d,e;if(!c||((d=a.categories)==null?void 0:d.length)!==((e=c.categories)==null?void 0:e.length)){c=!0;break a}var f,g;for(d=0;d<((g=(f=a.categories)==null?void 0:f.length)!=null?g:0);++d){var k=e=void 0;if(((e=c.categories)==null?void 0:e[d])!==((k=a.categories)==null?void 0:k[d])){c=!0;break a}}}c=!1}c&&this.drawInternal(b)};h.onYAxisChange=function(a,b){ol(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.getValuesAtPosition=function(a,b){a=this.unpack(a);if(!a||!a.reverseCategoryMap)return null;b=this.barsStrategy.getCategory(b,a.reverseCategoryMap);if(!b)return null;a=this.drawnCategories.get(b);return{values:E3c(a!=null?a:[]),category:b}};var E3c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=VI.prototype;
h.getRectAtPosition=function(a){return this.barsStrategy.getBarAtPosition(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnCategories.get(a.metadata.point.x)||null};h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=m(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpack=function(a){var b=a.scope,c=a.data,d=a.state,e=a.config;if(!c||!d||!e)return null;var f=d.resize,g=d.categoricalAxis,k=d.yAxis;a=d.brush;var l=d.seriesSelection;if(!(f&&g&&k&&a&&l))return null;g=f.width;var r=f.height,w=f.margins.top,x=f.height-f.margins.bottom,C=f.margins.left;f=f.width-f.margins.right;k=this.barsStrategy.getRangeMap(k,w,x,C,f,c?c.unit:null);if(!e.categoryMap||!k||!e.laneWidth)return null;k=this.barsStrategy.createPointToRectMap(c,e.categoryMap,k,e.laneWidth,e.gutterRatio);
var H=e.colorStrategy.getShape,J=H&&(c==null?0:c.series.length)&&c.series.length>1?function(R){return H(R,d)}:null;b=l.byLayer.entities[b.layerId];var O=!c||!e.colorStrategy.isReady||e.colorStrategy.isReady(c,d);l=Object.values(l.byLayer.entities).filter(function(R){return!!R}).some(function(R){return R.selectedSeries.length||R.hoveredSeries.length});return{data:c,colorMap:function(R){return Fl(e.colorStrategy.getColor(R,d))},isColorMapReady:O,shapeMap:J,shapeBoundingBox:e.colorStrategy.shapeBoundingBox,
reverseCategoryMap:e.reverseCategoryMap,canvasWidth:g,canvasHeight:r,bodyLeft:C,bodyTop:w,bodyWidth:f-C,bodyHeight:x-w,bounds:{top:w,right:f,bottom:x,left:C},brushing:a.brushing||!1,hoveredSeries:(b==null?void 0:b.hoveredSeries)||[],selectedSeries:(b==null?void 0:b.selectedSeries)||[],anySeriesSelectedOrHovered:l,pointToRectMap:k,verticalBarPadding:e.verticalBarPadding,hideSymbolShapes:e.hideSymbolShapes}};
h.drawInternal=function(a){var b=performance.now();if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.drawnRects=[];this.drawnCategories.clear();this.ctx.save();var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(c);var d=!a.brushing&&
a.anySeriesSelectedOrHovered;c=Object.assign({},C3c,{globalAlpha:d?.5:1});this.shapeCtx.globalAlpha=d?.5:1;var e,f=(e=a.data)==null?void 0:e.series;if(f==null?0:f.length){if(e=a.shapeMap){d=new Set;f=m(f);for(var g=f.next();!g.done;g=f.next())d.add(e(g.value))}this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,c,void 0,a.verticalBarPadding,a.hideSymbolShapes)}this.ctx.restore();this.barsStrategy.sortDrawnCategories(this.drawnCategories);this.drawnRects=this.barsStrategy.getSortedFlattenedRects(this.drawnCategories);
a=performance.now();this.enableManualLatencyTracking&&dG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,l,r){this.ctx.save();$k(this.ctx,g,this.base);$k(this.shapeCtx,D3c,this.base);g=k?a==null?void 0:a.series.filter(function(Ga){return k.has(Ga.id)}):a==null?void 0:a.series;g=m(g!=null?g:[]);for(var w=g.next(),x={};!w.done;x={series$jscomp$84:void 0,rects$jscomp$2:void 0},w=g.next()){x.series$jscomp$84=w.value;w=c(x.series$jscomp$84);this.ctx.fillStyle=Zk(w,this.base);this.shapeCtx.fillStyle=Zk(w,this.base);w=d&&d(x.series$jscomp$84);x.rects$jscomp$2=x.series$jscomp$84.data.map(function(Ga){return function(ja,
ta){return b(ja,Ga.series$jscomp$84,ta)}}(x));if(k){var C=k.get(x.series$jscomp$84.id),H=void 0,J=void 0;if((H=C)==null?0:(J=H.datumIndices)==null?0:J.length)x.rects$jscomp$2=C.datumIndices.map(function(Ga){return function(ja){return Ga.rects$jscomp$2[ja.index]}}(x))}H=void 0;C=!((H=k)==null||!H.get(x.series$jscomp$84.id));J=H=null;for(var O=m(x.rects$jscomp$2),R=O.next();!R.done;R=O.next())if(R=R.value){var V=void 0;l&&l<R.height&&x.series$jscomp$84.id!==((V=a)==null?void 0:V.series[0].id)?this.ctx.fillRect(R.left,
R.top+l,R.width,R.height-l):this.ctx.fillRect(R.left,R.top,R.width,R.height);if(w){var ca=this.barsStrategy.getShapeParams(R,e);V=ca.x;var oa=ca.y,ua=ca.shapeWidth,ka=ca.shapeHeight;ca=ca.scalingFactor;H===null&&(H=ua<=10);H||r||!C&&!this.barsStrategy.isBarLongEnoughForShape(R,ua,ka)||this.drawShapeWithinBounds(V,oa,f,w,ca)}J=this.barsStrategy.lastRectWithinBounds(R,J,f);F3c(this,R)}this.barsStrategy.shouldDrawBoundaryShapes&&w&&H&&J&&(x=this.barsStrategy.getBoundaryShapeParams(J,e),this.drawShape(x.x,
x.y,w,x.scalingFactor))}this.ctx.restore()};h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=MBa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.lineWidth=d!==void 0?d>=.6?3:d>=.4?2:1:3;this.shapeCtx.stroke(a);this.shapeCtx.fill(a);this.shapeCtx.restore();this.shapeCtx.fill(a)};
h.drawShapeWithinBounds=function(a,b,c,d,e){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e)};var F3c=function(a,b){var c=b.metadata.point.x;a.drawnCategories.set(c,(a.drawnCategories.get(c)||[]).concat([b]))};VI.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var G3c=function(){VI.apply(this,arguments)};Y(G3c,VI);G3c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
G3c.prototype.drawInternal=function(a){if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.hoveredSeries.length){var c=[].concat(q(new Set(a.hoveredSeries.flatMap(function(d){return d.datumIndices||
[]}).map(function(d){return d.index}))));b=a.selectedSeries.map(function(d){return Object.assign({},d,{datumIndices:c.map(function(e){return{index:e}})})}).concat(a.hoveredSeries)}else b=a.selectedSeries;b=b.reduce(function(d,e){return d.set(e.seriesId,e)},new Map);this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,C3c,b,a.verticalBarPadding,a.hideSymbolShapes)}};var H3c=function(){this.gutterRatioInternal=.35};h=H3c.prototype;h.getRangeMap=function(a,b,c,d,e,f){return pl(a,e,d,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,l){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(w=m([w,r]),r=w.next().value,w=w.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;r=Math.round(c(r));w=Math.round(c(w))-r;var C=b(g.x);return C===null?null:{top:Math.round(C-x/2),left:r,height:x,width:w,metadata:{point:g,series:k,index:l}}}};
h.getCategory=function(a,b){var c;return(c=b(a.y))!=null?c:null};h.getBarAtPosition=function(a,b){var c=this.halfGutterInverseRatio;c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],l=k.left,r=k.top,w=k.height;k=k.width;var x=Math.ceil(c*w);w=r+w+x;if(b.y>=r-x)if(b.y<w)if(b.x>=l)if(b.x<l+k){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f};
h.sortDrawnCategories=function(a){for(var b=m(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].top-a.get(f)[0].top}),c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};
h.getShapeParams=function(a,b){var c=Math.min(16.8,a.height*.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width/2,y:a.top+a.height+8,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b){return a.width>b};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.top+a.height<=c.bottom?b===null||b.top+b.height>c.bottom?a:a.top+a.height>b.top+b.height?a:b:b!==null&&b.top+b.height<=c.bottom?b:null};
da.Object.defineProperties(H3c.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!0}}});
var WI=function(){this.gutterRatioInternal=.35};h=WI.prototype;h.getRangeMap=function(a,b,c,d,e,f){return pl(a,b,c,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,l){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(x=m([w,r]),r=x.next().value,w=x.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;w=Math.round(c(w));r=Math.round(c(r))-w;var C=b(g.x);return C===null?null:{top:w,left:Math.round(C-x/2),height:r,width:x,metadata:{point:g,series:k,index:l}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return RJa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=m(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.top-f.top});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return QJa(a,b)};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width+8,y:a.top+a.height/2,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b,c){return a.height>c};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.left+a.width<=c.right?b===null||b.left+b.width>c.right?a:a.left+a.width>b.left+b.width?a:b:b!==null&&b.left+b.width<=c.right?b:null};
da.Object.defineProperties(WI.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!0}}});
var XI=function(){this.gutterRatioInternal=.35};h=XI.prototype;h.getRangeMap=function(a,b,c,d,e,f){return pl(a,b,c,f)};
h.createPointToRectMap=function(a,b,c,d,e){function f(l){return a.series.findIndex(function(r){return r.id===l.id})}var g=this,k=a.series.length;return function(l,r,w){g.gutterRatio=e!=null?e:.35;var x=d-g.gutterRatio*d,C=Math.round(c(l.y)),H=Math.round(c(0));C>H&&(C=m([C,H]),H=C.next().value,C=C.next().value);H-=C;var J=b(l.x);if(J===null)return null;J=Math.round(J-x/2);x=x/k-1;var O=f(r);return{top:C,left:J+O*(x+1),height:H,width:x,metadata:{point:l,series:r,index:w}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return RJa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=m(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=m(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return QJa(a,b)};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width+8,y:a.top+a.height/2,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b,c){return a.height>c};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.left+a.width<=c.right?b===null||b.left+b.width>c.right?a:a.left+a.width>b.left+b.width?a:b:b!==null&&b.left+b.width<=c.right?b:null};
da.Object.defineProperties(XI.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!1}}});var I3c={clickSelect:!0,hoverHighlight:!0},YI=function(a,b,c,d){sG.call(this,a,b,c);var e=this;this.interactionService=d;this.data=null;this.loading=!1;this.unstackedSubject=new Nj(!1);this.colorStrategyInternal=new tH;this.enableManualLatencyTracking=this.hideSymbolShapes=!1;this.onSelect=new Ui;this.dataSubject=new Nj(this.data);this.configSubject=new Nj({colorStrategy:this.colorStrategy});this.userConfigSubject=new Nj({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes});this.categoricalAxisRequirement=this.yAxisRequirement=null;this.interactionsInternal=I3c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=new wf(1);this.syncActionsBuffer=null;this.colorRecalculationAttemptsRemaining=2;this.layerType="graphic";this.categoricalBarView=new VI(a.nativeElement,this.unstacked?new XI:new WI);this.views.push(this.categoricalBarView);
this.categoricalBarSelectedView=new G3c(a.nativeElement,this.unstacked?new XI:new WI);this.views.push(this.categoricalBarSelectedView);this.stackedDataObservable=this.dataSubject.pipe(A(function(f){return f?WJa(f,!1):null}),xf({bufferSize:1,refCount:!0}));a=this.selectorFactoryToObservable(oG);le([this.unstackedSubject,a]).pipe(Bf(this.destroyed)).subscribe(function(f){f=m(f);var g=f.next().value;var k=f.next().value;e.withLatest(function(l){var r=k==="horizontal"?new H3c:g?new XI:new WI;e.categoricalBarView.updateStrategy(r,
l);e.categoricalBarSelectedView.updateStrategy(r,l)})});this.unstackedSubject.pipe(Bf(this.destroyed)).subscribe(function(f){e.withLatest(function(g){e.categoricalBarView.updateStrategy(f?new XI:new WI,g);e.categoricalBarSelectedView.updateStrategy(f?new XI:new WI,g)})})};Y(YI,sG);YI.\u0275dir=sG.\u0275dir;h=YI.prototype;
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&this.dataSubject.next(this.data);("colorStrategy"in a||"verticalBarPadding"in a||"hideSymbolShapes"in a)&&this.userConfigSubject.next({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,hideSymbolShapes:this.hideSymbolShapes});"loading"in a&&b.push(wG(this,this.loading,"Categorical Bar"));MF(this.chart,b)};
h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null),mXc(this,null),xG(this,null,!1),wG(this,!1,"Categorical Bar")])};
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.unstackedSubject.pipe(Af(function(e){return e?a.dataSubject:a.stackedDataObservable})),configObservable:this.configSubject});this.categoricalBarView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);var b=this.selectorFactoryToObservable(r3c),c=this.selectorFactoryToObservable(q3c),d=this.selectorFactoryToObservable(mWc);le([b,c,d,this.userConfigSubject]).pipe(Bf(this.destroyed)).subscribe(function(e){e=
m(e);var f=e.next().value;var g=e.next().value;var k=e.next().value;e=e.next().value;a.configSubject.next(Object.assign({},e,{categoryMap:function(l){var r,w;return(w=(r=f==null?void 0:f.find(function(x){return x.label===l}))==null?void 0:r.value)!=null?w:null},reverseCategoryMap:function(l){if(!g)return null;var r,w;return(w=(r=f==null?void 0:f.find(function(x){return Math.abs(x.value-l)<=g*(1-(k!=null?k:0))/2}))==null?void 0:r.label)!=null?w:null},laneWidth:g,gutterRatio:k}))});this.updateHoverValuesTriggerSubject.pipe(Df(10),
Bf(this.destroyed)).subscribe(function(e){a.updateHoverValues(e)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(e){a.onMouseEnter(e)});NF(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(e){a.onClick(e)});this.chart.keyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(e){a.onKeyDown(e)});
this.chart.keyUpObservable.pipe(Bf(this.destroyed)).subscribe(function(e){a.onKeyUp(e)})};
h.onDataChange=function(a,b){var c=a.currentValue,d=b.scope;b=b.state;var e=[];if(a.previousValue!==c&&(a=eBa(c),Pk(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,e.push(uG(this,this.yAxisRequirement))),this.categoricalAxisRequirement=dBa(c),e.push(mXc(this,this.categoricalAxisRequirement)),e.push(oH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:3,unit:(c==null?void 0:c.unit)||null})),e.push(nH({chartId:d.chartId,layerId:d.layerId,series:(c==null?void 0:c.series.map(function(f,
g){var k;return{seriesId:f.id,name:(k=f.name)!=null?k:f.id,drawnAs:2,stackingIndex:c.series.length-1-g,dataSeriesMetadata:f.metadata,statsModeSummaryValue:f.statsModeSummaryValue,legendTemplate:f.legendTemplate}}))||[]})),b&&c)){if(a=yG(this.colorStrategy,d,c,b))e.push(a),this.colorRecalculationAttemptsRemaining=2;e.push(this.createSetSeriesColorMetadataAction(d,c,b))}MF(this.chart,e)};
h.onColorMapChange=function(a,b){a=b.scope;var c=b.data;b=b.state;var d=[];if(c&&b){if(this.colorRecalculationAttemptsRemaining>0){var e=yG(this.colorStrategy,a,c,b);e&&(d.push(e),this.colorRecalculationAttemptsRemaining--)}d.push(this.createSetSeriesColorMetadataAction(a,c,b))}return d};var J3c=function(a,b){var c=null;a.withLatest(function(d){d=d.scope;var e;c=mH({chartId:d.chartId,layerId:d.layerId,valueType:3,timeKey:2,values:(e=b==null?void 0:b.values)!=null?e:[]})});return c};h=YI.prototype;
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=tG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlight(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.onClick=function(a){var b=this,c=tG(this,a);this.withLatest(function(d){var e=d.state,f=d.data;if(e&&f){var g=e.seriesSelection,k=e.brush;e=e.resize;if(g&&k&&!k.brushing&&e&&tFa(c,e)){g=g.byLayer.entities[d.scope.layerId];var l=b.categoricalBarView.getRectAtPosition(c);g=g?g.selectedSeries.map(function(r){return r.seriesId}):[];(l==null?0:l.metadata.series.id)&&(f=f.series.find(function(r){return r.id===l.metadata.series.id}))&&b.onSelect.emit(Object.assign({},f,{point:l.metadata.point}));b.interactions.clickSelect&&
(f=[],k=ul.ve.LineDeselectToggle,l&&(k=ul.ve.LineSelectToggle,g.length===1&&g.includes(l.metadata.series.id)?(f=[],k=ul.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&g.length>0?(f=b.categoricalBarView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,l.metadata.series.id,c)||[l.metadata.series.id],k=ul.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=g.includes(l.metadata.series.id)?g.filter(function(r){return r!==l.metadata.series.id}):g.concat([l.metadata.series.id]),
k=ul.ve.LineSpecificSelectToggle):(f=[l.metadata.series.id],k=ul.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(l==null?void 0:l.metadata.series.id)||null,b.store.dispatch(SG({chartId:d.scope.chartId,layerId:d.scope.layerId,series:f.map(function(r){return{seriesId:r}})})),tl(b.interactionService,"click",k,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(d){d=b.categoricalBarView.getValuesAtPosition(d,c);(d=J3c(b,d))&&b.store.dispatch(d)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state;if(e){c=a&&b.categoricalBarView.getRectAtPosition(a);var f,g;e=(e==null?void 0:(f=e.seriesSelection)==null?void 0:(g=f.byLayer.entities[d.layerId])==null?void 0:g.hoveredSeries)||[];f=c?[{seriesId:c.metadata.series.id,datumIndices:[{index:c.metadata.index}]}]:[];hl(e,f)&&(d=UG({chartId:d.chartId,layerId:d.layerId,series:f}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):b.store.dispatch(d))}})};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return nH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Fl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};
h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.categoricalBarView.getValuesAtPosition(c,a),e,f;c=mH({chartId:c.scope.chartId,layerId:c.scope.layerId,valueType:3,timeKey:1,values:(e=d==null?void 0:d.values)!=null?e:[],category:(f=d==null?void 0:d.category)!=null?f:void 0});b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c)})};
da.Object.defineProperties(YI.prototype,{unstacked:{configurable:!0,enumerable:!0,set:function(a){this.unstackedSubject.next(a)},get:function(){return this.unstackedSubject.value}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},I3c,a)},get:function(){return this.interactionsInternal}},
isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ll?this.isMetaKeyDown:this.isCtrlKeyDown}}});YI.\u0275fac=function(a){return new (a||YI)(Ye(Jd),Ye(LF),Ye(ZF),Ye(ul))};
YI.\u0275cmp=D({type:YI,selectors:[["ac-categorical-bar"]],hostAttrs:[1,"composable-layer","ac-categorical-bar"],inputs:{data:"data",loading:"loading",unstacked:"unstacked",colorStrategy:"colorStrategy",interactions:"interactions",hideSymbolShapes:"hideSymbolShapes",verticalBarPadding:"verticalBarPadding",enableManualLatencyTracking:"enableManualLatencyTracking"},outputs:{onSelect:"onSelect"},features:[Gf,bx],decls:0,vars:0,template:function(){},styles:["/*# sourceMappingURL=ac_categorical_bar.css.map */"],
changeDetection:0});var K3c={useNonBlockingErrors:!1},ZI=function(a,b,c,d,e,f){sG.call(this,a,b,c,!0);this.ngZone=d;this.instrumentationService=e;this.changeDetectorRef=f;this.errorsSubject=new Nj([]);this.signalTimeoutId=null;this.installAgentHandled=!1;this.data=null;this.errorsObservable=this.errorsSubject.pipe(of(0),xk(this.ngZone));this.stylesSubject=new Nj(K3c);this.resizeStateSubject=new wf(1);this.isAgentMetricObservable=this.selectorFactoryToObservable(LWc).pipe(A(function(g){var k,l,r,w,x,C,H,J,O,R,V,ca,oa,
ua,ka,Ga,ja,ta,xa,Sa;return(g==null?void 0:(k=g.dataSets)==null?void 0:(l=k[0])==null?void 0:(r=l.timeSeriesFilter)==null?void 0:(w=r.filter)==null?void 0:w.includes("agent.googleapis.com"))||(g==null?void 0:(x=g.dataSets)==null?void 0:(C=x[0])==null?void 0:(H=C.timeSeriesQuery)==null?void 0:H.includes("agent.googleapis.com"))||(g==null?void 0:(J=g.dataSets)==null?void 0:(O=J[0])==null?void 0:(R=O.timeSeriesFilterRatio)==null?void 0:(V=R.numeratorFilter)==null?void 0:(ca=V.filter)==null?void 0:ca.includes("agent.googleapis.com"))||
(g==null?void 0:(oa=g.dataSets)==null?void 0:(ua=oa[0])==null?void 0:(ka=ua.timeSeriesFilterRatio)==null?void 0:(Ga=ka.denominatorFilter)==null?void 0:(ja=Ga.filter)==null?void 0:ja.includes("agent.googleapis.com"))||(g==null?void 0:(ta=g.dataSets)==null?void 0:(xa=ta[0])==null?void 0:(Sa=xa.prometheusQuery)==null?void 0:Sa.includes("agent_googleapis_com"))}));this.styleObservable=ee({});this.ve={InstallAgentButton:114988};this.opsAgentInstallPrompt='Requires <a href="https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent" target="_blank">Ops Agent</a>';
this.errorDismissedSubject=new Nj(!1);this.errorDismissedObservable=ve(this.errorDismissedSubject,this.errorsSubject.pipe(A(function(){return!1}),yf(1)));this.useNonBlockingStylingObservable=ee(!1);this.installAgentRequest=new Ui;L3c(this)};Y(ZI,sG);ZI.\u0275dir=sG.\u0275dir;
var L3c=function(a){a.selectorFactoryToObservable(zWc).pipe(Bf(a.destroyed)).subscribe(function(b){var c;b=(c=b==null?void 0:b.statuses)!=null?c:[];a.errorsSubject.next(cKa(b).filter(function(d){return d.details.dashboardError!=="DASHBOARD_FILTER_APPLICATION_FAILED"}));M3c(a,b.filter(function(d){return!d.success}))});a.selectorFactoryToObservable(fTc).pipe(zf(null),A(function(b){return b!=null?b:null}),vf(),A(gk),Bf(a.destroyed)).subscribe(function(b){b&&qk(b)&&(a.resizeStateSubject.next(b.currentValue),
a.changeDetectorRef.detectChanges())})};ZI.prototype.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(b=b.concat(N3c(this,this.data)));MF(this.chart,b)};
var O3c=function(a){a.signalTimeoutId!=null&&(clearTimeout(a.signalTimeoutId),a.signalTimeoutId=null)},M3c=function(a,b){O3c(a);a.signalTimeoutId=setTimeout(function(){O3c(a);for(var c=performance.now(),d=m(b),e=d.next();!e.done;e=d.next())if(e=e.value,e.layerId&&e.layerId!==a.layerId){var f=void 0,g=void 0,k=void 0,l=void 0;JG(a.instrumentationService,{type:"error-display",timestamp:c,layerId:e.layerId,chartId:a.chartId,layerType:"graphic",metadata:{name:((f=e)==null?void 0:(g=f.error)==null?void 0:
g.name)||"unknown",message:((k=e)==null?void 0:(l=k.error)==null?void 0:l.message)||"unknown"}})}},0)};
ZI.prototype.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({});this.installAgentHandled=this.installAgentRequest.observers.length>0;this.useNonBlockingStylingObservable=le([this.stylesSubject,this.isAgentMetricObservable]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!b.useNonBlockingErrors||a.installAgentHandled&&c)}));this.styleObservable=le([this.resizeStateSubject,this.useNonBlockingStylingObservable]).pipe(A(function(b){b=m(b);var c=b.next().value;
var d=b.next().value;return(c==null?0:c.margins)?(b=c.margins,c=a.chartGroupId==="tex-chart-group"&&c.width<736||a.chartGroupId!=="tex-chart-group"&&c.width-b.left-b.right<160,d&&!c?(c=a.chartGroupId==="tex-chart-group"?Math.max(184,b.left+32):b.left+32,d=b.right+(c-b.left),{marginLeft:c+"px",marginRight:d+"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(c+d)+"px)",height:"auto",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{marginLeft:b.left+"px",marginRight:b.right+
"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(b.left+b.right)+"px)",height:"calc(100% - "+(b.top+b.bottom)+"px)",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{}}),xk(this.ngZone))};ZI.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);O3c(this);this.store.dispatch(dk({actions:N3c(this,null)}))};
var N3c=function(a,b){var c=[];if(b&&b.length){b=m(b);for(var d=b.next();!d.done;d=b.next())c.push(uWc({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:d.value}))}else c.push(vWc({chartId:a.chartId,sourceId:a.objectiveLayerId}));return c};da.Object.defineProperties(ZI.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesSubject.next(Object.assign({},K3c,a))},get:function(){return this.stylesSubject.getValue()}}});
ZI.\u0275fac=function(a){return new (a||ZI)(Ye(Jd),Ye(LF),Ye(ZF),Ye(Rg),Ye(IG),Ye(ux))};
ZI.\u0275cmp=D({type:ZI,selectors:[["ac-error"]],hostAttrs:[1,"composable-layer","ac-error"],inputs:{data:"data",styles:"styles"},outputs:{installAgentRequest:"installAgentRequest"},features:[Gf,bx],decls:2,vars:3,consts:function(){return[["defaultMessage",""]," Install ",[4,"ngIf"],["class","ac-error-container",3,"nonblocking","ngStyle",4,"ngIf"],[1,"ac-error-container",3,"ngStyle"],[1,"ac-error-text"],[4,"ngIf","ngIfElse"],["svgIcon","ac:info",1,"icon","mat-18"],[3,"innerHTML"],["mat-raised-button",
"",1,"install-button",3,"click","ve","veClick"],["svgIcon","ac:warning"],[1,"error-text-wrapper"],["mat-icon-button","","class","close-button","aria-label","Dismiss error",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Dismiss error",1,"close-button",3,"click"],["svgIcon","ac:close"]]},template:function(a,b){a&1&&(E(0,iKa,3,3,"ng-container",2),T(1,"async"));a&2&&I("ngIf",U(1,1,b.errorsObservable))},dependencies:[cB,eB,Dy,Fx,Jx,aD,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--ac-sys-color-extensions-overlay,hsla(0,0%,100%,.5));display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;position:relative;z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]{height:auto;max-height:100%;background-color:transparent}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-neutral-container,#f1f3f4);border-radius:0 0 4px 4px;margin:auto;padding:0 4px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;width:auto;max-width:100%}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   span.error-text-wrapper[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;max-height:100px}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   button.close-button[_ngcontent-%COMP%]{height:20px;width:20px;padding:2px;border:none;outline:none;margin-left:8px;z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   button.close-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{height:16px;width:16px}.ac-error[_nghost-%COMP%]   .ac-error-text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:13px;font-weight:400;text-align:center;text-shadow:none;width:100%;margin:auto 10px}.ac-error[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;font-size:16px;margin-right:8px;vertical-align:text-top}.ac-error[_nghost-%COMP%]   button.install-button[_ngcontent-%COMP%]{margin-left:12px;color:var(--ac-sys-color-extensions-primary,#3367d6);text-transform:uppercase}\n/*# sourceMappingURL=ac_error.css.map */"],
changeDetection:0});var $I=function(a){gG.call(this,a);this.arcRadius=200;this.canvasWidth=400;this.canvasHeight=200;this.maxThresholdValue=0;this.centerY=this.centerX=200;this.thresholdRenderedContexts=[];this.currentValueRenderedContexts=[];this.thresholdsDict=new Map};Y($I,gG);
var P3c=function(a){return(a.arcRadius-.14*a.arcRadius)*2},R3c=function(a,b,c){var d=[];if(!c||!b||c.minValue>a.maxThresholdValue)return d;var e=a.arcRadius,f=Math.PI,g=0,k=a.maxThresholdValue-c.minValue;b.forEach(function(l){g=(l.upperBound-l.lowerBound)/k*Math.PI;l={arcRadius:e,startAngle:f,endAngle:f+g,arcData:l,filledColor:Q3c(l.category)};f+=g;d.push(l)});return d},Q3c=function(a){switch(a){case 0:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)";case 1:return"var(--ac-sys-color-status-success, #188038)";
case 2:return"var(--ac-sys-color-status-warning, #e37400)";case 3:return"var(--ac-sys-color-status-error, #d93025)";case 4:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)";default:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)"}},S3c=function(a,b){var c=new Map;if(b==null)return c;b=b.thresholds;if(b.length===0)return c;b.forEach(function(f){c.set(f.upperBound,f.category)});b=Array.from(c.keys()).sort(function(f,g){return f-g});if(b.length===0)return c;a.maxThresholdValue=b[b.length-1];a=new Map;
b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c.get(d);e&&a.set(d,e)}return a},T3c=function(a){a=a.series[0];if(!a||a.data.length===0)throw Error("Lc");var b=a.id.toString(),c=a.data[0].y;if(isNaN(c))throw Error("Mc");return{id:b,ref:a,value:c,name:a.name||""}},V3c=function(a,b,c){var d=[];if(!c||!b)return d;var e=c.thresholds;if(e.length===0)return d;var f=U3c(e);try{var g=T3c(b),k=g.id,l=g.ref,r=c.minValue;a.thresholdsDict.forEach(function(w,x){var C=f.get(x)||"";d.push({id:k,lowerBound:r,
upperBound:x,label:C,ref:l,category:w});r=x});return d}catch(w){return[]}},U3c=function(a){var b=new Map;a.forEach(function(c){b.set(c.upperBound,c.label)});return b};$I.prototype.clearWithBackground=function(a){al(this.canvas,a,this.base)};$I.prototype.updateCanvasSize=function(){fG(this,this.canvas);bl(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var W3c=function(a,b){if(b=b.currentValue){var c=b.state.chartWidth;a.canvasHeight=b.state.chartHeight;a.canvasWidth=c;a.arcRadius=Math.min(a.canvasWidth/2,a.canvasHeight);a.centerX=a.canvasWidth/2;a.centerY=a.canvasHeight/2+a.arcRadius/2;a.updateCanvasSize()}},X3c=function(a,b,c){var d=b.arcRadius,e=b.startAngle,f=b.endAngle,g=b.filledColor;a.ctx.save();b=new Path2D;a.ctx.fillStyle=Zk(g,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);c=d-c;a.ctx.beginPath();b.moveTo(a.centerX,a.centerY);b.arc(a.centerX,
a.centerY,c,e,f);a.ctx.fill(b);a.ctx.closePath();a.ctx.beginPath();a.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",a.base);a.ctx.lineWidth=2;a.ctx.moveTo(a.centerX+c*Math.cos(e),a.centerY+c*Math.sin(e));a.ctx.lineTo(a.centerX,a.centerY);a.ctx.stroke();a.ctx.moveTo(a.centerX+c*Math.cos(f),a.centerY+c*Math.sin(f));a.ctx.lineTo(a.centerX,a.centerY);a.ctx.stroke();a.ctx.closePath();a.ctx.restore()},Y3c=function(a,b,c){a.ctx.save();a.ctx.beginPath();a.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",
a.base);a.ctx.globalAlpha=c!=null?c:1;a.ctx.arc(a.centerX,a.centerY,a.arcRadius-b,Math.PI,2*Math.PI);a.ctx.fill();a.ctx.closePath();a.ctx.restore()},Z3c=function(a){a.currentValueRenderedContexts.forEach(function(b){X3c(a,b,.03*a.arcRadius*2)})},$3c=function(a){a.thresholdRenderedContexts.forEach(function(b){X3c(a,b,0)})},a4c=function(a,b){$I.call(this,a);this.afterRenderHook=b;this.canvas.className="ac-gauge-view__canvas"};Y(a4c,$I);
var b4c=function(a,b,c){var d=null,e=Math.sqrt(Math.pow(b-a.centerX,2)+Math.pow(c-a.centerY,2));if(e>a.arcRadius)return d;var f=a.arcRadius-a.arcRadius*.02*2;a.thresholdRenderedContexts.forEach(function(g){var k=a.centerX;if(f<=e&&e<=a.arcRadius){var l=Math.atan2(Math.abs(c-a.centerY),Math.abs(b-k));k=b<=k?l+Math.PI:2*Math.PI-l;k=k>=g.startAngle&&k<=g.endAngle}else k=!1;k&&(d=g)});return d};
a4c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.config;if(b.state&&c){W3c(this,a);if(b){this.thresholdsDict=S3c(this,b.config);a:{a=b.data;c=b.config;var d=[];if(a==null)var e=d;else{try{var f=T3c(a),g=f.id,k=f.ref,l=f.value,r=f.name,w=l>this.maxThresholdValue?this.maxThresholdValue:l,x=c.minValue;b:{for(var C=this.thresholdsDict.keys(),H=m(C),J=H.next();!J.done;J=H.next()){var O=J.value;if(w<=O){var R=this.thresholdsDict.get(O)||0;break b}}R=0}var V={id:g,lowerBound:w,upperBound:this.maxThresholdValue,
label:r,ref:k,category:4};d.push({id:g,lowerBound:x,upperBound:w,label:r,ref:k,category:R});d.push(V);e=d;break a}catch(oa){e=[];break a}e=void 0}}this.currentValueRenderedContexts=R3c(this,e,b.config)}this.currentValueRenderedContexts=this.currentValueRenderedContexts;b&&(this.thresholdsDict=S3c(this,b.config),this.thresholdRenderedContexts=R3c(this,V3c(this,b.data,b.config),b.config));this.thresholdRenderedContexts=this.thresholdRenderedContexts;$3c(this);Y3c(this,.02*this.arcRadius*2);Z3c(this);
Y3c(this,.14*this.arcRadius*2);dG(this);var ca;(ca=this.afterRenderHook)==null||ca.call(this)}}};var c4c=function(a){return a.currentValueRenderedContexts.length===0?null:a.currentValueRenderedContexts[0].arcData.category};var d4c=function(a){$I.call(this,a);this.canvas.className="ac-gauge-view__selected-canvas"};Y(d4c,$I);
d4c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.state;b=b.config;c&&b&&(c.selectedThreshold?(this.canvas.style.left="0px",this.canvas.style.top="0px",W3c(this,a),bl(this.canvas,this.base,c.chartHeight,c.chartWidth),Y3c(this,0,.6),X3c(this,c.selectedThreshold,0),a=.02*this.arcRadius*2,this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.arc(this.centerX,this.centerY,this.arcRadius-a,Math.PI,2*Math.PI),this.ctx.globalCompositeOperation=
"destination-out",this.ctx.fill(),this.ctx.globalCompositeOperation="source-over",this.ctx.closePath(),this.ctx.restore(),Y3c(this,a,.6)):al(this.canvas,void 0,this.base))}};var e4c=kk(mk,function(a){if(a&&a.chartWidth>0&&a.chartHeight>0)return{chartWidth:a.chartWidth,chartHeight:a.chartHeight}},BF);var f4c=["labelBodyRef"],g4c=["labelViewRef"],h4c=["labelUnitRef"],aJ=function(a,b,c,d){sG.call(this,a,b,c);this.cdRef=d;this.statusColor=this.unitLabel=this.currentValueLabel=null;this.showUnitAboveValue=!1;this.data=null;this.loading=!1;this.error=null;this.thresholds=[];this.minValue=0;this.unitOverride=null;this.currentValueThresholdCategory=new Ui;this.dataSubject=new Nj(null);this.selectedThresholdSubject=new Nj(null);this.layerType="graphic";this.gaugeView=new a4c(this.el.nativeElement,this.updateLabels.bind(this));
this.configSubject=new Nj({thresholds:this.thresholds,minValue:this.minValue});this.gaugeSelectedView=new d4c(this.el.nativeElement);this.redrawableViews=[this.gaugeView,this.gaugeSelectedView]};Y(aJ,sG);aJ.\u0275dir=sG.\u0275dir;
aJ.prototype.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});NF(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});var b=this.selectorFactoryToObservable(e4c);le([b,this.configObservable,this.dataObservable]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;return{data:d.next().value.currentValue,
config:e.currentValue,state:c!=null?c:null}}),zf(null),vf(),A(gk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.gaugeView.draw(e);a.currentValueThresholdCategory.emit(c4c(a.gaugeView))},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});le([this.configObservable,
this.dataObservable,b,this.selectedThresholdSubject]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{data:e.currentValue,config:c.currentValue,state:f?Object.assign({},f,{selectedThreshold:d}):null}}),zf(null),vf(),A(gk),Ef(this.scopeObservable),Bf(this.destroyed)).subscribe(function(c){var d=m(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.gaugeSelectedView.draw(e)},
scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(zf(null),vf(),A(gk),Bf(this.destroyed)).subscribe(function(c){var d=c.previousValue;(c=c.currentValue)&&(d==null?void 0:d.layerId)!==(c==null?void 0:c.layerId)&&MF(a.chart,[yF({chartGroupId:c.chartGroupId,chartId:c.chartId,previousLayerId:d==null?void 0:d.layerId,currentLayerId:c.layerId})])});this.updateLabels()};
aJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};aJ.prototype.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&this.dataSubject.next(this.data);("minValue"in a||"thresholds"in a)&&this.configSubject.next({thresholds:this.thresholds,minValue:this.minValue});"loading"in a&&b.push(wG(this,this.loading,"Gauge"));"error"in a&&b.push(xG(this,this.error,this.hasData()));MF(this.chart,b)};
aJ.prototype.updateLabels=function(){var a,b,c,d,e=(d=(a=this.data)==null?void 0:(b=a.series[0])==null?void 0:(c=b.data[0])==null?void 0:c.y)!=null?d:null,f,g;a=(g=this.unitOverride||((f=this.data)==null?void 0:f.unit))!=null?g:null;e=WAa(e,a);if(e.value){if(this.currentValueLabel=e.value,this.unitLabel=e.unit&&!UAa(e.unit)?" "+e.unit:e.unit,this.currentValueLabel.length+this.unitLabel.length>7&&this.unitLabel&&!UAa(this.unitLabel)?this.showUnitAboveValue=!0:this.showUnitAboveValue=!1,e=c4c(this.gaugeView))this.statusColor=
Q3c(e)}else this.unitLabel=this.currentValueLabel="";this.cdRef.markForCheck();a:{if(this.labelViewRef){if(P3c(this.gaugeView)===0)break a;e=this.gaugeView;this.labelViewRef.nativeElement.style.bottom=e.canvasHeight-(e.canvasHeight/2+e.arcRadius/2)+"px";this.labelViewRef.nativeElement.style.width=P3c(this.gaugeView)+"px"}this.cdRef.detectChanges()}};
var i4c=function(a,b){if(b===""||b==="{not_a_unit}")b="1";var c=RAa({min:0,max:a,unit:b},VAa).unit,d=!c||CAa(c)?"":(Ik(c)&&Hk(c)||qAa("")).key||"unitless";if(a===0)d=Nk(0,d);else{a=Lk(b,c,a);if(!a)return"";d=Nk(a,d)}return d};
aJ.prototype.onMouseMove=function(a){var b=[];a=tG(this,a);if(a=b4c(this.gaugeView,a.x,a.y)){var c,d,e=(d=this.unitOverride||((c=this.data)==null?void 0:c.unit))!=null?d:null,f;c={label:(f=a.arcData.label)!=null?f:j4c(a.arcData.category),lowerBound:i4c(a.arcData.lowerBound,e!=null?e:""),upperBound:i4c(a.arcData.upperBound,e!=null?e:"")};this.selectedThreshold=a;b.push(wXc({chartId:this.chartId,lastInteraction:{hover:c}}))}else this.selectedThreshold=null,b.push(wXc({chartId:this.chartId,lastInteraction:{hover:null}}));
return b};aJ.prototype.onMouseLeave=function(){this.selectedThreshold=null};var j4c=function(a){switch(a){case 2:return"Warning";case 3:return"Danger";case 1:return"Normal";default:return""}};aJ.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this)};da.Object.defineProperties(aJ.prototype,{selectedThreshold:{configurable:!0,enumerable:!0,set:function(a){this.selectedThresholdSubject.next(a)},get:function(){return this.selectedThresholdSubject.value}}});
aJ.\u0275fac=function(a){return new (a||aJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(ux))};
aJ.\u0275cmp=D({type:aJ,selectors:[["ac-gauge"]],viewQuery:function(a,b){a&1&&(hg(f4c,5),hg(g4c,5),hg(h4c,5));if(a&2){var c;lg(c=mg())&&(b.labelBodyRef=c.first);lg(c=mg())&&(b.labelViewRef=c.first);lg(c=mg())&&(b.labelUnitRef=c.first)}},hostAttrs:[1,"composable-layer","ac-gauge"],inputs:{data:"data",loading:"loading",error:"error",thresholds:"thresholds",minValue:"minValue",unitOverride:"unitOverride",selectedThreshold:"selectedThreshold"},outputs:{currentValueThresholdCategory:"currentValueThresholdCategory"},
features:[Gf,bx],decls:4,vars:4,consts:[["labelViewRef",""],["labelUnitRef",""],["labelBodyRef",""],[1,"ac-gauge__label-view"],["class","ac-gauge__label-unit",4,"ngIf"],["class","ac-gauge__label-body",3,"title",4,"ngIf"],[1,"ac-gauge__label-unit"],[1,"ac-gauge__label-body",3,"title"],[4,"ngIf"]],template:function(a,b){a&1&&(K(0,"div",3,0),E(2,jKa,3,1,"span",4)(3,lKa,4,3,"span",5),L());a&2&&(vg("color",b.statusColor),B(2),I("ngIf",b.showUnitAboveValue),B(),I("ngIf",b.currentValueLabel))},dependencies:[Fx],
styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;position:absolute;width:100%;height:100%;align-items:stretch}.ac-gauge__label-view[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%, 0%);align-items:center;display:flex;flex-direction:column;white-space:nowrap;line-height:normal;container-type:inline-size}.ac-gauge__label-unit[_ngcontent-%COMP%]{font-size:10cqw;font-weight:500;display:inline-block}.ac-gauge__label-body[_ngcontent-%COMP%]{font-size:15cqw;font-weight:500;display:inline-block}.ac-gauge__threshold-view[_ngcontent-%COMP%]{display:block;position:absolute;width:max-content}/*# sourceMappingURL=ac_gauge.css.map */"],
changeDetection:0});var k4c=Vj("[AC] Set layer colorScale",Wj());var bJ=function(a,b,c){aWc.call(this,a,b);this.queueService=c};Y(bJ,aWc);h=bJ.prototype;h.onXAxisChange=function(a,b){Uk(a)&&((a=ZVc(this,b))?this.pan(a):this.drawScheduler.schedule(b))};h.onResizeChange=function(a,b){this.drawScheduler.schedule(b)};h.onYAxisChange=function(a,b){var c=a.previousValue,d,e=(d=a.currentValue)==null?void 0:d.position;c=c==null?void 0:c.position;(ol(a)||e!==c)&&this.drawScheduler.schedule(b)};h.onColorScaleChange=function(a,b){this.drawScheduler.schedule(b)};
h.onConfigChange=function(a,b){this.drawScheduler.schedule(b)};h.resizeCanvas=function(a,b){var c;if(b=(c=b.state)==null?void 0:c.resize){c=b.width-b.margins.left-b.margins.right;var d=b.height-b.margins.top-b.margins.bottom;a.style.left=b.margins.left+"px";a.style.top=b.margins.top+"px";bl(a,this.base,d,c)}};
var l4c=function(a){var b=a.state,c=a.config;if(!b||!c)return{};c=b.resize;var d=b.xAxis;b=b.yAxis;if(!c||!d||!b)return{};var e=c.width-c.margins.left-c.margins.right,f=c.height-c.margins.top-c.margins.bottom,g=d.min,k=d.max,l=b.min,r=b.max;c=b.scaleType;var w=b.absoluteMin;if(g===null||k===null||l===null||r===null)return{};var x,C=Kk(b.unit||"1",((x=a.data)==null?void 0:x.unit)||"1")||1;return{xMap:function(H){return Sk(g,k,0,e,H.valueOf())},yMap:c===1?function(H){return H===-Infinity?f:H===Infinity?
0:CBa(l,r,f,0,H,w,C)}:function(H){return Sk(l*C,r*C,f,0,H)}}},m4c=function(a,b,c,d){d=m(ql(a.y,b).map(d));b=d.next().value;d=d.next().value;var e=c(a.x);a=c(a.x0||a.x);c=e-a;b-=d;c<1&&(a-=.5,c=1);b<1&&(d-=.5,b=1);return{x:a,y:d,width:c,height:b}};var n4c={globalAlpha:1,globalCompositeOperation:"source-over"},o4c=[[38,50,56],[25,53,172],[62,78,184],[103,52,186],[143,25,172],[218,19,95],[255,12,62],[255,109,0],[246,181,0],[255,255,0],[255,255,255]],cJ=function(a,b){bJ.call(this,a,b);this.bgCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.bgCanvas.setAttribute("aria-hidden","true");this.bgCanvas.style.position="absolute";b=this.bgCanvas.getContext("2d");if(!b)throw Error("Ec");this.bgCtx=
b;a.insertBefore(this.bgCanvas,this.canvas)};Y(cJ,bJ);cJ.prototype.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawScheduler.schedule(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx,!0),iG(this,b,this.bgCanvas,this.bgCtx,!0),this.fullDrawDebounceId=setTimeout(function(){fG(c,c.canvas);fG(c,c.bgCanvas);c.drawScheduler.schedule(b)},250)))};
cJ.prototype.unpack=function(a){var b=a.data,c=a.state;if(!b||!c||!b.series[0])return null;a=b.series[0];var d=a.data,e=c.resize,f=c.xAxis;c=c.yAxis;if(!e||!f||!c)return null;f=Yk(f,e.margins.left,e.width-e.margins.right);b=wCa(c,e.margins.top,e.height-e.margins.bottom,b.unit);return f&&b?{series:a,points:d,inverseDomainMap:f,ascending:d.length?d[d.length-1].x.valueOf()-d[0].x.valueOf()>0:!1,inverseRangeMap:b}:null};
var p4c=function(a,b,c){a=a.unpack(b);if(!a)return null;if(!a.points.length)return[];b=a.inverseDomainMap(c.x);c=a.inverseRangeMap(c.y);if(!b||!c)return null;b=wl(a.points,b.valueOf(),xl(null));var d=a.points[b];if(!d||!d.y.bucketCounts)return null;c=nKa(d,c);return[{seriesId:a.series.id,datumIndices:[{index:b,bucketIndex:c}],ignoreSeriesForHighlighting:!0}]};
cJ.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);if(b===null||!a)return null;if(!a.points.length)return{values:[],timeRange:null};b=wl(a.points,b,xl(null));return{values:[{seriesId:a.series.id,value:a.points[b]}],timeRange:{x:a.points[b].x.valueOf()}}};cJ.prototype.getValuesAtXPosition=function(a,b){var c=this.unpack(a);return c?this.getValuesAtTime(a,c.inverseDomainMap(b)):null};
var q4c=function(a,b,c){if(a=a.unpack(b))if(b=a.inverseDomainMap(c.x),c=a.inverseRangeMap(c.y),b&&c&&(b=wl(a.points,b.valueOf(),xl(null)),(a=a.points[b])&&a.y.bucketCounts))return nKa(a,c)};
cJ.prototype.drawInternal=function(a){var b=performance.now(),c=a.data,d=a.state,e=a.config,f=a.scope;if(d&&e){var g=d.xAxis,k=d.colorScale;if(d.resize&&k){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);var l,r=(l=k.byLayer.entities[f.layerId])!=null?l:{layerId:f.layerId,max:0,min:0,colorPivots:[[38,50,56]]};this.fullDrawDebounceId&&clearTimeout(this.fullDrawDebounceId);this.resizeCanvas(this.canvas,a);this.resizeCanvas(this.bgCanvas,a);d=function(H){return Fl(e.colorStrategy.getColor(H,
r))};e.skipZeroValues||r4c(this,d(0));f=l4c(a);a=f.xMap;f=f.yMap;if(a&&f){c=c==null?void 0:c.series;this.ctx.save();$k(this.ctx,n4c,this.base);if(c&&c.length>0){var w,x,C;s4c(this,c[0],a,f,d,(x=e.skipZeroValues)!=null?x:!1,(C=(w=e.styles)==null?void 0:w.renderBucketGap)!=null?C:!1)}this.ctx.restore();g&&g.min!==null&&g.max!==null&&eG(this,g.min,g.max);g=performance.now();this.enableManualLatencyTracking&&dG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:g})}}}};
var r4c=function(a,b){$k(a.bgCtx,n4c,a.base);al(a.bgCanvas,b,a.base)},s4c=function(a,b,c,d,e,f,g){if(b.data.length){a.ctx.save();var k=g?function(C){return{x:C.x+1,y:C.y+1,width:C.width-1,height:C.height-1,color:C.color}}:function(C){return Object.assign({},C,{x:Math.floor(C.x),width:Math.ceil(C.width)})};b=b.data.flatMap(function(C){for(var H=[],J=C.y.bucketCounts,O=0;J&&O<J.length;O++)if(!(f&&J[O]<=0)){var R=m4c(C,O,c,d);H.push(Object.assign({},R,{color:e(J[O])}))}return H.map(k)});b=m(b);for(g=
b.next();!g.done;g=b.next()){g=g.value;var l=g.x,r=g.y,w=g.width,x=g.height;a.ctx.fillStyle=Zk(g.color,a.base);a.ctx.fillRect(l,r,w,x)}a.ctx.restore()}};cJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var t4c=Object.freeze({lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)"}),u4c=function(a,b,c){bJ.call(this,a,b,c)};Y(u4c,bJ);
u4c.prototype.drawInternal=function(a){var b,c,d,e;if(((b=a.config)==null?0:(c=b.interactions)==null?0:c.clickSelect)||((d=a.config)==null?0:(e=d.interactions)==null?0:e.hoverHighlight))if(this.resizeCanvas(this.canvas,a),al(this.canvas,"transparent",this.base),a=this.unpack(a))b=a.rect,$k(this.ctx,a.drawingOptions,this.base),this.ctx.strokeRect(b.x,b.y,b.width,b.height)};u4c.prototype.onSeriesSelectionChange=function(a,b){this.drawScheduler.schedule(b)};
u4c.prototype.unpack=function(a){var b=a.scope.layerId,c,d,e=(c=a.data)==null?void 0:(d=c.series)==null?void 0:d[0],f,g,k,l,r,w,x,C;c=a==null?void 0:(f=a.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer)==null?void 0:(l=k.entities)==null?void 0:(r=l[b])==null?void 0:(w=r.selectedSeries)==null?void 0:(x=w[0])==null?void 0:(C=x.datumIndices)==null?void 0:C[0];if(!c){var H,J,O,R,V,ca,oa,ua;c=a==null?void 0:(H=a.state)==null?void 0:(J=H.seriesSelection)==null?void 0:(O=J.byLayer)==
null?void 0:(R=O.entities)==null?void 0:(V=R[b])==null?void 0:(ca=V.hoveredSeries)==null?void 0:(oa=ca[0])==null?void 0:(ua=oa.datumIndices)==null?void 0:ua[0]}if(e&&c&&(f=c.bucketIndex,f!==void 0&&(e=e.data[c.index],k=l4c(a),g=k.xMap,k=k.yMap,g&&k))){e=m4c(e,f,g,k);var ka,Ga,ja,ta;f=(ka=a.state)==null?void 0:(Ga=ka.colorScale)==null?void 0:(ja=Ga.byLayer)==null?void 0:(ta=ja.entities)==null?void 0:ta[b];var xa;a=f?(xa=a.config)==null?void 0:xa.colorStrategy.getColor(0,f):void 0;xa=Object.assign({},
t4c);a&&!Array.isArray(a)&&(xa.strokeStyle=a,xa.filter="invert()");return{drawingOptions:xa,rect:e}}};var v4c=Object.freeze({renderBucketGap:!1}),w4c=Object.freeze({clickSelect:!1,hoverHighlight:!1}),dJ=function(a,b,c,d,e,f,g){sG.call(this,a,b,c);this.instrumentationService=d;this.modalService=e;this.ngZone=g;this.data=null;this.loading=!1;this.error=null;this.colorPivots=o4c;this.colorStrategy=uZc;this.layerName="";this.enableManualLatencyTracking=this.skipZeroValues=this.refactorA11yNavInstructions=!1;this.onSelect=new Ui;this.dataSubject=new Nj(this.data);this.configSubject=new Nj({colorStrategy:this.colorStrategy,
skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});this.updateGridTriggerSubject=new sf;this.gridGeneratorSubject=new Nj(null);this.maxBucketCount=this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.syncActionsBuffer=this.dataTypeError=null;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(of(0),xk(this.ngZone));this.defaultColumnMaskGeneratorSubject=new Nj(function(){return[]});this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),
xk(this.ngZone));this.updateHoverSelectionTriggerSubject=new wf(1);this.updateHoverValuesTriggerSubject=new wf(1);this.stylesInternal=v4c;this.interactionsInternal=w4c;this.layerType="graphic";this.heatmapView=new cJ(a.nativeElement,this.ngZone,f);this.heatmapViewSelected=new u4c(a.nativeElement,this.ngZone,f);this.views.push(this.heatmapView,this.heatmapViewSelected);this.bindDrawInstrumentation()};Y(dJ,sG);dJ.\u0275dir=sG.\u0275dir;h=dJ.prototype;
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.heatmapView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(Df(500),Bf(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&(c=a.generateGrid(b));return c})});this.updateHoverValuesTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});
this.updateHoverSelectionTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){x4c(a,b)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});NF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onClick(b)})};
h.bindDrawInstrumentation=function(){var a=this;cG(this.heatmapView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(nf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;JG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});JG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};
h.onDataChange=function(a,b){var c=b.scope,d=b.state,e=a.currentValue,f=[];a.previousValue!==e&&(f.push(oH({chartId:c.chartId,layerId:c.layerId,yAxisId:c.yAxisId,xAxisId:c.xAxisId,valueType:2,unit:(e==null?void 0:e.unit)||null,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0})),f.push(nH({chartId:c.chartId,layerId:c.layerId,series:(e==null?void 0:e.series.map(function(l){var r;return{seriesId:l.id,name:(r=l.name)!=null?r:l.id,drawnAs:3,dataSeriesMetadata:l.metadata}}))||
[]})),e?(this.yAxisRequirement=y4c(e),f.push(uG(this,this.yAxisRequirement)),this.xAxisRequirement=z4c(e),f.push(vG(this,this.xAxisRequirement)),a=A4c(e),a!==this.maxBucketCount&&f.push(B4c(this,a))):f.push(B4c(this,0)),this.updateGridTriggerSubject.next(b));var g,k;(d==null?0:(g=d.xAxisPin)==null?0:g.xPos)&&(d==null?0:(k=d.xAxisPin)==null?0:k.locked)&&(b=this.heatmapView.getValuesAtTime(b,d.xAxisPin.xPos),(b=this.updateTimeSeriesValues((b==null?void 0:b.values)||null,(b==null?void 0:b.timeRange)||
null,0))&&f.push(b));MF(this.chart,f)};h.onResizeChange=function(a,b){qk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){ol(a)&&this.updateGridTriggerSubject.next(b)};h.onColorScaleChange=function(a,b){a=b.scope;var c,d,e=(c=b.state)==null?void 0:(d=c.colorScale)==null?void 0:d.byLayer.entities[a.layerId];if(e&&e.max!==this.maxBucketCount)for(this.maxBucketCount=e.max,c=m(this.views),d=c.next();!d.done;d=c.next())d.value.draw({currentValue:b.data,previousValue:b.data},b)};
h.onXAxisChange=function(a,b){var c=this;(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(DBa(a)){var d=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var e=null;d===void 0&&(c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(f){e=f&&f()}),d=c.generateDefaultColumnMask(b,e));return d})}};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f,g;a=this.heatmapView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:(g=f.xPos)==null?void 0:g.valueOf())||null);var k,l;(f=this.updateTimeSeriesValues((k=a==null?void 0:a.values)!=null?k:null,(l=a==null?void 0:a.timeRange)!=null?l:null,0))&&c.push(f)}return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=tG(this,a);this.syncActionsBuffer=[];this.updateHoverSelectionTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){var a=this;this.isMouseOver=!1;this.withLatest(function(b){a.store.dispatch(UG({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[]}))})};
h.onClick=function(a){var b=this,c=tG(this,a);this.withLatest(function(d){var e=b.heatmapView.getValuesAtXPosition(d,c.x),f=q4c(b.heatmapView,d,c),g,k,l=b.updateTimeSeriesValues((g=e==null?void 0:e.values)!=null?g:null,(k=e==null?void 0:e.timeRange)!=null?k:null,2,f);l&&b.store.dispatch(l);var r;if((r=b.interactions)==null?0:r.clickSelect){e=p4c(b.heatmapView,d,c);var w,x,C,H,J;f=(w=d.state)==null?void 0:(x=w.seriesSelection)==null?void 0:(C=x.byLayer)==null?void 0:(H=C.entities)==null?void 0:(J=
H[d.scope.layerId])==null?void 0:J.selectedSeries;if(vKa(e,f))b.store.dispatch(TG({chartId:d.scope.chartId,layerId:d.scope.layerId})),b.onSelect.emit(void 0);else{w={chartId:d.scope.chartId,layerId:d.scope.layerId,series:e!=null?e:[]};b.store.dispatch(SG(w));var O,R;if(w.series&&((O=d.data)==null?0:O.series)&&((R=w.series[0].datumIndices)==null?void 0:R[0].bucketIndex)!==void 0){var V,ca,oa;b.onSelect.emit({series:(V=d.data.series)==null?void 0:V[0],bucketIndex:(ca=w.series[0].datumIndices)==null?
void 0:ca[0].bucketIndex,index:(oa=w.series[0].datumIndices)==null?void 0:oa[0].index})}}}})};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(k){if(k=k&&k()){var l=e!==null?k.columns[e]:null,r=e!==null?k.columns[e-1]:null;if(a.focusedCell){var w,x=(w=l==null?void 0:l.metadata.timeMs)!=null?w:null,C;w=(C=r==null?void 0:r.metadata.timeMs)!=null?C:null;x!==null&&w!==null&&(x=(x+w)/2);b.store.dispatch(BG({chartGroupId:g.chartGroupId,position:x}));
b.store.dispatch(CG({chartGroupId:g.chartGroupId,locked:!!l}))}d!==null&&e!==null&&(C=k.values[d][e],b.store.dispatch(zG({chartId:g.chartId,lastInteraction:{focus:C.position.x}})),b.store.dispatch(AG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:C.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.generateGrid=function(a){var b=a.data;var c=a.state;if(!b||!c)return null;a=c.xAxis;var d=c.resize;c=c.yAxis;if(!a||!d||!c)return null;var e=Xk(a,d.margins.left,d.width-d.margins.right,b.xAxisUnit),f=b.unit,g=c.unit;d=pl(c,d.margins.top,d.height-d.margins.bottom,f);var k=a.tickIncrement||null,l=a.timezoneOffset,r=a.timeZoneId;return e&&d?uKa({data:b,xAxisState:a,yAxisState:c,rowFormatter:pKa(f,g,c.maximumFractionDigits),columnFormatter:function(w){return{label:kl({position:w,tickIncrement:k,timeZone:Gk(l,
r)}),value:w}},valueFormatter:tKa(),positionMap:rKa(e,d)}):null};var x4c=function(a,b){a.withLatest(function(c){var d=p4c(a.heatmapView,c,b);c=UG({chartId:c.scope.chartId,layerId:c.scope.layerId,series:d||[]});a.syncActionsBuffer?a.syncActionsBuffer.push(c):a.store.dispatch(c)})};
dJ.prototype.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.heatmapView.getValuesAtXPosition(c,a.x);c=q4c(b.heatmapView,c,a);var e,f,g=b.updateTimeSeriesValues((e=d==null?void 0:d.values)!=null?e:null,(f=d==null?void 0:d.timeRange)!=null?f:null,1,c);g&&(b.syncActionsBuffer?b.syncActionsBuffer.push(g):b.store.dispatch(g))})};
dJ.prototype.updateTimeSeriesValues=function(a,b,c,d){var e=null;this.withLatest(function(f){f=f.scope;var g=(a!=null?a:[]).map(function(k){return k.value===null?k:Object.assign({},k,{value:Object.assign({},k.value,{bucketIndex:d})})});e=mH({chartId:f.chartId,layerId:f.layerId,valueType:2,timeKey:c,values:g,timeRange:b!=null?b:void 0})});return e};
var y4c=function(a){if(!a)return null;for(var b=-Infinity,c=Infinity,d=Infinity,e=m(a.series),f=e.next();!f.done;f=e.next()){f=m(f.value.data);for(var g=f.next();!g.done;g=f.next()){var k=g.value.y,l=k.bucketCounts;g=void 0;if((g=l)==null?0:g.length){var r=ql(k,l.length-1);g=r[1];if(g===Infinity){var w=m(ql(k,l.length-2)),x=w.next().value;w=w.next().value;x!==null&&w!==null?g=w+(w-x)*2:g=r[0]}l.length&&l[0]>0?(l=ql(k,0),r=l[0],r===-Infinity&&(x=m(ql(k,1)),k=x.next().value,x=x.next().value,k!==null&&
x!==null?r=k-(x-k)/2:r=l[1])):(l=ql(k,1),r=l[0]);k=void 0;b=Math.max(b,(k=g)!=null?k:b);g=void 0;c=Math.min(c,(g=r)!=null?g:c);d=Math.min(d,Math.abs(r||l[1]||d))}}}return b===-Infinity||c===Infinity?null:{priority:1,absoluteMin:d,min:c,max:b,unit:a.unit||null}},z4c=function(a){if(!a)return null;var b=-Infinity,c=Infinity,d=!1;a=m(a.series);for(var e=a.next();!e.done;e=a.next())e=e.value.data,e.length!==0&&(d=e[e.length-1],b=Math.max(b,e[0].x.valueOf()),c=Math.min(c,(d.x0||d.x).valueOf()),d=!0);return d?
{priority:1,min:c,max:b,unit:"ms_since_epoch"}:null},A4c=function(a){var b=1;a=m(a.series);for(var c=a.next();!c.done;c=a.next()){c=m(c.value.data);for(var d=c.next();!d.done;d=c.next())d=d.value,d.y&&d.y.bucketCounts&&(b=Math.max(b,Math.max.apply({},d.y.bucketCounts)))}return b};dJ.prototype.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?AEa({ticks:a.ticks,grid:b}):[]:[]};
dJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
dJ.prototype.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||vFa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(xG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only distribution data can be drawn as a heatmap chart. The data provided cannot be drawn.",message:"Only distribution data can be drawn as a heatmap chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(xG(this,this.dataTypeError,!1))));("colorStrategy"in a||"skipZeroValues"in a||"styles"in a||"interactions"in a)&&this.configSubject.next({colorStrategy:this.colorStrategy,skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});if("colorPivots"in a){this.colorPivots=a.colorPivots.currentValue;var c=this.data?A4c(this.data):0;b.push(B4c(this,c))}"loading"in a&&b.push(wG(this,this.loading,"Heatmap"));"error"in a&&b.push(xG(this,this.error,
this.hasData()));MF(this.chart,b)};var B4c=function(a,b){return k4c({chartId:a.chartId,layerId:a.layerId,max:b,min:0,colorPivots:a.colorPivots})};dJ.prototype.getLayerTitle=function(){return this.layerName?"Heatmap "+this.layerName:"Heatmap"};dJ.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null),vG(this,null),xG(this,null,!1),wG(this,!1,"Heatmap")])};
da.Object.defineProperties(dJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},v4c,a)},get:function(){return this.stylesInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},w4c,a)},get:function(){return this.interactionsInternal}}});dJ.\u0275fac=function(a){return new (a||dJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(IG),Ye(jH),Ye(MG),Ye(Rg))};
dJ.\u0275cmp=D({type:dJ,selectors:[["ac-heatmap"]],hostAttrs:[1,"composable-layer","ac-heatmap"],inputs:{data:"data",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",colorPivots:"colorPivots",colorStrategy:"colorStrategy",layerName:"layerName",legendTemplate:"legendTemplate",refactorA11yNavInstructions:"refactorA11yNavInstructions",skipZeroValues:"skipZeroValues",styles:"styles",enableManualLatencyTracking:"enableManualLatencyTracking",interactions:"interactions"},outputs:{onSelect:"onSelect"},
features:[Gf,bx],decls:3,vars:9,consts:[[3,"onFocusedCellChange","onGridCellActivate","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onFocusedCellChange",function(c){return b.onFocusedCellChange(c)})("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),
L());a&2&&I("gridGenerator",U(1,5,b.gridGeneratorObservable))("columnMaskGenerator",U(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[qH,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_heatmap.css.map */"],changeDetection:0});var C4c=new fd("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");new fd("mat-progress-bar-location",{providedIn:"root",factory:function(){var a=p(Sh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}});
var eJ=function(){var a=this;this._elementRef=p(Jd);this._ngZone=p(Rg);this._changeDetectorRef=p(ux);this._renderer=p(di);this._defaultColor="primary";this._bufferValue=this._value=0;this.animationEnd=new Ui;this._mode="determinate";this._transitionendHandler=function(d){a.animationEnd.observers.length!==0&&d.target&&d.target.classList.contains("mdc-linear-progress__primary-bar")&&(a.mode!=="determinate"&&a.mode!=="buffer"||a._ngZone.run(function(){return a.animationEnd.next({value:a.value})}))};
var b=Tra(),c=p(C4c,{optional:!0});this._isNoopAnimation=b==="di-disabled";b==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion");c&&(c.color&&(this.color=this._defaultColor=c.color),this.mode=c.mode||this.mode)};h=eJ.prototype;h.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._cleanupTransitionEnd=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._transitionendHandler)})};
h.ngOnDestroy=function(){var a;(a=this._cleanupTransitionEnd)==null||a.call(this)};h._getPrimaryBarTransform=function(){return"scaleX("+(this._isIndeterminate()?1:this.value/100)+")"};h._getBufferBarFlexBasis=function(){return(this.mode==="buffer"?this.bufferValue:100)+"%"};h._isIndeterminate=function(){return this.mode==="indeterminate"||this.mode==="query"};
da.Object.defineProperties(eJ.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()}}});eJ.\u0275fac=function(a){return new (a||eJ)};
eJ.\u0275cmp=D({type:eJ,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&&(Kf("aria-valuenow",b._isIndeterminate()?null:b.value)("mode",b.mode),xg("mat-"+b.color),wg("_mat-animation-noopable",b._isNoopAnimation)("mdc-linear-progress--animation-ready",!b._isNoopAnimation)("mdc-linear-progress--indeterminate",b._isIndeterminate()))},inputs:{color:"color",
value:[2,"value","value",ah],bufferValue:[2,"bufferValue","bufferValue",ah],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&&(Rf(0,"div",0),Tf(1,"div",1),F(2,wKa,1,0,"div",2),Sf(),Rf(3,"div",3),Tf(4,"span",4),Sf(),Rf(5,"div",5),Tf(6,"span",4),Sf());a&2&&(B(),vg("flex-basis",b._getBufferBarFlexBasis()),B(),G(b.mode==="buffer"?2:-1),B(),vg("transform",b._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],
encapsulation:2,changeDetection:0});var fJ=function(){};fJ.\u0275fac=function(a){return new (a||fJ)};fJ.\u0275mod=cf({type:fJ});fJ.\u0275inj=Hc({imports:[Ey]});var D4c={fillStyle:"var(--ac-sys-color-chart-primary, #3367D6)",globalAlpha:.1},gJ=function(a){hG.call(this,a)};Y(gJ,hG);gJ.prototype.drawV1=function(a){this.drawInternal(a)};gJ.prototype.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};gJ.prototype.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};
gJ.prototype.drawInternal=function(a){var b;if((b=a.state)==null?0:b.xAxis){var c=a.data;b=a.state;var d=a.config;if(c&&b){var e=b.resize;b=b.xAxis;if(e&&b){var f=Math.max(0,e.width-e.margins.left-e.margins.right);a=(d==null?0:d.coverTopMargin)?e.height:Math.max(0,e.height-e.margins.top-e.margins.bottom);if(b=Xk(b,0,f)){this.canvas.style.left=e.margins.left+"px";this.canvas.style.top=((d==null?0:d.coverTopMargin)?0:e.margins.top)+"px";bl(this.canvas,this.base,a,f);this.ctx.save();$k(this.ctx,D4c,
this.base);if(c.paused||typeof c.domains==="boolean"&&c.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,f,a),this.ctx.fill();else if(Array.isArray(c.domains))for(c=m(c.domains),d=c.next();!d.done;d=c.next())e=d.value,d=b(e.start.valueOf()),e=b(e.end.valueOf()),this.ctx.beginPath(),this.ctx.rect(d,0,e-d,a),this.ctx.fill();this.ctx.restore()}}}}else if((c=a.state)==null?0:c.categoricalAxis)if(b=a.data,c=a.state,a=a.config,b&&c&&(c=c.resize)){d=Math.max(0,c.width-c.margins.left-c.margins.right);
e=(a==null?0:a.coverTopMargin)?c.height:Math.max(0,c.height-c.margins.top-c.margins.bottom);this.canvas.style.left=c.margins.left+"px";this.canvas.style.top=((a==null?0:a.coverTopMargin)?0:c.margins.top)+"px";bl(this.canvas,this.base,e,d);this.ctx.save();$k(this.ctx,D4c,this.base);if(b.paused||typeof b.domains==="boolean"&&b.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,d,e),this.ctx.fill();this.ctx.restore()}};var E4c=new Tl("Loading {chartTitle}"),hJ=function(a,b,c,d,e){sG.call(this,a,b,c);var f=this;this.cdr=d;this.ngZone=e;this.showImmediately=this.coverTopMargin=this.useProgressBar=!1;this.spinnerDiameter=40;this.bodyTop=this.bodyLeft=this.bodyWidth=this.bodyHeight=0;this.dataSubject=new Nj({domains:[],paused:!1});this.configSubject=new Nj({coverTopMargin:!1});this.showObservable=this.showSubject=new Nj(!1);this.hasShownForData=!1;this.loadingIndicatorLabel=E4c.format({chartTitle:"chart"});a=new gJ(a.nativeElement);
this.views.push(a);this.ngZoneDataObservable=this.dataObservable.pipe(of(0),xk(this.ngZone));this.ngZoneDataObservable.pipe(A(function(g){var k;g=(k=g.currentValue)==null?void 0:k.domains;return Array.isArray(g)?g.length>0:g!=null?g:!1}),Bf(this.destroyed)).subscribe(function(g){f.hasShownForData=f.hasShownForData||g;f.showImmediately&&!f.hasShownForData||f.showSubject.next(g)})};Y(hJ,sG);hJ.\u0275dir=sG.\u0275dir;
hJ.prototype.ngOnInit=function(){sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
hJ.prototype.ngOnChanges=function(a){var b=this;sG.prototype.ngOnChanges.call(this,a);"showPausedBeforeFirstLoad"in a&&this.withLatest(function(c){c=c.state;var d;b.dataSubject.next(Object.assign({},b.dataSubject.value,{paused:!(!b.showPausedBeforeFirstLoad||(c==null?0:(d=c.loading)==null?0:d.hasLoadingEverOccurred))}))});"coverTopMargin"in a&&this.configSubject.next({coverTopMargin:this.coverTopMargin});"showImmediately"in a&&(this.hasShownForData||this.showSubject.next(this.showImmediately))};
hJ.prototype.onResizeChange=function(a,b){var c=this,d;if(a=b==null?void 0:(d=b.state)==null?void 0:d.resize)this.bodyLeft=a.margins.left,this.bodyWidth=a.width-a.margins.left-a.margins.right,this.coverTopMargin?(this.bodyTop=0,this.bodyHeight=a.height):(this.bodyTop=a.margins.top,this.bodyHeight=a.height-a.margins.top-a.margins.bottom),this.spinnerDiameter=Math.max(12,Math.min(40,this.bodyHeight-16)),this.ngZone.run(function(){c.cdr.markForCheck()})};
hJ.prototype.onLoadingChange=function(a){var b=a.currentValue;a=!(!this.showPausedBeforeFirstLoad||(b==null?0:b.hasLoadingEverOccurred));if((b==null?0:b.sourceToDescriptionMap)&&(b==null?0:b.sourceToLoadingMap)){var c=F4c(b==null?void 0:b.sourceToLoadingMap,b==null?void 0:b.sourceToDescriptionMap);if(typeof c==="boolean")this.dataSubject.next({domains:c,paused:a});else{b=[];c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push({start:d.start,end:d.end,loadingDescription:d.layerNames});this.dataSubject.next({domains:b,
paused:a})}}else this.dataSubject.next({domains:[],paused:a})};
var F4c=function(a,b){for(var c=[],d=m(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=e.value;var f=a[e];if(typeof f==="boolean"){if(f===!0)return!0}else{e=b[e];f=m(f);for(var g=f.next();!g.done;g=f.next())g=g.value,c.push({start:g[0],end:g[1],layerNames:[e]})}}c.sort(function(k,l){return l.start.getTime()-k.start.getTime()});a=c.pop();for(b=[];c.length!==0;)if(a){if(d=c.pop())a.start.getTime()<=d.start.getTime()&&a.end.getTime()>=d.start.getTime()?a={start:a.start,end:d.end.getTime()>a.end.getTime()?
d.end:a.end,layerNames:Array.from(new Set(a.layerNames.concat(d.layerNames)))}:(b.push(a),a=d)}else a=c.pop();a&&b.push(a);return b};da.Object.defineProperties(hJ.prototype,{chartTitle:{configurable:!0,enumerable:!0,set:function(a){a&&(this.loadingIndicatorLabel=E4c.format({chartTitle:a}))}}});hJ.\u0275fac=function(a){return new (a||hJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(ux),Ye(Rg))};
hJ.\u0275cmp=D({type:hJ,selectors:[["ac-loading"]],hostAttrs:[1,"composable-layer","loading"],inputs:{chartTitle:"chartTitle",showPausedBeforeFirstLoad:"showPausedBeforeFirstLoad",useProgressBar:"useProgressBar",coverTopMargin:"coverTopMargin",showImmediately:"showImmediately"},features:[Gf,bx],decls:2,vars:3,consts:[["class","chart-body",3,"height","width","top","left",4,"ngIf"],[1,"chart-body"],["color","primary",3,"diameter","strokeWidth",4,"ngIf"],["mode","indeterminate","color","primary",4,"ngIf"],
["color","primary",3,"diameter","strokeWidth"],["mode","indeterminate","color","primary"]],template:function(a,b){a&1&&(E(0,zKa,3,10,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.showObservable))},dependencies:[eJ,rI,Fx,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}[_nghost-%COMP%]    {--mat-progress-bar-active-indicator-height: 4px;--mat-progress-bar-track-height: 4px;--mat-progress-bar-track-shape: 0;--mat-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-fab-container-shape: 50%;--mat-fab-touch-target-size: 48px;--mat-fab-extended-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-fab-extended-container-height: 48px;--mat-fab-extended-container-shape: 24px;--mat-fab-extended-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-extended-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-extended-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-fab-small-container-shape: 50%;--mat-fab-small-touch-target-size: 48px;--mat-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-container-color: white;--mat-fab-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-fab-focus-state-layer-opacity: 0.12;--mat-fab-foreground-color: rgba(0, 0, 0, 0.87);--mat-fab-hover-state-layer-opacity: 0.04;--mat-fab-pressed-state-layer-opacity: 0.12;--mat-fab-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-container-color: white;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-fab-small-focus-state-layer-opacity: 0.12;--mat-fab-small-foreground-color: rgba(0, 0, 0, 0.87);--mat-fab-small-hover-state-layer-opacity: 0.04;--mat-fab-small-pressed-state-layer-opacity: 0.12;--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, 0.87);--mat-fab-state-layer-color: rgba(0, 0, 0, 0.87);--mat-fab-small-touch-target-display: block;--mat-fab-touch-target-display: block;--mat-fab-extended-label-text-font: Roboto, sans-serif;--mat-fab-extended-label-text-size: 14px;--mat-fab-extended-label-text-tracking: 0.0892857143em;--mat-fab-extended-label-text-weight: 500;--mat-button-filled-container-shape: 4px;--mat-button-filled-horizontal-padding: 16px;--mat-button-filled-icon-offset: -4px;--mat-button-filled-icon-spacing: 8px;--mat-button-filled-touch-target-size: 48px;--mat-button-outlined-container-shape: 4px;--mat-button-outlined-horizontal-padding: 15px;--mat-button-outlined-icon-offset: -4px;--mat-button-outlined-icon-spacing: 8px;--mat-button-outlined-keep-touch-target: false;--mat-button-outlined-outline-width: 1px;--mat-button-outlined-touch-target-size: 48px;--mat-button-protected-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-container-shape: 4px;--mat-button-protected-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-horizontal-padding: 16px;--mat-button-protected-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-icon-offset: -4px;--mat-button-protected-icon-spacing: 8px;--mat-button-protected-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-button-protected-touch-target-size: 48px;--mat-button-text-container-shape: 4px;--mat-button-text-horizontal-padding: 8px;--mat-button-text-icon-offset: 0;--mat-button-text-icon-spacing: 8px;--mat-button-text-with-icon-horizontal-padding: 8px;--mat-button-text-touch-target-size: 48px;--mat-button-tonal-container-shape: 4px;--mat-button-tonal-horizontal-padding: 16px;--mat-button-tonal-icon-offset: -4px;--mat-button-tonal-icon-spacing: 8px;--mat-button-tonal-touch-target-size: 48px;--mat-button-filled-container-color: white;--mat-button-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-filled-focus-state-layer-opacity: 0.12;--mat-button-filled-hover-state-layer-opacity: 0.04;--mat-button-filled-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-filled-pressed-state-layer-opacity: 0.12;--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-outlined-focus-state-layer-opacity: 0.12;--mat-button-outlined-hover-state-layer-opacity: 0.04;--mat-button-outlined-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-pressed-state-layer-opacity: 0.12;--mat-button-outlined-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-outlined-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-protected-container-color: white;--mat-button-protected-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-protected-focus-state-layer-opacity: 0.12;--mat-button-protected-hover-state-layer-opacity: 0.04;--mat-button-protected-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-protected-pressed-state-layer-opacity: 0.12;--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-text-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-text-focus-state-layer-opacity: 0.12;--mat-button-text-hover-state-layer-opacity: 0.04;--mat-button-text-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-text-pressed-state-layer-opacity: 0.12;--mat-button-text-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-text-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-tonal-container-color: white;--mat-button-tonal-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-tonal-focus-state-layer-opacity: 0.12;--mat-button-tonal-hover-state-layer-opacity: 0.04;--mat-button-tonal-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-tonal-pressed-state-layer-opacity: 0.12;--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-filled-container-height: 36px;--mat-button-filled-touch-target-display: block;--mat-button-outlined-container-height: 36px;--mat-button-outlined-touch-target-display: block;--mat-button-protected-container-height: 36px;--mat-button-protected-touch-target-display: block;--mat-button-text-container-height: 36px;--mat-button-text-touch-target-display: block;--mat-button-tonal-container-height: 36px;--mat-button-tonal-touch-target-display: block;--mat-button-filled-label-text-font: Roboto, sans-serif;--mat-button-filled-label-text-size: 14px;--mat-button-filled-label-text-tracking: 0.0892857143em;--mat-button-filled-label-text-transform: none;--mat-button-filled-label-text-weight: 500;--mat-button-outlined-label-text-font: Roboto, sans-serif;--mat-button-outlined-label-text-size: 14px;--mat-button-outlined-label-text-tracking: 0.0892857143em;--mat-button-outlined-label-text-transform: none;--mat-button-outlined-label-text-weight: 500;--mat-button-protected-label-text-font: Roboto, sans-serif;--mat-button-protected-label-text-size: 14px;--mat-button-protected-label-text-tracking: 0.0892857143em;--mat-button-protected-label-text-transform: none;--mat-button-protected-label-text-weight: 500;--mat-button-text-label-text-font: Roboto, sans-serif;--mat-button-text-label-text-size: 14px;--mat-button-text-label-text-tracking: 0.0892857143em;--mat-button-text-label-text-transform: none;--mat-button-text-label-text-weight: 500;--mat-button-tonal-label-text-font: Roboto, sans-serif;--mat-button-tonal-label-text-size: 14px;--mat-button-tonal-label-text-tracking: 0.0892857143em;--mat-button-tonal-label-text-transform: none;--mat-button-tonal-label-text-weight: 500;--mat-checkbox-disabled-selected-checkmark-color: white;--mat-checkbox-selected-focus-state-layer-opacity: 0.12;--mat-checkbox-selected-hover-state-layer-opacity: 0.04;--mat-checkbox-selected-pressed-state-layer-opacity: 0.12;--mat-checkbox-unselected-focus-state-layer-opacity: 0.12;--mat-checkbox-unselected-hover-state-layer-opacity: 0.04;--mat-checkbox-unselected-pressed-state-layer-opacity: 0.12;--mat-checkbox-touch-target-size: 48px;--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, 0.87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #3367d6;--mat-checkbox-selected-hover-icon-color: #3367d6;--mat-checkbox-selected-icon-color: #3367d6;--mat-checkbox-selected-pressed-icon-color: #3367d6;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #3367d6;--mat-checkbox-selected-hover-state-layer-color: #3367d6;--mat-checkbox-selected-pressed-state-layer-color: #3367d6;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-touch-target-display: block;--mat-checkbox-state-layer-size: 40px;--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: 0.0178571429em;--mat-checkbox-label-text-weight: 400;--mat-icon-button-icon-size: 24px;--mat-icon-button-container-shape: 50%;--mat-icon-button-touch-target-size: 48px;--mat-icon-button-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-icon-button-focus-state-layer-opacity: 0.12;--mat-icon-button-hover-state-layer-opacity: 0.04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: 0.12;--mat-icon-button-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-icon-button-state-layer-color: rgba(0, 0, 0, 0.87);--mat-icon-button-touch-target-display: block;--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-autocomplete-background-color: white;--mat-form-field-filled-active-indicator-height: 1px;--mat-form-field-filled-focus-active-indicator-height: 2px;--mat-form-field-filled-container-shape: 4px;--mat-form-field-outlined-outline-width: 1px;--mat-form-field-outlined-focus-outline-width: 2px;--mat-form-field-outlined-container-shape: 4px;--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-filled-caret-color: #3367d6;--mat-form-field-filled-focus-active-indicator-color: #3367d6;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-outlined-caret-color: #3367d6;--mat-form-field-outlined-focus-outline-color: #3367d6;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-state-layer-color: rgba(0, 0, 0, 0.87);--mat-form-field-error-text-color: #d50000;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, 0.54);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-hover-state-layer-opacity: 0.04;--mat-form-field-focus-state-layer-opacity: 0.12;--mat-form-field-filled-container-color: #f6f6f6;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-form-field-filled-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-hover-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-filled-input-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-error-hover-label-text-color: #d50000;--mat-form-field-filled-error-focus-label-text-color: #d50000;--mat-form-field-filled-error-label-text-color: #d50000;--mat-form-field-filled-error-caret-color: #d50000;--mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: rgba(0, 0, 0, 0.87);--mat-form-field-filled-error-active-indicator-color: #d50000;--mat-form-field-filled-error-focus-active-indicator-color: #d50000;--mat-form-field-filled-error-hover-active-indicator-color: #d50000;--mat-form-field-outlined-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-outlined-hover-label-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-outlined-input-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(0, 0, 0, 0.54);--mat-form-field-outlined-error-caret-color: #d50000;--mat-form-field-outlined-error-focus-label-text-color: #d50000;--mat-form-field-outlined-error-label-text-color: #d50000;--mat-form-field-outlined-error-hover-label-text-color: #d50000;--mat-form-field-outlined-outline-color: rgba(0, 0, 0, 0.38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-form-field-outlined-hover-outline-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-error-focus-outline-color: #d50000;--mat-form-field-outlined-error-hover-outline-color: #d50000;--mat-form-field-outlined-error-outline-color: #d50000;--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px;--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: 0.03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: 0.0333333333em;--mat-form-field-subscript-text-weight: 400;--mat-form-field-filled-label-text-font: Roboto, sans-serif;--mat-form-field-filled-label-text-size: 16px;--mat-form-field-filled-label-text-tracking: 0.03125em;--mat-form-field-filled-label-text-weight: 400;--mat-form-field-outlined-label-text-font: Roboto, sans-serif;--mat-form-field-outlined-label-text-size: 16px;--mat-form-field-outlined-label-text-tracking: 0.03125em;--mat-form-field-outlined-label-text-weight: 400;--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, 0.87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mat-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-label-text-color: #3367d6;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-optgroup-label-text-color: rgba(0, 0, 0, 0.87);--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: 0.03125em;--mat-option-label-text-weight: 400;--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: 0.03125em;--mat-optgroup-label-text-weight: 400;--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #3367d6;--mat-select-invalid-arrow-color: #d50000;--mat-select-arrow-transform: translateY(-8px);--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: 0.03125em;--mat-select-trigger-text-weight: 400;--mat-progress-spinner-active-indicator-width: 4px;--mat-progress-spinner-size: 48px;--mat-progress-spinner-active-indicator-color: #3367d6;--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-menu-item-label-text-color: rgba(0, 0, 0, 0.87);--mat-menu-item-icon-color: rgba(0, 0, 0, 0.87);--mat-menu-item-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, 0.12);--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: 0.03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400;--mat-tooltip-container-shape: 4px;--mat-tooltip-supporting-text-line-height: 16px;--mat-tooltip-container-color: #424242;--mat-tooltip-supporting-text-color: white;--mat-tooltip-supporting-text-font: Roboto, sans-serif;--mat-tooltip-supporting-text-size: 12px;--mat-tooltip-supporting-text-weight: 400;--mat-tooltip-supporting-text-tracking: 0.0333333333em;--mat-divider-width: 1px;--mat-divider-color: rgba(0, 0, 0, 0.12)}[_nghost-%COMP%]     .mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #3367d6;--mat-progress-bar-track-color: rgba(51, 103, 214, 0.25)}[_nghost-%COMP%]     .mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #3367d6;--mat-progress-bar-track-color: rgba(51, 103, 214, 0.25)}[_nghost-%COMP%]     .mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #d50000;--mat-progress-bar-track-color: rgba(213, 0, 0, 0.25)}[_nghost-%COMP%]     .mat-mdc-fab.mat-primary, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #3367d6;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-fab-small-container-color: #3367d6;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-fab.mat-accent, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #3367d6;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-fab-small-container-color: #3367d6;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-fab.mat-warn, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #d50000;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-fab-small-container-color: #d50000;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-primary, [_nghost-%COMP%]     .mat-tonal-button.mat-primary{--mat-button-filled-container-color: #3367d6;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #3367d6;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-outlined-state-layer-color: #3367d6;--mat-button-protected-container-color: #3367d6;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #3367d6;--mat-button-text-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-text-state-layer-color: #3367d6;--mat-button-tonal-container-color: #3367d6;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-accent, [_nghost-%COMP%]     .mat-tonal-button.mat-accent{--mat-button-filled-container-color: #3367d6;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #3367d6;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-outlined-state-layer-color: #3367d6;--mat-button-protected-container-color: #3367d6;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #3367d6;--mat-button-text-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-text-state-layer-color: #3367d6;--mat-button-tonal-container-color: #3367d6;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-warn, [_nghost-%COMP%]     .mat-tonal-button.mat-warn{--mat-button-filled-container-color: #d50000;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #d50000;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-button-outlined-state-layer-color: #d50000;--mat-button-protected-container-color: #d50000;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #d50000;--mat-button-text-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-button-text-state-layer-color: #d50000;--mat-button-tonal-container-color: #d50000;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #3367d6;--mat-checkbox-selected-hover-icon-color: #3367d6;--mat-checkbox-selected-icon-color: #3367d6;--mat-checkbox-selected-pressed-icon-color: #3367d6;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #3367d6;--mat-checkbox-selected-hover-state-layer-color: #3367d6;--mat-checkbox-selected-pressed-state-layer-color: #3367d6;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #d50000;--mat-checkbox-selected-hover-icon-color: #d50000;--mat-checkbox-selected-icon-color: #d50000;--mat-checkbox-selected-pressed-icon-color: #d50000;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #d50000;--mat-checkbox-selected-hover-state-layer-color: #d50000;--mat-checkbox-selected-pressed-state-layer-color: #d50000;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #3367d6;--mat-icon-button-state-layer-color: #3367d6;--mat-icon-button-ripple-color: color-mix(in srgb, #3367d6 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #3367d6;--mat-icon-button-state-layer-color: #3367d6;--mat-icon-button-ripple-color: color-mix(in srgb, #3367d6 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #d50000;--mat-icon-button-state-layer-color: #d50000;--mat-icon-button-ripple-color: color-mix(in srgb, #d50000 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;--mat-icon-button-state-layer-size: 48px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:12px}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-container-shape-radius: 16px;--mat-chip-disabled-container-opacity: 0.4;--mat-chip-disabled-outline-color: transparent;--mat-chip-flat-selected-outline-width: 0;--mat-chip-focus-outline-color: transparent;--mat-chip-hover-state-layer-opacity: 0.04;--mat-chip-outline-color: transparent;--mat-chip-outline-width: 0;--mat-chip-selected-hover-state-layer-opacity: 0.04;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-opacity: 0.54;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-with-avatar-avatar-shape-radius: 14px;--mat-chip-with-avatar-avatar-size: 28px;--mat-chip-with-avatar-disabled-avatar-opacity: 1;--mat-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-with-icon-icon-size: 18px;--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-elevated-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #3367d6;--mat-chip-elevated-disabled-container-color: #3367d6;--mat-chip-elevated-selected-container-color: #3367d6;--mat-chip-flat-disabled-selected-container-color: #3367d6;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #3367d6;--mat-chip-elevated-disabled-container-color: #3367d6;--mat-chip-elevated-selected-container-color: #3367d6;--mat-chip-flat-disabled-selected-container-color: #3367d6;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #d50000;--mat-chip-elevated-disabled-container-color: #d50000;--mat-chip-elevated-selected-container-color: #d50000;--mat-chip-flat-disabled-selected-container-color: #d50000;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-chip.mat-mdc-standard-chip{--mat-chip-container-height: 32px}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-label-text-font: Roboto, sans-serif;--mat-chip-label-text-line-height: 20px;--mat-chip-label-text-size: 14px;--mat-chip-label-text-tracking: 0.0178571429em;--mat-chip-label-text-weight: 400}[_nghost-%COMP%]     .mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-filled-caret-color: #3367d6;--mat-form-field-filled-focus-active-indicator-color: #3367d6;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-outlined-caret-color: #3367d6;--mat-form-field-outlined-focus-outline-color: #3367d6;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent)}[_nghost-%COMP%]     .mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #d50000 87%, transparent);--mat-form-field-filled-caret-color: #d50000;--mat-form-field-filled-focus-active-indicator-color: #d50000;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #d50000 87%, transparent);--mat-form-field-outlined-caret-color: #d50000;--mat-form-field-outlined-focus-outline-color: #d50000;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #d50000 87%, transparent)}[_nghost-%COMP%]     .mat-accent{--mat-option-selected-state-label-text-color: #3367d6;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent)}[_nghost-%COMP%]     .mat-warn{--mat-option-selected-state-label-text-color: #d50000;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent)}[_nghost-%COMP%]     .mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #d50000;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #d50000;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #3367d6;--mat-select-invalid-arrow-color: #d50000}[_nghost-%COMP%]     .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #d50000;--mat-select-invalid-arrow-color: #d50000}[_nghost-%COMP%]     .mat-accent{--mat-progress-spinner-active-indicator-color: #3367d6}[_nghost-%COMP%]     .mat-warn{--mat-progress-spinner-active-indicator-color: #d50000}.chart-body[_ngcontent-%COMP%]{position:absolute}.chart-body[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:9}.chart-body[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{position:absolute;z-index:9}/*# sourceMappingURL=ac_loading.css.map */"],
changeDetection:0});var iJ=function(a,b){hG.call(this,a);this.queueService=b;this.defaultSliceRadius=50;this.canvasHeight=this.canvasWidth=100;this.centerY=this.centerX=50;this.renderedContexts=[];this.donutThickness=this.fullDrawDebounceId=null};Y(iJ,hG);var H4c=function(a,b){return b?G4c(a,b):[].concat(q(a.renderedContexts))};iJ.prototype.clearWithBackground=function(a,b){al(this.canvas,a,this.base,void 0,b)};
iJ.prototype.onResizeChange=function(a,b){var c=this;qk(a)&&(a.currentValue!=null&&(this.canvasWidth=a.currentValue.width,this.canvasHeight=a.currentValue.height),rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};
var I4c=function(a,b){if(a==null)return[];var c=[],d=new Map,e=new Map,f=0;a=a.series;if(a.length===0)return[];a.forEach(function(r){if(r.data.length!==0){var w=r.id.toString(),x=r.data[0].y,C=d.get(w);x<=0||isNaN(x)||(f+=x,e.set(w,r),C!==void 0?d.set(w,C+x):d.set(w,x))}});a=m(d);for(var g=a.next();!g.done;g=a.next()){var k=m(g.value);g=k.next().value;k=k.next().value;var l=e.get(g);if(l==null)throw Error("Oc");c.push({id:g,value:k/f,rawValue:k,ref:l})}b&&c.sort(function(r,w){return r.value-w.value});
return c};iJ.prototype.drawV1=function(a){this.drawInternal(a)};iJ.prototype.onConfigChange=function(a,b){this.drawInternal(b)};iJ.prototype.onColorMapChange=function(a,b){this.drawInternal(b)};
var J4c=function(a,b){var c=b.sliceRadius;var d=b.filledColor;var e=b.startAngle;var f=b.angle;b=b.drawLine;var g=a.centerX,k=a.centerY;a.ctx.save();var l=new Path2D;a.ctx.fillStyle=Zk(d,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);a.ctx.beginPath();c=Math.max(c,0);l.moveTo(g,k);l.arc(g,k,c,e,e+f);a.ctx.fill(l);a.ctx.closePath();b&&(a.ctx.beginPath(),a.ctx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",a.base),a.ctx.lineWidth=2,a.ctx.moveTo(g+c*Math.cos(e),k+c*Math.sin(e)),a.ctx.lineTo(g,
k),a.ctx.stroke(),a.ctx.closePath());a.ctx.restore()};iJ.prototype.updateCanvasSize=function(){fG(this,this.canvas);this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var G4c=function(a,b){var c=[],d=b.data,e=b.state,f=b.config,g,k=(g=b.state)==null?void 0:g.colorMap;g=f?f.startAngle:0;var l=!(f==null?0:f.useOrderGiven);g+=Math.PI;l=I4c(b.data,l);a=a.defaultSliceRadius;d=!d||!f||!f.colorStrategy.isReady||f.colorStrategy.isReady(d,e);for(e=0;e<l.length;e++){var r=l[e].id;var w=l[e].value,x=void 0,C=void 0,H=f&&d?Fl(f.colorStrategy.getColor(l[e].ref,b.state)):(C=(x=k)==null?void 0:x.colorMap[r])!=null?C:"var(--ac-sys-color-chart-unfilled, #F1F3F4)";C=void 0;x=(C=
k)==null?void 0:C.shapeMap[r];r=2*Math.PI*w;H={sliceRadius:a,filledColor:H,startAngle:g,angle:r,shape:x,drawLine:l.length>1,data:l[e]};g+=r;c.push(H)}return c},K4c=function(a){if(a.donutThickness&&a.donutThickness.unit==="px")return Math.min(Math.abs(a.donutThickness.value),a.defaultSliceRadius);var b,c=((b=a.donutThickness)==null?void 0:b.unit)==="%"?Math.abs(a.donutThickness.value)/100:.2;return a.defaultSliceRadius*Math.min(1,c)},L4c=function(a){var b=K4c(a),c=a.centerX,d=a.centerY;a.defaultSliceRadius>
b&&(a.ctx.save(),a.ctx.beginPath(),a.ctx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",a.base),a.ctx.arc(c,d,a.defaultSliceRadius-b,0,2*Math.PI),a.ctx.fill(),a.ctx.closePath(),a.ctx.restore())};
iJ.prototype.drawInternal=function(a){this.defaultSliceRadius=this.canvasWidth&&this.canvasHeight?Math.min(this.canvasWidth,this.canvasHeight)/2-10:50;this.centerX=this.canvasWidth/2;this.centerY=this.canvasHeight/2;this.updateCanvasSize();this.renderedContexts=G4c(this,a);this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null)};var M4c=function(a,b){iJ.call(this,a);this.afterRenderHook=b;this.cachePiePaths=new Map;this.isDonut=!1;this.canvas.className="ac-pie-view__canvas"};
Y(M4c,iJ);
var N4c=function(a,b,c){var d=a.canvas.getBoundingClientRect();b-=d.left;c-=d.top;d=m(a.cachePiePaths);for(var e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;var g=f=f.next().value,k=b,l=c;f=g.startAngle;var r=g.startAngle+g.angle,w=a.centerX,x=a.centerY;g=a.defaultSliceRadius;var C=a.isDonut?a.defaultSliceRadius-K4c(a):0;C===void 0&&(C=0);var H=f+(r-f)/2;var J=g*Math.cos(H);H=-g*Math.sin(H);var O=k-w,R=x-l,V=Math.sqrt(J*J+H*H),ca=Math.sqrt(O*O+R*R);J=V===0||ca===0?0:Math.acos((J*O+
H*R)/(V*ca));k=Math.sqrt(Math.pow(k-w,2)+Math.pow(l-x,2));f=(r-f)/2;if((Math.abs(J-f)<=Number.EPSILON||J<=f)&&k<=g&&k>=C)return e}return null},O4c=function(a){return a.renderedContexts.reduce(function(b,c){return b+c.data.rawValue},0)};
M4c.prototype.drawInternal=function(a){iJ.prototype.drawInternal.call(this,a);var b=a.config;this.isDonut=a=b?b.isDonut:!1;var c;this.donutThickness=(c=b==null?void 0:b.donutThickness)!=null?c:null;c=this.renderedContexts;this.cachePiePaths=new Map;for(b=0;b<c.length;b++)this.cachePiePaths.set(c[b].data.id,c[b]),J4c(this,c[b]);c.length===0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-unfilled, #F1F3F4)",this.base),this.ctx.arc(this.centerX,this.centerY,this.defaultSliceRadius,
0,2*Math.PI),this.ctx.fill(),this.ctx.closePath(),this.ctx.restore());a&&L4c(this);dG(this);var d;(d=this.afterRenderHook)==null||d.call(this)};var P4c=function(a){iJ.call(this,a);this.selectedIds=[];this.hoveredId=null;this.canvas.className="ac-pie-view__selected-canvas"};Y(P4c,iJ);
P4c.prototype.onSeriesSelectionChange=function(a,b){var c,d,e;a=(c=b.state)==null?void 0:(d=c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.hoveredSeries[0];var f,g,k;c=(f=b.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer.entities[b.scope.layerId])==null?void 0:k.selectedSeries;var l;this.hoveredId=(l=a==null?void 0:a.seriesId)!=null?l:null;var r;this.selectedIds=(r=c==null?void 0:c.map(function(w){return w.seriesId}))!=null?r:[];this.hoveredId===
null&&this.selectedIds.length===0?this.canvas.style.display="none":(this.canvas.style.display="block",this.drawInternal(b))};
P4c.prototype.drawInternal=function(a){iJ.prototype.drawInternal.call(this,a);var b=a.config;a=b?b.isDonut:!1;var c;this.donutThickness=(c=b==null?void 0:b.donutThickness)!=null?c:null;c=this.selectedIds;if(this.selectedIds.length!==0||this.hoveredId!==null){b=this.renderedContexts;this.clearWithBackground("var(--ac-sys-color-chart-surface, #FFF)",.6);for(var d=0;d<b.length;d++)(c.includes(b[d].data.id)||b[d].data.id===this.hoveredId)&&J4c(this,b[d]);a&&L4c(this)}};var Q4c=["summaryBodyRef"],R4c=["summaryViewRef"],jJ=function(a,b,c,d){sG.call(this,a,b,c);this.cdRef=d;this.hoveredSlice=new Ui;this.selectedSlice=new Ui;this.internalCustomizedSummary=this.summaryHeader=this.summaryFooter=this.summaryBody=null;this.updateHoveredSliceTriggerSubject=new wf(1);this.syncActionsBuffer=null;this.colorRecalculationAttemptsRemaining=2;this.loading=!1;this.error=null;this.useOrderGiven=this.showSummary=!1;this.data=null;this.isDonut=!1;this.colorStrategyInternal=new tH;
this.startAngle=0;this.donutThickness="";this.dataSubject=new Nj(null);this.selectedSliceId=null;this.configSubject=new Nj({isDonut:this.isDonut,startAngle:this.startAngle,colorStrategy:this.colorStrategyInternal,useOrderGiven:this.useOrderGiven});this.pieView=new M4c(this.el.nativeElement,this.onPieViewRendered.bind(this));this.selectedPieView=new P4c(this.el.nativeElement);this.views.push(this.pieView);this.views.push(this.selectedPieView)};Y(jJ,sG);jJ.\u0275dir=sG.\u0275dir;
jJ.prototype.onPieViewRendered=function(){S4c(this);T4c(this)};jJ.prototype.onResizeChange=function(){S4c(this)};
var S4c=function(a){if(a.isDonut&&a.summaryBodyRef){var b=a.pieView;b=b.defaultSliceRadius-K4c(b);if(b!==0){b<38?a.summaryViewRef.nativeElement.classList.add("ac-pie__summary-view--small"):a.summaryViewRef.nativeElement.classList.remove("ac-pie__summary-view--small");b=Math.min(32/a.summaryBodyRef.nativeElement.offsetHeight,Math.max(5,b*2-10)/a.summaryBodyRef.nativeElement.offsetWidth);var c=Number(window.getComputedStyle(a.summaryBodyRef.nativeElement).fontSize.split("px")[0]);a.summaryBodyRef.nativeElement.style.fontSize=
c*b+"px"}}};jJ.prototype.onColorMapChange=function(a,b){var c=b.scope,d=b.data,e=b.state;a=[];if(d&&e&&this.colorRecalculationAttemptsRemaining>0){if(c=yG(this.colorStrategy,c,d,e))a.push(c),this.store.dispatch(c),this.colorRecalculationAttemptsRemaining--;this.store.dispatch(U4c(this,b))}return a};
var V4c=function(a){a=Math.max(a,0);a=Math.min(a,360);return a*Math.PI/180},U4c=function(a,b){var c=b.scope,d=H4c(a.pieView,b);return nH({chartId:c.chartId,layerId:c.layerId,series:d.map(function(e){return{seriesId:e.data.id,name:e.data.ref.name||e.data.id,shape:e.shape,drawnAs:7,dataSeriesMetadata:e.data.ref.metadata,color:Fl(a.colorStrategy.getColor(e.data.ref,b.state))}})})},T4c=function(a){if(a.internalCustomizedSummary){var b;a.summaryHeader=(b=a.internalCustomizedSummary.header)!=null?b:null;
var c;a.summaryBody=(c=a.internalCustomizedSummary.body)!=null?c:null;var d;a.summaryFooter=(d=a.internalCustomizedSummary.footer)!=null?d:null}else{var e,f;(b=(f=(e=a.data)==null?void 0:e.unit)!=null?f:null)&&CAa(b)&&(b=DAa(b));if(b===""||b==="{not_a_unit}")b="1";b&&UAa(b)?(e="Average",f=a.pieView,f=f.renderedContexts.length===0?0:O4c(f)/f.renderedContexts.length):(e="Total",f=O4c(a.pieView));f=WAa(f,b);f.value&&f.value!=="0"?(a.summaryHeader=e,f.unit.length===1?(a.summaryBody=f.value+f.unit,a.summaryFooter=
null):(a.summaryBody=f.value,a.summaryFooter=f.unit)):(a.summaryHeader=null,a.summaryBody=null,a.summaryFooter=null)}a.cdRef.detectChanges()},W4c=function(a,b){var c=b.scope;a=H4c(a.pieView,b);return mH({chartId:c.chartId,layerId:c.layerId,valueType:1,timeKey:3,values:a.map(function(d){var e;return{value:{x:(e=d.data.rawValue)!=null?e:0,y:d.data.rawValue},seriesId:d.data.id}}),timeRange:{x:0}})},X4c=function(a,b){var c=[],d=b.scope,e,f;if(b=(e=b.state)==null?void 0:(f=e.seriesSelection)==null?void 0:
f.byLayer.entities[d.layerId]){e=b.selectedSeries;f=b.hoveredSeries;var g,k=new Set((g=a==null?void 0:a.series.map(function(l){return l.id}))!=null?g:[]);a=e.filter(function(l){return k.has(l.seriesId)});a.length!==e.length&&c.push(SG({chartId:d.chartId,layerId:d.layerId,series:a}));a=f.filter(function(l){return k.has(l.seriesId)});a.length!==f.length&&c.push(UG({chartId:d.chartId,layerId:d.layerId,series:a}))}return c};
jJ.prototype.onDataChange=function(a,b){var c=[];a=a.currentValue;var d=b.scope,e=b.state;e&&a&&(d=yG(this.colorStrategy,d,a,e))&&c.push(d);var f,g;d=(g=(f=this.data)==null?void 0:f.unit)!=null?g:null;c.push(oH({xAxisId:b.scope.xAxisId,yAxisId:b.scope.yAxisId,chartId:b.scope.chartId,layerId:b.scope.layerId,valueType:1,legendTemplate:this.legendTemplate,unit:d}));c.push(uG(this,{min:0,max:1,unit:d,priority:0}));c.push(U4c(this,b));c.push(W4c(this,b));return c=c.concat(X4c(a,b))};
jJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
jJ.prototype.ngOnChanges=function(a){var b=this;sG.prototype.ngOnChanges.call(this,a);var c=[];"data"in a&&this.dataSubject.next(this.data);"colorStrategy"in a&&this.withLatest(function(d){var e=d.scope;d=d.state;b.data&&d&&(e=yG(b.colorStrategy,e,b.data,d))&&c.push(e)});this.configSubject.next({isDonut:this.isDonut,donutThickness:AKa(this.donutThickness),colorStrategy:this.colorStrategy,startAngle:V4c(this.startAngle),useOrderGiven:this.useOrderGiven});"loading"in a&&c.push(wG(this,this.loading,
"Pie"));"error"in a&&c.push(xG(this,this.error,this.hasData()));MF(this.chart,c)};
var Y4c=function(a,b){a.selectedSliceId=b===a.selectedSliceId?null:b;a.selectedSlice.emit(a.selectedSliceId);a.withLatest(function(c){c=c.scope;a.store.dispatch(SG({chartId:c.chartId,layerId:c.layerId,series:a.selectedSliceId==null?[]:[{seriesId:a.selectedSliceId}]}))})},Z4c=function(a,b){a.hoveredSlice.emit(b);a.withLatest(function(c){var d=c.scope;c=UG({chartId:d.chartId,layerId:d.layerId,series:b==null?[]:[{seriesId:b}]});var e=H4c(a.pieView);d=mH({chartId:d.chartId,layerId:d.layerId,valueType:1,
timeKey:1,values:e.map(function(f){var g,k;return{value:{x:(g=f.data.rawValue)!=null?g:0,y:f.data.rawValue},seriesId:(k=f.data.id)!=null?k:""}}),timeRange:void 0});a.syncActionsBuffer?(a.syncActionsBuffer.push(c),a.syncActionsBuffer.push(d)):(a.store.dispatch(c),a.store.dispatch(d))})};
jJ.prototype.onChartMouseMove=function(a){var b=[];this.syncActionsBuffer=[];a=N4c(this.pieView,a.pageX,a.pageY);this.updateHoveredSliceTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};jJ.prototype.onChartMouseClick=function(a){a=N4c(this.pieView,a.pageX,a.pageY);Y4c(this,a)};
jJ.prototype.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.updateHoveredSliceTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){Z4c(a,b)});NF(this.chart,"chart",this.onChartMouseMove.bind(this),this.destroyed);this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(this.onChartMouseClick.bind(this));this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){Z4c(a,
null)})};jJ.prototype.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null)])};da.Object.defineProperties(jJ.prototype,{customizedSummary:{configurable:!0,enumerable:!0,set:function(a){this.internalCustomizedSummary=a;T4c(this)}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new tH},get:function(){return this.colorStrategyInternal}}});jJ.\u0275fac=function(a){return new (a||jJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(ux))};
jJ.\u0275cmp=D({type:jJ,selectors:[["ac-pie"]],viewQuery:function(a,b){a&1&&(hg(Q4c,5),hg(R4c,5));if(a&2){var c;lg(c=mg())&&(b.summaryBodyRef=c.first);lg(c=mg())&&(b.summaryViewRef=c.first)}},hostAttrs:[1,"composable-layer","ac-pie"],inputs:{loading:"loading",error:"error",legendTemplate:"legendTemplate",showSummary:"showSummary",useOrderGiven:"useOrderGiven",data:"data",customizedSummary:"customizedSummary",isDonut:"isDonut",colorStrategy:"colorStrategy",startAngle:"startAngle",donutThickness:"donutThickness"},
outputs:{hoveredSlice:"hoveredSlice",selectedSlice:"selectedSlice"},features:[Gf,bx],decls:1,vars:1,consts:[["summaryViewRef",""],["summaryBodyRef",""],["class","ac-pie__summary-view",4,"ngIf"],[1,"ac-pie__summary-view"],["class","ac-pie__summary-view-header",4,"ngIf"],["class","ac-pie__summary-body",3,"title",4,"ngIf"],["class","ac-pie__summary-footer",4,"ngIf"],[1,"ac-pie__summary-view-header"],[1,"ac-pie__summary-body",3,"title"],[1,"ac-pie__summary-footer"]],template:function(a,b){a&1&&E(0,EKa,
5,3,"div",2);a&2&&I("ngIf",b.isDonut&&b.showSummary)},dependencies:[Fx],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;position:absolute;width:100%;height:100%;align-items:stretch;color:var(--ac-sys-color-chart-on-surface, #000)}.ac-pie__summary-view[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);align-items:center;display:flex;flex-direction:column;white-space:nowrap;line-height:normal}.ac-pie__summary-view-header[_ngcontent-%COMP%]{font-size:15px;line-height:20px}.ac-pie__summary-body[_ngcontent-%COMP%]{font-size:24px;max-height:32px}.ac-pie__summary-footer[_ngcontent-%COMP%]{font-size:13px;line-height:20px}.ac-pie__summary-view--small[_ngcontent-%COMP%]   .ac-pie__summary-view-header[_ngcontent-%COMP%]{display:none}.ac-pie__summary-view--small[_ngcontent-%COMP%]   .ac-pie__summary-footer[_ngcontent-%COMP%]{display:none}/*# sourceMappingURL=ac_pie.css.map */"],
changeDetection:0});var $4c=["popupContent"],kJ=function(a,b,c,d,e){sG.call(this,a,b,c);this.overlay=d;this.viewContainerRef=e;this.positionStrategy=this.overlay.position().global();this.overlayRef=this.overlay.create(new ei({positionStrategy:this.positionStrategy}))};Y(kJ,sG);kJ.\u0275dir=sG.\u0275dir;h=kJ.prototype;h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseClick(b)})};h.ngAfterViewInit=function(){};
h.onMouseClick=function(a){this.attachHovercard();var b=25+this.overlayRef.overlayElement.offsetHeight,c=25+this.overlayRef.overlayElement.offsetWidth,d=a.clientY+15,e=a.clientX+15;a.clientY+b>window.innerHeight&&(d=Math.max(0,a.clientY-b+10));a.clientX+c>window.innerWidth&&(e=Math.max(0,a.clientX-c+10));this.positionStrategy.top(d+"px").left(e+"px");this.overlayRef.updatePosition()};h.attachHovercard=function(){this.detachHovercard();this.overlayRef.attach(new Iz(this.popupContent,this.viewContainerRef))};
h.detachHovercard=function(){this.overlayRef.hasAttached()&&this.overlayRef.detach()};kJ.\u0275fac=function(a){return new (a||kJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(Nz),Ye(fg))};
kJ.\u0275cmp=D({type:kJ,selectors:[["ac-popup-card"]],viewQuery:function(a,b){a&1&&hg($4c,5);if(a&2){var c;lg(c=mg())&&(b.popupContent=c.first)}},hostAttrs:[1,"composable-layer","ac-popup-card"],features:[Gg([{provide:sG,useExisting:kJ}]),Gf],ngContentSelectors:["*"],decls:2,vars:0,consts:[["popupContent",""],[1,"ac-popup-container"]],template:function(a){a&1&&(cg(),If(0,FKa,2,0,"ng-template",null,0,Mg))},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}div.ac-popup-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--ac-sys-color-extensions-surface, #fff);opacity:.9;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}/*# sourceMappingURL=ac_popup_card.css.map */"],
changeDetection:0});var a5c=[-Infinity,Infinity],b5c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25,lineCap:"square"},c5c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},lJ=function(a,b){hG.call(this,a);this.queueService=b;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.cachedMappedData=[];this.cachedRawData=
null;this.dataMapping={yAxisUnit:null,yAxisMin:null,yAxisMax:null,yAxisAbsoluteMin:void 0,yAxisScaleType:0,xAxisMin:0,xAxisMax:0,xAxisUnit:null,bodyTop:0,bodyBottom:0,bodyLeft:0,bodyRight:0,dataUnit:null};this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Ec");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Y(lJ,hG);h=lJ.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){Uk(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;qk(a)&&(rk(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),iG(this,b,this.canvas,this.ctx),iG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=window.setTimeout(function(){fG(c,c.canvas);fG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){ol(a)&&this.drawInternal(b)};
h.onSeriesSelectionChange=function(a,b){SBa(a)&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=Yk(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?El(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null};h.getValuesAtXPosition=function(a,b,c){a=this.unpackForGetValues(a);return a?(b=a.inverseDomainMap(b))?El(a.data,b==null?void 0:b.valueOf(),a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null:null};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d)return null;var e=d.width,f=d.height,g=d.margins.top,k=d.height-d.margins.bottom,l=d.margins.left;d=d.width-d.margins.right;return{isColorMapReady:!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c),bounds:{top:g,right:d,bottom:k,left:l},canvasWidth:e,canvasHeight:f,bodyTop:g,bodyBottom:k,bodyLeft:l,bodyRight:d,bodyWidth:d-l,bodyHeight:k-g}};
h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=this.unpackForClearing(a),d=a.scope,e=a.data,f=a.state,g=a.config;if(!f||!g||!c)return null;var k=c.bodyTop,l=c.bodyBottom,r=c.bodyLeft,w=c.bodyRight;a=f.xAxis;var x=f.yAxis,C=f.seriesSelection,H=f.brush,J=f.lastInteraction;if(!(a&&C&&x&&H))return null;var O=e?e.unit:null,R=pl(x,k,l,O),V=Xk(a,r,w,e==null?void 0:e.xAxisUnit),ca=Yk(a,r,w,e==null?void 0:e.xAxisUnit);if(a.min===null||a.max===null||!V||!R||!ca)return null;var oa=(d=C.byLayer.entities[d.layerId])?
d.selectedSeries.map(function(pc){return pc.seriesId}):[],ua=d?d.hoveredSeries.map(function(pc){return pc.seriesId}):[],ka=Object.values(C.byLayer.entities).filter(function(pc){return!!pc}).some(function(pc){return pc.selectedSeries.length||pc.hoveredSeries.length}),Ga=function(pc){var sb=pc.x,Ob=pc.y0,ib=pc.y1;if(Ob==null||ib==null)throw Error("Pc`"+JSON.stringify(pc));return[V(sb.valueOf()),R(Ob),R(ib)]};d={yAxisUnit:x.unit,yAxisMin:x.min,yAxisMax:x.max,yAxisAbsoluteMin:x.absoluteMin,yAxisScaleType:x.scaleType,
xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,bodyTop:k,bodyBottom:l,bodyLeft:r,bodyRight:w,dataUnit:O};if(!GKa(d,this.dataMapping)||HKa(e,this.cachedRawData)){this.dataMapping=d;this.cachedRawData=e;var ja,ta;this.cachedMappedData=(ta=e==null?void 0:(ja=e.series)==null?void 0:ja.map(function(pc){return{data:pc.data.map(Ga),id:pc.id}}))!=null?ta:null}ja=this.cachedMappedData;ta=g.colorStrategy.getShape?function(pc){var sb,Ob;return b.shouldShowShape((sb=g.clickDotInteraction)!=null?sb:!1,ka,oa.includes(pc.id),
ua.includes(pc.id),(Ob=g.multiselectMode)!=null?Ob:!1)?g.colorStrategy.getShape(pc,f):""}:null;var xa,Sa,$a,pb=($a=J==null?void 0:(xa=J.domain)==null?void 0:xa.multiselectAnchor)!=null?$a:J==null?void 0:(Sa=J.domain)==null?void 0:Sa.click,Xb,lc=J==null?void 0:(Xb=J.domain)==null?void 0:Xb.hover,ec;return Object.assign({},c,{data:e,mappedData:ja,config:g,colorMap:function(pc){return Fl(g.colorStrategy.getColor(pc,f))},shapeMap:ta,shapeStateMap:function(pc){if(g.clickDotInteraction&&pb&&oa.includes(pc.id)){var sb=
yl(pc.data||[],ca(pb),null,!0);return{position:pc.data[sb],lineSelectedStatus:1}}return g.clickDotInteraction&&lc&&ua.includes(pc.id)&&!g.multiselectMode?(sb=yl(pc.data||[],ca(lc),null,!0),{position:pc.data[sb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:g.colorStrategy.shapeBoundingBox,dataMap:Ga,inverseDomainMap:ca,selectedSeriesIds:oa,hoveredSeriesIds:ua,anySeriesSelectedOrHovered:ka,brushing:H.brushing||!1,xAxisMin:a.min,xAxisMax:a.max,clickDotInteraction:(ec=
g.clickDotInteraction)!=null?ec:!1})};h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";bl(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";bl(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight+1);var d=new Path2D;d.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);c={line:c,area:d};var e=a.anySeriesSelectedOrHovered&&!a.brushing;d=Object.assign({},b5c,{globalAlpha:e?.15:1});this.shapeCtx.globalAlpha=e?.15:1;var f;e=(f=
a.data)==null?void 0:f.series;if(e==null?0:e.length){if(f=a.shapeMap){for(var g=new Set,k=m(e),l=k.next();!l.done;l=k.next())g.add(f(l.value));e.length>g.size&&(f=null)}this.drawLines(e,a.dataMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,c,d,a.clickDotInteraction)}eG(this,a.xAxisMin,a.xAxisMax);a=performance.now();this.enableManualLatencyTracking&&dG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawLines=function(a,b,c,d,e,f,g,k,l,r,w){this.ctx.save();$k(this.ctx,r,this.base);$k(this.shapeCtx,c5c,this.base);a=m(a);for(r=a.next();!r.done;r=a.next()){r=r.value;var x=c(r),C=d&&d(r),H=e&&e(r);switch(k.pointConnectionMethod){case "always":this.drawLineAlwaysConnect(r,b,x,C,H,f,g,l,k.lineInterpolationMethod,w);break;case "zero_fill":this.drawLineZeroFill(r,b,x,C,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,l,k.lineInterpolationMethod,w);break;case "never":throw Error("Qc");default:this.drawLineGapDetection(r,
b,x,C,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,l,k.lineInterpolationMethod,w)}}this.ctx.restore()};
h.drawLineGapDetection=function(a,b,c,d,e,f,g,k,l,r,w,x){k=k!=null?k:Infinity;var C=l;k=k===void 0?Infinity:k;C=C===void 0?!1:C;var H=a.shiftedData;l=JKa(a.data,k,C);k=H&&JKa(H,k,C);k=k===void 0?[]:k;C=d5c(l,b,g);for(H=0;H<l.length;H++)this.drawLineAlwaysConnect(Object.assign({},a,{data:l[H]}),b,c,C===H?d:null,e,f,g,r,w,x);l=d5c(k,b,g);for(C=0;C<k.length;C++)this.drawLineAlwaysConnect(Object.assign({},a,{shiftedData:k[C]}),b,c,l===C?d:null,e,f,g,r,w,x)};
h.drawLineAlwaysConnect=function(a,b,c,d,e,f,g,k,l,r){this.drawLineZeroFill(a,b,c,d,e,f,g,Infinity,!1,k,l,r)};
h.drawLineZeroFill=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=C===void 0?{}:C;a=a.data;if(a.length){k=k||Infinity;this.ctx.save();this.ctx.beginPath();this.ctx.strokeStyle=Zk(c,this.base);var H=Zk(c,this.base);typeof H==="string"&&H.length===7?this.ctx.fillStyle=H+"60":this.ctx.fillStyle=H;this.shapeCtx.fillStyle=Zk(c,this.base);this.ctx.clip(r.line);for(var J=null,O=H=void 0,R=0;R<a.length;R++){var V=a[R-1],ca=a[R],oa=m(cl(b(ca),C.lineWidth));c=oa.next().value;oa.next();var ua=oa.next().value;oa=c;
var ka=void 0;c=(ka=ca.tileDomain)!=null?ka:a5c;if(IKa(J,c)){if(V&&zl(k,V,ca,l).gapDetected)for(J=new Date(V.x.valueOf()+k),ka={x:J,y:0,y0:0,y1:0};J<ca.x;J.setMilliseconds(J.getMilliseconds()+k)){var Ga=m(cl(b(ka),C.lineWidth)),ja=Ga.next().value;Ga=Ga.next().value;this.ctx.lineTo(ja,Ga);O=el(O,ja,Ga,H,g);H={x:ja,y:Ga}}switch(w){case "linear":this.ctx.lineTo(oa,ua);break;case "step-before":case "step-after":V&&(V=m(cl(b(V),C.lineWidth)),J=V.next().value,V.next(),V=V.next().value,w==="step-before"?
this.ctx.lineTo(J,ua):this.ctx.lineTo(oa,V));this.ctx.lineTo(oa,ua);break;default:wb(w,"Unsupported interpolation method for stacked are charts")}O=el(O,oa,ua,H,g)}else this.ctx.moveTo(oa,ua);H={x:oa,y:ua};J=c}this.ctx.stroke();x&&d&&e.position&&e.lineSelectedStatus!==0?this.drawShapeWithinBounds(b(e.position)[0],b(e.position)[2],g,d,f,e.lineSelectedStatus,x):this.drawShapeOrInterpolate(O,g,d,f,e.lineSelectedStatus,x);this.ctx.clip(r.area);for(d=a.length-1;d>=0;d--){g=a[d+1];r=a[d];e=m(cl(b(r),C.lineWidth));
c=e.next().value;f=e.next().value;e=c;x=void 0;c=(x=r.tileDomain)!=null?x:a5c;if(IKa(J,c,!0)){if(g&&zl(k,g,r,l).gapDetected)for(x=new Date(g.x.valueOf()-k),H={x:x,y:0,y0:0,y1:0};x>r.x;x.setMilliseconds(x.getMilliseconds()-k))R=m(cl(b(H),C.lineWidth)),O=R.next().value,R=R.next().value,this.ctx.lineTo(O,R);switch(w){case "linear":this.ctx.lineTo(e,f);break;case "step-before":case "step-after":g&&(r=m(cl(b(g),C.lineWidth)),g=r.next().value,r=r.next().value,w==="step-before"?this.ctx.lineTo(e,r):this.ctx.lineTo(g,
f));this.ctx.lineTo(e,f);break;default:wb(w,"Unsupported interpolation method for stacked are charts")}}else this.ctx.moveTo(e,f);J=c}this.ctx.fill();this.ctx.restore()}};
var e5c=function(a,b,c){a=a.unpackForDrawing(b);if(a==null||!a.data||a==null||!a.mappedData)return null;var d=a.config;b=d.outputPeriodMs;d=d.useLegacyGapDetection;for(var e=a.inverseDomainMap(c.x).valueOf(),f=0;f<a.data.series.length;f++){var g=a.data.series[f],k=a.mappedData[f].data,l=wl(g.data,e,xl(b)),r=l+1,w=g.data[l],x=g.data[r];if(x&&(!b||!zl(b,w,x,d).gapDetected)){x=m(k[l]);l=x.next().value;w=x.next().value;x=x.next().value;r=m(k[r]);var C=r.next().value;k=r.next().value;r=r.next().value;
k=Sk(l,C,w,k,c.x);if(Sk(l,C,x,r,c.x)<c.y&&c.y<k)return g.id}}return null};lJ.prototype.getSeriesIdsBetween=function(a,b,c){var d=this.unpackForDrawing(a);if(d==null||!d.data)return null;b=m([b,c].map(function(e){return d.data.series.findIndex(function(f){return f.id===e})}).sort(function(e,f){return e-f}));a=b.next().value;b=b.next().value;return d.data.series.slice(a,b+1).map(function(e){return e.id})};
var d5c=function(a,b,c){for(var d=null,e=null,f=0;f<a.length;f++){var g=a[f];if(g.length){var k=b(g[0]),l=g[g.length-1]?b(g[g.length-1]):null;if(g.some(function(w){var x=m(b(w));w=x.next().value;x=x.next().value;return w<c.left-1||w>c.right+1||x<c.top-1||x>c.bottom+1?!1:!0})){var r=g=void 0;k=Math.max(k[0],(r=(g=l)==null?void 0:g[0])!=null?r:-Infinity);if(d===null||e===null||k>e)d=f,e=k}}}return d};
lJ.prototype.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.shapeCtx.moveTo(a,b);a=MBa(a,b,c,d?g/d.width:1);f&&e===1?(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.save(),this.shapeCtx.globalAlpha=
1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=this.shapeCtx.fillStyle,this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.globalAlpha=.25,this.shapeCtx.fill(a),this.shapeCtx.globalAlpha=1):(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,f&&(this.shapeCtx.lineWidth=3),this.shapeCtx.strokeStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=Zk("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};lJ.prototype.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
lJ.prototype.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=b.right,k=Tk(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=b.top,g=Tk(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=b.bottom,g=Tk(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};lJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var f5c=Object.assign({},b5c,{lineWidth:1.75}),g5c=function(){lJ.apply(this,arguments)};Y(g5c,lJ);g5c.prototype.onSeriesSelectionChange=function(a,b){il(a,b.scope.layerId)&&this.drawInternal(b)};
g5c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight+1);var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);b={line:b,area:c};var d=a.selectedSeriesIds;a.brushing||(d=d.concat(a.hoveredSeriesIds));var e;c=(e=a.data)==null?void 0:e.series.filter(function(f){return d.includes(f.id)});(c==null?0:c.length)&&this.drawLines(c,a.dataMap,a.colorMap,a.shapeMap,a.shapeStateMap,
a.shapeBoundingBox,a.bounds,a.config,b,f5c,a.clickDotInteraction);eG(this,a.xAxisMin,a.xAxisMax)}};var h5c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},mJ=function(a,b,c,d,e,f,g,k){sG.call(this,a,b,c);this.el=a;this.modalService=d;this.interactionService=e;this.instrumentationService=f;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.pointConnectionMethod="gap_detection";this.lineInterpolationMethod="linear";this.alignmentPeriodMs=null;this.refactorA11yNavInstructions=!1;this.outputPeriodMsInternal=null;this.colorStrategyInternal=new tH;this.layerName="";this.enableManualLatencyTracking=
this.useLegacyGapDetection=!1;this.onSelect=new Ui;this.onHover=new Ui;this.onHoverEnd=new Ui;this.closestLineId=null;var l;this.configSubject=new Nj({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(l=this.interactions)==null?void 0:l.clickDot,multiselectMode:!1});this.dataSubject=new Nj(null);this.updateGridTriggerSubject=
new sf;this.gridGeneratorSubject=new Nj(null);this.defaultColumnMaskGeneratorSubject=new Nj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=h5c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.hoverHighlightTriggerSubject=new wf(1);this.updateHoverValuesTriggerSubject=new wf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=
2;this.nextVersion=0;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(of(0),xk(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(of(0),xk(this.ngZone));this.layerType="graphic";this.stackedAreaView=new lJ(this.el.nativeElement,g);this.views.push(this.stackedAreaView);this.views.push(new g5c(a.nativeElement));this.bindDrawInstrumentation()};Y(mJ,sG);mJ.\u0275dir=sG.\u0275dir;h=mJ.prototype;
h.ngOnInit=function(){var a=this;sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b&&WJa(b)}),A(function(b){return b?Object.assign({},b,{version:a.nextVersion++}):null}),vla(),Eha()),configObservable:this.configSubject});this.stackedAreaView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(lf(500),Bf(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===
void 0&&(c=a.generateGrid(b));return c})});this.hoverHighlightTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){a.hoverHighlight(b)});this.updateHoverValuesTriggerSubject.pipe(Df(10),Bf(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});NF(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Bf(this.destroyed)).subscribe(function(){a.onMouseLeave()});
this.chart.mouseClickObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.keyDownObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});this.chart.keyUpObservable.pipe(Bf(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||uFa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(xG(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a stacked area chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a stacked area chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(xG(this,this.dataTypeError,!1))));if("pointConnectionMethod"in a||"lineInterpolationMethod"in a||"outputPeriodMs"in a||"alignmentPeriodMs"in a||"colorStrategy"in a||"useLegacyGapDetection"in a||"interactions"in a){var c;this.updateViewConfig({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(c=
this.interactions)==null?void 0:c.clickDot})}"loading"in a&&b.push(wG(this,this.loading,"Stacked Area"));"error"in a&&b.push(xG(this,this.error,this.hasData()));MF(this.chart,b)};
h.bindDrawInstrumentation=function(){var a=this;cG(this.stackedAreaView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(nf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;JG(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});JG(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};
h.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=$Aa(e);if(d!==e){if(g==null?0:g.xAxis)(a=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,g.xAxis.min,g.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,g.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(a=cBa(a)),Pk(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,k.push(uG(this,this.yAxisRequirement)));this.xAxisRequirement=aBa(e);k.push(vG(this,this.xAxisRequirement));
k=k.concat(i5c(this,f,e));if(g&&e){if(a=yG(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){(R=R.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,R))});(a=this.updateMostRecentValues(b))&&k.push(a)}var l;if(a=g==null?void 0:(l=g.seriesSelection)==null?void 0:l.byLayer.entities[f.layerId]){l=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=l.filter(function(R){return w.has(R.seriesId)});
r.length!==l.length&&k.push(SG({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(R){return w.has(R.seriesId)});if(r.length!==a.length){var x,C,H=g==null?void 0:(x=g.lastInteraction)==null?void 0:(C=x.domain)==null?void 0:C.hover;H&&(r=r.map(function(R){var V,ca,oa=(g==null?0:(V=g.lastInteraction)==null?0:(ca=V.domain)==null?0:ca.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:oa})}));k.push(UG({chartId:f.chartId,layerId:f.layerId,series:r}))}}this.updateGridTriggerSubject.next(b)}var J,
O;(g==null?0:(J=g.xAxisPin)==null?0:J.xPos)&&(g==null?0:(O=g.xAxisPin)==null?0:O.locked)&&(x=this.stackedAreaView.getValuesAtTime(b,g.xAxisPin.xPos,this.hoverRadiusMs),(x=this.updateTimeSeriesValues(x,0))&&k.push(x));return k};h.onResizeChange=function(a,b){qk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){ol(a)&&this.updateGridTriggerSubject.next(b)};
var i5c=function(a,b,c){return[oH({chartId:b.chartId,layerId:b.layerId,yAxisId:b.yAxisId,xAxisId:b.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,legendTemplate:a.legendTemplate,alignmentPeriodMs:a.alignmentPeriodMs||void 0,outputPeriodMs:a.outputPeriodMs||void 0}),nH({chartId:b.chartId,layerId:b.layerId,series:c?c.series.map(function(d,e){var f;return{seriesId:d.id,name:(f=d.name)!=null?f:d.id,drawnAs:1,stackingIndex:c.series.length-1-e,dataSeriesMetadata:d.metadata,statsModeSummaryValue:d.statsModeSummaryValue,
legendTemplate:d.legendTemplate}}):[]})]};h=mJ.prototype;
h.onXAxisChange=function(a,b){var c=this,d=[];if(Uk(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Ok(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(e=cBa(e)),Pk(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(uG(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(Uk(a)||Vk(a)||Wk(a))&&this.updateGridTriggerSubject.next(b);if(DBa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(nf(1)).subscribe(function(l){k=l&&l()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.stackedAreaView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null,this.hoverRadiusMs);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=[],e=b.scope,f=b.data;a=b.state;f&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=yG(this.colorStrategy,e,f,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&d.push(c.createSetSeriesColorMetadataAction(e,f,g))}));return d};
h.onFocusedCellChange=function(a){var b=this,c=m(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(nf(1)).subscribe(function(k){if(k=k&&k()){var l=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch(SG({chartId:g.chartId,layerId:g.layerId,series:l?[{seriesId:l.metadata.seriesId}]:[]})),b.store.dispatch(BG({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),b.store.dispatch(CG({chartGroupId:g.chartGroupId,
locked:!!r})));b.store.dispatch(UG({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(zG({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(AG({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:k.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.getDatumIndices=function(a,b,c,d){d=d===void 0?!1:d;var e=a.state,f=a.data;if(e){var g;a=(g=a.data)==null?void 0:g.series.find(function(k){return k.id===b});e=b&&(e==null?0:e.xAxis)&&(e==null?0:e.resize)?Yk(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?yl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?e5c(b.stackedAreaView,c,a):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];hl(e,g)&&(d=UG({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):b.store.dispatch(d))}})};
h.onClick=function(a){var b=this,c=tG(this,a),d=!1;this.withLatest(function(e){var f=e.config,g=e.scope,k=e.state,l=e.data;if(k&&l){var r=k.seriesSelection,w=k.resize;if(r&&w&&tFa(c,w)){var x=e5c(b.stackedAreaView,e,c);r=(r=r.byLayer.entities[g.layerId])?r.selectedSeries.map(function(J){return J.seriesId}):[];if(x&&(l=l.series.find(function(J){return J.id===x}))){if(f){var C,H;l.color=(H=(C=f.colorStrategy)==null?void 0:C.getColor(l,k))!=null?H:void 0}b.onSelect.emit(l)}b.interactions.clickSelect&&
(f=[],k=ul.ve.LineDeselectToggle,x&&(r.length===1&&r.includes(x)?(f=[],k=ul.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&r.length>0?(f=b.stackedAreaView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,c.x)||f,k=ul.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=r.includes(x)?r.filter(function(J){return J!==x}):[].concat(q(r),[x]),k=ul.ve.LineSpecificSelectToggle):(f=[x],k=ul.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=x,f.length===0&&b.store.dispatch(zG({chartId:g.chartId,
lastInteraction:{multiselectAnchor:null}})),r.length===0&&f.length===1&&(d=!0,b.store.dispatch(zG({chartId:g.chartId,lastInteraction:{multiselectAnchor:c.x}}))),b.store.dispatch(SG({chartId:e.scope.chartId,layerId:e.scope.layerId,series:f.map(function(J){return{seriesId:J}})})),tl(b.interactionService,"click",k,b.el.nativeElement))}}});this.withLatest(function(e){e=b.stackedAreaView.getValuesAtXPosition(e,c.x,b.hoverRadiusMs);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,
4))&&b.store.dispatch(e)})};var j5c=function(a,b){var c=tG(a,b);a.withLatest(function(d){var e=d.config,f=d.state,g=d.data;if(f&&g&&(d=e5c(a.stackedAreaView,d,c),d!==a.closestLineId))if(a.closestLineId=d,a.closestLineId){if(g=g.series.find(function(r){return r.id===a.closestLineId})){if(e){var k,l;g.color=(l=(k=e.colorStrategy)==null?void 0:k.getColor(g,f))!=null?l:""}a.onHover.emit(g)}}else a.onHoverEnd.emit()})};h=mJ.prototype;
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};
h.updateMultiselectMode=function(){var a=this;this.withLatest(function(b){var c,d,e,f=(d=(c=b.state)==null?void 0:c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.selectedSeries;(f==null?0:f.length)&&a.updateViewConfig({multiselectMode:f.length>0&&(a.isShiftKeyDown||a.isPrimaryModifierKeyDown)})})};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;var c=tG(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(c);this.updateHoverValuesTriggerSubject.next(c);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;j5c(this,a);return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null);this.onHoverEnd.emit()};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=Xk(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,l=pl(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!l)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var C,H,J,O;return IEa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:FEa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:kl({position:R,tickIncrement:r,timeZone:Gk(w,x)}),value:R}},valueFormatter:DEa(g,k),positionMap:HEa(f,l,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(C=d.min)!=null?C:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?AEa({ticks:a.ticks,grid:b}):[]:[]};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.stackedAreaView.getValuesAtXPosition(c,a.x,b.hoverRadiusMs);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,l){l=l.data;var r=wl(l,f,xl(d.outputPeriodMs));return(l=l[r])&&(k===null||Math.abs(f-l.x.valueOf())<Math.abs(f-k))?l.x.valueOf():k},null);c=3E5;d.outputPeriodMs&&d.outputPeriodMs<=c&&(c=void 0);return(a=this.stackedAreaView.getValuesAtTime(a,b!=null?b:f))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=mH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return nH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:1,color:Fl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};h.getLayerTitle=function(){return this.layerName?"Stacked Area "+this.layerName:"Stacked Area"};
h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null),vG(this,null),wG(this,!1,"Stacked Area"),xG(this,null,!1),TG({chartId:this.chartId,layerId:this.layerId})])};h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(mJ.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},h5c,a)},get:function(){return this.interactionsInternal}},outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},
get:function(){return this.colorStrategyInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return ll?this.isMetaKeyDown:this.isCtrlKeyDown}}});mJ.\u0275fac=function(a){return new (a||mJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(jH),Ye(ul),Ye(IG),Ye(MG),Ye(Rg))};
mJ.\u0275cmp=D({type:mJ,selectors:[["ac-stacked-area"]],hostAttrs:[1,"composable-layer","ac-stacked-area"],inputs:{data:"data",loading:"loading",error:"error",interactions:"interactions",pointConnectionMethod:"pointConnectionMethod",lineInterpolationMethod:"lineInterpolationMethod",alignmentPeriodMs:"alignmentPeriodMs",hoverRadiusMs:"hoverRadiusMs",outputPeriodMs:"outputPeriodMs",refactorA11yNavInstructions:"refactorA11yNavInstructions",colorStrategy:"colorStrategy",layerName:"layerName",legendTemplate:"legendTemplate",
useLegacyGapDetection:"useLegacyGapDetection",enableManualLatencyTracking:"enableManualLatencyTracking"},outputs:{onSelect:"onSelect",onHover:"onHover",onHoverEnd:"onHoverEnd"},features:[Gf,bx],decls:3,vars:9,consts:[[3,"onGridCellActivate","onFocusedCellChange","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),T(1,"async"),T(2,"async"),N("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocusedCellChange",
function(c){return b.onFocusedCellChange(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",U(1,5,b.gridGeneratorObservable))("columnMaskGenerator",U(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[qH,Lx],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_stacked_area.css.map */"],
changeDetection:0});var k5c=[4,4],l5c={globalAlpha:1,lineWidth:2,lineCap:"square",font:'10px "Roboto", sans-serif'},m5c=function(a){hG.call(this,a)};Y(m5c,hG);h=m5c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onSeriesSelectionChange=function(a,b){var c;il(a)&&((c=b.data)==null?0:c.relatedSeriesId)&&this.drawInternal(b)};h.onResizeChange=function(a,b){qk(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.onYAxisChange=function(a,b){var c=a.previousValue,d,e=(d=a.currentValue)==null?void 0:d.position;c=c==null?void 0:c.position;(ol(a)||e!==c)&&this.drawInternal(b)};
h.drawInternal=function(a){var b=this.unpack(a);if(b&&(this.canvas.style.left="0px",this.canvas.style.top="0px",bl(this.canvas,this.base,b.canvasHeight,b.canvasWidth),b.threshold||b.threshold===0)){this.ctx.save();$k(this.ctx,Object.assign({},l5c,{globalAlpha:b.alpha}),this.base);this.ctx.fillStyle=Zk(b.color,this.base);this.ctx.strokeStyle=Zk(b.color,this.base);this.ctx.setLineDash(k5c);this.ctx.beginPath();this.ctx.moveTo(b.lineStart[0],b.lineStart[1]);this.ctx.lineTo(b.lineEnd[0],b.lineEnd[1]);
this.ctx.stroke();if(b.label!==""){a=b.label;var c=this.ctx.measureText(a).width,d=c+8,e;((e=b.labelPosition)!=null?e:b.yAxisPosition)==="right"?(e=b.lineEnd[0]+4,b.marginWidth<c&&(e+=b.marginWidth-d),c=e+d-b.canvasWidth,c>0&&(e-=c)):(e=b.lineStart[0]-Math.min(c,b.marginWidth)+4,e<0&&(e+=Math.abs(e)+8));c=e-4;b=b.lineEnd[1];this.ctx.setLineDash([]);var f=this.ctx;f.beginPath();f.moveTo(c+2,b);f.lineTo(c+d-2,b);f.quadraticCurveTo(c+d,b,c+d,b+2);f.lineTo(c+d,b+14-2);f.quadraticCurveTo(c+d,b+14,c+d-
2,b+14);f.lineTo(c+2,b+14);f.quadraticCurveTo(c,b+14,c,b+14-2);f.lineTo(c,b+2);f.quadraticCurveTo(c,b,c+2,b);f.closePath();f.fill();f.stroke();d=b+10+1;this.ctx.fillStyle=Zk("var(--ac-sys-color-chart-on-surface-inverse, #FFF)",this.base);this.ctx.fillText(a,e,d)}this.ctx.restore()}};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.yAxis;if(!d||!e)return null;var f=d.width,g=d.height,k=pl(e,0,d.height-d.margins.top-d.margins.bottom,(b==null?0:b.unit)?b.unit:null);if(!k)return null;var l,r=(l=a.valueFormatter)!=null?l:Nk;l="";b&&(b.label!==void 0?l=b.label:(l=Lk(b.unit,e.unit,b.threshold),l=l!==null?r(l,e.unit||"1",{maximumFractionDigits:9},e.min!==null&&e.max!==null&&e.unit!==null?{domain:{min:e.min,max:e.max,unit:e.unit}}:void 0):
r(b.threshold,b.unit||e.unit||"1")));r=k(b?b.threshold:0)+d.margins.top;var w=f-d.margins.right;k=cl([d.margins.left,r],l5c.lineWidth);r=cl([w,r],l5c.lineWidth);return{color:a.color,labelPosition:a.labelPosition,label:l,threshold:b==null?void 0:b.threshold,lineStart:k,lineEnd:r,canvasWidth:f,canvasHeight:g,yAxisPosition:e.position,marginWidth:e.position==="left"?d.margins.left:d.margins.right,alpha:n5c(b,c)}};
var n5c=function(a,b){var c=[];if(a==null?0:a.relatedSeriesId){var d,e=m(((d=b.seriesSelection)==null?void 0:d.byLayer.ids)||[]);for(d=e.next();!d.done;d=e.next()){d=d.value;var f=void 0,g=void 0,k=void 0,l=void 0;c=c.concat(((f=b.seriesSelection)==null?void 0:(g=f.byLayer.entities[d])==null?void 0:g.hoveredSeries.map(function(r){return r.seriesId}))||[],((k=b.seriesSelection)==null?void 0:(l=k.byLayer.entities[d])==null?void 0:l.selectedSeries.map(function(r){return r.seriesId}))||[])}}return c.length===
0||c.some(function(r){return r===(a==null?void 0:a.relatedSeriesId)})?1:.15};var o5c=0,nJ=function(a,b,c,d){sG.call(this,a,b,c);var e=this;this.formatterService=d;this.data=null;this.color="var(--ac-sys-color-chart-threshold, #757575)";this.labelPosition=void 0;this.seriesId="ac-threshold-line-series-"+o5c++;this.dataSubject=new Nj(this.data);this.configSubject=new Nj({color:this.color,labelPosition:this.labelPosition});this.yAxisRequirement=null;this.thresholdLineView=new m5c(a.nativeElement);this.views.push(this.thresholdLineView);this.scopeObservable.pipe(Af(function(f){return e.formatterService.getValueStrategy(f)}),
Bf(this.destroyed)).subscribe(function(f){var g;e.valueFormatter=(g=f.formatShort)!=null?g:f.format;e.updateConfig()})};Y(nJ,sG);nJ.\u0275dir=sG.\u0275dir;h=nJ.prototype;h.ngOnInit=function(){sG.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
h.onConfigChange=function(a,b){(a=a.currentValue)&&b.data&&this.store.dispatch(nH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[{seriesId:this.seriesId,name:b.data.label||"Threshold",color:a.color,drawnAs:6}]}))};
h.onDataChange=function(a,b){a=a.currentValue;var c=b.scope,d=[];this.yAxisRequirement=a?{min:a.threshold,max:a.threshold,priority:1,unit:a.unit||null}:null;d.push(uG(this,this.yAxisRequirement));d.push(oH({chartId:b.scope.chartId,layerId:b.scope.layerId,yAxisId:b.scope.yAxisId,xAxisId:b.scope.xAxisId,valueType:1,unit:(a==null?void 0:a.unit)||null}));b.config&&d.push(nH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:a?[{seriesId:this.seriesId,name:a.label||"Threshold",color:b.config.color,
drawnAs:6}]:[]}));if(a){b=m([1,0,2]);for(var e=b.next();!e.done;e=b.next())d.push(mH({chartId:c.chartId,layerId:c.layerId,valueType:1,timeKey:e.value,values:[{seriesId:this.seriesId,value:{x:new Date,y:a.threshold}}]}))}return d};h.ngOnChanges=function(a){sG.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);("color"in a||"labelPosition"in a)&&this.updateConfig()};h.ngOnDestroy=function(){sG.prototype.ngOnDestroy.call(this);MF(this.chart,[uG(this,null)])};
h.updateConfig=function(){this.configSubject.next({color:this.color,labelPosition:this.labelPosition,valueFormatter:this.valueFormatter})};nJ.\u0275fac=function(a){return new (a||nJ)(Ye(Jd),Ye(LF),Ye(ZF),Ye(YF))};
nJ.\u0275cmp=D({type:nJ,selectors:[["ac-threshold-line"]],hostAttrs:[1,"composable-layer","ac-threshold-line"],inputs:{data:"data",color:"color",labelPosition:"labelPosition"},features:[Gf,bx],decls:0,vars:0,template:function(){},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_threshold_line.css.map */"],changeDetection:0});var p5c=kw(['<svg data-icon-name="alertIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M14.4 20.8H9.6c0 1.76 1.08 3.2 2.4 3.2 1.32 0 2.4-1.44 2.4-3.2zm-.808-19.041A8.003 8.003 0 0120 9.6v6.393l1.6 1.6V19.2H2.4v-1.607l1.6-1.6V9.6a8.003 8.003 0 016.408-7.841 1.6 1.6 0 113.185 0z" clip-rule="evenodd"/></svg>']),q5c=sh(p5c).firstElementChild;var r5c=kw(['<svg data-icon-name="arrowDropDownIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7 10l5 5 5-5z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),s5c=sh(r5c).firstElementChild;var t5c=kw(['<svg data-icon-name="arrowRightIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 17l5-5-5-5v10z"/><path fill="none" d="M0 24V0h24v24H0z"/></svg>']),u5c=sh(t5c).firstElementChild;var v5c=kw(['<svg data-icon-name="baselineCalendarToday24pxIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),w5c=sh(v5c).firstElementChild;var x5c=kw(['<svg data-icon-name="callMadeIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/></svg>']),y5c=sh(x5c).firstElementChild;var z5c=kw(['<svg data-icon-name="callReceivedIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/></svg>']),A5c=sh(z5c).firstElementChild;var B5c=kw(['<svg data-icon-name="checkCircleIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>']),C5c=sh(B5c).firstElementChild;var D5c=kw(['<svg data-icon-name="clearIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>']),E5c=sh(D5c).firstElementChild;var F5c=kw(['<svg data-icon-name="closeIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>']),G5c=sh(F5c).firstElementChild;var H5c=kw(['<svg data-icon-name="codeIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>']),I5c=sh(H5c).firstElementChild;var J5c=kw(['<svg data-icon-name="copyFileIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"/></svg>']),K5c=sh(J5c).firstElementChild;var L5c=kw(['<svg data-icon-name="errorIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>']),M5c=sh(L5c).firstElementChild;var N5c=kw(['<svg data-icon-name="filterListIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>']),O5c=sh(N5c).firstElementChild;var P5c=kw(['<svg data-icon-name="filterSmallIcon" viewBox="0 0 18 18" width="18" height="18"><path fill-rule="evenodd" d="M2 4h14v2H2V4zm2 4h10v2H4V8zm2 4h6v2H6v-2z"/></svg>']),Q5c=sh(P5c).firstElementChild;var R5c=kw(['<svg data-icon-name="helpOutlineIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"/></svg>']),S5c=sh(R5c).firstElementChild;var T5c=kw(['<svg data-icon-name="highlightOffIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>']),U5c=sh(T5c).firstElementChild;var V5c=kw(['<svg data-icon-name="infoIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>']),W5c=sh(V5c).firstElementChild;var X5c=kw(['<svg data-icon-name="infoActiveIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/><path fill="#1a73e8" d="M16.216 4.471c0 2.806 3.036 4.559 5.467 3.156a3.643 3.643 0 001.821-3.156c0-2.807-3.037-4.56-5.466-3.158a3.648 3.648 0 00-1.822 3.158"/></svg>']),Y5c=sh(X5c).firstElementChild;var Z5c=kw(['<svg data-icon-name="keyboardArrowDownIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/></svg>']),$5c=sh(Z5c).firstElementChild;var a6c=kw(['<svg data-icon-name="keyboardArrowUpIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>']),b6c=sh(a6c).firstElementChild;var c6c=kw(['<svg data-icon-name="lensIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>']),d6c=sh(c6c).firstElementChild;var e6c=kw(['<svg data-icon-name="lightbulbIcon" viewBox="0 0 24 24" width="24" height="24"><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"/><path fill="#F9AB00" d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z"/></g></svg>']),f6c=sh(e6c).firstElementChild;var g6c=kw(['<svg data-icon-name="listIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),h6c=sh(g6c).firstElementChild;var i6c=kw(['<svg data-icon-name="moreVertIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>']),j6c=sh(i6c).firstElementChild;var k6c=kw(['<svg data-icon-name="musicNoteIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>']),l6c=sh(k6c).firstElementChild;var m6c=kw(['<svg data-icon-name="musicOffIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21.19 21.19L14 14l-2-2-9.2-9.2-1.41 1.42 8.79 8.79c-.06 0-.12-.01-.18-.01a3.999 3.999 0 10.01 8c2.22 0 3.99-1.79 3.99-4v-.17l5.78 5.78 1.41-1.42zM14 11.17V7h4V3h-6v6.17z"/></svg>']),n6c=sh(m6c).firstElementChild;var o6c=kw(['<svg data-icon-name="offlineBoltIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"/></svg>']),p6c=sh(o6c).firstElementChild;var q6c=kw(['<svg data-icon-name="openInNewIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>']),r6c=sh(q6c).firstElementChild;var s6c=kw(['<svg data-icon-name="pinOutlineIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M17 4v7l2 3v2h-6v5l-1 1-1-1v-5H5v-2l2-3V4c0-1.1.9-2 2-2h6c1.11 0 2 .89 2 2zM9 4v7.75L7.5 14h9L15 11.75V4H9z"/></svg>']),t6c=sh(s6c).firstElementChild;var u6c=kw(['<svg data-icon-name="playArrowIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M8 5v14l11-7z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),v6c=sh(u6c).firstElementChild;var w6c=kw(['<svg data-icon-name="queryStatsIcon" viewBox="0 0 20 20" width="20" height="20"><path d="M17.917 19.167l-2.605-2.605q-.437.292-.937.428-.5.135-1.042.135-1.583 0-2.687-1.104-1.104-1.104-1.104-2.688 0-1.583 1.104-2.687 1.104-1.104 2.687-1.104 1.584 0 2.688 1.104t1.104 2.687q0 .542-.135 1.042-.136.5-.428.958l2.605 2.584zm-4.584-3.792q.855 0 1.448-.594.594-.593.594-1.448 0-.854-.594-1.448-.593-.593-1.448-.593-.854 0-1.448.593-.593.594-.593 1.448 0 .855.593 1.448.594.594 1.448.594zM2.271 15.25L.833 14.229l4.229-6.75 2.5 2.917 3.334-5.438 2.229 3.334q-.479.041-.937.135-.459.094-.876.302l-.354-.521-3.166 5.125-2.521-2.937zm13.083-6.521q-.416-.208-.875-.302-.458-.094-.937-.135l4.187-6.625 1.438 1.021z"/></svg>']),
x6c=sh(w6c).firstElementChild;var y6c=kw(['<svg data-icon-name="selectedSeriesIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 1.5h10.5V12H12V1.5zm4.345 8.002l4.487-4.487-1.26-1.265-3.227 3.227-1.527-1.522-1.26 1.26 2.787 2.787zM2.25 3.75V12h8.25V3.75H2.25zM9 10.5H3.75V5.25H9v5.25z"/><path d="M2.25 12h8.25v-1.5H3.75z"/><path d="M9 5.25v5.25l1.5 1.5V3.75zM2.25 13.5v8.25h8.25V13.5H2.25zM9 20.25H3.75V15H9v5.25z"/><path d="M2.25 21.75h8.25v-1.5H3.75z"/><path d="M9 15v5.25l1.5 1.5V13.5zm3-1.5v8.25h8.25V13.5H12zm6.75 6.75H13.5V15h5.25v5.25z"/><path d="M12 21.75h8.25v-1.5H13.5z"/><path d="M18.75 15v5.25l1.5 1.5V13.5zM12 12h10.5v-1.5h-9z"/><path d="M21 3v7.5l1.5 1.5V1.5z"/></svg>']),
z6c=sh(y6c).firstElementChild;var A6c=kw(['<svg data-icon-name="subtitleDownChevronIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6-6-6 1.41-1.42z"/></svg>']),B6c=sh(A6c).firstElementChild;var C6c=kw(['<svg data-icon-name="subtitleLeftChevronIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42z"/></svg>']),D6c=sh(C6c).firstElementChild;var E6c=kw(['<svg data-icon-name="timePinSetIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M16 5h.99L17 3H7v2h1v7l-2 2v2h5v6l1 1 1-1v-6h5v-2l-2-2z"/></svg>']),F6c=sh(E6c).firstElementChild;var G6c=kw(['<svg data-icon-name="timePinUnsetIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 3c-4.973 0-9 4.027-9 9s4.027 9 9 9 9-4.027 9-9-4.027-9-9-9zm4.5 12.229L15.229 16.5 12 13.271 8.771 16.5 7.5 15.229 10.729 12 7.5 8.771 8.771 7.5 12 10.729 15.229 7.5 16.5 8.771 13.271 12l3.229 3.229z"/></svg>']),H6c=sh(G6c).firstElementChild;var I6c=kw(['<svg data-icon-name="viewColumnIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),J6c=sh(I6c).firstElementChild;var K6c=kw(['<svg data-icon-name="warningIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M9.022 3.497c1.316-2.303 4.636-2.303 5.952 0l7.805 13.658c1.306 2.285-.344 5.129-2.976 5.129H4.193c-2.632 0-4.282-2.843-2.976-5.129L9.022 3.497zm1.262 10.217h3.428V6.858h-3.428v6.856zm3.428 5.142h-3.428v-3.428h3.428v3.428z" clip-rule="evenodd"/></svg>']),L6c=sh(K6c).firstElementChild;var M6c=kw(['<svg data-icon-name="zoomOutIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"/></svg>']),N6c=sh(M6c).firstElementChild;var oJ=function(a){this.mdIconRegistry=a;a=m(Object.entries(O6c));for(var b=a.next();!b.done;b=a.next()){var c=m(b.value);b=c.next().value;var d=c.next().value;c=this.mdIconRegistry;var e=document.createElement("span");e.appendChild(d);d=(new XMLSerializer).serializeToString(e);d=d.slice(d.indexOf(">")+1,d.lastIndexOf("</"));d=ph(d);e=c._sanitizer.sanitize(1,d);if(!e)throw Error("Ta`"+d);d=fra(e);c._addSvgIconConfig("ac",b,new qCc("",d))}};oJ.\u0275fac=function(a){return new (a||oJ)($c(Cy))};
oJ.\u0275mod=cf({type:oJ});oJ.\u0275inj=Hc({});
var O6c={alert:q5c,arrow_drop_down:s5c,arrow_right:u5c,baseline_calendar_today_24px:w5c,call_made:y5c,call_received:A5c,check_circle:C5c,clear:E5c,close:G5c,code:I5c,copy_file:K5c,error:M5c,filter_list:O5c,filter_small:Q5c,help_outline:S5c,highlight_off:U5c,info:W5c,info_active:Y5c,keyboard_arrow_down:$5c,keyboard_arrow_up:b6c,lens:d6c,lightbulb:f6c,list:h6c,more_vert:j6c,music_note:l6c,music_off:n6c,offline_bolt:p6c,open_in_new:r6c,pin_outline:t6c,play_arrow:v6c,query_stats:x6c,selected_series:z6c,
subtitle_down_chevron:B6c,subtitle_left_chevron:D6c,time_pin_set:F6c,time_pin_unset:H6c,view_column:J6c,warning:L6c,zoom_out:N6c};var pJ=Vl({selectId:cAa}),P6c=ck(pJ.getInitialState({}),bk(vF,dAa(pJ,$F)),bk(WSc,eAa(pJ)),bk(xF,Bk(pJ,$F)),bk(nXc,function(a,b){var c=b.chartGroupId;return pJ.upsertOne(Object.assign({},a.entities[c]||$F,{chartGroupId:c,axis:0,brushing:!0,xPos:b.position,xPosStart:b.positionStart,panning:!1}),a)}),bk(oXc,function(a,b){b=b.chartGroupId;return pJ.upsertOne(Object.assign({},a.entities[b]||$F,{chartGroupId:b,axis:0,brushing:!1,xPos:null,xPosStart:null,panning:!1}),a)}),bk(pXc,function(a,b){var c=b.chartGroupId;
return pJ.upsertOne(Object.assign({},a.entities[c]||$F,{chartGroupId:c,xPos:b.position}),a)}),bk(qXc,function(a,b){b=b.chartGroupId;return pJ.upsertOne(Object.assign({},a.entities[b]||$F,{chartGroupId:b,axis:0,brushing:!1,panning:!0}),a)}),bk(rXc,function(a,b){b=b.chartGroupId;return pJ.upsertOne(Object.assign({},a.entities[b]||$F,{chartGroupId:b,axis:0,brushing:!1,panning:!1}),a)}),bk(sXc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.yAxisId;var f=a.entities[c];return f&&f.chartId&&
f.chartId!==d?a:pJ.upsertOne(Object.assign({},f||$F,{chartGroupId:c,axis:1,brushing:!0,yAxes:(f?f.yAxes:[]).concat([{chartId:d,yAxisId:e,yPos:b.position,yPosStart:b.positionStart}]),chartId:d}),a)}),bk(tXc,function(a,b){var c=b.chartGroupId;b=b.chartId;var d=a.entities[c];return!d||d.chartId&&d.chartId===b?pJ.upsertOne(Object.assign({},d||$F,{chartGroupId:c,axis:0,brushing:!1,yAxes:[],chartId:null}),a):a}),bk(uXc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.yAxisId;var f=b.position;
if((b=a.entities[c])&&(!b.chartId||b.chartId!==d))return a;var g=b?b.yAxes.filter(function(k){return k.yAxisId===e&&k.chartId===d})[0]:{};f=Object.assign({},g,{chartId:d,yAxisId:e,yPos:f});g=b?b.yAxes.filter(function(k){return k.yAxisId!==e||k.chartId!==d}):[];return pJ.upsertOne(Object.assign({},b||$F,{chartGroupId:c,yAxes:g.concat(f)}),a)})),OKa=ek(P6c);var Q6c={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],categories:void 0};var qJ=Vl({selectId:hAa}),R6c=ck(qJ.getInitialState({}),bk(xF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=m(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=qJ.mapOne({id:String(g),map:function(l){return Object.assign({},l,{chartId:e})}},b))}return b}),bk(ZSc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Ek(c,d,b)]?a:qJ.addOne(Object.assign({},
Q6c,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),bk($Sc,function(a,b){return qJ.removeOne(Ek(b.chartGroupId,b.chartId,b.xAxisId),a)}),bk(hWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b={id:f,categories:b.categories};var g=a.entities[Ek(c,d,e)],k=[];k=g?(f?g.requirements.filter(function(l){return l.id===void 0||l.id!==f}):g.requirements).concat([b]):[b];return qJ.upsertOne(Object.assign({},g||Q6c,{chartGroupId:c,chartId:d,xAxisId:e,requirements:k}),a)}),bk(iWc,function(a,
b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b=Ek(c,d,e);c=a.entities[b];if(!c||!c.requirements)return a;var g,k;c=(k=(g=c.requirements)==null?void 0:g.filter(function(l){return l.id!==f}))!=null?k:[];return qJ.updateOne({id:b,changes:{requirements:c}},a)}),bk(jWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return qJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||Q6c,{chartGroupId:c,chartId:d,xAxisId:e,gutterRatio:b.gutterRatio}),a)})),QKa=ek(R6c);var S6c={chartId:"",projectId:void 0,yAxisOrientation:"vertical"};var T6c=Vl({selectId:yk}),U6c=ck(T6c.getInitialState(),bk(xF,Bk(T6c,S6c)),bk(tVc,function(a,b){var c=b.chartId;b=b.projectId;var d;return T6c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:S6c,{chartId:c,projectId:b}),a)}),bk(uVc,function(a,b){var c=b.chartId;b=b.yAxisOrientation;var d;return T6c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:S6c,{chartId:c,yAxisOrientation:b}),a)})),SKa=ek(U6c);var V6c={layerId:"",order:0,colorMap:{},shapeMap:{}},W6c={chartId:"",byLayer:{ids:[],entities:{}},colorMap:{},shapeMap:{}};var rJ=Vl({selectId:yk}),X6c=Vl({selectId:Ck}),Y6c=ck(rJ.getInitialState({}),bk(vF,zk(rJ,W6c)),bk(wF,Ak(rJ)),bk(xF,Bk(rJ,W6c)),bk(yF,bAa(rJ,X6c)),bk(pWc,function(a,b){var c=b.chartId;var d=b.layerId;var e=a.entities[c]||W6c;b=X6c.upsertOne(Object.assign({},e.byLayer.entities[d]||V6c,{layerId:d,order:b.order,colorMap:b.colorMap,shapeMap:b.shapeMap}),e.byLayer);d={};for(var f={},g=m(Object.values(b.entities)),k=g.next();!k.done;k=g.next())if(k=k.value){for(var l=m(Object.entries(k.colorMap)),r=l.next();!r.done;r=
l.next()){var w=m(r.value);r=w.next().value;w=w.next().value;d[r]=w}k=m(Object.entries(k.shapeMap));for(l=k.next();!l.done;l=k.next())r=m(l.value),l=r.next().value,r=r.next().value,f[l]=r}return rJ.upsertOne(Object.assign({},e,{chartId:c,byLayer:b,colorMap:d,shapeMap:f}),a)})),UKa=ek(Y6c);var Z6c={chartId:"",byLayer:{ids:[],entities:{}}},$6c={layerId:"",min:0,max:1,colorPivots:[]};var sJ=Vl({selectId:yk}),a7c=Vl({selectId:Ck}),b7c=function(a){return Object.assign({},Z6c,{chartId:a||"",byLayer:a7c.getInitialState({})})},c7c=ck(sJ.getInitialState({}),bk(vF,zk(sJ,b7c())),bk(wF,Ak(sJ)),bk(xF,Bk(sJ,b7c())),bk(yF,bAa(sJ,a7c,b7c())),bk(k4c,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.min;var f=b.max;b=b.colorPivots;var g=a.entities[c];g||(g=b7c(c));(c=g.byLayer.entities[d])||(c=Object.assign({},$6c,{layerId:d,min:0,max:1,colorPivots:[]}));d=g;e=Object.assign({},c,{min:e,
max:f,colorPivots:b});e=Object.assign({},d,{byLayer:a7c.upsertOne(e,d.byLayer)});return sJ.upsertOne(e,a)})),WKa=ek(c7c);var d7c=ck({chartIdToDashboardId:{}},bk(jYc,function(a,b){var c=b.dashboardId;var d=a.chartIdToDashboardId;d=Object.assign({},d,b.chartIds.reduce(function(e,f){e[f]=c;return e},{}));return Object.assign({},a,{chartIdToDashboardId:d})})),YKa=ek(d7c);var e7c={chartId:"",statuses:[],nonblockingErrors:[]};var tJ=Vl({selectId:yk}),f7c=ck(tJ.getInitialState({}),bk(vF,zk(tJ,e7c)),bk(wF,Ak(tJ)),bk(xF,Bk(tJ,e7c)),bk(yF,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;return(b=a.entities[c])?tJ.upsertOne(Object.assign({},b,{statuses:b.statuses.map(function(f){return f.layerId!==d?f:Object.assign({},f,{layerId:e})})}),a):a}),bk(uWc,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.error;var f=b.success;var g=b.sourceId;d={layerId:d,sourceId:g,error:e,success:f};d=(b=a.entities[c])?
b.statuses.filter(function(k){return k.sourceId!==g}).concat([d]):[d];return tJ.upsertOne(Object.assign({},e7c,b,{chartId:c,statuses:d}),a)}),bk(vWc,function(a,b){var c=b.chartId;var d=b.sourceId;b=a.entities[c];if(!b)return a;b=b.statuses.filter(function(e){return e.sourceId!==d});return tJ.updateOne({id:c,changes:{statuses:b}},a)}),bk(wWc,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.error;var f=b.sourceId;d={sourceId:f,layerId:d,error:e,success:!1};d=(b=a.entities[c])?b.nonblockingErrors.filter(function(g){return g.sourceId!==
f}).concat([d]):[d];return tJ.upsertOne(Object.assign({},e7c,b,{chartId:c,nonblockingErrors:d}),a)}),bk(xWc,function(a,b){var c=b.chartId;var d=b.sourceId;b=a.entities[c];if(!b)return a;b=b.nonblockingErrors.filter(function(e){return e.sourceId!==d});return tJ.updateOne({id:c,changes:{nonblockingErrors:b}},a)})),$Ka=ek(f7c);var g7c=Vj("[AC] Set selected exemplar for chart and layer",Wj()),h7c=Vj("[AC] Set hovered exemplar for chart and layer",Wj());var Wl=Vl({selectId:yk}),cLa=Vl({selectId:Ck}),bLa=function(a){return{chartId:a||"",byLayer:cLa.getInitialState({})}},i7c=ck(Wl.getInitialState({}),bk(vF,zk(Wl,bLa())),bk(wF,Ak(Wl)),bk(xF,Bk(Wl,bLa())),bk(yF,bAa(Wl,cLa,bLa())),bk(g7c,function(a,b){return dLa(a,b.chartId,b.layerId,{selectedExemplar:b.exemplarPoint})}),bk(h7c,function(a,b){return dLa(a,b.chartId,b.layerId,{hoveredExemplar:b.exemplarPoint})})),eLa=ek(i7c);var j7c=Object.assign({},{requirements:[]},{chartGroupId:null,chartId:null,layerId:null});var k7c=ck(j7c,bk(xF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;a=a.requirements.map(function(f){return f.chartGroupId===c&&f.chartId===d?Object.assign({},f,{chartId:e}):f});return Object.assign({},j7c,{requirements:a},a[a.length-1])}),bk(yF,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;a=a.requirements.map(function(f){return f.chartId===c&&f.layerId===d?Object.assign({},f,{layerId:e}):f});return Object.assign({},j7c,{requirements:a},
a[a.length-1])}),bk(AWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;a=a.requirements.filter(function(f){return f.chartGroupId!==c&&f.chartId!==d&&f.layerId!==(e||null)}).concat([{chartGroupId:c,chartId:d,layerId:e||null}]);return Object.assign({},j7c,{requirements:a},a[a.length-1])}),bk(BWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;a=a.requirements.filter(function(f){return f.chartGroupId!==c&&f.chartId!==d&&f.layerId!==(e||null)});return Object.assign({},
j7c,{requirements:a},a[a.length-1])})),gLa=ek(k7c);var l7c=ck({chartsByGroup:{},layersByGroup:{}},bk(xF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;b=b.currentChartId;var e=Object.assign({},a.chartsByGroup),f=e[c]?new Set(e[c]):new Set;d&&f.delete(d);f.add(b);e[c]=f;return Object.assign({},a,{chartsByGroup:e})}),bk(yF,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.previousLayerId;var f=b.currentLayerId;b=a.layersByGroup[c];var g=b==null?void 0:b[d];if(!e||!g||!g.graphicLayerIds.has(e)&&!g.axisLayerIds.has(e))return a;var k=
g.graphicLayerIds;k.has(e)&&(k=new Set(k),k.delete(e),k.add(f));var l=g.axisLayerIds;l.has(e)&&(l=new Set(l),l.delete(e),l.add(f));e={};f={};return Object.assign({},a,{layersByGroup:Object.assign({},a.layersByGroup,(f[c]=Object.assign({},b,(e[d]=Object.assign({},g,{graphicLayerIds:k,axisLayerIds:l}),e)),f))})}),bk(vF,function(a,b){var c=b.chartId;b=b.chartGroupId;var d=Object.assign({},a.chartsByGroup),e=d[b]?new Set(d[b]):new Set;e.add(c);d[b]=e;return Object.assign({},a,{chartsByGroup:d})}),bk(wF,
function(a,b){var c=b.chartId;b=b.chartGroupId;var d=Object.assign({},a.chartsByGroup),e=Object.assign({},a.layersByGroup),f=d[b]?new Set(d[b]):new Set;f.delete(c);f.size>0?d[b]=f:delete d[b];f=e[b]?Object.assign({},e[b]):{};delete f[c];Object.keys(f).length>0?e[b]=f:delete e[b];return Object.assign({},a,{chartsByGroup:d,layersByGroup:e})}),bk(aTc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},a.layersByGroup);var g=b[e]?
Object.assign({},b[e]):{};if(g[d]){var k=g[d],l=k.graphicLayerIds;k=k.axisLayerIds;f==="graphic"?(l=new Set(l),l.add(c)):(k=new Set(k),k.add(c));g[d]=Object.assign({},g[d],{graphicLayerIds:l,axisLayerIds:k})}else f==="graphic"?(f=new Set([c]),c=new Set):(f=new Set,c=new Set([c])),g[d]={graphicLayerIds:f,axisLayerIds:c};b[e]=g;return Object.assign({},a,{layersByGroup:b})}),bk(bTc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},
a.layersByGroup);var g=b[e]?Object.assign({},b[e]):{};if(!g[d])return a;if(f==="graphic"){f=g[d].axisLayerIds;var k=g[d].graphicLayerIds;k=new Set(k);k.delete(c);f.size+k.size>0?g[d]={axisLayerIds:f,graphicLayerIds:k}:delete g[d]}else f=g[d].graphicLayerIds,k=g[d].axisLayerIds,k=new Set(k),k.delete(c),k.size+f.size>0?g[d]={axisLayerIds:k,graphicLayerIds:f}:delete g[d];Object.keys(g).length>0?b[e]=g:delete b[e];return Object.assign({},a,{layersByGroup:b})})),iLa=ek(l7c);var m7c=Vj("[AC] Set hover disabled",Wj());var n7c={disabled:!1};var o7c=ck(n7c,bk(m7c,function(a,b){return Object.assign({},n7c,{disabled:b.disabled})})),kLa=ek(o7c);var p7c={chartId:"",domain:{hover:null,click:null,focus:null,multiselectAnchor:null},category:{hover:null,click:null,focus:null,multiselectAnchor:null},byYAxis:{ids:[],entities:{}},threshold:{hover:null}},q7c={yAxisId:"right",hover:null,click:null,focus:null,multiselectAnchor:null};var r7c={hover:null,click:null},uJ=Vl({selectId:yk}),s7c=Vl({selectId:function(a){return a.yAxisId}}),t7c=ck(uJ.getInitialState({}),bk(vF,zk(uJ,p7c)),bk(wF,Ak(uJ)),bk(xF,Bk(uJ,p7c)),bk(zG,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},p7c,c,{domain:Object.assign({},r7c,c.domain,b.lastInteraction)});return uJ.upsertOne(b,a)}),bk(AG,function(a,b){var c=b.chartId;var d=b.yAxisId;c=a.entities[c];if(!c)return a;b=Object.assign({},q7c,c.byYAxis.entities[d],{yAxisId:d},b.lastInteraction);
b=Object.assign({},c,{byYAxis:s7c.upsertOne(b,c.byYAxis)});return uJ.upsertOne(b,a)}),bk(vXc,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},p7c,c,{category:Object.assign({},r7c,c.category,b.lastInteraction)});return uJ.upsertOne(b,a)}),bk(wXc,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},p7c,c,{threshold:Object.assign({},r7c,c.threshold,b.lastInteraction)});return uJ.upsertOne(b,a)})),mLa=ek(t7c);var u7c={chartId:"",sourceToLoadingMap:{},sourceToDescriptionMap:{},loading:!1,loadingDescription:"default",hasLoadingEverOccurred:!1};var vJ=Vl({selectId:yk}),v7c=ck(vJ.getInitialState({}),bk(vF,zk(vJ,u7c)),bk(wF,Ak(vJ)),bk(xF,Bk(vJ,u7c)),bk(EWc,function(a,b){var c=b.chartId;var d=b.sourceId;var e=b.loading;var f=b.loadingDescription;b=a.entities[c];var g={};g=Object.assign({},b?b.sourceToLoadingMap:{},(g[d]=e,g));var k={};d=Object.assign({},b?b.sourceToDescriptionMap:{},(k[d]=f,k));return vJ.upsertOne(Object.assign({},u7c,b,{chartId:c,sourceToLoadingMap:g,sourceToDescriptionMap:d,loading:oLa(g),hasLoadingEverOccurred:(Array.isArray(e)?
!!e.length:!!e)||!(b==null||!b.hasLoadingEverOccurred)}),a)}),bk(FWc,function(a,b){var c=b.chartId;var d=b.sourceId;var e=a.entities[c];if(!e)return a;b=Object.keys(e.sourceToLoadingMap).filter(function(g){return g!==d}).reduce(function(g,k){var l={};return Object.assign({},g,(l[k]=e.sourceToLoadingMap[k],l))},{});var f=oLa(b);return vJ.updateOne({id:c,changes:{sourceToLoadingMap:b,loading:f}},a)})),pLa=ek(v7c);var w7c=Vj("[AC] Sets the group ID to name map",Wj()),x7c=Vj("[AC] Sets the instance ID to name map",Wj());var y7c={chartGroupId:"",group:{},instance:{}};var wJ=Vl({selectId:cAa}),z7c=ck(wJ.getInitialState({}),bk(vF,dAa(wJ,y7c)),bk(WSc,eAa(wJ)),bk(xF,Bk(wJ,y7c)),bk(w7c,function(a,b){var c=b.chartGroupId;return wJ.upsertOne(Object.assign({},a.entities[c]||y7c,{chartGroupId:c,group:b.map}),a)}),bk(x7c,function(a,b){var c=b.chartGroupId;return wJ.upsertOne(Object.assign({},a.entities[c]||y7c,{chartGroupId:c,instance:b.map}),a)})),rLa=ek(z7c);var xJ={chartGroupId:"",chartId:"",height:0,width:0,margins:{top:0,bottom:0,left:0,right:0},offsets:{top:0,left:0},requirements:[],reservedMarginsByLayer:{ids:[],entities:{}},useChartGroupHorizontalMargins:!1};var yJ=Vl({selectId:yk}),Xl=Vl({selectId:Ck}),A7c=ck(yJ.getInitialState({}),bk(vF,function(a,b){var c=b.chartGroupId;b=b.chartId;return a.entities[b]?a:yJ.addOne(Object.assign({},xJ,{chartId:b,chartGroupId:c}),a)}),bk(wF,Ak(yJ)),bk(xF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;return d?yJ.mapOne({id:d,map:function(f){return Object.assign({},f,{chartId:e})}},a):a.entities[e]?a:yJ.addOne(Object.assign({},xJ,{chartId:e,chartGroupId:c}),a)}),bk(yF,function(a,b){var c=
b.previousLayerId;var d=b.currentLayerId;return yJ.map(function(e){return Object.assign({},e,{requirements:e.requirements.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f}),reservedMarginsByLayer:Xl.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f},e.reservedMarginsByLayer)})},a)}),bk(xVc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.useChartGroupHorizontalMargins;var e=a.entities[d],f=e==null?void 0:e.margins,g,k=tLa((g=e==null?void 0:e.requirements)!=
null?g:[]);g=k.margins;k=k.reservedMarginsByLayer;var l=xLa(a,c,d);if(b){l=uLa(g.left,g.right,l);var r=l.right;g.left=l.left;g.right=r}return yJ.upsertOne(Object.assign({},xJ,e,{chartGroupId:c,chartId:d,useChartGroupHorizontalMargins:b,margins:g.top===(f==null?void 0:f.top)&&g.bottom===(f==null?void 0:f.bottom)&&g.left===(f==null?void 0:f.left)&&g.right===(f==null?void 0:f.right)?f:g,reservedMarginsByLayer:k}),a)}),bk(vVc,function(a,b){var c=b.chartGroupId;var d=b.chartId;return yJ.upsertOne(Object.assign({},
a.entities[d]||xJ,{chartGroupId:c,chartId:d,height:Math.ceil(b.height),width:Math.ceil(b.width),offsets:b.offsets}),a)}),bk(aG,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;var f={layerId:e,reservedMargins:b.reservedMargins,overlappingMargins:b.overlappingMargins};b=a.entities[d];var g=b==null?void 0:b.margins;f=b?b.requirements.filter(function(r){return r.layerId!==e}).concat([f]):[f];var k=tLa(f),l=k.margins;b=Object.assign({},xJ,b,{chartGroupId:c,chartId:d,requirements:f,margins:l.top===
(g==null?void 0:g.top)&&l.bottom===(g==null?void 0:g.bottom)&&l.left===(g==null?void 0:g.left)&&l.right===(g==null?void 0:g.right)?g:l,reservedMarginsByLayer:k.reservedMarginsByLayer});c=xLa(a,c,d);return yJ.upsertMany(wLa(b,c).concat([b]),a)}),bk(wVc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;b=a.entities[d];if(!b)return a;var f=b.margins,g=b.requirements.filter(function(r){return r.layerId!==e}),k=tLa(g),l=k.margins;b=Object.assign({},xJ,b,{chartGroupId:c,chartId:d,requirements:g,
margins:l.top===f.top&&l.bottom===f.bottom&&l.left===f.left&&l.right===f.right?f:l,reservedMarginsByLayer:k.reservedMarginsByLayer});c=xLa(a,c,d);return yJ.upsertMany(wLa(b,c).concat([b]),a)})),yLa=ek(A7c);var B7c={chartId:"",byLayer:{ids:[],entities:{}}},BLa={layerId:"",selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null,tooltipAnnotations:[],hoveredAnnotations:[]};var zJ=Vl({selectId:yk}),AJ=Vl({selectId:Ck}),ALa=function(a){return Object.assign({},B7c,{chartId:a||"",byLayer:AJ.getInitialState({})})},C7c=ck(zJ.getInitialState({}),bk(vF,zk(zJ,ALa())),bk(wF,Ak(zJ)),bk(xF,Bk(zJ,ALa())),bk(yF,bAa(zJ,AJ,ALa())),bk(SG,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=Yl(a,c,d);c=d.chartState;d=d.layerState;if(!hl(d.selectedSeries,b))return a;b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,c.byLayer)});return zJ.upsertOne(b,
a)}),bk(TG,function(a,b){var c=Yl(a,b.chartId,b.layerId);b=c.chartState;c=Object.assign({},c.layerState,{selectedSeries:[]});b=Object.assign({},b,{byLayer:AJ.upsertOne(c,b.byLayer)});return zJ.upsertOne(b,a)}),bk(YYc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=Yl(a,c,d);c=d.chartState;d=d.layerState;b=[].concat(q(d.selectedSeries),[b]);b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,c.byLayer)});return zJ.upsertOne(b,a)}),bk(ZYc,function(a,b){var c=
b.chartId;var d=b.layerId;var e=b.series;c=Yl(a,c,d);b=c.chartState;c=c.layerState;d=c.selectedSeries.filter(function(f){return f.seriesId!==e.seriesId});c=Object.assign({},c,{selectedSeries:d});b=Object.assign({},b,{byLayer:AJ.upsertOne(c,b.byLayer)});return zJ.upsertOne(b,a)}),bk(UG,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=Yl(a,c,d);c=d.chartState;d=d.layerState;if(!hl(d.hoveredSeries,b))return a;b=Object.assign({},d,{hoveredSeries:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,
c.byLayer)});return zJ.upsertOne(b,a)}),bk($Yc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=Yl(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{lastClickedSeries:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,c.byLayer)});return zJ.upsertOne(b,a)}),bk(aZc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=Yl(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{multiselectAnchorSeries:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,c.byLayer)});return zJ.upsertOne(b,
a)}),bk(bZc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=Yl(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{tooltipAnnotations:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,c.byLayer)});return zJ.upsertOne(b,a)}),bk(cZc,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=Yl(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{hoveredAnnotations:b});b=Object.assign({},c,{byLayer:AJ.upsertOne(b,c.byLayer)});return zJ.upsertOne(b,a)})),CLa=ek(C7c);var D7c=Vj("[AC] Set Chart Spec State",Wj());var E7c=Vl({selectId:yk}),F7c={chartId:"",dataSets:[]},G7c=ck(E7c.getInitialState({}),bk(vF,zk(E7c,F7c)),bk(wF,Ak(E7c)),bk(xF,Bk(E7c,F7c)),bk(D7c,function(a,b){return E7c.upsertOne(Object.assign({},b||F7c),a)})),ELa=ek(G7c);var Zl=Vl({selectId:yk}),HLa=Vl({selectId:Ck}),H7c=Vl({selectId:function(a){return a.seriesId}}),I7c=ck(Zl.getInitialState(),bk(vF,zk(Zl,GLa)),bk(wF,Ak(Zl)),bk(xF,Bk(Zl,GLa)),bk(yF,bAa(Zl,HLa)),bk(bTc,function(a,b){return ILa(a,b.chartId,b.layerId,function(){})}),bk(oH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.yAxisId;var f=b.xAxisId;var g=b.valueType;var k=b.unit;var l=b.legendTemplate;var r=b.pointConnectionMethod;var w=b.alignmentPeriodMs;var x=b.outputPeriodMs;return ILa(a,c,d,function(C){return Object.assign({},
PYc,C,{layerId:d,yAxisId:e,xAxisId:f,valueType:g,unit:k,legendTemplate:l,pointConnectionMethod:r||(C==null?void 0:C.pointConnectionMethod),alignmentPeriodMs:w,outputPeriodMs:x})})}),bk(nH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.series;return ILa(a,c,d,function(f){if(!f)return f;var g=e.map(function(k){return Object.assign({},QYc,f==null?void 0:f.bySeries.entities[k.seriesId],k)});return Object.assign({},f,{bySeries:H7c.addMany(g,H7c.getInitialState({})),layerId:d})})}),bk(mH,function(a,
b){var c=b.chartId;var d=b.layerId;var e=b.valueType;var f=b.timeKey;var g=b.values;var k=b.timeRange;var l=b.category;return ILa(a,c,d,function(r){if(!r||r.valueType!==e)return r;var w,x=(w=r.snapshotMetadata)!=null?w:{};w=JLa(x,f,k,l);var C=Object.values(r.bySeries.entities).filter(function(J){return!!J}),H=KLa(C,g,f);return x===w&&C===H?r:Object.assign({},PYc,r,{snapshotMetadata:w,bySeries:H7c.upsertMany(H,(r==null?void 0:r.bySeries)||H7c.getInitialState({})),layerId:d})})})),LLa=ek(I7c);var BJ=Vl({selectId:hAa}),J7c=ck(BJ.getInitialState({}),bk(xF,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=m(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=BJ.mapOne({id:String(g),map:function(l){return Object.assign({},l,{chartId:e})}},b))}return b}),bk(XSc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Ek(c,d,b)]?a:BJ.addOne(Object.assign({},
SWc,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),bk(YSc,function(a,b){return BJ.removeOne(Ek(b.chartGroupId,b.chartId,b.xAxisId),a)}),bk(WSc,function(a,b){var c=b.chartGroupId;b=Object.values(a.entities).reduce(function(d,e){return e&&e.chartGroupId===c?d.concat([Ek(e.chartGroupId,e.chartId,e.xAxisId)]):d},[]);return BJ.removeMany(b,a)}),bk(MWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.priority;var k=b.absoluteMin;var l=b.min;var r=b.max;var w=b.unit;var x=
b.bucketWidth;var C=b.cause;b={id:f,priority:g,absoluteMin:k,min:l,max:r,unit:w,bucketWidth:x,constraints:b.constraints};k=a.entities[Ek(c,d,e)];l=[];l=k?(f?k.requirements.filter(function(H){return H.id===void 0||H.id!==f||H.priority!==g}):k.requirements).concat([b]):[b];return BJ.upsertOne(Object.assign({},k||SWc,{chartGroupId:c,chartId:d,xAxisId:e,requirements:l,lastUpdateCausedBy:C||0}),a)}),bk(NWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.priority;var g=b.cause;
b=b.keepLastCause;c=Ek(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.priority!==f});return BJ.updateOne({id:c,changes:Object.assign({},{requirements:d},b?{}:{lastUpdateCausedBy:g||0})},a)}),bk(OWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.cause;b=b.keepLastCause;c=Ek(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.id!==f});return BJ.updateOne({id:c,changes:Object.assign({},{requirements:d},
b?{}:{lastUpdateCausedBy:g||0})},a)}),bk(PWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return BJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||SWc,{chartGroupId:c,chartId:d,xAxisId:e,relativeTo:{xAxisId:b.relativeToId,shift:b.shift}}),a)}),bk(QWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return BJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||SWc,{chartGroupId:c,chartId:d,xAxisId:e,timezoneOffset:b.timezoneOffset}),a)}),bk(RWc,function(a,b){var c=
b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return BJ.upsertOne(Object.assign({},a.entities[Ek(c,d,e)]||SWc,{chartGroupId:c,chartId:d,xAxisId:e,timeZoneId:b.timeZoneId}),a)})),NLa=ek(J7c);var CJ=Vl({selectId:cAa}),K7c=ck(CJ.getInitialState({}),bk(vF,dAa(CJ,RYc)),bk(WSc,eAa(CJ)),bk(BG,function(a,b){var c=b.chartGroupId;b=b.position;var d=a.entities[c],e=0;d&&d.xPos!==null&&b!==null&&(b>d.xPos&&(e=3),b<d.xPos&&(e=2),b===d.xPos&&(e=1));return CJ.upsertOne(Object.assign({},d||RYc,{chartGroupId:c,xPos:b,directionOfTravel:e}),a)}),bk(CG,function(a,b){var c=b.chartGroupId;return CJ.upsertOne(Object.assign({},a.entities[c]||RYc,{chartGroupId:c,locked:b.locked}),a)}),bk(DG,function(a,b){var c=
b.chartGroupId;return CJ.upsertOne(Object.assign({},a.entities[c]||RYc,{chartGroupId:c,trackingNow:b.trackingNow}),a)})),PLa=ek(K7c);var Dk=Vl({selectId:function(a){return a.chartId+","+a.yAxisId}}),L7c=ck(Dk.getInitialState({}),bk(xF,function(a,b){var c=b.previousChartId;var d=b.currentChartId;return c?Dk.map(function(e){return e.chartId===c?Object.assign({},e,{chartId:d}):e},a):a}),bk(yVc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.id;var f=b.priority;var g=b.absoluteMin;var k=b.min;var l=b.max;var r=b.unit;var w=b.cause;b=b.constraints;r==="{not_a_unit}"&&(r="1");if(d==="right"||d==="left"){var x=d==="left"?"right":
"left",C=a.entities[c+","+x];if(C){var H=e?C.requirements.filter(function(J){return J.id===void 0||J.id!==e}):C.requirements;H.length!==C.requirements.length&&(a=Dk.upsertOne(Object.assign({},C||fAa,{chartId:c,yAxisId:x,requirements:H,lastUpdateCausedBy:w||0}),a))}}f={id:e,priority:f,absoluteMin:g,min:k,max:l,unit:r,constraints:b};g=a.entities[c+","+d];k=[];k=g?(e?g.requirements.filter(function(J){return J.id===void 0||J.id!==e}):g.requirements).concat([f]):[f];return Dk.upsertOne(Object.assign({},
g||fAa,{chartId:c,yAxisId:d,requirements:k,lastUpdateCausedBy:w||0}),a)}),bk(AVc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.priority;b=b.cause;var f=d?[c+","+d]:a.ids.filter(function(l){return l.startsWith(c)});d=[];f=m(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&(k=k.requirements.filter(function(l){return l.priority!==e}),d.push({id:g,changes:{requirements:k,lastUpdateCausedBy:b||0}}))}return Dk.updateMany(d,a)}),bk(BVc,function(a,b){var c=b.chartId;var d=
b.yAxisId;var e=b.id;b=b.cause;var f=c+","+d,g=a.entities[f];if(!g)return gAa()(a,{chartId:c,yAxisId:d});c=g.requirements.filter(function(k){return k.id!==e});return Dk.updateOne({id:f,changes:{requirements:c,lastUpdateCausedBy:b||0}},a)}),bk(CVc,function(a,b){var c=b.chartId;var d=b.yAxisId;return Dk.upsertOne(Object.assign({},a.entities[c+","+d]||fAa,{chartId:c,yAxisId:d,position:b.position}),a)}),bk(zVc,function(a,b){var c=b.chartId;var d=b.yAxisId;b=b.label;return Dk.upsertOne(Object.assign({},
a.entities[c+","+d]||fAa,{chartId:c,yAxisId:d,label:b&&b!=="y1Axis"&&b!=="y2Axis"?b:""}),a)})),RLa=ek(L7c);var DJ=function(){};DJ.\u0275fac=function(a){return new (a||DJ)};DJ.\u0275mod=cf({type:DJ});var M7c,N7c=void 0;N7c=N7c===void 0?{}:N7c;var O7c=[],P7c=O7c.concat,Q7c,R7c=function(a,b){return hza({brush:PKa,categoricalAxis:RKa,chart:TKa,colorMap:VKa,chartSpec:FLa,colorScale:XKa,dashboard:ZKa,error:aLa,exemplarSelection:fLa,focus:hLa,hierarchy:jLa,hoverDisabled:lLa,lastInteraction:nLa,loading:qLa,map:sLa,resize:zLa,seriesSelection:DLa,xAxisPin:QLa,timeSeries:MLa,xAxis:OLa,yAxis:SLa})(a,b)},EJ=N7c;
EJ=EJ===void 0?{}:EJ;
Q7c=[{provide:BSc,multi:!0,useValue:EJ},{provide:ySc,multi:!0,useValue:{key:"awesomecharts",reducerFactory:EJ instanceof fd||!EJ.reducerFactory?hza:EJ.reducerFactory,metaReducers:EJ instanceof fd||!EJ.metaReducers?[]:EJ.metaReducers,initialState:EJ instanceof fd||!EJ.initialState?void 0:EJ.initialState}},{provide:CSc,deps:[BSc,ySc],useFactory:function(a,b){return b.map(function(c,d){return a[d]instanceof fd?(d=p(a[d]),{key:c.key,reducerFactory:d.reducerFactory?d.reducerFactory:hza,metaReducers:d.metaReducers?
d.metaReducers:[],initialState:d.initialState}):c})}},{provide:ASc,multi:!0,useValue:R7c},{provide:DSc,multi:!0,useExisting:R7c instanceof fd?R7c:ASc},{provide:ESc,multi:!0,deps:[ASc,[new $yc(DSc)]],useFactory:function(a){return a.map(function(b){return b instanceof fd?p(b):b})}},wza()];M7c={ngModule:uF,providers:P7c.call(O7c,q(Q7c))};DJ.\u0275inj=Hc({imports:[M7c]});var S7c=[OI,PI,RI,TI,YI,UI,EH,OG,RG,FH,ZI,aJ,dJ,lH,dI,iH,JH,yH,hJ,GH,kJ,fH,mJ,HH,nJ,KG,DH,jJ,Qz],FJ=function(){mF.setWhitelist("chart-analytics-events",!0);mF.setWhitelist("chart-loading-timings",!0);mF.setThrowPartials&&mF.setThrowPartials(!1)};FJ.\u0275fac=function(a){return new (a||FJ)};FJ.\u0275mod=cf({type:FJ,id:"pm_awesomecharts_module"});FJ.\u0275inj=Hc({providers:[{provide:m0c,useValue:{AcChart:OG}}],imports:[S7c,DJ,oJ,Qz]});var T7c=oAc.get("pm_awesomecharts_module")||null;
if(T7c&&T7c!==FJ)throw Error("Ja`pm_awesomecharts_module`"+Tc(T7c)+"`"+Tc(T7c.name));oAc.set("pm_awesomecharts_module",FJ);var U7c=["chartContainer"],GJ=function(){var a=this;this.X_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1,ctrlDragPan:!1,clickTimePin:!1,hoverTimePin:!1};this.Y_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1};this.chartContainer=Pg.apply(null,["chartContainer"].concat(q([{read:Jd}])));this.chart=Og.required.apply(Og,q([]));this.chartTitle=Zg.apply(null,[function(){var b;return(b=a.chart().getTitle())!=null?b:""}].concat(q([])));Zg.apply(null,[function(){var b=a.chart();b=vi(b,4);return b!=null?
b:""}].concat(q([])));this.yAxisLabel=Zg.apply(null,[function(){var b=a.chart();b=vi(b,5);return b!=null?b:""}].concat(q([])));this.data=Zg.apply(null,[function(){var b=a.chart();b=Ci(b,iFc,3,Di());return WLa(b!=null?b:[])}].concat(q([])));this.legendScope=Zg.apply(null,[function(){return{chartId:a.chartTitle(),yAxisId:"left"}}].concat(q([])))};GJ.\u0275fac=function(a){return new (a||GJ)};
GJ.\u0275cmp=D({type:GJ,selectors:[["interactive-element-chart"]],viewQuery:function(a,b){a&1&&og(b.chartContainer,U7c,Jd);a&2&&pg()},inputs:{chart:[1,"chart"]},decls:12,vars:9,consts:[["chartContainer",""],[1,"gmat-subhead-2"],[3,"chartId","disableZoomAndPan"],["position","left",3,"label","interactions"],[3,"interactions"],[3,"data"],[3,"condensed","scope"]],template:function(a,b){a&1&&(K(0,"div",1),Q(1),L(),K(2,"div",null,0)(4,"ac-chart",2),M(5,"ac-y-axis",3)(6,"ac-x-axis",4)(7,"ac-line",5),K(8,
"ac-hovercard"),M(9,"ac-date-time")(10,"ac-series-snapshot"),L()(),M(11,"ac-inline-legend",6),L());a&2&&(B(),yg(b.chartTitle()),B(3),I("chartId",b.chartTitle())("disableZoomAndPan",!0),B(),I("label",b.yAxisLabel())("interactions",b.Y_AXIS_INTERACTIONS),B(),I("interactions",b.X_AXIS_INTERACTIONS),B(),I("data",b.data()),B(4),I("condensed",!0)("scope",b.legendScope()))},dependencies:[Yx,FJ,OG,RG,lH,iH,yH,fH,KG,DH],styles:["[_nghost-%COMP%]{display:block}ac-chart[_ngcontent-%COMP%]{height:180px}"],changeDetection:0});var HJ=function(){};HJ.\u0275fac=function(a){return new (a||HJ)};HJ.\u0275prov=Fc({token:HJ,factory:HJ.\u0275fac,providedIn:"root"});var IJ=function(){var a=this;this.interactiveElements=Og.apply(null,q([]));this.threadService=p(zD);p(HJ);this.validatedInteractiveElements=Zg.apply(null,[function(){var b;return(b=a.interactiveElements())==null?void 0:b.filter(function(){return!0})}].concat(q([])))};IJ.prototype.handleButtonClick=function(a){XOc(this.threadService,a.getButton().getPrompt())};IJ.prototype.getButton=function(a){return a.getButton()};IJ.prototype.getChart=function(a){return a.getChart()};
IJ.\u0275fac=function(a){return new (a||IJ)};
IJ.\u0275cmp=D({type:IJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"matTooltip"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","matTooltip"]],template:function(a,b){a&1&&(K(0,"div"),F(1,$La,2,0),L());if(a&2){var c;B();G((c=b.validatedInteractiveElements())?1:-1,c)}},dependencies:[Yx,iB,gB,cB,GJ,iA,bD],
styles:[".interactive-element-button[_ngcontent-%COMP%]{border-radius:32px;margin-right:8px}"],changeDetection:0});var JJ=function(){this.isRecentSessionsVisibleSubject=new Nj(!1);this.isRecentSessionsVisible$=this.isRecentSessionsVisibleSubject.asObservable();this.messageQueue$=new sf};JJ.prototype.sendMessage=function(a,b){this.messageQueue$.next({message:a,contextMap:b})};JJ.\u0275fac=function(a){return new (a||JJ)};JJ.\u0275prov=Fc({token:JJ,factory:JJ.\u0275fac,providedIn:"root"});var V7c={clientName:"Nexus",clientLogoUrl:"https://www.gstatic.com/partnerdash/images/nexus_icon_new.svg",onboardingExamples:[{title:"Get contextual answers for Nexus",examples:[{label:"Agent capabilities",prompt:"What are some examples of questions that can be answered by this agent?"},{label:"Nexus AI",prompt:"What are some of the current AI powered features on Nexus and how can I use them in my daily work?"},{label:"My next oncall",prompt:"For all the rotations I'm oncall for, when will I next be oncall?"}]}]},
pNa=Object.assign({},V7c,{onboardingExamples:[{title:"Get contextual answers on server/app details page",examples:[{label:"What kinds of things can you do?",prompt:"What tools do you know and what are some examples of how you can use them to answer complex, multi-step questions?"},{label:"My next oncall",prompt:"For all the rotations I'm oncall for, when will I next be oncall?"},{label:"TODOs in server code",prompt:"Does my server code have any TODOs?"},{label:"High-priority oncall bugs",prompt:"Does my server have any open P0 or P1 bugs in the oncall component?"}]}]});var W7c=new fd("InteractiveElementsTemplate"),KJ=function(){this.ve={DuckieChatInteractiveElementButton:263888};this.interactiveElements=Og.apply(null,q([]));this.threadService=p(zD);p(HJ)};KJ.prototype.handleButtonClick=function(a){XOc(this.threadService,a.getButton().getPrompt())};KJ.prototype.getButton=function(a){return a.getButton()};KJ.prototype.getChart=function(a){return a.getChart()};KJ.\u0275fac=function(a){return new (a||KJ)};
KJ.\u0275cmp=D({type:KJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"ve","veClick","veImpression"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","ve","veClick","veImpression"]],template:function(a,b){a&1&&(K(0,"div"),F(1,dMa,2,0),L());if(a&2){var c;B();G((c=b.interactiveElements())?1:-1,c)}},dependencies:[Yx,
iB,gB,cB,GJ,bD,aD],styles:[".interactive-element-button[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:8px}"],changeDetection:0});var X7c=new fd("GM2_DIALOG_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var LJ=function(){QA.apply(this,arguments);this.gmatDialogOptions=p(X7c);this.defaultOptions=p(DFc,{optional:!0});this.additionalClasses=["gmat-mdc-dialog"]};Y(LJ,QA);LJ.prototype.open=function(a,b){b=Object.assign({},this.defaultOptions||new xFc,b);if(this.gmatDialogOptions.disableGmatStyle)throw Error("db");b.panelClass=Lh(b.panelClass||[]).concat(this.additionalClasses);return QA.prototype.open.call(this,a,b)};LJ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(LJ)))(b||LJ)}}();
LJ.\u0275prov=Fc({token:LJ,factory:LJ.\u0275fac,providedIn:"root"});var MJ=function(){};MJ.\u0275fac=function(a){return new (a||MJ)};MJ.\u0275mod=cf({type:MJ});MJ.\u0275inj=Hc({providers:[{provide:QA,useClass:LJ}],imports:[WA]});var iMa=function(a){return{$implicit:a}},NJ=function(){this.data=p(PA);if(!this.data)throw Error("Rc");this.iconType=this.data.dialogType;this.confirmButtonLabel=this.data.confirmButtonLabel||"OK";this.cancelButtonLabel=this.data.cancelButtonLabel||"CANCEL"};NJ.prototype.ngOnInit=function(){};NJ.\u0275fac=function(a){return new (a||NJ)};
NJ.\u0275cmp=D({type:NJ,selectors:[["confirmation-dialog"]],decls:12,vars:9,consts:[[1,"confirmation-dialog-container"],["mat-dialog-title","",1,"gmat-headline-4","dialog-title-container"],[3,"class"],[1,"dialog-title","gmat-headline-4"],[1,"gmat-body-2","dialog-content"],[1,"dialog-message"],["align","end",1,"dialog-actions"],["matButton","","data-test-id","cancel-button",3,"mat-dialog-close"],["matButton","","data-test-id","confirm-button",3,"disabled","mat-dialog-close"],[4,"ngTemplateOutlet",
"ngTemplateOutletContext"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h6",1),F(2,eMa,2,4,"mat-icon",2),F(3,fMa,2,1,"span",3),L(),K(4,"mat-dialog-content",4),F(5,gMa,2,1,"div",5),F(6,jMa,2,4,"div"),L(),K(7,"mat-dialog-actions",6)(8,"button",7),Q(9),L(),K(10,"button",8),Q(11),L()()());if(a&2){B(2);G(b.iconType?2:-1);B();G(b.data.title?3:-1);B(2);G(b.data.message?5:-1);B();G(b.data.contentTemplate?6:-1);B(2);I("mat-dialog-close",!1);B();S(" ",b.cancelButtonLabel," ");B();var c,d,e;a=!((e=(d=(c=b.data).contentValidationFn)==
null?void 0:d.call(c))!=null?e:1);I("disabled",a)("mat-dialog-close",!0);B();S(" ",b.confirmButtonLabel," ")}},dependencies:[Yx,Kx,iB,gB,cB,MJ,RA,TA,VA,UA,Fy,Dy],styles:[".dialog-template-content[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:24px}.dialog-title-container[_ngcontent-%COMP%]{padding-bottom:16px}.dialog-content[_ngcontent-%COMP%]{padding-bottom:24px}.dialog-actions[_ngcontent-%COMP%]{padding:24px}.dialog-icon[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:7px}.dialog-icon.warning[_ngcontent-%COMP%]{color:#c5221f}.dialog-icon.info[_ngcontent-%COMP%]{color:#d56e0c}.dialog-message[_ngcontent-%COMP%]{white-space:pre-line}"],
changeDetection:0});var Y7c=new fd("GM2_MENU_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var OJ=function(){this.gmatOptions=p(Y7c)},Z7c=function(a,b){if(a.gmatOptions.disableGmatStyle)throw Error("db");b&&(b.overlayPanelClass=Lh(b.overlayPanelClass||[]).concat("gmat-mdc-menu"))};da.Object.defineProperties(OJ.prototype,{deprecatedPanel:{configurable:!0,enumerable:!0,set:function(a){Z7c(this,a)}},panel:{configurable:!0,enumerable:!0,set:function(a){Z7c(this,a)}}});OJ.\u0275fac=function(a){return new (a||OJ)};
OJ.\u0275dir=df({type:OJ,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],inputs:{deprecatedPanel:[0,"mat-menu-trigger-for","deprecatedPanel"],panel:[0,"matMenuTriggerFor","panel"]},standalone:!1});var PJ=function(){};PJ.\u0275fac=function(a){return new (a||PJ)};PJ.\u0275mod=cf({type:PJ});PJ.\u0275inj=Hc({imports:[bH]});var $7c=new fd("SessionActionsTemplate"),QJ=function(){this.sessionSummary=Og.required.apply(Og,q([]));this.sessionState=RIc;this.sessionSummaryService=p(hC);this.experimentsService=p(lA);this.changeDetectorRef=p(ux);this.dialog=p(QA);this.isSessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.isHovered=!1;this.menuTrigger=Pg.apply(null,[aH].concat(q([])))};
QJ.prototype.toggleSessionPinnedState=function(a){a.stopPropagation();a.preventDefault();var b;(b=this.menuTrigger())==null||b.closeMenu();this.sessionSummaryService.toggleSessionPinnedState(this.sessionSummary());this.sessionSummary().sessionState=this.sessionSummary().sessionState===2?1:2};
QJ.prototype.toggleSessionArchivedState=function(a){a.stopPropagation();a.preventDefault();var b;(b=this.menuTrigger())==null||b.closeMenu();this.sessionSummaryService.toggleSessionArchivedState(this.sessionSummary());this.sessionSummary().sessionState=this.sessionSummary().sessionState===3?1:3};
QJ.prototype.deleteSession=function(a){var b=this;a.stopPropagation();a.preventDefault();OA(this.dialog.open(NJ,{data:{message:"Are you sure you want to delete this thread? Your thread cannot be retrieved again after deletion.",title:"Delete thread",confirmButtonLabel:"Delete",cancelButtonLabel:"Cancel"}})).subscribe(function(c){if(c){var d;(d=b.menuTrigger())==null||d.closeMenu();b.sessionSummaryService.deleteSession(b.sessionSummary())}})};QJ.\u0275fac=function(a){return new (a||QJ)};
QJ.\u0275cmp=D({type:QJ,selectors:[["session-actions"]],viewQuery:function(a,b){a&1&&og(b.menuTrigger,aH);a&2&&pg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:10,vars:9,consts:[["actionsMenu","matMenu"],["mat-icon-button","","aria-label","toggle session actions menu",1,"session-actions-menu-button",3,"mouseenter","mouseleave","matMenuTriggerFor"],["mat-menu-item","",1,"pin-thread-toggle",3,"click"],["mat-menu-item","",1,"delete-thread-toggle"],["mat-menu-item","",1,"archive-thread-toggle"],
["mat-menu-item","",1,"delete-thread-toggle",3,"click"],["mat-menu-item","",1,"archive-thread-toggle",3,"click"]],template:function(a,b){if(a&1){var c=t();$f(0);K(1,"button",1);N("mouseenter",function(){u(c);return v(b.isHovered=!0)})("mouseleave",function(){u(c);return v(b.isHovered=!1)});K(2,"mat-icon");Q(3);L()();K(4,"mat-menu",null,0)(6,"button",2);N("click",function(e){u(c);return v(b.toggleSessionPinnedState(e))});Q(7);L();F(8,kMa,2,0,"button",3)(9,lMa,2,1,"button",4);L()}if(a&2){a=qg(5);var d=
b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_PINNED;ag(b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_ARCHIVED);B();wg("pinned",d)("is-hovered",b.isHovered);I("matMenuTriggerFor",a);B(2);yg(d&&!b.isHovered?"keep_outline":"more_vert");B(4);S(" ",d?"Unpin thread":"Pin thread"," ");B();G(b.isSessionDeletionEnabled?8:9)}},dependencies:[Yx,iB,gB,eB,PJ,OJ,YG,WG,aH,Fy,Dy],styles:[".session-actions-menu-button[_ngcontent-%COMP%]{display:none}.session-actions-menu-button.pinned[_ngcontent-%COMP%]{display:inline-block}.mat-mdc-list-item:hover   [_nghost-%COMP%]   .session-actions-menu-button[_ngcontent-%COMP%]{display:inline-block}"],
changeDetection:0});var a8c=["customSessionActions"],RJ=function(){this.sessionSummary=Og.required.apply(Og,q([]));this.sessionActionsTemplate=p($7c,{optional:!0});this.customSessionActions=Pg.apply(null,["customSessionActions"].concat(q([{read:fg}])))};RJ.prototype.ngAfterViewInit=function(){this.sessionActionsTemplate&&this.customSessionActions()&&(this.componentRef=this.customSessionActions().createComponent(this.sessionActionsTemplate),this.componentRef.instance.sessionSummary=ng.apply(null,[this.sessionSummary()].concat(q([]))))};
RJ.\u0275fac=function(a){return new (a||RJ)};RJ.\u0275cmp=D({type:RJ,selectors:[["session-actions-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customSessionActions,a8c,fg);a&2&&pg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:2,vars:1,consts:[["customSessionActions",""],[3,"sessionSummary"]],template:function(a,b){a&1&&F(0,mMa,2,0,"ng-container")(1,nMa,1,1,"session-actions",1);a&2&&G(b.sessionActionsTemplate?0:1)},dependencies:[Yx,QJ],encapsulation:2,changeDetection:0});var b8c=new fd("GM2_LIST_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var SJ=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};SJ.\u0275fac=function(a){return new (a||SJ)(Ye(b8c))};SJ.\u0275dir=df({type:SJ,selectors:[["mat-list"],["mat-action-list"],["mat-nav-list"],["mat-selection-list"]],hostAttrs:[1,"gmat-mdc-list"],standalone:!1});var c8c=new fd("ListOption");var TJ=function(){this._elementRef=p(Jd)};TJ.\u0275fac=function(a){return new (a||TJ)};TJ.\u0275dir=df({type:TJ,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});var UJ=function(){this._elementRef=p(Jd)};UJ.\u0275fac=function(a){return new (a||UJ)};UJ.\u0275dir=df({type:UJ,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});var VJ=function(){};
VJ.\u0275fac=function(a){return new (a||VJ)};VJ.\u0275dir=df({type:VJ,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});var WJ=function(){this._listOption=p(c8c,{optional:!0})};WJ.prototype._isAlignedAtStart=function(){var a;return!this._listOption||((a=this._listOption)==null?void 0:a._getTogglePosition())==="after"};WJ.\u0275fac=function(a){return new (a||WJ)};
WJ.\u0275dir=df({type:WJ,hostVars:4,hostBindings:function(a,b){a&2&&wg("mdc-list-item__start",b._isAlignedAtStart())("mdc-list-item__end",!b._isAlignedAtStart())}});var XJ=function(){WJ.apply(this,arguments)};Y(XJ,WJ);XJ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(XJ)))(b||XJ)}}();XJ.\u0275dir=df({type:XJ,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Gf]});var YJ=function(){WJ.apply(this,arguments)};Y(YJ,WJ);
YJ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YJ)))(b||YJ)}}();YJ.\u0275dir=df({type:YJ,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Gf]});var d8c=new fd("MAT_LIST_CONFIG");var ZJ=function(){this._isNonInteractive=!0;this._disableRipple=!1;this._disabled=ng.apply(null,[!1].concat(q([])));this._defaultOptions=p(d8c,{optional:!0})};da.Object.defineProperties(ZJ.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Mh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled()},set:function(a){this._disabled.set(Mh(a))}}});ZJ.\u0275fac=function(a){return new (a||ZJ)};
ZJ.\u0275dir=df({type:ZJ,hostVars:1,hostBindings:function(a,b){a&2&&Kf("aria-disabled",b.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});
var $J=function(){this._elementRef=p(Jd);this._ngZone=p(Rg);this._listBase=p(ZJ,{optional:!0});this._platform=p(Wh);this._noopAnimations=ni();this._explicitLines=null;this._disableRipple=!1;this._disabled=ng.apply(null,[!1].concat(q([])));this._subscriptions=new Rd;this._rippleRenderer=null;this._hasUnscopedTextContent=!1;p($h).load(Yz);this.rippleConfig=p($z,{optional:!0})||{};this._hostElement=this._elementRef.nativeElement;this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button";
this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem();this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")};h=$J.prototype;h.ngAfterViewInit=function(){this._monitorProjectedLinesAndTitle();this._updateItemLines(!0)};h.ngOnDestroy=function(){this._subscriptions.unsubscribe();this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()};h._hasIconOrAvatar=function(){return!(!this._avatars.length&&!this._icons.length)};
h._initInteractiveListItem=function(){this._hostElement.classList.add("mat-mdc-list-item-interactive");this._rippleRenderer=new XDc(this,this._ngZone,this._hostElement,this._platform,p(Ae));$Dc(this._rippleRenderer,this._hostElement)};h._monitorProjectedLinesAndTitle=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._subscriptions.add(ve(a._lines.changes,a._titles.changes).subscribe(function(){return a._updateItemLines(!1)}))})};
h._updateItemLines=function(a){if(this._lines&&this._titles&&this._unscopedContent){a&&this._checkDomForUnscopedTextContent();var b;a=(b=this._explicitLines)!=null?b:this._inferLinesFromContent();b=this._unscopedContent.nativeElement;this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2);this._hostElement.classList.toggle("mdc-list-item--with-three-lines",
a===3);this._hasUnscopedTextContent?(a=this._titles.length===0&&a===1,b.classList.toggle("mdc-list-item__primary-text",a),b.classList.toggle("mdc-list-item__secondary-text",!a)):(b.classList.remove("mdc-list-item__primary-text"),b.classList.remove("mdc-list-item__secondary-text"))}};h._inferLinesFromContent=function(){var a=this._titles.length+this._lines.length;this._hasUnscopedTextContent&&(a+=1);return a};
h._checkDomForUnscopedTextContent=function(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(function(a){return a.nodeType!==a.COMMENT_NODE}).some(function(a){return!(!a.textContent||!a.textContent.trim())})};
da.Object.defineProperties($J.prototype,{lines:{configurable:!0,enumerable:!0,set:function(a){this._explicitLines=Ph(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=Mh(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(Mh(a))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disableRipple||!!this.rippleConfig.disabled}}});$J.\u0275fac=function(a){return new (a||$J)};
$J.\u0275dir=df({type:$J,contentQueries:function(a,b,c){a&1&&(ig(c,XJ,4),ig(c,YJ,4));if(a&2){var d;lg(d=mg())&&(b._avatars=d);lg(d=mg())&&(b._icons=d)}},hostVars:4,hostBindings:function(a,b){a&2&&(Kf("aria-disabled",b.disabled)("disabled",b._isButtonElement&&b.disabled||null),wg("mdc-list-item--disabled",b.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});var aK=function(){this._inset=this._vertical=!1};da.Object.defineProperties(aK.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Mh(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Mh(a)}}});aK.\u0275fac=function(a){return new (a||aK)};
aK.\u0275cmp=D({type:aK,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(Kf("aria-orientation",b.vertical?"vertical":"horizontal"),wg("mat-divider-vertical",b.vertical)("mat-divider-horizontal",!b.vertical)("mat-divider-inset",b.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-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 bK=function(){};bK.\u0275fac=function(a){return new (a||bK)};bK.\u0275mod=cf({type:bK});bK.\u0275inj=Hc({imports:[Ey]});var e8c=["unscopedContent"],f8c=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],g8c=new fd("SelectionList"),cK=function(){$J.apply(this,arguments);this._selectionList=p(g8c);this._changeDetectorRef=p(ux);this.selectedChange=new Ui;this.togglePosition="after";this._inputsInitialized=this._selected=!1};Y(cK,$J);cK.\u0275dir=$J.\u0275dir;h=cK.prototype;
h.ngOnInit=function(){var a=this,b=this._selectionList;b._value&&b._value.some(function(d){return b.compareWith(a._value,d)})&&this._setSelected(!0);var c=this._selected;Promise.resolve().then(function(){if(a._selected||c)a.selected=!0,a._changeDetectorRef.markForCheck()});this._inputsInitialized=!0};h.ngOnDestroy=function(){var a=this;$J.prototype.ngOnDestroy.call(this);this.selected&&Promise.resolve().then(function(){a.selected=!1})};h.toggle=function(){this.selected=!this.selected};h.focus=function(){this._hostElement.focus()};
h.getLabel=function(){var a,b,c,d;return((d=((a=this._titles)==null?void 0:(b=a.get(0))==null?void 0:b._elementRef.nativeElement)||((c=this._unscopedContent)==null?void 0:c.nativeElement))==null?void 0:d.textContent)||""};h._hasCheckboxAt=function(a){return this._selectionList.multiple&&this._getTogglePosition()===a};h._hasRadioAt=function(a){return!this._selectionList.multiple&&this._getTogglePosition()===a&&!this._selectionList.hideSingleSelectionIndicator};
h._hasIconsOrAvatarsAt=function(a){return this._hasProjected("icons",a)||this._hasProjected("avatars",a)};h._hasProjected=function(a,b){return this._getTogglePosition()!==b&&(a==="avatars"?this._avatars.length!==0:this._icons.length!==0)};h._handleBlur=function(){this._selectionList._onTouched()};h._getTogglePosition=function(){return this.togglePosition||"after"};
h._setSelected=function(a){if(a===this._selected)return!1;(this._selected=a)?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this);this.selectedChange.emit(a);this._changeDetectorRef.markForCheck();return!0};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};
h._toggleOnInteraction=function(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))};h._setTabindex=function(a){this._hostElement.setAttribute("tabindex",a+"")};
h._hasBothLeadingAndTrailing=function(){var a=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return(this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"))&&a};
da.Object.defineProperties(cK.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=Mh(a);a!==this._selected&&(this._setSelected(a),(a||this._selectionList.multiple)&&this._selectionList._reportValueChange())}}});cK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(cK)))(b||cK)}}();
cK.\u0275cmp=D({type:cK,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(ig(c,UJ,5),ig(c,TJ,5));if(a&2){var d;lg(d=mg())&&(b._lines=d);lg(d=mg())&&(b._titles=d)}},viewQuery:function(a,b){a&1&&hg(e8c,5);if(a&2){var c;lg(c=mg())&&(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&&(Kf("aria-selected",b.selected),wg("mdc-list-item--selected",b.selected&&!b._selectionList.multiple&&b._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",b._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",b._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",b._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",b._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",b._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",
b._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",b._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",b._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("mat-accent",b.color!=="primary"&&b.color!=="warn")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},
exportAs:["matListOption"],features:[Gg([{provide:$J,useExisting:cK},{provide:c8c,useExisting:cK}]),Gf],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();cg(f8c);E(0,oMa,1,0,"ng-template",null,0,Mg)(2,pMa,6,4,"ng-template",null,1,Mg)(4,qMa,5,4,"ng-template",null,2,Mg);F(6,sMa,2,1,"span",4)(7,uMa,2,1,"span",5);F(8,wMa,1,1,null,6);K(9,"span",7);dg(10);dg(11,1);K(12,"span",8,3);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});dg(14,2);L()();F(15,yMa,2,1,"span",9)(16,AMa,2,1,"span",9);F(17,CMa,1,1,null,6);dg(18,3);M(19,"div",10)}a&
2&&(B(6),G(b._hasCheckboxAt("before")?6:b._hasRadioAt("before")?7:-1),B(2),G(b._hasIconsOrAvatarsAt("before")?8:-1),B(7),G(b._hasCheckboxAt("after")?15:b._hasRadioAt("after")?16:-1),B(2),G(b._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[Kx,Wy],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item,[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:0;padding-right:0}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px;width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__checkmark{color:CanvasText}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-list-option .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}@media(forced-colors: active){.mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}}\n'],
encapsulation:2,changeDetection:0});var h8c=["unscopedContent"],i8c=["text"],j8c=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];new fd("MatList");var dK=function(){ZJ.apply(this,arguments)};Y(dK,ZJ);dK.\u0275dir=ZJ.\u0275dir;dK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(dK)))(b||dK)}}();
dK.\u0275cmp=D({type:dK,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Gg([{provide:ZJ,useExisting:dK}]),Gf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),dg(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 eK=function(){$J.apply(this,arguments);this._activated=!1};Y(eK,$J);eK.\u0275dir=$J.\u0275dir;eK.prototype._getAriaCurrent=function(){return this._hostElement.nodeName==="A"&&this._activated?"page":null};eK.prototype._hasBothLeadingAndTrailing=function(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)};
da.Object.defineProperties(eK.prototype,{activated:{configurable:!0,enumerable:!0,get:function(){return this._activated},set:function(a){this._activated=Mh(a)}}});eK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(eK)))(b||eK)}}();
eK.\u0275cmp=D({type:eK,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,b,c){a&1&&(ig(c,UJ,5),ig(c,TJ,5),ig(c,VJ,5));if(a&2){var d;lg(d=mg())&&(b._lines=d);lg(d=mg())&&(b._titles=d);lg(d=mg())&&(b._meta=d)}},viewQuery:function(a,b){a&1&&(hg(h8c,5),hg(i8c,5));if(a&2){var c;lg(c=mg())&&(b._unscopedContent=c.first);lg(c=mg())&&(b._itemText=c.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,b){a&
2&&(Kf("aria-current",b._getAriaCurrent()),wg("mdc-list-item--activated",b.activated)("mdc-list-item--with-leading-avatar",b._avatars.length!==0)("mdc-list-item--with-leading-icon",b._icons.length!==0)("mdc-list-item--with-trailing-meta",b._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("_mat-animation-noopable",b._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Gf],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();cg(j8c);dg(0);K(1,"span",1);dg(2,1);dg(3,2);K(4,"span",2,0);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});dg(6,3);L()();dg(7,4);dg(8,5);M(9,"div",3)}},dependencies:[Wy],encapsulation:2,changeDetection:0});new fd("MatNavList");var fK=function(){ZJ.apply(this,arguments);this._isNonInteractive=!1};Y(fK,ZJ);fK.\u0275dir=ZJ.\u0275dir;fK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(fK)))(b||fK)}}();
fK.\u0275cmp=D({type:fK,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Gg([{provide:ZJ,useExisting:fK}]),Gf],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),dg(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 k8c={provide:VD,useExisting:Yc(function(){return gK}),multi:!0},l8c=function(a,b){this.source=a;this.options=b},gK=function(){ZJ.call(this);var a=this;this._element=p(Jd);this._ngZone=p(Rg);this._renderer=p(di);this._initialized=!1;this._destroyed=new sf;this._onChange=function(){};this.selectionChange=new Ui;this.color="accent";this.compareWith=function(d,e){return d===e};this._multiple=!0;var b,c;this._hideSingleSelectionIndicator=(c=(b=this._defaultOptions)==null?void 0:b.hideSingleSelectionIndicator)!=
null?c:!1;this.selectedOptions=new rz(this._multiple);this._onTouched=function(){};this._changeDetectorRef=p(ux);this._selectionListDisabled=ng.apply(null,[!1].concat(q([])));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(gK,ZJ);gK.\u0275dir=ZJ.\u0275dir;h=gK.prototype;h.ngAfterViewInit=function(){var a=this;this._initialized=!0;this._setupRovingTabindex();this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[a._renderer.listen(a._element.nativeElement,"focusin",a._handleFocusin),a._renderer.listen(a._element.nativeElement,"focusout",a._handleFocusout)]});this._value&&this._setOptionsFromValues(this._value);this._watchForSelectionChange()};
h.ngOnChanges=function(a){var b=a.disabled,c=a.disableRipple;a=a.hideSingleSelectionIndicator;(c&&!c.firstChange||b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();var b;(b=this._listenerCleanups)==null||b.forEach(function(c){return c()});this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};h.focus=function(a){this._element.nativeElement.focus(a)};h.selectAll=function(){return this._setAllOptionsSelected(!0)};
h.deselectAll=function(){return this._setAllOptionsSelected(!1)};h._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};h._emitChangeEvent=function(a){this.selectionChange.emit(new l8c(this,a))};h.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this._markOptionsForCheck()};
h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h._watchForSelectionChange=function(){var a=this;this.selectedOptions.changed.pipe(Bf(this._destroyed)).subscribe(function(b){for(var c=m(b.added),d=c.next();!d.done;d=c.next())d.value.selected=!0;b=m(b.removed);for(c=b.next();!c.done;c=b.next())c.value.selected=!1;a._containsFocus()||a._resetActiveOption()})};
h._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};h._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};h._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};
h._setAllOptionsSelected=function(a,b){var c=[];this.options.forEach(function(d){b&&d.disabled||!d._setSelected(a)||c.push(d)});c.length&&this._reportValueChange();return c};
h._handleKeydown=function(a){var b=this._keyManager.activeItem;if(a.keyCode!==13&&a.keyCode!==32||this._keyManager.isTyping()||!b||b.disabled)if(a.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&Gh(a,"ctrlKey","metaKey"))b=this.options.some(function(c){return!c.disabled&&!c.selected}),a.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(b,!0));else this._keyManager.onKeydown(a);else a.preventDefault(),b._toggleOnInteraction()};
h._setupRovingTabindex=function(){var a=this;this._keyManager=gz(WCc(jz(new mz(this._items)))).skipPredicate(function(){return a.disabled});this._resetActiveOption();this._keyManager.change.subscribe(function(b){return a._setActiveOption(b)});this._items.changes.pipe(Bf(this._destroyed)).subscribe(function(){var b=a._keyManager.activeItem;b&&a._items.toArray().indexOf(b)!==-1||a._resetActiveOption()})};
h._setActiveOption=function(a){this._items.forEach(function(b,c){return b._setTabindex(c===a?0:-1)});kz(this._keyManager,a)};h._resetActiveOption=function(){if(this.disabled)this._setActiveOption(-1);else{var a=this._items.find(function(b){return b.selected&&!b.disabled})||this._items.first;this._setActiveOption(a?this._items.toArray().indexOf(a):-1)}};h._containsFocus=function(){var a=Jh();return a&&this._element.nativeElement.contains(a)};
da.Object.defineProperties(gK.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Mh(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new rz(this._multiple,this.selectedOptions.selected))}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=Mh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._selectionListDisabled()},
set:function(a){this._selectionListDisabled.set(Mh(a));if(this._selectionListDisabled()){var b;(b=this._keyManager)==null||b.setActiveItem(-1)}}},options:{configurable:!0,enumerable:!0,get:function(){return this._items}}});gK.\u0275fac=function(a){return new (a||gK)};
gK.\u0275cmp=D({type:gK,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&ig(c,cK,5);if(a&2){var d;lg(d=mg())&&(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&&Kf("aria-multiselectable",b.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",
disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Gg([k8c,{provide:ZJ,useExisting:gK},{provide:g8c,useExisting:gK}]),Gf,bx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),dg(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 m8c=function(){};m8c.\u0275fac=function(a){return new (a||m8c)};m8c.\u0275dir=df({type:m8c,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]});var hK=function(){};hK.\u0275fac=function(a){return new (a||hK)};hK.\u0275mod=cf({type:hK});hK.\u0275inj=Hc({imports:[Xy,dA,eA,Ey,bK]});var iK=function(){};iK.\u0275fac=function(a){return new (a||iK)};iK.\u0275mod=cf({type:iK});iK.\u0275inj=Hc({imports:[hK]});var n8c=new SF(3);var o8c=new fd("GM2_PROGRESS_SPINNER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var jK=function(a,b){var c=this;this.options=a;this.progressSpinner=b;this.destroyed=new sf;this.labelElement=document.createElement("label");if(a.disableGmatStyle)throw Error("db");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-spinner-accessible-label");this.hasAriaLabelAndRole||DMa(b._elementRef.nativeElement).pipe(Bf(this.destroyed)).subscribe(function(d){p8c(c,d[0],d[1])})};
jK.prototype.ngOnInit=function(){if(!this.hasAriaLabelAndRole){this.progressSpinner._elementRef.nativeElement.insertAdjacentElement("afterend",this.labelElement);var a=this.progressSpinner.mode==="indeterminate"?"indeterminate":this.progressSpinner.value.toString(),b,c=(b=this.ariaLabel)!=null?b:"";p8c(this,c,a)}};jK.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};
var p8c=function(a,b,c){b=c==="indeterminate"?b:b+" "+n8c.format(Number(c)/100);a.labelElement.textContent=b};
da.Object.defineProperties(jK.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"}}});
jK.\u0275fac=function(a){return new (a||jK)(Ye(o8c),Ye(rI,10))};jK.\u0275dir=df({type:jK,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:[1,"gmat-mdc-progress-spinner"],hostVars:2,hostBindings:function(a,b){a&2&&Kf("aria-hidden",b.hasAriaLabelAndRole?void 0:!0)("tabindex",null)},standalone:!1});var kK=function(){};kK.\u0275fac=function(a){return new (a||kK)};kK.\u0275mod=cf({type:kK});kK.\u0275inj=Hc({imports:[sI]});var q8c=["searchInput"],UMa=function(a,b){return b.sessionId},r8c=new fd("RecentSessionsTemplate"),lK=function(a,b,c,d){this.backendModelService=a;this.userStateService=b;this.duckieEventTrackerService=c;this.sessionSummaryService=d;this.showFilter=this.isShowingMoreNavItems=!1;this.navItemClicked=Ng();this.inputEl=Pg.apply(null,["searchInput"].concat(q([])));this.routingService=p(xA);this.experimentsService=p(lA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.userStateLoaded$=
this.userStateService.userStateLoaded$;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.sessionSummaries$=this.sessionSummaryService.sessionSummaries$;this.PrivacyMode=KIc;this.SessionState=RIc;this.searchText$=new Nj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(e){return e.trim()}),pf());this.filteredSessionSummaries$=le([this.searchTextTrimmed$.pipe(lf(100)),this.sessionSummaries$]).pipe(A(function(e){e=m(e);var f=e.next().value;return e.next().value.filter(function(g){return g.title.toLowerCase().includes(f.toLowerCase())})}));
this.isLoadingSessionSummaries$=this.sessionSummaryService.isLoadingSessionSummaries$;this.numDisplayedItems=this.initialNavItems=5;this.ve={DuckieFilterRecentSessionsButton:223452};this.isGeminiModelSelected$=this.backendModelService.currentModelId$.pipe(A(function(e){return e==="duckie_on_gemini_flash_32k"}));this.currentThreadId$=this.routingService.state$.pipe(A(function(e){return e.params.id}),pf())};
lK.prototype.clearSearch=function(){this.searchText$.next("");this.inputEl()&&(this.inputEl().nativeElement.value="")};var GMa=function(a){a.clearSearch();setTimeout(function(){var b;(b=a.inputEl())==null||b.nativeElement.focus()})},NMa=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.sessionSummaries$),2);b=c.yieldResult;a.isShowingMoreNavItems=!0;a.numDisplayedItems=b.length;ce(c)})},SMa=function(a,b){return!!b&&b===a.sessionId};
lK.\u0275fac=function(a){return new (a||lK)(Ye(fC),Ye(gC),Ye(cD),Ye(hC))};
lK.\u0275cmp=D({type:lK,selectors:[["recent-sessions"]],viewQuery:function(a,b){a&1&&og(b.inputEl,q8c);a&2&&pg()},outputs:{navItemClicked:"navItemClicked"},decls:5,vars:6,consts:[["searchInput",""],["mode","indeterminate",1,"align-self-center",3,"diameter"],[1,"nav-list","duckie-left-nav",3,"has-top-banner"],[1,"nav-list","duckie-left-nav"],["mat-subheader","",1,"nav-header","flex-row","align-items-center","text-secondary","font-google-sans","justify-content-space-between"],[1,"nav-header-left","flex-row",
"align-items-center","gap-s"],[1,"icon-m"],[1,"nav-header-right"],["mat-icon-button","","aria-label","Show filter",1,"toggle-filter-button",3,"click","ve","veClick"],[1,"search","flex-row","margin-s-y"],[1,"incognito-mode-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded"],["href","http://go/duckie-incognito-mode","target","_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],["appearance","outline",1,
"full-width"],["matInput","","aria-label","Search thread titles",3,"input"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button",3,"click"],["disabled",""],["mat-list-item","","color","primary",3,"click","activated","title"],[1,"nav-item-title","flex-row","align-items-center"],[1,"title-text"],[1,"privacy-icon","padded-xxs","icon-m"],["matListItemMeta",""],[3,"click","sessionSummary"],["mat-button",
"",1,"show-more-nav-toggle"],["mat-button","",1,"show-more-nav-toggle",3,"click"]],template:function(a,b){a&1&&($f(0),T(1,"async"),F(2,EMa,1,1,"mat-progress-spinner",1),T(3,"async"),Lf(4,WMa,17,15,"mat-nav-list",2));a&2&&(ag(U(1,1,b.isIncognitoMode$)),B(2),G(U(3,4,b.isLoadingSessionSummaries$)?2:4))},dependencies:[Yx,yE,iB,gB,cB,eB,iK,SJ,fK,eK,m8c,aK,VJ,kK,jK,rI,bK,ND,MD,ED,GD,AE,zE,Fy,Dy,bD,aD,dF,RJ,Lx],styles:["[_nghost-%COMP%]{font-size:14px;max-height:100%;overflow-y:auto}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]{border-radius:30px}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{max-width:calc(100% - 8px)}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]   .privacy-icon[_ngcontent-%COMP%]{min-width:calc(var(--base-px, 1rem)*20)}[_nghost-%COMP%]   .gmat-mdc-list[_ngcontent-%COMP%]   .mdc-list-item.mdc-list-item--with-trailing-meta[_ngcontent-%COMP%]   .mdc-list-item__end[_ngcontent-%COMP%]{margin:0}.incognito-mode-banner[_ngcontent-%COMP%]{margin:-4px 0}.incognito-mode-banner[_ngcontent-%COMP%]   .learn-more-button[_ngcontent-%COMP%]{min-width:10ch}.show-more-nav-toggle.show-more-nav-toggle[_ngcontent-%COMP%]{width:100%;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:0 8px 0 24px}.summary-pin-button[_ngcontent-%COMP%]{display:none}.mat-mdc-list-item[_ngcontent-%COMP%]:hover   .summary-pin-button[_ngcontent-%COMP%], .summary-pin-button.pinned[_ngcontent-%COMP%]{display:inline-block}.nav-header[_ngcontent-%COMP%]{margin:0;min-height:32px}.nav-header[_ngcontent-%COMP%]   .nav-header-left[_ngcontent-%COMP%]{margin-left:24px}[_nghost-%COMP%]     .search mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}.gmat-mdc-button.mat-mdc-icon-button.selected[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--primary-default)}.mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%]   .mdc-list-item--activated[_ngcontent-%COMP%]   [matListItemMeta][_ngcontent-%COMP%]{--mat-list-list-item-trailing-supporting-text-color:var(--tonal-blue)}mat-divider[_ngcontent-%COMP%]{margin:4px 0}.duckie-left-nav[_ngcontent-%COMP%]{padding-top:0;padding-right:16px}"],
changeDetection:0});var s8c=["customRecentSessions"],mK=function(){this.navItemClicked=Ng();this.recentSessionsTemplate=p(r8c,{optional:!0});this.customRecentSessions=Pg.apply(null,["customRecentSessions"].concat(q([{read:fg}])))};mK.prototype.ngAfterViewInit=function(){var a=this;this.recentSessionsTemplate&&this.customRecentSessions()&&(this.componentRef=this.customRecentSessions().createComponent(this.recentSessionsTemplate),this.componentRef.instance.navItemClicked.subscribe(function(){a.navItemClicked.emit()}))};
mK.\u0275fac=function(a){return new (a||mK)};mK.\u0275cmp=D({type:mK,selectors:[["recent-sessions-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customRecentSessions,s8c,fg);a&2&&pg()},outputs:{navItemClicked:"navItemClicked"},decls:2,vars:1,consts:[["customRecentSessions",""],[3,"navItemClicked"]],template:function(a,b){a&1&&F(0,XMa,2,0,"ng-container")(1,YMa,1,0,"recent-sessions");a&2&&G(b.recentSessionsTemplate?0:1)},dependencies:[Yx,lK],encapsulation:2,changeDetection:0});var nK=function(){};nK.\u0275fac=function(a){return new (a||nK)};nK.\u0275mod=cf({type:nK});nK.\u0275inj=Hc({imports:[lK,QJ,RJ,mK]});var t8c=new fd("GM2_TOOLTIP_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var oK=function(){if(p(t8c).disableGmatStyle)throw Error("db");var a=p(iA,{self:!0,optional:!0});a&&(a._overlayPanelClass=["gmat-mdc-tooltip"])};oK.\u0275fac=function(a){return new (a||oK)};oK.\u0275dir=df({type:oK,selectors:[["","matTooltip",""]]});var pK=function(){};pK.\u0275fac=function(a){return new (a||pK)};pK.\u0275mod=cf({type:pK});pK.\u0275inj=Hc({imports:[jA]});var u8c=new fd("NewTopicButtonTemplate"),qK=function(){this.ve={DuckieChatSideNavigationPaneNewChatButton:201125};this.threadService=p(zD);this.overridesService=p(wA);this.canStartNewThread$=this.threadService.canStartNewThread$};qK.prototype.startNewThread=function(a){a.metaKey||a.ctrlKey?oi(window,Sqa("http://duckie"),"_blank"):this.threadService.startNewThread("","")};qK.\u0275fac=function(a){return new (a||qK)};
qK.\u0275cmp=D({type:qK,selectors:[["new-topic-button"]],decls:5,vars:6,consts:[["mat-fab","","extended","","appearance","fill","matTooltip","New Topic (CTRL+SHIFT+o)",1,"new-thread-button","margin",3,"click","ve","veClick","veImpression","disabled"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("click",function(c){return b.startNewThread(c)}),K(2,"mat-icon"),Q(3,"add"),L(),Q(4,"New topic\n"),L());a&2&&I("ve",b.ve.DuckieChatSideNavigationPaneNewChatButton)("veClick",!0)("veImpression",
!0)("disabled",!U(1,4,b.canStartNewThread$))},dependencies:[Yx,iB,dB,hB,MJ,pK,oK,iA,Fy,Dy,bD,aD,Lx],styles:["[_nghost-%COMP%]{font-size:calc(var(--base-px, 1rem)*14)}[_nghost-%COMP%]   .new-thread-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:calc(var(--base-px, 1rem)*24)}"],changeDetection:0});var v8c=["customNewTopicButton"],rK=function(){this.newTopicButtonTemplate=p(u8c,{optional:!0});this.customNewTopicButton=Pg.apply(null,["customNewTopicButton"].concat(q([{read:fg}])))};rK.prototype.ngAfterViewInit=function(){this.newTopicButtonTemplate&&this.customNewTopicButton()&&(this.componentRef=this.customNewTopicButton().createComponent(this.newTopicButtonTemplate))};rK.\u0275fac=function(a){return new (a||rK)};
rK.\u0275cmp=D({type:rK,selectors:[["new-topic-button-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customNewTopicButton,v8c,fg);a&2&&pg()},decls:2,vars:1,consts:[["customNewTopicButton",""]],template:function(a,b){a&1&&F(0,ZMa,2,0,"ng-container")(1,$Ma,1,0,"new-topic-button");a&2&&G(b.newTopicButtonTemplate?0:1)},dependencies:[Yx,qK],encapsulation:2,changeDetection:0});var sK=function(){};sK.\u0275fac=function(a){return new (a||sK)};sK.\u0275mod=cf({type:sK});sK.\u0275inj=Hc({imports:[qK,rK]});var w8c={BANNER_TYPE_UNSPECIFIED:0,INFO:1,WARNING:2,ERROR:3};var x8c=function(){this.bannerType=Og.apply(null,q([]));this.bannerText=Og.apply(null,q([]));this.dismissalType=Og.apply(null,q([]));this.duckieBannerType=w8c};x8c.\u0275fac=function(a){return new (a||x8c)};
x8c.\u0275cmp=D({type:x8c,selectors:[["banner"]],inputs:{bannerType:[1,"bannerType"],bannerText:[1,"bannerText"],dismissalType:[1,"dismissalType"]},decls:3,vars:7,consts:[[1,"banner-wrapper","padded-s-top"]],template:function(a,b){a&1&&(Rf(0,"div",0)(1,"p"),Q(2),Sf()());a&2&&(wg("info-banner",b.bannerType()===b.duckieBannerType.INFO)("warning-banner",b.bannerType()===b.duckieBannerType.WARNING)("error-banner",b.bannerType()===b.duckieBannerType.ERROR),B(2),S(" ",b.bannerText()," "))},dependencies:[Yx],
styles:[".banner-wrapper[_ngcontent-%COMP%]{border-radius:var(--custom-border-radius,1em);font-size:calc(var(--base-px, 1rem)*14);font-weight:500;padding:1em;margin-bottom:8px}@media (max-width:800px){.banner-wrapper[_ngcontent-%COMP%]{display:none}}.info-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-blue);border:var(--custom-border,1px solid var(--tonal-icon-blue))}.warning-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);border:var(--custom-border,1px solid var(--tonal-icon-yellow))}.error-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-red);border:var(--custom-border,1px solid var(--tonal-icon-red))}"],
changeDetection:0});var y8c=new fd("BigBirdOutageTemplate"),tK=function(){};tK.prototype.onCloseBannerButtonClicked=function(){};tK.\u0275fac=function(a){return new (a||tK)};
tK.\u0275cmp=D({type:tK,selectors:[["big-bird-outage"]],decls:6,vars:0,consts:[[1,"big-bird-outage"],["href","http://go/duckie-big-bird","target","_blank"]],template:function(a){a&1&&(Rf(0,"div",0)(1,"p"),Q(2," Due to a capacity crunch, Big Bird goes offline temporarily starting 10/17. Duckie will migrate to GfG Flash. Sorry for ruffling feathers. ("),Rf(3,"a",1),Q(4,"go/duckie-big-bird"),Sf(),Q(5,"). "),Sf()())},dependencies:[Yx],styles:[".big-bird-outage[_ngcontent-%COMP%]{background-color:var(--tonal-fill-red);border:var(--custom-border,1px solid var(--tonal-icon-red));border-radius:var(--custom-border-radius,1em);font-size:calc(var(--base-px, 1rem)*14);font-weight:500;padding:1em}.big-bird-outage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .big-bird-outage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-red)}"],
changeDetection:0});var z8c=["customBigBirdOutage"],uK=function(){this.bigBirdOutageTemplate=p(y8c,{optional:!0});this.customBigBirdOutage=Pg.apply(null,["customBigBirdOutage"].concat(q([{read:fg}])))};uK.prototype.ngAfterViewInit=function(){this.bigBirdOutageTemplate&&this.customBigBirdOutage()&&(this.componentRef=this.customBigBirdOutage().createComponent(this.bigBirdOutageTemplate))};uK.\u0275fac=function(a){return new (a||uK)};
uK.\u0275cmp=D({type:uK,selectors:[["big-bird-outage-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customBigBirdOutage,z8c,fg);a&2&&pg()},decls:2,vars:1,consts:[["customBigBirdOutage",""]],template:function(a,b){a&1&&F(0,aNa,2,0,"ng-container")(1,bNa,1,0,"big-bird-outage");a&2&&G(b.bigBirdOutageTemplate?0:1)},dependencies:[Yx,tK],encapsulation:2,changeDetection:0});var A8c=new fd("GeneralAnnouncementTemplate"),vK=function(){this.userStateService=p(gC)};vK.prototype.onCloseBannerButtonClicked=function(){MIc(this.userStateService)};vK.\u0275fac=function(a){return new (a||vK)};
vK.\u0275cmp=D({type:vK,selectors:[["general-announcement"]],decls:9,vars:0,consts:[[1,"banner","chat-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-s-right"],["href","http://b/395969863","target","_blank"],[1,"banner-close-button"],["mat-icon-button","","aria-label","Close banner",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span"),Q(2," Duckie's old model has been turned down and sessions do not automatically migrate to the new model. Please see "),
K(3,"a",1),Q(4,"b/395969863"),L()(),K(5,"div",2)(6,"button",3),N("click",function(){return b.onCloseBannerButtonClicked()}),K(7,"mat-icon"),Q(8,"close"),L()()()())},dependencies:[Yx,Fy,Dy],styles:[".banner[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:calc(var(--base-px, 1rem)*14);margin:0 -24px 2px;min-height:32px}.banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}@media (max-width:800px){.banner[_ngcontent-%COMP%]{display:none}}.banner-close-button[_ngcontent-%COMP%]{-webkit-transform:scale(.8);transform:scale(.8)}"],
changeDetection:0});var B8c=["customGeneralAnnouncement"],wK=function(){this.generalAnnouncementTemplate=p(A8c,{optional:!0});this.customGeneralAnnouncement=Pg.apply(null,["customGeneralAnnouncement"].concat(q([{read:fg}])))};wK.prototype.ngAfterViewInit=function(){this.generalAnnouncementTemplate&&this.customGeneralAnnouncement()&&(this.componentRef=this.customGeneralAnnouncement().createComponent(this.generalAnnouncementTemplate))};wK.\u0275fac=function(a){return new (a||wK)};
wK.\u0275cmp=D({type:wK,selectors:[["general-announcement-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customGeneralAnnouncement,B8c,fg);a&2&&pg()},decls:2,vars:1,consts:[["customGeneralAnnouncement",""]],template:function(a,b){a&1&&F(0,cNa,2,0,"ng-container")(1,dNa,1,0,"general-announcement");a&2&&G(b.generalAnnouncementTemplate?0:1)},dependencies:[Yx,vK],encapsulation:2,changeDetection:0});var C8c=new fd("IncognitoBannerTemplate"),xK=function(){};xK.\u0275fac=function(a){return new (a||xK)};
xK.\u0275cmp=D({type:xK,selectors:[["incognito-banner"]],decls:7,vars:0,consts:[[1,"banner","incognito-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-right"],[1,"banner-text","flex-row","gap-s","align-items-center","padded-s-y"],"href;http://go/duckie-incognito-mode;target;_blank;mat-button;;color;primary;aria-label;Learn more".split(";")],template:function(a){a&1&&(K(0,"div",0)(1,"div",1)(2,"mat-icon"),Q(3,"incognito"),L(),
Q(4," Incognito mode enabled. All threads will be deleted on closing this tab or window. "),L(),K(5,"a",2),Q(6," Learn more "),L()())},dependencies:[Yx,Fy,Dy],styles:[".banner[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:calc(var(--base-px, 1rem)*14);margin:0 -24px 2px;min-height:32px}.banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}@media (max-width:800px){.banner[_ngcontent-%COMP%]{display:none}}.banner[_ngcontent-%COMP%]   .banner-text[_ngcontent-%COMP%]{min-height:32px}"],
changeDetection:0});var D8c=["customIncognitoBanner"],yK=function(){this.incognitoBannerTemplate=p(C8c,{optional:!0});this.customIncognitoBanner=Pg.apply(null,["customIncognitoBanner"].concat(q([{read:fg}])))};yK.prototype.ngAfterViewInit=function(){this.incognitoBannerTemplate&&this.customIncognitoBanner()&&(this.componentRef=this.customIncognitoBanner().createComponent(this.incognitoBannerTemplate))};yK.\u0275fac=function(a){return new (a||yK)};
yK.\u0275cmp=D({type:yK,selectors:[["incognito-banner-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customIncognitoBanner,D8c,fg);a&2&&pg()},decls:2,vars:1,consts:[["customIncognitoBanner",""]],template:function(a,b){a&1&&F(0,eNa,2,0,"ng-container")(1,fNa,1,0,"incognito-banner");a&2&&G(b.incognitoBannerTemplate?0:1)},dependencies:[Yx,xK],encapsulation:2,changeDetection:0});var E8c=[{label:"Search for changelists",prompt:"Show me all the authors I've reviewed CLs for in the last 30 days, with the CL number and size of largest cl, in ascending order of CL size"},{label:"Explain error message",prompt:"Explain: def run_pipeline(root): # Read inputs examples = root | recordio.ReadFromRecordIO( filepattern=build_paths(), coder=tf_example_pb.Example ) producing error: , line 47, in _get_typehint_from_coder return self._coder.to_type_hint() AttributeError: to_type_hint"},{label:"Add proto validator",
prompt:"Add a proto validator rule that count of sources must be between 1 and 2: message LeaseAccountRequest { // Where to lease the account from. // To lease a Fitbit account linked to an OTA, specify 2 sources. repeated Source sources = 2; }"},{label:"Aggregate columns in plx",prompt:"I have 2 columns one named host, the other number_of_submits. I want to aggregate them both by using ARRAY_AGG. I also want to get maximum value from number_of_submits and whatever entry was in the same row in column host."},
{label:"Write a tf.math expression",prompt:"Write a euclidean distance equation using tf.math"},{label:"Generate f1 table",prompt:"Generate a table in f1 with this data: Fields: _PARTITIONDATE: Date | project_id: string Values: - 01/01/2021 | 1 - 01/01/2021 | 2 - 01/01/2021 | 3 - 01/01/2021 | 4 - 01/02/202 | 1 - 01/02/2021 | 2 - 01/02/2021 | 3 - 01/03/202 | 1 - 01/04/202 | 1 - 01/04/202 | 5 - 01/04/202 | 6 - 01/04/202 | 7 - 01/04/202 | 8 - 01/05/202 | 8"}],F8c=[{label:"Building internal Chrome extension",
prompt:"I need to build a Chrome Extension for internal usage, any caveats or things I should know?"},{label:"Using hg rm",prompt:"I'm using hg rm to remove many obsolete files in a directory. But it is too slow and I couldn't check the progress. How to fix it?"},{label:"Shared node vs. library",prompt:"What is a difference between a shared node and library?"},{label:"Declare a new Kotlin function",prompt:"What are different ways to declare a new Kotlin function?"},{label:"Load shedding",prompt:"What is a good load shedding choice for an internal service?"},
{label:"Read experiment in Soy file",prompt:"For reading experiment in Soy file, should I use Soy injection or Soy deltemplate ?"},{label:".pbenums .pb file difference",prompt:'What is the difference between a ".pbenums" file vs a ".pb" file?'}],G8c=[{label:"Assert a list is empty in Kotlin",prompt:"Kotlin assert that the list is empty"},{label:"Sort libraries in Python ",prompt:"Sorting libraries in Python"},{label:"Test using Blaze",prompt:'How do you run the single test "fetchTableWithTags_includesTagsInResponse" in the file "google3/javatests/com/google/cloud/helix/server/job/CatalogInterfaceLocalImplTest.java" using blaze?'},
{label:"Using dreampipe with pod",prompt:"Can you use Dreampipe with Pod Batch?"},{label:"Increment protobuf int field in C++",prompt:"How to increment protobuf int field in c++?"},{label:"Boq web lite node creation",prompt:"What is generated when I create a Boq Web Lite node?"},{label:"Explain code",prompt:"Can you explain this code : ``` [add code block here] ```"},{label:"Find table to query Google Maps POIs",prompt:"What table should I query to get a list of all the POIs on Google Maps?"},{label:"Explain function",
prompt:"Explain flume::KeyProto() function."},{label:"GWS using Java 11",prompt:"Is GWS using Java 11?"},{label:"Get current date in borg config",prompt:"How do I get the current date in the borg config. Is there a method for this?"},{label:"Commit actions in Cider",prompt:"In Cider, what are the differences between sync, evolve, upload, commit, and ammend?"},{label:"Get yesterday's date in Java",prompt:"In Java, how to get yesterday's date?"},{label:"Get Corbett access",prompt:"How do I get access to Corbett?"},
{label:"Explain import statement",prompt:'Why import "//javascript/frameworks/client/data:rpc_id"?'},{label:"Confirm server creation constraints",prompt:"Boq server which listens to pubsub and writes to spanner db. Is this possible in python?"},{label:"Create unordered list in Angular Dart",prompt:"How do I use NgFor to create an unordered list in Angular Dart?"},{label:"Find boqdash backend",prompt:"Is Boq manifest service is the backend for BoqDash(or boq universe)?"},{label:"Check empty string in GoogleSQL",
prompt:"How to check whether a string is empty in googlesql?"},{label:"Provide code summary",prompt:"Explain the following in a succinct summary: [add code block here]"},{label:"Loss in Tensorflow models",prompt:"What are common reasons that a Tensorflow model would not show any change in loss?"},{label:"Explain .dwp file",prompt:"What is a .dwp file?"},{label:"Build rules in bzl",prompt:"Can a single bzl file define two build rules?"},{label:"Workspace document access",prompt:'Does sharing a Google Workspace document with "Alphabet" make the document accessible to restricted TVCs?'},
{label:"Explain code from BUILD file",prompt:'What does this part of the BUILD file mean: borgcfg_inline( name = "index_backfill_borg_inline", src = "index_backfill.borg", deps = [ ":index_backfill_template", "//production/borg/templates/lambda:time_lib", "//production/borg/templates/lambda:ubdiff_lib", ], )'},{label:"Include data file in Blaze",prompt:"How do I include a data file which my Python binary needs in Blaze?"},{label:"GKE mixer service",prompt:"How does the mixer service in GKE work?"}];var kNa=function(a,b){return b.title},iNa=function(a,b){return b.label},H8c=new fd("OnboardingExamplesTemplate"),zK=function(){var a=this;this.overridesService=p(wA);this.ve={ZeroStateSuggestionChipButton:201127};this.defaultOnboardingSections=[{title:"Coding",examples:gNa(E8c)},{title:"Planning",examples:gNa(F8c)},{title:"Learning",examples:gNa(G8c)}];this.clientConfiguration=Og.apply(null,q([]));this.exampleQuery=Ng();this.overrideOnboardingExamples=Vya(this.overridesService.overrideOnboardingExamplesList$.asObservable());
this.onboardingExamples=Zg.apply(null,[function(){if(a.overrideOnboardingExamples())return a.overrideOnboardingExamples();var b;return((b=a.clientConfiguration())==null?0:b.onboardingExamples)?a.clientConfiguration().onboardingExamples:a.defaultOnboardingSections}].concat(q([])))};zK.prototype.setExampleQuery=function(a){this.exampleQuery.emit(a)};zK.\u0275fac=function(a){return new (a||zK)};
zK.\u0275cmp=D({type:zK,selectors:[["onboarding-examples"]],inputs:{clientConfiguration:[1,"clientConfiguration"]},outputs:{exampleQuery:"exampleQuery"},decls:2,vars:1,consts:[[1,"onboarding-example-container","flex-row","gap-s"],[1,"onboarding-example","bg-surface-container","rounded","padded"],[1,"onboarding-section-title","gmat-headline-6","margin-s-bottom"],[1,"flex-row","flex-row-wrap","align-items-flex-start","gap-s"],["mat-stroked-button","",1,"example-button","bg-surface-default","text-secondary",
3,"ve","veClick","veImpression"],["mat-stroked-button","",1,"example-button","bg-surface-default","text-secondary",3,"click","ve","veClick","veImpression"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,lNa,2,0),L());if(a&2){var c;B();G((c=b.onboardingExamples())?1:-1,c)}},dependencies:[Yx,iB,gB,cB,bD,aD],styles:[".onboarding-example[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:33%}@media (max-width:1280px){.onboarding-example-container[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.onboarding-example[_ngcontent-%COMP%]{width:auto}}@media (max-width:800px){.example-button[_ngcontent-%COMP%]{font-size:11px}.onboarding-section-title[_ngcontent-%COMP%]{font-size:16px}.onboarding-example[_ngcontent-%COMP%]:not(:first-child){display:none}}"],
changeDetection:0});var I8c=["customOnboardingExamples"],AK=function(){this.clientConfiguration=Og.apply(null,q([]));this.exampleQuery=Ng();this.onboardingExamplesTemplate=p(H8c,{optional:!0});this.customOnboardingExamples=Pg.apply(null,["customOnboardingExamples"].concat(q([{read:fg}])))};
AK.prototype.ngAfterViewInit=function(){var a=this;this.onboardingExamplesTemplate&&this.customOnboardingExamples()&&(this.componentRef=this.customOnboardingExamples().createComponent(this.onboardingExamplesTemplate),this.componentRef.instance.clientConfiguration=this.clientConfiguration,this.componentRef.instance.exampleQuery.subscribe(function(b){a.exampleQuery.emit(b)}))};AK.\u0275fac=function(a){return new (a||AK)};
AK.\u0275cmp=D({type:AK,selectors:[["onboarding-examples-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customOnboardingExamples,I8c,fg);a&2&&pg()},inputs:{clientConfiguration:[1,"clientConfiguration"]},outputs:{exampleQuery:"exampleQuery"},decls:2,vars:1,consts:[["customOnboardingExamples",""],[3,"clientConfiguration"],[3,"exampleQuery","clientConfiguration"]],template:function(a,b){a&1&&F(0,mNa,2,0,"ng-container")(1,nNa,1,1,"onboarding-examples",1);a&2&&G(b.onboardingExamplesTemplate?0:1)},dependencies:[Yx,
zK],encapsulation:2,changeDetection:0});var oNa=new Map([["adsprivacy",{clientName:"Ads Privacy (Beta)",clientLogoUrl:"https://g3doc.corp.google.com/company/teams/ads-privacy/logo.png",onboardingExamples:[{title:"WARNING: Duckie for Ads Privacy is in Beta.\n Duckie may answer questions related to general privacy terminology but will not have information about specific Ads data.\n Please double check the sources linked to the answers.\n If no sources are listed please disregard the Duckie answer. \n Please double check the answers with your PWG (go/pwg-ads-engagement) and/or Legal (go/whichlawyer) before using the Duckie answers as authoritative.",
examples:[{label:"Create DGAC",prompt:"How do I create a DGAC?"},{label:"Best practices",prompt:"What are the best practices to annotate data for DMA?"},{label:"Anonymized data",prompt:"What is anonymized data?"}]}]}],["datanexus",{clientName:"DataNexus",clientLogoUrl:"https://data.corp.google.com/portal/static/dm_icon.png",onboardingDescription:"DataNexus (data/) is Alphabet's central destination for discovery, understanding, and management of ML, data, and data-related assets.",onboardingExamples:[{title:"Explore DataNexus with AI assistant",
examples:[{label:"Onboard to Datanexus",prompt:"What is DataNexus?"},{label:"Register assets",prompt:"How do I register an asset via DataNexus?"},{label:"Request access",prompt:"What is the table ytdata.cd_video and how do I request access to it?"},{label:"Search for assets",prompt:"Help me find a table related to PeopleView.Persons."}]}]}],["fieldglass",{clientName:"Fieldglass",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/fieldglass.svg",onboardingExamples:[{title:"What can Fieldglass help with?",
examples:[{label:"Learn about CL throughput",prompt:"How is CL throughput calculated?"},{label:"Similar metrics to presubmit friction",prompt:"Show me metrics that are similar to presubmit friction"}]}]}],["g3doc",{clientName:"g3doc",clientLogoUrl:"https://g3doc.corp.google.com/devtools/markdown/service/g3doc/images/logo.svg",onboardingExamples:[{title:"Get answers about the current page. Past conversations can be found at http://duckie/",examples:[{label:"Summarize",prompt:"What is this page about?"},
{label:"Simplify",prompt:"Explain the basic idea in simple terms."},{label:"Edit",prompt:"Act as a tech writer. How would you improve this doc?"},{label:"Topic specific",prompt:"How do I use this tool to..."}]}]}],["nexus",V7c],["orchestration",{clientName:"Orchestration",clientLogoUrl:"https://g3doc.corp.google.com/supplychain/hw/orchestration2/g3doc/resources/images/orchestration_2_logo.svg",onboardingDescription:"DSS Orchestration 2.0 platform helps building complex system integration workflows and provides real-time execution, alerting and monitoring.",
onboardingExamples:[{title:"Get answers on DSS Orchestration",examples:[{label:"Onboard to Orchestration",prompt:"Tell me how to onboard to DSS Orchestration 2.0 system."},{label:"Debug error message",prompt:"Help me debug this error message: [add error message here]"},{label:"Design workflow definition",prompt:"How do I design my workflow definition in Orchestration 2?"}]}]}],["sfdbg",{clientName:"SFDBG",clientLogoUrl:"https://searchdebugger.corp.google.com/static/logo.svg",onboardingDescription:"See go/sfdbg-duckie-demo to learn how to use Duckie in SFDBG.",
onboardingExamples:[{title:"Get answers on SFDBG",examples:[{label:"Onboard to SFDBG",prompt:"Tell me how to onboard to SFDBG."},{label:"How to use SFDBG",prompt:"How to issue live, eval, or past queries in SFDBG?"},{label:"How to use SFDBG for debugging",prompt:"How to use SFDBG for debugging? Explain the different tabs and what they do and how to use them."}]}]}],["sigma",{clientName:"Sigma",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/sigma.svg",onboardingExamples:[{title:"Get contextual answers for Sigma",
examples:[{label:"Summarize",prompt:"Summarize the data displayed in this page."},{label:"Debug",prompt:"Analyze the data in this page. Look for problems and outliers. Suggest solutions or investigation steps."}]}]}],["spanner",{clientName:"Spanner",clientLogoUrl:"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/database_spark/default/24px.svg",onboardingExamples:[{title:"Get contextual answers on spanner details page",examples:[{label:"Spanner schema",prompt:"Show me the schema for this database."},
{label:"Query performance",prompt:"How can I improve the performance of my slowest query?"},{label:"Database backups",prompt:"What is the status of my database backups?"},{label:"Spanner automon",prompt:"Where can I find the automon dashboard for this database?"}]}],onboardingExamplesPerPageMap:new Map}],["taskflow",{clientName:"TaskFlow",clientLogoUrl:"https://www.gstatic.com/devopsconsole/images/taskflow/taskflow_logo_v1.svg",onboardingDescription:"TaskFlow assistant is a chat support agent powered by Duckie.\n      It's a customized version of Duckie web and configured to index answers\n      only in TaskFlow g3doc, TaskFlow YAQS and other planning resources.",
onboardingExamples:[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Inbox best practices",prompt:"What are the best practices for triaging items in the inbox?"},{label:"Bulk create issues",prompt:"How do I create tasks in bulk?"},{label:"Customize your views",prompt:"How do I customize saved views?"},{label:"Configure item default types",prompt:"How can I configure the default item types for my workspace?"},{label:"Manage cross-team commitments",prompt:"How to create a customized column in TaskFlow using Buganizer fields?"}]}],
onboardingExamplesPerPageMap:new Map([["homepage",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"What is a workspace?",prompt:"What is a workspace and when should I use one?"},{label:"What is a portfolio?",prompt:"What is a portfolio and when should I use one?"},{label:"Set up workspaces",prompt:"How do I set up a workspace for my team?"}]}]],["inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Remove items from the inbox",prompt:"How do I remove an item from the inbox?"},
{label:"Inbox best practices",prompt:"What are the best practices for triaging items in inbox?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I use them?"},{label:"Customize your views",prompt:"How do I create saved views?"}]}]],["iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"View burndown chart",prompt:"Where can I find burndown chart?"},{label:"Iteration best practices",prompt:"What are the best practices for using iterations?"},
{label:"Recurring iteration",prompt:"How to set up recurring iterations?"},{label:"Effort estimates",prompt:"How do I set up effort estimates for my team?"},{label:"Capacity planning",prompt:"How can I do capacity planning for my team?"}]}]],["goal",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"TaskFlow and OKRs",prompt:"What are the best practices of linking goals to OKRs?"},{label:"Goals best practices",prompt:"What are the best practices for organizing goals?"}]}]],
["tag",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Tags best practices",prompt:"What are the best practices for tags?"}]}]],["saved_query",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Create a saved search",prompt:"How do I create a saved search?"},{label:"TaskFlow query reference",prompt:"Show me the TaskFlow query reference."}]}]],["portofolio_inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Setup automatic triage",
prompt:"How does the inbox auto-scheduler work for portfolios?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I set them up?"},{label:"Remove items from inbox",prompt:"How do I remove items from my portfolio inbox?"}]}]],["portfolio_iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Recurring iterations",prompt:"How do I set up recurring iterations for my portfolio?"}]}]]]),modelIdOverride:"taskflow_assistant"}],["webviz",{clientName:"Webviz",
clientLogoUrl:"https://webviz.corp.google.com/static/webviz_logo.svg",onboardingDescription:"Customized version of Duckie grounded in Waymo, Webviz, and your current Webviz session.",onboardingExamples:[{title:"Getting Started",examples:[{label:"What is Webviz?",prompt:"Can you tell me more about Webviz and its main uses?"},{label:"How do I load a run segment?",prompt:"How do I load a specific run segment, for example run 20210801_220454_C01335 between 100s and 120s?"},{label:"How do I find a plugin?",
prompt:"How do I find and enable the Perception plugin?"},{label:"How do I share my session?",prompt:"How do I share my current Webviz view with someone else?"},{label:"How do I debug a hard brake?",prompt:"I see a hard brake event in the timeline, how can I investigate the cause?"}]}],onboardingExamplesPerPageMap:new Map}],["xmanager",{clientName:"XManager",clientLogoUrl:"https://xmanager.corp.google.com/static/images/logo.svg",onboardingDescription:"Ask me questions about your XManager experiments, debugging, resources, and more! File a bug at go/xm-duckie-bugs if you encounter any issues.",
onboardingExamples:[{title:"Get help with XManager",examples:[{label:"What can you do?",prompt:"What can you help me with regarding XManager?"},{label:"Debug failed experiment",prompt:"My experiment failed. Can you help me find out why?"},{label:"Check resources",prompt:"Do we have any VF accelerators available in the [Allotment Name] alloc?"},{label:"Find similar issues",prompt:"Are there any known issues in Buganizer about [Error Message Snippet]?"},{label:"Compare experiments",prompt:"What are the configuration differences between experiment [ID 1] and [ID 2]?"}]}]}]]);var sNa;var BK=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Ui;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};BK.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};BK.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
BK.prototype.getRoot=function(){var a;return(a=tNa(this.elementRef.nativeElement))!=null?a:document};BK.\u0275fac=function(a){return new (a||BK)(Ye(Jd))};BK.\u0275dir=df({type:BK,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var CK=function(){};CK.\u0275fac=function(a){return new (a||CK)};CK.\u0275mod=cf({type:CK});CK.\u0275inj=Hc({});var J8c=Symbol("Sc"),K8c=Symbol("Tc"),DK=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Ui;this[J8c]=new wf(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new Nj(!1);this.closeHovercard$=new sf};DK.prototype.ngOnInit=function(){};var L8c=function(a){var b=a[K8c];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[J8c].pipe(of(0))):ee(void 0)};DK.\u0275fac=function(a){return new (a||DK)(Ye(fg))};
DK.\u0275cmp=D({type:DK,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&hg(eg,7);if(a&2){var c;lg(c=mg())&&(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&&(cg(),E(0,uNa,2,3,"ng-template"))},dependencies:[Qy,BK],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 EK=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[K8c]=this};EK.\u0275fac=function(a){return new (a||EK)(Ye(eg),Ye(fg),Ye(ux),Ye(DK))};EK.\u0275dir=df({type:EK,selectors:[["","onedevHovercardLazyBody",""]],standalone:!1});var FK=function(a){this.hovercard=a;this.destroyed$=new wf(1)};FK.prototype.ngOnDestroy=function(){this.destroyed$.next()};FK.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(Bf(this.destroyed$)).subscribe(this.hovercard[J8c])};
FK.\u0275fac=function(a){return new (a||FK)(Ye(DK))};FK.\u0275dir=df({type:FK,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:[0,"onedevIsHovercardReady","isHovercardReady$"]},standalone:!1});var GK=function(){this.onAction=new Ui;this.disabled=!1};GK.prototype.handleClick=function(){this.onAction.emit()};GK.\u0275fac=function(a){return new (a||GK)};
GK.\u0275cmp=D({type:GK,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&&(cg(),K(0,"button",0),N("click",function(){return b.handleClick()}),dg(1),L());a&2&&I("disabled",b.disabled)},dependencies:[zI],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 M8c={originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},N8c={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},O8c={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},P8c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},M8c,O8c,{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 HK=function(){this.showDelay=600;this.hideDelay=400;this.position=P8c;this.triggerKey=[]},IK=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new HK;this.active=!1;this.hovercardShown$=new wf(1);this.hide$=new sf;this.hovercard$=new Nj(null);this.isHovered$=new Nj(!1);this.isKeyboardActivated$=new Nj(!1);this.destroyed$=new wf(1);this.onDocumentKeyDown=function(e){e.key==="Escape"&&(Q8c(c),e.stopPropagation(),e.preventDefault())};R8c(this);
this.handleClose();var d;(d=this.waitFor$)==null||d.pipe(Bf(this.destroyed$)).subscribe()},R8c=function(a){S8c(a).pipe(Bf(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};IK.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(Af(function(b){return(b==null?void 0:b.closeHovercard$)||jx}),Bf(this.destroyed$)).subscribe(function(){Q8c(a)})};IK.prototype.dispose=function(){T8c(this);var a;(a=this.overlayRef)==null||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
IK.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};IK.prototype.toggle=function(a){this.isHovered$.next(a)};var Q8c=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;(b=a.hovercard$.getValue())==null||b.isOnHover$.next(!1)};
IK.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,L8c(this.hovercard$.getValue()).pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};IK.prototype.hide=function(){T8c(this);this.hide$.next()};
var T8c=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()}};IK.prototype.getPositionStrategy=function(){return zz(Az(Bz(Fz(this.overlay.position(),this.origin)),8),this.config.position)};
var S8c=function(a){return le([U8c(a).pipe(zf(!1)),a.isKeyboardActivated$]).pipe(yf(1),A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}),Af(function(b){var c;return((c=a.waitFor$)==null?void 0:c.pipe(mf(b)))||ee(b)}))},U8c=function(a){return a.hovercard$.pipe(Af(function(b){return le([a.isHovered$,(b==null?void 0:b.isOnHover$)||ee(!1)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),ela(function(c){return c?te(a.config.showDelay):te(a.config.hideDelay)}),
Bf(a.destroyed$))}))};var V8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/usage";a.addNewCounter(this.metricName,dm("name"),dm("source"),{fieldType:1,fieldName:"state"})};V8c.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};V8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var W8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/performance";a.addNewEventMetric(this.metricName,dm("source"),dm("name"))};W8c.prototype.record=function(a,b,c){this.streamzService.record(this.metricName,a,b,c)};W8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var X8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/request_count";a.addNewCounter(this.metricName,dm("source"),dm("method_id"))};X8c.prototype.increment=function(a,b){this.streamzService.incrementCounter(this.metricName,a,b)};X8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Y8c=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/error_count";a.addNewCounter(this.metricName,dm("source"),dm("method_id"),{fieldType:2,fieldName:"code"})};Y8c.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};Y8c.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var Z8c={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 b9c=function(a){a=$8c(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,g=0,k=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};f>=12;f-=12,g+=12)b+=a9c(a,g),c+=a9c(a,g+4),d+=a9c(a,g+8),k();d+=e;switch(f){case 11:d+=a[g+10]<<24;case 10:d+=a[g+9]<<16;case 9:d+=a[g+8]<<8;case 8:c+=a[g+7]<<24;case 7:c+=a[g+6]<<16;case 6:c+=a[g+5]<<8;case 5:c+=a[g+4];
case 4:b+=a[g+3]<<24;case 3:b+=a[g+2]<<16;case 2:b+=a[g+1]<<8;case 1:b+=a[g]}k();return Z8c.toString(d)},c9c=function(a){return a},$8c=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},a9c=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var d9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d9c,W);d9c.prototype.getValueCase=function(){return xo(this,e9c)};var e9c=[1,2,3];var f9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f9c,W);f9c.prototype.getValueCase=function(){return xo(this,g9c)};var g9c=[1,2,3];var h9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(h9c,W);var i9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i9c,W);i9c.prototype.getFieldName=function(){return Nw(this,3)};i9c.prototype.setFieldName=function(a){return Vw(this,3,a)};var j9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(j9c,W);var JK=function(a,b,c,d,e,f,g){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;BB.call(this);this.logSource=a;this.componentId=b;f?c=f:(a=(new ZC(a,"0")).setComponentId(b),ut(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&a.setBuildLabel(e),g&&(a.network=g),c=a.build());this.transport=c};Y(JK,BB);JK.prototype.getLogSource=function(){return this.logSource};JK.prototype.getComponentId=function(){return this.componentId};
JK.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new j9c,c=[],d=0;d<a.length;d++){var e=a[d],f=new i9c;f=pj(f,1,e.metricName);var g=k9c(e);f=Hm(f,3,g);g=[];var k=[];for(var l=m(e.cellMap.keys()),r=l.next();!r.done;r=l.next())k.push(r.value.split(","));for(l=0;l<k.length;l++){r=k[l];var w=e.cellType;for(var x=e.getCells(r)||[],C=[],H=0;H<x.length;H++){var J=x[H],O=J&&J.cellValue;J=new f9c;switch(w){case 3:O=Number(O);Number.isFinite(O)&&So(J,1,g9c,Ib(O,0));break;case 2:JWa(J,2,g9c,Number(O))}C.push(J)}w=
C;for(x=0;x<w.length;x++){C=w[x];H=new h9c;C=Ni(H,f9c,2,C);H=r;J=[];O=l9c(e);for(var R=0;R<O.length;R++){var V=O[R],ca=H[R],oa=new d9c;switch(V){case 3:Co(oa,1,e9c,String(ca));break;case 2:V=Number(ca);Number.isFinite(V)&&So(oa,2,e9c,V==null?V:Eb(V));break;case 1:V=ca==="true",So(oa,3,e9c,V==null?V:yb(V))}J.push(oa)}Oi(C,1,J);g.push(C)}}Oi(f,4,g);c.push(f);e.clear()}Oi(b,1,c);this.transport.dispatch(b);this.transport.flush()}};var m9c=function(a){this.cellValue=a};var n9c=function(a,b,c){this.metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},l9c=function(a){return a.fields.map(function(b){return b.fieldType})},k9c=function(a){return a.fields.map(function(b){return b.fieldName})};h=n9c.prototype;h.addCell=function(a){var b=bd.apply(1,arguments),c=this.getCells(b);c?c.push(new m9c(a)):this.setCell(a,b)};h.setCell=function(a){var b=this.getKey(bd.apply(1,arguments));this.cellMap.set(b,[new m9c(a)])};
h.getCells=function(){var a=this.getKey(bd.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};h.getCell=function(){var a=this.getCells(bd.apply(0,arguments));return a&&a.length?a[0]:void 0};h.clear=function(){this.cellMap.clear()};h.getKey=function(){var a=bd.apply(0,arguments);return a?a.join(","):"key"};var o9c=function(a,b){n9c.call(this,a,3,b)};Y(o9c,n9c);o9c.prototype.incrementCounter=function(){this.incrementCounterBy(1,bd.apply(0,arguments))};o9c.prototype.incrementCounterBy=function(a){var b=bd.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.setCell(c+a,b)};var p9c=function(a,b){n9c.call(this,a,2,b)};Y(p9c,n9c);p9c.prototype.record=function(a){this.addCell(a,bd.apply(1,arguments))};var q9c=function(a){BB.call(this);this.streamzLogger=a;this.invocationCount=0;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.flushTimer=new FC(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);ut(this,this.flushTimer)};Y(q9c,BB);var r9c=function(a){a.maybeStartFlushTimer();a.invocationCount++;a.invocationCount>=100&&a.snapshotAndFlush()};h=q9c.prototype;
h.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(q(a)).filter(function(b){return b.cellMap.size});a.length&&this.streamzLogger.flush(a,!1);s9c(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};h.addNewCounter=function(a){var b=bd.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new o9c(a,b))};h.addNewEventMetric=function(a){var b=bd.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new p9c(a,b))};
h.getMetric=function(a){return this.disabledMetrics.has(a)?void 0:this.metricMap.get(a)};h.incrementCounter=function(a){this.incrementCounterBy(a,1,bd.apply(1,arguments))};h.incrementCounterBy=function(a,b){var c=bd.apply(2,arguments),d=this.getMetric(a);d&&d instanceof o9c&&(d.incrementCounterBy(b,c),r9c(this))};h.record=function(a,b){var c=bd.apply(2,arguments),d=this.getMetric(a);d&&d instanceof p9c&&(d.record(b,c),r9c(this))};h.maybeStartFlushTimer=function(){this.flushTimer.enabled||this.flushTimer.start()};
var s9c=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var t9c=new fd("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(" ")}}),u9c=new fd("STREAMZ_PRODUCT_IDENTIFIER"),v9c=new fd("STREAMZ_ALLOWLIST_IDENTIFIER"),w9c=new fd("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return p(Rg).runOutsideAngular(function(){var a=new JK(1503);a=new q9c(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),KK=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new V8c(this.streamzService);new W8c(this.streamzService);new X8c(this.streamzService);new Y8c(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(c9c);this.allowlistIdentifier=b9c(e!=null?e:this.productIdentifier)},y9c=function(a,b,c){a.zone.runOutsideAngular(function(){x9c(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},x9c=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};KK.\u0275fac=function(a){return new (a||KK)($c(w9c),$c(Rg),$c(t9c),$c(u9c,8),$c(v9c,8))};KK.\u0275prov=Fc({token:KK,factory:KK.\u0275fac,providedIn:"root"});var z9c=new fd("onedevHovercardLoggingOn"),LK=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new HK;this.onHovercardShown=new Ui;this.destroyed$=new wf(1);this.triggerControl=new IK(a,b);this.triggerControl.hovercardShown$.pipe(Ef(d||ee(!1)),Bf(this.destroyed$)).subscribe(function(g){g=m(g);g.next();g=g.next().value;f.onHovercardShown.emit();g&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(KK)),y9c(f.clientStreamzService,"hovercardShown",!0))})};
h=LK.prototype;h.ngOnChanges=function(a){if(a.hovercard){var b;a=(b=a.hovercard)==null?void 0:b.currentValue;this.triggerControl.hovercard$.next(a);if(a){b=this.triggerControl;var c=this.viewContainerRef;b.config=this.config;b.overlayRef=b.overlay.create({positionStrategy:b.getPositionStrategy(),scrollStrategy:b.overlay.scrollStrategies.reposition()});b.templatePortal=new Iz(a.templateRef,c);b.hovercard$.next(a)}}};h.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
h.isExpanded=function(){return this.triggerControl.isExpanded()};h.onKeyDown=function(a){if(this.config.triggerKey.includes(a.key)){var b=this.triggerControl;a.stopPropagation();a.preventDefault();b.isKeyboardActivated$.next(!0)}};h.toggle=function(a){this.triggerControl.toggle(a)};h.hide=function(){this.triggerControl.hide()};da.Object.defineProperties(LK.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
LK.\u0275fac=function(a){return new (a||LK)(Ye(Nz),Ye(Jd),Ye(fg),Ye(z9c,8),Ye(Ae))};
LK.\u0275dir=df({type:LK,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&&Kf("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:[bx]});var MK=function(){};MK.\u0275fac=function(a){return new (a||MK)};MK.\u0275mod=cf({type:MK});MK.\u0275inj=Hc({imports:[Zy,CK,Yx,LI,Qz]});var A9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A9c,W);h=A9c.prototype;h.getText=function(){return vi(this,1)};h.setText=function(a){return pj(this,1,a)};h.hasText=function(){return im(this,1)};h.getType=function(){return xi(this,3)};h.setType=function(a){return Hn(this,3,a)};h.hasType=function(){return jm(this,3)};var B9c=new fd("GM2_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var NK=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};NK.\u0275fac=function(a){return new (a||NK)(Ye(B9c))};
NK.\u0275dir=df({type:NK,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&&wg("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 C9c=new fd("mat-chips-default-options",{providedIn:"root",factory:function(){return{separatorKeyCodes:[13]}}}),D9c=new fd("MatChipAvatar"),E9c=new fd("MatChipTrailingIcon"),F9c=new fd("MatChipEdit"),G9c=new fd("MatChipRemove"),H9c=new fd("MatChip");var OK=function(){this._elementRef=p(Jd);this._parentChip=p(H9c);this._isPrimary=!0;this._disabled=this._isLeading=!1;this.tabIndex=-1;this._allowFocusWhenDisabled=!1;p($h).load(Yz);this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")};OK.prototype._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};OK.prototype.focus=function(){this._elementRef.nativeElement.focus()};
da.Object.defineProperties(OK.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}}});OK.\u0275fac=function(a){return new (a||OK)};
OK.\u0275dir=df({type:OK,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(a,b){a&2&&(Kf("disabled",b._getDisabledAttribute())("aria-disabled",b.disabled),wg("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--secondary",!b._isPrimary)("mdc-evolution-chip__action--trailing",!b._isPrimary&&!b._isLeading))},inputs:{disabled:[2,"disabled","disabled",
$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?-1:ah(a)}],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}});var PK=function(){OK.apply(this,arguments)};Y(PK,OK);PK.prototype._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()};PK.prototype._handleClick=function(a){!this.disabled&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
PK.prototype._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||this.disabled||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};PK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(PK)))(b||PK)}}();
PK.\u0275dir=df({type:PK,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(c){return b._handleClick(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Kf("tabindex",b._getTabindex()),wg("mdc-evolution-chip__action--presentational",!1))},features:[Gf]});var I9c=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],QK=function(){this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._tagName=p(Zyc);this._ngZone=p(Rg);this._focusMonitor=p(Hy);this._globalRippleOptions=p($z,{optional:!0});this._document=p(Sh);this._onFocus=new sf;this._onBlur=new sf;this.role=null;this._hasFocusInternal=!1;this._animationsDisabled=ni();this.id=p(bi).getId("mat-mdc-chip-");this.ariaDescription=
this.ariaLabel=null;this._hadFocusOnRemove=this._chipListDisabled=!1;this.removable=!0;this._disabled=this.disableRipple=this.highlighted=!1;this.removed=new Ui;this.destroyed=new Ui;this.basicChipAttrName="mat-basic-chip";this._rippleLoader=p(gA);this._injector=p(Ae);var a=p($h);a.load(Yz);a.load(Ly);this._monitorFocus();var b;(b=this._rippleLoader)==null||gEc(b,this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})};h=QK.prototype;h._hasFocus=function(){return this._hasFocusInternal};
h.ngOnInit=function(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName};h.ngAfterViewInit=function(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label");this._pendingFocus&&(this._pendingFocus=!1,this.focus())};h.ngAfterContentInit=function(){var a=this;this._actionChanges=ve(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
h.ngDoCheck=function(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);var a;(a=this._rippleLoader)==null||fEc(a,this._elementRef.nativeElement);var b;(b=this._actionChanges)==null||b.unsubscribe();this.destroyed.emit({chip:this});this.destroyed.complete()};h.remove=function(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))};
h._isRippleDisabled=function(){var a;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!((a=this._globalRippleOptions)==null||!a.disabled)};h._hasTrailingIcon=function(){return!(!this.trailingIcon&&!this.removeIcon)};h._handleKeydown=function(a){if(a.keyCode===8&&!a.repeat||a.keyCode===46)a.preventDefault(),this.remove()};h.focus=function(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)};
h._getSourceAction=function(a){return this._getActions().find(function(b){b=b._elementRef.nativeElement;return b===a||b.contains(a)})};h._getActions=function(){var a=[];this.editIcon&&a.push(this.editIcon);this.primaryAction&&a.push(this.primaryAction);this.removeIcon&&a.push(this.removeIcon);return a};h._handlePrimaryActionInteraction=function(){};h._hasInteractiveActions=function(){return this._getActions().length>0};h._edit=function(){};
h._monitorFocus=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=b!==null;b!==a._hasFocusInternal&&((a._hasFocusInternal=b)?a._onFocus.next({chip:a}):(a._changeDetectorRef.markForCheck(),setTimeout(function(){return a._ngZone.run(function(){return a._onBlur.next({chip:a})})})))})};
da.Object.defineProperties(QK.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}}});QK.\u0275fac=function(a){return new (a||QK)};
QK.\u0275cmp=D({type:QK,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(ig(c,D9c,5),ig(c,F9c,5),ig(c,E9c,5),ig(c,G9c,5),ig(c,D9c,5),ig(c,E9c,5),ig(c,F9c,5),ig(c,G9c,5));if(a&2){var d;lg(d=mg())&&(b.leadingIcon=d.first);lg(d=mg())&&(b.editIcon=d.first);lg(d=mg())&&(b.trailingIcon=d.first);lg(d=mg())&&(b.removeIcon=d.first);lg(d=mg())&&(b._allLeadingIcons=d);lg(d=mg())&&(b._allTrailingIcons=d);lg(d=mg())&&(b._allEditIcons=
d);lg(d=mg())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&hg(PK,5);if(a&2){var c;lg(c=mg())&&(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&&(Qf("id",b.id),Kf("role",b.role)("aria-label",b.ariaLabel),xg("mat-"+(b.color||"primary")),wg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",
b.leadingIcon)("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",b.highlighted)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-basic-chip",b._isBasicChip)("mat-mdc-standard-chip",!b._isBasicChip)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon())("_mat-animation-noopable",b._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,
"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",$g],highlighted:[2,"highlighted","highlighted",$g],disableRipple:[2,"disableRipple","disableRipple",$g],disabled:[2,"disabled","disabled",$g]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Gg([{provide:H9c,useExisting:QK}])],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:2,
consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(a,b){a&1&&(cg(I9c),M(0,"span",0),K(1,"span",1)(2,"span",2),F(3,vNa,2,0,"span",3),K(4,"span",4),dg(5),
M(6,"span",5),L()()(),F(7,wNa,2,0,"span",6));a&2&&(B(3),G(b.leadingIcon?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[OK],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}\n'],
encapsulation:2,changeDetection:0});var RK=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(ux);this._dir=p(ci,{optional:!0});this._lastDestroyedFocusedChipIndex=null;this._destroyed=new sf;this._defaultRole="presentation";this._disabled=!1;this.tabIndex=0;this._explicitRole=null;this._chipActions=new gg};h=RK.prototype;h.ngAfterViewInit=function(){this._setUpFocusManagement();this._trackChipSetChanges();this._trackDestroyedFocusedChip()};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._chipActions.destroy();this._destroyed.next();this._destroyed.complete()};h._hasFocusedChip=function(){return this._chips&&this._chips.some(function(a){return a._hasFocus()})};h._syncChipsState=function(){var a=this,b;(b=this._chips)==null||b.forEach(function(c){c._chipListDisabled=a._disabled;c._changeDetectorRef.markForCheck()})};h.focus=function(){};h._handleKeydown=function(a){if(this._originatesFromChip(a))this._keyManager.onKeydown(a)};
h._isValidIndex=function(a){return a>=0&&a<this._chips.length};h._allowFocusEscape=function(){var a=this,b=this._elementRef.nativeElement.tabIndex;b!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(function(){return a._elementRef.nativeElement.tabIndex=b}))};h._getChipStream=function(a){var b=this;return this._chips.changes.pipe(zf(null),Af(function(){return ve.apply(null,q(b._chips.map(a)))}))};
h._originatesFromChip=function(a){for(a=a.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-mdc-chip"))return!0;a=a.parentElement}return!1};
h._setUpFocusManagement=function(){var a=this;this._chips.changes.pipe(zf(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);kg(a._chipActions)});this._keyManager=jz(iz(hz(new mz(this._chipActions)),this._dir?this._dir.value:"ltr")).skipPredicate(function(c){return a._skipPredicate(c)});this.chipFocusChanges.pipe(Bf(this._destroyed)).subscribe(function(c){(c=c.chip._getSourceAction(document.activeElement))&&
kz(a._keyManager,c)});var b;(b=this._dir)==null||b.change.pipe(Bf(this._destroyed)).subscribe(function(c){return iz(a._keyManager,c)})};h._skipPredicate=function(a){return a.disabled};h._trackChipSetChanges=function(){var a=this;this._chips.changes.pipe(zf(null),Bf(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){return a._syncChipsState()});a._redirectDestroyedChipFocus()})};
h._trackDestroyedFocusedChip=function(){var a=this;this.chipDestroyedChanges.pipe(Bf(this._destroyed)).subscribe(function(b){var c=a._chips.toArray().indexOf(b.chip),d=b.chip._hasFocus();b=b.chip._hadFocusOnRemove&&a._keyManager.activeItem&&b.chip._getActions().includes(a._keyManager.activeItem);d=d||b;a._isValidIndex(c)&&d&&(a._lastDestroyedFocusedChipIndex=c)})};
h._redirectDestroyedChipFocus=function(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){var a=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1);a=this._chips.toArray()[a];a.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():a.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}};
da.Object.defineProperties(RK.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()}}});RK.\u0275fac=function(a){return new (a||RK)};
RK.\u0275cmp=D({type:RK,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&ig(c,QK,5);if(a&2){var d;lg(d=mg())&&(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&&Kf("role",b.role)},inputs:{disabled:[2,"disabled","disabled",$g],role:"role",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role",
"presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(cg(),Rf(0,"div",0),dg(1),Sf())},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 SK=function(){};SK.\u0275fac=function(a){return new (a||SK)};SK.\u0275dir=df({type:SK,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Gg([{provide:D9c,useExisting:SK}])]});var TK=function(){OK.apply(this,arguments);this._isPrimary=!1};Y(TK,OK);TK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TK)))(b||TK)}}();
TK.\u0275dir=df({type:TK,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:[Gg([{provide:E9c,useExisting:TK}]),Gf]});var J9c=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],UK=function(){QK.apply(this,arguments);this._defaultOptions=p(C9c,{optional:!0});this.chipListSelectable=!0;this._chipListMultiple=!1;var a,b;this._chipListHideSingleSelectionIndicator=(b=(a=this._defaultOptions)==null?void 0:a.hideSingleSelectionIndicator)!=null?b:!1;this._selectable=!0;this._selected=!1;this.basicChipAttrName="mat-basic-chip-option";this.selectionChange=
new Ui};Y(UK,QK);h=UK.prototype;h.ngOnInit=function(){QK.prototype.ngOnInit.call(this);this.role="presentation"};h.select=function(){this._setSelectedState(!0,!1,!0)};h.deselect=function(){this._setSelectedState(!1,!1,!0)};h._handlePrimaryActionInteraction=function(){this.disabled||(this.focus(),this.selectable&&this._setSelectedState(!this.selected,!0,!0))};h._hasLeadingGraphic=function(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple};
h._setSelectedState=function(a,b,c){a!==this.selected&&(this._selected=a,c&&this.selectionChange.emit({source:this,isUserInput:b,selected:this.selected}),this._changeDetectorRef.markForCheck())};
da.Object.defineProperties(UK.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}}});
UK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(UK)))(b||UK)}}();
UK.\u0275cmp=D({type:UK,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&&(Qf("id",b.id),Kf("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),wg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--filter",!b._isBasicChip)("mdc-evolution-chip--selectable",!b._isBasicChip)("mat-mdc-chip-selected",b.selected)("mat-mdc-chip-multiple",
b._chipListMultiple)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-chip-with-avatar",b.leadingIcon)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--selected",b.selected)("mdc-evolution-chip--selecting",!b._animationsDisabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-primary-graphic",b._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",
b.highlighted)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",$g],selected:[2,"selected","selected",$g]},outputs:{selectionChange:"selectionChange"},features:[Gg([{provide:QK,useExisting:UK},{provide:H9c,useExisting:UK}]),Gf],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&&(cg(J9c),M(0,"span",0),K(1,"span",1)(2,"button",2),F(3,xNa,5,0,"span",3),K(4,"span",4),dg(5),M(6,"span",5),L()()(),F(7,yNa,2,0,"span",6));a&2&&(B(2),I("_allowFocusWhenDisabled",!0),Kf("aria-description",b.ariaDescription)("aria-label",b.ariaLabel)("aria-selected",b.ariaSelected),B(),G(b._hasLeadingGraphic()?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[PK],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}\n'],
encapsulation:2,changeDetection:0});var K9c=function(a,b){this.source=a;this.value=b},L9c={provide:VD,useExisting:Yc(function(){return VK}),multi:!0},VK=function(){RK.apply(this,arguments);this._onTouched=function(){};this._onChange=function(){};this._defaultRole="listbox";this._defaultOptions=p(C9c,{optional:!0});this._multiple=!1;this.ariaOrientation="horizontal";this._selectable=!0;this.compareWith=function(c,d){return c===d};this.required=!1;var a,b;this._hideSingleSelectionIndicator=(b=(a=this._defaultOptions)==null?void 0:a.hideSingleSelectionIndicator)!=
null?b:!1;this.change=new Ui;this._chips=void 0};Y(VK,RK);h=VK.prototype;
h.ngAfterContentInit=function(){var a=this;this._chips.changes.pipe(zf(null),Bf(this._destroyed)).subscribe(function(){a.value!==void 0&&Promise.resolve().then(function(){a._setSelectionByValue(a.value,!1)});a._syncListboxProperties()});this.chipBlurChanges.pipe(Bf(this._destroyed)).subscribe(function(){return a._blur()});this.chipSelectionChanges.pipe(Bf(this._destroyed)).subscribe(function(b){a.multiple||a._chips.forEach(function(c){c!==b.source&&c._setSelectedState(!1,!1,!1)});b.isUserInput&&a._propagateChanges()})};
h.focus=function(){if(!this.disabled){var a=this._getFirstSelectedChip();a&&!a.disabled?a.focus():this._chips.length>0?this._keyManager._setActiveItemByIndex(0,1):this._elementRef.nativeElement.focus()}};h.writeValue=function(a){a!=null?this.value=a:this.value=void 0};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};
h._setSelectionByValue=function(a,b){var c=this;b=b===void 0?!0:b;this._clearSelection();Array.isArray(a)?a.forEach(function(d){return c._selectValue(d,b)}):this._selectValue(a,b)};h._blur=function(){var a=this;this.disabled||setTimeout(function(){a.focused||a._markAsTouched()})};h._keydown=function(a){a.keyCode===9&&RK.prototype._allowFocusEscape.call(this)};h._markAsTouched=function(){this._onTouched();this._changeDetectorRef.markForCheck()};
h._propagateChanges=function(){var a=null;Array.isArray(this.selected)?a=this.selected.map(function(b){return b.value}):a=this.selected?this.selected.value:void 0;this._value=a;this.change.emit(new K9c(this,a));this._onChange(a);this._changeDetectorRef.markForCheck()};h._clearSelection=function(a){this._chips.forEach(function(b){b!==a&&b.deselect()})};
h._selectValue=function(a,b){var c=this,d=this._chips.find(function(e){return e.value!=null&&c.compareWith(e.value,a)});d&&(b?d._setSelectedState(!0,!0,!0):d.select());return d};h._syncListboxProperties=function(){var a=this;this._chips&&Promise.resolve().then(function(){a._chips.forEach(function(b){b._chipListMultiple=a.multiple;b.chipListSelectable=a._selectable;b._chipListHideSingleSelectionIndicator=a.hideSingleSelectionIndicator;b._changeDetectorRef.markForCheck()})})};
h._getFirstSelectedChip=function(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected};h._skipPredicate=function(){return!1};
da.Object.defineProperties(VK.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}}});VK.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VK)))(b||VK)}}();
VK.\u0275cmp=D({type:VK,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&ig(c,UK,5);if(a&2){var d;lg(d=mg())&&(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&&(Qf("tabIndex",b.disabled||b.empty?-1:b.tabIndex),Kf("role",b.role)("aria-required",b.role?b.required:null)("aria-disabled",
b.disabled.toString())("aria-multiselectable",b.multiple)("aria-orientation",b.ariaOrientation),wg("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{multiple:[2,"multiple","multiple",$g],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",$g],compareWith:"compareWith",required:[2,"required","required",$g],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$g],value:"value"},
outputs:{change:"change"},features:[Gg([L9c]),Gf],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(cg(),Rf(0,"div",0),dg(1),Sf())},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 WK=function(){};WK.\u0275fac=function(a){return new (a||WK)};WK.\u0275mod=cf({type:WK});WK.\u0275inj=Hc({providers:[Wz,{provide:C9c,useValue:{separatorKeyCodes:[13]}}],imports:[dA,Ey]});var YK=function(){};YK.\u0275fac=function(a){return new (a||YK)};YK.\u0275mod=cf({type:YK});YK.\u0275inj=Hc({imports:[WK]});var ZK=function(){};ZK.\u0275fac=function(a){return new (a||ZK)};ZK.\u0275prov=Fc({token:ZK,factory:ZK.\u0275fac,providedIn:"root"});var FNa=function(a){return{configuration:a}},MNa=function(a,b){return b.agentId},M9c=new fd("OnboardingTemplate"),$K=function(a,b,c,d){var e=this;this.userStateService=a;this.conversationAgentsService=b;this.overridesService=c;this.threadService=d;this.experimentsService=p(lA);this.communicationService=p(cC);p(ZK);this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.dynamicDuckieMModelId=vw.modelId;this.duckieBigBird=tw.agentId;this.duckieBanners=Qyc().map(function(f){f=
Jyc(f);return dta(A9c,"["+f.substring(4))});this.agentSelectorEnabled=!1;this.sVsMGooseModelEnabled=this.experimentsService.sVsMGooseModelEnabled;this.exampleQuery="";this.duckieBigBirdStrikeEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.clientConfiguration=Zg.apply(null,[function(){var f=rNa(e.configurationKey()||""),g=e.pageId()||"";f&&e.communicationService.setParentIntegrator(!0);var k,l;if((k=f)==null?0:(l=k.onboardingExamplesPerPageMap)==null?0:l.has(g))f=Object.assign({},f,
{onboardingExamples:f.onboardingExamplesPerPageMap.get(g)});return f}].concat(q([])));this.showOnboardingExamples=Zg.apply(null,[function(){var f;return((f=e.clientConfiguration())==null?void 0:f.onboardingExamples)!==void 0||!e.experimentsService.sVsMGooseModelEnabled&&!e.experimentsService.experimentalDuckieAgentEnabled}].concat(q([])));this.routingService=p(xA);this.userStateLoaded$=this.userStateService.userStateLoaded$;this.showIncognitoBanner$=this.userStateService.isEnforcedPrivateMode$;this.showGeneralAnnouncementBanner$=
new Nj(!1);this.agentSelectorEnabled=this.conversationAgentsService.duckieConversationAgentEnabled;this.availableConversationAgents$=this.conversationAgentsService.availableConversationAgents$;this.currentConversationAgent$=this.conversationAgentsService.currentConversationAgent$};$K.prototype.ngOnInit=function(){var a=this;return y(function(b){if(b.nextAddress==1)return N9c(a),z(b,O9c(a),2);P9c(a);return z(b,Q9c(a),0)})};
var N9c=function(a){a.routingService.queryParams.pipe(nf(1)).subscribe(function(b){var c=b.agenticSearch;b=b.bigBird;b=b!==void 0&&b!=="false";var d=[];c!==void 0&&c!=="false"&&d.push(uw.agentDisplayName);b&&d.push(tw.agentDisplayName);d.length>0&&ONa(a,{value:d})})},O9c=function(a){var b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,PIc(a.userStateService),2);c=(b=g.yieldResult)!=null?b:[];a.duckieBigBirdStrikeEnabled&&((d=c)==null?0:d.includes(1))&&(c=c.filter(function(k){return k!==
1}));e=c.includes(1);f=c.includes(2);e&&f?a.conversationAgentsService.currentConversationAgentInternal.next(vw):c.length===1&&e?a.conversationAgentsService.currentConversationAgentInternal.next(tw):c.length===1&&f&&a.conversationAgentsService.currentConversationAgentInternal.next(uw);ce(g)})},ONa=function(a,b){b=Array.isArray(b.value)&&b.value.length!==0?b.value.length===1?b.value[0]===uw.agentDisplayName?uw:tw:vw:Qwc;var c=a.getDuckieModelPreferences(b);a.conversationAgentsService.currentConversationAgentInternal.next(b);
QIc(a.userStateService,c)};$K.prototype.getDuckieModelPreferences=function(a){switch(a){case uw:return[2];case tw:return[1];case vw:return[1,2];default:return[0]}};
var P9c=function(a){a.routingService.queryParams.pipe(nf(1)).subscribe(function(b){var c=b.conversationAgentId;c&&(b=Twc.find(function(d){return d.agentId===c}))&&a.conversationAgentsService.currentConversationAgentInternal.next(b)})},Q9c=function(a){var b;return y(function(c){return(b=a.routingService.snapshot.queryParams.q)?z(c,a.addMessage(b),0):c.return()})};
$K.prototype.addMessage=function(a){var b=this,c,d,e,f,g;return y(function(k){return k.nextAddress==1?(d=(c=b.routingService.snapshot.queryParams.preamble)!=null?c:void 0,f=(e=b.routingService.snapshot.queryParams.parentUrl)!=null?e:void 0,d&&b.overridesService.addPreamble(d),f&&(b.overridesService.overrideParentUrl=f),g={},z(k,RMa(b.routingService,"",{queryParams:(g.q=null,g.preamble=null,g.parentUrl=null,g),queryParamsHandling:"merge"}),2)):z(k,WOc(b.threadService,a),0)})};
$K.prototype.setExampleQuery=function(a){this.exampleQuery=a};$K.\u0275fac=function(a){return new (a||$K)(Ye(gC),Ye(dC),Ye(wA),Ye(zD))};
$K.\u0275cmp=D({type:$K,selectors:[["onboarding"]],hostAttrs:[1,"flex-column","full-height"],inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:16,vars:11,consts:[["customOnboarding",""],["customOnboardingClientLogo",""],["dynamicRagHovercard",""],["mppHovercard",""],[1,"onboarding-section"],[3,"bannerType","bannerText","dismissalType"],[1,"margin-s-top",3,"submitMessage","inputText"],[1,"onboarding-header","margin-y","gmat-headline-1"],[3,"exampleQuery","clientConfiguration"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"agent-selector","flex-column","align-items-center"],["id","agent-selector-description",1,"agent-selector-description"],[1,"agent-chips-wrapper","flex-row","align-items-center"],["multiple","","aria-labelledby","agent-selector-description",1,"agent-selector-chips",3,"change"],[1,"onedev-hovercard-content","padded-s","rounded-full","font-google-sans","type-xs"],[1,"onedev-hovercard-body"],[1,"type-s","margin-xs-top"],[1,"margin-xs-bottom"],[1,"medium",
"type-xs","margin-s-top","margin-xs-bottom"],[1,"flex-spacer"],["appearance","input",3,"onedevHovercardTrigger","disabled","selected","class"],["appearance","input",3,"onedevHovercardTrigger","disabled","selected"],["matChipAvatar","",1,"agent-selector-chip-icon"],[1,"custom-onboarding","flex-column","align-items-center","gap-xs","margin-bottom","margin-auto-x","justify-content-center","text-center"],[1,"client-name","gmat-headline-5"],[1,"client-description","gmat-body-3","text-secondary"],[1,"client-logo"],
["alt","Client logo","height","44","width","44",3,"src"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4);F(1,zNa,1,0,"incognito-banner-wrapper");T(2,"async");T(3,"async");F(4,ANa,1,0,"general-announcement-wrapper");T(5,"async");Of(6,BNa,1,3,"banner",5,Nf);F(8,DNa,2,1)(9,JNa,5,3);L();F(10,PNa,31,3);K(11,"message-input-wrapper",6);N("submitMessage",function(d){u(c);return v(b.addMessage(d))});L();E(12,TNa,5,3,"ng-template",null,0,Mg)(14,UNa,2,1,"ng-template",null,1,Mg)}a&2&&(B(),G(U(2,5,b.userStateLoaded$)&&
U(3,7,b.showIncognitoBanner$)?1:-1),B(3),G(U(5,9,b.showGeneralAnnouncementBanner$)?4:-1),B(2),Pf(b.duckieBanners),B(2),G(b.showOnboardingExamples()?9:8),B(2),G(b.communicationService.hasParentIntegratorValue||!b.agentSelectorEnabled&&!b.sVsMGooseModelEnabled?-1:10),B(),I("inputText",b.exampleQuery))},dependencies:[Yx,Kx,x8c,wK,YK,NK,SK,VK,UK,pK,MK,DK,LK,yK,Fy,Dy,fF,AK,hF,uK,Lx],styles:[".onboarding-section[_ngcontent-%COMP%]{overflow-y:auto;border-radius:16px}@media (max-width:800px){.onboarding-section[_ngcontent-%COMP%]{padding-top:0}}.custom-onboarding[_ngcontent-%COMP%]{margin-top:8vh;width:80%}.custom-onboarding[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{width:5%}@media (max-width:800px){.gmat-mdc-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){padding:0 16px}.onboarding-header[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*23)}}.onboarding-section[_ngcontent-%COMP%], message-input[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.agent-selector[_ngcontent-%COMP%]{container-type:inline-size;padding-top:48px}.agent-selector[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}.agent-selector[_ngcontent-%COMP%]   .agent-selector-chip-icon[_ngcontent-%COMP%]{color:var(--primary-default)}.agent-selector[_ngcontent-%COMP%]   .agent-selector-description[_ngcontent-%COMP%]{max-width:65cqw;margin:1em 0;font-size:.85em;text-align:center}.agent-selector[_ngcontent-%COMP%]   .agent-selector-description[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;white-space:nowrap}  .onedev-hovercard{background-color:var(--page-bg);border-radius:16px}.client-name[_ngcontent-%COMP%]{margin:0}"],
changeDetection:0});var R9c=["customOnboarding"],aL=function(){this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.onboardingTemplate=p(M9c,{optional:!0});this.customOnboarding=Pg.apply(null,["customOnboarding"].concat(q([{read:fg}])))};
aL.prototype.ngAfterViewInit=function(){this.onboardingTemplate&&this.customOnboarding()&&(this.componentRef=this.customOnboarding().createComponent(this.onboardingTemplate),this.componentRef.instance.configurationKey=this.configurationKey,this.componentRef.instance.pageId=this.pageId)};aL.\u0275fac=function(a){return new (a||aL)};
aL.\u0275cmp=D({type:aL,selectors:[["onboarding-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customOnboarding,R9c,fg);a&2&&pg()},inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:4,vars:1,consts:[["customOnboarding",""],[1,"container","margin-auto-x"],[1,"onboarding","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"configurationKey","pageId"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,VNa,2,0,"ng-container")(3,WNa,1,2,
"onboarding",3),L()());a&2&&(B(2),G(b.onboardingTemplate?2:3))},dependencies:[Yx,$K],styles:[".container[_ngcontent-%COMP%]{max-width:1240px;min-width:300px;height:calc(100% - var(--base-px, 1rem)*16)}@media (max-width:800px){.container[_ngcontent-%COMP%]{height:100%}}.onboarding[_ngcontent-%COMP%]{box-shadow:0 6px 10px 4px var(--elevation),0 2px 3px 0 var(--elevation);-moz-box-sizing:border-box;box-sizing:border-box;height:calc(100% - var(--base-px, 1rem)*16);margin:.75em;padding-bottom:12px;position:relative}@media (max-width:800px){.onboarding[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}}\n/*# sourceMappingURL=onboarding_wrapper.css.map */"],
changeDetection:0});var bL=function(){};bL.\u0275fac=function(a){return new (a||bL)};bL.\u0275mod=cf({type:bL});bL.\u0275inj=Hc({imports:[$K,gF,xK,vK,zK,hF,yK,wK,AK,aL,tK,uK]});var cL=function(){$A.call(this);this.hoverDelayMs=500;this.activity=new sf;this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(cL,$A);h=cL.prototype;h.ngOnInit=function(){$A.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
h.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Yka(function(){return b.activity.pipe(lf(a))}));c.pipe(Bf(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(we(function(d){return d&&b.beforeOpened.observers.length>0}),Ela(function(){return c.pipe(we(function(d){return!d}))}),Bf(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
h.attachMouseEventListeners=function(a){var b=this;this.stackManager&&this.stackManager.unregisterEvent().pipe(lf(this.hoverDelayMs),Bf(this.destroyed)).subscribe(function(){a.matches(":hover")||b.viewContainerRef.element.nativeElement.matches(":hover")?b.openingDialog():b.closingDialog()});this.ngZone.runOutsideAngular(function(){re(a,"mouseenter").pipe(Bf(b.destroyed)).subscribe(function(){b.openingDialog()});re(a,"click").pipe(Bf(b.destroyed)).subscribe(function(c){c.target.closest("[xapInlineDialogClose]")?
b.closingDialog():(b.openingDialog(),b.openDialog())});re(a,"mouseleave").pipe(Bf(b.destroyed)).subscribe(function(){b.closingDialog()});re(a,"mousemove").pipe(Bf(b.destroyed)).subscribe(function(){b.activity.next()})})};h.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){re(a,"keydown").pipe(Bf(b.destroyed)).subscribe(function(c){switch(c.key){case "Escape":var d;((d=b.overlayRef)==null?0:d.hasAttached())&&c.stopPropagation();b.closeDialog()}})})};
h.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};h.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};h.createOverlayConfig=function(a){return new ei(Object.assign({},this.overlayDimensions,{positionStrategy:$A.prototype.createPositionStrategy.call(this,a),scrollStrategy:VFc(this),panelClass:this.panelClassInternal}))};cL.\u0275fac=function(a){return new (a||cL)};
cL.\u0275dir=df({type:cL,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:[0,"xapInlineDialog","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Gf]});var S9c=["*"],T9c=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}"},
dL=function(){this.disabled=!1};dL.\u0275fac=function(a){return new (a||dL)};dL.\u0275cmp=D({type:dL,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:4,hostBindings:function(a,b){a&2&&(Kf("tabindex",b.disabled?-1:0)("aria-disabled",b.disabled?!0:!1),wg("xap-text-trigger",!b.disabled))},inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:S9c,decls:1,vars:0,template:function(a){a&1&&(cg(),dg(0))},styles:[T9c()],encapsulation:2,changeDetection:0});
var eL=function(){this.disabled=!1};eL.\u0275fac=function(a){return new (a||eL)};eL.\u0275cmp=D({type:eL,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:S9c,decls:1,vars:0,template:function(a){a&1&&(cg(),dg(0))},styles:[T9c()],encapsulation:2,changeDetection:0});var U9c=function(){};U9c.\u0275fac=function(a){return new (a||U9c)};
U9c.\u0275cmp=D({type:U9c,selectors:[["private-content-divider-tooltip"]],decls:10,vars:3,consts:[["dividerTooltip",""],[1,"private-content-divider","flex-row","align-items-center","justify-content-center","margin-s-bottom","gap-s"],[1,"divider-line"],["tabindex","0","role","button","aria-label","Private content","dialogLabel","Private content tooltip",1,"flex-row","align-items-center","justify-content-center","padded-xs","gap-s",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"divider-text"],
[1,"private-content-icon","padded-xxs","icon-s","rounded-full"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"]],template:function(a){a&1&&(K(0,"div",1),M(1,"span",2),K(2,"div",3)(3,"span",4),Q(4,"History is off "),L(),K(5,"mat-icon",5),Q(6,"privacy_tip"),L()(),M(7,"span",2),L(),E(8,XNa,2,0,"ng-template",null,0,Mg));a&2&&(a=qg(9),B(2),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[Yx,Fy,Dy,iB,cL],styles:["[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-8px}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .divider-line[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;height:1px;background:var(--tonal-icon-grey)}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .divider-text[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*13)}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .private-content-icon[_ngcontent-%COMP%]{color:var(--tonal-green);background:var(--tonal-fill-green)}"],
changeDetection:0});var V9c=new fd("GM2_CHECKBOX_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var fL=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};fL.\u0275fac=function(a){return new (a||fL)(Ye(V9c))};fL.\u0275dir=df({type:fL,selectors:[["mat-checkbox"]],hostAttrs:[1,"gmat-mdc-checkbox"],standalone:!1});var gL=function(){};gL.\u0275fac=function(a){return new (a||gL)};gL.\u0275mod=cf({type:gL});gL.\u0275inj=Hc({providers:[{provide:$0c,useValue:{color:"primary"}}],imports:[bI]});var hL=function(){this.dialogRef=p(NA);this.userStateService=p(gC);this.threadService=p(zD);this.allowPersonalResults$=this.userStateService.allowPersonalResults$.pipe(we(Td));this.initialAllowPersonalResults=this.userStateService.allowPersonalResults$.getValue();this.userAllowedPersonalResults=this.userStateService.allowPersonalResults$.getValue()};hL.\u0275fac=function(a){return new (a||hL)};
hL.\u0275cmp=D({type:hL,selectors:[["user-privacy-settings-dialog"]],decls:25,vars:3,consts:[[1,"bg-surface-container","gap","padded-xs"],["mat-dialog-title",""],[1,"settings-message-content"],["href","http://go/duckie-access-protected-results","target","_blank"],[1,"flex-row","justify-content-center"],[1,"flex-row","align-items-center","gap",3,"change","checked"],["fontSet","google-symbols"],["align","end"],[1,"flex-row","gap-s"],"mat-button  color primary mat-dialog-close ".split(" "),["mat-button",
"","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h1",1),Q(2,"Settings"),L(),K(3,"mat-dialog-content")(4,"div",2),Q(5," Protected results increase the relevance of Duckie\u2019s answers to your questions. Protected results\u2014except for URLs\u2014 won\u2019t be logged or used for retraining. "),M(6,"br")(7,"br"),Q(8," To opt-out, uncheck the box. "),K(9,"a",3),Q(10," Learn more."),L()(),M(11,"br")(12,"br"),K(13,"div",4)(14,"mat-checkbox",5),T(15,"async"),N("change",function(c){return b.userAllowedPersonalResults=
c.checked}),K(16,"mat-icon",6),Q(17,"shield_person"),L(),Q(18," Use protected results "),L()()(),K(19,"mat-dialog-actions",7)(20,"div",8)(21,"button",9),Q(22,"Cancel"),L(),K(23,"button",10),N("click",function(){b.userAllowedPersonalResults!==b.initialAllowPersonalResults&&(NIc(b.userStateService,b.userAllowedPersonalResults),b.threadService.startNewThread());b.dialogRef.close()}),Q(24,"Done"),L()()()());a&2&&(B(14),I("checked",U(15,1,b.allowPersonalResults$)))},dependencies:[Yx,iB,gB,cB,gL,fL,aI,
MJ,RA,TA,VA,UA,pK,Fy,Dy,Lx],styles:["[_nghost-%COMP%]{font-family:Google Sans,sans-serif;background-color:var(--tonal-fill-blue)}"],changeDetection:0});var W9c={maxWidth:300,disableClose:!0};var iL=function(){this.viewContainerRef=p(fg);this.dialog=p(QA)};iL.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(hL,Object.assign({},W9c,{viewContainerRef:this.viewContainerRef}))};iL.\u0275fac=function(a){return new (a||iL)};
iL.\u0275cmp=D({type:iL,selectors:[["private-content-tooltip"]],decls:5,vars:3,consts:[["privateContentTooltip",""],["tabindex","0","role","button","aria-label","Private content","dialogLabel","Private content tooltip",1,"private-content-indicator","flex-row","align-items-center","justify-content-center","padded-xs","rounded-full",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"private-content-icon","icon-m"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"],[1,
"tooltip-actions","flex-row","gap-s"],["mat-button","","color","primary",3,"click"]],template:function(a){a&1&&(K(0,"div",1)(1,"mat-icon",2),Q(2,"privacy_tip"),L()(),E(3,YNa,6,0,"ng-template",null,0,Mg));a&2&&(a=qg(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[Yx,Fy,Dy,iB,gB,cB,cL],styles:['[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]{max-width:300px}[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]   .tooltip-actions[_ngcontent-%COMP%]{margin-left:-8px}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]{background:var(--tonal-fill-green);margin:0 8px}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;width:48px;height:48px;border-radius:50%}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]   .private-content-icon[_ngcontent-%COMP%]{color:var(--tonal-green)}'],
changeDetection:0});var X9c=new fd("GM2_TABS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1,appearance:"primary"}}});var Y9c=function(a){this._items=a};Y9c.prototype.hide=function(){this._items.forEach(function(a){return Z9c(a)});this._currentItem=void 0};
var a$c=function(a,b){var c=a._items.find(function(g){return g.elementRef.nativeElement===b}),d=a._currentItem;if(c!==d&&(d==null||Z9c(d),c)){var e,f;d=d==null?void 0:(f=(e=d.elementRef.nativeElement).getBoundingClientRect)==null?void 0:f.call(e);$9c(c,d);a._currentItem=c}},jL=function(){this._elementRef=p(Jd);this._fitToContent=!1},$9c=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")},Z9c=function(a){a._elementRef.nativeElement.classList.remove("mdc-tab-indicator--active")};jL.prototype.ngOnInit=function(){this._createInkBarElement()};
jL.prototype.ngOnDestroy=function(){var a;(a=this._inkBarElement)==null||a.remove();this._inkBarElement=this._inkBarContentElement=null};jL.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()};
jL.prototype._appendInkBarElement=function(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)};da.Object.defineProperties(jL.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitToContent},set:function(a){this._fitToContent!==a&&(this._fitToContent=a,this._inkBarElement&&this._appendInkBarElement())}}});jL.\u0275fac=function(a){return new (a||jL)};
jL.\u0275dir=df({type:jL,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$g]}});new fd("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var b$c={passive:!0},kL=function(){var a=this;this._elementRef=p(Jd);this._changeDetectorRef=p(ux);this._viewportRuler=p(Rh);this._dir=p(ci,{optional:!0});this._ngZone=p(Rg);this._platform=p(Wh);this._sharedResizeObserver=p(ID);this._injector=p(Ae);this._renderer=p(di);this._animationsDisabled=ni();this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new sf;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new sf;this.disablePagination=
!1;this._selectedIndex=0;this.selectFocusedIndex=new Ui;this.indexFocused=new Ui;this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[a._renderer.listen(a._elementRef.nativeElement,"mouseleave",function(){return a._stopInterval()})]})};h=kL.prototype;
h.ngAfterViewInit=function(){var a=this;this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("before")},b$c),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("after")},b$c))};
h.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:ee("ltr"),c=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(lf(32),Bf(this._destroyed)),d=this._viewportRuler.change(150).pipe(Bf(this._destroyed)),e=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=gz(jz(iz(new mz(this._items),this._getLayoutDirection()))).skipPredicate(function(){return!1});kz(this._keyManager,Math.max(this._selectedIndex,0));Ge(e,{injector:this._injector});
ve(b,d,c,this._items.changes,this._itemsResized()).pipe(Bf(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||iz(f,a._getLayoutDirection())});this._keyManager.change.subscribe(function(f){a.indexFocused.emit(f);a._setTabFocus(f)})};
h._itemsResized=function(){var a=this;return typeof ResizeObserver!=="function"?ue:this._items.changes.pipe(zf(this._items),Af(function(b){return new Vd(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()}})})}),yf(1),we(function(b){return b.some(function(c){return c.contentRect.width>0&&c.contentRect.height>0})}))};
h.ngAfterContentChecked=function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck());this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck());this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())};
h.ngOnDestroy=function(){this._eventCleanups.forEach(function(b){return b()});var a;(a=this._keyManager)==null||a.destroy();this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};h._handleKeydown=function(a){if(!Gh(a))switch(a.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){var b=this._items.get(this.focusIndex);b&&!b.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(a))}break;default:(b=this._keyManager)==null||b.onKeydown(a)}};
h._onContentChanges=function(){var a=this,b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(function(){a.updatePagination();a._alignInkBarToSelectedTab();a._changeDetectorRef.markForCheck()}))};h.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};h._isValidIndex=function(a){return this._items?!!this._items.toArray()[a]:!0};
h._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft=this._getLayoutDirection()=="ltr"?0:a.scrollWidth-a.offsetWidth)};h._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};
h._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round(this._getLayoutDirection()==="ltr"?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};h._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+(a=="before"?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
h._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
h._scrollToLabel=function(a){if(!this.disablePagination){var b=this._items?this._items.toArray()[a]:null;if(b){a=this._tabListContainer.nativeElement.offsetWidth;var c=b.elementRef.nativeElement;b=c.offsetLeft;var d=c.offsetWidth;this._getLayoutDirection()=="ltr"?c=b+d:(c=this._tabListInner.nativeElement.offsetWidth-b,b=c-d);d=this.scrollDistance;a=this.scrollDistance+a;b<d?this.scrollDistance-=d-b:c>a&&(this.scrollDistance+=Math.min(c-a,b-d))}}};
h._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;a||(this.scrollDistance=0);a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}};
h._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};h._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
h._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?a$c(this._inkBar,a):this._inkBar.hide()};h._stopInterval=function(){this._stopScrolling.next()};
h._handlePaginatorPress=function(a,b){var c=this;b&&b.button!=null&&b.button!==0||(this._stopInterval(),te(650,100).pipe(Bf(ve(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(d===0||d>=e)&&c._stopInterval()}))};
h._scrollTo=function(a){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var b=this._getMaxScrollDistance();this._scrollDistance=Math.max(0,Math.min(b,a));this._scrollDistanceChanged=!0;this._checkScrollingControls();return{maxScrollDistance:b,distance:this._scrollDistance}};
da.Object.defineProperties(kL.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&&kz(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)}}});kL.\u0275fac=function(a){return new (a||kL)};kL.\u0275dir=df({type:kL,inputs:{disablePagination:[2,"disablePagination","disablePagination",$g],selectedIndex:[2,"selectedIndex","selectedIndex",ah]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});var c$c=["content"],mL=function(){Lz.call(this);this._host=p(lL);this._ngZone=p(Rg);this._leavingSub=this._centeringSub=Rd.EMPTY};Y(mL,Lz);
mL.prototype.ngOnInit=function(){var a=this;Lz.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(zf(this._host._isCenterPosition())).subscribe(function(b){a._host._content&&b&&!a.hasAttached()&&a._ngZone.run(function(){Promise.resolve().then();a.attach(a._host._content)})});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a._ngZone.run(function(){return a.detach()})})};
mL.prototype.ngOnDestroy=function(){Lz.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};mL.\u0275fac=function(a){return new (a||mL)};mL.\u0275dir=df({type:mL,selectors:[["","matTabBodyHost",""]],features:[Gf]});
var lL=function(){var a=this;this._elementRef=p(Jd);this._dir=p(ci,{optional:!0});this._ngZone=p(Rg);this._injector=p(Ae);this._renderer=p(di);this._diAnimationsDisabled=ni();this._dirChangeSubscription=Rd.EMPTY;this._onCentering=new Ui;this._beforeCentering=new Ui;this._afterLeavingCenter=new Ui;this._onCentered=new Ui(!0);this.animationDuration="500ms";this.preserveContent=!1;if(this._dir){var b=p(ux);this._dirChangeSubscription=this._dir.change.subscribe(function(c){a._computePositionAnimationState(c);
b.markForCheck()})}};h=lL.prototype;h.ngOnInit=function(){var a=this;this._bindTransitionEvents();this._position==="center"&&(this._setActiveClass(!0),Ge(function(){return a._onCentering.emit(a._elementRef.nativeElement.clientHeight)},{injector:this._injector}));this._initialized=!0};h.ngOnDestroy=function(){clearTimeout(this._fallbackTimer);var a;(a=this._eventCleanups)==null||a.forEach(function(b){return b()});this._dirChangeSubscription.unsubscribe()};
h._bindTransitionEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement,c=function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),d.type==="transitionend"&&a._transitionDone())};a._eventCleanups=[a._renderer.listen(b,"transitionstart",function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.add("mat-tab-body-animating"),
a._transitionStarted())}),a._renderer.listen(b,"transitionend",c),a._renderer.listen(b,"transitioncancel",c)]})};h._transitionStarted=function(){clearTimeout(this._fallbackTimer);var a=this._position==="center";this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};h._transitionDone=function(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()};
h._setActiveClass=function(a){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",a)};h._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};h._isCenterPosition=function(){return this._positionIndex===0};
h._computePositionAnimationState=function(a){var b=this;a=a===void 0?this._getLayoutDirection():a;this._previousPosition=this._position;this._position=this._positionIndex<0?a=="ltr"?"left":"right":this._positionIndex>0?a=="ltr"?"right":"left":"center";this._animationsDisabled()?this._simulateTransitionEvents():!this._initialized||this._position!=="center"&&this._previousPosition!=="center"||(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){return b._simulateTransitionEvents()},
100)}))};h._simulateTransitionEvents=function(){var a=this;this._transitionStarted();Ge(function(){return a._transitionDone()},{injector:this._injector})};h._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"};da.Object.defineProperties(lL.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});lL.\u0275fac=function(a){return new (a||lL)};
lL.\u0275cmp=D({type:lL,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&(hg(mL,5),hg(c$c,5));if(a&2){var c;lg(c=mg())&&(b._portalHost=c.first);lg(c=mg())&&(b._contentElement=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(a,b){a&2&&Kf("inert",b._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",
_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(a,b){a&1&&(K(0,"div",1,0),E(2,ZNa,0,0,"ng-template",2),L());a&2&&wg("mat-tab-body-content-left",b._position==="left")("mat-tab-body-content-right",b._position==="right")("mat-tab-body-content-can-animate",b._position==="center"||b._previousPosition==="center")},dependencies:[mL,qz],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 d$c=new fd("MAT_TABS_CONFIG");var e$c=new fd("MatTabContent"),nL=function(){this.template=p(eg)};nL.\u0275fac=function(a){return new (a||nL)};nL.\u0275dir=df({type:nL,selectors:[["","matTabContent",""]],features:[Gg([{provide:e$c,useExisting:nL}])]});var oL=function(){jL.apply(this,arguments);this.elementRef=p(Jd);this.disabled=!1};Y(oL,jL);oL.prototype.focus=function(){this.elementRef.nativeElement.focus()};oL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(oL)))(b||oL)}}();oL.\u0275dir=df({type:oL,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Kf("aria-disabled",!!b.disabled),wg("mat-mdc-tab-disabled",b.disabled))},inputs:{disabled:[2,"disabled","disabled",$g]},features:[Gf]});var f$c=["tabListContainer"],g$c=["tabList"],h$c=["tabListInner"],i$c=["nextPaginator"],j$c=["previousPaginator"],pL=function(){kL.apply(this,arguments);this.disableRipple=!1};Y(pL,kL);pL.\u0275dir=kL.\u0275dir;pL.prototype.ngAfterContentInit=function(){this._inkBar=new Y9c(this._items);kL.prototype.ngAfterContentInit.call(this)};pL.prototype._itemSelected=function(a){a.preventDefault()};pL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(pL)))(b||pL)}}();
pL.\u0275cmp=D({type:pL,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&ig(c,oL,4);if(a&2){var d;lg(d=mg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(hg(f$c,7),hg(g$c,7),hg(h$c,7),hg(i$c,5),hg(j$c,5));if(a&2){var c;lg(c=mg())&&(b._tabListContainer=c.first);lg(c=mg())&&(b._tabList=c.first);lg(c=mg())&&(b._tabListInner=c.first);lg(c=mg())&&(b._nextPaginator=c.first);lg(c=mg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(a,
b){a&2&&wg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",$g]},features:[Gf],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();cg();K(0,"div",5,0);N("click",function(){u(c);
return v(b._handlePaginatorClick("before"))})("mousedown",function(d){u(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return v(b._stopInterval())});M(2,"div",6);L();K(3,"div",7,1);N("keydown",function(d){u(c);return v(b._handleKeydown(d))});K(5,"div",8,2);N("cdkObserveContent",function(){u(c);return v(b._onContentChanges())});K(7,"div",9,3);dg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);
return v(b._handlePaginatorClick("after"))})("touchend",function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(3),wg("_mat-animation-noopable",b._animationsDisabled),B(2),Kf("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby||null),B(5),wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||
b.disableRipple))},dependencies:[aA,Wy],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 k$c=new fd("MatTabLabel"),l$c=new fd("MAT_TAB"),qL=function(){Kz.apply(this,arguments);this._closestTab=p(l$c,{optional:!0})};Y(qL,Kz);qL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(qL)))(b||qL)}}();qL.\u0275dir=df({type:qL,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Gg([{provide:k$c,useExisting:qL}]),Gf]});var m$c=new fd("MAT_TAB_GROUP"),rL=function(){this._viewContainerRef=p(fg);this._closestTabGroup=p(m$c,{optional:!0});this.disabled=!1;this._explicitContent=void 0;this.textLabel="";this._contentPortal=this.id=null;this._stateChanges=new sf;this.origin=this.position=null;this.isActive=!1;p($h).load(Yz)};rL.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};rL.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
rL.prototype.ngOnInit=function(){this._contentPortal=new Iz(this._explicitContent||this._implicitContent,this._viewContainerRef)};rL.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};da.Object.defineProperties(rL.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}}});
rL.\u0275fac=function(a){return new (a||rL)};
rL.\u0275cmp=D({type:rL,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(ig(c,qL,5),ig(c,nL,7,eg));if(a&2){var d;lg(d=mg())&&(b.templateLabel=d.first);lg(d=mg())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&hg(eg,7);if(a&2){var c;lg(c=mg())&&(b._implicitContent=c.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(a){a&2&&Kf("id",null)},inputs:{disabled:[2,"disabled","disabled",$g],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,
"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Gg([{provide:l$c,useExisting:rL}]),bx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),If(0,$Na,1,0,"ng-template"))},encapsulation:2});var n$c=["tabBodyWrapper"],o$c=["tabHeader"],sL=function(){this._elementRef=p(Jd);this._changeDetectorRef=p(ux);this._ngZone=p(Rg);this._tabBodySubscription=this._tabLabelSubscription=this._tabsSubscription=Rd.EMPTY;this._diAnimationsDisabled=ni();this._tabs=new gg;this._indexToSelect=0;this._lastFocusedTabIndex=null;this._tabBodyWrapperHeight=0;this._fitInkBarToContent=!1;this.stretchTabs=!0;this.alignTabs=null;this.dynamicHeight=!1;this._selectedIndex=null;this.headerPosition="above";this.preserveContent=
this.disableRipple=this.disablePagination=!1;this.selectedIndexChange=new Ui;this.focusChange=new Ui;this.animationDone=new Ui;this.selectedTabChange=new Ui(!0);this._isServer=!p(Wh).isBrowser;var a=p(d$c,{optional:!0});this._groupId=p(bi).getId("mat-tab-group-");this.animationDuration=a&&a.animationDuration?a.animationDuration:"500ms";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.dynamicHeight=a&&a.dynamicHeight!=null?a.dynamicHeight:!1;(a==null?void 0:a.contentTabIndex)!=
null&&(this.contentTabIndex=a.contentTabIndex);this.preserveContent=!(a==null||!a.preserveContent);this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0;this.alignTabs=a&&a.alignTabs!=null?a.alignTabs:null};h=sL.prototype;
h.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=this._selectedIndex==null;if(!c){this.selectedTabChange.emit(this._createChangeEvent(b));var d=this._tabBodyWrapper.nativeElement;d.style.minHeight=d.clientHeight+"px"}Promise.resolve().then(function(){a._tabs.forEach(function(e,f){return e.isActive=f===b});c||(a.selectedIndexChange.emit(b),a._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(e,
f){e.position=f-b;a._selectedIndex==null||e.position!=0||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
h.ngAfterContentInit=function(){var a=this;this._subscribeToAllTabChanges();this._subscribeToTabLabels();this._tabsSubscription=this._tabs.changes.subscribe(function(){var b=a._clampTabIndex(a._indexToSelect);if(b===a._selectedIndex){for(var c=a._tabs.toArray(),d,e=0;e<c.length;e++)if(c[e].isActive){a._indexToSelect=a._selectedIndex=e;a._lastFocusedTabIndex=null;d=c[e];break}!d&&c[b]&&Promise.resolve().then(function(){c[b].isActive=!0;a.selectedTabChange.emit(a._createChangeEvent(b))})}a._changeDetectorRef.markForCheck()})};
h.ngAfterViewInit=function(){var a=this;this._tabBodySubscription=this._tabBodies.changes.subscribe(function(){return a._bodyCentered(!0)})};h._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(zf(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));kg(a._tabs)})};h.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe();this._tabBodySubscription.unsubscribe()};
h.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};h._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};h._createChangeEvent=function(a){var b=new p$c;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};h._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=ve.apply(null,q(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
h._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};h._getTabLabelId=function(a,b){return a.id||this._groupId+"-label-"+b};h._getTabContentId=function(a){return this._groupId+"-content-"+a};
h._setTabBodyWrapperHeight=function(a){if(this.dynamicHeight&&this._tabBodyWrapperHeight){var b=this._tabBodyWrapper.nativeElement;b.style.height=this._tabBodyWrapperHeight+"px";this._tabBodyWrapper.nativeElement.offsetHeight&&(b.style.height=a+"px")}else this._tabBodyWrapperHeight=a};h._removeTabBodyWrapperHeight=function(){var a=this,b=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=b.clientHeight;b.style.height="";this._ngZone.run(function(){return a.animationDone.emit()})};
h._handleClick=function(a,b,c){b.focusIndex=c;a.disabled||(this.selectedIndex=c)};h._getTabIndex=function(a){var b,c=(b=this._lastFocusedTabIndex)!=null?b:this.selectedIndex;return a===c?0:-1};h._tabFocusChanged=function(a,b){a&&a!=="mouse"&&a!=="touch"&&(this._tabHeader.focusIndex=b)};h._bodyCentered=function(a){var b=this;if(a){var c;(c=this._tabBodies)==null||c.forEach(function(d,e){return d._setActiveClass(e===b._selectedIndex)})}};
h._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"};
da.Object.defineProperties(sL.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}}});
sL.\u0275fac=function(a){return new (a||sL)};
sL.\u0275cmp=D({type:sL,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&ig(c,rL,5);if(a&2){var d;lg(d=mg())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(hg(n$c,5),hg(o$c,5),hg(lL,5));if(a&2){var c;lg(c=mg())&&(b._tabBodyWrapper=c.first);lg(c=mg())&&(b._tabHeader=c.first);lg(c=mg())&&(b._tabBodies=c)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(a,b){a&2&&(Kf("mat-align-tabs",b.alignTabs),xg("mat-"+(b.color||"primary")),vg("--mat-tab-animation-duration",
b.animationDuration),wg("mat-mdc-tab-group-dynamic-height",b.dynamicHeight)("mat-mdc-tab-group-inverted-header",b.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",b.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$g],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$g],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",$g],selectedIndex:[2,"selectedIndex","selectedIndex",ah],headerPosition:"headerPosition",
animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ah],disablePagination:[2,"disablePagination","disablePagination",$g],disableRipple:[2,"disableRipple","disableRipple",$g],preserveContent:[2,"preserveContent","preserveContent",$g],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",
selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Gg([{provide:m$c,useExisting:sL}])],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();cg();K(0,"mat-tab-header",3,0);N("indexFocused",function(d){u(c);return v(b._focusChanged(d))})("selectFocusedIndex",function(d){u(c);return v(b.selectedIndex=d)});Of(2,dOa,8,17,"div",4,Nf);L();F(4,eOa,1,0);K(5,"div",5,1);Of(7,fOa,1,10,"mat-tab-body",6,Nf);L()}a&2&&(I("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),
Jf("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby),B(2),Pf(b._tabs),B(2),G(b._isServer?4:-1),B(),wg("_mat-animation-noopable",b._animationsDisabled()),B(2),Pf(b._tabs))},dependencies:[pL,oL,Jy,aA,Lz,lL],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 p$c=function(){};var q$c=["tabListContainer"],r$c=["tabList"],s$c=["tabListInner"],t$c=["nextPaginator"],u$c=["previousPaginator"],v$c=["*"],tL=function(){var a=p(d$c,{optional:!0});kL.call(this);this._focusedItem=ng.apply(null,[null].concat(q([])));this._fitInkBarToContent=new Nj(!1);this.stretchTabs=!0;this._disableRipple=ng.apply(null,[!1].concat(q([])));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(tL,kL);tL.\u0275dir=kL.\u0275dir;tL.prototype._itemSelected=function(){};
tL.prototype.ngAfterContentInit=function(){var a=this;this._inkBar=new Y9c(this._items);this._items.changes.pipe(zf(null),Bf(this._destroyed)).subscribe(function(){return w$c(a)});kL.prototype.ngAfterContentInit.call(this);this._keyManager.change.pipe(zf(null),Bf(this._destroyed)).subscribe(function(){var b;return a._focusedItem.set(((b=a._keyManager)==null?void 0:b.activeItem)||null)})};tL.prototype.ngAfterViewInit=function(){kL.prototype.ngAfterViewInit.call(this)};
var w$c=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}};tL.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};tL.prototype._hasFocus=function(a){var b;return((b=this._keyManager)==null?void 0:b.activeItem)===a};
da.Object.defineProperties(tL.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)}}});tL.\u0275fac=function(a){return new (a||tL)};
tL.\u0275cmp=D({type:tL,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&ig(c,uL,5);if(a&2){var d;lg(d=mg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(hg(q$c,7),hg(r$c,7),hg(s$c,7),hg(t$c,5),hg(u$c,5));if(a&2){var c;lg(c=mg())&&(b._tabListContainer=c.first);lg(c=mg())&&(b._tabList=c.first);lg(c=mg())&&(b._tabListInner=c.first);lg(c=mg())&&(b._nextPaginator=c.first);lg(c=mg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,
hostBindings:function(a,b){a&2&&(Kf("role",b._getRole()),vg("--mat-tab-animation-duration",b.animationDuration),wg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",b.stretchTabs)("mat-primary",b.color!=="warn"&&b.color!=="accent")("mat-accent",b.color==="accent")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._animationsDisabled))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent",
"fitInkBarToContent",$g],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$g],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",$g],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[Gf],attrs:["mat-tab-nav-bar",""],ngContentSelectors:v$c,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();cg();K(0,"div",5,0);N("click",function(){u(c);return v(b._handlePaginatorClick("before"))})("mousedown",
function(d){u(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return v(b._stopInterval())});M(2,"div",6);L();K(3,"div",7,1);N("keydown",function(d){u(c);return v(b._handleKeydown(d))});K(5,"div",8,2);N("cdkObserveContent",function(){u(c);return v(b._onContentChanges())});K(7,"div",9,3);dg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);return v(b._handlePaginatorClick("after"))})("touchend",
function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(10),wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||b.disableRipple))},dependencies:[aA,Wy],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 uL=function(){jL.call(this);var a=this;this._tabNavBar=p(tL);this.elementRef=p(Jd);this._focusMonitor=p(Hy);this._destroyed=new sf;this._isActive=!1;this._tabIndex=Zg.apply(null,[function(){return a._tabNavBar._focusedItem()===a?a.tabIndex:-1}].concat(q([])));this.disabled=!1;this._disableRipple=ng.apply(null,[!1].concat(q([])));this.tabIndex=0;this.id=p(bi).getId("mat-tab-link-");p($h).load(Yz);var b=p($z,{optional:!0}),c=p(new cx("tabindex"),{optional:!0});this.rippleConfig=b||{};this.tabIndex=
c==null?0:parseInt(c)||0;ni()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0});this._tabNavBar._fitInkBarToContent.pipe(Bf(this._destroyed)).subscribe(function(d){a.fitInkBarToContent=d})};Y(uL,jL);uL.\u0275dir=jL.\u0275dir;h=uL.prototype;h.focus=function(){this.elementRef.nativeElement.focus()};h.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};h.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();jL.prototype.ngOnDestroy.call(this);this._focusMonitor.stopMonitoring(this.elementRef)};
h._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};h._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)this.disabled?a.preventDefault():this._tabNavBar.tabPanel&&(a.keyCode===32&&a.preventDefault(),this.elementRef.nativeElement.click())};h._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?(a=this._tabNavBar.tabPanel)==null?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
h._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};h._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};h._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};
da.Object.defineProperties(uL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a!==this._isActive&&(this._isActive=a,w$c(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}}});
uL.\u0275fac=function(a){return new (a||uL)};
uL.\u0275cmp=D({type:uL,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&&(Kf("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()),wg("mat-mdc-tab-disabled",
b.disabled)("mdc-tab--active",b.active))},inputs:{active:[2,"active","active",$g],disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}],id:"id"},exportAs:["matTabLink"],features:[Gf],attrs:["mat-tab-link",""],ngContentSelectors:v$c,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&&(cg(),M(0,"span",0)(1,"div",1),K(2,"span",2)(3,"span",3),dg(4),L()());a&2&&(B(),I("matRippleTrigger",b.elementRef.nativeElement)("matRippleDisabled",b.rippleDisabled))},dependencies:[aA],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 x$c=function(){this.id=p(bi).getId("mat-tab-nav-panel-")};x$c.\u0275fac=function(a){return new (a||x$c)};x$c.\u0275cmp=D({type:x$c,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(a,b){a&2&&Kf("aria-labelledby",b._activeTabId)("id",b.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:v$c,decls:1,vars:0,template:function(a){a&1&&(cg(),dg(0))},encapsulation:2,changeDetection:0});var vL=function(){};vL.\u0275fac=function(a){return new (a||vL)};vL.\u0275mod=cf({type:vL});vL.\u0275inj=Hc({imports:[Ey]});var wL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabGroup=c;this.appearance=this.options.appearance};da.Object.defineProperties(wL.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())}}});wL.\u0275fac=function(a){return new (a||wL)(Ye(X9c),Ye(ux),Ye(sL))};
wL.\u0275dir=df({type:wL,selectors:[["mat-tab-group"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var xL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabNav=c;if(this.options.disableGmatStyle)throw Error("db");this.appearance=this.options.appearance};
da.Object.defineProperties(xL.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())}}});xL.\u0275fac=function(a){return new (a||xL)(Ye(X9c),Ye(ux),Ye(tL))};
xL.\u0275dir=df({type:xL,selectors:[["","mat-tab-nav-bar",""]],hostVars:4,hostBindings:function(a,b){a&2&&wg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var yL=function(){};yL.\u0275fac=function(a){return new (a||yL)};yL.\u0275mod=cf({type:yL});yL.\u0275inj=Hc({imports:[vL]});var y$c=new fd("CdkAccordion"),zL=function(){this._stateChanges=new sf;this._openCloseAllActions=new sf;this.id=p(bi).getId("cdk-accordion-");this.multi=!1};zL.prototype.closeAll=function(){this._openCloseAllActions.next(!1)};zL.prototype.ngOnChanges=function(a){this._stateChanges.next(a)};zL.prototype.ngOnDestroy=function(){this._stateChanges.complete();this._openCloseAllActions.complete()};zL.\u0275fac=function(a){return new (a||zL)};
zL.\u0275dir=df({type:zL,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",$g]},exportAs:["cdkAccordion"],features:[Gg([{provide:y$c,useExisting:zL}]),bx]});var AL=function(){this.accordion=p(y$c,{optional:!0,skipSelf:!0});this._changeDetectorRef=p(ux);this._expansionDispatcher=p(sz);this._openCloseAllSubscription=Rd.EMPTY;this.closed=new Ui;this.opened=new Ui;this.destroyed=new Ui;this.expandedChange=new Ui;this.id=p(bi).getId("cdk-accordion-child-");this._expanded=!1;this._disabled=ng.apply(null,[!1].concat(q([])));this._removeUniqueSelectionListener=function(){}};h=AL.prototype;
h.ngOnInit=function(){var a=this;this._removeUniqueSelectionListener=this._expansionDispatcher.listen(function(b,c){a.accordion&&!a.accordion.multi&&a.accordion.id===c&&a.id!==b&&(a.expanded=!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};h.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};
h.toggle=function(){this.disabled||(this.expanded=!this.expanded)};h.close=function(){this.disabled||(this.expanded=!1)};h.open=function(){this.disabled||(this.expanded=!0)};h._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
da.Object.defineProperties(AL.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)}}});
AL.\u0275fac=function(a){return new (a||AL)};AL.\u0275dir=df({type:AL,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",$g],disabled:[2,"disabled","disabled",$g]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Gg([{provide:y$c,useValue:void 0}])]});var BL=function(){};BL.\u0275fac=function(a){return new (a||BL)};BL.\u0275mod=cf({type:BL});BL.\u0275inj=Hc({});var z$c=new fd("MAT_ACCORDION");var A$c=new fd("MAT_EXPANSION_PANEL");var CL=function(){this._template=p(eg);this._expansionPanel=p(A$c,{optional:!0})};CL.\u0275fac=function(a){return new (a||CL)};CL.\u0275dir=df({type:CL,selectors:[["ng-template","matExpansionPanelContent",""]]});var B$c=["body"],C$c=["bodyWrapper"],D$c=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],E$c=new fd("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),DL=function(){AL.call(this);var a=this;this._viewContainerRef=p(fg);this._animationsDisabled=ni();this._document=p(Sh);this._ngZone=p(Rg);this._elementRef=p(Jd);this._renderer=p(di);this._hideToggle=!1;this.afterExpand=new Ui;this.afterCollapse=new Ui;this._inputChanges=new sf;this.accordion=p(z$c,{optional:!0,skipSelf:!0});this._headerId=p(bi).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=p(E$c,{optional:!0});this._expansionDispatcher=p(sz);b&&(this.hideToggle=b.hideToggle)};Y(DL,AL);DL.\u0275dir=AL.\u0275dir;h=DL.prototype;h._hasSpacing=function(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1};
h._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};h.toggle=function(){this.expanded=!this.expanded};h.close=function(){this.expanded=!1};h.open=function(){this.expanded=!0};h.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(zf(null),we(function(){return a.expanded&&!a._portal}),nf(1)).subscribe(function(){a._portal=new Iz(a._lazyContent._template,a._viewContainerRef)});this._setupAnimationEvents()};
h.ngOnChanges=function(a){this._inputChanges.next(a)};h.ngOnDestroy=function(){AL.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransitionEnd)==null||a.call(this);this._inputChanges.complete()};h._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
h._setupAnimationEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._animationsDisabled?(a.opened.subscribe(function(){return a._ngZone.run(function(){return a.afterExpand.emit()})}),a.closed.subscribe(function(){return a._ngZone.run(function(){return a.afterCollapse.emit()})})):setTimeout(function(){var b=a._elementRef.nativeElement;a._cleanupTransitionEnd=a._renderer.listen(b,"transitionend",a._transitionEndListener);b.classList.add("mat-expansion-panel-animations-enabled")},
200)})};da.Object.defineProperties(DL.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}}});DL.\u0275fac=function(a){return new (a||DL)};
DL.\u0275cmp=D({type:DL,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&ig(c,CL,5);if(a&2){var d;lg(d=mg())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&(hg(B$c,5),hg(C$c,5));if(a&2){var c;lg(c=mg())&&(b._body=c.first);lg(c=mg())&&(b._bodyWrapper=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(a,b){a&2&&wg("mat-expanded",b.expanded)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",$g],
togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Gg([{provide:z$c,useValue:void 0},{provide:A$c,useExisting:DL}]),Gf,bx],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&&(cg(D$c),dg(0),K(1,"div",2,0)(3,"div",3,1)(5,"div",4),dg(6,1),E(7,gOa,0,0,"ng-template",5),L(),dg(8,2),L()());a&2&&(B(),Kf("inert",b.expanded?null:""),B(2),I("id",b.id),Kf("aria-labelledby",b._headerId),B(4),I("cdkPortalOutlet",b._portal))},dependencies:[Lz],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 F$c=function(){};F$c.\u0275fac=function(a){return new (a||F$c)};F$c.\u0275dir=df({type:F$c,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var G$c=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],EL=function(){var a=this;this.panel=p(DL,{host:!0});this._element=p(Jd);this._focusMonitor=p(Hy);this._changeDetectorRef=p(ux);this._parentChangeSubscription=Rd.EMPTY;this.tabIndex=0;p($h).load(Yz);var b=this.panel,c=p(E$c,{optional:!0}),d=p(new cx("tabindex"),{optional:!0}),e=b.accordion?b.accordion._stateChanges.pipe(we(function(f){return!(!f.hideToggle&&!f.togglePosition)})):ue;this.tabIndex=parseInt(d||"")||0;this._parentChangeSubscription=
ve(b.opened,b.closed,e,b._inputChanges.pipe(we(function(f){return!!(f.hideToggle||f.disabled||f.togglePosition)}))).subscribe(function(){return a._changeDetectorRef.markForCheck()});b.closed.pipe(we(function(){return b._containsFocus()})).subscribe(function(){return Iy(a._focusMonitor,a._element,"program")});c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)};h=EL.prototype;h._toggle=function(){this.disabled||this.panel.toggle()};h._isExpanded=function(){return this.panel.expanded};
h._getExpandedState=function(){return this.panel._getExpandedState()};h._getPanelId=function(){return this.panel.id};h._getTogglePosition=function(){return this.panel.togglePosition};h._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};h._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};
h._keydown=function(a){switch(a.keyCode){case 32:case 13:Gh(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};h.focus=function(a,b){a?Iy(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};h.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};
h.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};da.Object.defineProperties(EL.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});EL.\u0275fac=function(a){return new (a||EL)};
EL.\u0275cmp=D({type:EL,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&&(Kf("id",b.panel._headerId)("tabindex",b.disabled?-1:b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),vg("height",b._getHeaderHeight()),wg("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
b._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",b._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(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&&(cg(G$c),Rf(0,"span",0),dg(1),dg(2,1),dg(3,2),Sf(),F(4,hOa,3,0,"span",1));a&2&&(wg("mat-content-hide-toggle",!b._showToggle()),B(4),G(b._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],
encapsulation:2,changeDetection:0});var H$c=function(){};H$c.\u0275fac=function(a){return new (a||H$c)};H$c.\u0275dir=df({type:H$c,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var FL=function(){};FL.\u0275fac=function(a){return new (a||FL)};FL.\u0275dir=df({type:FL,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var GL=function(){zL.apply(this,arguments);this._ownHeaders=new gg;this.hideToggle=!1;this.displayMode="default";this.togglePosition="after"};Y(GL,zL);GL.prototype.ngAfterContentInit=function(){var a=this;this._headers.changes.pipe(zf(this._headers)).subscribe(function(b){a._ownHeaders.reset(b.filter(function(c){return c.panel.accordion===a}));kg(a._ownHeaders)});this._keyManager=jz(gz(new mz(this._ownHeaders)))};GL.prototype._handleHeaderKeydown=function(a){this._keyManager.onKeydown(a)};
GL.prototype._handleHeaderFocus=function(a){kz(this._keyManager,a)};GL.prototype.ngOnDestroy=function(){zL.prototype.ngOnDestroy.call(this);var a;(a=this._keyManager)==null||a.destroy();this._ownHeaders.destroy()};GL.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(GL)))(b||GL)}}();
GL.\u0275dir=df({type:GL,selectors:[["mat-accordion"]],contentQueries:function(a,b,c){a&1&&ig(c,EL,5);if(a&2){var d;lg(d=mg())&&(b._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-accordion-multi",b.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",$g],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Gg([{provide:z$c,useExisting:GL}]),Gf]});var HL=function(){};HL.\u0275fac=function(a){return new (a||HL)};HL.\u0275mod=cf({type:HL});HL.\u0275inj=Hc({imports:[BL,Mz,Ey]});var I$c=function(){},SOa=function(a){switch(a){case 0:return"EXECUTION_STATUS_UNKNOWN";case 1:return"SUCCESS";case 2:return"NO_APPROPRIATE_TOOL";case 3:return"PLANNING_ERROR";case 4:return"CODE_EXECUTION_ERROR";case 5:return"TOOL_EXECUTION_ERROR";case 6:return"AGENT_NOT_FOUND";default:return wb(a,"unexpected planner status!")}};I$c.\u0275fac=function(a){return new (a||I$c)};
I$c.\u0275cmp=D({type:I$c,selectors:[["message-metadata"]],inputs:{messageData:"messageData"},decls:1,vars:1,consts:[["class","gmat-subhead-3 metadata-content",4,"ngIf"],[1,"gmat-subhead-3","metadata-content"],["mat-stretch-tabs","false","color","primary",3,"selectedIndex"],["label","model_id"],["label","lm_prefix"],["label","factuality_metadata"],[4,"ngFor","ngForOf"],["label","scores"],["label","model_override_options"],["label","citation resources",4,"ngIf"],["label","execution_metadata"],[4,"ngIf"],
["label","citation resources"],[1,"type-xs"],[1,"metadata-heading"],[1,"planner-content"],[1,"planner-code"]],template:function(a,b){a&1&&E(0,YOa,25,8,"div",0);a&2&&I("ngIf",b.messageData.responseMetadata)},dependencies:[Yx,Ex,Fx,xE,gL,yL,wL,rL,sL,HL,DL,EL,FL],styles:[".metadata-content[_ngcontent-%COMP%]{border:dashed red;font-size:14px;padding:16px;white-space:pre-line}.metadata-content[_ngcontent-%COMP%]   .metadata-heading[_ngcontent-%COMP%]{font-weight:700;margin:.5em 0}.metadata-content[_ngcontent-%COMP%]   .planner-code[_ngcontent-%COMP%], .metadata-content[_ngcontent-%COMP%]   .planner-content[_ngcontent-%COMP%]{margin-left:2em;font-size:.9em;font-family:monospace}"],
changeDetection:0});var J$c={NO_ERROR:1,NO_REWRITE_NO_REASON:2,SOURCE_URL_NO_REWRITE:3,NO_REASONS:4,SOURCE_URL_INVALID:5,1:"NO_ERROR",2:"NO_REWRITE_NO_REASON",3:"SOURCE_URL_NO_REWRITE",4:"NO_REASONS",5:"SOURCE_URL_INVALID"};var K$c=new fd("SourceUrlsFormTemplate"),IL=function(){this.showWarning=Og.apply(null,[!1].concat(q([])));this.invalidFeedbackFormEnum=J$c;this.error=1;this.rewriteSourcesList=[""]},aPa=function(a){return(a==null?void 0:a.length)>0},bPa=function(a,b){b=b.length<5?!0:aFc.test(b)||bFc.test(b);a.error=b?1:5;return b};IL.\u0275fac=function(a){return new (a||IL)};
IL.\u0275cmp=D({type:IL,selectors:[["source-urls-form"]],inputs:{showWarning:[1,"showWarning"]},decls:13,vars:2,consts:function(){return[" Enter a valid website url or go link (https://example.com) ",[1,"header-with-tooltip"],[1,"gmat-subhead-1"],["mat-icon-button","","matTooltip","URLs to pages with the correct answer.\n      Provide URLs to specific sections if citing from g3docs.","aria-label","Please provide URLs to pages with the correct answer.",1,"small"],[1,"help-icon","icon-s"],[1,"font-google-sans-text",
"type-xs","padded-s-bottom"],[1,"rewrite-source"],["color","primary","mat-button","",3,"click","disabled"],[1,"rewrite-source-input-row"],["appearance","outline","color","primary",1,"rewrite-source-input"],["matInput","","type","url",3,"ngModelChange","name","ngModel"],["mat-icon-button","","aria-label","Remove this source",1,"remove-source-input-button",3,"click","disabled"],[1,"invalid-rewrite-source-input"]]},template:function(a,b){a&1&&(K(0,"div",1)(1,"p",2),Q(2,"Additional knowledge sources"),
L(),K(3,"button",3)(4,"mat-icon",4),Q(5,"help"),L()()(),F(6,ZOa,2,0,"div",5),Of(7,cPa,10,5,"div",6,Mf),K(9,"button",7),N("click",function(){b.rewriteSourcesList.push("")}),K(10,"mat-icon"),Q(11,"add"),L(),Q(12,"Add\n"),L());a&2&&(B(6),G(b.showWarning()?6:-1),B(),Pf(b.rewriteSourcesList),B(2),I("disabled",!aPa(b.rewriteSourcesList[b.rewriteSourcesList.length-1])))},dependencies:[Yx,xE,yj,$D,gE,iB,gB,cB,eB,YK,OD,BD,MD,ED,CD,BE,PD,zE,pK,oK,iA,Fy,Dy,TD],styles:["[_nghost-%COMP%]:not(:empty){display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin:8px 0;position:relative}[_nghost-%COMP%]:not(:empty)   mat-form-field[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]:not(:empty)   button[_ngcontent-%COMP%]{-webkit-align-self:baseline;-ms-flex-item-align:baseline;align-self:baseline}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper{padding:0}.heading[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.feedback-form-submit[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}.header-with-tooltip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:4px}.help-button[_ngcontent-%COMP%]{text-align:center;text-decoration:none}.help-icon[_ngcontent-%COMP%]{color:var(--text-secondary)}.invalid-form-error[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;font-size:14px;margin-right:auto}.invalid-rewrite-source-input[_ngcontent-%COMP%]{font-size:14px}.rewrite-source[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.rewrite-source-input[_ngcontent-%COMP%]{max-height:50px;width:100%}.rewrite-source-input-header[_ngcontent-%COMP%]{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:14px;margin-bottom:8px}.rewrite-source-input-row[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}"],
changeDetection:0});var L$c=["customSourceUrlsForm"],M$c=["defaultSourceUrlsForm"],JL=function(){this.showWarning=Og.apply(null,[!1].concat(q([])));this.sourceUrlsFormTemplate=p(K$c,{optional:!0});this.customSourceUrlsForm=Pg.apply(null,["customSourceUrlsForm"].concat(q([{read:fg}])));this.defaultSourceUrlsForm=Pg.apply(null,["defaultSourceUrlsForm"].concat(q([{read:IL}])))};
JL.prototype.ngAfterViewInit=function(){this.sourceUrlsFormTemplate&&this.customSourceUrlsForm()&&(this.componentRef=this.customSourceUrlsForm().createComponent(this.sourceUrlsFormTemplate),this.componentRef.instance.showWarning=this.showWarning)};JL.prototype.getError=function(){if(this.componentRef)return this.componentRef.instance.error;var a,b;return(b=(a=this.defaultSourceUrlsForm())==null?void 0:a.error)!=null?b:1};JL.\u0275fac=function(a){return new (a||JL)};
JL.\u0275cmp=D({type:JL,selectors:[["source-urls-form-wrapper"]],viewQuery:function(a,b){a&1&&(og(b.customSourceUrlsForm,L$c,fg),og(b.defaultSourceUrlsForm,M$c,IL));a&2&&pg(2)},inputs:{showWarning:[1,"showWarning"]},decls:2,vars:1,consts:[["customSourceUrlsForm",""],["defaultSourceUrlsForm",""],[3,"showWarning"]],template:function(a,b){a&1&&F(0,dPa,2,0,"ng-container")(1,ePa,2,1,"source-urls-form",2);a&2&&G(b.sourceUrlsFormTemplate?0:1)},dependencies:[Yx,IL],encapsulation:2,changeDetection:0});var N$c=["sourceUrlsFormWrapper"],O$c=["feedbackHeader"],fPa=new Map([["incorrect_info","Factual errors"],["incorrect_url","Broken/incorrect links"],["repetitive","Repetitive"],["irrelevant","Irrelevant information"],["hallucinated_api","Hallucinated libraries / APIs etc"],["incomplete_answer","Incomplete answer"],["followup_not_understood","Didn't understand followup"],["not_protected_content","Not protected"],["poor_use_of_tools","Poor use of tools"]]),P$c=new Map([["incorrect","incorrect_info"],
["incorrect_url","incorrect_url"],["repetitive","repetitive"],["irrelevant","irrelevant"],["hallucinated_api","hallucinated_api"],["incomplete_answer","incomplete_answer"],["followup_not_understood","followup_not_understood"],["not_protected_content","not_protected_content"],["poor_use_of_tools","poor_use_of_tools"]]),Q$c=new fd("FeedbackReasonsFormTemplate"),KL=function(a,b){this.userStateService=a;this.conversationAgentsService=b;this.experimentsService=p(lA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;
this.sourceUrlsFormWrapper=Pg.apply(null,["sourceUrlsFormWrapper"].concat(q([])));this.feedbackHeader=Pg.apply(null,["feedbackHeader"].concat(q([])));this.messageData=Og.required.apply(Og,q([]));this.hasPrivateContent=Og.required.apply(Og,q([]));this.close=Ng();this.submit=Ng();this.invalidFeedbackFormEnum=J$c;this.rewrittenResponse=this.otherReason="";this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.reasonChips="hallucinated_api incomplete_answer followup_not_understood incorrect_info incorrect_url irrelevant repetitive".split(" ");
this.error=1;this.selectedReasons=[];this.rewriteSourcesList=[""];this.ve={DuckieChatNegativeFeedbackCancelButton:201123}};
KL.prototype.ngOnInit=function(){var a,b=(a=this.messageData().feedback)==null?void 0:a.getFeedbackLabelsList();if(b)for(a=m(b),b=a.next();!b.done;b=a.next())b=b.value,P$c.has(b)&&this.selectedReasons.push(P$c.get(b));var c;if((c=this.messageData().feedback)==null?0:c.getFeedbackReason())this.otherReason=this.messageData().feedback.getFeedbackReason();var d;if((d=this.messageData().rewrite)==null?0:vi(d,2))c=this.messageData().rewrite,this.rewrittenResponse=vi(c,2);var e;if((e=this.messageData().rewrite)==
null?0:e.getSourceLinkList()){var f;this.rewriteSourcesList=((f=this.messageData().rewrite)==null?void 0:f.getSourceLinkList().slice())||[]}this.messageData().hasPrivateContent&&this.reasonChips.push("not_protected_content");e=this.conversationAgentsService;eC(e).modelId!==uw.modelId&&eC(e).modelId!==Rwc.modelId&&eC(e).modelId!==Swc.modelId||this.reasonChips.push("poor_use_of_tools")};KL.prototype.ngAfterViewInit=function(){var a;(a=this.feedbackHeader())==null||a.nativeElement.scrollIntoView()};
KL.prototype.getIndex=function(a){return a};KL.\u0275fac=function(a){return new (a||KL)(Ye(gC),Ye(dC))};
KL.\u0275cmp=D({type:KL,selectors:[["feedback-reasons-form"]],viewQuery:function(a,b){a&1&&(og(b.sourceUrlsFormWrapper,N$c),og(b.feedbackHeader,O$c));a&2&&pg(2)},inputs:{messageData:[1,"messageData"],hasPrivateContent:[1,"hasPrivateContent"]},outputs:{close:"close",submit:"submit"},decls:18,vars:7,consts:function(){return[["feedbackHeader",""],["otherReasons",""],["sourceUrlsFormWrapper",""]," \ufffd0\ufffd ",[1,"heading"],[1,"gmat-subhead-1"],["mat-icon-button","","aria-label","Close feedback form",
1,"close-button",3,"click"],["multiple","","aria-label","Select feedback reasons",3,"change"],["appearance","hairline-filter",3,"value","selected"],[1,"feedback-form-submit"],[1,"invalid-form-error"],["mat-stroked-button","","color","primary",3,"click","ve","veClick","veImpression"],["mat-raised-button","","color","primary",3,"click"],[3,"showWarning"],["appearance","outline","floatLabel","auto"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Share what could be improved in the response",
"aria-label","Other negative feedback reason(s)",1,"other-reasons-input",3,"ngModelChange","ngModel"]]},template:function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"p",5,0);Q(3,"Reasons for feedback (Select all that apply)");L();K(4,"button",6);N("click",function(){u(c);return v(b.close.emit())});K(5,"mat-icon");Q(6," close ");L()()();K(7,"mat-chip-listbox",7);N("change",function(d){u(c);b.selectedReasons=d.value;return v()});Of(8,gPa,2,3,"mat-chip-option",8,Nf);L();F(10,jPa,2,1);T(11,"async");K(12,"div",
9);F(13,kPa,2,1,"mat-error",10);K(14,"button",11);N("click",function(){u(c);return v(b.close.emit())});Q(15," Cancel ");L();K(16,"button",12);N("click",function(){u(c);if(b.otherReason.length===0&&b.selectedReasons.length===0)b.error=4;else if(!b.sourceUrlsFormWrapper()||b.sourceUrlsFormWrapper().getError()===1){var d,e;if((d=b.sourceUrlsFormWrapper())==null)d=void 0;else if(d.componentRef)d=d.componentRef.instance.rewriteSourcesList;else{var f,g;d=(g=(f=d.defaultSourceUrlsForm())==null?void 0:f.rewriteSourcesList)!=
null?g:[]}f=(e=d)!=null?e:[];b.submit.emit({feedbackReason:b.otherReason||void 0,feedbackLabels:b.selectedReasons,rewrittenResponse:"",rewrittenResponseSources:f})}return v()});Q(17," Submit ");L()()}a&2&&(B(8),Pf(b.reasonChips),B(2),G(U(11,5,b.isIncognitoMode$)?-1:10),B(3),G(b.error!==b.invalidFeedbackFormEnum.NO_ERROR?13:-1),B(),I("ve",b.ve.DuckieChatNegativeFeedbackCancelButton)("veClick",!0)("veImpression",!0))},dependencies:[Yx,xE,yj,$D,gE,iB,gB,cB,eB,YK,NK,VK,UK,OD,BD,MD,ED,CD,BE,PD,zE,SD,pK,
Fy,Dy,JL,TD,bD,aD,Lx],styles:["[_nghost-%COMP%]:not(:empty){border:1px solid var(--hairline);border-radius:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px;margin-top:8px;padding:12px 24px;position:relative}[_nghost-%COMP%]:not(:empty)   mat-chip-listbox[_ngcontent-%COMP%], [_nghost-%COMP%]:not(:empty)   mat-form-field[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]:not(:empty)   button[_ngcontent-%COMP%]{-webkit-align-self:baseline;-ms-flex-item-align:baseline;align-self:baseline}.heading[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.feedback-form-submit[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:16px;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}.header-with-tooltip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px}.help-button[_ngcontent-%COMP%]{text-align:center;text-decoration:none}.help-icon[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:16px;height:16px}.invalid-form-error[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;font-size:14px;margin-right:auto}.invalid-rewrite-source-input[_ngcontent-%COMP%]{font-size:14px}.rewrite-source[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.rewrite-source-input[_ngcontent-%COMP%]{max-height:50px;width:100%}.rewrite-source-input-header[_ngcontent-%COMP%]{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:14px;margin-bottom:8px}.rewrite-source-input-row[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}"],
changeDetection:0});var R$c=["customFeedbackReasonsForm"],LL=function(){this.messageData=Og.required.apply(Og,q([]));this.hasPrivateContent=Og.required.apply(Og,q([]));this.close=Ng();this.submit=Ng();this.feedbackReasonsFormTemplate=p(Q$c,{optional:!0});this.customFeedbackReasonsForm=Pg.apply(null,["customFeedbackReasonsForm"].concat(q([{read:fg}])))};
LL.prototype.ngAfterViewInit=function(){var a=this;this.feedbackReasonsFormTemplate&&this.customFeedbackReasonsForm()&&(this.componentRef=this.customFeedbackReasonsForm().createComponent(this.feedbackReasonsFormTemplate),this.componentRef.instance.messageData=this.messageData,this.componentRef.instance.hasPrivateContent=this.hasPrivateContent,this.componentRef.instance.close.subscribe(function(){a.close.emit()}),this.componentRef.instance.submit.subscribe(function(b){a.submit.emit(b)}))};
LL.\u0275fac=function(a){return new (a||LL)};
LL.\u0275cmp=D({type:LL,selectors:[["feedback-reasons-form-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customFeedbackReasonsForm,R$c,fg);a&2&&pg()},inputs:{messageData:[1,"messageData"],hasPrivateContent:[1,"hasPrivateContent"]},outputs:{close:"close",submit:"submit"},decls:2,vars:1,consts:[["customFeedbackReasonsForm",""],[3,"messageData","hasPrivateContent"],[3,"close","submit","messageData","hasPrivateContent"]],template:function(a,b){a&1&&F(0,lPa,2,0,"ng-container")(1,mPa,1,2,"feedback-reasons-form",
1);a&2&&G(b.feedbackReasonsFormTemplate?0:1)},dependencies:[Yx,KL],encapsulation:2,changeDetection:0});var ML=function(){};ML.prototype.create=function(){var a=Gta();return new GIc(a,{withCredentials:!0,suppressCorsPreflight:!0})};ML.\u0275fac=function(a){return new (a||ML)};ML.\u0275prov=Fc({token:ML,factory:ML.\u0275fac,providedIn:"root"});var NL=function(a){this.duckieBackendServicePromiseClientFactory=a;this.client=this.duckieBackendServicePromiseClientFactory.create()};NL.prototype.provideFeedback=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.provideFeedback(a),2):c.return(c.yieldResult)})};NL.prototype.provideRewrite=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.provideRewrite(a),2):c.return(c.yieldResult)})};NL.\u0275fac=function(a){return new (a||NL)($c(ML))};
NL.\u0275prov=Fc({token:NL,factory:NL.\u0275fac,providedIn:"root"});var S$c=new fd("FeedbackWithRewriteTemplate"),OL=function(a,b,c,d){this.userStateService=a;this.threadService=b;this.duckieEventTrackerService=c;this.duckieFeedbackService=d;this.messageData=Og.required.apply(Og,q([]));this.currFeedbackId="";this.hasFeedbackFormContent=this.wasFeedbackSubmitted=this.showReasonsForm=!1;this.currFeedback=new FA;this.currRewrite=new zi;this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;
this.hasPrivateContent$=this.threadService.currentThread$.pipe(A(function(e){return e?e.privacyMode===2:!1}));this.ve={DuckieChatResponseUpvoteButton:201122,DuckieChatResponseDownvoteButton:201121}};OL.prototype.ngOnInit=function(){var a;if((a=this.messageData().feedback)==null||!a.getIsDeleted()){var b;(b=this.messageData().feedback)==null||b.getFeedbackType();this.currFeedback=this.messageData().feedback}this.messageData().rewrite&&(this.currRewrite=this.messageData().rewrite)};
OL.prototype.provideRewrite=function(a){var b=this,c,d,e;return y(function(f){c=b.messageData().id;d=(new CGc).setText(a.rewrittenResponse).setMessageId(c);a.rewrittenResponseSources.length>0&&(e=a.rewrittenResponseSources.filter(function(g){return g.length>0}),d.addAllSourceLink(e));b.currRewrite=uFc(new zi,d.getText()).setSourceLinkList(d.getSourceLinkList());b.wasFeedbackSubmitted=!0;return z(f,b.duckieFeedbackService.provideRewrite(d),0)})};
OL.prototype.provideFeedback=function(a,b){var c=this,d,e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1)return d=c.messageData().id,e=(new wB).setFeedbackType(a?1:2).setMessageId(d),c.hasFeedbackFormContent=((f=b)==null?void 0:f.feedbackReason)!==void 0||((g=b)==null?void 0:g.feedbackLabels.length)>0,((k=b)==null?0:k.feedbackReason)&&e.setFeedbackReason(b.feedbackReason),((l=b)==null?void 0:l.feedbackLabels.length)>0&&e.setFeedbackLabelsList((r=b)==null?void 0:r.feedbackLabels),((w=b)==null?
void 0:w.rewrittenResponseSources.length)>0?z(x,c.provideRewrite(b),2):x.jumpTo(2);dD(c.duckieEventTrackerService,a?201122:201121,c.messageData());c.wasFeedbackSubmitted=!0;return z(x,c.duckieFeedbackService.provideFeedback(e).then(function(C){c.currFeedbackId=C.getFeedbackId();c.currFeedback=(new FA).setFeedbackLabelsList(e.getFeedbackLabelsList()).setFeedbackReason(e.getFeedbackReason()).setFeedbackType(e.getFeedbackType()).setFeedbackId(c.currFeedbackId)}),0)})};
OL.\u0275fac=function(a){return new (a||OL)(Ye(gC),Ye(zD),Ye(cD),Ye(NL))};
OL.\u0275cmp=D({type:OL,selectors:[["feedback-with-rewrite"]],inputs:{messageData:[1,"messageData"]},decls:6,vars:5,consts:[[1,"vote-row"],["mat-icon-button","","aria-label","Provide feedback",3,"click","ve","veClick","veImpression"],[1,"feedback-confirmation"],[3,"messageData","hasPrivateContent"],[1,"gmat-body-2"],[3,"close","submit","messageData","hasPrivateContent"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){b.showReasonsForm=!0;b.provideFeedback(!1)}),K(2,"mat-icon"),
Q(3,"feedback"),L()(),F(4,nPa,3,1,"div",2),L(),F(5,oPa,2,4,"feedback-reasons-form-wrapper",3));a&2&&(B(),I("ve",b.ve.DuckieChatResponseDownvoteButton)("veClick",!0)("veImpression",!0),B(3),G(b.hasFeedbackFormContent?4:-1),B(),G(b.showReasonsForm?5:-1))},dependencies:[Yx,LL,iB,gB,eB,bK,Fy,Dy,bD,aD,Lx],styles:["button[_ngcontent-%COMP%]{overflow:hidden}.gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;color:var(--text-secondary);font-size:20px;padding:2px}.gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon.is-selected[_ngcontent-%COMP%]{color:var(--primary-default)}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{--mat-button-text-state-layer-color:var(--text-secondary);--mat-button-text-label-text-color:var(--text-secondary);--private-gmat-button-text-stateful-color:var(--primary-default)}.gmat-mdc-button.mat-mdc-button.mat-unthemed.is-selected[_ngcontent-%COMP%]{color:var(--primary-default)}.feedback-confirmation[_ngcontent-%COMP%]{margin-left:16px}.vertical-divider[_ngcontent-%COMP%]{height:24px;border-width:medium;border-color:var(--hairline)}.vote-row[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.vote-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Google Sans,Roboto;margin-right:4px}"],
changeDetection:0});var T$c=["customFeedbackWithRewrite"],PL=function(){this.messageData=Og.required.apply(Og,q([]));this.feedbackWithRewriteTemplate=p(S$c,{optional:!0});this.customFeedbackWithRewrite=Pg.apply(null,["customFeedbackWithRewrite"].concat(q([{read:fg}])))};PL.prototype.ngAfterViewInit=function(){this.feedbackWithRewriteTemplate&&this.customFeedbackWithRewrite()&&(this.componentRef=this.customFeedbackWithRewrite().createComponent(this.feedbackWithRewriteTemplate),this.componentRef.instance.messageData=this.messageData)};
PL.\u0275fac=function(a){return new (a||PL)};PL.\u0275cmp=D({type:PL,selectors:[["feedback-with-rewrite-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customFeedbackWithRewrite,T$c,fg);a&2&&pg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customFeedbackWithRewrite",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,pPa,2,0,"ng-container")(1,qPa,1,1,"feedback-with-rewrite",1);a&2&&G(b.feedbackWithRewriteTemplate?0:1)},dependencies:[Yx,OL],encapsulation:2,changeDetection:0});var U$c=["customInteractiveElements"],QL=function(){this.interactiveElements=Og.apply(null,q([]));this.interactiveElementsTemplate=p(W7c,{optional:!0});this.customInteractiveElements=Pg.apply(null,["customInteractiveElements"].concat(q([{read:fg}])))};
QL.prototype.ngAfterViewInit=function(){this.interactiveElementsTemplate&&this.customInteractiveElements()&&(this.componentRef=this.customInteractiveElements().createComponent(this.interactiveElementsTemplate),this.componentRef.instance.interactiveElements=ng.apply(null,[this.interactiveElements()].concat(q([]))))};QL.\u0275fac=function(a){return new (a||QL)};
QL.\u0275cmp=D({type:QL,selectors:[["interactive-elements-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customInteractiveElements,U$c,fg);a&2&&pg()},inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["customInteractiveElements",""],[3,"interactiveElements"]],template:function(a,b){a&1&&F(0,rPa,2,0,"ng-container")(1,sPa,1,1,"interactive-elements",1);a&2&&G(b.interactiveElementsTemplate?0:1)},dependencies:[Yx,KJ],encapsulation:2,changeDetection:0});var RL=function(a){this.dialog=a};RL.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(hL,W9c)};RL.\u0275fac=function(a){return new (a||RL)(Ye(QA))};
RL.\u0275cmp=D({type:RL,selectors:[["private-citation-chip-tooltip"]],decls:5,vars:3,consts:[["privateCitationTooltip",""],["tabindex","0","role","button","aria-label","Personal citation information","dialogLabel","Personal citation tooltip",1,"citation-chip","text-secondary","flex-row","align-items-center","gap-xs","rounded-full","bordered","padded-xs-x",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"],[1,"tooltip-actions",
"flex-row","gap-s"],["mat-button","","color","primary",3,"click"]],template:function(a){a&1&&(K(0,"div",1)(1,"mat-icon"),Q(2,"privacy_tip"),L()(),E(3,tPa,5,0,"ng-template",null,0,Mg));a&2&&(a=qg(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[Yx,Fy,Dy,iB,gB,cB,cL],styles:["[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]{max-width:300px}[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]   .tooltip-actions[_ngcontent-%COMP%]{margin-left:-8px}"],changeDetection:0});var V$c=new fd("MessageCitationsTemplate"),W$c=function(a){var b=this;this.duckieEventTrackerService=a;this.messageData=Og.required.apply(Og,q([]));this.citedNonRecitationDocuments=Zg.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==null?void 0:c.flatMap(function(e){var f,g;return(g=(f=km(e))==null?void 0:lm(f).filter(function(k){return!yi(k,lFc,8)}))!=null?g:[]}))!=null?d:[]}].concat(q([])));this.recitationSources=Zg.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==
null?void 0:c.flatMap(function(e){var f,g;return(g=(f=km(e))==null?void 0:lm(f).filter(function(k){return yi(k,lFc,8)}))!=null?g:[]}))!=null?d:[]}].concat(q([])));this.ve={DuckieChatResponseCitationLink:201128};this.experimentsService=p(lA)},BPa=function(a){a=a.getTitle()||a.getUrl();return a.length>30?a.substring(0,27)+"...":a},yPa=function(a,b){var c=a.messageData().id;if(c){var d,e=a.duckieEventTrackerService,f=new cm;var g=new kC;var k=b.getUrl();g=pj(g,1,k);k=b.getIconUrl();g=pj(g,3,k);am(e,
bm(zJc(f,g.setIsPrivateDocument(b.getIsPrivateDocument())).setMessageId(c).setSessionId((d=a.messageData().sessionId)!=null?d:"")),201128)}};W$c.\u0275fac=function(a){return new (a||W$c)(Ye(cD))};
W$c.\u0275cmp=D({type:W$c,selectors:[["message-citations"]],inputs:{messageData:[1,"messageData"]},decls:2,vars:2,consts:[[1,"references-title","gmat-subhead-2"],[1,"citation-item","flex-row","align-items-center","gap-s","padded-s-bottom"],["aria-hidden","true","fontSet","google-symbols",1,"external-icon"],["aria-hidden","true","alt","Icon for this cited website.",1,"citation-icon",3,"src"],["target","_blank",3,"click","href","ve","veClick","veImpression"],[1,"external-chip","citation-chip","flex-row",
"align-items-center","gap-xs","rounded-full"],[1,"margin-xs-left"],[1,"recitation-sources-list","margin-xs-top"],[1,"citation-item"],[1,"flex-row","align-items-center","gap-s","type-xs"]],template:function(a,b){a&1&&(F(0,APa,4,0),F(1,DPa,5,0));a&2&&(G(b.citedNonRecitationDocuments().length>0?0:-1),B(),G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?1:-1))},dependencies:[Yx,Fy,Dy,RL,bD,aD],styles:[".references-title[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:12px;padding:8px 0}.external-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;margin:-1px;padding-right:8px;width:18px}.citation-icon[_ngcontent-%COMP%]{height:16px;padding-right:8px;width:16px}.citation-item[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.external-chip[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);border:1px solid var(--tonal-yellow)}.external-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--tonal-icon-yellow)}.execution-metadata-container[_ngcontent-%COMP%]{max-width:680px}.recitation-sources-list[_ngcontent-%COMP%]{-webkit-padding-start:12px;-moz-padding-start:12px;padding-inline-start:12px}.recitation-sources-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]::marker{font-size:.8em}.no-sources-content[_ngcontent-%COMP%]{color:var(--text-default);font-size:12px;font-weight:400;line-height:16px}"],
changeDetection:0});var X$c=["customMessageCitations"],SL=function(){this.messageData=Og.required.apply(Og,q([]));this.messageCitationsTemplate=p(V$c,{optional:!0});this.customMessageCitations=Pg.apply(null,["customMessageCitations"].concat(q([{read:fg}])))};SL.prototype.ngAfterViewInit=function(){this.messageCitationsTemplate&&this.customMessageCitations()&&(this.componentRef=this.customMessageCitations().createComponent(this.messageCitationsTemplate),this.componentRef.instance.messageData=ng.apply(null,[this.messageData()].concat(q([]))))};
SL.\u0275fac=function(a){return new (a||SL)};SL.\u0275cmp=D({type:SL,selectors:[["message-citations-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessageCitations,X$c,fg);a&2&&pg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customMessageCitations",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,EPa,2,0,"ng-container")(1,FPa,1,1,"message-citations",1);a&2&&G(b.messageCitationsTemplate?0:1)},dependencies:[Yx,W$c],encapsulation:2,changeDetection:0});var TL=function(){this.expansionStates=new Map};TL.prototype.isExpanded=function(a){var b;return(b=this.expansionStates.get(a))!=null?b:!1};TL.\u0275fac=function(a){return new (a||TL)};TL.\u0275prov=Fc({token:TL,factory:TL.\u0275fac,providedIn:"root"});var UL=function(){this.duckieLoadingPhrases="Quacking the code...;Getting my ducks in a row...;Paddling through the algorithms...;Ruffling some feathers in the neural net...;Waddling towards an answer...;This might be a wild goose chase... hold on.;Just winging it...;Consulting the pond of knowledge...;Don't get your feathers in a ruffle...;Filtering the data stream...;Hope this response fits the bill...;Compiling the quack-end...;My logic is im-peck-able.;Putting this on your bill...;Diving deep for the best data...;Everything is just ducky.;Warming up the breadcrumb processors...;What time do I wake up? At the quack of dawn.;Let's get this bread... crumb of information.;Preening my algorithms...;Making sure this isn't a fowl response...;This is some fowl language... (the code, I mean).;Taking to this like a duck to water...;Letting bad data roll off like water off a duck's back.;No need to duck and cover, I'm on it.;I'm no sitting duck, I'm processing!;What's a duck's favorite ballet? The Nutquacker.;Why was the duck a good detective? He always quacked the case.;Sorting the pecking order of information...;Deploying the rubber duck for debugging...;This response is anything but poultry.;Fetching results from the duck-umentation...;Down-loading the necessary files...;I've got a bill-ion ideas... narrowing it down.;Flapping my wings at ludicrous speed...;Migrating south for the winter... I mean, to a different server.;Don't worry, I'm a professional quack.;Let me take a quack at it.;Quack-ulating the possibilities...;Checking the web... feet and internet.;This is sure to quack you up.;I find your request... duck-lightful.;This is going swimmingly.;I'm feeling quite buoyant about this query.;One moment, preening my code.;Just hatching a new idea...;Don't count your ducks before they've hatched.;This better be all it's quacked up to be.;Running a bill-d... I mean, build.;Aflack-ing the servers for information...;I'm not just winging it, I have a plan!;Quacking the code;Loading quack-er-jack style;Preparing for the quack-ening;Making a quick quack-stop;Awaiting the final quack of approval;The server is singing a honking good tune;Getting the honk-key to the files;The little peep of success is coming;This is going to be quack-tastic;Just a moment, I'm quack-sperimenting;Running a quack-diagnosis;Thinking... *paddles silently*;The server is making happy honks;About to quack open the results;Data streams are quacking along;The data is about to peep out;Finishing the final quack-ter of the load;Making sure all the duckweed is cleared;The server is in a puddle of thought;Putting on my gaiters;Thinking with grace and paddling underneath;Time to dive into the next task;Splish-splash, thinking fast;Warming up the brood of results".split(";")},
Y$c=function(a){return a.duckieLoadingPhrases[Math.floor(Math.random()*a.duckieLoadingPhrases.length)]};UL.\u0275fac=function(a){return new (a||UL)};UL.\u0275prov=Fc({token:UL,factory:UL.\u0275fac,providedIn:"root"});var JPa=function(a){return{parts:a}},PPa=function(a){return{part:a}},Z$c=new fd("MessagePartsTemplate"),VL=function(a,b){var c=this;this.elementRef=a;this.markdownService=b;this.executionMetadata=Og.required.apply(Og,q([]));this.executionMetadata$=Tya(this.executionMetadata);this.hasRedactions=Og.required.apply(Og,q([]));this.shouldExpand=Og.apply(null,[!1].concat(q([])));this.isStreamingThoughts=Og.required.apply(Og,q([]));this.isStreamingThoughts$=Tya(this.isStreamingThoughts);this.messageId=Og.required.apply(Og,
q([]));this.phrasePool$=this.executionMetadata$.pipe(A(function(d){return $$c(c,d)}),pf(function(d,e){return d.length!==e.length?!1:d.every(function(f,g){return f.text===e[g].text&&f.isFunctionCall===e[g].isFunctionCall})}),zf([]));this.messageParts=new Nj([]);this.experimentsService=p(lA);this.jokesService=p(UL);this.messagePartsService=p(TL);this.duckieEventTrackerService=p(cD);this.id=eta();this.messagePartData=new Nj({id:this.id,isExpanded:this.shouldExpand(),hiddenMessageParts:[],hasAnyThought:!1});
this.messagePartsElement=this.elementRef.nativeElement;this.duckieLoadingPhrase$=le([this.phrasePool$,this.isStreamingThoughts$]).pipe(Af(function(d){var e=m(d);d=e.next().value;if(!e.next().value)return ee(Y$c(c.jokesService));d=[].concat(q(d));var f=function(g){return g.length>0?g.shift():{text:Y$c(c.jokesService),isFunctionCall:!1}};e=f(d);return ee({phrase:e,queue:d}).pipe(nla(function(g){return te(5E3).pipe(A(function(){return{phrase:f(g.queue),queue:g.queue}}))}),A(function(g){return g.phrase.text}))}),
zf(Y$c(this.jokesService)),pf())};
VL.prototype.ngOnChanges=function(){var a=this,b,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:if(!a.executionMetadata()){k.jumpTo(0);break}b=aad(a,a.executionMetadata());c=m(b);d=c.next();case 3:if(d.done){k.jumpTo(5);break}e=d.value;if(!e.text){k.jumpTo(4);break}return z(k,bad(a,e.text),7);case 7:e.html=k.yieldResult;case 4:d=c.next();k.jumpTo(3);break;case 5:a.messageParts.next(b),g=(f=a.messagePartsService.isExpanded(a.id))!=null?f:!a.hasRedactions()&&a.shouldExpand(),a.messagePartsService.expansionStates.set(a.id,
g),a.messagePartData.next({id:a.id,isExpanded:g,hiddenMessageParts:b,hasAnyThought:b.some(function(l){return l.isThought})}),ce(k)}})};
var $$c=function(a,b){var c=[];c.push({text:Y$c(a.jokesService),isFunctionCall:!1});b&&aad(a,b).forEach(function(d){d.functionCalls.forEach(function(e){var f=c.push,g=e.name;e=Array.from(e.args.entries());var k="";if(e.length>0){var l=m(e[0]);k=l.next().value;l=l.next().value;l.startsWith('"')&&l.endsWith('"')&&(l=l.slice(1,-1));k=" ("+k+': "'+l+'")';e.length>1&&(k+="...")}f.call(c,{text:"Executing: "+g+k,isFunctionCall:!0})})});return c},aad=function(a,b){var c=[];(b==null?void 0:Ci(b,EA,9,Di()).flatMap(function(d){return d.getPartsList()})).forEach(function(d){var e=
[],f,g=(f=d.getText())!=null?f:"";if(d.hasFunctionCall()){var k=new Map;f=d.getFunctionCall().getName();var l,r;(r=(l=d.getFunctionCall().getArgs())==null?void 0:wc(l,1,zA,Vb))==null||r.forEach(function(w,x){w=cad(a,w);k.set(x,w)});e.push({name:f,args:k})}c.push({text:g,functionCalls:e,isThought:d.getThought()})});return c},cad=function(a,b){var c="";if(b.hasStringValue())c='"'+b.getStringValue()+'"';else if(DXa(b,AA))c=String(em(b,Ii(b,AA,2)));else if(Dyc(b,Ii(b,AA,4))!=null)c=String(Gi(b,Ii(b,AA,
4)));else if(Ri(b,BA,6,AA)){var d;c="["+((d=$l(b,BA,6,AA))==null?void 0:d.getValuesList().map(function(g){return cad(a,g)}).join(", "))+"]"}else if(Ri(b,yA,5,AA)){var e=[],f;(f=$l(b,yA,5,AA))==null||wc(f,1,zA,Vb).forEach(function(g,k){e.push(k+": "+cad(a,g))});c="{"+e.join(", ")+"}"}return c},bad=function(a,b){return y(function(c){return c.nextAddress==1?z(c,cNc(a.markdownService,b),2):c.return(c.yieldResult||Bh(b))})};VL.\u0275fac=function(a){return new (a||VL)(Ye(Jd),Ye(iD))};
VL.\u0275cmp=D({type:VL,selectors:[["message-parts"]],inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"],messageId:[1,"messageId"]},features:[bx],decls:6,vars:3,consts:[["messagePartContent",""],["functionCallDisplay",""],[1,"padding-xs","rounded-s","message-parts-container"],[1,"gmat-body-2","flex-row"],["matButton","","aria-label","Toggle Duckie thoughts panel","aria-controls","duckie-thoughts-content",
1,"thinking-button",3,"click"],["iconPositionEnd",""],["id","duckie-thoughts-content",1,"rounded-s","function-calls-panel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","indeterminate",1,"thinking-button-spinner","align-self-center","margin-auto-y","margin-s-right",3,"diameter"],[1,"padded-top","fit-content-width","message-part-text","gmat-body-2",3,"innerHtml"],[1,"function-call-wrapper","flex-column","gap-s","margin-s-top"],[1,"function-call"],[1,"gmat-body-2"],[1,"bold"],[1,"flex-column"],
[1,"kv-pair","margin-s-left","gmat-body-2"],[1,"key"],[1,"value"]],template:function(a,b){a&1&&(F(0,NPa,2,1),T(1,"async"),E(2,SPa,2,0,"ng-template",null,0,Mg)(4,VPa,3,0,"ng-template",null,1,Mg));if(a&2){var c;G((c=U(1,1,b.messagePartData))?0:-1,c)}},dependencies:[Yx,Kx,iB,gB,cB,Fy,Dy,pK,kK,jK,rI,Lx],styles:["[_ngcontent-%COMP%]:root{--blue-50:#e8f0fe;--blue-100:#d2e3fc;--blue-200:#aecbfa;--blue-300:#8ab4f8;--blue-400:#669df6;--blue-500:#4285f4;--blue-600:#1a73e8;--blue-700:#1967d2;--blue-800:#185abc;--blue-900:#174ea6;--blue:var(--blue-600);--red-50:#fce8e6;--red-100:#fad2cf;--red-200:#f6aea9;--red-300:#f28b82;--red-400:#ee675c;--red-500:#ea4335;--red-600:#d93025;--red-700:#c5221f;--red-800:#b31412;--red-900:#a50e0e;--red:var(--red-600);--yellow-50:#fef7e0;--yellow-100:#feefc3;--yellow-200:#fde293;--yellow-300:#fdd663;--yellow-400:#fcc934;--yellow-500:#fbbc04;--yellow-600:#f9ab00;--yellow-700:#f29900;--yellow-800:#ea8600;--yellow-900:#e37400;--yellow:var(--yellow-600);--green-50:#e6f4ea;--green-100:#ceead6;--green-200:#a8dab5;--green-300:#81c995;--green-400:#5bb974;--green-500:#34a853;--green-600:#1e8e3e;--green-700:#188038;--green-800:#137333;--green-900:#0d652d;--green:var(--green-600);--white:#fff;--grey-50:#f8f9fa;--grey-100:#f1f3f4;--grey-200:#e8eaed;--grey-300:#dadce0;--grey-400:#bdc1c6;--grey-500:#9aa0a6;--grey-600:#80868b;--grey-700:#5f6368;--grey-800:#3c4043;--grey-900:#202124;--black:var(--grey-900);--orange-50:#feefe3;--orange-100:#fedfc8;--orange-200:#fdc69c;--orange-300:#fcad70;--orange-400:#fa903e;--orange-500:#fa7b17;--orange-600:#e8710a;--orange-700:#d56e0c;--orange-800:#c26401;--orange-900:#b06000;--pink-50:#fde7f3;--pink-100:#fdcfe8;--pink-200:#fba9d6;--pink-300:#ff8bcb;--pink-400:#ff63b8;--pink-500:#f439a0;--pink-600:#e52592;--pink-700:#c92786;--pink-800:#b80672;--pink-900:#9c166b;--purple-50:#f3e8fd;--purple-100:#e9d2fd;--purple-200:#d7aefb;--purple-300:#c58af9;--purple-400:#af5cf7;--purple-500:#a142f4;--purple-600:#9334e6;--purple-700:#8430ce;--purple-800:#7627bb;--purple-900:#681da8;--cyan-50:#e4f7fb;--cyan-100:#cbf0f8;--cyan-200:#a1e4f2;--cyan-300:#78d9ec;--cyan-400:#4ecde6;--cyan-500:#24c1e0;--cyan-600:#12b5cb;--cyan-700:#129eaf;--cyan-800:#098591;--cyan-900:#007b83}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{background:var(--tonal-fill-grey)}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]     .mdc-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.function-calls-panel[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);max-height:1000vh;overflow:auto}.function-calls-panel.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-calls-panel.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button[_ngcontent-%COMP%]{margin-bottom:16px;padding-left:16px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.function-call-wrapper[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);padding:8px;overflow:auto hidden;margin-top:0;max-height:1000vh}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:4px}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]{color:var(--tonal-purple)}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{color:var(--tonal-green)}.function-call-wrapper.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-call-wrapper.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button-spinner[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.message-parts-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]{border-radius:24px;border:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;width:28px;height:20px;margin-inline:2px;margin:0;padding:1px 6px}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--text-default);font-size:1.125em;font-weight:500;line-height:normal;width:auto;height:auto;-webkit-transform:translateY(1px);transform:translateY(1px);-webkit-transition:-webkit-transform 333ms;transition:-webkit-transform 333ms;transition:transform 333ms;transition:transform 333ms,-webkit-transform 333ms}.message-parts-container[_ngcontent-%COMP%]   .expand-button.is-expanded[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>:last-child{display:inline-block}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>p:last-child{display:inline}"],
changeDetection:0});var dad=["customMessageParts"],WL=function(){this.executionMetadata=Og.required.apply(Og,q([]));this.hasRedactions=Og.required.apply(Og,q([]));this.shouldExpand=Og.apply(null,[!1].concat(q([])));this.isStreamingThoughts=Og.apply(null,[!1].concat(q([])));this.messageId=Og.apply(null,[""].concat(q([])));this.messagePartsTemplate=p(Z$c,{optional:!0});this.customMessageParts=Pg.apply(null,["customMessageParts"].concat(q([{read:fg}])))};
WL.prototype.ngAfterViewInit=function(){this.messagePartsTemplate&&this.customMessageParts()&&(this.componentRef=this.customMessageParts().createComponent(this.messagePartsTemplate),this.componentRef.instance.executionMetadata=ng.apply(null,[this.executionMetadata()].concat(q([]))),this.componentRef.instance.hasRedactions=ng.apply(null,[this.hasRedactions()].concat(q([]))),this.componentRef.instance.shouldExpand=ng.apply(null,[this.shouldExpand()].concat(q([]))))};
WL.\u0275fac=function(a){return new (a||WL)};
WL.\u0275cmp=D({type:WL,selectors:[["message-parts-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessageParts,dad,fg);a&2&&pg()},inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"],messageId:[1,"messageId"]},decls:2,vars:1,consts:[["customMessageParts",""],[3,"executionMetadata","messageId","hasRedactions","shouldExpand","isStreamingThoughts"]],template:function(a,b){a&1&&F(0,WPa,2,0,
"ng-container")(1,XPa,1,5,"message-parts",1);a&2&&G(b.messagePartsTemplate?0:1)},dependencies:[Yx,VL],encapsulation:2,changeDetection:0});var ead=function(){};ead.\u0275fac=function(a){return new (a||ead)};
ead.\u0275cmp=D({type:ead,selectors:[["typing-dots"]],hostAttrs:[1,"flex-row","gap"],decls:4,vars:0,consts:[[1,"typing"]],template:function(a){a&1&&(Rf(0,"span",0),Tf(1,"span")(2,"span")(3,"span"),Sf())},styles:['.typing[_ngcontent-%COMP%]{height:24px;position:relative;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;background:var(--tonal-fill-grey);border-radius:30px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:0 8px;gap:4px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}@media (max-width:800px){.typing[_ngcontent-%COMP%]{margin-bottom:8px}}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;-webkit-animation:_ngcontent-%COMP%_blink 1.5s infinite;animation:_ngcontent-%COMP%_blink 1.5s infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both;background:var(--tonal-grey);border-radius:50%;content:"";height:4px;width:4px}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.use-compact-view[_nghost-%COMP%]   .typing[_ngcontent-%COMP%]{margin-bottom:8px}@-webkit-keyframes _ngcontent-%COMP%_blink{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}'],changeDetection:0});var fad=new fd("MessageTemplate"),XL=function(a,b){var c=this;this.elementRef=a;this.threadService=b;this.messageData=Og.required.apply(Og,q([]));this.useCompactView=Og.apply(null,[!1].concat(q([])));this.snackBar=p(nB);this.overridesService=p(wA);this.duckieEventTrackerService=p(cD);this.duckieFeedbackService=p(NL);this.avatarUrl="https://moma-teams-photos.corp.google.com/photos/me?sz=32";this.codeBlocksUpdated=this.graphvizElementsUpdated=!1;this.hasHiddenMessages=Zg.apply(null,[function(){var d=
c.messageData();return!d.isUser&&!!d.executionMetadata&&Ci(d.executionMetadata,EA,9,Di()).length>0}].concat(q([])));this.experimentsService=p(lA);this.recitationSources=Zg.apply(null,[function(){var d,e;return(e=(d=c.messageData().relatedResources)==null?void 0:d.flatMap(function(f){var g,k;return(k=(g=km(f))==null?void 0:lm(g).filter(function(l){return yi(l,lFc,8)}))!=null?k:[]}))!=null?e:[]}].concat(q([])));this.agentDisplayName=Zg.apply(null,[function(){if(!c.messageData().isUser)return c.overridesService.overrideAgentMessageDisplayName}].concat(q([])));
this.agentIconUrl=Zg.apply(null,[function(){c.messageData()}].concat(q([])));this.messageElement=this.elementRef.nativeElement;this.isDuckieThinking$=this.threadService.isDuckieThinking$;this.showResponseMetadata$=this.overridesService.debugDisplayOptions$.pipe(A(function(d){return d.showResponseMetadata}))};
XL.prototype.ngAfterViewChecked=function(){var a=this;return y(function(b){var c=Array.from(a.messageElement.querySelectorAll("message .text-container a"));c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.getAttribute("target")===null&&d.setAttribute("target","_blank"),d.querySelector("del")!==null&&d.setAttribute("title","Broken link");a.codeBlocksUpdated||gad(a);if(!a.messageData().isUser&&!a.graphvizElementsUpdated&&(c=a.messageData().text)){d=Array.from(a.messageElement.querySelectorAll("g3mark-svg"));
c=[].concat(q(c.matchAll(/```dot\n([\s\S]*?)\n```/g)));d=m(d.entries());for(var e=d.next();!e.done;e=d.next()){var f=m(e.value);e=f.next().value;var g=f=f.next().value;f=document.createElement("div");f.classList.add("control-bar");g.appendChild(f);var k=f;g=g.dataset.graphId;g="https://graphviz.corp.google.com/#"+(g===void 0?"":g);var l=document.createElement("a");l.classList.add("open-in-new-tab-button");l.title="Open graphviz in new tab";l.ariaDisabled="false";l.target="_blank";$ra(l,g);k.appendChild(l);
had(a,f,c[e][1])}a.graphvizElementsUpdated=!0}ce(b)})};
var gad=function(a){var b=Array.from(a.messageElement.querySelectorAll("message .text-container pre")).filter(function(c){var d=c.parentElement;c=d==null?void 0:d.classList.contains("execution-metadata-code");d=d==null?void 0:d.classList.contains("dot-error");return!(c||d)});b.length>0&&(iad(a,b),a.codeBlocksUpdated=!0)},iad=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("div");d.classList.add("code-block-addition-container");var e=void 0,f=((e=
c.querySelector("code"))==null?void 0:e.textContent)||"";jad(a,c,d,f);kad(a,c,d,f);f=void 0;e=Array.from(((f=c.querySelector("code"))==null?void 0:f.classList)||[]);f="CODE BLOCK";e.length>0&&(f=e.filter(function(g){return g.startsWith("language-")})[0].slice(9).toUpperCase());e=document.createElement("div");e.classList.add("code-title");e.textContent=f;f=document.createElement("span");f.classList.add("spacer");d.prepend(e,f);c.prepend(d)}},kad=function(a,b,c,d){if(!b.querySelector(".copy-button")){var e=
document.createElement("button");e.classList.add("copy-button");e.setAttribute("aria-label","Copy code to clipboard");e.addEventListener("click",function(){var f,g,k;return y(function(l){if(l.nextAddress==1)return window.isSecureContext&&d?z(l,navigator.clipboard.writeText(d||""),3):l.jumpTo(0);if(l.nextAddress!=4)return f=document.createElement("div"),f.classList.add("copy-confirmation"),f.textContent="Copied to clipboard",f.setAttribute("role","alert"),b.appendChild(f),setTimeout(function(){b.removeChild(f)},
5E3),g=a.messageData().id,k=(new wB).setFeedbackType(3).setMessageId(g),z(l,a.duckieFeedbackService.provideFeedback(k),4);dD(a.duckieEventTrackerService,201931,a.messageData());ce(l)})});c.appendChild(e)}},jad=function(a,b,c,d){b.querySelector("code").classList.contains("language-sql")&&(b=document.createElement("a"),b.classList.add("plx-button"),b.tabIndex=0,b.title="Open in Plx",b.ariaDisabled="false",b.target="_blank",window.isSecureContext&&d&&(d="https://plx.corp.google.com/scripts2/?a=go&engine=F1&sql="+
encodeURIComponent(d),$ra(b,d)),b.addEventListener("click",function(){return y(function(e){dD(a.duckieEventTrackerService,204817,a.messageData());ce(e)})}),c.appendChild(b))},had=function(a,b,c){var d=document.createElement("button");d.classList.add("copy-button");d.title="Copy Graphviz code to clipboard";b.appendChild(d);d.addEventListener("click",function(){var e,f,g;return y(function(k){if(k.nextAddress==1)return window.isSecureContext&&c?z(k,navigator.clipboard.writeText(c),3):k.jumpTo(0);if(k.nextAddress!=
4)return e=document.createElement("div"),e.classList.add("copy-confirmation"),e.textContent="Copied to clipboard",b.appendChild(e),setTimeout(function(){b.removeChild(e)},5E3),f=a.messageData().id,g=(new wB).setFeedbackType(3).setMessageId(f),z(k,a.duckieFeedbackService.provideFeedback(g),4);dD(a.duckieEventTrackerService,252593,a.messageData());ce(k)})})},mQa=function(a){var b=b===void 0?!0:b;var c=c===void 0?!1:c;var d,e,f,g;return y(function(k){if(k.nextAddress==1)return f=e=d="",b&&(d=a.getSourcesMarkdown()),
c&&(e=lad(a)),g=a.messageData().text||"",e.length>0&&(f+="### Thinking:\n\n"+e+"\n\n### Response:\n\n"),g.length>0&&(f+=g),d.length>0&&(f+="\n\n### Sources:\n"+d),Yd(k,2),z(k,navigator.clipboard.writeText(f),4);if(k.nextAddress!=2)return a.snackBar.open("Copied message text to clipboard.","Dismiss",{duration:2E3}),bt(k,0);be(k);a.snackBar.open("Failed to copy message text to clipboard.","Dismiss",{duration:4E3});ce(k)})};
XL.prototype.getSourcesMarkdown=function(){var a="",b,c;(b=this.messageData())==null||(c=b.relatedResources)==null||c.forEach(function(d){var e;(d=(e=km(d))==null?void 0:lm(e))&&d.length>0&&d.forEach(function(f){a+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return a};
var lad=function(a){var b="",c,d,e;(e=(c=a.messageData())==null?void 0:(d=c.executionMetadata)==null?void 0:Ci(d,EA,9,Di()).flatMap(function(f){return f.getPartsList()}))==null||e.forEach(function(f){var g;f=(g=f.getText())!=null?g:"";f.length>0&&(b+=f+"\n\n")});return b};XL.\u0275fac=function(a){return new (a||XL)(Ye(Jd),Ye(zD))};
XL.\u0275cmp=D({type:XL,selectors:[["message"]],hostAttrs:[1,"flex-row","gap","margin-bottom"],hostVars:6,hostBindings:function(a,b){a&2&&wg("is-user",b.messageData().isUser)("is-duckie",!b.messageData().isUser)("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"]},decls:15,vars:12,consts:[["alt","Profile img for me",1,"user",3,"src"],["alt","Duckie logo",1,"duckie-logo","padded-xs",3,"src","custom-logo"],[1,"text-container","flex-column",
"gap-xs","full-width"],[1,"name","gmat-subhead-2"],[3,"hidden","messageId","executionMetadata","hasRedactions","shouldExpand","isStreamingThoughts"],[1,"recitation-sources-banner","margin-bottom","gmat-body-2","gap-s","type-s","padded-s","margin-s-top","align-items-center"],[1,"message-text","italic","gmat-body-2"],[1,"message-text","gmat-body-2","raw-text-only"],[3,"interactiveElements"],[3,"use-compact-view"],[1,"message-actions","flex-row","align-items-center"],["alt","Duckie logo",1,"duckie-logo",
"padded-xs",3,"src"],[1,"warning-icon"],["href","http://go/code-ai-policy-faq","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs","open-in-new-icon"],["inline",""],[1,"message-text","gmat-body-2",3,"innerHtml"],[3,"messageData"],["mat-icon-button","","aria-label","Copy message to clipboard","matTooltip","Copy message",1,"copy-message-button",3,"click"]],template:function(a,b){a&1&&(F(0,YPa,1,1,"img",0)(1,ZPa,1,3,"img",1),K(2,"div",2)(3,"h3",3),F(4,$Pa,1,0)(5,aQa,1,1),L(),M(6,"message-parts-wrapper",
4),F(7,bQa,8,0,"div",5),F(8,dQa,2,2)(9,eQa,2,0,"p",6)(10,fQa,2,1,"p",7)(11,gQa,1,1,"interactive-elements-wrapper",8)(12,hQa,1,2,"typing-dots",9),F(13,kQa,3,4),F(14,nQa,5,1,"div",10),L());if(a&2){var c;G(b.messageData().isUser?0:1);B(4);G(b.messageData().isUser?4:5);B(2);var d;I("hidden",!b.hasHiddenMessages())("messageId",(d=b.messageData().id)!=null?d:"")("executionMetadata",b.messageData().executionMetadata)("hasRedactions",b.messageData().hasRedactions)("shouldExpand",!1)("isStreamingThoughts",
b.messageData().isStreamingThoughts);B();G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?7:-1);B();G((c=b.messageData().textHtml)?8:b.messageData().hasRedactions?9:b.messageData().isUser?10:b.messageData().interactiveElements&&b.messageData().interactiveElements.length>0?11:12,c);B(5);G(!b.messageData().isUser&&b.messageData().text?13:-1);B();G(b.messageData().text?14:-1)}},dependencies:[Yx,PL,QL,iB,gB,eB,Fy,Dy,SL,I$c,WL,ead,Lx],styles:['[_ngcontent-%COMP%]:root{--blue-50:#e8f0fe;--blue-100:#d2e3fc;--blue-200:#aecbfa;--blue-300:#8ab4f8;--blue-400:#669df6;--blue-500:#4285f4;--blue-600:#1a73e8;--blue-700:#1967d2;--blue-800:#185abc;--blue-900:#174ea6;--blue:var(--blue-600);--red-50:#fce8e6;--red-100:#fad2cf;--red-200:#f6aea9;--red-300:#f28b82;--red-400:#ee675c;--red-500:#ea4335;--red-600:#d93025;--red-700:#c5221f;--red-800:#b31412;--red-900:#a50e0e;--red:var(--red-600);--yellow-50:#fef7e0;--yellow-100:#feefc3;--yellow-200:#fde293;--yellow-300:#fdd663;--yellow-400:#fcc934;--yellow-500:#fbbc04;--yellow-600:#f9ab00;--yellow-700:#f29900;--yellow-800:#ea8600;--yellow-900:#e37400;--yellow:var(--yellow-600);--green-50:#e6f4ea;--green-100:#ceead6;--green-200:#a8dab5;--green-300:#81c995;--green-400:#5bb974;--green-500:#34a853;--green-600:#1e8e3e;--green-700:#188038;--green-800:#137333;--green-900:#0d652d;--green:var(--green-600);--white:#fff;--grey-50:#f8f9fa;--grey-100:#f1f3f4;--grey-200:#e8eaed;--grey-300:#dadce0;--grey-400:#bdc1c6;--grey-500:#9aa0a6;--grey-600:#80868b;--grey-700:#5f6368;--grey-800:#3c4043;--grey-900:#202124;--black:var(--grey-900);--orange-50:#feefe3;--orange-100:#fedfc8;--orange-200:#fdc69c;--orange-300:#fcad70;--orange-400:#fa903e;--orange-500:#fa7b17;--orange-600:#e8710a;--orange-700:#d56e0c;--orange-800:#c26401;--orange-900:#b06000;--pink-50:#fde7f3;--pink-100:#fdcfe8;--pink-200:#fba9d6;--pink-300:#ff8bcb;--pink-400:#ff63b8;--pink-500:#f439a0;--pink-600:#e52592;--pink-700:#c92786;--pink-800:#b80672;--pink-900:#9c166b;--purple-50:#f3e8fd;--purple-100:#e9d2fd;--purple-200:#d7aefb;--purple-300:#c58af9;--purple-400:#af5cf7;--purple-500:#a142f4;--purple-600:#9334e6;--purple-700:#8430ce;--purple-800:#7627bb;--purple-900:#681da8;--cyan-50:#e4f7fb;--cyan-100:#cbf0f8;--cyan-200:#a1e4f2;--cyan-300:#78d9ec;--cyan-400:#4ecde6;--cyan-500:#24c1e0;--cyan-600:#12b5cb;--cyan-700:#129eaf;--cyan-800:#098591;--cyan-900:#007b83}[_nghost-%COMP%]{scroll-margin-top:8px}@media (max-width:800px){.is-user[_nghost-%COMP%]{padding:12px 12px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--primary-container);border-radius:20px 4px 20px 20px}.is-duckie[_nghost-%COMP%]{padding:8px 8px 0}.duckie-logo[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{display:none}.name[_ngcontent-%COMP%]{width:0;height:0;overflow:hidden;margin:0;padding:0;position:absolute}}.use-compact-view.is-user[_nghost-%COMP%]{padding:12px 12px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--primary-container);border-radius:20px 4px 20px 20px}.use-compact-view.is-user[_nghost-%COMP%]   .message-actions[_ngcontent-%COMP%]{display:none}.use-compact-view.is-duckie[_nghost-%COMP%]{padding:8px 8px 0}.use-compact-view[_nghost-%COMP%]   .duckie-logo[_ngcontent-%COMP%], .use-compact-view[_nghost-%COMP%]   .user[_ngcontent-%COMP%]{display:none}.use-compact-view[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{width:0;height:0;overflow:hidden;margin:0;padding:0;position:absolute}.name.gmat-subhead-2[_ngcontent-%COMP%]{margin:unset}.duckie-logo[_ngcontent-%COMP%]{border-radius:24px;height:24px;width:24px;background-color:var(--tonal-fill-blue)}.custom-logo.duckie-logo[_ngcontent-%COMP%]{border-radius:32px;height:32px;width:32px;mix-blend-mode:luminosity;opacity:.5;padding:0}.user[_ngcontent-%COMP%]{border-radius:32px;height:32px;width:32px}.user-text[_ngcontent-%COMP%]{white-space:pre-wrap}.message-text[_ngcontent-%COMP%]{font-family:Google Sans,Roboto;overflow-wrap:anywhere;margin:0;white-space:normal}.message-text.raw-text-only[_ngcontent-%COMP%]{white-space:pre-wrap;-webkit-padding-after:.8em;padding-block-end:.8em}.message-text[_ngcontent-%COMP%]     p{word-break:break-word}.message-text[_ngcontent-%COMP%]     hr{height:0;border:0;border-top:1px solid var(--hairline)}.message-text[_ngcontent-%COMP%]     h1, .message-text[_ngcontent-%COMP%]     h2, .message-text[_ngcontent-%COMP%]     h3, .message-text[_ngcontent-%COMP%]     h4, .message-text[_ngcontent-%COMP%]     h5{font-weight:500}.message-text[_ngcontent-%COMP%]     h1{font-size:160%;font-weight:700}.message-text[_ngcontent-%COMP%]     h2{font-size:160%}.message-text[_ngcontent-%COMP%]     h3{font-size:140%}.message-text[_ngcontent-%COMP%]     h4{font-size:120%}.message-text[_ngcontent-%COMP%]     h5{font-size:100%}.message-text[_ngcontent-%COMP%]     h1, .message-text[_ngcontent-%COMP%]     h2, .message-text[_ngcontent-%COMP%]     h3, .message-text[_ngcontent-%COMP%]     h4, .message-text[_ngcontent-%COMP%]     h5{margin:0;-webkit-margin-before:.8em;margin-block-start:.8em;-webkit-margin-after:.8em;margin-block-end:.8em}.message-text[_ngcontent-%COMP%]     blockquote, .message-text[_ngcontent-%COMP%]     hr, .message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     p, .message-text[_ngcontent-%COMP%]     ul{margin:0;-webkit-margin-before:.8em;margin-block-start:.8em;-webkit-margin-after:.8em;margin-block-end:.8em}.message-text[_ngcontent-%COMP%]    >:first-child{-webkit-margin-before:0;margin-block-start:0}.message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     ul{-webkit-padding-start:calc(var(--base-px, 1rem)*2);-moz-padding-start:calc(var(--base-px, 1rem)*2);padding-inline-start:calc(var(--base-px, 1rem)*2)}.message-text[_ngcontent-%COMP%]     blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.message-text[_ngcontent-%COMP%]     ul{list-style:initial}.message-text[_ngcontent-%COMP%]     ul ul{list-style:circle}.message-text[_ngcontent-%COMP%]     ul ul ul{list-style:square}.message-text[_ngcontent-%COMP%]     ol ol, .message-text[_ngcontent-%COMP%]     ol ul, .message-text[_ngcontent-%COMP%]     ul ol, .message-text[_ngcontent-%COMP%]     ul ul{margin:0}.message-text[_ngcontent-%COMP%]     li{-webkit-margin-after:.2em;margin-block-end:.2em}.message-text[_ngcontent-%COMP%]     code, .message-text[_ngcontent-%COMP%]     pre{background-color:var(--surface-secondary);border-radius:2px;font-family:Roboto Mono,monospace}.message-text[_ngcontent-%COMP%]     pre{border:1px solid var(--hairline);overflow-x:auto}.message-text[_ngcontent-%COMP%]     code{color:var(--markdown-code);padding:0 2px}.message-text[_ngcontent-%COMP%]     pre code{color:var(--text-high-contrast);padding:0}.message-text[_ngcontent-%COMP%]     pre{padding:8px 16px}.message-text[_ngcontent-%COMP%]     pre, .message-text[_ngcontent-%COMP%]     pre code{line-height:1.5}.message-text[_ngcontent-%COMP%]     img{max-width:100%}.message-text[_ngcontent-%COMP%]     a, .message-text[_ngcontent-%COMP%]     a code{color:var(--primary-default);text-decoration:none}.message-text[_ngcontent-%COMP%]     a code:visited, .message-text[_ngcontent-%COMP%]     a:visited{color:var(--markdown-link-visited)}.message-text[_ngcontent-%COMP%]     pre code a{color:inherit;text-decoration:underline}.message-text[_ngcontent-%COMP%]     a:hover{text-decoration:underline}.message-text[_ngcontent-%COMP%]     a:focus{outline:1px auto -webkit-focus-ring-color}.message-text[_ngcontent-%COMP%]     table{border-collapse:collapse;margin:1em 0}.message-text[_ngcontent-%COMP%]     td, .message-text[_ngcontent-%COMP%]     th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.message-text[_ngcontent-%COMP%]     th{text-align:left;vertical-align:bottom;word-break:keep-all}.message-text[_ngcontent-%COMP%]     div.table-overflow{overflow-x:auto}.message-text[_ngcontent-%COMP%]     input[type=checkbox]{vertical-align:middle}.message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     ul{-webkit-padding-start:calc(var(--base-px, 1rem)*16);-moz-padding-start:calc(var(--base-px, 1rem)*16);padding-inline-start:calc(var(--base-px, 1rem)*16)}.message-text[_ngcontent-%COMP%]     img:not(.citation-item){display:none}.message-text[_ngcontent-%COMP%]     pre{overflow-wrap:anywhere;position:relative;white-space:pre-wrap;border-radius:16px;border:none;padding:0 1em 1em}.message-text[_ngcontent-%COMP%]     .dot-error pre{color:var(--tonal-red);background:var(--tonal-fill-red)}.message-text[_ngcontent-%COMP%]     .dot-error pre:before{content:"Graphviz error: \\a";font-weight:700}.message-text[_ngcontent-%COMP%]     .code-block-addition-container{background-color:var(--tonal-fill-blue);border-bottom:3px solid var(--page-bg);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:.5em;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:2em;margin:0 -1em .5em;padding:.25em 1em}.message-text[_ngcontent-%COMP%]     .copy-button, .message-text[_ngcontent-%COMP%]     .open-in-new-tab-button, .message-text[_ngcontent-%COMP%]     .plx-button{background-color:transparent;background-size:1.125em;background-repeat:no-repeat;background-position-x:8px;background-position-y:8px;border:none;border-radius:100%;width:32px;height:32px}.message-text[_ngcontent-%COMP%]     .copy-button:hover, .message-text[_ngcontent-%COMP%]     .open-in-new-tab-button:hover, .message-text[_ngcontent-%COMP%]     .plx-button:hover{background-color:var(--hover);cursor:pointer}.message-text[_ngcontent-%COMP%]     .open-in-new-tab-button{background-image:url(https://www.gstatic.com/devnotify/open_in_new.svg);background-size:1.4em;background-position-x:7px;background-position-y:7px}.message-text[_ngcontent-%COMP%]     .open-in-new-tab-button.disabled{opacity:.5}.message-text[_ngcontent-%COMP%]     .copy-button{background-image:url(https://www.gstatic.com/devnotify/content_copy_icon.svg)}.message-text[_ngcontent-%COMP%]     .plx-button{background-image:url(https://static.corp.google.com/plx/favicons/plx_favicon_v2.png)}.message-text[_ngcontent-%COMP%]     .code-title{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:.8em;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.message-text[_ngcontent-%COMP%]     .copy-confirmation{background:var(--tonal-fill-green);border:1px solid var(--tonal-tint-green);border-radius:8px;color:var(--tonal-green);font-family:Google Sans,Roboto;font-size:12px;padding:4px 8px;margin-bottom:32px;position:absolute;right:10px;top:10px}.message-text[_ngcontent-%COMP%]     g3mark-svg{display:block;max-width:90cqw;border:1px solid var(--hairline);border-radius:8px;position:relative;margin-bottom:32px}.message-text[_ngcontent-%COMP%]     g3mark-svg div:has(svg){overflow:auto;border-radius:8px}.message-text[_ngcontent-%COMP%]     g3mark-svg .control-bar{position:absolute;bottom:-36px;right:0;width:100%;border-radius:20px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:8px;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;height:32px}.message-text[_ngcontent-%COMP%]     g3mark-svg .control-bar .copy-confirmation{right:8px;top:-36px}.message-text[_ngcontent-%COMP%]     p{white-space:pre-line}.message-text[_ngcontent-%COMP%]     p+p{margin-top:.75rem}.message-text[_ngcontent-%COMP%]     .g3mark-callout{position:relative;padding:.25em 2em;border-style:solid;border-color:transparent;border-width:0 0 0 3px;margin:.5em auto;width:90%}.message-text[_ngcontent-%COMP%]     .g3mark-callout .g3mark-callout__keyword{font-weight:500}.message-text[_ngcontent-%COMP%]     .g3mark-callout p{white-space:unset}.message-text[_ngcontent-%COMP%]     .g3mark-callout a{text-decoration:underline;padding:.2em .3em;border-radius:.3em;margin:0 -.3em}.message-text[_ngcontent-%COMP%]     .g3mark-callout a:focus, .message-text[_ngcontent-%COMP%]     .g3mark-callout a:hover{color:color-mix(in srgb,currentColor,var(--text-default) 50%);background-color:color-mix(in srgb,var(--page-bg),transparent 40%)}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout{padding-top:1em;padding-bottom:1em}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout .g3mark-callout__icon+*{margin-top:0}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout :last-child{margin-bottom:0}.message-text[_ngcontent-%COMP%]     .g3mark-callout__icon:before{position:absolute;font-size:1.25em;font-family:Google Symbols;left:.4em;top:.8em}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note{background-color:var(--tonal-fill-blue);border-left-color:var(--tonal-blue);color:var(--tonal-blue)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note a{color:var(--tonal-blue)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note .g3mark-callout__icon:before{content:"bookmark"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip{background-color:var(--tonal-fill-green);border-left-color:var(--tonal-green);color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip a{color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip .g3mark-callout__icon:before{content:"grade"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning{background-color:var(--tonal-fill-red);border-left-color:var(--tonal-red);color:var(--tonal-red)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning a{color:var(--tonal-red)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning .g3mark-callout__icon:before{content:"warning"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo{background-color:var(--tonal-fill-grey);border-left-color:var(--tonal-grey);color:var(--tonal-grey)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme a, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo a{color:var(--tonal-grey)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme .g3mark-callout__icon:before, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo .g3mark-callout__icon:before{content:"error_outline"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question{background-color:var(--tonal-fill-cyan);border-left-color:var(--tonal-cyan);color:var(--tonal-cyan)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question a{color:var(--tonal-cyan)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question .g3mark-callout__icon:before{content:"help"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important{background-color:var(--tonal-fill-orange);border-left-color:var(--tonal-orange);color:var(--tonal-orange)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important a{color:var(--tonal-orange)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important .g3mark-callout__icon:before{content:"priority_high"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr{background-color:var(--tonal-fill-purple);border-left-color:var(--tonal-purple);color:var(--tonal-purple)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary a, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr a{color:var(--tonal-purple)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary .g3mark-callout__icon:before, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr .g3mark-callout__icon:before{content:"sms"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice{background-color:var(--tonal-fill-green);border-left-color:var(--tonal-green);color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice a{color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice .g3mark-callout__icon:before{content:"check_circle"}message-metadata[_ngcontent-%COMP%]{container-type:inline-size}.message-actions[_ngcontent-%COMP%]{margin-left:-16px}.message-actions[_ngcontent-%COMP%]   .copy-message-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;color:var(--text-secondary);font-size:20px;padding:2px}.recitation-sources-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.recitation-sources-banner[_ngcontent-%COMP%]   .warning-icon[_ngcontent-%COMP%]{color:var(--tonal-yellow);font-variation-settings:"FILL" 1}.open-in-new-icon[_ngcontent-%COMP%]{margin-left:auto}.dark-mode   [_nghost-%COMP%]     .copy-button, .dark-mode   [_nghost-%COMP%]     .open-in-new-tab-button{-webkit-filter:invert(1);filter:invert(1)}.dark-mode   [_nghost-%COMP%]     .copy-button:hover, .dark-mode   [_nghost-%COMP%]     .open-in-new-tab-button:hover{background-color:var(--tonal-grey)}.dark-mode   [_nghost-%COMP%]     .message-text .plx-button:hover{background-color:var(--tonal-tint-grey)}'],
changeDetection:0});var mad=["customMessage"],YL=function(){this.messageData=Og.required.apply(Og,q([]));this.useCompactView=Og.apply(null,[!1].concat(q([])));this.messageTemplate=p(fad,{optional:!0});this.elementRef=p(Jd);this.customMessage=Pg.apply(null,["customMessage"].concat(q([{read:fg}])))};
YL.prototype.ngAfterViewInit=function(){this.messageTemplate&&this.customMessage()&&(this.componentRef=this.customMessage().createComponent(this.messageTemplate),this.componentRef.instance.messageData=ng.apply(null,[this.messageData()].concat(q([]))),this.componentRef.instance.useCompactView=ng.apply(null,[this.useCompactView()].concat(q([]))))};YL.\u0275fac=function(a){return new (a||YL)};
YL.\u0275cmp=D({type:YL,selectors:[["message-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customMessage,mad,fg);a&2&&pg()},hostAttrs:[1,"width-almost-full"],hostVars:2,hostBindings:function(a,b){a&2&&wg("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"]},decls:2,vars:1,consts:[["customMessage",""],[3,"messageData","useCompactView"]],template:function(a,b){a&1&&F(0,oQa,2,0,"ng-container")(1,pQa,1,2,"message",1);a&2&&G(b.messageTemplate?
0:1)},dependencies:[Yx,XL],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}"],changeDetection:0});var ZL=function(a,b){this.threadService=a;this.dialogRef=b;this.thread=p(PA).thread;this.inputValue="";nad(this)},nad=function(a){y(function(b){a.inputValue=a.thread.title;ce(b)})};ZL.prototype.updateTitle=function(){this.inputValue.length>0&&(QOc(this.threadService,this.inputValue),this.dialogRef.close())};ZL.\u0275fac=function(a){return new (a||ZL)(Ye(zD),Ye(NA))};
ZL.\u0275cmp=D({type:ZL,selectors:[["rename-chat-dialog"]],decls:17,vars:2,consts:[["mat-dialog-title",""],["appearance","outline","color","primary"],["matInput","","required","",3,"ngModelChange","ngModel"],["matIconSuffix","","mat-icon-button","","aria-label","clear",3,"click"],["aria-label","cancel"],["align","end"],["mat-flat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Rename chat"),L(),K(2,"mat-dialog-content")(3,
"mat-form-field",1)(4,"mat-label"),Q(5,"Title"),L(),K(6,"input",2),Cg("ngModelChange",function(c){Bg(b.inputValue,c)||(b.inputValue=c);return c}),L(),K(7,"mat-error"),Q(8,"This field is required"),L(),K(9,"button",3),N("click",function(){b.inputValue=""}),K(10,"mat-icon",4),Q(11,"cancel"),L()()()(),K(12,"mat-dialog-actions",5)(13,"button",6),Q(14," Cancel "),L(),K(15,"button",7),N("click",function(){return b.updateTitle()}),Q(16," Save "),L()());a&2&&(B(6),Ag("ngModel",b.inputValue),B(9),I("disabled",
b.inputValue.length<1))},dependencies:[xE,yj,$D,sE,gE,iB,gB,cB,eB,MJ,RA,TA,VA,UA,OD,BD,MD,ED,CD,GD,BE,PD,zE,Fy,Dy],styles:["[_nghost-%COMP%]{display:block;width:max(250 * var(--base-px,1rem),40vw)}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:12px}mat-form-field.mat-mdc-form-field[_ngcontent-%COMP%]{margin-top:4px;width:100%}mat-dialog-actions[_ngcontent-%COMP%]{margin:10px}"],changeDetection:0});var oad=function(a,b,c,d){this.opacity=1;this.age=0;this.x=a;this.y=b;this.size=Math.random()*(c.maxSize-c.minSize)+c.minSize;var e,f;a=Math.random()*((e=c.spread)!=null?e:0)-((f=c.spread)!=null?f:0)/2;var g;e=(((g=c.angle)!=null?g:0)+a)*(Math.PI/180);var k,l;g=((k=c.speed)!=null?k:0)*((l=c.speedVariation)!=null?l:0);var r;k=((r=c.speed)!=null?r:0)+Math.random()*g*2-g;this.vx=Math.cos(e)*k;this.vy=Math.sin(e)*k*-1;this.rotation=Math.random()*360;this.rotationSpeed=(Math.random()*2-1)*c.rotationSpeed;
var w,x,C;this.duration=Math.random()*(((w=c.maxDuration)!=null?w:0)-((x=c.minDuration)!=null?x:0))+((C=c.minDuration)!=null?C:0);this.gravity=c.gravity;this.drag=c.drag;var H;this.rotation3d=(H=c.rotation3d)!=null?H:!1;this.rotationY=Math.random()*360;this.type=d[Math.floor(Math.random()*d.length)];switch(this.type){case "svg":break;case "emoji":break;case "shape":this.shape=c.shapes[Math.floor(Math.random()*c.shapes.length)];this.color=c.colors[Math.floor(Math.random()*c.colors.length)];this.cacheKey=
this.shape+"_"+this.color;break;default:console.warn("Unknown particle type: "+this.type)}};oad.prototype.update=function(a){var b=a/(1E3/60);this.vx*=Math.pow(1-this.drag,b);this.vy*=Math.pow(1-this.drag,b);this.vy+=this.gravity*b;this.x+=this.vx*b;this.y+=this.vy*b;this.age+=a/1E3;this.rotation+=this.rotationSpeed*b;this.rotation3d&&(this.rotationY+=this.rotationSpeed*b);a=Math.min(this.age/this.duration,1);this.opacity=a>.6?1-(a-.6)/.4:1};
var $L=function(){this.particleCache=new Map;this.svgCache=new Map;this.emojiCache=new Map;this.particles=[];this.animationFrameId=null;this.lastFrameTime=0;this.canvasInitialized=!1;this.config={particleCount:100,angle:90,colors:"#ff6b6b #4ecdc4 #45b7d1 #f9ca24 #6c5ce7 #ff9ff3 #54a0ff".split(" "),svgs:[],emojis:[],shapes:["square","circle","triangle","star"],minSize:5,maxSize:20,speed:40,speedVariation:.5,spread:90,minDuration:1,maxDuration:3,rotationSpeed:5,rotation3d:!0,gravity:.5,drag:.15}},qad=
function(a,b){b.forEach(function(c){pad(a,c)})};$L.prototype.setConfig=function(a){this.config=Object.assign({},this.config,a)};$L.prototype.getConfig=function(){return Object.assign({},this.config)};
$L.prototype.launch=function(a,b,c){var d=this;c=c===void 0?this.config:c;rad(this);if(this.context&&!this.prefersReducedMotion){var e=Object.assign({},this.config,c),f,g,k=(g=(f=e.x)!=null?f:a)!=null?g:window.innerWidth/2,l,r,w=(r=(l=e.y)!=null?l:b)!=null?r:window.innerHeight/2,x=[];e.svgs&&e.svgs.length>0&&x.push("svg");e.emojis&&e.emojis.length>0&&x.push("emoji");x.length===0&&e.shapes&&e.shapes.length>0&&x.push("shape");a=[];e.svgs&&e.svgs.length>0&&(b=[].concat(q(new Set(e.svgs))),a.push.apply(a,
q(b.map(function(C){return pad(d,C)}))));e.emojis&&e.emojis.length>0&&(b=[].concat(q(new Set(e.emojis))),a.push.apply(a,q(b.map(function(C){return sad(d,C)}))));a.length>0?Promise.all(a).then(function(){tad(d,k,w,e,x)}):tad(this,k,w,e,x)}};
var tad=function(a,b,c,d,e){if(e.length!==0){for(var f=[],g=0;g<d.particleCount;g++){var k=new oad(b,c,d,e);switch(k.type){case "svg":k.svgImage=a.svgCache.get(d.svgs[Math.floor(Math.random()*d.svgs.length)]);break;case "emoji":k.emojiImage=a.emojiCache.get(d.emojis[Math.floor(Math.random()*d.emojis.length)]);break;case "shape":break;default:console.warn("Unknown particle type: "+k.type)}f.push(k)}a.particles.push.apply(a.particles,q(f));a.animationFrameId||(a.lastFrameTime=performance.now(),uad(a))}},
rad=function(a){a.canvasInitialized||(a.canvas=document.createElement("canvas"),a.canvas.classList.add("confetti-canvas"),a.canvas.style.position="fixed",a.canvas.style.top="0",a.canvas.style.left="0",a.canvas.style.width="100%",a.canvas.style.height="100%",a.canvas.style.pointerEvents="none",a.canvas.style.zIndex="10000",a.canvas.style.transform="translateZ(0)",document.body.appendChild(a.canvas),a.context=a.canvas.getContext("2d"),a.resizeCanvas(),window!==void 0&&window.addEventListener&&window.addEventListener("resize",
function(){a.resizeCanvas()}),a.canvasInitialized=!0)};$L.prototype.resizeCanvas=function(){this.canvas&&(this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight)};
var uad=function(a){if(a.context){var b=performance.now(),c=b-a.lastFrameTime;a.lastFrameTime=b;a.context&&a.context.clearRect(0,0,a.canvas.width,a.canvas.height);b=[];for(var d=m(a.particles),e=d.next();!e.done;e=d.next())e=e.value,e.update(c),e.age>=e.duration||(b.push(e),vad(a,e));a.particles=b;a.particles.length>0?a.animationFrameId=requestAnimationFrame(function(){uad(a)}):a.animationFrameId=null}else a.animationFrameId=null},vad=function(a,b){if(a.context){if(b.type==="shape"&&b.cacheKey&&!a.particleCache.has(b.cacheKey)){var c=
b.cacheKey,d=document.createElement("canvas"),e=d.getContext("2d");d.width=64;d.height=64;e.fillStyle=b.color;e.translate(32,32);switch(b.shape){case "circle":e.beginPath();e.arc(0,0,32,0,2*Math.PI);e.fill();break;case "triangle":e.beginPath();e.moveTo(0,-32);e.lineTo(32,32);e.lineTo(-32,32);e.closePath();e.fill();break;case "star":var f=Math.PI/2*3,g=Math.PI/5;e.beginPath();e.moveTo(0,-32);for(var k=0;k<5;k++){var l=Math.cos(f)*32;var r=Math.sin(f)*32;e.lineTo(l,r);f+=g;l=Math.cos(f)*16;r=Math.sin(f)*
16;e.lineTo(l,r);f+=g}e.lineTo(0,-32);e.closePath();e.fill();break;case "square":e.fillRect(-32,-32,64,64);break;default:console.warn("Unknown particle shape: "+b.shape)}a.particleCache.set(c,d)}a.context.save();a.context.globalAlpha=b.opacity;a.context.translate(b.x,b.y);a.context.rotate(b.rotation*Math.PI/180);b.rotation3d&&a.context.scale(1,Math.cos(b.rotationY*Math.PI/180));switch(b.type){case "emoji":var w=b.emojiImage;break;case "svg":w=b.svgImage;break;case "shape":w=a.particleCache.get(b.cacheKey);
break;default:console.warn("Unknown particle type: "+b.type)}w&&a.context.drawImage(w,-b.size/2,-b.size/2,b.size,b.size);a.context.restore()}},wad=function(a,b,c){return new Promise(function(d){var e=new Image,f=(new TextEncoder).encode(b);f=String.fromCharCode.apply(String,q(f));f="data:image/svg+xml;base64,"+btoa(f);e.onload=function(){a.svgCache.set(c,e);d(e)};e.onerror=function(){console.error("Error loading SVG from data URL: "+c);d(new Image)};e.src=f})},pad=function(a,b){return a.svgCache.has(b)?
Promise.resolve(a.svgCache.get(b)):b.trim().startsWith("<svg")?wad(a,b,b):fetch(b).then(function(c){if(!c.ok)throw Error("Uc`"+c.status);return c.text()}).then(function(c){return wad(a,c,b)}).catch(function(c){console.error("Error fetching SVG: "+b,c);return new Image})},sad=function(a,b){return new Promise(function(c){if(a.emojiCache.has(b))c(a.emojiCache.get(b));else try{var d=document.createElement("canvas"),e=d.getContext("2d");if(e){d.width=64;d.height=64;e.font="51.2px sans-serif";e.textAlign=
"center";e.textBaseline="middle";e.fillText(b,32,32);var f=new Image;f.onload=function(){a.emojiCache.set(b,f);c(f)};f.onerror=function(){console.error("Error loading emoji image generated from canvas: "+b);c(new Image)};f.src=d.toDataURL()}else c(new Image)}catch(g){console.error("Error creating emoji image: "+b,g),c(new Image)}})};da.Object.defineProperties($L.prototype,{prefersReducedMotion:{configurable:!0,enumerable:!0,get:function(){return typeof window==="undefined"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}}});
$L.\u0275fac=function(a){return new (a||$L)};$L.\u0275prov=Fc({token:$L,factory:$L.\u0275fac,providedIn:"root"});var xad={HELPFULNESS_UNSPECIFIED:0,HELPFUL:1,UNHELPFUL:2,DISMISSED:3};var yad=new fd("SessionHelpfulButtonTemplate"),aM=function(){var a=this;this.closeButton=Ng();this.messageFeedbackUpdate=Ng();this.helpfulness=xad;this.messageData=Og.apply(null,[null].concat(q([])));this.configurationKey=Og.apply(null,q([]));this.pageId=Og.apply(null,q([]));this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.timeoutId=this.helpfulnessSelected=0;this.confettiService=p($L);this.duckieFeedbackService=p(NL);this.clientConfiguration=Zg.apply(null,[function(){var b;
return rNa((b=a.configurationKey())!=null?b:"")}].concat(q([])));this.experimentsService=p(lA);this.feedbackAnimationsEnabled=this.experimentsService.feedbackAnimationsEnabled;this.showConfetti=Zg.apply(null,[function(){return a.clientConfiguration()===void 0&&a.feedbackAnimationsEnabled}].concat(q([])));this.positiveFeedbackConfettiOptions={particleCount:40,minDuration:1,maxDuration:2,minSize:28,maxSize:48,svgs:["https://www.gstatic.com/devnotify/duckie_margin.svg"]};this.negativeFeedbackConfettiOptions=
{particleCount:12,gravity:.15,drag:.05,speed:12,speedVariation:.5,spread:160,minSize:32,maxSize:48,minDuration:1.5,maxDuration:2.5,rotationSpeed:4,rotation3d:!1,colors:[],shapes:[],svgs:['<svg width="172" height="174" viewBox="0 0 172 174" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M83.9115 12.9936C103.049 12.9936 126.247 18.7611 128.102 46.2294C128.197 47.6055 128.237 48.7792 128.237 49.9125C128.237 59.6532 126.227 67.4916 122.267 73.2052C118.287 78.9457 112.311 82.7503 104.007 84.8279C98.5631 86.1905 92.175 86.8246 83.9115 86.8246C74.2653 86.8246 67.0609 86.0624 61.2192 84.4299C46.2574 80.2409 39.5859 69.5895 39.5859 49.9057C39.5859 24.7243 53.6708 12.9936 83.9115 12.9936Z" fill="#C735FC" style="fill:#C735FC;fill:color(display-p3 0.7801 0.2078 0.9882);fill-opacity:1;"/> <path d="M58.7334 86.4356C59.3135 86.6251 59.9041 86.8063 60.5067 86.975C66.6742 88.6985 74.1478 89.4675 83.9116 89.4676C92.2992 89.4675 98.9214 88.825 104.648 87.3915C105.353 87.2152 106.042 87.0254 106.719 86.8245C109.898 87.9133 112.784 89.3219 115.333 91.1264C124.676 97.0695 130.672 106.908 130.672 122.206C130.672 155.05 108.203 161.006 82.4481 161.006C59.9312 161.006 42.6149 157.188 36.564 138.881C29.643 138.146 23.7067 135.825 18.9039 131.656C15.9493 129.093 11.956 124.323 15.1939 124.418C21.6898 124.6 28.6846 122.225 34.2969 119.635C34.9374 104.23 41.3569 94.7243 51.668 89.3428C53.8646 88.1674 56.2305 87.2107 58.7334 86.4356Z" fill="#C735FC" style="fill:#C735FC;fill:color(display-p3 0.7801 0.2078 0.9882);fill-opacity:1;"/> <path d="M131.192 48.1451C136.797 52.0981 147.449 58.3985 158.181 58.1692C161.797 58.0882 163.389 62.7495 160.529 64.9688C152.029 71.5593 139.192 78.3454 124.878 74.9726C129.134 68.7598 131.232 60.6246 131.232 50.3577C131.232 49.6292 131.212 48.8872 131.185 48.1451H131.192Z" fill="#E67225" style="fill:#E67225;fill:color(display-p3 0.9020 0.4471 0.1451);fill-opacity:1;"/> <path d="M90.6447 33.4708C86.0771 34.474 82.3253 36.8714 79.445 40.6142C78.8732 41.3572 79.0108 42.4213 79.7522 42.9911C80.4936 43.5609 81.5582 43.4206 82.1299 42.6776C84.5286 39.5606 87.5879 37.6117 91.3634 36.7825C95.0407 35.9748 98.4766 36.4325 101.745 38.1536C104.925 39.8283 107.146 42.279 108.468 45.5516C109.752 48.7321 109.86 51.8869 108.809 55.0886C107.789 58.1963 105.933 60.5606 103.208 62.2475C100.566 63.8826 97.7778 64.4642 94.7755 64.0211C91.8696 63.5921 89.5061 62.312 87.6136 60.1588C85.7848 58.078 84.8669 55.7167 84.8189 53.0121C84.7726 50.4033 85.5483 48.1507 87.1546 46.1794C88.7009 44.2816 90.6139 43.1401 92.9482 42.702C95.1904 42.2812 97.2311 42.6207 99.1465 43.7144C100.982 44.7624 102.214 46.2244 102.905 48.1446C103.566 49.9792 103.555 51.7383 102.894 53.4966C102.264 55.1713 101.216 56.388 99.7184 57.2186C98.2967 58.0068 96.8649 58.2282 95.3521 57.9194C93.9224 57.6276 92.8263 56.9453 91.9845 55.8558C91.1927 54.8312 90.8568 53.7459 90.924 52.5355C90.987 51.4036 91.3828 50.505 92.1112 49.7537C92.7878 49.0558 93.5356 48.7062 94.4099 48.6344C95.2159 48.5683 95.8549 48.7592 96.4194 49.1848C96.9354 49.5738 97.1958 50.0102 97.2951 50.5373C97.3851 51.0149 97.3061 51.3536 97.112 51.659C96.9367 51.9347 96.7771 52.0208 96.6037 52.0605C96.5963 52.0622 96.5892 52.0634 96.5825 52.0648C96.3879 51.3399 95.7245 50.8088 94.9381 50.8142C94.0019 50.8206 93.2461 51.5849 93.2499 52.5212C93.2541 53.5505 93.7934 54.3436 94.5181 54.8518C95.3833 55.4587 96.3817 55.5876 97.3516 55.3656C98.4811 55.1071 99.3643 54.4283 99.9719 53.4725C100.664 52.3843 100.864 51.1586 100.627 49.901C100.362 48.4949 99.6102 47.3385 98.4652 46.4752C97.2033 45.5238 95.7311 45.1246 94.1415 45.2551C92.4093 45.3973 90.9036 46.1348 89.68 47.3969C88.3588 48.7597 87.6452 50.4416 87.5388 52.3566C87.4247 54.409 88.0291 56.2896 89.2995 57.9337C90.6528 59.685 92.4679 60.7932 94.6654 61.2418C96.9939 61.717 99.2479 61.3519 101.356 60.183C103.58 58.9498 105.161 57.0923 106.067 54.6825C107.02 52.1501 107.022 49.5602 106.096 46.9878C105.125 44.2933 103.35 42.2056 100.834 40.7688C98.2057 39.2681 95.3463 38.8037 92.3316 39.3695C89.1912 39.9588 86.5719 41.5339 84.5285 44.0417C82.4047 46.6483 81.3686 49.6866 81.4289 53.0816C81.4915 56.6028 82.7169 59.7303 85.0642 62.4012C87.4944 65.1662 90.5874 66.8317 94.2715 67.3755C98.0792 67.9376 101.674 67.1793 104.986 65.1294C108.404 63.0139 110.764 59.995 112.03 56.1384C113.335 52.1639 113.191 48.1852 111.612 44.2748C109.987 40.25 107.207 37.194 103.331 35.1526C99.3458 33.0539 95.0925 32.4938 90.6447 33.4708Z" fill="black" style="fill:black;fill-opacity:1;"/> </svg>'],
emojis:["\ud83d\ude21","\u2049\ufe0f","\u203c\ufe0f","\u2753"]};qad(this.confettiService,this.positiveFeedbackConfettiOptions.svgs)};aM.prototype.ngOnChanges=function(a){a=a.messageData;if(a.firstChange||!a.firstChange&&a.previousValue.sessionId!==a.currentValue.sessionId){var b,c,d;this.helpfulnessSelected=(d=(b=this.messageData())==null?void 0:(c=b.feedback)==null?void 0:c.getHelpfulness())!=null?d:0}};
var zad=function(a){clearTimeout(a.timeoutId);a.closeButton.emit()},Bad=function(a,b,c,d){d=d===void 0?!1:d;a.helpfulnessSelected=b===1?a.helpfulnessSelected===1?0:1:b===2?a.helpfulnessSelected===2?0:2:b;a.showConfetti()&&c&&(a.helpfulnessSelected===1?a.confettiService.launch(c.clientX,c.clientY,a.positiveFeedbackConfettiOptions):a.helpfulnessSelected===2&&a.confettiService.launch(c.clientX,c.clientY,a.negativeFeedbackConfettiOptions));a.duckieFeedbackService.provideFeedback(zGc(Aad(a),a.helpfulnessSelected));
clearTimeout(a.timeoutId);var e,f;a.messageFeedbackUpdate.emit({messageId:(f=(e=a.messageData())==null?void 0:e.id)!=null?f:"",helpfulness:a.helpfulnessSelected});d?zad(a):a.timeoutId=setTimeout(function(){zad(a)},3E3)},Aad=function(a){var b,c,d=(new wB).setMessageId((b=a.messageData())==null?void 0:b.id).setSessionId((c=a.messageData())==null?void 0:c.sessionId).setFeedbackType(0),e;a=(e=a.messageData())==null?void 0:e.feedback;if(!a)return d;a.hasFeedbackType()&&d.setFeedbackType(a.getFeedbackType());
a.hasFeedbackReason()&&d.setFeedbackReason(a.getFeedbackReason());a.getFeedbackLabelsList().length>0&&d.addAllFeedbackLabels(a.getFeedbackLabelsList());return d};aM.\u0275fac=function(a){return new (a||aM)};
aM.\u0275cmp=D({type:aM,selectors:[["session-helpful-button"]],hostAttrs:[1,"align-self-center"],inputs:{messageData:[1,"messageData"],configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},outputs:{closeButton:"closeButton",messageFeedbackUpdate:"messageFeedbackUpdate"},features:[bx],decls:12,vars:7,consts:[[1,"font-google-sans-text","gmat-body-2","session-helpful-button"],[1,"message-text"],["mat-icon-button","","aria-label","Session is helpful",1,"helpful-button",3,"click"],["mat-icon-button",
"","aria-label","Session is not helpful",1,"not-helpful-button",3,"click"],["mat-icon-button","","aria-label","Close session helpful prompt",1,"close-helpfulness-button",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span",1),Q(2),L(),K(3,"button",2),N("click",function(c){return Bad(b,b.helpfulness.HELPFUL,c)}),K(4,"mat-icon"),Q(5),L()(),K(6,"button",3),N("click",function(c){return Bad(b,b.helpfulness.UNHELPFUL,c)}),K(7,"mat-icon"),Q(8),L()(),K(9,"button",4),N("click",function(){return Bad(b,
b.helpfulness.DISMISSED,void 0,!0)}),K(10,"mat-icon"),Q(11," close "),L()()());a&2&&(B(2),S(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL||b.helpfulnessSelected===b.helpfulness.UNHELPFUL?b.confirmationMessage:"Is this conversation helpful?"," "),B(2),wg("is-selected",b.helpfulnessSelected===b.helpfulness.HELPFUL),B(),S(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL?"thumb_up_filled":"thumb_up"," "),B(2),wg("is-selected",b.helpfulnessSelected===b.helpfulness.UNHELPFUL),B(),S(" ",b.helpfulnessSelected===
b.helpfulness.UNHELPFUL?"thumb_down_filled":"thumb_down"," "))},dependencies:[Yx,Fy,Dy,iB,gB,eB],styles:['.session-helpful-button[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:calc(var(--base-px, 1rem)*12);padding:calc(var(--base-px, 1rem)*4) calc(var(--base-px, 1rem)*4) calc(var(--base-px, 1rem)*6) calc(var(--base-px, 1rem)*16);box-shadow:0 1px 2px 0 var(--elevation),0 1px 3px 1px var(--elevation);height:auto}.session-helpful-button[_ngcontent-%COMP%]   .message-text[_ngcontent-%COMP%]{margin-right:calc(var(--base-px, 1rem)*8)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]{width:calc(var(--base-px, 1rem)*36);height:calc(var(--base-px, 1rem)*36)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon.is-selected[_ngcontent-%COMP%]{color:var(--text-high-contrast);font-variation-settings:"FILL" 1}'],
changeDetection:0});var Cad=["customSessionHelpfulButton"],bM=function(){this.messageData=Og.apply(null,q([]));this.messageFeedbackUpdate=Ng();this.closeButton=Ng();this.sessionHelpfulButtonTemplate=p(yad,{optional:!0});this.customSessionHelpfulButton=Pg.apply(null,["customSessionHelpfulButton"].concat(q([{read:fg}])))};
bM.prototype.ngAfterViewInit=function(){var a=this;this.sessionHelpfulButtonTemplate&&this.customSessionHelpfulButton()&&(this.componentRef=this.customSessionHelpfulButton().createComponent(this.sessionHelpfulButtonTemplate),this.componentRef.instance.messageData=ng.apply(null,[this.messageData()].concat(q([]))),this.componentRef.instance.closeButton.subscribe(function(){a.closeButton.emit()}),this.componentRef.instance.messageFeedbackUpdate.subscribe(function(b){a.messageFeedbackUpdate.emit(b)}))};
bM.\u0275fac=function(a){return new (a||bM)};
bM.\u0275cmp=D({type:bM,selectors:[["session-helpful-button-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customSessionHelpfulButton,Cad,fg);a&2&&pg()},hostAttrs:[1,"align-self-center"],inputs:{messageData:[1,"messageData"]},outputs:{messageFeedbackUpdate:"messageFeedbackUpdate",closeButton:"closeButton"},decls:2,vars:1,consts:[["customSessionHelpfulButton",""],[3,"messageData"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){a&1&&F(0,qQa,2,0,"ng-container")(1,rQa,1,
1,"session-helpful-button",1);a&2&&G(b.sessionHelpfulButtonTemplate?0:1)},dependencies:[Yx,aM],encapsulation:2,changeDetection:0});var Dad=new fd("ThreadSourceHeaderTemplate"),Ead={imgSrc:"https://moma.corp.google.com/images/new_logo/color/moma_n_favicon.svg",imgAlt:"Moma logo",title:"From Moma search"},Fad={imgSrc:"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg",imgAlt:"YAQS logo",title:"From YAQS"},cM=function(){this.thread=Og.required.apply(Og,q([]));this.config=null};
cM.prototype.ngOnChanges=function(a){a=a.thread;(a.firstChange||!a.firstChange&&a.previousValue.threadSource!==a.currentValue.threadSource)&&Gad(this)};cM.prototype.ngOnInit=function(){Gad(this)};var Gad=function(a){switch(a.thread().threadSource){case "MOMA":a.config=Ead;break;case "YAQS":a.config=Fad;break;default:a.config=null}};cM.\u0275fac=function(a){return new (a||cM)};
cM.\u0275cmp=D({type:cM,selectors:[["thread-source-header"]],inputs:{thread:[1,"thread"]},features:[bx],decls:1,vars:1,consts:[[1,"flex-row","align-items-center","gap-s","margin-xs-top","text-secondary","gmat-caption","font-google-sans-text","medium"],["height","12","width","12",3,"src","alt"]],template:function(a,b){a&1&&F(0,sQa,3,3,"div",0);a&2&&G(b.config?0:-1)},encapsulation:2,changeDetection:0});var Had=["customThreadSourceHeader"],dM=function(){this.thread=Og.required.apply(Og,q([]));this.threadSourceHeaderTemplate=p(Dad,{optional:!0});this.customThreadSourceHeader=Pg.apply(null,["customThreadSourceHeader"].concat(q([{read:fg}])))};dM.prototype.ngAfterViewInit=function(){this.threadSourceHeaderTemplate&&this.customThreadSourceHeader()&&(this.componentRef=this.customThreadSourceHeader().createComponent(this.threadSourceHeaderTemplate),this.componentRef.instance.thread=ng.apply(null,[this.thread()].concat(q([]))))};
dM.\u0275fac=function(a){return new (a||dM)};dM.\u0275cmp=D({type:dM,selectors:[["thread-source-header-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customThreadSourceHeader,Had,fg);a&2&&pg()},inputs:{thread:[1,"thread"]},decls:2,vars:1,consts:[["customThreadSourceHeader",""],[3,"thread"]],template:function(a,b){a&1&&F(0,tQa,2,0,"ng-container")(1,uQa,1,1,"thread-source-header",1);a&2&&G(b.threadSourceHeaderTemplate?0:1)},dependencies:[Yx,cM],encapsulation:2,changeDetection:0});var PQa=function(a,b){return b.trackingId},Iad=new fd("ThreadTemplate"),eM=function(){var a=this;this.useCompactView=Og.apply(null,[!1].concat(q([])));this.dialog=p(QA);this.viewContainerRef=p(fg);this.snackBar=p(nB);this.routingService=p(xA);this.liveAnnouncer=p(Yy);this.userStateService=p(gC);this.duckieEventTrackerService=p(cD);this.experimentsService=p(lA);this.userContextService=p(iC);this.threadService=p(zD);this.overridesService=p(wA);this.conversationAgentsService=p(dC);this.messagePartsService=
p(TL);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.DYNAMIC_DUCKIE_AGENT_INFO=uw;this.DYNAMIC_DUCKIE_M_AGENT_INFO=vw;this.M_DUCKIE_AGENT_INFO=tw;this.SESSION_STATE_DEPRECATED=4;this.duckieBigBirdOutageEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.showBigBirdOutageBanner=!1;this.maxVisibleUserProvidedContextCount=3;this.shouldShowSessionHelpfulButton=this.showExpandedContext=!1;this.followUpQuestion="";this.showExperimentalAgentBanner=!1;this.experimentalAgentIds=
[];this.messages=Koa.apply(null,[YL].concat(q([])));this.prevThreadLength=0;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.thread$=this.threadService.currentThread$.pipe(Cf(function(b){if(b){if(a.prevThreadLength<b.messages.length)Jad(a);else{var c;if(c=b.messages.length>0&&!b.messages[b.messages.length-1].isStreamingThoughts){c=a.messagePartsService;var d=[].concat(q(c.expansionStates.keys()))[c.expansionStates.size-1];c=!c.isExpanded(d)}c&&Jad(a)}a.shouldShowSessionHelpfulButton=
Kad(a,b);a.prevThreadLength=b.messages.length}}),xf({bufferSize:1,refCount:!0}));this.hasPrivateContent$=this.thread$.pipe(A(function(b){return b?b.privacyMode===2:!1}));this.firstPrivateContentMessageIndex$=this.thread$.pipe(A(function(b){return b?b.messages.findIndex(function(c){return c.hasPrivateContent}):-1}));this.userProvidedContext$=this.thread$.pipe(A(function(b){return b?vJc(b):[]}));this.lastDuckieMessage$=this.thread$.pipe(A(function(b){if(b&&(b=b.messages.slice().reverse().find(function(c){return!c.isUser&&
c.id}),b!==null&&b))return b}));this.isLoadingThread$=this.threadService.isLoadingThread$.pipe(xf({bufferSize:1,refCount:!0}));this.destroyed$=new wf(1);this.ve={ZeroStateSuggestionChipButton:201127}};
eM.prototype.ngOnInit=function(){var a=this;this.thread$.pipe(Bf(this.destroyed$)).subscribe(function(c){var d=!(c==null||!c.serverId);!a.routingService.snapshot.params.id&&d&&RMa(a.routingService,c.serverId,{replaceUrl:!0});c&&c.conversationAgentId&&(a.showExperimentalAgentBanner=a.experimentalAgentIds.includes(c.conversationAgentId))});this.routingService.params.pipe(Bf(this.destroyed$)).subscribe(function(c){var d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return z(x,ie(a.thread$),
2);case 2:return d=x.yieldResult,f=(e=d)==null?void 0:e.serverId,g=c.id,f&&g&&g===f?x.return():g?(Yd(x,9),z(x,OOc(a.threadService,g),11)):z(x,ie(a.threadService.isLoadingThread$),5);case 5:return k=x.yieldResult,z(x,ie(a.threadService.isDuckieThinking$),6);case 6:l=x.yieldResult;if(k||l){x.jumpTo(0);break}return z(x,XIc(a.routingService),0);case 11:bt(x,0);break;case 9:if(w=r=be(x),w.code!==5)x.jumpTo(0);else return a.snackBar.open("Thread not found.","Dismiss"),z(x,XIc(a.routingService),0)}})});
var b=!1;this.threadService.isDuckieThinking$.pipe(Bf(this.destroyed$),pf()).subscribe(function(c){c?(a.liveAnnouncer.announce("Thinking...","polite"),b=!0):b&&(a.liveAnnouncer.announce("Reply ready.","polite"),b=!1)})};eM.prototype.addMessage=function(a){var b=this;return y(function(c){return z(c,XOc(b.threadService,a),0)})};
var xQa=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.thread$),2);b=c.yieldResult;if(!b)return c.return();a.dialog.open(ZL,{panelClass:"rename-chat-dialog-panel",data:{thread:b},viewContainerRef:a.viewContainerRef});ce(c)})},Jad=function(a){requestAnimationFrame(function(){var b;(b=a.messages().slice().reverse().find(function(c){return c.messageData().isUser}))==null||b.elementRef.nativeElement.scrollIntoView()})},SQa=function(a,b){return y(function(c){return z(c,ZOc(a.threadService,
b.messageId,b.helpfulness),0)})},Kad=function(a,b){var c=b.messages.length>=2&&!b.messages[b.messages.length-1].hasRedactions&&!b.messages.some(function(d){return d&&d.feedback&&(d.feedback.getHelpfulness()===1||d.feedback.getHelpfulness()===2||d.feedback.getHelpfulness()===3)});c&&Lad(a,b);return c},Lad=function(a,b){var c,d=(c=b.serverId)!=null?c:"",e;b=(e=b.messages[b.messages.length-1].id)!=null?e:"";b.length>0&&(a=a.duckieEventTrackerService,e=new cm,c=new kC,c=Pi(c,6,!0),am(a,bm(zJc(e,c).setMessageId(b).setSessionId(d)),
256701))},OQa=function(a){var b=b===void 0?!0:b;var c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return d=c="",e="###### *Disclaimer: Duckie can make mistakes. Consider double-checking its responses.*",f=a.thread$.pipe(A(function(r){if(!r)return"";c=r.title||"# Untitled";r.serverId&&b&&(d="\n[Duckie Link](https://duckie.corp.google.com/thread/"+r.serverId+")");return r.messages.map(function(w){var x=(w.isUser?"## User:":"## Duckie:")+"\n\n"+w.text;w=a.getSourcesMarkdown(w);w.length>
0&&(x+="\n\n### Sources:\n"+w);return x}).join("\n\n")})),z(l,ie(f),2);case 2:return g=l.yieldResult,k="# "+c+d+"\n\n"+g+"\n\n"+e,Yd(l,3),z(l,navigator.clipboard.writeText(k),5);case 5:a.snackBar.open("Copied conversation to clipboard.","Dismiss",{duration:2E3});bt(l,0);break;case 3:be(l),a.snackBar.open("Failed to copy to clipboard.","Dismiss",{duration:4E3}),ce(l)}})};
eM.prototype.getSourcesMarkdown=function(a){var b="",c;(c=a.relatedResources)==null||c.forEach(function(d){var e;(d=(e=km(d))==null?void 0:lm(e))&&d.length>0&&d.forEach(function(f){b+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return b};eM.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};eM.\u0275fac=function(a){return new (a||eM)};
eM.\u0275cmp=D({type:eM,selectors:[["thread"]],viewQuery:function(a,b){a&1&&og(b.messages,YL);a&2&&pg()},hostVars:2,hostBindings:function(a,b){a&2&&wg("use-compact-view",b.useCompactView())},inputs:{useCompactView:[1,"useCompactView"]},decls:8,vars:10,consts:[["shareMenu","matMenu"],["mode","indeterminate",1,"align-self-center","margin-auto-y",3,"diameter"],[3,"messageData"],[1,"margin-s-top",3,"submitMessage","inputText"],[1,"thread-heading","padded-s-y","border-bottom"],[3,"thread"],[1,"thread-title-container",
"flex-row"],[1,"thread-title"],["appearance","input","disabled",""],[1,"right-side-buttons"],["mat-icon-button","","aria-label","sharing options",1,"sharing-menu-button",3,"matMenuTriggerFor"],["fontSet","google-symbols"],["mat-menu-item","",3,"click"],[1,"duckie-warning-banner","flex-row","align-items-center","gap","padded-s-bottom"],[1,"user-context-bar"],[1,"duckie-experiment-banner"],[1,"incognito-mode-banner","bg-primary-container","flex-row","align-items-center","gap"],["id","expanded-contexts-view",
1,"expanded-contexts-view"],[1,"banner-wrapper"],[1,"thread-container","flex-column","full-width","margin-bottom"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button"],["role","button","matTooltip","Title edit has been disabled as your\n                personal results are used in this thread",3,"matTooltipDisabled"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button",3,"disabled"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button",3,"click"],
["matTooltip","This thread is using a deprecated model and cannot be continued.","matTooltipShowDelay","500"],[1,"user-context-bar-title","gmat-subhead-2"],["matTooltipClass","context-tooltip",3,"label","iconUrl","linkUrl","matTooltip"],[1,"more-context-counter"],[1,"spacer"],["mat-icon-button","","aria-label","Expand context","aria-controls","expanded-contexts-view",1,"expand-context-button",3,"click"],["matTooltipShowDelay","500",3,"matTooltip"],["href","http://go/duckie-incognito-mode","target",
"_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],[1,"context-item"],["alt","context.imgAlt",3,"src"],["target","_blank",3,"href"],[3,"messageData","useCompactView"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){if(a&1){var c=t();$f(0);T(1,"async");F(2,vQa,1,1,"mat-progress-spinner",1);T(3,"async");Lf(4,RQa,3,4);F(5,TQa,2,3,"session-helpful-button-wrapper",2);T(6,"async");K(7,"message-input-wrapper",3);N("submitMessage",function(d){u(c);
return v(b.addMessage(d))});L()}a&2&&(ag(U(1,3,b.userProvidedContext$)),B(2),G(U(3,6,b.isLoadingThread$)?2:4),B(3),G(b.shouldShowSessionHelpfulButton&&!U(6,8,b.threadService.isDuckieThinking$)?5:-1),B(2),I("inputText",b.followUpQuestion))},dependencies:[Yx,xE,iB,gB,cB,eB,YK,NK,VK,UK,kK,jK,rI,pK,oK,iA,Fy,Dy,bH,YG,WG,aH,iL,U9c,bD,kA,jA,YL,fF,bM,dM,uK,Lx],styles:['@charset "UTF-8";[_nghost-%COMP%]{height:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.thread-container[_ngcontent-%COMP%], .thread-heading[_ngcontent-%COMP%], message-input[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.thread-container[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;overflow:auto;padding-top:24px;container-type:inline-size}.thread-heading[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-bottom:auto;min-height:48px}@media (max-width:800px){.thread-heading[_ngcontent-%COMP%]{display:none}}.thread-heading[_ngcontent-%COMP%]   .duckie-on-gemini-banner[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;background:var(--tonal-fill-yellow);padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .duckie-warning-banner[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:var(--tonal-fill-red);color:var(--tonal-red);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .duckie-experiment-banner[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;background:-webkit-gradient(linear,left top,right top,from(var(--duckie-experiment-banner-color-1)),to(var(--duckie-experiment-banner-color-2)));background:-webkit-linear-gradient(left,var(--duckie-experiment-banner-color-1) 0,var(--duckie-experiment-banner-color-2) 100%);background:linear-gradient(90deg,var(--duckie-experiment-banner-color-1) 0,var(--duckie-experiment-banner-color-2) 100%);font-size:.9em;padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .incognito-mode-banner[_ngcontent-%COMP%]{padding:4px 24px;margin:0 -24px -8px}.banner-wrapper[_ngcontent-%COMP%]{--custom-border-radius:0;--custom-border:0;-webkit-box-flex:1;-webkit-flex:1 0 auto;-moz-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.use-compact-view[_nghost-%COMP%]   .thread-heading[_ngcontent-%COMP%]   thread-source-header-wrapper[_ngcontent-%COMP%]{display:none}.use-compact-view[_nghost-%COMP%]   .thread-heading[_ngcontent-%COMP%]   .thread-title-container[_ngcontent-%COMP%]{display:none}.user-context-bar[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:4px}.user-context-bar[_ngcontent-%COMP%]   .user-context-bar-title[_ngcontent-%COMP%]{margin-right:8px}.user-context-bar[_ngcontent-%COMP%]   .more-context-counter[_ngcontent-%COMP%]{font-size:12px;font-weight:500;border:1px solid var(--hairline);border-radius:16px;padding:2px 8px}.expanded-contexts-view[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:8px 24px;gap:8px;max-height:200px;overflow:auto}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;container-type:inline-size}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;height:20px}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{direction:rtl;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:90cqw}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after{content:"\u200e"}.thread-title[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;min-height:48px;width:100%}.thread-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:Google Sans;font-size:22px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-title[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}.thread-title[_ngcontent-%COMP%]   .right-side-buttons[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 0 auto;-moz-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .context-tooltip .mat-mdc-tooltip-surface{max-width:60vw}'],
changeDetection:0});var Mad=["customThread"],fM=function(){this.threadTemplate=p(Iad,{optional:!0});this.customThread=Pg.apply(null,["customThread"].concat(q([{read:fg}])));this.useCompactView=Og.apply(null,[!1].concat(q([])))};fM.prototype.ngAfterViewInit=function(){this.threadTemplate&&this.customThread()&&(this.componentRef=this.customThread().createComponent(this.threadTemplate),this.componentRef.instance.useCompactView=ng.apply(null,[this.useCompactView()].concat(q([]))))};
fM.\u0275fac=function(a){return new (a||fM)};
fM.\u0275cmp=D({type:fM,selectors:[["thread-wrapper"]],viewQuery:function(a,b){a&1&&og(b.customThread,Mad,fg);a&2&&pg()},inputs:{useCompactView:[1,"useCompactView"]},decls:4,vars:1,consts:[["customThread",""],[1,"container","margin-auto-x"],[1,"thread","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"useCompactView"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,UQa,2,0,"ng-container")(3,VQa,1,1,"thread",3),L()());a&2&&(B(2),G(b.threadTemplate?2:
3))},dependencies:[eM],styles:["[_nghost-%COMP%]{overflow:hidden}.container[_ngcontent-%COMP%]{max-width:1240px;min-width:300px;height:calc(100% - var(--base-px, 1rem)*16)}@media (max-width:800px){.container[_ngcontent-%COMP%]{height:100%}}.thread[_ngcontent-%COMP%]{box-shadow:0 6px 10px 4px var(--elevation),0 2px 3px 0 var(--elevation);-moz-box-sizing:border-box;box-sizing:border-box;height:calc(100% - var(--base-px, 1rem)*16);margin:.75em;padding-bottom:12px;position:relative}@media (max-width:800px){.thread[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}}.use-compact-view[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{height:100%}.use-compact-view[_nghost-%COMP%]   .thread[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}\n/*# sourceMappingURL=thread_wrapper.css.map */"],
changeDetection:0});var gM=function(){};gM.\u0275fac=function(a){return new (a||gM)};gM.\u0275mod=cf({type:gM});gM.\u0275inj=Hc({imports:[eM,fM,dM]});var Nad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nad,W);var Oad=function(a,b){this.url=a;this.httpClient=b};Y(Oad,TMc);Oad.prototype.makeRequest=function(a){return this.httpClient.request("POST",this.url+a.path,{headers:new lh({"Content-Type":"text/plain"}),body:a.body,observe:"body",responseType:"json",withCredentials:!0})};var Pad=new fd("url of g3mark service api"),hM=function(){};hM.\u0275fac=function(a){return new (a||hM)};hM.\u0275mod=cf({type:hM});hM.\u0275inj=Hc({providers:[{provide:ZMc,useFactory:function(a,b){return new Oad(a,b)},deps:[Pad,vy]}],imports:[xy]});var iM=function(){};iM.\u0275fac=function(a){return new (a||iM)};iM.\u0275mod=cf({type:iM});iM.\u0275inj=Hc({providers:[{provide:Pad,useFactory:function(){return window.g3mark_service_url||"https://g3mark-service.corp.google.com"}},iD],imports:[hM]});yIa(zIa(function(){}));var Qad={provide:mZc,deps:[Nz],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};Ih({passive:!0});var jM=function(){};jM.\u0275fac=function(a){return new (a||jM)};jM.\u0275mod=cf({type:jM});jM.\u0275inj=Hc({providers:[Qad],imports:[Yx,dA,Qz,wz,Ey]});var Rad=[[["","onedevOptOutButton",""]],[["","mat-icon-button",""]]],kM=function(a){var b=this;this.zone=a;this.openedByKeyboard=!1;this.resizeObserver=new ResizeObserver(function(){b.zone.run(function(){var c=[];for(var d=c.concat,e=Array.from(b.triggers),f=Array.from(b.triggerElements),g=Math.max(e.length,f.length),k=[],l=0;l<g;l++)k.push([e[l],f[l]]);c=d.call(c,q(k),[[b.showMoreTrigger,b.showMoreElement]]);c=m(c);for(d=c.next();!d.done;d=c.next())e=m(d.value),d=e.next().value,e=e.next().value,
Number(e.nativeElement.offsetWidth===0)^Number(b.showMoreTrigger.menuOpen&&d!==b.showMoreTrigger)&&d.closeMenu();Sad(b)})})};kM.prototype.ngOnInit=function(){};kM.prototype.ngAfterViewInit=function(){if(this.mdcButtons.length>0&&this.mdcButtons.some(function(a){return!a.nativeElement.classList.contains("gmat-mdc-button")}))throw Error("Vc");Tad(this)};kM.prototype.ngOnDestroy=function(){this.resizeObserver.disconnect()};
var Uad=function(a){Sad(a);var b=a.openedByKeyboard?"keyboard":"mouse";a.openedByKeyboard=!1;setTimeout(function(){lZc(a.showMoreMenu,b)})},Tad=function(a){for(var b=m([].concat(q(a.buttons),[a.showMoreElement])),c=b.next();!c.done;c=b.next())a.resizeObserver.observe(c.value.nativeElement)},Sad=function(a){a=m(a.showMoreMenu._directDescendantItems);for(var b=a.next();!b.done;b=a.next())b=b.value,b.disabled=b._getHostElement().offsetWidth===0};
da.Object.defineProperties(kM.prototype,{menu:{configurable:!0,enumerable:!0,set:function(a){a.panelClass="onedev-appbar-menu";this.showMoreMenu=a}}});kM.\u0275fac=function(a){return new (a||kM)(Ye(Rg))};
kM.\u0275cmp=D({type:kM,selectors:[["onedev-mdc-button-group"]],contentQueries:function(a,b,c){a&1&&(ig(c,aH,4),ig(c,aH,4,Jd),ig(c,gB,4,Jd),ig(c,cB,4,Jd));if(a&2){var d;lg(d=mg())&&(b.triggers=d);lg(d=mg())&&(b.triggerElements=d);lg(d=mg())&&(b.buttons=d);lg(d=mg())&&(b.mdcButtons=d)}},viewQuery:function(a,b){a&1&&(hg(aH,5),hg(aH,5,Jd));if(a&2){var c;lg(c=mg())&&(b.showMoreTrigger=c.first);lg(c=mg())&&(b.showMoreElement=c.first)}},hostVars:2,hostBindings:function(a){a&2&&vg("display","flex")},inputs:{menu:"menu"},
ngContentSelectors:["[onedevOptOutButton]","[mat-icon-button]"],decls:5,vars:1,consts:[["mat-icon-button","","aria-label","show more",1,"show-more",3,"keydown.enter","keydown.space","menuOpened","matMenuTriggerFor"]],template:function(a,b){a&1&&(cg(Rad),dg(0),dg(1,1),K(2,"button",0),N("keydown.enter",function(){b.openedByKeyboard=!0})("keydown.space",function(){b.openedByKeyboard=!0})("menuOpened",function(){return Uad(b)}),K(3,"mat-icon"),Q(4,"more_vert"),L()());a&2&&(B(2),I("matMenuTriggerFor",
b.showMoreMenu))},dependencies:[iB,gB,eB,Fy,Dy,PJ,OJ,aH],styles:["/*\n * @fileoverview Contains SCSS for button_group.scss so that it can be easily\n * tested. Media queries are unable to be mocked in tests.\n */\n.onedev-appbar-menu [mat-menu-item] {\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n     -moz-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  color: var(--text-default, black);\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.onedev-appbar-menu [mat-menu-item] mat-icon {\n  line-height: 24px;\n}\n\n@media (max-width: 960px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+0),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(1) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton],\n  onedev-mdc-button-group [onedevOptOutButton] {\n    display: none;\n  }\n}\n@media (min-width: 961px) and (max-width: 1280px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+2),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(3) {\n    display: none;\n  }\n}\n@media (min-width: 1281px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+4),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(5) {\n    display: none;\n  }\n}\n"],
encapsulation:2});var lM=function(){};lM.\u0275fac=function(a){return new (a||lM)};lM.\u0275mod=cf({type:lM});lM.\u0275inj=Hc({imports:[Yx,LI,Fy,jM,kM]});var mM=function(){};mM.\u0275fac=function(a){return new (a||mM)};mM.\u0275mod=cf({type:mM});mM.\u0275inj=Hc({imports:[lM]});var Vad=["*"],Wad=["content"],Xad=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Yad=new fd("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Zad=new fd("MAT_DRAWER_CONTAINER"),oM=function(){var a=p(Jd),b=p(Th),c=p(Rg);qz.call(this,a,b,c);this._platform=p(Wh);this._changeDetectorRef=p(ux);this._container=p(nM)};Y(oM,qz);oM.\u0275dir=qz.\u0275dir;oM.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
oM.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};oM.\u0275fac=function(a){return new (a||oM)};
oM.\u0275cmp=D({type:oM,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(a,b){a&2&&(vg("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px"),wg("mat-drawer-content-hidden",b._shouldBeHidden()))},features:[Gg([{provide:qz,useExisting:oM}]),Gf],ngContentSelectors:Vad,decls:1,vars:0,template:function(a){a&1&&(cg(),dg(0))},encapsulation:2,changeDetection:0});
var pM=function(){var a=this;this._elementRef=p(Jd);this._focusTrapFactory=p(Py);this._focusMonitor=p(Hy);this._platform=p(Wh);this._ngZone=p(Rg);this._renderer=p(di);this._interactivityChecker=p(Ky);this._doc=p(Sh);this._container=p(Zad,{optional:!0});this._elementFocusedBeforeDrawerWasOpened=this._focusTrap=null;this._position="start";this._mode="over";this._disableClose=!1;this._opened=ng.apply(null,[!1].concat(q([])));this._animationStarted=new sf;this._animationEnd=new sf;this.openedChange=new Ui(!0);
this._openedStream=this.openedChange.pipe(we(function(b){return b}),A(function(){}));this.openedStart=this._animationStarted.pipe(we(function(){return a.opened}),mf());this._closedStream=this.openedChange.pipe(we(function(b){return!b}),A(function(){}));this.closedStart=this._animationStarted.pipe(we(function(){return!a.opened}),mf());this._destroyed=new sf;this.onPositionChanged=new Ui;this._modeChanged=new sf;this._injector=p(Ae);this._changeDetectorRef=p(ux);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(Bf(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;re(b,"keydown").pipe(we(function(c){return c.keyCode===
27&&!a.disableClose&&!Gh(c)}),Bf(a._destroyed)).subscribe(function(c){return a._ngZone.run(function(){a.close();c.stopPropagation();c.preventDefault()})});a._eventCleanups=[a._renderer.listen(b,"transitionrun",a._handleTransitionEvent),a._renderer.listen(b,"transitionend",a._handleTransitionEvent),a._renderer.listen(b,"transitioncancel",a._handleTransitionEvent)]});this._animationEnd.subscribe(function(){a.openedChange.emit(a.opened)})};h=pM.prototype;
h._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};h._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
h._takeFocus=function(){var a=this;if(this._focusTrap){var b=this._elementRef.nativeElement;switch(this.autoFocus){case !1:case "dialog":break;case !0:case "first-tabbable":Ge(function(){a._focusTrap.focusInitialElement()||typeof b.focus!=="function"||b.focus()},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}};
h._restoreFocus=function(a){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?Iy(this._focusMonitor,this._elementFocusedBeforeDrawerWasOpened,a):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)};h._isFocusWithinDrawer=function(){var a=this._doc.activeElement;return!!a&&this._elementRef.nativeElement.contains(a)};
h.ngAfterViewInit=function(){this._isAttached=!0;this._position==="end"&&this._updatePositionInParent("end");this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())};
h.ngOnDestroy=function(){this._eventCleanups.forEach(function(c){return c()});var a;(a=this._focusTrap)==null||a.destroy();var b;(b=this._anchor)==null||b.remove();this._anchor=null;this._animationStarted.complete();this._animationEnd.complete();this._modeChanged.complete();this._destroyed.next();this._destroyed.complete()};h.open=function(a){return this.toggle(!0,a)};h.close=function(){return this.toggle(!1)};h._closeViaBackdropClick=function(){return this._setOpen(!1,!0,"mouse")};
h.toggle=function(a,b){(a=a===void 0?!this.opened:a)&&b&&(this._openedVia=b);b=this._setOpen(a,!a&&this._isFocusWithinDrawer(),this._openedVia||"program");a||(this._openedVia=null);return b};
h._setOpen=function(a,b,c){var d=this;if(a===this.opened)return Promise.resolve(a?"open":"close");this._opened.set(a);var e;((e=this._container)==null?0:e._transitionsEnabled)?this._setIsAnimating(!0):setTimeout(function(){d._animationStarted.next();d._animationEnd.next()});this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",a);!a&&b&&this._restoreFocus(c);this._changeDetectorRef.markForCheck();this._updateFocusTrapState();return new Promise(function(f){d.openedChange.pipe(nf(1)).subscribe(function(g){return f(g?
"open":"close")})})};h._setIsAnimating=function(a){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",a)};h._getWidth=function(){return this._elementRef.nativeElement.offsetWidth||0};h._updateFocusTrapState=function(){if(this._focusTrap){var a;this._focusTrap.enabled=!((a=this._container)==null||!a.hasBackdrop)&&this.opened}};
h._updatePositionInParent=function(a){if(this._platform.isBrowser){var b=this._elementRef.nativeElement,c=b.parentNode;a==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),c.insertBefore(this._anchor,b)),c.appendChild(b)):this._anchor&&this._anchor.parentNode.insertBefore(b,this._anchor)}};
da.Object.defineProperties(pM.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=Mh(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=Mh(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened()},set:function(a){this.toggle(Mh(a))}}});pM.\u0275fac=function(a){return new (a||pM)};
pM.\u0275cmp=D({type:pM,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&hg(Wad,5);if(a&2){var c;lg(c=mg())&&(b._content=c.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(a,b){a&2&&(Kf("align",null)("tabIndex",b.mode!=="side"?"-1":null),vg("visibility",b._container||b.opened?null:"hidden"),wg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side"))},inputs:{position:"position",mode:"mode",
disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Vad,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(cg(),K(0,"div",1,0),dg(2),L())},dependencies:[qz],encapsulation:2,changeDetection:0});
var nM=function(){var a=this;this._dir=p(ci,{optional:!0});this._element=p(Jd);this._ngZone=p(Rg);this._changeDetectorRef=p(ux);this._animationDisabled=ni();this._transitionsEnabled=!1;this._drawers=new gg;this._autosize=p(Yad);this.backdropClick=new Ui;this._destroyed=new sf;this._doCheckSubject=new sf;this._contentMargins={left:null,right:null};this._contentMarginChanges=new sf;this._injector=p(Ae);var b=p(Wh),c=p(Rh),d;(d=this._dir)==null||d.change.pipe(Bf(this._destroyed)).subscribe(function(){a._validateDrawers();
qM(a)});c.change().pipe(Bf(this._destroyed)).subscribe(function(){return qM(a)});!this._animationDisabled&&b.isBrowser&&this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._element.nativeElement.classList.add("mat-drawer-transition");a._transitionsEnabled=!0},200)})};
nM.prototype.ngAfterContentInit=function(){var a=this;this._allDrawers.changes.pipe(zf(this._allDrawers),Bf(this._destroyed)).subscribe(function(b){a._drawers.reset(b.filter(function(c){return!c._container||c._container===a}));kg(a._drawers)});this._drawers.changes.pipe(zf(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))&&
qM(a);a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(lf(10),Bf(a._destroyed)).subscribe(function(){return qM(a)})})};nM.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};nM.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};nM.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var qM=function(a){var b=0,c=0;if(a._left&&a._left.opened)if(a._left.mode=="side")b+=a._left._getWidth();else if(a._left.mode=="push"){var d=a._left._getWidth();b+=d;c-=d}a._right&&a._right.opened&&(a._right.mode=="side"?c+=a._right._getWidth():a._right.mode=="push"&&(d=a._right._getWidth(),c+=d,b-=d));b=b||null;c=c||null;if(b!==a._contentMargins.left||c!==a._contentMargins.right)a._contentMargins={left:b,right:c},a._ngZone.run(function(){return a._contentMarginChanges.next(a._contentMargins)})};
h=nM.prototype;h.ngDoCheck=function(){var a=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return a._doCheckSubject.next()})};h._watchDrawerToggle=function(a){var b=this;a._animationStarted.pipe(Bf(this._drawers.changes)).subscribe(function(){qM(b);b._changeDetectorRef.markForCheck()});a.mode!=="side"&&a.openedChange.pipe(Bf(this._drawers.changes)).subscribe(function(){return b._setContainerClass(a.opened)})};
h._watchDrawerPosition=function(a){var b=this;a.onPositionChanged.pipe(Bf(this._drawers.changes)).subscribe(function(){Ge({read:function(){return b._validateDrawers()}},{injector:b._injector})})};h._watchDrawerMode=function(a){var b=this;a._modeChanged.pipe(Bf(ve(this._drawers.changes,this._destroyed))).subscribe(function(){qM(b);b._changeDetectorRef.markForCheck()})};h._setContainerClass=function(a){var b=this._element.nativeElement.classList;a?b.add("mat-drawer-container-has-open"):b.remove("mat-drawer-container-has-open")};
h._validateDrawers=function(){var a=this;this._start=this._end=null;this._drawers.forEach(function(b){b.position=="end"?a._end=b:a._start=b});this._right=this._left=null;this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)};h._isPushed=function(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"};
h._onBackdropClicked=function(){this.backdropClick.emit();this._closeModalDrawersViaBackdrop()};h._closeModalDrawersViaBackdrop=function(){var a=this;[this._start,this._end].filter(function(b){return b&&!b.disableClose&&a._drawerHasBackdrop(b)}).forEach(function(b){return b._closeViaBackdropClick()})};h._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)};
h._isDrawerOpen=function(a){return a!=null&&a.opened};h._drawerHasBackdrop=function(a){return this._backdropOverride==null?!!a&&a.mode!=="side":this._backdropOverride};
da.Object.defineProperties(nM.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=Mh(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:Mh(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});nM.\u0275fac=function(a){return new (a||nM)};
nM.\u0275cmp=D({type:nM,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(ig(c,oM,5),ig(c,pM,5));if(a&2){var d;lg(d=mg())&&(b._content=d.first);lg(d=mg())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&hg(oM,5);if(a&2){var c;lg(c=mg())&&(b._userContent=c.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},
exportAs:["matDrawerContainer"],features:[Gg([{provide:Zad,useExisting:nM}])],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&&(cg(Xad),F(0,WQa,1,2,"div",0),dg(1),dg(2,1),F(3,XQa,2,0,"mat-drawer-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[oM],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 $ad=["*"],abd=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],rM=function(){oM.apply(this,arguments)};Y(rM,oM);rM.\u0275dir=oM.\u0275dir;rM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(rM)))(b||rM)}}();rM.\u0275cmp=D({type:rM,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Gg([{provide:qz,useExisting:rM}]),Gf],ngContentSelectors:$ad,decls:1,vars:0,template:function(a){a&1&&(cg(),dg(0))},encapsulation:2,changeDetection:0});
var sM=function(){pM.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};Y(sM,pM);
da.Object.defineProperties(sM.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Mh(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Ph(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Ph(a)}}});
sM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(sM)))(b||sM)}}();
sM.\u0275cmp=D({type:sM,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(a,b){a&2&&(Kf("tabIndex",b.mode!=="side"?"-1":null)("align",null),vg("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),wg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side")("mat-sidenav-fixed",b.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",
fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Gg([{provide:pM,useExisting:sM}]),Gf],ngContentSelectors:$ad,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(cg(),K(0,"div",1,0),dg(2),L())},dependencies:[qz],encapsulation:2,changeDetection:0});var tM=function(){nM.apply(this,arguments);this._content=this._allDrawers=void 0};Y(tM,nM);
tM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tM)))(b||tM)}}();
tM.\u0275cmp=D({type:tM,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(ig(c,rM,5),ig(c,sM,5));if(a&2){var d;lg(d=mg())&&(b._content=d.first);lg(d=mg())&&(b._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[Gg([{provide:Zad,useExisting:tM},{provide:nM,useExisting:tM}]),Gf],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&&(cg(abd),F(0,YQa,1,2,"div",0),dg(1),dg(2,1),F(3,ZQa,2,0,"mat-sidenav-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[rM],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 uM=function(){};uM.\u0275fac=function(a){return new (a||uM)};uM.\u0275mod=cf({type:uM});uM.\u0275inj=Hc({imports:[wz,Ey,wz]});var vM=function(){var a=this;this.routingService=p(xA);this.communicationService=p(cC);this.backendModelService=p(fC);this.conversationAgentsService=p(dC);this.chatStateService=p(JJ);this.threadService=p(zD);this.destroyRef=p(Ee);this.useExperimentalOrcasAgent=Og.apply(null,[!1].concat(q([])));this.query=Og.apply(null,q([]));this.contextValues=Og.apply(null,[void 0].concat(q([])));this.onboardingExamples=Og.apply(null,[void 0].concat(q([])));this.isDarkMode=Og.apply(null,[!1].concat(q([])));this.configurationKey=
"nexus";this.DuckieView=XEc;this.activeView$=this.routingService.activeView$;this.isRecentSessionsVisible$=this.chatStateService.isRecentSessionsVisible$;var b=p(wA);b.overrideAgentMessageDisplayName="Production Agent";b.overrideDisclaimer="Production Agent can make mistakes. Consider double-checking its responses.";this.threadService.isDuckieSourceEmbedded=!0;gf(function(){var c=a.conversationAgentsService,d=a.useExperimentalOrcasAgent()?Vwc:Uwc;c.currentConversationAgentInternal.next(d)});gf(function(){a.query()&&
requestAnimationFrame(function(){a.sendQuestion(a.query())})});gf(function(){var c=a.communicationService,d=a.isDarkMode();c.overridesService.isDarkMode$.next(d)});gf(function(){var c,d=(c=a.onboardingExamples())!=null?c:new Nad;a.communicationService.setOnboardingExamplesList(d)});gf(function(){a.sendAppProvidedContext(a.contextValues())})};
vM.prototype.ngOnInit=function(){var a=this,b,c=(b=rNa(this.configurationKey))==null?void 0:b.modelIdOverride;c&&this.backendModelService.currentModelIdInternal.next(c);this.chatStateService.messageQueue$.asObservable().pipe(Uj(this.destroyRef)).subscribe(function(d){if(d.contextMap){var e=a.sendAppProvidedContext;var f=d.contextMap,g;var k=(g=a.contextValues())==null?void 0:g.clone();if(f){g=[];f=m(f.entries());for(var l=f.next();!l.done;l=f.next()){var r=m(l.value);l=r.next().value;r=r.next().value;
g.push((new tA).setName(l).setStringValue(r))}f=k==null?void 0:k.getValuesList()[0];var w;l=(new sA).setValuesList([].concat(q((f==null?void 0:(w=$l(f,sA,3,uA))==null?void 0:w.getValuesList())||[]),g));f?(Yo(f,3,uA,l),k.setValuesList([f].concat(k.getValuesList().slice(1)))):k=l}e.call(a,k);a.sendQuestion(d.message);a.sendAppProvidedContext(a.contextValues())}else a.sendQuestion(d.message)})};vM.prototype.sendAppProvidedContext=function(a){a!=null&&this.communicationService.setAppProvidedContext(a)};
vM.prototype.sendQuestion=function(a){JIc(a);document.getElementById("ask-duckie-submit").dispatchEvent(new Event("click",{bubbles:!0}))};vM.\u0275fac=function(a){return new (a||vM)};
vM.\u0275cmp=D({type:vM,selectors:[["gpp-agent-chat"]],inputs:{useExperimentalOrcasAgent:[1,"useExperimentalOrcasAgent"],query:[1,"query"],contextValues:[1,"contextValues"],onboardingExamples:[1,"onboardingExamples"],isDarkMode:[1,"isDarkMode"]},features:[Gg([{provide:M9c,useValue:iF},{provide:W7c,useValue:IJ}])],decls:9,vars:14,consts:[[1,"chat-container"],[3,"configurationKey"],[3,"useCompactView"],[1,"recent-sessions-container"],[3,"navItemClicked"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",
0),T(2,"async"),F(3,$Qa,1,1,"onboarding-wrapper",1),T(4,"async"),Lf(5,aRa,1,1,"thread-wrapper",2),L(),K(6,"div",3),T(7,"async"),K(8,"recent-sessions",4),N("navItemClicked",function(){b.chatStateService.isRecentSessionsVisibleSubject.next(!1)}),L()()());if(a&2){var c;xg(Eg("gpp-agent-container ",b.isDarkMode()?"dark-mode":"light-mode"));B();wg("hidden",!!U(2,8,b.isRecentSessionsVisible$));B(2);G((c=U(4,10,b.activeView$))===b.DuckieView.ONBOARDING?3:c===b.DuckieView.THREAD?5:-1);B(3);wg("hidden",!U(7,
12,b.isRecentSessionsVisible$))}},dependencies:[sK,bL,aL,Yx,mM,iB,pK,iM,bK,Fy,uM,lK,gM,fM,nK,Lx],styles:["[_ngcontent-%COMP%]:root{--blue-50:#e8f0fe;--blue-100:#d2e3fc;--blue-200:#aecbfa;--blue-300:#8ab4f8;--blue-400:#669df6;--blue-500:#4285f4;--blue-600:#1a73e8;--blue-700:#1967d2;--blue-800:#185abc;--blue-900:#174ea6;--blue:var(--blue-600);--red-50:#fce8e6;--red-100:#fad2cf;--red-200:#f6aea9;--red-300:#f28b82;--red-400:#ee675c;--red-500:#ea4335;--red-600:#d93025;--red-700:#c5221f;--red-800:#b31412;--red-900:#a50e0e;--red:var(--red-600);--yellow-50:#fef7e0;--yellow-100:#feefc3;--yellow-200:#fde293;--yellow-300:#fdd663;--yellow-400:#fcc934;--yellow-500:#fbbc04;--yellow-600:#f9ab00;--yellow-700:#f29900;--yellow-800:#ea8600;--yellow-900:#e37400;--yellow:var(--yellow-600);--green-50:#e6f4ea;--green-100:#ceead6;--green-200:#a8dab5;--green-300:#81c995;--green-400:#5bb974;--green-500:#34a853;--green-600:#1e8e3e;--green-700:#188038;--green-800:#137333;--green-900:#0d652d;--green:var(--green-600);--white:#fff;--grey-50:#f8f9fa;--grey-100:#f1f3f4;--grey-200:#e8eaed;--grey-300:#dadce0;--grey-400:#bdc1c6;--grey-500:#9aa0a6;--grey-600:#80868b;--grey-700:#5f6368;--grey-800:#3c4043;--grey-900:#202124;--black:var(--grey-900);--orange-50:#feefe3;--orange-100:#fedfc8;--orange-200:#fdc69c;--orange-300:#fcad70;--orange-400:#fa903e;--orange-500:#fa7b17;--orange-600:#e8710a;--orange-700:#d56e0c;--orange-800:#c26401;--orange-900:#b06000;--pink-50:#fde7f3;--pink-100:#fdcfe8;--pink-200:#fba9d6;--pink-300:#ff8bcb;--pink-400:#ff63b8;--pink-500:#f439a0;--pink-600:#e52592;--pink-700:#c92786;--pink-800:#b80672;--pink-900:#9c166b;--purple-50:#f3e8fd;--purple-100:#e9d2fd;--purple-200:#d7aefb;--purple-300:#c58af9;--purple-400:#af5cf7;--purple-500:#a142f4;--purple-600:#9334e6;--purple-700:#8430ce;--purple-800:#7627bb;--purple-900:#681da8;--cyan-50:#e4f7fb;--cyan-100:#cbf0f8;--cyan-200:#a1e4f2;--cyan-300:#78d9ec;--cyan-400:#4ecde6;--cyan-500:#24c1e0;--cyan-600:#12b5cb;--cyan-700:#129eaf;--cyan-800:#098591;--cyan-900:#007b83}.dark-mode[_ngcontent-%COMP%], .light-mode[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root{--app-bar-bg:#fff;--base-fg:#000;--button-disabled-bg:rgba(0,0,0,.12);--elevation:rgba(0,0,0,.2);--hairline:var(--grey-300);--hover:rgba(0,0,0,.06);--icon:var(--grey-700);--input-field-bg:var(--grey-100);--input-field-disabled-bg:#f5f6f7;--page-bg:#fff;--surface-default:#fff;--surface-secondary:var(--grey-50);--text-default:var(--grey-900);--text-high-contrast:var(--grey-900);--text-disabled:rgba(0,0,0,.26);--text-inverse:#fff;--text-secondary:var(--grey-700);--tooltip-bg:rgba(97,97,97,.9);--overlay-backdrop:rgba(0,0,0,.32);--button-disabled-text:var(--text-disabled);--button-focused-bg:var(--hover);--button-raised-bg:var(--surface-default);--button-selected:var(--blue-100);--button-selected-disabled-bg:var(--input-field-bg);--button-toggle-disabled-bg:var(--button-disabled-bg);--chip-unselected-bg:var(--surface-default);--hint-text:var(--text-disabled);--list-option-disabled-bg:var(--button-disabled-bg);--slider-min:var(--text-default);--slider-off-active:var(--button-disabled-text);--slider-off:var(--button-disabled-text);--slider-toggle-track:rgba(25,103,210,.54);--slider-toggle-track-warn:rgba(217,48,37,.54);--primary-default:var(--blue-600);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-700);--warn-default:var(--red-600);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-700);--snackbar-background:var(--grey-900);--snackbar-text:var(--grey-200);--snackbar-action-text:var(--blue-300);--snackbar-error-background:var(--red-900);--snackbar-error-text:var(--white);--snackbar-error-action-text:var(--blue-200);--radio-disabled-outline:var(--grey-800);--tonal-blue:#185abc;--tonal-cyan:#007b83;--tonal-green:#137333;--tonal-grey:#5f6368;--tonal-orange:#bd4800;--tonal-pink:#d01884;--tonal-purple:#9334e6;--tonal-red:#d42521;--tonal-yellow:#8f6b00;--tonal-fill-blue:#f2f6ff;--tonal-fill-cyan:#ebfcfe;--tonal-fill-green:#edfbf1;--tonal-fill-grey:#f4f5f6;--tonal-fill-orange:#fff3e9;--tonal-fill-pink:#fff2f9;--tonal-fill-purple:#f9f3ff;--tonal-fill-red:#fff2f1;--tonal-fill-yellow:#fff8e4;--tonal-tint-blue:#f9fbff;--tonal-tint-cyan:#f6fdfe;--tonal-tint-green:#f7fdf9;--tonal-tint-grey:#f9fafb;--tonal-tint-orange:#fff9f5;--tonal-tint-pink:#fff9fc;--tonal-tint-purple:#fcf9ff;--tonal-tint-red:#fff8f7;--tonal-tint-yellow:#fffcf3;--tonal-icon-blue:#2672e3;--tonal-icon-cyan:#34989d;--tonal-icon-green:#2b923d;--tonal-icon-grey:#878787;--tonal-icon-orange:#d46f17;--tonal-icon-pink:#f127ab;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#e51d19;--tonal-icon-yellow:#9c8c30;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.dark-mode[_ngcontent-%COMP%]{--app-bar-bg:var(--grey-900);--base-fg:#fff;--button-disabled-bg:hsla(0,0%,100%,.12);--button-disabled-text:hsla(0,0%,100%,.26);--button-selected:rgba(138,180,248,.24);--elevation:rgba(0,0,0,.5);--hairline:var(--grey-700);--hover:hsla(0,0%,100%,.08);--icon:var(--grey-300);--input-field-bg:#28292c;--input-field-disabled-bg:#27292c;--page-bg:var(--grey-900);--surface-default:#28292c;--surface-secondary:#000;--text-default:var(--grey-200);--text-high-contrast:#fff;--text-disabled:hsla(0,0%,100%,.26);--text-inverse:#000;--text-secondary:var(--grey-400);--tooltip-bg:hsla(0,0%,100%,.9);--overlay-backdrop:rgba(0,0,0,.5);--primary-default:var(--blue-300);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-200);--warn-default:var(--red-300);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-200);--slider-toggle-track:rgba(138,180,248,.54);--slider-toggle-track-warn:hsla(5,81%,73%,.54);--snackbar-background:var(--white);--snackbar-text:var(--grey-900);--snackbar-action-text:var(--blue-600);--snackbar-error-background:var(--red-50);--snackbar-error-text:#000;--snackbar-error-action-text:var(--blue-700);--radio-disabled-outline:var(--grey-200);--tonal-blue:#99befa;--tonal-cyan:#78d9ec;--tonal-green:#81c995;--tonal-grey:#c7c7c7;--tonal-orange:#fcad70;--tonal-pink:#ff8bcb;--tonal-purple:#ca94fa;--tonal-red:#f28b82;--tonal-yellow:#fdd663;--tonal-fill-blue:#2a3952;--tonal-fill-cyan:#24424a;--tonal-fill-green:#274031;--tonal-fill-grey:#36383a;--tonal-fill-orange:#513724;--tonal-fill-pink:#502941;--tonal-fill-purple:#3e2b52;--tonal-fill-red:#4e2b2a;--tonal-fill-yellow:#453b1f;--tonal-tint-blue:#252d3b;--tonal-tint-cyan:#223339;--tonal-tint-green:#23302a;--tonal-tint-grey:#2b2c2f;--tonal-tint-orange:#382c24;--tonal-tint-pink:#382532;--tonal-tint-purple:#2f263b;--tonal-tint-red:#362627;--tonal-tint-yellow:#322e22;--tonal-icon-blue:#7391f2;--tonal-icon-cyan:#39bcd5;--tonal-icon-green:#55c374;--tonal-icon-grey:#a4a4a4;--tonal-icon-orange:#fb9546;--tonal-icon-pink:#fc78c1;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#fa7775;--tonal-icon-yellow:#f4ce5d;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.themed[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{color:var(--text-default);background-color:var(--page-bg)}  html{--base-px:1px}  .gpp-agent-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:100%}  .gpp-agent-container .full-width{width:100%}  .gpp-agent-container .full-height{height:100%}  .gpp-agent-container body .bg-page-bg{background-color:var(--page-bg)}  .gpp-agent-container body .bg-surface-default{background-color:var(--surface-default)}  .gpp-agent-container body .bg-surface-container{background-color:var(--surface-container)}  .gpp-agent-container body .bg-primary-container{background-color:var(--primary-container)}  .gpp-agent-container .bordered{border:1px solid var(--hairline)}  .gpp-agent-container .border-bottom{border-bottom:1px solid var(--hairline)}  .gpp-agent-container .border-top{border-top:1px solid var(--hairline)}  .gpp-agent-container body .text-secondary{color:var(--text-secondary)}  .gpp-agent-container body .text-high-contrast{color:var(--text-high-contrast)}  .gpp-agent-container .italic{font-style:italic}  .gpp-agent-container .bold{font-weight:700}  .gpp-agent-container .medium{font-weight:500}  .gpp-agent-container .font-google-sans{font-family:Google Sans,sans-serif}  .gpp-agent-container .font-roboto{font-family:Roboto,sans-serif}  .gpp-agent-container .type-s{font-size:calc(var(--base-px, 1rem)*13)}  .gpp-agent-container .type-xs{font-size:calc(var(--base-px, 1rem)*12)}  .gpp-agent-container .text-center{text-align:center}  .gpp-agent-container .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}  .gpp-agent-container .font-google-symbols{font-family:Google Symbols}  .gpp-agent-container .rounded{border-radius:16px}  .gpp-agent-container .rounded-full{border-radius:10000px}  .gpp-agent-container .rounded-s{border-radius:8px}  .gpp-agent-container .rounded-xs{border-radius:4px}  .gpp-agent-container .flex-column{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}  .gpp-agent-container .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .gpp-agent-container .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}  .gpp-agent-container .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}  .gpp-agent-container .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}  .gpp-agent-container .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}  .gpp-agent-container .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}  .gpp-agent-container .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}  .gpp-agent-container .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}  .gpp-agent-container .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}  .gpp-agent-container .gap{gap:16px}  .gpp-agent-container .gap-s{gap:8px}  .gpp-agent-container .gap-xs{gap:4px}  .gpp-agent-container .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}  .gpp-agent-container .margin{margin:16px}  .gpp-agent-container .margin-top{margin-top:16px}  .gpp-agent-container .margin-s-top{margin-top:8px}  .gpp-agent-container .margin-xs-top{margin-top:4px}  .gpp-agent-container .margin-bottom{margin-bottom:16px}  .gpp-agent-container .margin-s-bottom{margin-bottom:8px}  .gpp-agent-container .margin-xs-bottom{margin-bottom:4px}  .gpp-agent-container .margin-left{margin-left:16px}  .gpp-agent-container .margin-s-left{margin-left:8px}  .gpp-agent-container .margin-xs-left{margin-left:4px}  .gpp-agent-container .margin-right{margin-right:16px}  .gpp-agent-container .margin-s-right{margin-right:8px}  .gpp-agent-container .margin-xs-right{margin-right:4px}  .gpp-agent-container .margin-y{margin-top:16px;margin-bottom:16px}  .gpp-agent-container .margin-s-y{margin-top:8px;margin-bottom:8px}  .gpp-agent-container .margin-xs-y{margin-top:4px;margin-bottom:4px}  .gpp-agent-container .margin-x{margin-left:16px;margin-right:16px}  .gpp-agent-container .margin-s-x{margin-left:8px;margin-right:8px}  .gpp-agent-container .margin-auto-y{margin-top:auto;margin-bottom:auto}  .gpp-agent-container .margin-auto-x{margin-left:auto;margin-right:auto}  .gpp-agent-container .padded{padding:16px}  .gpp-agent-container .padded-s{padding:8px}  .gpp-agent-container .padded-xs{padding:4px}  .gpp-agent-container .padded-xxs{padding:2px}  .gpp-agent-container .padded-top{padding-top:16px}  .gpp-agent-container .padded-s-top{padding-top:8px}  .gpp-agent-container .padded-xs-top{padding-top:4px}  .gpp-agent-container .padded-s-y{padding-bottom:8px;padding-top:8px}  .gpp-agent-container .padded-xs-x{padding-left:4px;padding-right:4px}  .gpp-agent-container .padded-s-x{padding-left:8px;padding-right:8px}  .gpp-agent-container .padded-m-left{padding-left:24px}  .gpp-agent-container .padded-left{padding-left:16px}  .gpp-agent-container .padded-s-left{padding-left:8px}  .gpp-agent-container .padded-xs-left{padding-left:4px}  .gpp-agent-container .padded-right{padding-right:16px}  .gpp-agent-container .padded-s-right{padding-right:8px}  .gpp-agent-container .padded-xs-bottom{padding-bottom:4px}  .gpp-agent-container .padded-s-bottom{padding-bottom:8px}  .gpp-agent-container .width-almost-full{width:90%}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}  .gpp-agent-container body .mat-icon-button.small{width:24px;height:24px;line-height:24px}  .gpp-agent-container body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}  .gpp-agent-container body .icon-s,   .gpp-agent-container body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}  .gpp-agent-container body .icon-m,   .gpp-agent-container body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}  .gpp-agent-container .chat-container.hidden,   .gpp-agent-container .recent-sessions-container.hidden{display:none}  .gpp-agent-container .chat-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;width:100%}  .gpp-agent-container .chat-container thread-wrapper{width:100%}  .gpp-agent-container .chat-container thread-wrapper .duckie-link-following{display:none}  .gpp-agent-container .chat-container .container>.onboarding,   .gpp-agent-container .chat-container .container>.thread{box-shadow:none;margin:0;padding-bottom:0;height:100%}  .gpp-agent-container .chat-container .container>.onboarding .onboarding-section,   .gpp-agent-container .chat-container .container>.onboarding .thread-container,   .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.onboarding message-input,   .gpp-agent-container .chat-container .container>.thread .onboarding-section,   .gpp-agent-container .chat-container .container>.thread .thread-container,   .gpp-agent-container .chat-container .container>.thread .thread-heading,   .gpp-agent-container .chat-container .container>.thread message-input{padding-left:0;padding-right:0}  .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.thread .thread-heading{min-height:0}  .gpp-agent-container .chat-container .container .reminder-blurb{border-radius:8px;font-size:12px;padding:0 1em}  .gpp-agent-container .chat-container .container .duckie-disclaimer{font-size:10px;margin:0}  .gpp-agent-container .recent-sessions-container{width:100%}  .gpp-agent-container.light-mode{--primary-container:#d3e3fd;--on-primary-container:#041e49;--surface-container:#f0f4f9;--surface-secondary:#f8f9fa;--secondary-container:#c2e7ff;--duckie-experiment-banner-color-1:#d7e6ff;--duckie-experiment-banner-color-2:#dce2ff;--graphviz-bg-fill:transparent;--graphviz-text-default:#3c4043;--graphviz-stroke-default:#3c4043;--graphviz-cluster-stroke:#616161}  .gpp-agent-container.dark-mode{--primary-container:#0842a0;--on-primary-container:#d3e3fd;--surface-container:#1e1f20;--surface-secondary:#000;--secondary-container:#004a77;--duckie-experiment-banner-color-1:#0842a0;--duckie-experiment-banner-color-2:#55226e;--graphviz-text-default:#e8eaed;--graphviz-stroke-default:#e8eaed;--graphviz-cluster-stroke:#dadce0}"],
changeDetection:0});var wM=function(){this.screenshotLinkFollowingEnabled=this.userProvidedContextEnabled=this.responseMetadataEnabled=!0;this.experimentalDuckieAgentEnabled=this.sVsMGooseModelEnabled=!1;this.userProvidedContextDriveEnabled=this.userProvidedContextYaqsEnabled=this.displayDuckieThoughtsEnabled=!0;this.userProvidedContextIrmEnabled=this.duckieStreamingMvpEnabled=this.userProvidedContextGerritEnabled=this.userProvidedContextGoLinkEnabled=this.recitationCheckingEnabled=this.userProvidedContextGobEnabled=
!1;this.duckieSessionDeletionEnabled=!0;this.feedbackAnimationsEnabled=this.duckieBigBirdStrikeEnabled=!1};Y(wM,lA);wM.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wM)))(b||wM)}}();wM.\u0275prov=Fc({token:wM,factory:wM.\u0275fac,providedIn:"root"});var xM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xM,W);xM.prototype.getId=function(){return vi(this,1)};xM.prototype.setId=function(a){return Gm(this,1,a)};xM.prototype.getSourceId=function(){return xi(this,2)};xM.prototype.setSourceId=function(a){return Im(this,2,a)};var bbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bbd,W);h=bbd.prototype;h.getUrl=function(){return vi(this,1)};h.setUrl=function(a){return Gm(this,1,a)};h.getHeight=function(){return Cm(this,2)};h.setHeight=function(a){return an(this,2,a)};h.getWidth=function(){return Cm(this,3)};h.setWidth=function(a){return an(this,3,a)};var yM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yM,W);yM.prototype.hasDuration=function(){return yi(this,dn,2)};var cbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cbd,W);var dbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dbd,W);h=dbd.prototype;h.getEmailList=function(){return Dm(this,1,Di())};h.setEmailList=function(a){return Hm(this,1,a)};h.addEmail=function(a){return Cq(this,1,a)};h.removeEmail=function(a){return zc(this,1,Sb,void 0,a,Tb,void 0,1,!1,!0)};h.getEmail=function(){return Nw(this,1)};h.setEmail=function(a){return Vw(this,1,a)};h.getGroupId=function(a){return Nw(this,2,a)};h.setGroupId=function(a){Vw(this,2,a)};var ebd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ebd,W);var fbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fbd,W);fbd.prototype.getDownloadUrl=function(){return vi(this,5)};var gbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gbd,W);var hbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hbd,W);var ibd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ibd,W);ibd.prototype.getPhotoId=function(){return vi(this,1)};var jbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jbd,W);var kbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kbd,W);var zM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zM,W);zM.prototype.getAgentId=function(){return xi(this,3)};zM.prototype.setAgentId=function(a){return Im(this,3,a)};var AM=[2,4,5,6,7];var lbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lbd,W);lbd.prototype.setReferrerUrl=function(a){return Gm(this,2,a)};var BM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BM,W);h=BM.prototype;h.getId=function(){return X(this,xM,1)};h.setId=function(a){return Ni(this,xM,1,a)};h.getName=function(){return vi(this,2)};h.setName=function(a){return Gm(this,2,a)};h.getDescription=function(){return vi(this,3)};h.setDescription=function(a){return Gm(this,3,a)};h.getParentId=function(){return vi(this,4)};h.setParentId=function(a){return Gm(this,4,a)};h.getType=function(){return xi(this,6)};
h.setType=function(a){return Im(this,6,a)};h.getMimeType=function(){return vi(this,7)};h.setMimeType=function(a){return Gm(this,7,a)};h.getUrl=function(){return vi(this,8)};h.setUrl=function(a){return Gm(this,8,a)};h.getIconUrl=function(){return vi(this,11)};h.setIconUrl=function(a){return Gm(this,11,a)};var CM=function(a){return Ci(a,bbd,10,Di())};h=BM.prototype;h.getLastModifiedTimestamp=function(){return X(this,Ti,12)};h.getVideoMetadata=function(){return X(this,yM,34)};
h.hasVideoMetadata=function(){return yi(this,yM,34)};h.setOwnedByMe=function(a){return $o(this,39,a)};h.getOwner=function(){return Nw(this,40)};h.setOwner=function(a){return Vw(this,40,a)};h.getStarred=function(){return Gi(this,44)};h.getVersion=function(){return pn(this,45)};h.setVersion=function(a){return Ko(this,45,a)};var DM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DM,W);h=DM.prototype;h.getShared=function(){return Gi(this,1)};
h.setShared=function(a){$o(this,1,a)};h.getVideoMetadata=function(){return X(this,yM,3)};h.hasVideoMetadata=function(){return yi(this,yM,3)};h.getDownloadUrl=function(){return vi(this,10)};var mbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mbd,W);mbd.prototype.getLabel=function(){return vi(this,2)};mbd.prototype.setLabel=function(a){return Gm(this,2,a)};var nbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nbd,W);h=nbd.prototype;h.getStatus=function(){return xi(this,1)};h.setStatus=function(a){return Im(this,1,a)};h.getItemList=function(a){return Ci(this,BM,2,Di(a))};h.addItem=function(a,b){return Pp(this,2,BM,a,b)};h.setItem=function(a,b){return zw(this,2,BM,a,b)};h.removeItem=function(a){return Dw(this,2,BM,a)};h.getItemCount=function(){return Ai(this,BM,2)};
h.getInternalOnlyV1ViewInfo=function(){return X(this,mbd,7)};var EM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EM,W);h=EM.prototype;h.getSourceId=function(){return xi(this,1)};h.setSourceId=function(a){return Im(this,1,a)};h.getName=function(){return vi(this,8)};h.setName=function(a){return Gm(this,8,a)};h.getInternalOnlyV1ViewInfo=function(){return X(this,mbd,18)};var obd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(obd,W);h=obd.prototype;h.getCommand=function(){return xi(this,1)};h.setCommand=function(a){return Im(this,1,a)};h.getSource=function(){return X(this,EM,2)};h.setSource=function(a){return Ni(this,EM,2,a)};h.hasSource=function(){return yi(this,EM,2)};h.getSourceOrUndefined=function(){return yyc(this,EM,2)};h.setVisible=function(a){return $o(this,5,a)};h.getItemList=function(a){return Ci(this,BM,7,Di(a))};
h.addItem=function(a,b){return Pp(this,7,BM,a,b)};h.setItem=function(a,b){return zw(this,7,BM,a,b)};h.removeItem=function(a){return Dw(this,7,BM,a)};h.getItemCount=function(){return Ai(this,BM,7)};h.getQuery=function(){return vi(this,8)};h.setQuery=function(a){return Gm(this,8,a)};h.clearQuery=function(){Aw(this,8)};h.getAppId=function(){return vi(this,9)};h.setAppId=function(a){Gm(this,9,a)};var pbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pbd,W);h=pbd.prototype;h.getCommand=function(){return xi(this,1)};h.setCommand=function(a){return Im(this,1,a)};h.getItemList=function(a){return Ci(this,BM,4,Di(a))};h.addItem=function(a,b){return Pp(this,4,BM,a,b)};h.setItem=function(a,b){return zw(this,4,BM,a,b)};h.removeItem=function(a){return Dw(this,4,BM,a)};h.getItemCount=function(){return Ai(this,BM,4)};var qbd=wi(pbd);var rbd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/load_time";a.addNewEventMetric(this.metricName,dm("action"),dm("frontend_access_mode"),dm("environment_type"))};rbd.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};rbd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var sbd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_action_counts";a.addNewCounter(this.metricName,dm("action"),dm("frontend_access_mode"),dm("environment_type"))};sbd.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};sbd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var tbd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_latency";a.addNewEventMetric(this.metricName,dm("action"),dm("frontend_access_mode"),dm("environment_type"))};tbd.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};tbd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var FM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FM,W);FM.prototype.getResourcePath=function(){return vi(this,2)};FM.prototype.setResourcePath=function(a){return Gm(this,2,a)};var ubd=function(a){this.servicePromise_=a;a.then(nj(function(){},this),function(){},this)},vbd=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("Wc`"+b);return e.apply(d,c)})},ybd=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=wbd(a,b).then(function(f){return f.apply(null,d)},function(f){f=Error("Xc`"+b+"`"+a+"`"+f,{cause:f});delete xbd[b];return qKc(f)});return new ubd(e)},xbd={},wbd=function(a,b){var c=
xbd[b];if(c)return c;c=(c=Ou(b))?pKc(c):(new zC(function(d,e){var f=(new rC(document)).createElement("SCRIPT");f.async=!0;pi(f,uh(a instanceof NJc&&a.constructor===NJc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===MJc?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||d()};f.onerror=function(g){e(Error("Yc`"+b+"`"+a,{cause:g}))};(document.head||
document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=Ou(b);if(!d)throw Error("Zc`"+b+"`"+a);return d});return xbd[b]=c};var zbd={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Bbd=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=bRa(function(){return y(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):z(b,Abd(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);ce(b)})});this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=m(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()})}}};Bbd.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Abd=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:b=m(Object.values(zbd)),c=b.next();case 2:if(c.done){f.jumpTo(0);break}d=c.value;Yd(f,5);return z(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=f.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);bt(f,3);break;case 5:be(f);f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2)}})};(new Bbd).initialize();var Cbd=function(a){this.loader_=a};Cbd.prototype.startFeedback=function(a){vbd(this.loader_,"startFeedback",arguments)};Cbd.prototype.requestSurvey=function(a){vbd(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};Cbd.prototype.presentSurvey=function(a){vbd(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var Dbd=new NJc(LJc,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");wbd(Dbd,"help.service.Lazy.create").thenCatch(function(){});var Ebd={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},bWa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Fbd={},dWa=(Fbd.ACCESS_LEVEL_UNSPECIFIED=0,Fbd.INTERNAL=1,Fbd.EXTERNAL_PARTNER=2,Fbd.EXTERNAL_PUBLIC=3,Fbd),Gbd={ACTION_TYPE_UNSPECIFIED:"ACTION_TYPE_UNSPECIFIED",ADD:"ADD",REMOVE:"REMOVE"},Hbd={},F0a=(Hbd.ACTION_TYPE_UNSPECIFIED=0,Hbd.ADD=1,Hbd.REMOVE=2,Hbd),
r4a={0:"CATEGORY_UNSPECIFIED",1:"OWNER",2:"COLLABORATOR",3:"FOLLOWING"},MTa={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"},GM={},DTa=(GM.CHANGELIST_SIGNAL_UNSPECIFIED=0,GM.THREAD_MENTIONS_ME=1,GM.IDLE_FOR_HOURS=2,GM.AUTHOR_GOING_OOO=3,GM.NEEDS_ATTENTION=4,GM.NUDGED=5,GM.READY_TO_SUBMIT=6,GM.CHANGELIST_MANUAL_SIGNAL=7,GM.CHANGELIST_SNOOZE_EXPIRED=
8,GM),v4a={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"},HM={},P4a=(HM.CHANGELIST_SIGNAL_UNSPECIFIED=0,HM.THREAD_MENTIONS_ME=1,HM.IDLE_FOR_HOURS=2,HM.AUTHOR_GOING_OOO=3,HM.NEEDS_ATTENTION=4,HM.NUDGED=5,HM.READY_TO_SUBMIT=6,HM.CHANGELIST_MANUAL_SIGNAL=7,HM.CHANGELIST_SNOOZE_EXPIRED=8,HM),cSa={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"},NSa={0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},Ibd={},jTa=(Ibd.COMMENT_FORMATTING_MODE_UNSPECIFIED=0,Ibd.PLAIN_FORMATTING_MODE=1,Ibd.MARKDOWN_FORMATTING_MODE=2,Ibd.LITERAL_FORMATTING_MODE=3,Ibd),qYa={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},
IM={},sYa=(IM.CONFIDENCE_LEVEL_UNSPECIFIED=0,IM.VERY_HIGH=1,IM.HIGH=2,IM.MEDIUM=3,IM.LOW=4,IM),Jbd={DAY_TYPE_UNSPECIFIED:"DAY_TYPE_UNSPECIFIED",CALENDAR:"CALENDAR",BUSINESS:"BUSINESS"},jXa={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},Kbd={},lXa=(Kbd.DAY_TYPE_UNSPECIFIED=0,Kbd.CALENDAR=1,Kbd.BUSINESS=2,Kbd),LXa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},JM={},SXa=(JM.DELETION_REASON_UNSPECIFIED=0,JM.USER_REQUEST=1,JM.ABUSE=
2,JM.RESTRICTED=3,JM.RETENTION=4,JM.ACCOUNT_CAPABILITIES=5,JM),Lbd={COMFORTABLE:"COMFORTABLE",COZY:"COZY",COMPACT:"COMPACT"},uSa={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Mbd={},gTa=(Mbd.COMFORTABLE=1,Mbd.COZY=2,Mbd.COMPACT=3,Mbd),c5a={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},o4a={0:"DRIVE_FILE_TYPE_UNSPECIFIED",1:"DOCUMENT",2:"SPREADSHEET",3:"PRESENTATION"},KTa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",
4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},KM={},zTa=(KM.DRIVE_SIGNAL_UNSPECIFIED=0,KM.TAGGED_IN_COMMENT=1,KM.REQUIRES_APPROVAL=2,KM.COMMENTS_REQUIRE_ATTENTION=3,KM.DRIVE_MANUAL_SIGNAL=4,KM.DRIVE_SNOOZE_EXPIRED=5,KM),t4a={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},LM={},N4a=(LM.DRIVE_SIGNAL_UNSPECIFIED=0,LM.TAGGED_IN_COMMENT=1,LM.REQUIRES_APPROVAL=2,LM.COMMENTS_REQUIRE_ATTENTION=3,
LM.DRIVE_MANUAL_SIGNAL=4,LM.DRIVE_SNOOZE_EXPIRED=5,LM),MWa={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},MM={},QWa=(MM.EDIT_SIGNIFICANCE_UNSPECIFIED=0,MM.SILENT=1,MM.MINOR=2,MM.MAJOR=3,MM.BULK=4,MM.CLOSING=5,MM),irb={0:"ELIGIBILITY_STATE_UNSPECIFIED",1:"INELIGIBLE",2:"ELIGIBLE_NOT_STARTED",3:"EXISTING",4:"INELIGIBLE_EXISTING"},MSa={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},NM={},In=(NM.UNKNOWN_PRIORITY=0,NM.CLOSURE_ONLY=4,NM.MINIMAL=
1,NM.IMPORTANT=2,NM.ALL=3,NM),OM={},bZa=(OM.ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED=0,OM.THUMBS_UP=1,OM.THUMBS_DOWN=2,OM.OPEN=3,OM.CLOSE=4,OM.COPY=5,OM.CLOSE_AS_DUPLICATE=6,OM.ISSUE_HOVERCARD=7,OM.GO_TO_ISSUE=8,OM.DELETE=9,OM.VIEW=10,OM.IMPRESSION=11,OM.COPY_DEEP_LINK=12,OM),tSa={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},Nbd={},fTa=(Nbd.DEFAULT=0,Nbd.ASSIGNMENT=1,Nbd.RESPONSE=2,Nbd.CLOSURE=3,Nbd),Obd={EVENT_TYPE_UNSPECIFIED:"EVENT_TYPE_UNSPECIFIED",EVENT_TYPE_IMPRESSION:"EVENT_TYPE_IMPRESSION",
EVENT_TYPE_VIEW:"EVENT_TYPE_VIEW",EVENT_TYPE_ACCEPT:"EVENT_TYPE_ACCEPT",EVENT_TYPE_PARTIALLY_ACCEPT:"EVENT_TYPE_PARTIALLY_ACCEPT",EVENT_TYPE_REJECT:"EVENT_TYPE_REJECT",EVENT_TYPE_OPEN:"EVENT_TYPE_OPEN",EVENT_TYPE_CLOSE:"EVENT_TYPE_CLOSE",EVENT_TYPE_THUMBS_UP:"EVENT_TYPE_THUMBS_UP",EVENT_TYPE_THUMBS_DOWN:"EVENT_TYPE_THUMBS_DOWN",EVENT_TYPE_COPY:"EVENT_TYPE_COPY",EVENT_TYPE_FEEDBACK:"EVENT_TYPE_FEEDBACK",EVENT_TYPE_DELETE:"EVENT_TYPE_DELETE",EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION:"EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION",
EVENT_TYPE_CLOSE_AS_DUPLICATE:"EVENT_TYPE_CLOSE_AS_DUPLICATE",EVENT_TYPE_ISSUE_HOVERCARD:"EVENT_TYPE_ISSUE_HOVERCARD",EVENT_TYPE_GO_TO_ISSUE:"EVENT_TYPE_GO_TO_ISSUE",EVENT_TYPE_COPY_DEEP_LINK:"EVENT_TYPE_COPY_DEEP_LINK"},PM={},Pbd=(PM.EVENT_TYPE_UNSPECIFIED=0,PM.EVENT_TYPE_IMPRESSION=5,PM.EVENT_TYPE_VIEW=1,PM.EVENT_TYPE_ACCEPT=2,PM.EVENT_TYPE_PARTIALLY_ACCEPT=6,PM.EVENT_TYPE_REJECT=3,PM.EVENT_TYPE_OPEN=7,PM.EVENT_TYPE_CLOSE=8,PM.EVENT_TYPE_THUMBS_UP=9,PM.EVENT_TYPE_THUMBS_DOWN=10,PM.EVENT_TYPE_COPY=
11,PM.EVENT_TYPE_FEEDBACK=12,PM.EVENT_TYPE_DELETE=13,PM.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION=4,PM.EVENT_TYPE_CLOSE_AS_DUPLICATE=14,PM.EVENT_TYPE_ISSUE_HOVERCARD=15,PM.EVENT_TYPE_GO_TO_ISSUE=16,PM.EVENT_TYPE_COPY_DEEP_LINK=17,PM),Qbd={},b1a=(Qbd.QUERY_UNSPECIFIED=0,Qbd.QUERY_TRIAGE_PHASE=1,Qbd.QUERY_CLUSTER=2,Qbd),Rbd={},e1a=(Rbd.SORT_UNSPECIFIED=0,Rbd.SORT_TRIAGE_PHASE=1,Rbd),QM={},Sbd=(QM.FEATURE_UNSPECIFIED=0,QM.FEATURE_ISSUE_DEDUPLICATION=1,QM.FEATURE_HOTLIST=2,QM.FEATURE_ISSUE_DEDUPLICATION_BATCH=
3,QM.FEATURE_NEEDS_INFO=4,QM.FEATURE_COMPONENT_ROUTING=5,QM.FEATURE_ANY_ISSUE_EDIT=11,QM.FEATURE_INSIGHT=6,QM.FEATURE_ATTACHMENT_ANALYSIS=7,QM.FEATURE_SIMILAR_ISSUES=8,QM.FEATURE_SUMMARY=10,QM.FEATURE_HELP_ME_FIX=9,QM),$Zb={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"},XZa={0:"FIELD_ORDERING_UNSPECIFIED",
1:"INHERITED",2:"CUSTOMIZED"},Tbd={},Ubd=(Tbd.FIELD_ORDERING_UNSPECIFIED=0,Tbd.INHERITED=1,Tbd.CUSTOMIZED=2,Tbd),zZa={0:"FIELD_STATE_UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},Vbd={},Wbd=(Vbd.UNSPECIFIED_FORMATTING_AUDIENCE=0,Vbd.INTERNAL=1,Vbd.EXTERNAL=2,Vbd),Um={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},e_a={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},LTa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",
2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},RM={},BTa=(RM.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,RM.GERRIT_CHANGE_NEEDS_ATTENTION=1,RM.GERRIT_CHANGE_READY_TO_SUBMIT=2,RM.GERRIT_MANUAL_SIGNAL=3,RM.GERRIT_SNOOZE_EXPIRED=4,RM),F4a={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},SM={},R4a=(SM.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,SM.GERRIT_CHANGE_NEEDS_ATTENTION=
1,SM.GERRIT_CHANGE_READY_TO_SUBMIT=2,SM.GERRIT_MANUAL_SIGNAL=3,SM.GERRIT_SNOOZE_EXPIRED=4,SM),NTa={0:"GOOGLE_TASKS_SIGNAL_UNSPECIFIED",1:"DUE_SOON",2:"DUE_DATE_EXPIRED",3:"GOOGLE_TASKS_MANUAL_SIGNAL",4:"GOOGLE_TASKS_SNOOZE_EXPIRED"},TM={},FTa=(TM.GOOGLE_TASKS_SIGNAL_UNSPECIFIED=0,TM.DUE_SOON=1,TM.DUE_DATE_EXPIRED=2,TM.GOOGLE_TASKS_MANUAL_SIGNAL=3,TM.GOOGLE_TASKS_SNOOZE_EXPIRED=4,TM),Xbd={INVOLVEMENT_UNSPECIFIED:"INVOLVEMENT_UNSPECIFIED",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",ZERO:"ZERO"},OTa={0:"IRM_SIGNAL_UNSPECIFIED",
1:"IRM_MANUAL_SIGNAL",2:"IRM_SNOOZE_EXPIRED",3:"IRM_SEND_POSTMORTEM_FOR_REVIEW",4:"IRM_REVIEW_POSTMORTEM"},UM={},HTa=(UM.IRM_SIGNAL_UNSPECIFIED=0,UM.IRM_MANUAL_SIGNAL=1,UM.IRM_SNOOZE_EXPIRED=2,UM.IRM_SEND_POSTMORTEM_FOR_REVIEW=3,UM.IRM_REVIEW_POSTMORTEM=4,UM),fGb={0:"ISSUE_CATEGORY_UNSPECIFIED",1:"ISSUE_CATEGORY_UNSUPPORTED",2:"ISSUE_CATEGORY_STACK_TRACES",3:"ISSUE_CATEGORY_ADS",4:"ISSUE_CATEGORY_GAR",5:"ISSUE_CATEGORY_PIXEL",6:"ISSUE_CATEGORY_BORG_SRE",7:"ISSUE_CATEGORY_CLOUD_SRE",8:"ISSUE_CATEGORY_GCP",
9:"ISSUE_CATEGORY_DIALER",10:"ISSUE_CATEGORY_EDSENSE",11:"ISSUE_CATEGORY_VERTEX_AI_SUPPORT",12:"ISSUE_CATEGORY_CLOUD_AI_RETAIL_SUPPORT",13:"ISSUE_CATEGORY_ANDROID_BLUE_SIGHT",14:"ISSUE_CATEGORY_ANDROID_COASTGUARD",15:"ISSUE_CATEGORY_CORE_PROCUREMENT_WORKS",16:"ISSUE_CATEGORY_NEXUS_ERROR_HELPER",17:"ISSUE_CATEGORY_CORE_BOQ_WEB",18:"ISSUE_CATEGORY_CORE_WIPEOUT_COMPLIANCE",19:"ISSUE_CATEGORY_ANDROID_SILICON_ENGPROD",20:"ISSUE_CATEGORY_CORE_LOGS_SRE",21:"ISSUE_CATEGORY_GEO_DATA_ACCESS_API_ONBOARDING",
22:"ISSUE_CATEGORY_CLOUD_NETWORKING_STAGING",23:"ISSUE_CATEGORY_FIREBASE_MESSAGING",24:"ISSUE_CATEGORY_GAR_MOBILE_PLATFORM",25:"ISSUE_CATEGORY_CLOUD_VERTEX_VECTOR_SEARCH",26:"ISSUE_CATEGORY_GCS_METERING_SUPPORT",27:"ISSUE_CATEGORY_WCAG_WEB_PLATFORM",28:"ISSUE_CATEGORY_DEFAULT_DEBUG_DEITY",29:"ISSUE_CATEGORY_THREAD_NETWORK",30:"ISSUE_CATEGORY_EDACLOUD_OPS",31:"ISSUE_CATEGORY_MESSAGES_ENGOPS_TRIAGE",32:"ISSUE_CATEGORY_BAP_SRE",33:"ISSUE_CATEGORY_GCP_RIDGELINE_ENGINEERING",34:"ISSUE_CATEGORY_GCBP_WEB",
35:"ISSUE_CATEGORY_YOUTUBE_ORCA",36:"ISSUE_CATEGORY_CLOUD_PLATFORM_APIGEE",37:"ISSUE_CATEGORY_FITBIT_LABS",38:"ISSUE_CATEGORY_RVOS_WOOF_OOBE",39:"ISSUE_CATEGORY_ASTRO_MIDDLEWARE",40:"ISSUE_CATEGORY_CORE_SRE_STANDARDIZED_ENGAGEMENTS",41:"ISSUE_CATEGORY_YOUTUBE_CREATOR_RECOMMENDATION_PLATFORM"},Ybd={ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",VERIFIER:"VERIFIER",CC:"CC",COLLABORATOR:"COLLABORATOR",
CHANGELIST:"CHANGELIST",INCIDENT:"INCIDENT",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",TITLE:"TITLE",FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",ESCALATION_OWNER:"ESCALATION_OWNER",
CUSTOM_FIELD:"CUSTOM_FIELD",POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",COLLABORATOR_COUNT:"COLLABORATOR_COUNT",MODIFIED_BY:"MODIFIED_BY",LAST_MODIFIER:"LAST_MODIFIER",ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",CLOSURE_SLO:"CLOSURE_SLO",TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE",ACCESS_LEVEL:"ACCESS_LEVEL",DESCENDANT_COUNT:"DESCENDANT_COUNT",
OPEN_DESCENDANT_COUNT:"OPEN_DESCENDANT_COUNT",ONE_DAY_VIEW_COUNT:"ONE_DAY_VIEW_COUNT",SEVEN_DAY_VIEW_COUNT:"SEVEN_DAY_VIEW_COUNT",THIRTY_DAY_VIEW_COUNT:"THIRTY_DAY_VIEW_COUNT",RELATIVE_MODIFIED_TIME:"RELATIVE_MODIFIED_TIME",ALERTS:"ALERTS",TIMEFRAME:"TIMEFRAME",PROGRESS:"PROGRESS",TRIAGER:"TRIAGER",ENRICHMENT_CATEGORIES:"ENRICHMENT_CATEGORIES"},LSa={1:"ISSUE_ID",2:"COMPONENT_PATH",3:"TYPE",4:"STATUS",5:"PRIORITY",6:"SEVERITY",7:"REPORTER",8:"ASSIGNEE",9:"VERIFIER",10:"CC",43:"COLLABORATOR",11:"CHANGELIST",
58:"INCIDENT",32:"POSTMORTEM",12:"BLOCKING_ISSUE_ID",13:"BLOCKED_BY_ISSUE_ID",14:"CREATED_TIME",15:"MODIFIED_TIME",16:"RESOLVED_TIME",17:"VERIFIED_TIME",38:"DELETION_TIME",18:"TITLE",19:"FOUND_IN_VERSION",20:"TARGETED_TO_VERSION",21:"VERIFIED_IN_VERSION",22:"IN_PROD",23:"CANONICAL_ISSUE_ID",51:"ESCALATION_OWNER",24:"CUSTOM_FIELD",25:"POSITION",26:"VOTE_COUNT",27:"DUPLICATE_COUNT",28:"CC_COUNT",44:"COLLABORATOR_COUNT",29:"MODIFIED_BY",30:"LAST_MODIFIER",31:"ARCHIVED",33:"MIN_SLO",35:"ASSIGNMENT_SLO",
36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE",45:"ACCESS_LEVEL",46:"DESCENDANT_COUNT",47:"OPEN_DESCENDANT_COUNT",48:"ONE_DAY_VIEW_COUNT",49:"SEVEN_DAY_VIEW_COUNT",50:"THIRTY_DAY_VIEW_COUNT",52:"RELATIVE_MODIFIED_TIME",53:"ALERTS",54:"TIMEFRAME",55:"PROGRESS",56:"TRIAGER",57:"ENRICHMENT_CATEGORIES"},VM={},rTa=(VM.ISSUE_ID=1,VM.COMPONENT_PATH=2,VM.TYPE=3,VM.STATUS=4,VM.PRIORITY=5,VM.SEVERITY=6,VM.REPORTER=7,VM.ASSIGNEE=8,VM.VERIFIER=
9,VM.CC=10,VM.COLLABORATOR=43,VM.CHANGELIST=11,VM.INCIDENT=58,VM.POSTMORTEM=32,VM.BLOCKING_ISSUE_ID=12,VM.BLOCKED_BY_ISSUE_ID=13,VM.CREATED_TIME=14,VM.MODIFIED_TIME=15,VM.RESOLVED_TIME=16,VM.VERIFIED_TIME=17,VM.DELETION_TIME=38,VM.TITLE=18,VM.FOUND_IN_VERSION=19,VM.TARGETED_TO_VERSION=20,VM.VERIFIED_IN_VERSION=21,VM.IN_PROD=22,VM.CANONICAL_ISSUE_ID=23,VM.ESCALATION_OWNER=51,VM.CUSTOM_FIELD=24,VM.POSITION=25,VM.VOTE_COUNT=26,VM.DUPLICATE_COUNT=27,VM.CC_COUNT=28,VM.COLLABORATOR_COUNT=44,VM.MODIFIED_BY=
29,VM.LAST_MODIFIER=30,VM.ARCHIVED=31,VM.MIN_SLO=33,VM.ASSIGNMENT_SLO=35,VM.RESPONSE_SLO=36,VM.CLOSURE_SLO=37,VM.TEAM=39,VM.ESTIMATE=40,VM.ESTIMATE_TOTAL_OPEN=41,VM.ESTIMATE_TOTAL_COMPLETE=42,VM.ACCESS_LEVEL=45,VM.DESCENDANT_COUNT=46,VM.OPEN_DESCENDANT_COUNT=47,VM.ONE_DAY_VIEW_COUNT=48,VM.SEVEN_DAY_VIEW_COUNT=49,VM.THIRTY_DAY_VIEW_COUNT=50,VM.RELATIVE_MODIFIED_TIME=52,VM.ALERTS=53,VM.TIMEFRAME=54,VM.PROGRESS=55,VM.TRIAGER=56,VM.ENRICHMENT_CATEGORIES=57,VM),Zbd={},WM=(Zbd.ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED=
0,Zbd.CHILD=1,Zbd.DEPENDENCY=2,Zbd.LINKED=3,Zbd),JTa={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"},XM={},xTa=(XM.ISSUE_SIGNAL_UNSPECIFIED=0,XM.NEAR_SLO=1,XM.COMMENT_MENTIONS_ME=2,XM.MENTIONED_NEEDS_RESPONSE=8,XM.BLOCKERS_CLOSED=3,XM.NEWLY_BLOCKING=4,XM.NEEDS_REPORTER_INPUT=
5,XM.REPLIED_TO_MENTION=6,XM.NEWLY_ASSIGNED_TO_ME=7,XM.ISSUE_MANUALLY_SIGNALED=9,XM.ISSUE_SNOOZE_EXPIRED=10,XM.CONFIGURABLE_ALERT=11,XM),B4a={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"},YM={},L4a=(YM.ISSUE_SIGNAL_UNSPECIFIED=0,YM.NEAR_SLO=1,YM.COMMENT_MENTIONS_ME=
2,YM.MENTIONED_NEEDS_RESPONSE=8,YM.BLOCKERS_CLOSED=3,YM.NEWLY_BLOCKING=4,YM.NEEDS_REPORTER_INPUT=5,YM.REPLIED_TO_MENTION=6,YM.NEWLY_ASSIGNED_TO_ME=7,YM.ISSUE_MANUALLY_SIGNALED=9,YM.ISSUE_SNOOZE_EXPIRED=10,YM.CONFIGURABLE_ALERT=11,YM),B1a={0:"ISSUE_SUMMARY_TYPE_UNSPECIFIED",1:"COMMENTS_SHORT",2:"COMMENTS_LONG"},$bd={},acd=($bd.ISSUE_SUMMARY_TYPE_UNSPECIFIED=0,$bd.COMMENTS_SHORT=1,$bd.COMMENTS_LONG=2,$bd),ZZb={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},bcd={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",
UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},YXa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},ZM={},L0a=(ZM.UNKNOWN_SUBSCRIPTION=0,ZM.UNSUBSCRIBED=1,ZM.SUBSCRIBED_CLOSURE_ONLY=2,ZM.SUBSCRIBED_MAJOR_UPDATES=3,ZM.SUBSCRIBED_ALL_UPDATES=4,ZM),l0a={0:"UNSPECIFIED",1:"ADD",2:"REMOVE"},ccd=
{},g0a=(ccd.UNSPECIFIED=0,ccd.ADD=1,ccd.REMOVE=2,ccd),a_b={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},tec={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},b5a={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",4:"ALIAS"},dcd={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",P2:"P2",P3:"P3",P4:"P4"},Ap={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},$M={},PXa=($M.PRIORITY_UNSPECIFIED=0,$M.P0=1,$M.P1=2,$M.P2=3,$M.P3=4,$M.P4=5,$M),ecd={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",
UPVOTE:"UPVOTE"},fcd={},gcd=(fcd.REACTION_TYPE_UNSPECIFIED=0,fcd.UPVOTE=1,fcd),aN={},hcd=(aN.UNSPECIFIED=0,aN.USER_REQUEST=1,aN.ABUSE=2,aN.RESTRICTED=3,aN.RETENTION=4,aN.ACCOUNT_CAPABILITIES=5,aN),bN={},zYa=(bN.REJECTION_REASON_UNSPECIFIED=0,bN.REVERSED=1,bN.SIMILAR=2,bN.NOT_SIMILAR=3,bN.OTHER=4,bN),icd={},j1a=(icd.UNSPECIFIED_RELATION=0,icd.AND=1,icd.OR=2,icd),jcd={RESTRICTION_SEVERITY_UNSPECIFIED:"RESTRICTION_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",RESTRICTED:"RESTRICTED",RESTRICTED_PLUS:"RESTRICTED_PLUS"},
kcd={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},MXa={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},lcd={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},sWa={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},mcd={},uWa=(mcd.UNSPECIFIED_RETENTION=0,mcd.BUGANIZER_DEFAULT=
1,mcd.CUSTOM_PERIOD=2,mcd.INDEFINITE_RETENTION=3,mcd),srb={0:"RUN_STATUS_UNSPECIFIED",1:"RUN_STATUS_IN_PROGRESS",2:"RUN_STATUS_SUCCESS",3:"RUN_STATUS_FAILURE"},JSa={0:"UNSPECIFIED",1:"COMPONENT",2:"TEAM"},ncd={},oTa=(ncd.UNSPECIFIED=0,ncd.COMPONENT=1,ncd.TEAM=2,ncd),ocd={},pcd=(ocd.SENTIMENT_UNSPECIFIED=0,ocd.SENTIMENT_POSITIVE=1,ocd.SENTIMENT_NEGATIVE=2,ocd),qcd={SEVERITY_UNSPECIFIED:"SEVERITY_UNSPECIFIED",S0:"S0",S1:"S1",S2:"S2",S3:"S3",S4:"S4"},JXa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",
4:"S3",5:"S4"},cN={},QXa=(cN.SEVERITY_UNSPECIFIED=0,cN.S0=1,cN.S1=2,cN.S2=3,cN.S3=4,cN.S4=5,cN),UZb={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"},sec={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},IXa={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},dN={},TXa=(dN.SLO_SNOOZE_TYPE_UNSPECIFIED=
0,dN.STARTS_ON=1,dN.ASSIGNMENT_ETA=2,dN.RESPONSE_ETA=3,dN.CLOSURE_ETA=4,dN),WZa={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},rcd={},nXa=(rcd.SLO_SOURCE_UNSPECIFIED=0,rcd.USER=1,rcd.BUGSCOPE=2,rcd),EWa={0:"STANDARD_FIELD_UNSPECIFIED",1:"REPORTER",2:"ASSIGNEE",3:"VERIFIER",4:"CC",5:"TYPE",6:"STATUS",7:"PRIORITY",8:"SEVERITY",9:"CHANGELISTS",10:"PENDING_CHANGELISTS",11:"POSTMORTEMS",12:"FOUND_IN",13:"TARGETED_TO",14:"VERIFIED_IN",15:"IN_PRODUCTION",16:"SLO_STATUS",17:"TEAM",18:"COLLABORATORS",
19:"INCIDENTS"},eN={},GWa=(eN.STANDARD_FIELD_UNSPECIFIED=0,eN.REPORTER=1,eN.ASSIGNEE=2,eN.VERIFIER=3,eN.CC=4,eN.TYPE=5,eN.STATUS=6,eN.PRIORITY=7,eN.SEVERITY=8,eN.CHANGELISTS=9,eN.PENDING_CHANGELISTS=10,eN.POSTMORTEMS=11,eN.FOUND_IN=12,eN.TARGETED_TO=13,eN.VERIFIED_IN=14,eN.IN_PRODUCTION=15,eN.SLO_STATUS=16,eN.TEAM=17,eN.COLLABORATORS=18,eN.INCIDENTS=19,eN),$1a={STATE_UNSPECIFIED:"STATE_UNSPECIFIED",PENDING:"PENDING",MERGED:"MERGED"},VXa={0:"STATE_UNSPECIFIED",1:"PENDING",2:"MERGED"},scd={},WXa=(scd.STATE_UNSPECIFIED=
0,scd.PENDING=1,scd.MERGED=2,scd),tcd={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"},zp={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"},
fN={},OXa=(fN.STATUS_UNSPECIFIED=0,fN.NEW=1,fN.ASSIGNED=2,fN.ACCEPTED=3,fN.FIXED=4,fN.VERIFIED=5,fN.NOT_REPRODUCIBLE=6,fN.INTENDED_BEHAVIOR=7,fN.OBSOLETE=8,fN.INFEASIBLE=9,fN.DUPLICATE=10,fN.INACTIVE=11,fN),ucd={TASK_RESOURCE_TYPE_UNSPECIFIED:"TASK_RESOURCE_TYPE_UNSPECIFIED",CHANGELIST:"CHANGELIST",DRIVE:"DRIVE",ISSUE:"ISSUE",LAUNCH:"LAUNCH",GERRIT:"GERRIT",GOOGLE_TASKS:"GOOGLE_TASKS",IRM:"IRM"},SSa={0:"UNKNOWN_SOURCE",1:"WTDM",2:"NON_WTDM",3:"CRITIQUE",4:"DRIVE",5:"BUGANIZER",6:"ARIANE",7:"GERRIT",
8:"GOOGLE_TASKS",9:"IRM"},gN={},ITa=(gN.UNKNOWN_SOURCE=0,gN.WTDM=1,gN.NON_WTDM=2,gN.CRITIQUE=3,gN.DRIVE=4,gN.BUGANIZER=5,gN.ARIANE=6,gN.GERRIT=7,gN.GOOGLE_TASKS=8,gN.IRM=9,gN),YRa={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},vcd={UNSPECIFIED:"UNSPECIFIED",NEW:"NEW",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",FIXED:"FIXED",WONT_FIX:"WONT_FIX"},R_a={0:"UNSPECIFIED",1:"NEW",2:"CONFIRMED",3:"IN_PROGRESS",4:"FIXED",5:"WONT_FIX"},hN={},U_a=(hN.UNSPECIFIED=0,hN.NEW=1,hN.CONFIRMED=2,hN.IN_PROGRESS=
3,hN.FIXED=4,hN.WONT_FIX=5,hN),wcd={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"},S_a={0:"TRIAGE_SUBPHASE_UNSPECIFIED",1:"NEEDS_INFO",2:"PENDING_TRIAGE",3:"REPORTER_RESPONDED",4:"PENDING_OWNER",5:"EXPECTED",6:"PLANNED",7:"COMMITTED",8:"REOPENED"},iN={},V_a=(iN.TRIAGE_SUBPHASE_UNSPECIFIED=
0,iN.NEEDS_INFO=1,iN.PENDING_TRIAGE=2,iN.REPORTER_RESPONDED=3,iN.PENDING_OWNER=4,iN.EXPECTED=5,iN.PLANNED=6,iN.COMMITTED=7,iN.REOPENED=8,iN),e_b={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},LWa={0:"TYPE_UNSPECIFIED",1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",9:"TEAM",10:"PRODUCT",11:"USER",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC",12:"REPEATED_TEAM",13:"REPEATED_PRODUCT",14:"REPEATED_USER"},jN={},PWa=(jN.TYPE_UNSPECIFIED=0,jN.TEXT=1,jN.DATE=2,jN.ENUM=3,
jN.NUMERIC=4,jN.TEAM=9,jN.PRODUCT=10,jN.USER=11,jN.REPEATED_TEXT=5,jN.REPEATED_DATE=6,jN.REPEATED_ENUM=7,jN.REPEATED_NUMERIC=8,jN.REPEATED_TEAM=12,jN.REPEATED_PRODUCT=13,jN.REPEATED_USER=14,jN),xcd={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"},kN={},q0a=(kN.TYPE_UNSPECIFIED=0,kN.BUG=1,kN.FEATURE_REQUEST=2,kN.CUSTOMER_ISSUE=3,kN.INTERNAL_CLEANUP=4,kN.PROCESS=5,kN.VULNERABILITY=6,kN.PRIVACY_ISSUE=7,kN.PORTFOLIO=8,kN.PROGRAM=9,kN.PROJECT=10,kN.FEATURE=11,kN.MILESTONE=12,kN.EPIC=13,kN.STORY=14,kN.TASK=15,kN),ycd={TYPE_UNSPECIFIED:"TYPE_UNSPECIFIED",ISSUE_DEDUPLICATION:"ISSUE_DEDUPLICATION",HOTLIST:"HOTLIST",ISSUE_DEDUPLICATION_BATCH:"ISSUE_DEDUPLICATION_BATCH",NEEDS_INFO:"NEEDS_INFO",
COMPONENT_ROUTING:"COMPONENT_ROUTING",ANY_ISSUE_EDIT:"ANY_ISSUE_EDIT"},pYa={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION",2:"HOTLIST",3:"ISSUE_DEDUPLICATION_BATCH",4:"NEEDS_INFO",5:"COMPONENT_ROUTING",6:"ANY_ISSUE_EDIT"},lN={},lYa=(lN.TYPE_UNSPECIFIED=0,lN.ISSUE_DEDUPLICATION=1,lN.HOTLIST=2,lN.ISSUE_DEDUPLICATION_BATCH=3,lN.NEEDS_INFO=4,lN.COMPONENT_ROUTING=5,lN.ANY_ISSUE_EDIT=6,lN),mN={},yYa=(mN.TYPE_UNSPECIFIED=0,mN.VIEWED=1,mN.PARTIALLY_ACCEPTED=4,mN.ACCEPTED=2,mN.REJECTED=3,mN),nN={},zcd=(nN.USER_ACTIVITY_TYPE_UNDEFINED=
0,nN.VIEW=1,nN.RELOAD=2,nN.EDIT=3,nN.MARK_AS_READ_OR_UNREAD=4,nN),WZb={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},Acd={},Bcd=(Acd.VIEW_UNSPECIFIED=0,Acd.BASIC=1,Acd.FULL=2,Acd);var yXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yXa,W);yXa.prototype.getStartDate=function(){return X(this,$m,4)};var tp=[1,2];var Lo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lo,W);Lo.prototype.getStatus=function(){return xi(this,1)};Lo.prototype.setStatus=function(a){return Im(this,1,a)};Lo.prototype.getReason=function(){return xi(this,2)};Lo.prototype.setReason=function(a){return Im(this,2,a)};var Cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cp,W);var op=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(op,W);h=op.prototype;h.getStartTime=function(){return X(this,Ti,1)};h.setStartTime=function(a){Ni(this,Ti,1,a)};h.getEndTime=function(){return X(this,Ti,2)};h.setEndTime=function(a){Ni(this,Ti,2,a)};h.hasEndTime=function(){return yi(this,Ti,2)};h.getObjective=function(){return X(this,dn,4)};h.setObjective=function(a){return Ni(this,dn,4,a)};h.getBusinessDays=function(){return Cm(this,5)};
h.setBusinessDays=function(a){return an(this,5,a)};h.getDayType=function(){return xi(this,6)};h.setDayType=function(a){return Im(this,6,a)};var Jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jq,W);var Kq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kq,W);Kq.prototype.getSourceIssueIdsList_asString=function(){return Sm(this,1)};Kq.prototype.setSourceIssueIdsList=function(a){return ur(this,1,a)};var eYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eYa,W);var Ho=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ho,W);Ho.prototype.getAccessLevel=function(){return xi(this,1)};Ho.prototype.setAccessLevel=function(a){return Im(this,1,a)};var AWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AWa,W);var Io=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Io,W);Io.prototype.getSeverity=function(){return xi(this,1)};Io.prototype.setSeverity=function(a){return Im(this,1,a)};var Np=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Np,W);var Mo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mo,W);Mo.prototype.getRetentionPeriod=function(){return X(this,dn,1)};var Oo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oo,W);h=Oo.prototype;h.getAttachmentId_asString=function(){return un(this,1)};h.setAttachmentId=function(a){return Ko(this,1,a)};h.getLength=function(){return pn(this,3)};h.getFilename=function(){return vi(this,4)};h.setFilename=function(a){return Gm(this,4,a)};h.getEntityStatus=function(){return X(this,Lo,6)};h.setEntityStatus=function(a){return Ni(this,Lo,6,a)};h.getEtag=function(){return Tn(this,7)};
h.setEtag=function(a){return Po(this,7,a)};h.getContentVerdict=function(){return X(this,Np,10)};h.setContentVerdict=function(a){Ni(this,Np,10,a)};h.getRestrictedRetentionState=function(){return X(this,Mo,11)};h.setRestrictedRetentionState=function(a){Ni(this,Mo,11,a)};h.getRestrictedRetention=function(){return xi(this,12)};h.setRestrictedRetention=function(a){return Im(this,12,a)};var Wo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wo,W);Wo.prototype.getValuesList=function(a){return Ci(this,$m,1,Di(a))};Wo.prototype.setValuesList=function(a){return Oi(this,1,a)};Wo.prototype.setValues=function(a,b){zw(this,1,$m,a,b)};var Vo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vo,W);Vo.prototype.getValuesList=function(a){return qc(this,1,xb,Di(a))};Vo.prototype.setValuesList=function(a){return xc(this,1,a,wca)};Vo.prototype.getValues=function(a){var b=qc(this,1,xb,3,!0);hb(b,a);return b[a]};Vo.prototype.setValues=function(a,b){zc(this,1,wca,b,a,xb,void 0,1)};var Uo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uo,W);Uo.prototype.getValuesList=function(a){return Dm(this,1,Di(a))};Uo.prototype.setValuesList=function(a){return Hm(this,1,a)};Uo.prototype.getValues=function(a){return Nw(this,1,a)};Uo.prototype.setValues=function(a,b){Vw(this,1,a,b)};var Fm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fm,W);Fm.prototype.getEmailAddress=function(){return vi(this,1)};var Xo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xo,W);h=Xo.prototype;h.getValueCase=function(){return xo(this,To)};h.getCustomFieldId=function(){return pn(this,1)};h.getCustomFieldId_asString=function(){return un(this,1)};h.setCustomFieldId=function(a){return Ko(this,1,a)};h.getDateValue=function(){return $l(this,$m,3,To)};h.getDisplayString=function(){return vi(this,10)};var To=[2,3,4,5,6,7,8,9,12,13,14,15,16,17];var Zo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zo,W);h=Zo.prototype;h.getCustomFieldId=function(){return pn(this,1)};h.getCustomFieldId_asString=function(){return un(this,1)};h.setCustomFieldId=function(a){return Ko(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};h.getType=function(){return xi(this,3)};h.setType=function(a){return Im(this,3,a)};
h.getName=function(){return vi(this,5)};h.setName=function(a){return Gm(this,5,a)};h.getDescription=function(){return vi(this,6)};h.setDescription=function(a){return Gm(this,6,a)};h.getEnumValues=function(a){return Nw(this,8,a)};h.setFieldSignificance=function(a){return Im(this,9,a)};h.getShared=function(){return Gi(this,11)};h.setShared=function(a){$o(this,11,a)};var Ro=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ro,W);Ro.prototype.getCustomFieldId=function(){return pn(this,Ii(this,Qo,1))};Ro.prototype.getCustomFieldId_asString=function(){return un(this,Ii(this,Qo,1))};Ro.prototype.setCustomFieldId=function(a){return So(this,1,Qo,Ib(a,0))};Ro.prototype.hasCustomFieldId=function(){var a=Ii(this,Qo,1);return Nb(fm(this,a))!=null};var Qo=[1,2];var np=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(np,W);np.prototype.getCount=function(){return pn(this,2)};np.prototype.setCount=function(a){return Ko(this,2,a)};np.prototype.getType=function(){return xi(this,4)};np.prototype.setType=function(a){return Im(this,4,a)};var fp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fp,W);var kp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kp,W);kp.prototype.getContent=function(){return X(this,Al,1)};kp.prototype.setContent=function(a){return Ni(this,Al,1,a)};kp.prototype.hasContent=function(){return yi(this,Al,1)};var jp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jp,W);jp.prototype.getContent=function(){return X(this,Al,1)};jp.prototype.setContent=function(a){return Ni(this,Al,1,a)};jp.prototype.hasContent=function(){return yi(this,Al,1)};var ip=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ip,W);ip.prototype.getContent=function(){return X(this,Al,2)};ip.prototype.setContent=function(a){return Ni(this,Al,2,a)};ip.prototype.hasContent=function(){return yi(this,Al,2)};var bXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bXa,W);var lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lp,W);lp.prototype.getKindCase=function(){return xo(this,hp)};var hp=[1,2,3];var Ccd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ccd,W);Ccd.prototype.getState=function(){return xi(this,2)};Ccd.prototype.setState=function(a){return Im(this,2,a)};var Mp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mp,W);h=Mp.prototype;h.getIssueId=function(){return pn(this,6)};h.getIssueId_asString=function(){return un(this,6)};h.setIssueId=function(a){return Ko(this,6,a)};h.getCommentNumber=function(){return Cm(this,7)};h.setCommentNumber=function(a){return an(this,7,a)};h.getComment=function(){return vi(this,1)};h.setComment=function(a){return Gm(this,1,a)};h.getFormattedComment=function(){return X(this,lp,16)};
h.setFormattedComment=function(a){Ni(this,lp,16,a)};h.hasFormattedComment=function(){return yi(this,lp,16)};h.getMentionsList=function(a){return Ci(this,Ccd,14,Di(a))};h.getFormattingMode=function(){return xi(this,9)};h.setFormattingMode=function(a){return Im(this,9,a)};h.getAttachmentsList=function(){return Ci(this,Oo,2,Di())};h.setAttachmentsList=function(a){return Oi(this,2,a)};h.addAllAttachments=function(a){Op(this,2,Oo,a)};h.getModifiedTime=function(){return X(this,Ti,4)};
h.setModifiedTime=function(a){return Ni(this,Ti,4,a)};h.getEntityStatus=function(){return X(this,Lo,5)};h.setEntityStatus=function(a){return Ni(this,Lo,5,a)};h.getVersion=function(){return Cm(this,8)};h.setVersion=function(a){return an(this,8,a)};h.getContentVerdict=function(){return X(this,Np,10)};h.setContentVerdict=function(a){Ni(this,Np,10,a)};h.getRestrictedRetentionState=function(){return X(this,Mo,11)};h.setRestrictedRetentionState=function(a){Ni(this,Mo,11,a)};
h.getRestrictedRetention=function(){return xi(this,12)};h.setRestrictedRetention=function(a){return Im(this,12,a)};h.getEtag=function(){return Tn(this,15)};h.setEtag=function(a){return Po(this,15,a)};var Dp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dp,W);h=Dp.prototype;h.getChangeNumber=function(){return pn(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Ep(this,3)};h.setChangeNumber=function(a){return Ko(this,3,a)};h.getState=function(){return xi(this,4)};h.setState=function(a){return Im(this,4,a)};var Eo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eo,W);Eo.prototype.getAccessLevel=function(){return xi(this,1)};Eo.prototype.setAccessLevel=function(a){return Im(this,1,a)};var up=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(up,W);up.prototype.getRole=function(){return xi(this,1)};up.prototype.setRole=function(a){return Im(this,1,a)};up.prototype.getCount=function(){return em(this,2)};up.prototype.setCount=function(a){return sp(this,2,a)};var xXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xXa,W);h=xXa.prototype;h.getUser=function(){return X(this,Fm,1)};h.setUser=function(a){return Ni(this,Fm,1,a)};h.hasUser=function(){return yi(this,Fm,1)};h.getRole=function(){return xi(this,2)};h.setRole=function(a){return Im(this,2,a)};h.getIsLead=function(){return Gi(this,3)};h.setIsLead=function(a){return $o(this,3,a)};var rp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rp,W);rp.prototype.getUser=function(){return $l(this,xXa,1,vp)};rp.prototype.setUser=function(a){return Yo(this,1,vp,a)};rp.prototype.hasUser=function(){return Ri(this,xXa,1,vp)};rp.prototype.getPlaceholder=function(){return $l(this,up,2,vp)};var vp=[1,2];var wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wp,W);var Bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bp,W);h=Bp.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.getType=function(){return xi(this,2)};h.setType=function(a){return Im(this,2,a)};h.getStatus=function(){return xi(this,3)};h.setStatus=function(a){return Im(this,3,a)};h.getPriority=function(){return xi(this,4)};
h.setPriority=function(a){return Im(this,4,a)};h.getSeverity=function(){return xi(this,5)};h.setSeverity=function(a){return Im(this,5,a)};h.getTitle=function(){return vi(this,6)};h.setTitle=function(a){return Gm(this,6,a)};h.getReporter=function(){return X(this,Fm,7)};h.setReporter=function(a){Ni(this,Fm,7,a)};h.getAssignee=function(){return X(this,Fm,8)};h.setAssignee=function(a){return Ni(this,Fm,8,a)};h.clearAssignee=function(){return Aw(this,8)};h.getVerifier=function(){return X(this,Fm,9)};
h.setVerifier=function(a){Ni(this,Fm,9,a)};h.clearVerifier=function(){return Aw(this,9)};h.getCcsList=function(){return Ci(this,Fm,10,Di())};h.setCcsList=function(a){Oi(this,10,a)};h.addAllCcs=function(a){Op(this,10,Fm,a)};h.setCcs=function(a,b){return zw(this,10,Fm,a,b)};h.getCollaboratorsList=function(){return Ci(this,Fm,31,Di())};h.setCollaboratorsList=function(a){Oi(this,31,a)};h.addAllCollaborators=function(a){Op(this,31,Fm,a)};h.setCollaborators=function(a,b){return zw(this,31,Fm,a,b)};
h.getStaffing=function(){return X(this,wp,36)};h.setStaffing=function(a){Ni(this,wp,36,a)};h.getCanonicalIssueId_asString=function(){return un(this,11)};h.setCanonicalIssueId=function(a){Ko(this,11,a)};h.getBlockedByIssueIdsList=function(){return Jw(this,12,1)};h.getBlockedByIssueIdsList_asString=function(){return Sm(this,12)};h.setBlockedByIssueIdsList=function(a){ur(this,12,a)};h.addAllBlockedByIssueIds=function(a){Uw(this,12,a)};h.getBlockingIssueIdsList=function(){return Jw(this,13,1)};
h.getBlockingIssueIdsList_asString=function(){return Sm(this,13)};h.setBlockingIssueIdsList=function(a){ur(this,13,a)};h.addAllBlockingIssueIds=function(a){Uw(this,13,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return o5a(this,14,Di(a))};h.getHotlistIdsList_asString=function(){return Sm(this,14)};h.setHotlistIdsList=function(a){return ur(this,14,a)};h.addHotlistIds=function(a,b){return Tw(this,14,a,b)};h.addAllHotlistIds=function(a){Uw(this,14,a)};
h.removeHotlistIds=function(a){return Fyc(this,14,a)};h.getCustomFieldsList=function(){return Ci(this,Xo,15,Di())};h.setCustomFieldsList=function(a){return Oi(this,15,a)};h.addCustomFields=function(a){Pp(this,15,Xo,a)};h.getCodeChangesList=function(a){return Dm(this,16,Di(a))};h.setCodeChangesList=function(a){Hm(this,16,a)};h.addAllCodeChanges=function(a){Ac(this,16,Sb,a,Tb)};h.setCodeChanges=function(a,b){return Vw(this,16,a,b)};h.getGerritChangesList=function(){return Ci(this,Dp,35,Di())};
h.setGerritChangesList=function(a){Oi(this,35,a)};h.addAllGerritChanges=function(a){Op(this,35,Dp,a)};h.getInProd=function(){return Gi(this,20)};h.setInProd=function(a){$o(this,20,a)};h.getIsArchived=function(){return Gi(this,21)};h.setIsArchived=function(a){return $o(this,21,a)};h.getDuplicateIssueIdsList_asString=function(){return Sm(this,22)};h.setDuplicateIssueIdsList=function(a){ur(this,22,a)};h.getIsDeleted=function(){return Gi(this,23)};h.setIsDeleted=function(a){$o(this,23,a)};
h.setDeletionReason=function(a){Im(this,24,a)};h.getEntityStatus=function(){return X(this,Lo,25)};h.setEntityStatus=function(a){return Ni(this,Lo,25,a)};h.getSloSnoozeUntil=function(){return X(this,Ti,26)};h.setSloSnoozeUntil=function(a){Ni(this,Ti,26,a)};h.getSloEndTime=function(){return X(this,Ti,34)};h.setSloEndTime=function(a){Ni(this,Ti,34,a)};h.hasSloEndTime=function(){return yi(this,Ti,34)};h.setSloSnoozeType=function(a){Im(this,30,a)};h.getRetention=function(){return xi(this,28)};
h.setRetention=function(a){return Im(this,28,a)};h.getEffort=function(){return X(this,Cp,29)};h.setEffort=function(a){Ni(this,Cp,29,a)};h.hasEffort=function(){return yi(this,Cp,29)};h.getAccessLimit=function(){return X(this,Eo,32)};h.setAccessLimit=function(a){return Ni(this,Eo,32,a)};var K0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K0a,W);K0a.prototype.setNotificationSubscription=function(a){return Im(this,4,a)};var cYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cYa,W);var bYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bYa,W);h=bYa.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return wn(this,1,a)};h.getCommentNumber=function(){return Cm(this,2)};h.setCommentNumber=function(a){return Fn(this,2,a)};var fYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fYa,W);var aYa=[1,2];var yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yp,W);h=yp.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getFormattingMode=function(){return xi(this,4)};h.setFormattingMode=function(a){return Im(this,4,a)};h.getAuthor=function(){return X(this,Fm,5)};h.setAuthor=function(a){Ni(this,Fm,5,a)};h.hasAuthor=function(){return yi(this,Fm,5)};
h.getUpdateTime=function(){return X(this,Ti,6)};h.setUpdateTime=function(a){Ni(this,Ti,6,a)};h.hasUpdateTime=function(){return yi(this,Ti,6)};h.getVersion=function(){return Cm(this,7)};h.setVersion=function(a){return an(this,7,a)};h.getEntityStatus=function(){return X(this,Lo,8)};h.setEntityStatus=function(a){return Ni(this,Lo,8,a)};var Jp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jp,W);h=Jp.prototype;h.getIssueId=function(){return pn(this,2)};h.getIssueId_asString=function(){return un(this,2)};h.setIssueId=function(a){return Ko(this,2,a)};h.getIssueState=function(){return X(this,Bp,3)};h.setIssueState=function(a){return Ni(this,Bp,3,a)};h.getIssueComment=function(){return X(this,Mp,4)};h.setIssueComment=function(a){Ni(this,Mp,4,a)};h.hasIssueComment=function(){return yi(this,Mp,4)};
h.getAttachmentsList=function(){return Ci(this,Oo,18,Di())};h.setAttachmentsList=function(a){return Oi(this,18,a)};h.addAllAttachments=function(a){Op(this,18,Oo,a)};h.getDescription=function(){return X(this,Mp,44)};h.setDescription=function(a){return Ni(this,Mp,44,a)};h.hasDescription=function(){return yi(this,Mp,44)};h.getStatusUpdate=function(){return X(this,yp,43)};h.setStatusUpdate=function(a){Ni(this,yp,43,a)};h.hasStatusUpdate=function(){return yi(this,yp,43)};
h.getCreatedTime=function(){return X(this,Ti,5)};h.setCreatedTime=function(a){return Ni(this,Ti,5,a)};h.getModifiedTime=function(){return X(this,Ti,6)};h.setModifiedTime=function(a){return Ni(this,Ti,6,a)};h.getMajorModifiedTime=function(){return X(this,Ti,35)};h.setMajorModifiedTime=function(a){return Ni(this,Ti,35,a)};h.getResolvedTime=function(){return X(this,Ti,7)};h.setResolvedTime=function(a){return Ni(this,Ti,7,a)};h.getVerifiedTime=function(){return X(this,Ti,8)};
h.setVerifiedTime=function(a){return Ni(this,Ti,8,a)};h.getUserData=function(){return X(this,K0a,9)};h.getParentIssueIdsList_asString=function(){return Sm(this,37)};h.setParentIssueIdsList=function(a){return ur(this,37,a)};h.getAccessLimit=function(){return X(this,Ho,11)};h.setAccessLimit=function(a){return Ni(this,Ho,11,a)};h.getVersion=function(){return Cm(this,12)};h.setVersion=function(a){return an(this,12,a)};h.getEtag=function(){return Tn(this,13)};h.setEtag=function(a){return Po(this,13,a)};
h.getCustomFieldsList=function(){return Ci(this,Zo,15,Di())};h.setCustomFieldsList=function(a){return Oi(this,15,a)};h.addCustomFields=function(a){Pp(this,15,Zo,a)};h.getSloStatus=function(){return X(this,Jq,16)};h.setSloStatus=function(a){Ni(this,Jq,16,a)};h.getSloId_asLegacyNumberOrString=function(){return Ep(this,17)};h.getSloId_asString=function(){return un(this,17)};h.setSloId=function(a){return Ko(this,17,a)};h.getTeamId=function(){return pn(this,33)};
h.getTeamId_asLegacyNumberOrString=function(){return Ep(this,33)};h.getTeamId_asString=function(){return un(this,33)};h.setTeamId=function(a){return Ko(this,33,a)};h.getEscalationOwner=function(){return X(this,Fm,48)};h.setEscalationOwner=function(a){Ni(this,Fm,48,a)};h.getRetentionState=function(){return X(this,Mo,29)};h.setRetentionState=function(a){Ni(this,Mo,29,a)};h.getAncestorsMap=function(){return wc(this,38,Kq,Ub)};h.getChildIssueCount=function(){return Cm(this,39)};
h.setChildIssueCount=function(a){return an(this,39,a)};h.getDescendantIssueCount=function(){return Cm(this,45)};h.setDescendantIssueCount=function(a){return an(this,45,a)};h.getOpenDescendantIssueCount=function(){return Cm(this,46)};h.setOpenDescendantIssueCount=function(a){return an(this,46,a)};h.getIsArchived=function(){return Gi(this,40)};h.setIsArchived=function(a){return $o(this,40,a)};h.getTrackerId=function(){return pn(this,42)};h.getTrackerId_asString=function(){return un(this,42)};
h.setTrackerId=function(a){Ko(this,42,a)};var oN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oN,W);oN.prototype.getCode=function(){return xi(this,1)};oN.prototype.setCode=function(a){return Hn(this,1,a)};oN.prototype.getCodeOrUndefined=function(){return xp(this,1)};var Hv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(Hv,W);var pN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pN,W);h=pN.prototype;h.getLoggingId=function(){return vi(this,1)};h.setLoggingId=function(a){pj(this,1,a)};h.getValue=function(){return em(this,2)};h.setValue=function(a){return Sw(this,2,a)};h.hasValue=function(){return fm(this,2,void 0,void 0,xb)!=null};var fw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fw,W);fw.prototype.getEncryptionSupport=function(){return xi(this,1)};fw.prototype.getCertificateStatus=function(){return xi(this,2)};fw.prototype.getCertificateExpirySec=function(){return pn(this,3)};var qN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qN,W);h=qN.prototype;h.getDisplayName=function(){return vi(this,1)};h.setDisplayName=function(a){return pj(this,1,a)};h.getGivenName=function(){return vi(this,2)};h.setGivenName=function(a){return pj(this,2,a)};h.hasGivenName=function(){return im(this,2)};h.getFamilyName=function(){return vi(this,3)};h.setFamilyName=function(a){return pj(this,3,a)};h.hasFamilyName=function(){return im(this,3)};
h.getSourceType=function(){return xi(this,4)};h.setSourceType=function(a){return Hn(this,4,a)};var Dcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dcd,W);h=Dcd.prototype;h.getUrl=function(){return vi(this,1)};h.setUrl=function(a){return pj(this,1,a)};h.hasUrl=function(){return im(this,1)};h.getType=function(){return xi(this,2)};h.setType=function(a){return Hn(this,2,a)};h.hasType=function(){return jm(this,2)};h.getSourceType=function(){return xi(this,3)};h.setSourceType=function(a){return Hn(this,3,a)};h.getGlyph=function(){return vi(this,4)};
h.setGlyph=function(a){return pj(this,4,a)};var gw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gw,W);gw.prototype.getReachabilityStatus=function(){return xi(this,1)};gw.prototype.getClientData=function(){return vi(this,2)};gw.prototype.hasClientData=function(){return im(this,2)};var rN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rN,W);rN.prototype.getAltText=function(){return vi(this,1)};rN.prototype.setAltText=function(a){return pj(this,1,a)};rN.prototype.getIconUrl=function(){return vi(this,2)};rN.prototype.setIconUrl=function(a){return pj(this,2,a)};var sN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sN,W);h=sN.prototype;h.getTargetType=function(){return xi(this,1,18)};h.getValue=function(){return vi(this,2)};h.setValue=function(a){return pj(this,2,a)};h.hasValue=function(){return im(this,2)};h.getName=function(){return X(this,qN,3)};h.setName=function(a){return Ni(this,qN,3,a)};h.hasName=function(){return yi(this,qN,3)};h.getNameOrUndefined=function(){return yyc(this,qN,3)};
h.getPhoto=function(){return X(this,Dcd,4)};h.setPhoto=function(a){Ni(this,Dcd,4,a)};h.hasPhoto=function(){return yi(this,Dcd,4)};h.getProfileId=function(){return Nw(this,5)};h.setProfileId=function(a){return Vw(this,5,a)};h.getContactId=function(){return Nw(this,6)};h.setContactId=function(a){return Vw(this,6,a)};h.getIsMe=function(){return Gi(this,7)};h.setIsMe=function(a){return Pi(this,7,a)};h.getAffinity=function(){return X(this,pN,8)};h.hasAffinity=function(){return yi(this,pN,8)};
h.getEmailSecurityInfo=function(){return X(this,fw,9)};h.setEmailSecurityInfo=function(a){Ni(this,fw,9,a)};h.getOrgState=function(){return xi(this,10)};h.setOrgState=function(a){Hn(this,10,a)};h.getDataSource=function(){return xi(this,11)};h.setDataSource=function(a){return Hn(this,11,a)};h.hasDataSource=function(){return jm(this,11)};h.getDescription=function(){return vi(this,12)};h.setDescription=function(a){return pj(this,12,a)};h.hasDescription=function(){return im(this,12)};
h.getTagList=function(){return Ci(this,rN,14,Di())};h.setTagList=function(a){Oi(this,14,a)};h.addTag=function(a){Pp(this,14,rN,a)};h.getExtendedData=function(){return X(this,Hv,15)};h.setExtendedData=function(a){Ni(this,Hv,15,a)};h.hasExtendedData=function(){return yi(this,Hv,15)};h.getCanonicalValue=function(){return vi(this,16)};h.setCanonicalValue=function(a){return pj(this,16,a)};h.hasCanonicalValue=function(){return im(this,16)};h.getReachabilityInfo=function(){return X(this,gw,17)};
h.setReachabilityInfo=function(a){Ni(this,gw,17,a)};var tN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tN,W);h=tN.prototype;h.getResultType=function(){return xi(this,1,7)};h.setResultType=function(a){return Hn(this,1,a)};h.getTargetList=function(){return Ci(this,sN,2,Di())};h.setTarget=function(a){zw(this,2,sN,a)};h.getTargetCount=function(){return Ai(this,sN,2)};h.getMemberList=function(){return Ci(this,tN,3,Di())};h.getTotalMemberCount=function(){return Cm(this,4)};h.getIsBoosted=function(){return Gi(this,5)};
h.setIsBoosted=function(a){Pi(this,5,a)};h.getAffinity=function(){return X(this,pN,6)};h.hasAffinity=function(){return yi(this,pN,6)};h.getExtendedData=function(){return X(this,Hv,7)};h.setExtendedData=function(a){Ni(this,Hv,7,a)};h.hasExtendedData=function(){return yi(this,Hv,7)};var Ecd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ecd,W);var Fcd=function(a,b){Oi(a,1,b)};h=Ecd.prototype;h.setResult=function(a,b){return zw(this,1,tN,a,b)};h.getMetadata=function(){return X(this,oN,2)};h.getMutableMetadata=function(){return Ji(this,oN,2)};h.setMetadata=function(a){Ni(this,oN,2,a)};h.hasMetadata=function(){return yi(this,oN,2)};var lRa=Object.prototype.hasOwnProperty;var Gcd={SINGLE_VALUE:"SINGLE_VALUE",COLLECTION:"COLLECTION",USER_COLLECTION:"USER_COLLECTION",LINKED_COLLECTION:"LINKED_COLLECTION",CUSTOM_FIELD:"CUSTOM_FIELD",STATUS_UPDATE:"STATUS_UPDATE"},zec=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),Hcd={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"},Icd={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"},Jcd={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 x2a=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"]]),ar=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,""]]),uN=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,""]]),Kcd=new Map([[1,"High"],[2,"Medium"],[3,"Low"],[4,"Zero"],[0,"--"]]),vN=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,"--"]]),wN=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 Lcd=new Map([["STATUS_UNSPECIFIED",uN.get(0)],["NEW",uN.get(1)],["ASSIGNED",uN.get(2)],["ACCEPTED",uN.get(3)],["FIXED",uN.get(4)],["VERIFIED",uN.get(5)],["DUPLICATE",uN.get(10)],["INFEASIBLE",uN.get(9)],["INACTIVE",uN.get(11)],["NOT_REPRODUCIBLE",uN.get(6)],["OBSOLETE",uN.get(8)],["INTENDED_BEHAVIOR",uN.get(7)]]),Mcd={New:1,Assigned:2,"In Progress (Accepted)":3,Fixed:4,Verified:5},HUa=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]]),xN={},Ncd=(xN.ASSIGNED=!0,xN.ACCEPTED=!0,xN.FIXED=!0,xN.VERIFIED=!0,xN.DUPLICATE=!0,xN.INFEASIBLE=!0,xN.INACTIVE=!0,xN.NOT_REPRODUCIBLE=!0,xN.OBSOLETE=!0,xN.INTENDED_BEHAVIOR=!0,xN),Am=new Map([["STATUS_UNSPECIFIED",ar.get(0)],["NEW",ar.get(1)],["ASSIGNED",ar.get(2)],["ACCEPTED",ar.get(3)],["FIXED",ar.get(4)],["VERIFIED",ar.get(5)],["DUPLICATE",ar.get(10)],["INFEASIBLE",ar.get(9)],["INACTIVE",
ar.get(11)],["NOT_REPRODUCIBLE",ar.get(6)],["OBSOLETE",ar.get(8)],["INTENDED_BEHAVIOR",ar.get(7)]]),yN={},Ocd=(yN.P0="P0",yN.P1="P1",yN.P2="P2",yN.P3="P3",yN.P4="P4",yN.PRIORITY_UNSPECIFIED="--",yN),zN={},SUa=(zN.P0=0,zN.P1=10,zN.P2=20,zN.P3=30,zN.P4=40,zN.PRIORITY_UNSPECIFIED=99,zN),AN={},Pcd=(AN.S0="S0",AN.S1="S1",AN.S2="S2",AN.S3="S3",AN.S4="S4",AN.SEVERITY_UNSPECIFIED="--",AN),Qcd=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"]]),BN={},po=(BN.INVOLVEMENT_UNSPECIFIED=Kcd.get(0),BN.HIGH=Kcd.get(1),BN.MEDIUM=Kcd.get(2),BN.LOW=Kcd.get(3),BN.ZERO=Kcd.get(4),BN),CN={},Zq=(CN.JOB_ROLE_UNSPECIFIED=
vN.get(0),CN.SWE=vN.get(1),CN.SRE=vN.get(2),CN.PM=vN.get(3),CN.TPGM=vN.get(4),CN.UX=vN.get(5),CN.UXD=vN.get(6),CN.UXR=vN.get(7),CN.DATASCI=vN.get(8),CN.LD=vN.get(9),CN.DEVREL=vN.get(10),CN.TW=vN.get(11),CN.GTM=vN.get(12),CN.CE=vN.get(13),CN.OTHER=vN.get(14),CN),DN={},EN=(DN.JOB_ROLE_UNSPECIFIED=wN.get(0),DN.SWE=wN.get(1),DN.SRE=wN.get(2),DN.PM=wN.get(3),DN.TPGM=wN.get(4),DN.UX=wN.get(5),DN.UXD=wN.get(6),DN.UXR=wN.get(7),DN.DATASCI=wN.get(8),DN.LD=wN.get(9),DN.DEVREL=wN.get(10),DN.TW=wN.get(11),DN.GTM=
wN.get(12),DN.CE=wN.get(13),DN.OTHER=wN.get(14),DN);var IRa=Bm("NEW",!0,"FORBIDDEN",10),JRa=Bm("ASSIGNED",!0,"REQUIRED",20),KRa=Bm("ACCEPTED",!0,"REQUIRED",30),LRa=Bm("FIXED",!1,"REQUIRED",40),MRa=Bm("VERIFIED",!1,"REQUIRED",50),NRa=Bm("DUPLICATE",!1,"ALLOWED",60),ORa=Bm("INFEASIBLE",!1,"ALLOWED",70),SRa=Bm("INACTIVE",!1,"ALLOWED",75),PRa=Bm("NOT_REPRODUCIBLE",!1,"ALLOWED",80),QRa=Bm("OBSOLETE",!1,"ALLOWED",90),RRa=Bm("INTENDED_BEHAVIOR",!1,"ALLOWED",100),jo=new Map(TRa().map(function(a){return[a.status,a]})),Rcd=TRa().map(function(a){return{value:a.status,
displayText:a.displayValue}}),Scd=new Set(TRa().filter(function(a){return a.assigneeRequirement==="REQUIRED"}));var XRa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XRa,W);XRa.prototype.getLogoUrl=function(){return vi(this,1)};XRa.prototype.getTheme=function(){return xi(this,2)};XRa.prototype.setTheme=function(a){Im(this,2,a)};var FN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FN,W);h=FN.prototype;h.getTrackerId=function(){return pn(this,1)};h.getTrackerId_asString=function(){return un(this,1)};h.setTrackerId=function(a){Ko(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};h.getName=function(){return vi(this,3)};h.setName=function(a){return Gm(this,3,a)};
h.getInternalBaseUrl=function(){return vi(this,8)};h.getExternalBaseUrl=function(){return vi(this,9)};h.getEtag=function(){return Tn(this,7)};h.setEtag=function(a){return Po(this,7,a)};var Wn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Wn.messageId)};Y(Wn,W);Wn.prototype.getIt=function(){return X(this,FN,9,jb)};Wn.prototype.setIt=function(a){return Ni(this,FN,9,a,jb)};Wn.messageId="b.Tracker";var GN={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:50,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",collaboratorPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,
expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:"",sloEtaViewAs:"DEFAULT"},themePreferences:{density:"COMFORTABLE"},homepagePreferences:{resourceType:void 0,resourceId:void 0},keyboardPreferences:{enableAllHotkeys:!0},commentFormattingPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1,commentFilterPreferences:{commentFilter:void 0},
showInlineImages:!0,missionControlPreferences:{}};var Ks=function(a,b){this.low_=a|0;this.high_=b|0},HN=function(a){return a.high_*4294967296+(a.low_>>>0)};h=Ks.prototype;h.isSafeInteger=function(){var a=this.high_>>21;return a==0||a==-1&&!(this.low_==0&&this.high_==-2097152)};
h.toString=function(a){a=a||10;if(a<2||36<a)throw Error("ad`"+a);if(this.isSafeInteger()){var b=HN(this);return a==10?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=IN(c,c/4294967296);c=this.div(d);d=Math.abs(HN(JN(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length<b&&(e="0000000000000".slice(e.length-b)+e);d=HN(c);return(a==10?d:d.toString(a))+e};h.isZero=function(){return this.low_==0&&this.high_==0};h.equals=function(a){return a==null?!1:this.low_==a.low_&&this.high_==a.high_};
h.compare=function(a){return this.high_==a.high_?this.low_==a.low_?0:this.low_>>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1};var KN=function(a){var b=~a.low_+1|0;return IN(b,~a.high_+!b|0)};Ks.prototype.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=a.high_>>>16,f=a.high_&65535,g=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);g=(a>>>16)+(d+g);d=g>>>16;d+=c+f;return IN((g&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};var JN=function(a,b){return a.add(KN(b))};
h=Ks.prototype;h.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,g=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var l=e*a;var r=(l>>>16)+d*a;var w=r>>>16;r=(r&65535)+e*k;w+=r>>>16;w+=c*a;var x=w>>>16;w=(w&65535)+d*k;x+=w>>>16;w=(w&65535)+e*g;x=x+(w>>>16)+(b*a+c*k+d*g+e*f)&65535;return IN((r&65535)<<16|l&65535,x<<16|w&65535)};
h.div=function(a){if(a.isZero())throw Error("bd");if(this.high_<0){if(this.equals(Tcd)){if(a.equals(Ucd)||a.equals(Vcd))return Tcd;if(a.equals(Tcd))return Ucd;var b=this.high_;b=IN(this.low_>>>1|b<<31,b>>1);b=b.div(a).shiftLeft(1);if(b.equals(LN))return a.high_<0?Ucd:Vcd;var c=JN(this,a.multiply(b));return b.add(c.div(a))}return a.high_<0?KN(this).div(KN(a)):KN(KN(this).div(a))}if(this.isZero())return LN;if(a.high_<0)return a.equals(Tcd)?LN:KN(this.div(KN(a)));b=LN;for(c=this;c.compare(a)>=0;){var d=
Math.max(1,Math.floor(HN(c)/HN(a))),e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=MN(d),g=f.multiply(a);g.high_<0||g.compare(c)>0;)d-=e,f=MN(d),g=f.multiply(a);f.isZero()&&(f=Ucd);b=b.add(f);c=JN(c,g)}return b};h.and=function(a){return IN(this.low_&a.low_,this.high_&a.high_)};h.or=function(a){return IN(this.low_|a.low_,this.high_|a.high_)};h.xor=function(a){return IN(this.low_^a.low_,this.high_^a.high_)};
h.shiftLeft=function(a){a&=63;if(a==0)return this;var b=this.low_;return a<32?IN(b<<a,this.high_<<a|b>>>32-a):IN(0,b<<a-32)};
var MN=function(a){return a>0?a>=0x7fffffffffffffff?Wcd:new Ks(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?Tcd:KN(new Ks(-a,-a/4294967296)):LN},IN=function(a,b){return new Ks(a,b)},Ms=function(a,b){if(a.charAt(0)=="-")return KN(Ms(a.substring(1),b));var c=parseInt(a,b||10);if(c<=9007199254740991)return new Ks(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("cd");if(a.indexOf("-")>=0)throw Error("dd`"+a);b=b||10;if(b<2||36<b)throw Error("ad`"+b);c=MN(Math.pow(b,8));for(var d=LN,e=0;e<a.length;e+=
8){var f=Math.min(8,a.length-e),g=parseInt(a.substring(e,e+f),b);f<8?(f=MN(Math.pow(b,f)),d=d.multiply(f).add(MN(g))):(d=d.multiply(c),d=d.add(MN(g)))}return d},LN=IN(0,0),Ucd=IN(1,0),Vcd=IN(-1,-1),Wcd=IN(4294967295,2147483647),Tcd=IN(0,2147483648);var tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tn,W);tn.prototype.getOpen=function(){return Gi(this,1,!0)};tn.prototype.setOpen=function(a){return Pi(this,1,a)};var zSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zSa,W);var ESa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ESa,W);var xSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xSa,W);var Mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mn,W);h=Mn.prototype;h.getType=function(){return xi(this,1,1)};h.setType=function(a){return Hn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return un(this,2)};h.setCustomFieldId=function(a){return wn(this,2,a)};h.hasCustomFieldId=function(){return on(this,2)};var Jn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jn,W);Jn.prototype.getTimeZone=function(){return vi(this,5)};Jn.prototype.setTimeZone=function(a){return pj(this,5,a)};Jn.prototype.hasTimeZone=function(){return im(this,5)};var Ln=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ln,W);Ln.prototype.getColumnList=function(){return Ci(this,Mn,1,Di())};Ln.prototype.setColumnList=function(a){return Oi(this,1,a)};Ln.prototype.setColumn=function(a){return zw(this,1,Mn,a)};var eTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eTa,W);var sSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sSa,W);var Nn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nn,W);Nn.prototype.getColumn=function(){return X(this,Mn,1)};Nn.prototype.setColumn=function(a){return Ni(this,Mn,1,a)};var Gn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gn,W);Gn.prototype.getColumnList=function(){return Ci(this,Nn,1,Di())};Gn.prototype.setColumnList=function(a){return Oi(this,1,a)};Gn.prototype.setColumn=function(a){return zw(this,1,Nn,a)};var mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mn,W);mn.prototype.getDensity=function(){return xi(this,1,1)};mn.prototype.setDensity=function(a){return Hn(this,1,a)};var ASa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ASa,W);var hTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hTa,W);hTa.prototype.setResourceId=function(a){Kn(this,2,a)};var wSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wSa,W);var Bn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bn,W);Bn.prototype.getSignal=function(){return xi(this,1)};Bn.prototype.setSignal=function(a){return Hn(this,1,a)};Bn.prototype.getChecked=function(){return Gi(this,2)};Bn.prototype.setChecked=function(a){return Pi(this,2,a)};var zn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zn,W);zn.prototype.getSignal=function(){return xi(this,1)};zn.prototype.setSignal=function(a){return Hn(this,1,a)};zn.prototype.getChecked=function(){return Gi(this,2)};zn.prototype.setChecked=function(a){return Pi(this,2,a)};var An=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(An,W);An.prototype.getSignal=function(){return xi(this,1)};An.prototype.setSignal=function(a){return Hn(this,1,a)};An.prototype.getChecked=function(){return Gi(this,2)};An.prototype.setChecked=function(a){return Pi(this,2,a)};var Cn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cn,W);Cn.prototype.getSignal=function(){return xi(this,1)};Cn.prototype.setSignal=function(a){return Hn(this,1,a)};Cn.prototype.getChecked=function(){return Gi(this,2)};Cn.prototype.setChecked=function(a){return Pi(this,2,a)};var Dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dn,W);Dn.prototype.getSignal=function(){return xi(this,1)};Dn.prototype.setSignal=function(a){return Hn(this,1,a)};Dn.prototype.getChecked=function(){return Gi(this,2)};Dn.prototype.setChecked=function(a){return Pi(this,2,a)};var yn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yn,W);yn.prototype.getSignal=function(){return xi(this,1)};yn.prototype.setSignal=function(a){return Hn(this,1,a)};yn.prototype.getChecked=function(){return Gi(this,2)};yn.prototype.setChecked=function(a){return Pi(this,2,a)};var rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rn,W);rn.prototype.getCollapsedMap=function(){return vc(this,2,Vca)};var tTa=function(a,b){Ww(a,7,b)},vTa=function(a,b){Ww(a,8,b)};rn.prototype.getMyTasksSources=function(){return Ow(this,8)};var wTa=function(a,b){Oi(a,18,b)},yTa=function(a,b){Oi(a,19,b)},ATa=function(a,b){Oi(a,20,b)},CTa=function(a,b){Oi(a,21,b)},ETa=function(a,b){Oi(a,22,b)},GTa=function(a,b){Oi(a,24,b)};var rSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rSa,W);var vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vn,W);vn.prototype.getTeamId=function(){return pn(this,1)};vn.prototype.getTeamId_asLegacyNumberOrString=function(){return Ep(this,1)};vn.prototype.getTeamId_asString=function(){return un(this,1)};vn.prototype.setTeamId=function(a){return wn(this,1,a)};var HSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HSa,W);var PSa=function(a,b){return ur(a,1,b)},QSa=function(a,b){Ni(a,Ti,2,b)},OSa=function(a,b){return Oi(a,3,b)};var qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qn,W);qn.prototype.getComponentId=function(){return pn(this,1)};qn.prototype.getComponentId_asString=function(){return un(this,1)};qn.prototype.setComponentId=function(a){return wn(this,1,a)};qn.prototype.hasComponentId=function(){return on(this,1)};var BSa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BSa,W);var sTa=function(a,b){Oi(a,1,b)};var En=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,500)};Y(En,W);h=En.prototype;h.getDisplayColumns=function(){return X(this,Ln,4)};h.setDisplayColumns=function(a){Ni(this,Ln,4,a)};h.getSortColumns=function(){return X(this,Gn,6)};h.getLayoutPreferences=function(){return X(this,eTa,10)};h.getDateTimePreferences=function(){return X(this,Jn,11)};h.getHomepagePreferences=function(){return X(this,hTa,13)};h.getCollapsedMap=function(){return vc(this,27,Vca)};
h.getShowInlineImages=function(){return Gi(this,29)};var Xcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Xcd,W);Xcd.prototype.getValueCase=function(){return xo(this,Ycd)};var Ycd=[1,2];var Zcd=[0,Ycd,NEc,SEc];var NN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NN,W);NN.prototype.getValueCase=function(){return xo(this,ON)};NN.prototype.getStringValue=function(){return zo(this,5,ON)};NN.prototype.setStringValue=function(a){return Co(this,5,ON,a)};NN.prototype.hasStringValue=function(){return mr(this,5,ON)!=null};var ON=[2,3,4,5,6,8];var $cd=[0,ON,GEc,HEc,LEc,FEc,NEc,QEc,tFc,qA,QEc,Zcd];var add=[0,qA];var bdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bdd,W);bdd.prototype.getExperimentToken=function(){return Tn(this,3)};var cdd=[0,add,OEc,$cd,REc,-1];var ddd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ddd,W);var edd=wi(ddd);var fdd=Zsa(ddd,[0,OEc,cdd]);var STa=function(a){this.usesDefaultPayload=!1;a?(a=fdd(a),a=Ci(a,bdd,1,Di())[0]):(this.usesDefaultPayload=!0,a=oea("TSDtV",window),a=edd("["+a.substring(4)),a=Ci(a,bdd,1,Di())[0]);if(a)for(var b=m(Ci(a,NN,2,Di())),c=b.next();!c.done;c=b.next())if(Ri(c.value,Sq,6,ON))throw Error();if(a){b={};c=m(Ci(a,NN,2,Di()));for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=pn(e,1).toString();switch(e.getValueCase()){case 3:b[d]=Gi(e,Ii(e,ON,3));break;case 2:b[d]=Ym(pn(e,Ii(e,ON,2)));break;case 4:b[d]=em(e,
Ii(e,ON,4));break;case 5:b[d]=e.getStringValue();break;case 6:b[d]=$l(e,Sq,6,ON);break;case 8:e=Hnb(e,Xcd,Ii(e,ON,8));switch(e.getValueCase()){case 1:b[d]=zo(e,1,Ycd);break;default:throw Error("ed`"+e.getValueCase());}break;default:throw Error("ed`"+e.getValueCase());}}}else b={};this.flagDict=b;this.token=a?a.getExperimentToken():null};STa.prototype.getFlag=function(a){return!this.usesDefaultPayload||a.key in this.flagDict?a.ctor(this.flagDict[a.key]):a.defaultValue};
STa.prototype.getExperimentToken=function(){return this.token};var Qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qn,W);h=Qn.prototype;h.getAppName=function(){return vi(this,2)};h.getDocumentationBaseUrl=function(){return vi(this,3)};h.getEnvironmentType=function(){return vi(this,5)};h.setEnvironmentType=function(a){return pj(this,5,a)};h.getOnePickUrl=function(){return vi(this,7)};h.getOnePickSecretToken=function(){return vi(this,12)};h.getCommentNumberLimit=function(){return Cm(this,8)};
h.getCreateComponentRedirectDelay=function(){return em(this,9)};h.getCreateRestrictedSubresourcesComponentIds=function(){return Cyc(this,13)};h.getIndefiniteRetentionComponentsAllowlist=function(){return Cyc(this,20)};h.getGppLlmChatComponentAllowlist=function(){return Cyc(this,30)};h.getInternalBaseUrl=function(){return vi(this,24)};h.getExternalBaseUrl=function(){return vi(this,25)};var Sn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sn,W);h=Sn.prototype;h.getEmail=function(){return vi(this,1)};h.setEmail=function(a){return pj(this,1,a)};h.hasEmail=function(){return im(this,1)};h.getSessionIdentifier=function(){return vi(this,3)};h.getUserTypeLabel=function(){return vi(this,5)};var Un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Un.messageId)};Y(Un,W);Un.prototype.getId=function(){return vi(this,1,void 0,jb)};Un.prototype.setId=function(a){return pj(this,1,a,jb)};Un.messageId="b.TimeZoneData";var Vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vn.messageId)};Y(Vn,W);h=Vn.prototype;h.getMessage=function(){return vi(this,1,void 0,jb)};h.setMessage=function(a){return pj(this,1,a,jb)};h.getMessageId=function(){return vi(this,2,void 0,jb)};h.setMessageId=function(a){return pj(this,2,a,jb)};h.hasMessageId=function(){return im(this,2,jb)};h.getTagsList=function(a){return Dm(this,4,Di(a),jb)};h.getTags=function(a){return Nw(this,4,a,jb)};Vn.messageId="b.Announcement";var Rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rn,W);Rn.prototype.getAnnouncement=function(){return X(this,Vn,2)};var QTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QTa,W);h=QTa.prototype;h.getUser=function(){return X(this,Sn,1)};h.setUser=function(a){return Ni(this,Sn,1,a)};h.hasUser=function(){return yi(this,Sn,1)};h.getConfig=function(){return X(this,Qn,2)};h.setConfig=function(a){Ni(this,Qn,2,a)};h.getXsrfToken=function(){return vi(this,3)};h.getCspNonce=function(){return vi(this,8)};h.getFrontendAccessMode=function(){return vi(this,4)};
h.setFrontendAccessMode=function(a){return pj(this,4,a)};h.getMustAcknowledgeTerms=function(){return Gi(this,5)};h.getShowNewFeaturesDialog=function(){return Gi(this,6)};h.getUserPreferences=function(){return X(this,En,7)};h.getAppBaseHref=function(){return vi(this,10)};h.getTracker=function(){return X(this,Wn,11)};h.getPassiveLoginIframeUrl=function(){return X(this,TTa,12)};var RTa=window,Pn;var PTa;var $Ta=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),ZTa=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"),gdd=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"),hdd=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*(?:@?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.?)*)?$",
"i"),dUa=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];var sUa=new WeakMap;var PUa=Xn().user.email,XUa=new WeakMap,ZUa=new WeakMap;var idd=new Map;var PN=function(){this.snackBar=p(nB)};PN.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(jdd,b)};PN.\u0275fac=function(a){return new (a||PN)};PN.\u0275prov=Fc({token:PN,factory:PN.\u0275fac,providedIn:"root"});
var jdd=function(){this.data=p(jB);this.snackBarRef=p(kB)};jdd.\u0275fac=function(a){return new (a||jdd)};
jdd.\u0275cmp=D({type:jdd,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&&(K(0,"div",0),F(1,mVa,1,1,"span",1)(2,nVa,2,1,"span",2),K(3,"div",3),F(4,
oVa,2,1,"button",4),F(5,pVa,2,1,"button",4)(6,qVa,2,0,"button",5),L()());a&2&&(B(),G(b.data.htmlMessage?1:2),B(3),G(b.data.actionLabel?4:-1),B(),G(b.data.dismissLabel?5:6))},dependencies:[Dy,gB,cB,eB],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 QN=function(){this.snackbar=p(PN)};QN.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var Pr=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})},kdd=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})};QN.prototype.showWarning=function(a,b){this.open({message:a,duration:b===void 0?0:b,snackbarType:"ERROR"})};QN.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};QN.\u0275fac=function(a){return new (a||QN)};
QN.\u0275prov=Fc({token:QN,factory:QN.\u0275fac,providedIn:"root"});var RN=function(a,b){this.key=a;this.defaultValue=b;this.flagNameForDebugging=void 0};RN.prototype.ctor=function(a){return typeof a==="boolean"?a:this.defaultValue};var HVa={canSeeAnnouncementBanner:new RN("45738046",!0),enableBulkEditCaptchaUi:new RN("45735884",!1),enableCLsInHumanFilterView:new RN("45738048",!1),enableCustomFieldTypeProductUI:new RN("45735720",!1),enableCustomFieldTypeTeamUI:new RN("45735719",!1),enableCustomFieldTypeUserUI:new RN("45735721",!1),enableDuckieLlmChat:new RN("45736883",!1),enableGppLlmChat:new RN("45738049",!1),enableHelpMeFixSidebar:new RN("45738050",!1),enableInactiveUserContent:new RN("45737528",!1),enableInlineImageAttachments:new RN("45737530",
!1),enableInteractiveMarkdownCheckboxes:new RN("45737531",!1),enableIrmIntegrationMenu:new RN("45735414",!1),enableNeedsInfoUi:new RN("45738051",!1),enableNonWtdmFieldPerTypeVisibility:new RN("45735818",!1),enablePlaybook:new RN("45737907",!1),enableSidebarIlpIcon:new RN("45735074",!1),enableSloLockingUi:new RN("45735860",!1),enableStaffingFieldEnhancementsUi:new RN("45737941",!1),enableSuggestTitle:new RN("45737949",!1),enableTailwind:new RN("45738017",!1),enableTailwindMissionControl:new RN("45738021",
!1),enableTrackersAccountHack:new RN("45735864",!1),enableTriageRecommendationComments:new RN("45735207",!1),readUnreadOptOut:new RN("45736751",!1),runQueryForSidebarIssueCount:new RN("45735865",!0),testClientSideFlag:new RN("45732428",!0),testFlagForClientMigration:new RN("45733424",!1)},ldd=[].concat(q("enableChromeWizard enableCodeMentionsUi enableCommentHistoryUi enableComponentAutomationCheck enableEstado enableExpandedScopeIssuePicker enableMarkdownInlineImages enablePushUpdatesClient enableRefreshSsoPopup enableRostersChecks enableTeamAdmin enableTeamScope enableWaldoAvailability enableWhatsNewDialog majorReleaseNotesUpdated reportErrors weAreHiring TEST_ONLY_flag1 TEST_ONLY_flag2 TEST_ONLY_flag3 TEST_ONLY_flag4".split(" ")),
q(Object.keys(HVa)));var rVa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var mdd={clear:function(){},getItem:function(){return null},removeItem:function(){},setItem:function(){},length:0,key:function(){return null}},so=mdd;try{so=window.localStorage||mdd}catch(a){}
var ndd=function(a){return function(){var b=so.getItem(a);if(b!=null)return b=Number(b),isNaN(b)?void 0:b}},AVa=function(a){return function(){var b=so.getItem(a);if(b!=null)return String(b)}},odd=function(a){return function(b){b==null?so.removeItem(a):so.setItem(a,String(b))}},pdd=function(a){return function(b){b==null?so.removeItem(a):so.setItem(a,b)}},qdd=function(a){return function(){var b=to(a)();wVa(a)(!b);return!b}},uo=function(a){return function(){var b=so.getItem(a);if(b!=null)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+
a+")"),console.warn(c)}}},vo=function(a){return function(b){b==null?so.removeItem(a):so.setItem(a,JSON.stringify(b))}};var GVa=vVa(function(){var a,b=((a=CVa())==null?void 0:a.overrides)||[];return new Map(b.map(function(c){return[c.flagName,c.value]}))});var qu=function(){this.session=Xn()};h=qu.prototype;h.getAppBaseHref=function(){return this.session.appBaseHref};h.userRequiresCaptcha=function(){return this.session.userRequiresCaptcha};h.getFrontendAccessMode=function(){return UTa(this.session)};h.isExternalSession=function(){return this.getFrontendAccessMode()!=="INTERNAL"};h.isInternalSession=function(){return this.getFrontendAccessMode()==="INTERNAL"};
var SN=function(a){return a.getFrontendAccessMode()==="PARTNER"},TN=function(a){return a.getFrontendAccessMode()==="PUBLIC"};qu.prototype.isNonPublicSession=function(){return this.getFrontendAccessMode()!=="PUBLIC"};var rdd=function(a){var b=a.getUserEmail().split("@")[1];return b?a.session.config.trustedEmailDomainsAllowlist.includes("@"+b):!1};qu.prototype.getFlag=function(a){return IVa(a,this.session.config)};var sdd=function(a){return ldd.filter(function(b){return a.getFlag(b)})};
qu.prototype.isAnonymous=function(){return this.session.user.anonymous};qu.prototype.getUserEmail=function(){return this.session.user.email||""};qu.prototype.getSessionIdentifier=function(){return this.session.user.sessionIdentifier||"0"};qu.prototype.getTracker=function(){var a;return(a=this.session.tracker)!=null?a:void 0};var qs=function(a){return!!a.session.tracker};qu.prototype.getPassiveLoginIframeUrl=function(){return this.session.passiveLoginIframeUrl};
qu.prototype.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};qu.prototype.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};qu.prototype.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};var ws=function(a){a:{a=a.session.config.environmentType||"QA";switch(a){case "NIGHTLY":case "PROD":a=!0;break a;case "QA":case "DEV":a=!1;break a;default:wb(a,"Unknown environment type.")}a=void 0}return a};h=qu.prototype;
h.getAppBaseUrl=function(a){return(a===void 0?0:a)||!this.isInternalSession()?ws(this)?"https://issuetracker.google.com/":"https://issuetracker-qa.corp.google.com/":ws(this)?"http://b/":"http://b-qa/"};h.getOnePickUrl=function(){return this.session.config.onePickUrl};h.getAppName=function(){return this.session.config.appName};h.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};h.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};
h.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};h.getInternalBaseUrl=function(){return this.session.config.internalBaseUrl};h.getExternalBaseUrl=function(){return this.session.config.externalBaseUrl};h.getUserPreferences=function(){return this.session.userPreferences};h.getXsrfToken=function(){return this.session.xsrfToken};h.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};h.getCreateRestrictedSubresourcesComponentIds=function(){return this.session.config.createRestrictedSubresourcesComponentIds};
h.getIndefiniteRetentionComponentsAllowlist=function(){return this.session.config.indefiniteRetentionComponentsAllowlist};h.getCspNonce=function(){return this.session.cspNonce};h.getAnnouncement=function(){return this.session.preload.announcement};h.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};h.getGppLlmChatComponentAllowlist=function(){return new Set(this.session.config.gppLlmChatComponentAllowlist)};qu.\u0275fac=function(a){return new (a||qu)};
qu.\u0275prov=Fc({token:qu,factory:qu.\u0275fac,providedIn:"root"});var VN=function(){this.activeSession=p(qu);this.clientFactory=p(UN);this.client=this.clientFactory.create(this.getServiceEndpoint())};VN.prototype.generateAnswers=function(a){var b=this;return this.activeSession.isExternalSession()?jx:pe(function(){return b.client.generateAnswers((new sB).setDuckieClient(9).setText(a).setConversationHistory((new IA).setPrivacyMode(2)).setConversationAgent((new CA).setAgentId("a2a:buganizer_agent")))}).pipe(A(KVa()))};
VN.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":return"https://staging-ml4answers-googleapis.corp.google.com";case "PROD":return"https://ml4answers-googleapis.corp.google.com";default:return"https://autopush-ml4answers-googleapis.corp.google.com"}};VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275prov=Fc({token:VN,factory:VN.\u0275fac,providedIn:"root"});var UN=function(){};
UN.prototype.create=function(a){return new GIc(a,{withCredentials:!0,suppressCorsPreflight:!0})};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275prov=Fc({token:UN,factory:UN.\u0275fac,providedIn:"root"});var NVa=new Set([].concat(q(Object.values({ACCESS_LIMIT:"access_limit",ASSIGNEE:"assignee",BLOCKED_BY_ISSUE_IDS:"blocked_by_issue_ids",BLOCKING_ISSUE_IDS:"blocking_issue_ids",CANONICAL_ISSUE_ID:"canonical_issue_id",CCS:"ccs",COLLABORATORS:"collaborators",CHILD_ISSUE_IDS:"child_issue_ids",CODE_CHANGES:"code_changes",GERRIT_CHANGES:"gerrit_changes",COMPONENT_ID:"component_id",CUSTOM_FIELDS:"custom_fields",DELETION_REASON:"deletion_reason",DUPLICATE_ISSUE_IDS:"duplicate_issue_ids",EFFORT:"effort",ENTITY_STATUS:"entity_status",
FOUND_IN_VERSIONS:"found_in_versions",HOTLIST_IDS:"hotlist_ids",INCIDENTS:"incidents",IN_PROD:"in_prod",IS_ARCHIVED:"is_archived",IS_DELETED:"is_deleted",PARENT_ISSUE_IDS:"parent_issue_ids",STAFFING:"staffing",STAFFING_PLANNED_ALLOCATIONS:"staffing.planned_allocations",POSTMORTEMS:"postmortems",PRIORITY:"priority",RETENTION:"retention",REPORTER:"reporter",SEVERITY:"severity",SLO_SNOOZE_UNTIL:"slo_snooze_until",SLO_END_TIME:"slo_end_time",SLO_SNOOZE_TYPE:"slo_snooze_type",STATUS:"status",TARGETED_TO_VERSIONS:"targeted_to_versions",
TITLE:"title",TYPE:"type",VERIFIER:"verifier",VERIFIED_IN_VERSIONS:"verified_in_versions"}))));var WN={},RVa=(WN[1]="issue_id",WN[3]="type",WN[4]="status",WN[5]="priority",WN[6]="severity",WN[18]="title",WN[15]="modified_time",WN[14]="created_time",WN[17]="verified_time",WN[16]="resolved_time",WN[38]="deletion_time",WN[13]="blocked_by_issue_ids",WN[12]="blocking_issue_ids",WN[26]="vote_count",WN[28]="cc_count",WN[44]="collaborators_count",WN[2]="component_path",WN[27]="duplicate_count",WN[10]="ccs",WN[43]="collaborators",WN[11]="code_changes",WN[58]="incidents",WN[32]="postmortems",WN[8]="assignee",
WN[9]="verifier",WN[7]="reporter",WN[19]="found_in_versions",WN[20]="targeted_to_versions",WN[21]="verified_in_versions",WN[22]="in_prod",WN[30]="last_modifier",WN[25]="position",WN[24]="custom_field",WN[29]="modified_by",WN[31]="archived",WN[23]="canonical_issue_id",WN[33]="min_slo",WN[35]="assignment_slo",WN[36]="response_slo",WN[37]="closure_slo",WN[39]="team",WN[40]="estimate",WN[41]="estimate_total_open",WN[42]="estimate_total_complete",WN[45]="access_level",WN[46]="descendant_count",WN[47]=
"open_descendant_count",WN[48]="one_day_view_count",WN[49]="seven_day_view_count",WN[50]="thirty_day_view_count",WN[51]="escalation_owner",WN[52]="relative_modified_time",WN[53]="alerts",WN[54]="timeframe",WN[55]="progress",WN[56]="triager",WN[57]="enrichment_categories",WN),XN={},TVa=(XN.issue_id=1,XN.type=3,XN.status=4,XN.priority=5,XN.severity=6,XN.title=18,XN.modified_time=15,XN.created_time=14,XN.verified_time=17,XN.resolved_time=16,XN.deletion_time=38,XN.blocked_by_issue_ids=13,XN.blocking_issue_ids=
12,XN.vote_count=26,XN.cc_count=28,XN.collaborators_count=44,XN.component_path=2,XN.duplicate_count=27,XN.ccs=10,XN.collaborators=43,XN.code_changes=11,XN.postmortems=32,XN.assignee=8,XN.verifier=9,XN.reporter=7,XN.found_in_versions=19,XN.targeted_to_versions=20,XN.verified_in_versions=21,XN.in_prod=22,XN.last_modifier=30,XN.position=25,XN.custom_field=24,XN.modified_by=29,XN.archived=31,XN.canonical_issue_id=23,XN.min_slo=33,XN.assignment_slo=35,XN.response_slo=36,XN.closure_slo=37,XN.team=39,XN.estimate=
40,XN.estimate_total_open=41,XN.estimate_total_complete=42,XN.access_level=45,XN.descendant_count=46,XN.open_descendant_count=47,XN.one_day_view_count=48,XN.seven_day_view_count=49,XN.thirty_day_view_count=50,XN.escalation_owner=51,XN.relative_modified_time=52,XN.alerts=53,XN.timeframe=54,XN.progress=55,XN.triager=56,XN.enrichment_categories=57,XN);var Hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hp,W);Hp.prototype.getDisplayColumns=function(){return Nw(this,1)};Hp.prototype.setDisplayColumns=function(a){Vw(this,1,a)};var u0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u0a,W);h=u0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getIssueAccessLimit=function(){return X(this,Eo,2)};h.setIssueAccessLimit=function(a){Ni(this,Eo,2,a)};h.setAddedCollaboratorsList=function(a){Oi(this,3,a)};h.setRemovedCollaboratorsList=function(a){Oi(this,4,a)};var Bo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bo,W);h=Bo.prototype;h.getUser=function(){return $l(this,Fm,1,yo)};h.setUser=function(a){return Yo(this,1,yo,a)};h.hasUser=function(){return Ri(this,Fm,1,yo)};h.getGroup=function(){return $l(this,Fm,2,yo)};h.setGroup=function(a){Yo(this,2,yo,a)};var yo=[1,2,3];var tdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tdd,W);h=tdd.prototype;h.getAppendersList=function(){return Ci(this,Bo,6,Di())};h.setAppendersList=function(a){return Oi(this,6,a)};h.getReadersList=function(){return Ci(this,Bo,8,Di())};h.setReadersList=function(a){return Oi(this,8,a)};h.setImplicitAccess=function(a){return Im(this,10,a)};var udd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(udd,W);h=udd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getIssueAccessLimit=function(){return X(this,Eo,2)};h.setIssueAccessLimit=function(a){Ni(this,Eo,2,a)};h.setAddedCollaboratorsList=function(a){Oi(this,3,a)};h.setRemovedCollaboratorsList=function(a){Oi(this,4,a)};var Jo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jo,W);Jo.prototype.getResourcePath=function(){return vi(this,2)};Jo.prototype.setResourcePath=function(a){return Gm(this,2,a)};Jo.prototype.getRestrictionSeverity=function(){return xi(this,3)};var V0a=function(a){return Im(a,5,2)};var No=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(No,W);var bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bp,W);bp.prototype.getLabel=function(){return vi(this,1)};bp.prototype.setLabel=function(a){return Gm(this,1,a)};bp.prototype.getValue=function(){return em(this,2)};bp.prototype.setValue=function(a){return sp(this,2,a)};var YWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YWa,W);var XWa=function(a,b){return Oi(a,1,b)};YWa.prototype.setOptions=function(a,b){return zw(this,1,bp,a,b)};var VWa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VWa,W);var UWa=function(a,b){return sp(a,1,b)};var ap=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ap,W);h=ap.prototype;h.getInherit=function(){return Gi(this,1)};h.setInherit=function(a){return $o(this,1,a)};h.getId=function(){return pn(this,2)};h.getId_asLegacyNumberOrString=function(){return Ep(this,2)};h.getId_asString=function(){return un(this,2)};h.setId=function(a){return Ko(this,2,a)};h.getName=function(){return vi(this,3)};h.setName=function(a){return Gm(this,3,a)};
var TWa=function(a,b){Yo(a,4,mq,b)},WWa=function(a,b){Yo(a,5,mq,b)};ap.prototype.getCustomFieldId=function(){return pn(this,100)};ap.prototype.getCustomFieldId_asString=function(){return un(this,100)};ap.prototype.setCustomFieldId=function(a){return Ko(this,100,a)};var mq=[4,5];var pp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pp,W);h=pp.prototype;h.getInherit=function(){return Gi(this,1)};h.setInherit=function(a){return $o(this,1,a)};h.getSource=function(){return xi(this,2)};h.setSource=function(a){return Im(this,2,a)};h.getId=function(){return pn(this,3)};h.getId_asLegacyNumberOrString=function(){return Ep(this,3)};h.getId_asString=function(){return un(this,3)};h.setId=function(a){return Ko(this,3,a)};
h.getSourceTeamId_asString=function(){return un(this,5)};h.setSourceTeamId=function(a){Ko(this,5,a)};h.getComment=function(){return vi(this,4)};h.setComment=function(a){return Gm(this,4,a)};h.getEscalationOwner=function(){return X(this,Fm,7)};h.setEscalationOwner=function(a){Ni(this,Fm,7,a)};h.setInheritEscalationOwner=function(a){$o(this,8,a)};var qp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qp,W);h=qp.prototype;h.getMetric=function(){return xi(this,1)};h.getDayType=function(){return xi(this,4)};h.setDayType=function(a){return Im(this,4,a)};h.getObjective=function(){return X(this,dn,3)};h.setObjective=function(a){return Ni(this,dn,3,a)};h.getBusinessDays=function(){return Cm(this,5)};h.setBusinessDays=function(a){return an(this,5,a)};var wr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wr,W);h=wr.prototype;h.getSloId_asLegacyNumberOrString=function(){return Ep(this,1)};h.getSloId_asString=function(){return un(this,1)};h.setSloId=function(a){return Ko(this,1,a)};h.getParentId=function(){return pn(this,2)};h.setParentId=function(a){return Ko(this,2,a)};h.getName=function(){return vi(this,3)};h.setName=function(a){return Gm(this,3,a)};h.getDescription=function(){return vi(this,4)};
h.setDescription=function(a){return Gm(this,4,a)};h.addRules=function(a,b){return Pp(this,5,qp,a,b)};h.removeRules=function(a){return Dw(this,5,qp,a)};h.getIsArchived=function(){return Gi(this,7)};h.setIsArchived=function(a){return $o(this,7,a)};var U0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U0a,W);U0a.prototype.getTemplateId=function(){return pn(this,2)};U0a.prototype.setTemplateId=function(a){return Ko(this,2,a)};var T0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(T0a,W);h=T0a.prototype;h.getIssue=function(){return X(this,Jp,1)};h.setIssue=function(a){return Ni(this,Jp,1,a)};h.setSignificanceOverride=function(a){return Im(this,4,a)};h.getContentJudgement=function(){return X(this,Jo,5)};h.setContentJudgement=function(a){return Ni(this,Jo,5,a)};var Gp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gp,W);h=Gp.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Ko(this,1,a)};h.getName=function(){return vi(this,2)};h.setName=function(a){return Gm(this,2,a)};h.getDescription=function(){return vi(this,3)};h.setDescription=function(a){return Gm(this,3,a)};h.getArchived=function(){return Gi(this,4)};h.setArchived=function(a){return $o(this,4,a)};
h.getDefaultOrderBy=function(){return vi(this,5)};h.setDefaultOrderBy=function(a){return Gm(this,5,a)};h.getDisplayPreferences=function(){return X(this,Hp,6)};h.setDisplayPreferences=function(a){return Ni(this,Hp,6,a)};h.getCreatedTime=function(){return X(this,Ti,7)};h.setCreatedTime=function(a){return Ni(this,Ti,7,a)};h.getModifiedTime=function(){return X(this,Ti,8)};h.setModifiedTime=function(a){return Ni(this,Ti,8,a)};h.getOwnersList=function(){return Ci(this,Fm,9,Di())};
h.setOwnersList=function(a){return Oi(this,9,a)};h.getEtag=function(){return Tn(this,10)};h.setEtag=function(a){return Po(this,10,a)};var wYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wYa,W);h=wYa.prototype;h.getAddMask=function(){return X(this,Dq,1)};h.getMutableAddMask=function(){return Ji(this,Dq,1)};h.setAddMask=function(a){return Ni(this,Dq,1,a)};h.getAdd=function(){return X(this,Bp,2)};h.setAdd=function(a){return Ni(this,Bp,2,a)};h.getComment=function(){return X(this,Mp,3)};h.setComment=function(a){return Ni(this,Mp,3,a)};h.getRemoveMask=function(){return X(this,Dq,5)};
h.getMutableRemoveMask=function(){return Ji(this,Dq,5)};h.setRemoveMask=function(a){return Ni(this,Dq,5,a)};h.getRemove=function(){return X(this,Bp,6)};h.setRemove=function(a){return Ni(this,Bp,6,a)};var tYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tYa,W);h=tYa.prototype;h.getText=function(){return vi(this,1)};h.setText=function(a){return Gm(this,1,a)};h.getFormattingMode=function(){return xi(this,2)};h.setFormattingMode=function(a){return Im(this,2,a)};h.getCreateTime=function(){return X(this,Ti,4)};h.setCreateTime=function(a){return Ni(this,Ti,4,a)};var YN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YN,W);YN.prototype.getIssue=function(){return X(this,Jp,1)};YN.prototype.setIssue=function(a){return Ni(this,Jp,1,a)};YN.prototype.getRecommendation=function(){return vi(this,2)};YN.prototype.setRecommendation=function(a){return Gm(this,2,a)};var nYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nYa,W);nYa.prototype.getName=function(){return vi(this,1)};nYa.prototype.setName=function(a){return Gm(this,1,a)};nYa.prototype.getEntriesList=function(){return Ci(this,YN,3,Di())};var Lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lp,W);h=Lp.prototype;h.getContentCase=function(){return xo(this,Kp)};h.getName=function(){return vi(this,1)};h.setName=function(a){return Gm(this,1,a)};h.getSource=function(){return vi(this,2)};h.setSource=function(a){return Gm(this,2,a)};h.getResource=function(){return vi(this,3)};h.setResource=function(a){return Gm(this,3,a)};h.getType=function(){return xi(this,4)};h.setType=function(a){return Im(this,4,a)};
h.getRecommendation=function(){return vi(this,5)};h.setRecommendation=function(a){return Gm(this,5,a)};h.getScore=function(){return em(this,6)};h.setScore=function(a){return sp(this,6,a)};h.getConfidence=function(){return xi(this,7)};h.setConfidence=function(a){return Im(this,7,a)};h.getCreateTime=function(){return X(this,Ti,8)};h.setCreateTime=function(a){return Ni(this,Ti,8,a)};h.getIssueModification=function(){return $l(this,wYa,12,Kp)};h.setIssueModification=function(a){Yo(this,12,Kp,a)};
h.getRationale=function(){return X(this,tYa,13)};h.setRationale=function(a){Ni(this,tYa,13,a)};var Kp=[9,10,11,12];var Qp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qp,W);Qp.prototype.getType=function(){return xi(this,2)};Qp.prototype.setType=function(a){return Im(this,2,a)};Qp.prototype.getIssueModification=function(){return $l(this,wYa,4,vdd)};Qp.prototype.setIssueModification=function(a){Yo(this,4,vdd,a)};var vdd=[4];var wdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wdd,W);h=wdd.prototype;h.getResources=function(a){return Nw(this,1,a)};h.getTypesList=function(){return xn(this,2,Di())};h.setTypesList=function(a){return Ww(this,2,a)};h.setMinConfidence=function(a){Im(this,3,a)};h.setView=function(a){return Im(this,4,a)};var EYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(EYa,W);h=EYa.prototype;h.getParent=function(){return vi(this,1)};h.setParent=function(a){return Gm(this,1,a)};h.getType=function(){return xi(this,2)};h.setType=function(a){return Im(this,2,a)};h.getResource=function(){return vi(this,3)};h.setResource=function(a){return Gm(this,3,a)};h.getRecommendationsList=function(){return Ci(this,Lp,4,Di())};h.setRecommendationsList=function(a){return Oi(this,4,a)};var xdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xdd,W);h=xdd.prototype;h.getParent=function(){return vi(this,1)};h.setParent=function(a){return Gm(this,1,a)};h.getType=function(){return xi(this,2)};h.setType=function(a){return Im(this,2,a)};h.setRequestsList=function(a){return Oi(this,3,a)};h.addAndReturnRequests=function(){return Bc(this,3,EYa)};var xYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xYa,W);xYa.prototype.getParent=function(){return vi(this,1)};xYa.prototype.setParent=function(a){return Gm(this,1,a)};var ydd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ydd,W);h=ydd.prototype;h.getResource=function(){return vi(this,1)};h.setResource=function(a){return Gm(this,1,a)};h.getType=function(){return xi(this,2)};h.setType=function(a){return Im(this,2,a)};h.setMinConfidence=function(a){Im(this,3,a)};h.setPageSize=function(a){return an(this,4,a)};h.setPageToken=function(a){return Gm(this,5,a)};h.setView=function(a){return Im(this,6,a)};var ZN=function(){},dO=function(){};var eO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,eO.messageId)};Y(eO,W);eO.prototype.getParent=function(){return vi(this,1,void 0,jb)};eO.prototype.setParent=function(a){return Gm(this,1,a,jb)};eO.prototype.setRequestsList=function(a){return Oi(this,2,a,jb)};eO.prototype.addAndReturnRequests=function(){return Bc(this,2,xYa,jb)};eO.messageId="b.BatchCreateUserEngagementsRequest";var zdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zdd.messageId)};Y(zdd,W);zdd.prototype.getRecommendationsList=function(){return Ci(this,Lp,1,Di(),jb)};zdd.prototype.setRecommendationsList=function(a){return Oi(this,1,a,jb)};zdd.messageId="b.BatchLookupTopTopRecommendationsResponse";var Add=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Add.messageId)};Y(Add,W);Add.prototype.getRecommendationsList=function(){return Ci(this,Lp,1,Di(),jb)};Add.prototype.setRecommendationsList=function(a){return Oi(this,1,a,jb)};Add.messageId="b.BatchReplaceRecommendationsResponse";var fO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,fO.messageId)};Y(fO,W);fO.prototype.getRecommendationsList=function(){return Ci(this,Lp,1,Di(),jb)};fO.prototype.setRecommendationsList=function(a){return Oi(this,1,a,jb)};fO.prototype.getNextPageToken=function(){return vi(this,2,void 0,jb)};fO.prototype.getTotalSize=function(){return pn(this,3,void 0,jb)};fO.messageId="b.LookupRecommendationsResponse";var gO=function(){this.executor=p(ZN)};gO.prototype.lookupRecommendations=function(a){var b=(new ydd).setResource(a.resource).setType(lYa[a.type]).setPageSize(a.pageSize).setPageToken(a.pageToken).setView(Bcd[a.view]);a.minConfidence!==void 0&&b.setMinConfidence(sYa[a.minConfidence]);return this.executor.post({url:"action/recommendations/lookup",body:b,responseConstructor:fO}).pipe(A(BYa))};
gO.prototype.batchLookupTopRecommendations=function(a){var b=new wdd;b=Hm(b,1,a.resources).setTypesList(a.types.map(mYa));a.minConfidence!==void 0&&b.setMinConfidence(sYa[a.minConfidence]);a.view!==void 0&&b.setView(Bcd[a.view]);return this.executor.post({url:"action/recommendations/batch",body:b,responseConstructor:zdd}).pipe(A(CYa))};
gO.prototype.createUserEngagements=function(a){a=(new eO).setRequestsList(a.map(AYa));return this.executor.post({url:"action/recommendations/engagements/batch",body:a,responseConstructor:null})};gO.prototype.batchReplaceRecommendations=function(a){var b=(new xdd).setRequestsList(a.requests.map(FYa));a.parent&&b.setParent(a.parent);a.type&&b.setType(lYa[a.type]);return this.executor.post({url:"action/recommendations/batchReplace",body:b,responseConstructor:Add}).pipe(A(DYa))};
gO.\u0275fac=function(a){return new (a||gO)};gO.\u0275prov=Fc({token:gO,factory:gO.\u0275fac,providedIn:"root"});var hO=function(){this.observableApi=p(gO)};hO.prototype.lookupRecommendations=function(a){return ie(this.observableApi.lookupRecommendations(a))};hO.prototype.batchLookupTopRecommendations=function(a){return ie(this.observableApi.batchLookupTopRecommendations(a))};hO.prototype.createUserEngagements=function(a){return ie(this.observableApi.createUserEngagements(a))};
hO.prototype.batchReplaceRecommendations=function(a){return ie(this.observableApi.batchReplaceRecommendations(a))};hO.\u0275fac=function(a){return new (a||hO)};hO.\u0275prov=Fc({token:hO,factory:hO.\u0275fac,providedIn:"root"});var eq=function(a){return"issues/"+a},Wr=function(a){var b;return(b=a.match(/issues\/(\d+)/))==null?void 0:b[1]},w$a=function(a){var b;return(b=a.match(/hotlists\/(\d+)/))==null?void 0:b[1]};var Bdd=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(Bdd,Error);var iO=function(){};h=iO.prototype;h.debug=function(){Vm.apply(null,q(bd.apply(0,arguments)))};h.error=function(){gSa.apply(null,q(bd.apply(0,arguments)))};h.info=function(){Wm.apply(null,q(bd.apply(0,arguments)))};h.log=function(){fSa.apply(null,q(bd.apply(0,arguments)))};h.warn=function(){Xm.apply(null,q(bd.apply(0,arguments)))};iO.\u0275fac=function(a){return new (a||iO)};iO.\u0275prov=Fc({token:iO,factory:iO.\u0275fac,providedIn:"root"});var Cdd=Symbol("Ad"),Ddd=Symbol("Bd"),Edd=Symbol("Cd"),jO=function(){};jO.prototype.schedule=function(a,b){b=b===void 0?0:b;var c=ro(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[Edd]=!0;return}c.resolve(e);d[Edd]=!0},b);d[Cdd]=b;d[Ddd]=c.reject;d[Edd]=!1;return c.promise};jO.prototype.cancel=function(a){var b=a[Cdd];if(b==null||a[Edd])return!1;clearTimeout(b);var c;(c=a[Ddd])==null||c.call(a,Error("Dd"));return a[Edd]=!0};jO.\u0275fac=function(a){return new (a||jO)};
jO.\u0275prov=Fc({token:jO,factory:jO.\u0275fac,providedIn:"root"});var kO=function(){this.butterBar=p(QN);this.activeSession=p(qu);this.$log=p(iO);this.timeout=p(jO)};
kO.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.":Sp(b)?Sp(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 lO=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},mO=function(a,b){if(Rp(b))a.errorHandler(null,b);else throw b;};kO.\u0275fac=function(a){return new (a||kO)};kO.\u0275prov=Fc({token:kO,factory:kO.\u0275fac,providedIn:"root"});var Fdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fdd,W);h=Fdd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setPageSize=function(a){return an(this,2,a)};h.setPageToken=function(a){return Gm(this,3,a)};var Gdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Gdd.messageId)};Y(Gdd,W);Gdd.prototype.getIt=function(){return X(this,Fdd,4,jb)};Gdd.prototype.setIt=function(a){return Ni(this,Fdd,4,a,jb)};Gdd.messageId="b.AggregateIssueDescendantsRequest";var Hdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hdd,W);h=Hdd.prototype;h.getPriority=function(){return xi(this,1)};h.setPriority=function(a){return Im(this,1,a)};h.getIssueIdsList=function(){return Jw(this,2,1)};h.getIssueIdsList_asString=function(){return Sm(this,2)};h.setIssueIdsList=function(a){return ur(this,2,a)};h.addIssueIds=function(a){return Tw(this,2,a)};h.setIssueIds=function(a){zc(this,2,Hb,void 0,a,Nb,void 0,1)};var Idd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Idd,W);h=Idd.prototype;h.getStatus=function(){return xi(this,1)};h.setStatus=function(a){return Im(this,1,a)};h.getIssueIdsList=function(){return Jw(this,2,1)};h.getIssueIdsList_asString=function(){return Sm(this,2)};h.setIssueIdsList=function(a){return ur(this,2,a)};h.addIssueIds=function(a){return Tw(this,2,a)};h.setIssueIds=function(a){zc(this,2,Hb,void 0,a,Nb,void 0,1)};var Jdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jdd,W);h=Jdd.prototype;h.getIssueIdsList=function(){return Jw(this,3,1)};h.getIssueIdsList_asString=function(){return Sm(this,3)};h.setIssueIdsList=function(a){return ur(this,3,a)};h.addIssueIds=function(a){return Tw(this,3,a)};h.setIssueIds=function(a){zc(this,3,Hb,void 0,a,Nb,void 0,1)};h.getCollaboratorsList=function(){return Ci(this,Fm,8,Di())};h.setCollaboratorsList=function(a){Oi(this,8,a)};
h.addAllCollaborators=function(a){Op(this,8,Fm,a)};h.setCollaborators=function(a,b){return zw(this,8,Fm,a,b)};h.getCodeChangesList=function(a){return Dm(this,9,Di(a))};h.setCodeChangesList=function(a){Hm(this,9,a)};h.addAllCodeChanges=function(a){Ac(this,9,Sb,a,Tb)};h.setCodeChanges=function(a,b){return Vw(this,9,a,b)};h.getGerritChangesList=function(){return Ci(this,Dp,13,Di())};h.setGerritChangesList=function(a){Oi(this,13,a)};h.addAllGerritChanges=function(a){Op(this,13,Dp,a)};
h.getBlockedByIssueIdsList=function(){return Jw(this,10,1)};h.getBlockedByIssueIdsList_asString=function(){return Sm(this,10)};h.setBlockedByIssueIdsList=function(a){ur(this,10,a)};h.addAllBlockedByIssueIds=function(a){Uw(this,10,a)};h.getBlockingIssueIdsList=function(){return Jw(this,11,1)};h.getBlockingIssueIdsList_asString=function(){return Sm(this,11)};h.setBlockingIssueIdsList=function(a){ur(this,11,a)};h.addAllBlockingIssueIds=function(a){Uw(this,11,a)};var Kdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kdd,W);Kdd.prototype.getNextPageToken=function(){return vi(this,4)};var Ldd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ldd.messageId)};Y(Ldd,W);Ldd.prototype.getIt=function(){return X(this,Kdd,3,jb)};Ldd.prototype.setIt=function(a){return Ni(this,Kdd,3,a,jb)};Ldd.messageId="b.AggregateIssueDescendantsResponse";var nO=function(){this.executor=p(ZN)};
nO.prototype.get=function(a){var b=(new Gdd).setIt((new Fdd).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:Ldd}).pipe(A(function(c){var d=c.getIt();d=Cm(d,2);var e=c.getIt();e=Cm(e,3);c=c.getIt();var f=X(c,Jdd,1);if(f){var g,k,l,r,w,x,C,H,J,O;c={_rootId:a,issueIds:f.getIssueIdsList().map(Ym).map(Nm).filter(Qm),aggregatedStatus:(w=Ci(f,Idd,4,Di()).map(HYa).filter(Qm))!=null?w:[],aggregatedPriority:(x=Ci(f,Hdd,12,Di()).map(IYa).filter(Qm))!=
null?x:[],reporters:(C=(g=Ci(f,Fm,5,Di()))==null?void 0:g.map(Lm))!=null?C:[],assignees:(H=(k=Ci(f,Fm,6,Di()))==null?void 0:k.map(Lm))!=null?H:[],verifiers:(J=(l=Ci(f,Fm,7,Di()))==null?void 0:l.map(Lm))!=null?J:[],collaborators:(O=(r=f.getCollaboratorsList())==null?void 0:r.map(Lm))!=null?O:[],changelists:f.getCodeChangesList(Km),gerritChanges:f.getGerritChangesList().map(KXa),blockedByIssueIds:f.getBlockedByIssueIdsList().map(Ym).map(Nm).filter(Qm),blockingIssueIds:f.getBlockingIssueIdsList().map(Ym).map(Nm).filter(Qm),
descendantCount:d,openDescendantCount:e}}else c=void 0;return c}))};nO.\u0275fac=function(a){return new (a||nO)};nO.\u0275prov=Fc({token:nO,factory:nO.\u0275fac,providedIn:"root"});var Mdd=function(a){this.isEqual=a===void 0?function(){return!1}:a;this.values$=new wf(1);this.distinctValues$=new wf(1);this.lastValue=void 0;this.empty=!0};Mdd.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 Ndd=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};h=Ndd.prototype;h.age=function(){return Date.now()-this.lastValidated};h.isFresh=function(){return this.age()<this.cfg.freshUntil};h.isAncient=function(){return this.age()>this.cfg.ancientAfter};h.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};h.toString=function(){var a=String(this.data);return Math.ceil(this.age()/1E3)+"s old -- "+a};
var Odd=function(a){this.cfg=a;this.cache=new Map},Qdd=function(a,b){a=Pdd(a,b);return a==null?Infinity:a},Pdd=function(a,b){var c;return(c=a.get(b,!0))==null?void 0:c.age()};Odd.prototype.isFresh=function(a){return Qdd(this,a)<this.cfg.freshUntil};var Rdd=function(a,b){return Qdd(a,b)<=a.cfg.ancientAfter};h=Odd.prototype;h.isAncient=function(){var a=Pdd(this);return a?a>this.cfg.ancientAfter:!1};h.getStatus=function(a){a=this.get(a,!0);if(a!=null)return a.getStatus()};
h.has=function(a,b){return!!this.get(a,b===void 0?!1:b)};h.get=function(a,b){b=b===void 0?!1:b;var c=this.cache.get(a);if(c!=null)return c.age()>this.cfg.ancientAfter&&!b&&this.cache.delete(a),this.cache.get(a)};h.getData=function(a,b){var c;return(c=this.get(a,b===void 0?!1:b))==null?void 0:c.data};h.set=function(a,b){this.cache.set(a,new Ndd(b,this.cfg))};h.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new Ndd(b.data,this.cfg))};
h.validate=function(a,b,c,d){d=d===void 0?!1:d;if(!this.has(a,d))return!1;a=this.getData(a,d);return c(a,b)};h.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};h.toString=function(){return Array.from(this.cache,function(a){a=m(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 Sdd={trustMemory:!0},Tdd=function(){},pRa=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],Udd=function(a){this.ids=[];Object.assign(this,a)};Y(Udd,Tdd);Udd.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var Vdd={freshUntil:1E4,ancientAfter:792E5},oO=function(a){var b=this;a=a===void 0?{}:a;this.error$=new sf;this.watchOneError=function(c){typeof c==="number"&&(c=String(c));return b.error$.pipe(we(function(d){return d.idOrKey===c}))};this.memoryWasSet$=new sf;this.collectiveMemoryWasSet$=new sf;this.valsById=new Map;this.collectionsById=new Map;this.setsByLabel=new Map;this.inFlightGets$=new Nj(Object.freeze({}));this.inFlightSaves$=new Nj(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(A(KYa));
this.saving$=this.inFlightSaves$.pipe(A(KYa));this.thinking$=le(this.getting$,this.saving$).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),pf());this.gotOne=function(c){return function(d,e){e=e===void 0?{}:e;e=e.doNotTrack?JYa:Wdd({label:c,value:Pdd(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));Xdd(b,c).next(d)}};this.gotSet=function(c){return function(d){for(var e=
m(d),f=e.next();!f.done;f=e.next())f=f.value,b.gotOne(b.idForRecord(f))(f,{doNotTrack:!0});Ydd(b,c).next(d)}};this.gotAll=function(c){return function(d){for(var e=Wdd({label:c,value:Pdd(b.collectiveMemory,c)},b.recordType),f=m(d.results),g=f.next();!g.done;g=f.next())g=g.value,b.gotOne(b.idForRecord(g))(g,{doNotTrack:!0});f=b.normalize(d);b.collectiveMemory.validate(c,f,oRa);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=Zdd(b,f,d.results),
e.next(d)):fSa(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&&Xm("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=m(c);c=d.next().value;d=d.next().value;
return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves()).map(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),records:b.memory.debug(),lists:b.collectiveMemory.debug()}};this.implementsFn=function(){return function(){try{b.doSave()}catch(d){var c=d;if((c.message===void 0?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};this.canSave=this.implementsFn();this.icons={fetchOne:"\ud83d\udcbf",fetchAll:"\ud83d\udcdc",__doCreate:"\ud83c\udf1f",
doSave:"\u270f\ufe0f",no:"\u274c"};this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return c==null?KYa(b.inFlightSaves()):!!b.inFlightSaves()[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(A(function(d){return!!d[c]}),pf())};this.isGetting=function(c){return c==null?KYa(b.inFlightGets()):!!b.inFlightGets()[c]};this.save=function(c){var d=b.idForRecord(c);if(d==null)throw Error("Ed");c=b.doSave(c).pipe(of(0,Br),vla(),Eha());b.setIsSaving(d);b.subscriptions.add(c.subscribe(b.gotOne(d),
b.gotErr(d,b.inFlightSaves$),$dd(d,b.inFlightSaves$)));return c};this.setIsSaving=function(c){var d={};LYa(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){MYa(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};LYa(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){MYa(b.inFlightGets$,c)};this.peekAllRecords=function(){return Array.from(b.memory.cache.entries(),function(c){c=m(c);c.next();return c.next().value.data}).filter(Qm)};this.poke.bind(this);this.subscriptions=
new Rd;this.memory=new Odd(Object.assign({},Vdd,a));this.collectiveMemory=new Odd(Object.assign({},Vdd,a))};h=oO.prototype;h.fetchOne=function(){throw Error("Fd");};h.fetchAll=function(){throw Error("Gd");};h.fetchSet=function(){throw Error("Hd");};h.doSave=function(){throw Error("Id");};h.copy=function(){throw Error("Jd");};h.isEqual=function(a,b){return oRa(a,b,100)};h.inFlightGets=function(){return this.inFlightGets$.getValue()};h.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var aed=function(a,b,c){c=c===void 0?{}:c;var d=c.trustMemory;var e=c.trustUncertainMemory;c=Wdd({label:b,value:Pdd(a.memory,b)},a.recordType);d=d&&a.memory.isFresh(b);e=e&&Rdd(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),SYa(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=Xdd(a,b),RYa(c.values$).then(SYa);c("one-fetch");try{var f=a.fetchOne(b).pipe(nf(1),of(0,Br))}catch(g){f=ge(function(){return g})}a.setIsGetting(b);return new Promise(function(g,k){a.subscriptions.add(f.subscribe(function(l){a.gotOne(b)(l);
g(l)},function(l){a.gotErr(b,a.inFlightGets$)(l);k(l)},$dd(b,a.inFlightGets$)))})},ded=function(a,b,c){c=(c===void 0?{}:c).trustMemory;var d="["+[].concat(q(b)).sort().join("-")+"]",e=Wdd({label:d},a.recordType);if(c&&bed(a,b))ced(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=Xdd(a,k);return RYa(k.values$)})).then(function(k){return k.filter(Qm)}).then(a.gotSet(b));else{e("set-fetch");
try{var f=a.fetchSet(b).pipe(nf(1),of(0,Br))}catch(k){f=ge(function(){return k})}c={};c=(c[d]=!0,c);e=m(b);for(var g=e.next();!g.done;g=e.next())c[g.value]=!0;LYa(a.inFlightGets$,c);a.subscriptions.add(f.subscribe(a.gotSet(b),function(k){NYa(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){NYa(a.inFlightGets$,[d].concat(q(b)))}))}},bed=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},ced=function(a,b){var c=eed(a,b).filter(Qm);Ydd(a,b).next(c)};
oO.prototype.getAll=function(a,b){b=(b===void 0?{}:b).trustMemory;var c=OYa(a),d=Wdd({label:c,value:Pdd(this.collectiveMemory,c)},this.recordType);if(b&&this.collectiveMemory.isFresh(c)){d("all-trustMemory");a=this.collectiveMemory.getData(c);var e=fed(this,a);e.results.length!==a.ids.length&&Xm("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=ged(this,a),RYa(a.values$);d("all-fetch");try{e=this.fetchAll(a).pipe(nf(1),of(0,Br))}catch(f){e=ge(function(){return f})}this.setIsGetting(c);this.subscriptions.add(e.subscribe(this.gotAll(c),this.gotErr(c,this.inFlightGets$),$dd(c,this.inFlightGets$)));a=ged(this,a);return RYa(a.values$)};oO.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);gSa(a+" gotErr()",d);MYa(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};
var $dd=function(a,b){return function(){MYa(b,a)}};oO.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new Udd(Object.assign({},QYa(a),{ids:b}))};
var Zdd=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},QYa(b),{results:a})},fed=function(a,b){var c=eed(a,b.ids).filter(Qm);return Zdd(a,b,c)},eed=function(a,b){return b.map(function(c){return a.memory.getData(c)})},ged=function(a,b){b=OYa(b);return PYa(a.collectionsById,b,new Mdd)},Ydd=function(a,b){b="["+[].concat(q(b)).sort().join("-")+"]";return PYa(a.setsByLabel,b,new Mdd)},Xdd=function(a,b){var c=new Mdd(a.isEqual),d=a.memory.getData(b);d!=null&&c.next(d);
return PYa(a.valsById,b,c)};h=oO.prototype;h.watch=function(a,b){b=b===void 0?Sdd:b;if(a==null)throw Error("Kd`"+a+"`"+this.recordType);typeof b==="number"&&(b=Sdd);typeof a==="number"&&(a=String(a));var c=Xdd(this,a);aed(this,a,b).catch(function(){});return c.distinctValues$.asObservable()};h.watchSet=function(a,b){b=b===void 0?Sdd:b;typeof b==="number"&&(b=Sdd);if(a.length===0)return ee([]);a=a.map(function(d){return typeof d==="number"?String(d):d});var c=Ydd(this,a);ded(this,a,b);return c.values$.asObservable()};
h.watchMany=function(a,b){b=b===void 0?Sdd:b;a=Object.assign({},this.defaultQuery,a);var c=ged(this,a);this.getAll(a,b);return c.values$.asObservable()};h.peek=function(a){if(a!=null)return this.memory.getData(String(a),!0)};h.poke=function(a,b){return a==null?Promise.reject(Error("Kd`"+a+"`"+this.recordType)):aed(this,String(a),b)};
var hed=function(a,b){return b==null?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},ied=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(OYa(b))};oO.prototype.announce=function(a,b){b=b===void 0?{}:b;if(a!=null){var c=this.idForRecord(a);if(c==null)throw Error("Ld");this.gotOne(c)(a,Object.assign({},{doNotTrack:!0},b))}};
oO.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(OYa(a))};oO.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)};oO.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};
var Wdd=function(a,b){for(var c=m(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;jed&&Vm("Fridge<"+b+">::trackEvent('"+e+"')",f)}},pO=function(){oO.apply(this,arguments);this.defaultQuery={}};Y(pO,oO);var jed=!1;var qO=function(){pO.call(this);this.api=p(nO);this.recordType="AggregatedIssueMetadata";this.isEqual=mm;this.idForRecord=function(a){return a._rootId}};Y(qO,pO);qO.prototype.fetchOne=function(a){return this.api.get(a)};qO.\u0275fac=function(a){return new (a||qO)};qO.\u0275prov=Fc({token:qO,factory:qO.\u0275fac,providedIn:"root"});var Lr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Lr.messageId)};Y(Lr,W);Lr.prototype.getIt=function(){return X(this,Jo,6,jb)};Lr.prototype.setIt=function(a){return Ni(this,Jo,6,a,jb)};Lr.messageId="b.ContentJudgement";var XYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(XYa,W);XYa.prototype.getContent=function(){return vi(this,1)};XYa.prototype.setContent=function(a){return Gm(this,1,a)};XYa.prototype.getFormattedContent=function(){return X(this,lp,2)};var ZYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZYa,W);h=ZYa.prototype;h.getIssueIdsList=function(){return Jw(this,1,1)};h.getIssueIdsList_asString=function(){return Sm(this,1)};h.setIssueIdsList=function(a){return ur(this,1,a)};h.addIssueIds=function(a){return Tw(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var ked=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ked,W);ked.prototype.getContent=function(){return vi(this,1)};ked.prototype.setContent=function(a){return Gm(this,1,a)};ked.prototype.getFormattedContent=function(){return X(this,lp,2)};var led=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(led,W);h=led.prototype;h.getContentCase=function(){return xo(this,YYa)};h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCategory=function(){return vi(this,2)};h.setCategory=function(a){return Gm(this,2,a)};h.getSummary=function(){return $l(this,ked,5,YYa)};h.hasSummary=function(){return Ri(this,ked,5,YYa)};
h.getAuthor=function(){return X(this,Fm,6)};h.setAuthor=function(a){Ni(this,Fm,6,a)};h.hasAuthor=function(){return yi(this,Fm,6)};h.getTimestamp=function(){return X(this,Ti,7)};h.setTimestamp=function(a){return Ni(this,Ti,7,a)};h.hasTimestamp=function(){return yi(this,Ti,7)};var YYa=[3,4,5];var Vp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vp,W);h=Vp.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCategory=function(){return vi(this,2)};h.setCategory=function(a){return Gm(this,2,a)};h.getAttachmentId_asString=function(){return un(this,3)};h.setAttachmentId=function(a){return Ko(this,3,a)};h.getFeedbackType=function(){return xi(this,4)};
h.setFeedbackType=function(a){return Im(this,4,a)};var med=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(med,W);h=med.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getAttachmentId_asString=function(){return un(this,2)};h.setAttachmentId=function(a){return Ko(this,2,a)};h.getCategory=function(){return vi(this,3)};h.setCategory=function(a){return Gm(this,3,a)};var ned=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ned,W);h=ned.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCategory=function(){return vi(this,3)};h.setCategory=function(a){return Gm(this,3,a)};var oed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oed,W);h=oed.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getAttachmentId_asString=function(){return un(this,2)};h.setAttachmentId=function(a){return Ko(this,2,a)};h.getCategory=function(){return vi(this,3)};h.setCategory=function(a){return Gm(this,3,a)};var ped=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ped,W);ped.prototype.getQuery=function(){return vi(this,1)};ped.prototype.setQuery=function(a){return Gm(this,1,a)};ped.prototype.clearQuery=function(){Aw(this,1)};var qed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qed,W);qed.prototype.getQuery=function(){return vi(this,1)};qed.prototype.setQuery=function(a){return Gm(this,1,a)};qed.prototype.clearQuery=function(){Aw(this,1)};var red=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(red,W);red.prototype.getName=function(){return vi(this,1)};red.prototype.setName=function(a){return Gm(this,1,a)};var sed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sed,W);sed.prototype.getFeedback=function(){return X(this,Vp,1)};sed.prototype.setFeedback=function(a){return Ni(this,Vp,1,a)};sed.prototype.hasFeedback=function(){return yi(this,Vp,1)};var rO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rO.messageId)};Y(rO,W);rO.messageId="f.mt";var ted=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ted,W);h=ted.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getAttachmentId_asString=function(){return un(this,2)};h.setAttachmentId=function(a){return Ko(this,2,a)};h.getCategory=function(){return vi(this,3)};h.setCategory=function(a){return Gm(this,3,a)};h.getContent=function(){return vi(this,4)};
h.setContent=function(a){return Gm(this,4,a)};h.getFormattedContent=function(){return X(this,lp,5)};h.getAuthor=function(){return X(this,Fm,6)};h.setAuthor=function(a){Ni(this,Fm,6,a)};h.hasAuthor=function(){return yi(this,Fm,6)};h.getTimestamp=function(){return X(this,Ti,7)};h.setTimestamp=function(a){return Ni(this,Ti,7,a)};h.hasTimestamp=function(){return yi(this,Ti,7)};h.getContentVerdict=function(){return X(this,Np,8)};h.setContentVerdict=function(a){Ni(this,Np,8,a)};var ued=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ued.messageId)};Y(ued,W);ued.messageId="b.GetAttachmentEnrichmentResponse";var ved=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ved,W);h=ved.prototype;h.getName=function(){return vi(this,1)};h.setName=function(a){return pj(this,1,a)};h.hasName=function(){return im(this,1)};h.getNameOrUndefined=function(){return Lw(this,1)};h.getDisplayName=function(){return vi(this,2)};h.setDisplayName=function(a){return pj(this,2,a)};h.getDescription=function(){return vi(this,3)};h.setDescription=function(a){return pj(this,3,a)};
h.hasDescription=function(){return im(this,3)};var wed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wed.messageId)};Y(wed,W);wed.prototype.getCategory=function(){return X(this,ved,1,jb)};wed.prototype.setCategory=function(a){return Ni(this,ved,1,a,jb)};wed.messageId="b.GetEnrichmentCategoryResponse";var xed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xed,W);var sO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sO.messageId)};Y(sO,W);sO.prototype.getResponse=function(){return X(this,xed,1,jb)};sO.prototype.getMutableResponse=function(){return Ji(this,xed,1,void 0,jb)};sO.prototype.hasResponse=function(){return yi(this,xed,1,jb)};sO.messageId="b.ListAttachmentEnrichmentsResponse";var yed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yed,W);var tO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tO.messageId)};Y(tO,W);tO.prototype.getResponse=function(){return X(this,yed,1,jb)};tO.prototype.getMutableResponse=function(){return Ji(this,yed,1,void 0,jb)};tO.prototype.hasResponse=function(){return yi(this,yed,1,jb)};tO.messageId="b.ListIssueEnrichmentsResponse";var uO=function(){this.executor=p(ZN)},zed=function(a,b){var c=(new red).setName(b);return a.executor.post({url:"action/enrichment_category/"+b+"/get",body:c,responseConstructor:wed}).pipe(A(function(d){return d.getCategory()}),A(WYa))},Aed=function(a,b){var c="issueid:"+b;c=(new qed).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listIssueEnrichments",body:c,responseConstructor:tO}).pipe(A(function(d){d=d.getResponse();return Ci(d,led,1,Di()).map($Ya)}))},Bed=function(a,b,c){var d=
(new ned).setIssueId(b).setCategory(c);return a.executor.post({url:"action/issues/"+b+"/enrichments/"+c+"/delete",body:d,responseConstructor:rO}).pipe(A(function(){}))},Ced=function(a,b,c,d,e){var f={};e&&(f["X-Restricted-Content-Limit"]=String(TYa(e)));e=(new oed).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/categories/"+d,options:{headers:f},body:e,responseConstructor:ued}).pipe(A(function(g){return aZa(X(g,ted,1,jb))}))},Ded=
function(a,b){var c="issueid:"+b;c=(new ped).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listAttachmentEnrichments",body:c,responseConstructor:sO}).pipe(A(function(d){d=d.getResponse();return Ci(d,ted,1,Di()).map(aZa)}))},Eed=function(a,b,c,d){var e=(new med).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/enrichments/"+d+"/delete",body:e,responseConstructor:rO}).pipe(A(function(){}))};
uO.prototype.submitEnrichmentFeedback=function(a){var b=(new sed).setFeedback(cZa(a));return this.executor.post({url:"action/issues/"+a.issueId+"/submitEnrichmentFeedback",body:b,responseConstructor:rO}).pipe(A(function(){}))};uO.\u0275fac=function(a){return new (a||uO)};uO.\u0275prov=Fc({token:uO,factory:uO.\u0275fac,providedIn:"root"});var vO=function(){pO.call(this);this.api=p(uO);this.recordType="AttachmentEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=mm};Y(vO,pO);vO.prototype.fetchOne=function(a){return Ded(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};vO.\u0275fac=function(a){return new (a||vO)};vO.\u0275prov=Fc({token:vO,factory:vO.\u0275fac,providedIn:"root"});var Wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wp,W);h=Wp.prototype;h.getSavedSearchId=function(){return pn(this,1)};h.getSavedSearchId_asString=function(){return un(this,1)};h.setSavedSearchId=function(a){return Ko(this,1,a)};h.getName=function(){return vi(this,2)};h.setName=function(a){return Gm(this,2,a)};h.getDescription=function(){return vi(this,3)};h.setDescription=function(a){return Gm(this,3,a)};h.getQuery=function(){return vi(this,4)};
h.setQuery=function(a){return Gm(this,4,a)};h.clearQuery=function(){Aw(this,4)};h.getDefaultOrderBy=function(){return vi(this,5)};h.setDefaultOrderBy=function(a){return Gm(this,5,a)};h.getDisplayPreferences=function(){return X(this,Hp,6)};h.setDisplayPreferences=function(a){return Ni(this,Hp,6,a)};h.getOwnersList=function(){return Ci(this,Fm,7,Di())};h.setOwnersList=function(a){return Oi(this,7,a)};var Yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yp,W);h=Yp.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Ko(this,1,a)};h.getHotlist=function(){return X(this,Gp,2)};h.setHotlist=function(a){return Ni(this,Gp,2,a)};h.hasHotlist=function(){return yi(this,Gp,2)};var $p=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($p,W);h=$p.prototype;h.getSavedSearchId=function(){return pn(this,1)};h.getSavedSearchId_asString=function(){return un(this,1)};h.setSavedSearchId=function(a){return Ko(this,1,a)};h.getSavedSearch=function(){return X(this,Wp,2)};h.setSavedSearch=function(a){return Ni(this,Wp,2,a)};h.hasSavedSearch=function(){return yi(this,Wp,2)};var aq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aq,W);aq.prototype.getBookmarkGroupId_asString=function(){return un(this,1)};aq.prototype.setBookmarkGroupId=function(a){return Ko(this,1,a)};aq.prototype.getBookmarkGroup=function(){return X(this,bq,2)};aq.prototype.setBookmarkGroup=function(a){return Ni(this,bq,2,a)};var Zp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zp,W);h=Zp.prototype;
h.getHotlist=function(){return $l(this,Yp,1,Xp)};h.setHotlist=function(a){return Yo(this,1,Xp,a)};h.hasHotlist=function(){return Ri(this,Yp,1,Xp)};h.getSavedSearch=function(){return $l(this,$p,2,Xp)};h.setSavedSearch=function(a){return Yo(this,2,Xp,a)};h.hasSavedSearch=function(){return Ri(this,$p,2,Xp)};h.getBookmarkGroup=function(){return $l(this,aq,3,Xp)};h.setBookmarkGroup=function(a){return Yo(this,3,Xp,a)};var bq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};
Y(bq,W);h=bq.prototype;h.getBookmarkGroupId_asString=function(){return un(this,1)};h.setBookmarkGroupId=function(a){return Ko(this,1,a)};h.getName=function(){return vi(this,2)};h.setName=function(a){return Gm(this,2,a)};h.getDescription=function(){return vi(this,3)};h.setDescription=function(a){return Gm(this,3,a)};h.getArchived=function(){return Gi(this,4)};h.setArchived=function(a){return $o(this,4,a)};h.addItems=function(a,b){return Pp(this,5,Zp,a,b)};h.setItems=function(a){zw(this,5,Zp,a)};
h.removeItems=function(a){return Dw(this,5,Zp,a)};h.getOwnersList=function(){return Ci(this,Fm,6,Di())};h.setOwnersList=function(a){return Oi(this,6,a)};var Xp=[1,2,3];var wO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wO.messageId)};Y(wO,W);wO.prototype.getIt=function(){return X(this,bq,10,jb)};wO.prototype.setIt=function(a){return Ni(this,bq,10,a,jb)};wO.messageId="b.BookmarkGroup";var Fed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fed.messageId)};Y(Fed,W);Fed.messageId="b.BookmarkGroupListResponse";var xO=function(){this.executor=p(dO)};xO.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:wO}).then(lZa)};xO.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:Fed}).then(mZa)};xO.prototype.create=function(a){a=(new wO).setIt((new bq).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:wO}).then(lZa)};
xO.prototype.update=function(a){var b=(new wO).setIt(hZa(a));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:wO}).then(lZa)};xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275prov=Fc({token:xO,factory:xO.\u0275fac,providedIn:"root"});var yO=function(){pO.call(this,{freshUntil:3E5});this.bookmarkGroupApi=p(xO);this.recordType="bookmarkGroup";this.idForRecord=function(a){return String(a.bookmarkGroupId)}};Y(yO,pO);yO.prototype.fetchOne=function(a){var b=this;return pe(function(){return b.bookmarkGroupApi.get(a)})};yO.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)}))};yO.\u0275fac=function(a){return new (a||yO)};yO.\u0275prov=Fc({token:yO,factory:yO.\u0275fac,providedIn:"root"});var Ged=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ged.messageId)};Y(Ged,W);h=Ged.prototype;h.getAuthor=function(){return vi(this,1,void 0,jb)};h.setAuthor=function(a){pj(this,1,a,jb)};h.hasAuthor=function(){return im(this,1,jb)};h.getDescription=function(){return vi(this,2,void 0,jb)};h.setDescription=function(a){return pj(this,2,a,jb)};h.hasDescription=function(){return im(this,2,jb)};h.getPending=function(){return Gi(this,3,void 0,jb)};
h.getTimestamp=function(){return pn(this,4,void 0,jb)};h.setTimestamp=function(a){return wn(this,4,a,void 0,jb)};h.hasTimestamp=function(){return on(this,4,jb)};Ged.messageId="b.ChangelistDetailsResponse";var Hed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hed,W);h=Hed.prototype;h.getIssueIdsList=function(){return Jw(this,1,1)};h.getIssueIdsList_asString=function(){return Sm(this,1)};h.setIssueIdsList=function(a){return xc(this,1,a,Hb)};h.addIssueIds=function(a){return zc(this,1,Hb,a,void 0,Pb)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Pb,void 0,1)};var Ied=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ied.messageId)};Y(Ied,W);h=Ied.prototype;h.getQuery=function(){return X(this,Hed,1,jb)};h.setQuery=function(a){return Ni(this,Hed,1,a,jb)};h.clearQuery=function(){Aw(this,1,jb)};h.hasQuery=function(){return yi(this,Hed,1,jb)};h.getNextPageToken=function(){return vi(this,2,void 0,jb)};Ied.messageId="b.ListChangelistsRequest";var oZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oZa,W);h=oZa.prototype;h.getAuthor=function(){return vi(this,1)};h.setAuthor=function(a){pj(this,1,a)};h.hasAuthor=function(){return im(this,1)};h.getChangelistNumber=function(){return Cm(this,2)};h.getPending=function(){return Gi(this,3)};h.getTimestamp=function(){return X(this,Ti,4)};h.setTimestamp=function(a){return Ni(this,Ti,4,a)};h.hasTimestamp=function(){return yi(this,Ti,4)};
h.getIssueIdsList=function(){return Jw(this,5,1)};h.getIssueIdsList_asString=function(){return Sm(this,5)};h.setIssueIdsList=function(a){return xc(this,5,a,Hb)};h.addIssueIds=function(a){return zc(this,5,Hb,a,void 0,Pb)};h.setIssueIds=function(a){zc(this,5,Hb,void 0,a,Pb,void 0,1)};var Jed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Jed.messageId)};Y(Jed,W);Jed.prototype.getNextPageToken=function(){return vi(this,2,void 0,jb)};Jed.messageId="b.ListChangelistsResponse";var Ked=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ked.messageId)};Y(Ked,W);Ked.messageId="b.PendingChangelistsResponse";var zO=function(){this.executor=p(ZN)};zO.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:Ked}).pipe(A(nZa))};zO.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:Ged}).pipe(A(rZa))};
var Led=function(a,b){var c=new Ied,d=c.setQuery;b=(new Hed).setIssueIdsList(b);b=Hn(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:Jed}).pipe(A(qZa))};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275prov=Fc({token:zO,factory:zO.\u0275fac,providedIn:"root"});var AO=function(){this.changelistResources=p(zO)};AO.prototype.getPendingChangelistsForIssue=function(a){return ie(this.changelistResources.getPendingChangelistsForIssue(a))};
AO.prototype.getChangelistDetails=function(a){return ie(this.changelistResources.getChangelistDetails(a))};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275prov=Fc({token:AO,factory:AO.\u0275fac,providedIn:"root"});var BO=function(){oO.call(this);this.api=p(zO);this.defaultQuery={};this.recordType="Changelist";this.idForRecord=function(a){return String(a.changelistNumber)}};Y(BO,oO);BO.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return a.length===0?ee({results:[]}):Led(this.api,a).pipe(A(function(b){var c;return{results:(c=b.changelists)!=null?c:[]}}));throw Error("Od");};BO.\u0275fac=function(a){return new (a||BO)};BO.\u0275prov=Fc({token:BO,factory:BO.\u0275fac,providedIn:"root"});var CO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,CO.messageId)};Y(CO,W);CO.prototype.getIt=function(){return X(this,Ho,2,jb)};CO.prototype.setIt=function(a){return Ni(this,Ho,2,a,jb)};CO.messageId="b.AccessLimit";var DO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,DO.messageId)};Y(DO,W);DO.prototype.getIt=function(){return X(this,tdd,13,jb)};DO.prototype.setIt=function(a){return Ni(this,tdd,13,a,jb)};DO.messageId="b.AccessPolicy";var Med={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"},ps={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?"+yZa(a)}},listIssuesRecent:{routeDeclarationPath:"recent",makeHref:function(){return"/recent"}},createIssue:{routeDeclarationPath:"issues/new",makeHref:function(a){return a==null?"/issues/new":"/issues/new?"+
yZa(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?"+yZa({parentId:a})}},editComponent:{routeDeclarationPath:"components/:componentId/edit",makeHref:function(a){return"/components/"+a+"/edit"}},editComponentAccess:{routeDeclarationPath:"components/:componentId/edit#access",
makeHref:function(a){return"/components/"+a+"/edit#access"}},editComponentFields:{routeDeclarationPath:"components/:componentId/edit#customFields",makeHref:function(a){return"/components/"+a+"/edit#customFields"}},editComponentTemplates:{routeDeclarationPath:"components/:componentId/edit#templates",makeHref:function(a){return"/components/"+a+"/edit#templates"}},editComponentFieldConfigurations:{routeDeclarationPath:"components/:componentId/edit#fieldVisibility",makeHref:function(a){return"/components/"+
a+"/edit#fieldVisibility"}},listComponentsGlobal:{routeDeclarationPath:"components/all",makeHref:function(){return"/components/all"}},listComponents:{routeDeclarationPath:"components",makeHref:function(){return"/components"}},editTeam:{routeDeclarationPath:"teams/:teamId/edit",makeHref:function(a,b){return"/teams/"+a+"/edit#"+b}},createBookmarkGroup:{routeDeclarationPath:"bookmark-groups/new",makeHref:function(){return"/bookmark-groups/new"}},viewBookmarkGroup:{routeDeclarationPath:"bookmark-groups/:groupId",
makeHref:function(a){return"/bookmark-groups/"+a}},editBookmarkGroup:{routeDeclarationPath:"bookmark-groups/:groupId/edit",makeHref:function(a){return"/bookmark-groups/"+a+"/edit"}},viewSavedSearch:{routeDeclarationPath:"savedsearches/:savedSearchId",makeHref:function(a){return"/savedsearches/"+a}},editSavedSearch:{routeDeclarationPath:"savedsearches/:savedSearchId/edit",makeHref:function(a){return"/savedsearches/"+a+"/edit"}},settings:{routeDeclarationPath:"settings",makeHref:function(){return"/settings"}},
settingsTab:{routeDeclarationPath:"settings/:settingsTab?",makeHref:function(a){return"/settings/"+a}},viewAttachment:{routeDeclarationPath:"viewattachment/:issueId/:attachmentId",makeHref:function(a,b,c){return"/viewattachment/"+a+"/"+b+"?"+yZa({mimeType:c})}}};var Ned=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ned.messageId)};Y(Ned,W);Ned.messageId="b.CheckPermissionResponse";var EO=function(){this.executor=p(ZN)};h=EO.prototype;h.get=function(a,b){a=Up(fq(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:DO}).pipe(A(uZa))};
h.update=function(a,b,c){a=Up(fq(a,b));var d;b=new DO;var e=b.setIt;c=Object.assign({},c,{implicitAccess:(d=c.implicitAccess)!=null?d:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null});var f,g,k,l,r,w;d=new tdd;var x=((f=c.admins)!=null?f:[]).map(Do);f=Oi(d,2,x).setAppendersList(((g=c.appenders)!=null?g:[]).map(Do));g=((k=c.editors)!=null?k:[]).map(Do);k=Oi(f,4,g).setReadersList(((l=c.readers)!=null?l:[]).map(Do));l=((r=c.restrictedReaders)!=null?r:[]).map(Do);
r=Oi(k,11,l);l=((w=c.restrictedPlusReaders)!=null?w:[]).map(Do);w=Oi(r,12,l);if(c.implicitAccess){r=w.setImplicitAccess;a:switch(c.implicitAccess){case "IMPLICIT_ACCESS_UNSPECIFIED":c=0;break a;case "ALLOW":c=1;break a;case "DENY":c=2;break a;default:throw Error("id");}r.call(w,c)}b=e.call(b,w);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:DO}).pipe(A(uZa))};
h.checkPermission=function(a,b,c,d){a=Up(a.join(","));b=Up(b);c=Up(fq(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:Ned}).pipe(A(tZa))};h.setAccessLimit=function(a,b,c){a=Up(fq(a,b));c=(new CO).setIt(eWa(c));return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:CO}).pipe(A(sZa))};h.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(A(function(b){return b.implicitAccess==="ALLOW"}))};
EO.\u0275fac=function(a){return new (a||EO)};EO.\u0275prov=Fc({token:EO,factory:EO.\u0275fac,providedIn:"root"});var FO=function(){this.observableApi=p(EO)};h=FO.prototype;h.get=function(a,b){return ie(this.observableApi.get(a,b))};h.update=function(a,b,c){return ie(this.observableApi.update(a,b,c))};h.checkPermission=function(a,b,c,d){return ie(this.observableApi.checkPermission(a,b,c,d))};h.setAccessLimit=function(a,b,c){return ie(this.observableApi.setAccessLimit(a,b,c))};
h.checkComponentImplicitAccessEnabled=function(a){return ie(this.observableApi.checkComponentImplicitAccessEnabled(a))};FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275prov=Fc({token:FO,factory:FO.\u0275fac,providedIn:"root"});var GO=function(){pO.call(this);this.accessPolicyApi=p(EO);this.recordType="componentAccessPolicy";this.isEqual=mm;this.idForRecord=function(a){return a.id}};Y(GO,pO);GO.prototype.fetchOne=function(a){return this.accessPolicyApi.get("COMPONENT",a).pipe(A(function(b){return Object.assign({},{id:a},b)}),jf(function(){return ee(void 0)}))};GO.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("COMPONENT",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};
GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275prov=Fc({token:GO,factory:GO.\u0275fac,providedIn:"root"});var HO=function(){};HO.prototype.adapt=function(a){var b,c=new Oed(a.call.bind(a),a.split.bind(a),(b=a.bufferTimeMs)!=null?b:500,a.maxBatchSize||100);return c.get.bind(c)};HO.\u0275fac=function(a){return new (a||HO)};HO.\u0275prov=Fc({token:HO,factory:HO.\u0275fac,providedIn:"root"});
var Oed=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new sf;this.inputs$=this.inputSubject.pipe(Zka(this.inputSubject.pipe(hf(this.bufferTimeMs,Br))));this.removeDuplicates=A(function(f){return[].concat(q(new Set(f)))});this.limitInputSize=A(function(f){for(var g=m(f.slice(e.maxBatchSize)),k=g.next();!k.done;k=g.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=Ud(me(function(f){try{return e.batchCall(f).pipe(nf(1),
A(function(g){return{inputs:f,batchResponse:g,error:void 0}}),jf(function(g){return ee({inputs:f,batchResponse:void 0,error:g})}))}catch(g){return ee({inputs:f,batchResponse:void 0,error:g})}}),zla());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
Oed.prototype.get=function(a){var b=this;return new Vd(function(c){c=b.batchResults$.pipe(we(function(d){return d.inputs.has(a)}),nf(1),A(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw d.error;})).subscribe(c);b.inputSubject.next(a);return c})};var TZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(TZa,W);TZa.prototype.getFieldId=function(){return X(this,Ro,1)};TZa.prototype.setFieldId=function(a){return Ni(this,Ro,1,a)};var gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gq,W);gq.prototype.getFieldId=function(){return X(this,Ro,1)};gq.prototype.setFieldId=function(a){return Ni(this,Ro,1,a)};gq.prototype.getState=function(){return xi(this,2)};gq.prototype.setState=function(a){return Im(this,2,a)};var BZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(BZa,W);var GZa=function(a,b){return Ww(a,1,b)};BZa.prototype.getIssueTypes=function(){return Ow(this,1)};var Ped=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ped,W);var hq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hq,W);h=hq.prototype;h.getName=function(){return vi(this,1)};h.setName=function(a){return Gm(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};var EZa=function(a,b){return Oi(a,3,b)},HZa=function(a){var b=new Ped;Yo(a,4,CZa,b)},FZa=function(a,b){Yo(a,5,CZa,b)},CZa=[4,5];var kq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kq,W);h=kq.prototype;h.getInherit=function(){return Gi(this,1)};h.setInherit=function(a){return $o(this,1,a)};h.getId=function(){return pn(this,2)};h.getId_asLegacyNumberOrString=function(){return Ep(this,2)};h.getId_asString=function(){return un(this,2)};h.setId=function(a){return Ko(this,2,a)};var jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jq,W);h=jq.prototype;h.getInherit=function(){return Gi(this,1)};h.setInherit=function(a){return $o(this,1,a)};h.getId=function(){return pn(this,2)};h.getId_asLegacyNumberOrString=function(){return Ep(this,2)};h.getId_asString=function(){return un(this,2)};h.setId=function(a){return Ko(this,2,a)};h.getSourceTeamId_asString=function(){return un(this,4)};h.setSourceTeamId=function(a){Ko(this,4,a)};
h.getComment=function(){return vi(this,3)};h.setComment=function(a){return Gm(this,3,a)};var iq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(iq,W);h=iq.prototype;h.getVersion=function(){return Cm(this,1)};h.setVersion=function(a){return an(this,1,a)};h.getSlo=function(){return X(this,jq,2)};h.setSlo=function(a){return Ni(this,jq,2,a)};h.hasSlo=function(){return yi(this,jq,2)};h.getEscalationOwner=function(){return X(this,Fm,6)};h.setEscalationOwner=function(a){Ni(this,Fm,6,a)};h.getDefaultEscalationOwner=function(){return X(this,Fm,7)};
h.setInheritEscalationOwner=function(a){$o(this,8,a)};var KZa=[9,10];var MZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MZa,W);h=MZa.prototype;h.getUser=function(){return X(this,Fm,1)};h.setUser=function(a){return Ni(this,Fm,1,a)};h.hasUser=function(){return yi(this,Fm,1)};h.getIsLead=function(){return Gi(this,2)};h.setIsLead=function(a){return $o(this,2,a)};var Qed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qed,W);h=Qed.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Ep(this,1)};h.getId_asString=function(){return un(this,1)};h.setId=function(a){return Ko(this,1,a)};h.getPathIdsList_asString=function(){return Sm(this,2)};h.setPathIdsList=function(a){return ur(this,2,a)};h.getName=function(){return vi(this,3)};h.setName=function(a){return Gm(this,3,a)};
h.getPathNamesList=function(a){return Dm(this,4,Di(a))};h.setPathNamesList=function(a){return Hm(this,4,a)};h.getMembersList=function(){return Ci(this,MZa,6,Di())};h.setMembersList=function(a){return Oi(this,6,a)};h.getDescription=function(){return vi(this,8)};h.setDescription=function(a){return Gm(this,8,a)};var RZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RZa,W);h=RZa.prototype;h.getTeamId=function(){return pn(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Ep(this,1)};h.getTeamId_asString=function(){return un(this,1)};h.setTeamId=function(a){return Ko(this,1,a)};h.getScore=function(){return em(this,2)};h.setScore=function(a){return sp(this,2,a)};var lq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lq,W);lq.prototype.getComponentPathNames=function(a){return Nw(this,2,a)};lq.prototype.getFieldConfigsV2List=function(){return Ci(this,hq,6,Di())};lq.prototype.setFieldConfigsV2List=function(a){return Oi(this,6,a)};var oq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oq,W);h=oq.prototype;h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};h.getName=function(){return vi(this,4)};h.setName=function(a){return Gm(this,4,a)};h.getDescription=function(){return vi(this,5)};h.setDescription=function(a){return Gm(this,5,a)};h.getIsArchived=function(){return Gi(this,8)};
h.setIsArchived=function(a){return $o(this,8,a)};h.getAccessLimit=function(){return X(this,Ho,9)};h.setAccessLimit=function(a){return Ni(this,Ho,9,a)};h.setCommentEditState=function(a){return Im(this,10,a)};h.getSlo=function(){return X(this,pp,13)};h.setSlo=function(a){return Ni(this,pp,13,a)};h.hasSlo=function(){return yi(this,pp,13)};h.getTeam=function(){return X(this,kq,16)};h.setTeam=function(a){Ni(this,kq,16,a)};h.hasTeam=function(){return yi(this,kq,16)};
h.getEffortSpec=function(){return X(this,ap,18)};h.getTeamSuggestionsList=function(){return Ci(this,RZa,19,Di())};h.setTeamSuggestionsList=function(a){Oi(this,19,a)};h.getTrackerId=function(){return pn(this,20)};h.getTrackerId_asString=function(){return un(this,20)};h.setTrackerId=function(a){Ko(this,20,a)};var g_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g_a,W);h=g_a.prototype;h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};h.getTemplateId=function(){return pn(this,3)};h.setTemplateId=function(a){return Ko(this,3,a)};h.getName=function(){return vi(this,4)};h.setName=function(a){return Gm(this,4,a)};h.getDescription=function(){return vi(this,5)};
h.setDescription=function(a){return Gm(this,5,a)};h.getIssueState=function(){return X(this,Bp,6)};h.setIssueState=function(a){return Ni(this,Bp,6,a)};h.getComment=function(){return vi(this,7)};h.setComment=function(a){return Gm(this,7,a)};h.getFormattingMode=function(){return xi(this,8)};h.setFormattingMode=function(a){return Im(this,8,a)};var IO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(IO,W);IO.prototype.getComponentId=function(){return pn(this,2)};IO.prototype.getComponentId_asString=function(){return un(this,2)};IO.prototype.setComponentId=function(a){return Ko(this,2,a)};var pq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,pq.messageId)};Y(pq,W);pq.prototype.getIt=function(){return X(this,oq,28,jb)};pq.prototype.setIt=function(a){return Ni(this,oq,28,a,jb)};pq.messageId="b.Component";var Red=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Red.messageId)};Y(Red,W);Red.prototype.getIt=function(){return X(this,IO,1,jb)};Red.prototype.setIt=function(a){return Ni(this,IO,1,a,jb)};Red.messageId="b.ListPopularRoutingComponentsRequest";var qq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qq,W);qq.prototype.getIt=function(){return X(this,g_a,7)};qq.prototype.setIt=function(a){return Ni(this,g_a,7,a)};var Sed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Sed.messageId)};Y(Sed,W);Sed.messageId="b.UpdateComponentSloRequest";var Ted=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ted.messageId)};Y(Ted,W);Ted.messageId="b.UpdateComponentTeamRequest";var Ued=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ued.messageId)};Y(Ued,W);Ued.prototype.setComponent=function(a){return Ni(this,pq,1,a,jb)};Ued.messageId="b.CreateComponentResponse";var Ved=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ved.messageId)};Y(Ved,W);Ved.prototype.setComponent=function(a,b){return zw(this,1,pq,a,b,jb)};Ved.messageId="b.ListComponentsResponse";var Wed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wed,W);Wed.prototype.getComponentsList=function(){return Ci(this,oq,1,Di())};var Xed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Xed.messageId)};Y(Xed,W);Xed.prototype.getIt=function(){return X(this,Wed,1,jb)};Xed.prototype.setIt=function(a){return Ni(this,Wed,1,a,jb)};Xed.messageId="b.ListPopularRoutingComponentsResponse";var l_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l_a,W);l_a.prototype.getComponentPath=function(){return vi(this,1)};var Yed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Yed.messageId)};Y(Yed,W);Yed.messageId="b.SubcomponentsResponse";var JO=function(){this.executor=p(ZN);this.activeSession=p(qu)};h=JO.prototype;h.get=function(a){return this.query({id:[a]}).pipe(A(function(b){return b.length?b[0]:null}))};h.getChildren=function(a,b){a={parentId:a};if(b===void 0?0:b)a.includearchived=!0;return this.query(a)};h.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:Yed}).pipe(A(m_a))};
h.getPopularRoutingTargets=function(a){var b=this.executor,c=b.post;a=(new Red).setIt((new IO).setComponentId(a));return c.call(b,{url:"/action/components/popular_targets",body:a,responseConstructor:Xed}).pipe(A(j_a))};h.fetchComponent=function(a){return this.executor.get({url:"action/components/"+a,responseConstructor:pq}).pipe(A(nq))};
h.query=function(a){var b={};a.id&&(b.id=a.id);a.parentId&&(b.parentId=a.parentId);a.query&&(b.query=a.query);a.includearchived&&(b.includearchived="true");var c;(a=(c=this.activeSession.getTracker())==null?void 0:c.trackerId)&&(b.currentTrackerId=a);return this.executor.get({url:"action/components",options:{params:b},responseConstructor:Ved}).pipe(A(i_a))};
h.create=function(a){a=b_a(a);return this.executor.post({url:"action/components",body:a,responseConstructor:Ued}).pipe(A(function(b){return nq(X(b,pq,1,jb))}))};
h.update=function(a){var b=a.componentId,c=new pq,d=c.setIt,e=(new oq).setComponentId(a.componentId);e=Ko(e,3,a.parentComponentId).setName(a.name).setDescription(a.description).setIsArchived(a.archived);if(a.componentPathInfo){var f=a.componentPathInfo,g=new lq;f.componentPathId&&ur(g,1,f.componentPathId);if(f.componentPathName){var k=f.componentPathName.map(String);Hm(g,2,k)}f.allCustomField&&(f=f.allCustomField.map(RWa),Oi(g,5,f));Ni(e,lq,7,g)}a.accessLimit&&e.setAccessLimit(eWa(a.accessLimit));
a.commentEditState&&e.setCommentEditState(a.commentEditState==="ENABLED"?1:2);Ko(e,6,String(a.defaultTemplateId));a.slo&&e.setSlo(oXa(a.slo));a.retentionSettings&&(g=vWa(a.retentionSettings),Ni(e,No,15,g));a.fieldOrdering&&Im(e,17,Ubd[a.fieldOrdering]);a.effortSpec&&(g=ZWa(a.effortSpec),Ni(e,ap,18,g));a.team&&e.setTeam(PZa(a.team));var l;e.setTeamSuggestionsList(((l=a.teamSuggestions)!=null?l:[]).map(SZa));a.spamProtection!=="SPAM_PROTECTION_UNSPECIFIED"&&Im(e,21,VZa(a.spamProtection));a=d.call(c,
e);return this.executor.post({url:"action/components/"+b,body:a,responseConstructor:pq}).pipe(A(nq))};h.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:b}},responseConstructor:pq}).pipe(A(nq))};h.updateSlo=function(a,b){var c=new Sed;b=oXa(b);c=Ni(c,pp,2,b,jb);return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:pq}).pipe(A(nq))};
h.updateTeam=function(a,b){var c=new Ted;b=PZa(Object.assign({},b));c=Ni(c,kq,2,b,jb);return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:pq}).pipe(A(nq))};JO.\u0275fac=function(a){return new (a||JO)};JO.\u0275prov=Fc({token:JO,factory:JO.\u0275fac,providedIn:"root"});var KO=function(){this.observableApi=p(JO)};h=KO.prototype;h.get=function(a){return ie(this.observableApi.get(a))};
h.getChildren=function(a,b){return ie(this.observableApi.getChildren(a,b===void 0?!1:b))};h.getDescendants=function(a){return ie(this.observableApi.getDescendants(a))};h.getPopularRoutingTargets=function(a){return ie(this.observableApi.getPopularRoutingTargets(a))};h.fetchComponent=function(a){return ie(this.observableApi.fetchComponent(a))};h.query=function(a){return ie(this.observableApi.query(a))};h.create=function(a){return ie(this.observableApi.create(a))};h.update=function(a){return ie(this.observableApi.update(a))};
h.move=function(a,b){return ie(this.observableApi.move(a,b))};h.updateSlo=function(a,b){return ie(this.observableApi.updateSlo(a,b))};h.updateTeam=function(a,b){return ie(this.observableApi.updateTeam(a,b))};KO.\u0275fac=function(a){return new (a||KO)};KO.\u0275prov=Fc({token:KO,factory:KO.\u0275fac,providedIn:"root"});var MO=function(){pO.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=p(LO);this.recordType="component";this.idForRecord=function(a){return a.componentId}};Y(MO,pO);MO.prototype.fetchOne=function(a){return a==="0"?ee(void 0):this.batchedComponentApi.get(a).pipe(jf(function(){return ee(void 0)}))};MO.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Qm)}))};
MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275prov=Fc({token:MO,factory:MO.\u0275fac,providedIn:"root"});var LO=function(){var a=this;this.observableComponentApi=p(JO);this.batchApiAdapter=p(HO);this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};
LO.prototype.call=function(a){return a.size===1?this.observableComponentApi.fetchComponent([].concat(q(a))[0]).pipe(A(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(q(a))}).pipe(A(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};LO.prototype.splitBatch=function(a,b){return b.get(a)};LO.\u0275fac=function(a){return new (a||LO)};LO.\u0275prov=Fc({token:LO,factory:LO.\u0275fac,providedIn:"root"});var Zed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Zed.messageId)};Y(Zed,W);Zed.messageId="b.ListTemplatesResponse";var $ed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$ed.messageId)};Y($ed,W);$ed.messageId="b.TemplateResponse";var NO=function(){this.executor=p(ZN)};h=NO.prototype;h.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:$ed}).pipe(A(n_a))};h.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:Zed}).pipe(A(o_a))};h.create=function(a,b){b=h_a(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:$ed,body:b}).pipe(A(n_a))};
h.update=function(a,b,c){c=h_a(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:$ed,body:c}).pipe(A(n_a))};h.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};NO.\u0275fac=function(a){return new (a||NO)};NO.\u0275prov=Fc({token:NO,factory:NO.\u0275fac,providedIn:"root"});var OO=function(){this.observableApi=p(NO)};h=OO.prototype;
h.get=function(a,b){return ie(this.observableApi.get(a,b))};h.query=function(a){return ie(this.observableApi.query(a))};h.create=function(a,b){return ie(this.observableApi.create(a,b))};h.update=function(a,b,c){return ie(this.observableApi.update(a,b,c))};h.delete=function(a,b){return ie(this.observableApi.delete(a,b))};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275prov=Fc({token:OO,factory:OO.\u0275fac,providedIn:"root"});var PO=function(){this.bookmarkGroupModified=new sf;this.commentSubmitted=new sf;this.commentRendered=new sf;this.componentModified=new sf;this.contactChipsRevertChanges=new sf;this.customFieldsModified=new sf;this.dashboardPanels={moveDown:new sf,moveUp:new sf,moveToTop:new sf,moveToBottom:new sf,remove:new sf};this.favoritesModified=new sf;this.hotlistCreated=new sf;this.onClickAppMenuIcon=new sf;this.openEditField=new sf;this.sidebarWidthChanged=new sf;this.hotlistChanged=new sf;this.savedSearchModified=
new sf;this.sidebarUpdated=new sf;this.topBarEvents={browseComponents:new sf,manageHotlists:new sf,manageSlos:new sf,setDensity:new sf,openSettings:new sf};this.templateModified=new sf;this.issueViewed=new sf;this.issueEdited=new sf;this.focusCommentBox=new sf;this.scrollToCommentBox=new sf;this.recaptchaSubmitted=new sf;this.missionControlTaskCount=new Nj(void 0);this.openIssueDetailsPageSidebar=new sf;this.closeIssueDetailsPageSidebar=new sf;this.didShowIssueHovercard=new sf};
PO.\u0275fac=function(a){return new (a||PO)};PO.\u0275prov=Fc({token:PO,factory:PO.\u0275fac,providedIn:"root"});var QO=function(){$E.apply(this,arguments)};Y(QO,$E);da.Object.defineProperties(QO.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});QO.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(QO)))(b||QO)}}();QO.\u0275dir=df({type:QO,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},standalone:!1,features:[Gf]});var afd=function(){};
afd.\u0275fac=function(a){return new (a||afd)};afd.\u0275mod=cf({type:afd});afd.\u0275inj=Hc({imports:[dF]});var RO=function(){};RO.\u0275fac=function(a){return new (a||RO)};RO.\u0275mod=cf({type:RO});RO.\u0275inj=Hc({imports:[Yx,Fy,dF,afd]});var SO=function(){pO.call(this,{freshUntil:3E5,ancientAfter:6048E5});var a=this;this.templatesApi=p(OO);this.appEvents=p(PO);this.recordType="componentTemplates";this.idForRecord=function(b){return b.componentId};this.defaultTemplate$=function(b){return a.watch(b).pipe(we(Qm),A(function(c){return c.templates}),A(function(c){var d;return(d=c.find(function(e){return e.default}))!=null?d:c[0]}))};this.appEvents.templateModified.pipe(we(function(b){return!!b&&b!=="0"})).subscribe(function(b){a.poke(b)})};
Y(SO,pO);SO.prototype.fetchOne=function(a){var b=this;return pe(function(){return b.templatesApi.query(a).then(function(c){return{componentId:a,templates:c}})})};SO.\u0275fac=function(a){return new (a||SO)};SO.\u0275prov=Fc({token:SO,factory:SO.\u0275fac,providedIn:"root"});var bfd=function(a,b){this.childIterator_=a[ra.Symbol.iterator]();this.mapFn_=b};bfd.prototype[Symbol.iterator]=function(){return this};bfd.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 cfd=function(a,b){return new bfd(a,b)};var dfd=function(){};dfd.prototype.next=function(){return efd};var efd={done:!0,value:void 0};dfd.prototype.__iterator__=function(){return this};var gfd=function(a){if(a instanceof TO||a instanceof ffd||a instanceof UO)return a;if(typeof a.next=="function")return new TO(function(){return a});if(typeof a[Symbol.iterator]=="function")return new TO(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__=="function")return new TO(function(){return a.__iterator__()});throw Error("Rd");},TO=function(a){this.func_=a};TO.prototype.__iterator__=function(){return new ffd(this.func_())};TO.prototype[Symbol.iterator]=function(){return new UO(this.func_())};
TO.prototype.toEs6=function(){return new UO(this.func_())};var ffd=function(a){this.iter_=a};Y(ffd,dfd);ffd.prototype.next=function(){return this.iter_.next()};ffd.prototype[Symbol.iterator]=function(){return new UO(this.iter_)};ffd.prototype.toEs6=function(){return new UO(this.iter_)};var UO=function(a){TO.call(this,function(){return a});this.iter_=a};Y(UO,TO);UO.prototype.next=function(){return this.iter_.next()};var VO=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("fb");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};h=VO.prototype;h.getCount=function(){return this.size};h.getValues=function(){hfd(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};h.getKeys=function(){hfd(this);return this.keys_.concat()};h.containsKey=function(a){return this.has(a)};
h.has=function(a){return ifd(this.map_,a)};h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||jfd;hfd(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var jfd=function(a,b){return a===b};VO.prototype.isEmpty=function(){return this.size==0};VO.prototype.clear=function(){this.map_={};this.version_=this.size=this.keys_.length=0};VO.prototype.remove=function(a){return this.delete(a)};
VO.prototype.delete=function(a){return ifd(this.map_,a)?(delete this.map_[a],--this.size,this.version_++,this.keys_.length>2*this.size&&hfd(this),!0):!1};var hfd=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];ifd(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];ifd(b,e)||(a.keys_[d++]=e,b[e]=1);c++}a.keys_.length=d}};h=VO.prototype;
h.get=function(a,b){return ifd(this.map_,a)?this.map_[a]:b};h.set=function(a,b){ifd(this.map_,a)||(this.size+=1,this.keys_.push(a),this.version_++);this.map_[a]=b};h.addAll=function(a){if(a instanceof VO)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};h.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new VO(this)};
h.transpose=function(){for(var a=new VO,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};h.keys=function(){return gfd(this.__iterator__(!0)).toEs6()};h.values=function(){return gfd(this.__iterator__(!1)).toEs6()};h.entries=function(){var a=this;return cfd(this.keys(),function(b){return[b,a.get(b)]})};
h.__iterator__=function(a){hfd(this);var b=0,c=this.version_,d=this,e=new dfd;e.next=function(){if(c!=d.version_)throw Error("Sd");if(b>=d.keys_.length)return efd;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};var ifd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var lfd=function(a,b){this.maxCount_=a||null;this.cache_=!0;this.evictionCallback_=b;this.map_=new VO;this.head_=new kfd("");this.head_.next=this.head_.prev=this.head_},nfd=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),mfd(a,b));return b};h=lfd.prototype;h.get=function(a,b){return(a=nfd(this,a))?a.value:b};h.set=function(a,b){var c=nfd(this,a);c?c.value=b:(c=new kfd(a,b),this.map_.set(a,c),mfd(this,c))};h.peek=function(){return this.head_.next.value};h.shift=function(){return ofd(this,this.head_.next)};
h.pop=function(){return ofd(this,this.head_.prev)};h.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};h.removeNode=function(a){a.remove();this.map_.remove(a.key)};h.getCount=function(){return this.map_.getCount()};h.isEmpty=function(){return this.map_.isEmpty()};h.getKeys=function(){return this.map(function(a,b){return b})};h.getValues=function(){return this.map(function(a){return a})};h.contains=function(a){return this.some(function(b){return b==a})};h.containsKey=function(a){return this.map_.containsKey(a)};
h.clear=function(){pfd(this,0)};h.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};h.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};h.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};h.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var mfd=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&&pfd(a,a.maxCount_)},pfd=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)}},ofd=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},kfd=function(a,b){this.key=a;this.value=b};
kfd.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var WO=function(){this.caches=new Map};WO.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Td`"+a);b=new qfd(b==null?void 0:b.capacity);this.caches.set(a,b);return b};WO.prototype.get=function(a){return this.caches.get(a)};WO.\u0275fac=function(a){return new (a||WO)};WO.\u0275prov=Fc({token:WO,factory:WO.\u0275fac,providedIn:"root"});var qfd=function(a){this.lruCache=new lfd(a)};qfd.prototype.get=function(a){return this.lruCache.get(a)};
qfd.prototype.put=function(a,b){b!==void 0&&this.lruCache.set(a,b);return b};qfd.prototype.remove=function(a){this.lruCache.remove(a)};qfd.prototype.removeAll=function(){this.lruCache.clear()};var rq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rq.messageId)};Y(rq,W);rq.prototype.getIt=function(){return X(this,Gp,18,jb)};rq.prototype.setIt=function(a){return Ni(this,Gp,18,a,jb)};rq.messageId="b.Hotlist";var rfd=RegExp("action/issues/([0-9]+)/"),sfd=new fd("ETAG_URL_TRANSFORMERS"),tfd=["POST","PUT","DELETE"],YO=function(){this.etagStore=p(XO)};YO.prototype.intercept=function(a,b){if(tfd.includes(a.method)){var c=this.etagStore.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}rfd.exec(a.url);return ufd(this,a,b)};var ufd=function(a,b,c){return c.handle(b).pipe(Cf(function(d){d instanceof qy&&(d=d.headers,d.has("etag")&&a.etagStore.setEtag(b,d.get("etag")))}))};
YO.\u0275fac=function(a){return new (a||YO)};YO.\u0275prov=Fc({token:YO,factory:YO.\u0275fac,providedIn:"root"});var XO=function(){this.transformers=p(sfd,{optional:!0});this.etagStore={}};XO.prototype.setEtag=function(a,b){b!=null&&(a=vfd(this,a.url),this.etagStore[a]=b)};XO.prototype.getEtag=function(a){a=vfd(this,a.url);return this.etagStore[a]};var vfd=function(a,b){var c;a=m((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};
XO.\u0275fac=function(a){return new (a||XO)};XO.\u0275prov=Fc({token:XO,factory:XO.\u0275fac,providedIn:"root"});var wfd={provide:WBc,useExisting:YO,multi:!0};var Ip=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ip,W);h=Ip.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getPosition=function(){return Cm(this,2)};h.setPosition=function(a){return an(this,2,a)};h.getIssue=function(){return X(this,Jp,3)};h.setIssue=function(a){return Ni(this,Jp,3,a)};var xfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xfd,W);h=xfd.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Ko(this,1,a)};h.setOrderBy=function(a){return Gm(this,2,a)};h.setPageSize=function(a){return an(this,3,a)};h.setPageToken=function(a){return Gm(this,4,a)};h.getFilter=function(){return vi(this,5)};h.setFilter=function(a){return Gm(this,5,a)};h.setView=function(a){return Im(this,6,a)};
h.setIssueDescriptionView=function(a){return Im(this,7,a)};h.getQuery=function(){return vi(this,8)};h.setQuery=function(a){return Gm(this,8,a)};h.clearQuery=function(){Aw(this,8)};var yfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yfd,W);h=yfd.prototype;h.getHotlistId=function(){return pn(this,1)};h.setHotlistId=function(a){return Ko(this,1,a)};h.getIssueId=function(){return pn(this,2)};h.getIssueId_asString=function(){return un(this,2)};h.setIssueId=function(a){return Ko(this,2,a)};var zfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zfd.messageId)};Y(zfd,W);zfd.prototype.getIt=function(){return X(this,xfd,1,jb)};zfd.prototype.setIt=function(a){return Ni(this,xfd,1,a,jb)};zfd.messageId="b.ListHotlistEntriesRequest";var ZO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ZO,W);ZO.prototype.getNextPageToken=function(){return vi(this,2)};ZO.prototype.getTotalSize=function(){return Cm(this,3)};ZO.prototype.getTotalSizeAccurate=function(){return Gi(this,4)};ZO.prototype.getMaySkipResults=function(){return Gi(this,5)};var Afd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Afd.messageId)};Y(Afd,W);Afd.prototype.getIt=function(){return X(this,ZO,1,jb)};Afd.prototype.setIt=function(a){return Ni(this,ZO,1,a,jb)};Afd.messageId="b.ListHotlistEntriesResponse";var $O=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$O.messageId)};Y($O,W);$O.prototype.addHotlists=function(a){Pp(this,1,rq,a,void 0,jb)};$O.prototype.removeHotlists=function(a){return Dw(this,1,rq,a,jb)};$O.messageId="b.ListHotlistsResponse";var bP=function(){this.hotlistApi=p(aP);var a=p(WO);this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};h=bP.prototype;h.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};h.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};h.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};h.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};
h.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};h.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};h.getPagedHotlistContent=function(a,b,c,d,e){return this.hotlistApi.getPagedHotlistContent(a,b,c,d,e)};bP.\u0275fac=function(a){return new (a||bP)};bP.\u0275prov=Fc({token:bP,factory:bP.\u0275fac,providedIn:"root"});var cP=function(){this.executor=p(ZN);this.etagStore=p(XO);this.bufferTimeMs=50};
cP.prototype.call=function(a){a=Array.from(a,function(b){return String(b)});return a.length===0?ee(new Map):a.length===1?this.executor.get({url:"action/hotlists/"+a[0],responseConstructor:rq}).pipe(A(sq),A(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:$O,options:{params:{id:a}}}).pipe(A(function(b){var c=new Map;b=m(Ci(b,rq,1,Di(),jb).map(sq));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),
d);return c}))};cP.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;c!=null&&(a=vfd(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275prov=Fc({token:cP,factory:cP.\u0275fac,providedIn:"root"});var dP=function(){this.executor=p(ZN);this.batchApiConfig=p(cP);this.batchApiAdapter=p(HO);this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};h=dP.prototype;
h.get=function(a){var b=this;return this.adaptedGet(String(a)).pipe(Af(function(c){return c?ee(c):b.executor.get({url:"action/hotlists/"+a,responseConstructor:rq}).pipe(A(sq))}))};h.bulkLoad=function(a){var b=this;return a.length===0?ee([]):qe(a.map(function(c){return b.adaptedGet(String(c))})).pipe(A(function(c){return c.filter(Qm)}))};
h.repositionHotlistIssue=function(a,b,c){var d=(new yfd).setHotlistId(Number(a)).setIssueId(b);b=(new Ip).setIssueId(Number(b)).setPosition(c);d=Ni(d,Ip,3,b);return this.executor.put({url:"action/hotlists/"+a+"/entry",body:d,responseConstructor:null})};h.createHotlist=function(a,b){a=(new Gp).setName(a);b&&a.setDescription(b);return this.executor.post({url:"action/hotlists",body:(new rq).setIt(a),responseConstructor:rq}).pipe(A(sq))};
h.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:$O,options:{params:{q:a}}}).pipe(A(function(b){var c;return((c=Ci(b,rq,1,Di(),jb))!=null?c:[]).map(sq)}))};h.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:p_a(b),responseConstructor:rq}).pipe(A(sq))};
h.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:p_a(b),options:{headers:c},responseConstructor:rq}).pipe(A(sq))};
h.getPagedHotlistContent=function(a,b,c,d,e){var f={};e&&(f.trackerIds=e);d=d.map(function(g){return{field:{type:g.fieldId.type,customFieldId:g.fieldId.customFieldId,customFieldName:g.fieldId.customFieldName},direction:g.direction}});b=(new xfd).setHotlistId(a).setOrderBy(YVa(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 zfd).setIt(b),responseConstructor:Afd}).pipe(A(function(g){return kYa(g.getIt())}))};
dP.\u0275fac=function(a){return new (a||dP)};dP.\u0275prov=Fc({token:dP,factory:dP.\u0275fac,providedIn:"root"});var aP=function(){this.observableApi=p(dP)};h=aP.prototype;h.get=function(a){return ie(this.observableApi.get(a))};h.bulkLoad=function(a){return ie(this.observableApi.bulkLoad(a))};h.repositionHotlistIssue=function(a,b,c){return ie(this.observableApi.repositionHotlistIssue(a,b,c))};h.createHotlist=function(a,b){return ie(this.observableApi.createHotlist(a,b))};h.queryHotlists=function(a){return ie(this.observableApi.queryHotlists(a))};
h.archiveHotlist=function(a,b){return ie(this.observableApi.archiveHotlist(a,b))};h.updateMetadata=function(a,b){return ie(this.observableApi.updateMetadata(a,b))};h.getPagedHotlistContent=function(a,b,c,d,e){return ie(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};aP.\u0275fac=function(a){return new (a||aP)};aP.\u0275prov=Fc({token:aP,factory:aP.\u0275fac,providedIn:"root"});var q_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q_a,W);q_a.prototype.getIt=function(){return X(this,Zp,6)};q_a.prototype.setIt=function(a){return Ni(this,Zp,6,a)};var Bfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Bfd.messageId)};Y(Bfd,W);Bfd.messageId="b.Favorite";var Cfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Cfd.messageId)};Y(Cfd,W);Cfd.prototype.getComponentsList=function(){return Ci(this,pq,1,Di(),jb)};Cfd.messageId="b.UserRecentComponentResponse";var eP=function(){this.executor=p(ZN)};h=eP.prototype;h.getUserBookmarks=function(){return this.executor.post({url:"action/getUserBookmarks",body:null,responseConstructor:wO}).pipe(A(function(a){return kZa(a.getIt())}))};h.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:Cfd}).pipe(A(c_a))};h.getUserBookmark=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:Bfd}).pipe(A(r_a))};
h.addUserBookmark=function(a){a=(new q_a).setIt(jZa(a));return this.executor.post({url:"action/favorites",body:a,responseConstructor:Bfd}).pipe(A(r_a))};h.removeUserBookmark=function(a){return this.executor.post({url:"action/removeUserBookmark",body:jZa(a),responseConstructor:null})};
var Dfd=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})};eP.\u0275fac=function(a){return new (a||eP)};eP.\u0275prov=Fc({token:eP,factory:eP.\u0275fac,providedIn:"root"});var fP=function(){this.observableApi=p(eP)};h=fP.prototype;
h.getUserBookmarks=function(){return ie(this.observableApi.getUserBookmarks())};h.getRecentComponents=function(){return ie(this.observableApi.getRecentComponents())};h.getUserBookmark=function(a,b){return ie(this.observableApi.getUserBookmark(a,b))};h.addUserBookmark=function(a){return ie(this.observableApi.addUserBookmark(a))};h.removeUserBookmark=function(a){return ie(this.observableApi.removeUserBookmark(a))};fP.\u0275fac=function(a){return new (a||fP)};
fP.\u0275prov=Fc({token:fP,factory:fP.\u0275fac,providedIn:"root"});var gP=function(){pO.call(this,{freshUntil:3E5});this.observableHotlistResources=p(dP);this.recordType="hotlist";this.idForRecord=function(a){return String(a.hotlistId)}};Y(gP,pO);gP.prototype.fetchOne=function(a){return a?this.observableHotlistResources.get(a).pipe(jf(function(b){return b.status===403?ee(void 0):ge(function(){return b})})):ee(void 0)};gP.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a.filter(Boolean)).pipe(A(function(b){return(b!=null?b:[]).filter(Qm)}))};
gP.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};gP.\u0275fac=function(a){return new (a||gP)};gP.\u0275prov=Fc({token:gP,factory:gP.\u0275fac,providedIn:"root"});var tq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tq,W);tq.prototype.getIt=function(){return X(this,Wp,12)};tq.prototype.setIt=function(a){return Ni(this,Wp,12,a)};var Efd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Efd.messageId)};Y(Efd,W);Efd.prototype.setSearch=function(a,b){zw(this,1,tq,a,b,jb)};Efd.messageId="b.BatchGetSearchesResponse";var hP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hP.messageId)};Y(hP,W);hP.prototype.getSearch=function(){return X(this,tq,1,jb)};hP.prototype.setSearch=function(a){Ni(this,tq,1,a,jb)};hP.prototype.clearSearch=function(){Aw(this,1,jb)};hP.messageId="b.SearchResponse";var iP=function(){this.jspbExecutor=p(ZN)};h=iP.prototype;h.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:hP}).pipe(A(t_a))};h.batchGet=function(a){if(a.length>500)throw Error("Ud");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:Efd}).pipe(A(u_a))};
h.create=function(a,b){a=(new tq).setIt((new Wp).setName(a).setQuery(b));return this.jspbExecutor.post({url:"action/saved_searches",body:a,responseConstructor:hP}).pipe(A(t_a))};h.update=function(a,b){b=(new tq).setIt(eZa(b));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:b,responseConstructor:hP}).pipe(A(t_a))};h.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};iP.\u0275fac=function(a){return new (a||iP)};
iP.\u0275prov=Fc({token:iP,factory:iP.\u0275fac,providedIn:"root"});var jP=function(){this.observableResources=p(iP)};h=jP.prototype;h.get=function(a){return ie(this.observableResources.get(a))};h.batchGet=function(a){return ie(this.observableResources.batchGet(a))};h.create=function(a,b){return ie(this.observableResources.create(a,b))};h.update=function(a,b){return ie(this.observableResources.update(a,b))};h.delete=function(a){return ie(this.observableResources.delete(a))};
jP.\u0275fac=function(a){return new (a||jP)};jP.\u0275prov=Fc({token:jP,factory:jP.\u0275fac,providedIn:"root"});var kP=function(){pO.call(this);this.savedSearchApi=p(iP);this.recordType="savedSearch";this.idForRecord=function(a){return String(a.searchId)}};Y(kP,pO);kP.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};kP.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};kP.\u0275fac=function(a){return new (a||kP)};kP.\u0275prov=Fc({token:kP,factory:kP.\u0275fac,providedIn:"root"});var lP=function(){pO.call(this,{freshUntil:3E5});var a=this;this.userApi=p(eP);this.hotlistApi=p(dP);this.bookmarkGroupApi=p(xO);this.appEvents=p(PO);this.hotlistFridge=p(gP);this.savedSearchFridge=p(kP);this.bookmarkGroupFridge=p(yO);this.activeSession=p(qu);this.recordType="user-bookmark";this.isEqual=mm;this.idForRecord=function(b){return b.id};this.pokeAll=function(){a.poke("current-user-bookmark-id",void 0)};ve(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified,
this.appEvents.savedSearchModified,this.appEvents.favoritesModified).subscribe(function(){a.poke("current-user-bookmark-id")})};Y(lP,pO);var Ffd=function(a){var b=a.activeSession.getUserEmail();return b?a.hotlistApi.queryHotlists("include_archived:true owner:"+b):ee([])},Gfd=function(a){var b=a.activeSession.getUserEmail();return b?pe(function(){return a.bookmarkGroupApi.query("include_archived:true owner:"+b)}):ee([])};
lP.prototype.fetchOne=function(){var a=this;return qe([this.userApi.getUserBookmarks(),Ffd(this),Gfd(this)]).pipe(Cf(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;c=m(c);for(var e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);c=m(b.bookmarkGroups);for(e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);d=m(d);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);d=m(b.hotlists);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);
b=m(b.savedSearches);for(d=b.next();!d.done;d=b.next())a.savedSearchFridge.announce(d.value)}),A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=L_a([].concat(q(b.hotlists),q(d)),[].concat(q(b.bookmarkGroups),q(c)),b.savedSearches);return M_a(d,b)}))};
var Hfd=function(a){return a.watch("current-user-bookmark-id",void 0).pipe(we(Qm))},mP=function(a){return Hfd(a).pipe(A(function(b){var c,d=(c=b==null?void 0:b.hotlists)!=null?c:[],e;b=(e=b==null?void 0:b.bookmarkGroups.flatMap(function(f){return f.sublinks}).filter(Qm).filter(function(f){return f.resourceType==="HOTLIST"}))!=null?e:[];return[].concat(q(b),q(d))}),A(function(b){return uq(b,function(c){return c.id})}),A(function(b){return J_a(b)}),A(function(b){return b.map(function(c){return c.id})}),
Af(function(b){return a.hotlistFridge.watchSet(b)}))},Ifd=function(a){return Hfd(a).pipe(A(function(b){var c;return(c=b==null?void 0:b.savedSearches.map(function(d){return d.id}))!=null?c:[]}),A(function(b){return b.filter(Qm)}),Af(function(b){return a.savedSearchFridge.watchSet(b)}))};lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275prov=Fc({token:lP,factory:lP.\u0275fac,providedIn:"root"});
var J_a=gn(function(a){return a.name},jn,"ASCENDING"),I_a=gn(function(a){return a.name},jn,"ASCENDING"),K_a=gn(function(a){return a.name},jn,"ASCENDING");var O_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O_a,W);O_a.prototype.getIt=function(){return X(this,Zo,14)};O_a.prototype.setIt=function(a){return Ni(this,Zo,14,a)};var Iq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iq,W);Iq.prototype.getIt=function(){return X(this,Xo,13)};Iq.prototype.setIt=function(a){return Ni(this,Xo,13,a)};var nP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nP.messageId)};Y(nP,W);nP.prototype.getIt=function(){return X(this,Zo,2,jb)};nP.prototype.setIt=function(a){return Ni(this,Zo,2,a,jb)};nP.messageId="b.CustomFieldResponse";var Jfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jfd,W);h=Jfd.prototype;h.getCustomFieldsList=function(){return Ci(this,Zo,1,Di())};h.setCustomFieldsList=function(a){return Oi(this,1,a)};h.addCustomFields=function(a){Pp(this,1,Zo,a)};h.getNextPageToken=function(){return vi(this,2)};h.getTotalSize=function(){return Cm(this,3)};var Kfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Kfd.messageId)};Y(Kfd,W);Kfd.prototype.getIt=function(){return X(this,Jfd,4,jb)};Kfd.prototype.setIt=function(a){return Ni(this,Jfd,4,a,jb)};Kfd.messageId="b.ListCustomFieldsResponse";var oP=function(){this.executor=p(ZN)};h=oP.prototype;h.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:nP}).pipe(A(N_a))};h.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:nP}).pipe(A(N_a))};h.create=function(a,b){b=P_a(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:a}},body:b,responseConstructor:nP}).pipe(A(N_a))};
h.update=function(a,b,c){b=Number(b);c=P_a(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:a}},body:c,responseConstructor:nP}).pipe(A(N_a))};h.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:a}},responseConstructor:null})};
h.query=function(a){return this.executor.get({url:"action/custom_fields",options:{params:{query:a.query,trackerIds:a.trackerIds,pageSize:a.pageSize||0,pageToken:a.pageToken||""}},responseConstructor:Kfd}).pipe(A(Q_a))};oP.\u0275fac=function(a){return new (a||oP)};oP.\u0275prov=Fc({token:oP,factory:oP.\u0275fac,providedIn:"root"});var pP=function(){this.observableApi=p(oP)};h=pP.prototype;h.get=function(a){return ie(this.observableApi.get(a))};h.getResource=function(a){return ie(this.observableApi.getResource(a))};
h.create=function(a,b){return ie(this.observableApi.create(a,b))};h.update=function(a,b,c){return ie(this.observableApi.update(a,b,c))};h.delete=function(a,b){return ie(this.observableApi.delete(a,b))};h.query=function(a){return ie(this.observableApi.query(a))};pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275prov=Fc({token:pP,factory:pP.\u0275fac,providedIn:"root"});var qP=function(){pO.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=p(oP);this.recordType="customFieldResource";this.idForRecord=function(a){return String(a.customFieldId)}};Y(qP,pO);qP.prototype.fetchOne=function(a){return this.api.getResource(a).pipe(jf(function(b){console.error("error fetching custom field "+a,b);return ee(void 0)}))};qP.\u0275fac=function(a){return new (a||qP)};qP.\u0275prov=Fc({token:qP,factory:qP.\u0275fac,providedIn:"root"});var rP=function(){pO.call(this);this.api=p(uO);this.recordType="EnrichmentCategory";this.idForRecord=function(a){return a.name};this.isEqual=mm};Y(rP,pO);rP.prototype.fetchOne=function(a){return zed(this.api,a)};rP.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)}))};rP.\u0275fac=function(a){return new (a||rP)};rP.\u0275prov=Fc({token:rP,factory:rP.\u0275fac,providedIn:"root"});var wq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wq,W);var xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xq.messageId)};Y(xq,W);h=xq.prototype;h.getId=function(){return pn(this,1,void 0,jb)};h.getId_asLegacyNumberOrString=function(){return Ep(this,1,void 0,jb)};h.getId_asString=function(){return un(this,1,void 0,jb)};h.setId=function(a){return wn(this,1,a,void 0,jb)};h.setTriage=function(a){return Ni(this,wq,2,a,jb)};xq.messageId="b.IssueExperiments";var zq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zq,W);zq.prototype.getName=function(){return vi(this,1)};zq.prototype.setName=function(a){return pj(this,1,a)};zq.prototype.hasName=function(){return im(this,1)};zq.prototype.getNameOrUndefined=function(){return Lw(this,1)};var k0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(k0a,W);h=k0a.prototype;h.getPhasesList=function(){return xn(this,1,Di())};h.setPhasesList=function(a){return Ww(this,1,a)};h.getSubphasesList=function(){return xn(this,2,Di())};h.setSubphasesList=function(a){return Ww(this,2,a)};h.getValue=function(){return X(this,Xo,3)};h.setValue=function(a){return Ni(this,Xo,3,a)};h.hasValue=function(){return yi(this,Xo,3)};var Aq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aq,W);Aq.prototype.getCustomFieldId=function(){return pn(this,1)};Aq.prototype.getCustomFieldId_asString=function(){return un(this,1)};Aq.prototype.setCustomFieldId=function(a){return wn(this,1,a)};Aq.prototype.hasCustomFieldId=function(){return on(this,1)};var e0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e0a,W);h=e0a.prototype;h.getHotlistIdsList_asLegacyNumberOrString=function(a){return o5a(this,1,Di(a))};h.getHotlistIdsList_asString=function(){return Sm(this,1)};h.setHotlistIdsList=function(a){return ur(this,1,a)};h.addHotlistIds=function(a,b){return Tw(this,1,a,b)};h.addAllHotlistIds=function(a){Uw(this,1,a)};h.removeHotlistIds=function(a){return Fyc(this,1,a)};h.getPhasesList=function(){return xn(this,3,Di())};
h.setPhasesList=function(a){return Ww(this,3,a)};h.getSubphasesList=function(){return xn(this,4,Di())};h.setSubphasesList=function(a){return Ww(this,4,a)};var X_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(X_a,W);var b0a=[1,2];var yq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yq,W);h=yq.prototype;h.getScope=function(){return vi(this,1)};h.setScope=function(a){return pj(this,1,a)};h.setConfig=function(a){zw(this,3,X_a,a)};h.getId=function(){return pn(this,4)};h.getId_asLegacyNumberOrString=function(){return Ep(this,4)};h.getId_asString=function(){return un(this,4)};h.setId=function(a){return wn(this,4,a)};h.getDisplayName=function(){return vi(this,5)};
h.setDisplayName=function(a){return pj(this,5,a)};h.getDisplayColumns=function(){return X(this,Ln,6)};h.setDisplayColumns=function(a){Ni(this,Ln,6,a)};var sP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sP.messageId)};Y(sP,W);h=sP.prototype;h.getId=function(){return pn(this,1,void 0,jb)};h.getId_asLegacyNumberOrString=function(){return Ep(this,1,void 0,jb)};h.getId_asString=function(){return un(this,1,void 0,jb)};h.setId=function(a){return wn(this,1,a,void 0,jb)};h.setTriage=function(a){return zw(this,2,yq,a,void 0,jb)};sP.messageId="b.TeamExperiments";var s0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s0a,W);h=s0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getAddMask=function(){return X(this,Dq,2)};h.getMutableAddMask=function(){return Ji(this,Dq,2)};h.setAddMask=function(a){return Ni(this,Dq,2,a)};h.getAdd=function(){return X(this,Bp,3)};h.setAdd=function(a){return Ni(this,Bp,3,a)};
h.getRemoveMask=function(){return X(this,Dq,4)};h.getMutableRemoveMask=function(){return Ji(this,Dq,4)};h.setRemoveMask=function(a){return Ni(this,Dq,4,a)};h.getRemove=function(){return X(this,Bp,5)};h.setRemove=function(a){return Ni(this,Bp,5,a)};h.getIssueComment=function(){return X(this,Mp,6)};h.setIssueComment=function(a){Ni(this,Mp,6,a)};h.hasIssueComment=function(){return yi(this,Mp,6)};h.setSignificanceOverride=function(a){return Im(this,7,a)};var Oq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oq,W);Oq.prototype.getQuery=function(){return vi(this,1)};Oq.prototype.setQuery=function(a){return Gm(this,1,a)};Oq.prototype.clearQuery=function(){Aw(this,1)};var tP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tP,W);tP.prototype.getIssueId=function(){return pn(this,1)};tP.prototype.getIssueId_asString=function(){return un(this,1)};tP.prototype.setIssueId=function(a){return Ko(this,1,a)};var B0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(B0a,W);h=B0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};var i1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i1a,W);i1a.prototype.getRelation=function(){return xi(this,1)};i1a.prototype.setRelation=function(a){return Im(this,1,a)};var h1a=function(a,b){return $o(a,2,b)};var Lfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lfd,W);h=Lfd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getReason=function(){return xi(this,2)};h.setReason=function(a){return Im(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var Y0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y0a,W);h=Y0a.prototype;h.getQuery=function(){return vi(this,1)};h.setQuery=function(a){return Gm(this,1,a)};h.clearQuery=function(){Aw(this,1)};h.setOrderBy=function(a){return Gm(this,2,a)};h.setPageSize=function(a){return an(this,3,a)};h.setPageToken=function(a){return Gm(this,4,a)};h.setView=function(a){return Im(this,5,a)};h.setIssueDescriptionView=function(a){return Im(this,6,a)};var y0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(y0a,W);h=y0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getComponentId=function(){return pn(this,2)};h.getComponentId_asString=function(){return un(this,2)};h.setComponentId=function(a){return Ko(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var Gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gq,W);Gq.prototype.getIssueId=function(){return pn(this,1)};Gq.prototype.getIssueId_asString=function(){return un(this,1)};Gq.prototype.setIssueId=function(a){return Ko(this,1,a)};var uP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uP,W);uP.prototype.getIssueId=function(){return pn(this,1)};uP.prototype.getIssueId_asString=function(){return un(this,1)};uP.prototype.setIssueId=function(a){return Ko(this,1,a)};uP.prototype.setSignificanceOverride=function(a){return Im(this,2,a)};var P0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(P0a,W);h=P0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getRetention=function(){return xi(this,2)};h.setRetention=function(a){return Im(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var Mfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Mfd.messageId)};Y(Mfd,W);Mfd.prototype.getIt=function(){return X(this,Lfd,3,jb)};Mfd.prototype.setIt=function(a){return Ni(this,Lfd,3,a,jb)};Mfd.messageId="b.DeleteIssueRequest";var d1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d1a,W);var E0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E0a,W);h=E0a.prototype;h.getFieldName=function(){return vi(this,1)};h.setFieldName=function(a){return pj(this,1,a)};h.getValue=function(){return vi(this,2)};h.setValue=function(a){return pj(this,2,a)};h.hasValue=function(){return im(this,2)};h.getCustomFieldValue=function(){return X(this,Iq,5)};h.setCustomFieldValue=function(a){return Ni(this,Iq,5,a)};h.clearCustomFieldValue=function(){return Aw(this,5)};var Eq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Eq.messageId)};Y(Eq,W);Eq.prototype.getIt=function(){return X(this,u0a,5,jb)};Eq.prototype.setIt=function(a){return Ni(this,u0a,5,a,jb)};Eq.messageId="b.GetRetainedAccessPrincipalsRequest";var Lq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Lq.messageId)};Y(Lq,W);Lq.prototype.getIt=function(){return X(this,Ip,4,jb)};Lq.prototype.setIt=function(a){return Ni(this,Ip,4,a,jb)};Lq.messageId="b.HotlistIssue";var Qq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qq,W);Qq.prototype.getIt=function(){return X(this,Jp,23)};Qq.prototype.setIt=function(a){return Ni(this,Jp,23,a)};var S0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(S0a,W);S0a.prototype.getIt=function(){return X(this,T0a,6)};S0a.prototype.setIt=function(a){return Ni(this,T0a,6,a)};var H0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H0a,W);H0a.prototype.getIt=function(){return X(this,s0a,7)};H0a.prototype.setIt=function(a){return Ni(this,s0a,7,a)};var Mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mq,W);Mq.prototype.setTrackerIdsList=function(a){return xc(this,6,a,Hb)};Mq.prototype.getIt=function(){return X(this,Y0a,7)};Mq.prototype.setIt=function(a){return Ni(this,Y0a,7,a)};var a1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a1a,W);var $0a=function(a,b){return Ni(a,Mq,1,b)},c1a=function(a,b){Oi(a,3,b)},f1a=function(a,b){Ni(a,xq,4,b)},g1a=function(a,b){Ni(a,i1a,5,b)};var A0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A0a,W);A0a.prototype.getIt=function(){return X(this,B0a,4)};A0a.prototype.setIt=function(a){return Ni(this,B0a,4,a)};var Nq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Nq.messageId)};Y(Nq,W);Nq.prototype.getIt=function(){return X(this,Oq,4,jb)};Nq.prototype.setIt=function(a){return Ni(this,Oq,4,a,jb)};Nq.messageId="b.ListRecentEventsForIssuesRequest";var Nfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Nfd.messageId)};Y(Nfd,W);Nfd.prototype.getIt=function(){return X(this,tP,3,jb)};Nfd.prototype.setIt=function(a){return Ni(this,tP,3,a,jb)};Nfd.messageId="b.MarkAsVulnerabilityRequest";var x0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x0a,W);x0a.prototype.getIt=function(){return X(this,y0a,4)};x0a.prototype.setIt=function(a){return Ni(this,y0a,4,a)};var vP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vP.messageId)};Y(vP,W);vP.prototype.getIt=function(){return X(this,yp,9,jb)};vP.prototype.setIt=function(a){return Ni(this,yp,9,a,jb)};vP.messageId="b.StatusUpdate";var Fq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fq.messageId)};Y(Fq,W);Fq.prototype.getIt=function(){return X(this,Gq,3,jb)};Fq.prototype.setIt=function(a){return Ni(this,Gq,3,a,jb)};Fq.messageId="b.UnCcUserActionRequest";var Ofd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ofd.messageId)};Y(Ofd,W);Ofd.prototype.getIt=function(){return X(this,uP,2,jb)};Ofd.prototype.setIt=function(a){return Ni(this,uP,2,a,jb)};Ofd.messageId="b.UndeleteIssueRequest";var Pfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Pfd.messageId)};Y(Pfd,W);Pfd.prototype.getIt=function(){return X(this,udd,5,jb)};Pfd.prototype.setIt=function(a){return Ni(this,udd,5,a,jb)};Pfd.messageId="b.UpdateIssueAccessLimitRequest";var J0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J0a,W);J0a.prototype.setSignificanceOverride=function(a){return Hn(this,4,a)};var Q0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Q0a,W);Q0a.prototype.getIt=function(){return X(this,P0a,5)};Q0a.prototype.setIt=function(a){return Ni(this,P0a,5,a)};var p1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p1a,W);h=p1a.prototype;h.getIssueIdsList=function(){return Jw(this,2,1)};h.getIssueIdsList_asString=function(){return Sm(this,2)};h.setIssueIdsList=function(a){return xc(this,2,a,Hb)};h.addIssueIds=function(a){return zc(this,2,Hb,a,void 0,Pb)};h.setIssueIds=function(a){zc(this,2,Hb,void 0,a,Pb,void 0,1)};var Qfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qfd,W);Qfd.prototype.setSignificanceOverride=function(a){return pj(this,3,a)};var N1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N1a,W);var L1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L1a,W);var Rfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rfd,W);Rfd.prototype.getField=function(){return vi(this,1)};var K1a=[3,4];var T1a=new nl("M/d/yyyy");var W1a=new RegExp(/^(?:https?:\/\/)?([\w-]+)-review\./.source+/(?:googlesource|git\.corp\.google)\.com/.source+/\/c\/([\w-\/\.]+)\/\+\/(\d{1,20})/.source+/(?:[^\d].*)?$/.source);var c2a=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var K2a=function(){this.updates=[];this.hasInitialUpdate=!1;this.summary=[]},L2a=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},z2a=function(a,b){a.summary.push.apply(a.summary,q(b))},H2a=function(a){var b=Sfd(a,a.updates.flatMap(u2a)),c=Tfd(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:ao(a.commentTimestamp||((f=a.updates[0])==null?void 0:f.timestamp)),userPerformingAction:$q(a.author),userPerformingActionUser:a.author,version:a.firstUpdateVersion,isMajorEvent:!!a.comment||!!c.length||a.hasInitialUpdate||b.some(function(k){return k.important}),statusUpdate:a.statusUpdate,taggedSummary:a.summary,issueId:a.updates[0].issueId,isCommentEvent:!!a.comment};
if(a.comment){d.commentContentVerdict=a.comment.commentContentVerdict;var g;d.commentDeletionStatus=(g=a.comment.entityStatus)==null?void 0:g.status;d.commentEtag=a.comment.etag;d.commentLastModifiedAtDate=a.comment.lastModified?Math.round(ao(bn(en(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},Tfd=function(a,b){if(!a.comment)return{preDiffs:b,postDiffs:[]};var c=b.filter(function(d){return d.timestamp<ao(a.commentTimestamp)});b=b.filter(function(d){return d.timestamp>=ao(a.commentTimestamp)});return{preDiffs:c,postDiffs:b}},Sfd=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 E2a=gn(function(a){return a.modifiedDate},hn),J2a=gn(function(a){return a.version},hn);var wP=function(){this.timeout=p(jO)};wP.prototype.adapt=function(a){return new Ufd(this.timeout,a)};wP.\u0275fac=function(a){return new (a||wP)};wP.\u0275prov=Fc({token:wP,factory:wP.\u0275fac,providedIn:"root"});var Ufd=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
Ufd.prototype.get=function(a){var b=ro(),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||Vfd(this);return b.promise};
var Vfd=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={batchedDeferred:void 0},c++){var d=a.batchedInputs[c];b.batchedDeferred=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var g=0;g<e.batchedDeferred.length;g++)e.batchedDeferred[g].resolve(f[g])}}(b),function(e){return function(f){for(var g=m(e.batchedDeferred),k=g.next();!k.done;k=g.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];
a.isBatchScheduled=!1})};var cr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,cr.messageId)};Y(cr,W);cr.prototype.getResource=function(){return vi(this,1,void 0,jb)};cr.prototype.setResource=function(a){return pj(this,1,a,jb)};cr.prototype.getRelation=function(){return xi(this,2,void 0,jb)};cr.prototype.setRelation=function(a){return Hn(this,2,a,jb)};cr.messageId="b.ResourceRelation";var Wfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Wfd.messageId)};Y(Wfd,W);Wfd.messageId="b.UserAccessBatchResponse";var xP=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+)$")};xP.prototype.validate=function(a){return this.resourceNamePattern.test(a)};xP.\u0275fac=function(a){return new (a||xP)};xP.\u0275prov=Fc({token:xP,factory:xP.\u0275fac,providedIn:"root"});
var yP=function(){var a=this;this.rawUserAccess=p(Xfd);this.resourceNameValidator=p(xP);this.bulkApiAdapter=p(wP);this.accesses={};this.accessGetter=this.bulkApiAdapter.adapt(function(b){return Yfd(a,b)})},Yfd=function(a,b){return Zfd(a,b).then(function(c){return N2a(b,c)})},zP=function(a,b,c){return a.resourceNameValidator.validate(c)?$fd(a,b,c):Promise.reject(Error("ae`"+c))},agd=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([$fd(a,"admin",b),$fd(a,"writer",b),$fd(a,"appender",
b),$fd(a,"reader",b)]).then(function(c){var d=m(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("ae`"+b))},Zfd=function(a,b){var c=[],d=[];b=m(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return ie(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:Wfd}).pipe(A(M2a)))},
$fd=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};yP.\u0275fac=function(a){return new (a||yP)};yP.\u0275prov=Fc({token:yP,factory:yP.\u0275fac,providedIn:"root"});var Xfd=function(){this.executor=p(ZN)};Xfd.\u0275fac=function(a){return new (a||Xfd)};Xfd.\u0275prov=Fc({token:Xfd,factory:Xfd.\u0275fac,providedIn:"root"});var bgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bgd,W);h=bgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getSummaryType=function(){return xi(this,2)};h.setSummaryType=function(a){return Im(this,2,a)};var cgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cgd,W);h=cgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getSummaryType=function(){return xi(this,2)};h.setSummaryType=function(a){return Im(this,2,a)};var AP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(AP,W);AP.prototype.setMaxResults=function(a){return an(this,1,a)};AP.prototype.setView=function(a){return Im(this,2,a)};AP.prototype.setIssueDescriptionView=function(a){return Im(this,3,a)};var dgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dgd,W);h=dgd.prototype;h.getIssueIdsList=function(){return Jw(this,1,1)};h.getIssueIdsList_asString=function(){return Sm(this,1)};h.setIssueIdsList=function(a){return ur(this,1,a)};h.addIssueIds=function(a){return Tw(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};h.setView=function(a){return Im(this,2,a)};h.setIssueDescriptionView=function(a){return Im(this,3,a)};var egd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(egd,W);h=egd.prototype;h.getComponentId=function(){return pn(this,5)};h.getComponentId_asString=function(){return un(this,5)};h.setComponentId=function(a){return Ko(this,5,a)};h.getTitle=function(){return vi(this,6)};h.setTitle=function(a){return Gm(this,6,a)};h.getComment=function(){return vi(this,7)};h.setComment=function(a){return Gm(this,7,a)};h.getAttachmentsList=function(){return Ci(this,Oo,8,Di())};
h.setAttachmentsList=function(a){return Oi(this,8,a)};h.addAllAttachments=function(a){Op(this,8,Oo,a)};h.setSignificanceOverride=function(a){return Im(this,2,a)};h.getTemplateId=function(){return pn(this,4)};h.setTemplateId=function(a){return Ko(this,4,a)};var fgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fgd,W);h=fgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setView=function(a){return Im(this,2,a)};h.setIssueDescriptionView=function(a){return Im(this,3,a)};var ggd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ggd,W);h=ggd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setTargetIdsList=function(a){return ur(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var hgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hgd,W);h=hgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setTargetIdsList=function(a){return ur(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var igd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(igd,W);h=igd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setTargetId=function(a){return Ko(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var jgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jgd,W);h=jgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setTargetIdsList=function(a){return ur(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var kgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kgd,W);h=kgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setTargetIdsList=function(a){return ur(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var lgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lgd,W);h=lgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setTargetId=function(a){return Ko(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};var BP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,BP.messageId)};Y(BP,W);BP.prototype.getIt=function(){return X(this,dgd,3,jb)};BP.prototype.setIt=function(a){return Ni(this,dgd,3,a,jb)};BP.messageId="b.BatchGetIssuesRequest";var mgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mgd,W);mgd.prototype.getIssuesList=function(){return Ci(this,Jp,1,Di())};var CP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,CP.messageId)};Y(CP,W);CP.prototype.getIt=function(){return X(this,mgd,2,jb)};CP.prototype.setIt=function(a){return Ni(this,mgd,2,a,jb)};CP.messageId="b.BatchGetIssuesResponse";var s1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s1a,W);h=s1a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return nn(this,1)};h.setIssueId=function(a){return Kn(this,1,a)};h.getMessage=function(){return vi(this,2)};h.setMessage=function(a){return pj(this,2,a)};var ngd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ngd.messageId)};Y(ngd,W);ngd.prototype.setErrors=function(a,b){zw(this,2,s1a,a,b,jb)};ngd.messageId="b.BulkEditResponse";var ogd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ogd.messageId)};Y(ogd,W);ogd.prototype.getIt=function(){return X(this,bgd,1,jb)};ogd.prototype.setIt=function(a){return Ni(this,bgd,1,a,jb)};ogd.messageId="b.GenerateIssueSummaryRequest";var pgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pgd,W);h=pgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getSummaryType=function(){return xi(this,2)};h.setSummaryType=function(a){return Im(this,2,a)};h.getModelVersion=function(){return Cm(this,3)};h.setModelVersion=function(a){return an(this,3,a)};h.getIssueVersion=function(){return Cm(this,7)};
h.setIssueVersion=function(a){return an(this,7,a)};h.getVersion=function(){return Cm(this,4)};h.setVersion=function(a){return an(this,4,a)};h.getSummary=function(){return vi(this,5)};var qgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qgd.messageId)};Y(qgd,W);qgd.prototype.getIt=function(){return X(this,pgd,1,jb)};qgd.prototype.setIt=function(a){return Ni(this,pgd,1,a,jb)};qgd.messageId="b.GenerateIssueSummaryResponse";var rgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,rgd.messageId)};Y(rgd,W);rgd.prototype.getIt=function(){return X(this,pgd,4,jb)};rgd.prototype.setIt=function(a){return Ni(this,pgd,4,a,jb)};rgd.messageId="b.GetIssueSummaryResponse";var DP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DP,W);DP.prototype.getReadersList=function(){return Ci(this,Bo,1,Di())};DP.prototype.setReadersList=function(a){return Oi(this,1,a)};DP.prototype.getAppendersList=function(){return Ci(this,Bo,2,Di())};DP.prototype.setAppendersList=function(a){return Oi(this,2,a)};var sgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,sgd.messageId)};Y(sgd,W);sgd.prototype.getIt=function(){return X(this,DP,4,jb)};sgd.prototype.setIt=function(a){return Ni(this,DP,4,a,jb)};sgd.messageId="b.GetRetainedAccessPrincipalsResponse";var EP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,EP.messageId)};Y(EP,W);EP.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};EP.prototype.getIssueId_asString=function(){return nn(this,1,void 0,jb)};EP.prototype.setIssueId=function(a){return Kn(this,1,a,void 0,jb)};EP.messageId="b.IssueCreateResponse";var ir=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ir.messageId)};Y(ir,W);ir.prototype.getIssue=function(){return X(this,Qq,1,jb)};ir.prototype.setIssue=function(a){return Ni(this,Qq,1,a,jb)};ir.messageId="b.IssueFetchResponse";var tgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tgd,W);h=tgd.prototype;h.getIssuesList=function(){return Ci(this,Jp,1,Di())};h.getNextPageToken=function(){return vi(this,2)};h.getTotalSize=function(){return Cm(this,3)};h.getTotalSizeAccurate=function(){return Gi(this,4)};h.getMaySkipResults=function(){return Gi(this,5)};var FP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FP.messageId)};Y(FP,W);FP.prototype.getIt=function(){return X(this,tgd,6,jb)};FP.prototype.setIt=function(a){return Ni(this,tgd,6,a,jb)};FP.messageId="b.IssueSearchResponse";var ugd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ugd,W);h=ugd.prototype;h.getIssueId=function(){return pn(this,10)};h.getIssueId_asString=function(){return un(this,10)};h.setIssueId=function(a){return Ko(this,10,a)};h.getAuthor=function(){return X(this,Fm,1)};h.setAuthor=function(a){Ni(this,Fm,1,a)};h.hasAuthor=function(){return yi(this,Fm,1)};h.getTimestamp=function(){return X(this,Ti,2)};h.setTimestamp=function(a){return Ni(this,Ti,2,a)};
h.hasTimestamp=function(){return yi(this,Ti,2)};h.getIssueComment=function(){return X(this,Mp,3)};h.setIssueComment=function(a){Ni(this,Mp,3,a)};h.hasIssueComment=function(){return yi(this,Mp,3)};h.getCommentNumber=function(){return Cm(this,4)};h.setCommentNumber=function(a){return an(this,4,a)};h.getAttachmentsList=function(){return Ci(this,Oo,8,Di())};h.setAttachmentsList=function(a){return Oi(this,8,a)};h.addAllAttachments=function(a){Op(this,8,Oo,a)};
h.getStatusUpdate=function(){return X(this,yp,9)};h.setStatusUpdate=function(a){Ni(this,yp,9,a)};h.hasStatusUpdate=function(){return yi(this,yp,9)};h.getFieldUpdatesList=function(){return Ci(this,Rfd,6,Di())};h.getVersion=function(){return Cm(this,7)};h.setVersion=function(a){return an(this,7,a)};var vgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vgd.messageId)};Y(vgd,W);vgd.messageId="b.ListIssueEventsResponse";var wgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,wgd.messageId)};Y(wgd,W);wgd.prototype.getIt=function(){return X(this,AP,1,jb)};wgd.prototype.setIt=function(a){return Ni(this,AP,1,a,jb)};wgd.messageId="b.ListRecentIssuesRequest";var xgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xgd,W);xgd.prototype.getIssuesList=function(){return Ci(this,Jp,1,Di())};var ygd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ygd.messageId)};Y(ygd,W);ygd.prototype.getIt=function(){return X(this,xgd,2,jb)};ygd.prototype.setIt=function(a){return Ni(this,xgd,2,a,jb)};ygd.messageId="b.ListRecentIssuesResponse";var N0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N0a,W);h=N0a.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return nn(this,1)};h.setIssueId=function(a){return Kn(this,1,a)};h.getStatus=function(){return xi(this,2)};h.setStatus=function(a){return Hn(this,2,a)};h.hasStatus=function(){return jm(this,2)};h.getTitle=function(){return vi(this,3)};h.setTitle=function(a){return pj(this,3,a)};
h.getVersion=function(){return Cm(this,4)};h.setVersion=function(a){return Fn(this,4,a)};h.getVersionOrUndefined=function(){return Kw(this,4)};h.getIsArchived=function(){return Gi(this,5)};h.setIsArchived=function(a){return Pi(this,5,a)};var zgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zgd.messageId)};Y(zgd,W);zgd.messageId="b.RelatedIssuesResponse";var GP=function(){this.executor=p(ZN);this.userAccess=p(yP);this.activeSession=p(qu)};h=GP.prototype;
h.createIssue=function(a){var b=this;return pe(function(){return zP(b.userAccess,"writer","components/"+a.snapshot.componentId+"/issueDefaults")}).pipe(Af(function(c){if(c){var d=W0a(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:EP}).pipe(A(X0a))}else{c=(new egd).setComponentId(a.snapshot.componentId).setTitle(a.snapshot.title).setComment(a.snapshot.comment);var f=mp(a.snapshot.formattingMode);
c=Im(c,9,f).setAttachmentsList((e=(d=a.attachments)==null?void 0:d.map(BWa))!=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:EP}).pipe(A(X0a))}return d}))};
h.createIssueWithWizard=function(a){var b=W0a(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:EP}).pipe(A(X0a))};h.getIssueFull=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);return this.executor.get({url:"action/issues/"+a,options:{params:b},responseConstructor:ir}).pipe(A(function(e){return Pq(e)}))};
h.getIssueBasic=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);c=(new fgd).setIssueId(a).setView(1).setIssueDescriptionView(1);return this.executor.post({url:"action/issues/"+a+"/getIssue",options:{params:b},body:c,responseConstructor:ir}).pipe(A(function(e){return Pq(e)}))};
h.batchGetIssuesFull=function(a){a=(new BP).setIt((new dgd).setIssueIdsList(a.map(Mm).filter(Qm)).setView(2).setIssueDescriptionView(2));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:CP}).pipe(A(function(b){return b.getIt().getIssuesList().map(gYa)}))};h.batchGetIssues=function(a){a=(new BP).setIt((new dgd).setIssueIdsList(a.map(Mm).filter(Qm)).setView(1).setIssueDescriptionView(1));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:CP}).pipe(A(function(b){return b.getIt().getIssuesList().map(Fp)}))};
h.updateIssue=function(a,b){b.actions=b.actions.filter(function(c){return c.fieldName!=="componentId"});b=I0a(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};h.moveIssueExternal=function(a,b){b=C0a(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};
h.moveIssue=function(a,b){b=z0a(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};h.unCcUser=function(a){var b=w0a(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};
h.updateAccessLimit=function(a,b,c,d){var e=new Pfd,f=e.setIt,g=(new udd).setIssueId(a);b&&(b=$Va(b),g.setIssueAccessLimit(b));c&&g.setAddedCollaboratorsList(c.map(Jm));d&&g.setRemovedCollaboratorsList(d.map(Jm));c=f.call(e,g);return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:c,responseConstructor:null})};
h.getRetainedAccessPrincipals=function(a,b,c,d){b=v0a(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:sgd}).pipe(A(function(e){e=e.getIt();return{readers:e.getReadersList().map(Ao),appenders:e.getAppendersList().map(Ao),writers:Ci(e,Bo,3,Di()).map(Ao)}}))};
h.markAsVulnerability=function(a,b){var c=(new tP).setIssueId(Number(a));b&&(b=b.map(Jm),Oi(c,2,b));c=(new Nfd).setIt(c);return this.executor.post({url:"action/issues/"+a+"/markAsVulnerability",body:c,responseConstructor:null})};
h.relateIssue=function(a,b){if(b.relation==="BLOCKING"&&b.actionType==="ADD")return this.addBlocking(a,b.targetIds);if(b.relation==="BLOCKING"&&b.actionType==="REMOVE")return this.removeBlocking(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="ADD")return this.addBlockedBy(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="REMOVE")return this.removeBlockedBy(a,b.targetIds);if(b.relation==="DUPLICATE"&&b.actionType==="ADD")return this.markAsDuplicate(a,b.targetIds[0]);if(b.relation===
"DUPLICATE"&&b.actionType==="REMOVE")return Agd(this,a);throw Error("be");};h.addBlocking=function(a,b){b=(new hgd).setIssueId(Number(a)).setTargetIdsList(b.map(Mm).filter(Qm));return this.executor.post({url:"action/issues/"+a+"/add_blocking",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};h.removeBlocking=function(a,b){b=(new kgd).setIssueId(Number(a)).setTargetIdsList(b.map(Mm).filter(Qm));return this.executor.post({url:"action/issues/"+a+"/remove_blocking",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};
h.addBlockedBy=function(a,b){b=(new ggd).setIssueId(Number(a)).setTargetIdsList(b.map(Mm).filter(Qm));return this.executor.post({url:"action/issues/"+a+"/add_blocked_by",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};h.removeBlockedBy=function(a,b){b=(new jgd).setIssueId(Number(a)).setTargetIdsList(b.map(Mm).filter(Qm));return this.executor.post({url:"action/issues/"+a+"/remove_blocked_by",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};
h.markAsDuplicate=function(a,b){b=(new igd).setIssueId(Number(a)).setTargetId(Number(b));return this.executor.post({url:"action/issues/"+a+"/mark_as_duplicate",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};var Agd=function(a,b){var c=(new lgd).setIssueId(Number(b));return a.executor.post({url:"action/issues/"+b+"/unmark_as_duplicate",body:c,responseConstructor:ir}).pipe(A(function(d){return Pq(d)}))};
GP.prototype.updateIssueHotlists=function(a,b){b=M0a(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};GP.prototype.updateIssueRetention=function(a,b){b=R0a(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:ir}).pipe(A(function(c){return Pq(c)}))};
GP.prototype.listIssues=function(a,b){b=b===void 0?{}:b;a=Z0a(a,b);return this.executor.post({url:"action/issues/list",body:a,responseConstructor:FP}).pipe(A(A1a))};var Bgd=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;b=k1a(b,c,d);return a.executor.post({url:"action/issues/list_with_experiments",body:b,responseConstructor:FP}).pipe(A(A1a))},Cgd=function(a,b){var c=new AP;b&&c.setMaxResults(b);b=(new wgd).setIt(c);return a.executor.post({url:"action/issues/recent",body:b,responseConstructor:ygd}).pipe(A(function(d){return d.getIt().getIssuesList().map(function(e){return Fp(e)})}))};
GP.prototype.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new Qfd;var d=a.bulkEditOps.map(q1a);Oi(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:ngd,options:{headers:c}}).pipe(A(t1a))};
GP.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:zgd}).pipe(A(O0a))};
var Egd=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:vgd}).pipe(A(function(e){return Dgd(e,!1)}))},Fgd=function(a,b){b=m1a(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:vgd}).pipe(A(function(c){return Dgd(c,!0)}))};
GP.prototype.getIssueSummary=function(a,b){b=(new cgd).setIssueId(Number(a)).setSummaryType(acd[b]);return this.executor.post({url:"action/issues/"+a+"/getSummary",body:b,responseConstructor:rgd}).pipe(A(function(c){return C1a(c.getIt())}))};
var Ggd=function(a,b){var c=(new bgd).setIssueId(b).setSummaryType(acd.COMMENTS_LONG);c=(new ogd).setIt(c);return a.executor.post({url:"action/issues/"+b+"/generateSummary",body:c,responseConstructor:qgd}).pipe(A(function(d){return C1a(d.getIt())}))},Dgd=function(a,b){a=Ci(a,ugd,2,Di(),jb).map(J1a);return b?F2a(a):D2a(a)};GP.\u0275fac=function(a){return new (a||GP)};GP.\u0275prov=Fc({token:GP,factory:GP.\u0275fac,providedIn:"root"});var HP=function(){this.observableApi=p(GP)};h=HP.prototype;
h.createIssue=function(a){return ie(this.observableApi.createIssue(a))};h.createIssueWithWizard=function(a){return ie(this.observableApi.createIssueWithWizard(a))};h.getIssueFull=function(a){return ie(this.observableApi.getIssueFull(a))};h.getIssueBasic=function(a){return ie(this.observableApi.getIssueBasic(a))};h.batchGetIssuesFull=function(a){return ie(this.observableApi.batchGetIssuesFull(a))};h.batchGetIssues=function(a){return ie(this.observableApi.batchGetIssues(a))};
h.updateIssue=function(a,b){return ie(this.observableApi.updateIssue(a,b))};h.moveIssueExternal=function(a,b){return ie(this.observableApi.moveIssueExternal(a,b))};h.moveIssue=function(a,b){return ie(this.observableApi.moveIssue(a,b))};h.unCcUser=function(a){return ie(this.observableApi.unCcUser(a))};h.updateAccessLimit=function(a,b,c,d){return ie(this.observableApi.updateAccessLimit(a,b,c,d))};
h.getRetainedAccessPrincipals=function(a,b,c,d){return ie(this.observableApi.getRetainedAccessPrincipals(a,b,c,d))};h.markAsVulnerability=function(a,b){return ie(this.observableApi.markAsVulnerability(a,b))};h.relateIssue=function(a,b){return ie(this.observableApi.relateIssue(a,b))};h.updateIssueHotlists=function(a,b){return ie(this.observableApi.updateIssueHotlists(a,b))};h.updateIssueRetention=function(a,b){return ie(this.observableApi.updateIssueRetention(a,b))};
h.listIssues=function(a,b){b=b===void 0?{}:b;return ie(this.observableApi.listIssues(a,b))};h.issueBulkEdit=function(a,b){return ie(this.observableApi.issueBulkEdit(a,b))};h.getRelatedIssues=function(a){return ie(this.observableApi.getRelatedIssues(a))};HP.\u0275fac=function(a){return new (a||HP)};HP.\u0275prov=Fc({token:HP,factory:HP.\u0275fac,providedIn:"root"});var Hgd={ACTIVE:0,DISMISSED:1,SNOOZED:2,0:"ACTIVE",1:"DISMISSED",2:"SNOOZED"};var IP=function(){pO.call(this);this.observableIssueResources=p(GP);this.recordType="eventsForIssue";this.idForRecord=function(a){return a.id}};Y(IP,pO);IP.prototype.isEqual=function(a,b){return(a==null?void 0:a.id)!==(b==null?void 0:b.id)?!1:BUa(a==null?void 0:a.events,b==null?void 0:b.events)};IP.prototype.copy=function(a){return a&&pm(a)};IP.prototype.fetchOne=function(a){return Egd(this.observableIssueResources,a).pipe(A(function(b){return{id:a,events:b}}))};
IP.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Qm)}))};IP.\u0275fac=function(a){return new (a||IP)};IP.\u0275prov=Fc({token:IP,factory:IP.\u0275fac,providedIn:"root"});var Igd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Igd,W);h=Igd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCommentNumbers=function(){return Mw(this,2)};h.setView=function(a){return Im(this,3,a)};var Jgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Jgd.messageId)};Y(Jgd,W);Jgd.prototype.getIt=function(){return X(this,Igd,4,jb)};Jgd.prototype.setIt=function(a){return Ni(this,Igd,4,a,jb)};Jgd.messageId="b.BatchGetIssueCommentsRequest";var Kgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kgd,W);Kgd.prototype.getIssueCommentsList=function(){return Ci(this,Mp,1,Di())};var Lgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Lgd.messageId)};Y(Lgd,W);Lgd.prototype.getIt=function(){return X(this,Kgd,2,jb)};Lgd.prototype.setIt=function(a){return Ni(this,Kgd,2,a,jb)};Lgd.messageId="b.BatchGetIssueCommentsResponse";var JP=function(){this.jspbExecutor=p(ZN);this.activeSession=p(qu)};JP.prototype.batchGet=function(a,b){var c=new Jgd,d=c.setIt;a=(new Igd).setIssueId(Number(a));b=xc(a,2,b,Eb);c=d.call(c,b.setView(2));var e;(d=(e=this.activeSession.getTracker())==null?void 0:e.trackerId)&&Kn(c,3,d,void 0,jb);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:Lgd,body:c}).pipe(A(u1a))};JP.\u0275fac=function(a){return new (a||JP)};JP.\u0275prov=Fc({token:JP,factory:JP.\u0275fac,providedIn:"root"});var KP=function(){pO.call(this);var a=this;this.issueCommentsBatchApi=p(JP);this.batchApiAdapter=p(HO);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(KP,pO);
KP.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return le(a.map(function(d){return b.get(d)})).pipe(A(function(d){var e=[];d=m(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var g=void 0,k={issueId:c,commentId:(g=f.commentNumber)!=null?g:0};e.push({id:k,formattedComment:f})}return e}))};
KP.prototype.call=function(a){var b="",c=[];a=m(a);for(var d=a.next();!d.done;d=a.next()){var e=m(d.value.split("-"));d=e.next().value;e=e.next().value;b!==""&&b===d?c.push(Number(e)):b===""&&(b=d,c.push(Number(e)))}return this.issueCommentsBatchApi.batchGet(b,c).pipe(A(function(f){var g=b,k=new Map;f=m(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var r=void 0,w=Number(g)+"-"+((r=l.commentNumber)!=null?r:0);k.set(w,l)}return k}))};KP.prototype.splitBatch=function(a,b){return b.get(a)};
KP.\u0275fac=function(a){return new (a||KP)};KP.\u0275prov=Fc({token:KP,factory:KP.\u0275fac,providedIn:"root"});var LP=function(){pO.call(this);this.accessPolicyApi=p(EO);this.recordType="hotlistAccessPolicy";this.isEqual=mm;this.idForRecord=function(a){return a.id}};Y(LP,pO);LP.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(A(function(b){return Object.assign({},{id:a},b)}))};LP.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};LP.\u0275fac=function(a){return new (a||LP)};
LP.\u0275prov=Fc({token:LP,factory:LP.\u0275fac,providedIn:"root"});var MP=function(){pO.call(this);this.api=p(uO);this.recordType="IssueEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=mm};Y(MP,pO);MP.prototype.fetchOne=function(a){return Aed(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};MP.\u0275fac=function(a){return new (a||MP)};MP.\u0275prov=Fc({token:MP,factory:MP.\u0275fac,providedIn:"root"});var Mgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mgd,W);h=Mgd.prototype;h.getIssueIdsList=function(){return Jw(this,1,1)};h.getIssueIdsList_asString=function(){return Sm(this,1)};h.setIssueIdsList=function(a){return ur(this,1,a)};h.addIssueIds=function(a){return Tw(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var Ngd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ngd,W);h=Ngd.prototype;h.getIssueIdsList=function(){return Jw(this,1,1)};h.getIssueIdsList_asString=function(){return Sm(this,1)};h.setIssueIdsList=function(a){return ur(this,1,a)};h.addIssueIds=function(a){return Tw(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var Ogd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ogd,W);Ogd.prototype.setExperiments=function(a){return zw(this,1,xq,a)};var Pgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Pgd.messageId)};Y(Pgd,W);Pgd.prototype.getIt=function(){return X(this,Ogd,1,jb)};Pgd.prototype.setIt=function(a){return Ni(this,Ogd,1,a,jb)};Pgd.messageId="b.BatchGetIssueExperimentsResponse";var Qgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qgd,W);h=Qgd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.getType=function(){return xi(this,2)};h.setType=function(a){return Im(this,2,a)};h.getPriority=function(){return xi(this,3)};h.setPriority=function(a){return Im(this,3,a)};h.getSeverity=function(){return xi(this,4)};
h.setSeverity=function(a){return Im(this,4,a)};h.getStatus=function(){return xi(this,5)};h.setStatus=function(a){return Im(this,5,a)};h.getReporter=function(){return X(this,Fm,6)};h.setReporter=function(a){Ni(this,Fm,6,a)};h.getAssignee=function(){return X(this,Fm,7)};h.setAssignee=function(a){return Ni(this,Fm,7,a)};h.clearAssignee=function(){return Aw(this,7)};h.getVerifier=function(){return X(this,Fm,8)};h.setVerifier=function(a){Ni(this,Fm,8,a)};h.clearVerifier=function(){return Aw(this,8)};
h.getCcsList=function(){return Ci(this,Fm,9,Di())};h.setCcsList=function(a){Oi(this,9,a)};h.addAllCcs=function(a){Op(this,9,Fm,a)};h.setCcs=function(a,b){return zw(this,9,Fm,a,b)};h.getCollaboratorsList=function(){return Ci(this,Fm,23,Di())};h.setCollaboratorsList=function(a){Oi(this,23,a)};h.addAllCollaborators=function(a){Op(this,23,Fm,a)};h.setCollaborators=function(a,b){return zw(this,23,Fm,a,b)};h.getStaffing=function(){return X(this,wp,27)};h.setStaffing=function(a){Ni(this,wp,27,a)};
h.getHotlistIdsList_asLegacyNumberOrString=function(a){return o5a(this,10,Di(a))};h.getHotlistIdsList_asString=function(){return Sm(this,10)};h.setHotlistIdsList=function(a){return ur(this,10,a)};h.addHotlistIds=function(a,b){return Tw(this,10,a,b)};h.addAllHotlistIds=function(a){Uw(this,10,a)};h.removeHotlistIds=function(a){return Fyc(this,10,a)};h.getBlockedByIssueIdsList=function(){return Jw(this,11,1)};h.getBlockedByIssueIdsList_asString=function(){return Sm(this,11)};
h.setBlockedByIssueIdsList=function(a){ur(this,11,a)};h.addAllBlockedByIssueIds=function(a){Uw(this,11,a)};h.getBlockingIssueIdsList=function(){return Jw(this,12,1)};h.getBlockingIssueIdsList_asString=function(){return Sm(this,12)};h.setBlockingIssueIdsList=function(a){ur(this,12,a)};h.addAllBlockingIssueIds=function(a){Uw(this,12,a)};h.getCanonicalIssueId_asString=function(){return un(this,13)};h.setCanonicalIssueId=function(a){Ko(this,13,a)};
h.getDuplicateIssueIdsList_asString=function(){return Sm(this,14)};h.setDuplicateIssueIdsList=function(a){ur(this,14,a)};h.getInProd=function(){return Gi(this,15)};h.setInProd=function(a){$o(this,15,a)};h.getSloSnoozeUntil=function(){return X(this,Ti,16)};h.setSloSnoozeUntil=function(a){Ni(this,Ti,16,a)};h.getSloEndTime=function(){return X(this,Ti,25)};h.setSloEndTime=function(a){Ni(this,Ti,25,a)};h.hasSloEndTime=function(){return yi(this,Ti,25)};h.getRetention=function(){return xi(this,17)};
h.setRetention=function(a){return Im(this,17,a)};h.getEntityStatus=function(){return X(this,Lo,18)};h.setEntityStatus=function(a){return Ni(this,Lo,18,a)};h.getIsArchived=function(){return Gi(this,19)};h.setIsArchived=function(a){return $o(this,19,a)};h.getEffort=function(){return X(this,Cp,24)};h.setEffort=function(a){Ni(this,Cp,24,a)};h.hasEffort=function(){return yi(this,Cp,24)};h.getAccessLimit=function(){return X(this,Eo,26)};h.setAccessLimit=function(a){return Ni(this,Eo,26,a)};var Rgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rgd,W);h=Rgd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getIssueState=function(){return X(this,Qgd,2)};h.setIssueState=function(a){return Ni(this,Qgd,2,a)};h.getVersion=function(){return Cm(this,3)};h.setVersion=function(a){return an(this,3,a)};h.getEtag=function(){return Tn(this,16)};
h.setEtag=function(a){return Po(this,16,a)};h.getCreatedTime=function(){return X(this,Ti,4)};h.setCreatedTime=function(a){return Ni(this,Ti,4,a)};h.getModifiedTime=function(){return X(this,Ti,5)};h.setModifiedTime=function(a){return Ni(this,Ti,5,a)};h.getMajorModifiedTime=function(){return X(this,Ti,14)};h.setMajorModifiedTime=function(a){return Ni(this,Ti,14,a)};h.getResolvedTime=function(){return X(this,Ti,6)};h.setResolvedTime=function(a){return Ni(this,Ti,6,a)};
h.getVerifiedTime=function(){return X(this,Ti,7)};h.setVerifiedTime=function(a){return Ni(this,Ti,7,a)};h.getSloId_asLegacyNumberOrString=function(){return Ep(this,9)};h.getSloId_asString=function(){return un(this,9)};h.setSloId=function(a){return Ko(this,9,a)};h.getSloStatus=function(){return X(this,Jq,10)};h.setSloStatus=function(a){Ni(this,Jq,10,a)};h.getTeamId=function(){return pn(this,13)};h.getTeamId_asLegacyNumberOrString=function(){return Ep(this,13)};
h.getTeamId_asString=function(){return un(this,13)};h.setTeamId=function(a){return Ko(this,13,a)};h.getRetentionState=function(){return X(this,Mo,11)};h.setRetentionState=function(a){Ni(this,Mo,11,a)};h.getAccessLimit=function(){return X(this,Ho,12)};h.setAccessLimit=function(a){return Ni(this,Ho,12,a)};h.getParentIssueIdsList_asString=function(){return Sm(this,17)};h.setParentIssueIdsList=function(a){return ur(this,17,a)};h.getAncestorsMap=function(){return wc(this,19,Kq,Ub)};
h.getChildIssueCount=function(){return Cm(this,20)};h.setChildIssueCount=function(a){return an(this,20,a)};h.getDescendantIssueCount=function(){return Cm(this,21)};h.setDescendantIssueCount=function(a){return an(this,21,a)};h.getOpenDescendantIssueCount=function(){return Cm(this,22)};h.setOpenDescendantIssueCount=function(a){return an(this,22,a)};h.getIsArchived=function(){return Gi(this,18)};h.setIsArchived=function(a){return $o(this,18,a)};var Sgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Sgd.messageId)};Y(Sgd,W);Sgd.prototype.getIt=function(){return X(this,Rgd,14,jb)};Sgd.prototype.setIt=function(a){return Ni(this,Rgd,14,a,jb)};Sgd.messageId="b.IssueMetadata";var Tgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tgd,W);Tgd.prototype.getIt=function(){return X(this,Ngd,4)};Tgd.prototype.setIt=function(a){return Ni(this,Ngd,4,a)};var Ugd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ugd,W);var Vgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vgd.messageId)};Y(Vgd,W);Vgd.prototype.getIt=function(){return X(this,Ugd,2,jb)};Vgd.prototype.setIt=function(a){return Ni(this,Ugd,2,a,jb)};Vgd.messageId="b.UpdateIssueReadTimestampResponse";var NP=function(){this.executor=p(dO)};NP.prototype.delete=function(a,b){b=(new Mfd).setIt((new Lfd).setIssueId(Number(a)).setReason(hcd[pWa(b)]));return this.executor.post({url:"action/issues/"+a+"/delete",body:b,responseConstructor:null})};NP.prototype.undelete=function(a){var b=(new Ofd).setIt((new uP).setIssueId(Number(a)));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};
NP.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:Sgd}).then(w1a)};NP.prototype.markRead=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c;var d=new Tgd,e=d.setIt;a=(new Ngd).setIssueIdsList(a.map(Number));b=$o(a,2,b);c=Im(b,3,zcd[c]);d=e.call(d,c);return this.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:Vgd}).then(v1a)};
var Wgd=function(a,b){return a.executor.get({url:"action/issues/"+b+"/experiments",responseConstructor:xq}).then(T_a).then(function(c){return Object.assign({},c,{id:b})})},Xgd=function(a,b){var c=(new Mgd).setIssueIdsList(b.map(Number));return a.executor.post({url:"action/issues/batch_experiments",body:c,responseConstructor:Pgd}).then(function(d){d=d.getIt();return Ci(d,xq,1,Di()).map(T_a)}).then(function(d){var e=fo(d,function(f){return f.id});return b.map(function(f){var g;return(g=e.get(f))!=null?
g:dr(f)})})},Ygd=function(a,b){return a.executor.post({url:"action/issues/"+b.id+"/experiments",body:W_a(b),responseConstructor:xq}).then(T_a)};NP.\u0275fac=function(a){return new (a||NP)};NP.\u0275prov=Fc({token:NP,factory:NP.\u0275fac,providedIn:"root"});var PP=function(){pO.call(this,{freshUntil:6E4});this.activeSession=p(qu);this.batchApiAdapter=p(HO);this.batchApiConfig=p(OP);this.issueService=p(NP);this.recordType="issue-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=mm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig);this.isEnabled=this.activeSession.isInternalSession()};Y(PP,pO);
PP.prototype.fetchOne=function(a){var b=this;return this.isEnabled?pe(function(){return b.batchAdaptedGet(a)}).pipe(jf(function(){return ee(void 0)})):ee(void 0)};PP.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Qm)}))};PP.prototype.copy=function(a){return a&&pm(a)};
PP.prototype.updateOrInsert=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1){if(!c.isEnabled)return k.return(dr(a));c.manualUpdate(a,function(l){b(l!=null?l:dr(a))});return z(k,ie(c.batchAdaptedGet(a)),2)}if(k.nextAddress!=3)return d=k.yieldResult,f=(e=c.copy(d))!=null?e:dr(a),b(f),z(k,Ygd(c.issueService,f),3);g=k.yieldResult;c.announce(g);return k.return(g)})};PP.\u0275fac=function(a){return new (a||PP)};PP.\u0275prov=Fc({token:PP,factory:PP.\u0275fac,providedIn:"root"});
var OP=function(){this.issueService=p(NP);this.maxBatchSize=100;this.bufferTimeMs=0};OP.prototype.call=function(a){var b=this;return pe(function(){return Xgd(b.issueService,[].concat(q(a)))}).pipe(A(function(c){return fo(c,function(d){return d.id})}))};OP.prototype.split=function(a,b){var c;return(c=b.get(a))!=null?c:dr(a)};OP.\u0275fac=function(a){return new (a||OP)};OP.\u0275prov=Fc({token:OP,factory:OP.\u0275fac,providedIn:"root"});var QP=function(){this.refreshRequest=new sf};QP.prototype.getObservable=function(){return this.refreshRequest};var Zgd=function(a,b){return RP(a,function(){return b})},RP=function(a,b){return a.getObservable().pipe(zf(void 0)).pipe(Af(function(){return b()}))};QP.\u0275fac=function(a){return new (a||QP)};QP.\u0275prov=Fc({token:QP,factory:QP.\u0275fac,providedIn:"root"});var TP=function(){pO.call(this);var a=this;this.batchApiAdapter=p(HO);this.refreshMonitor=p(QP);this.issueBatchConfig=p(SP);this.issueApi=p(GP);this.issueExperimentalFieldsFridge=p(PP);this.recordType="issue-basic";this.idForRecord=function(b){return String(b.issueId)};this.isEqual=mm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueBatchConfig);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(TP,pO);h=TP.prototype;h.fetchOne=function(a){return this.batchAdaptedGet(a)};
h.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Qm)}))};
h.fetchAll=function(a){var b=a.custom;var c=a.filter;var d=a.pageSize;a={s:a.sort,count:d};if(b==="viewed")return Cgd(this.issueApi,d).pipe(A(function(e){return{results:e}}),jf(function(e){Wm("issueFullFridge -> listRecentIssues() API error",e);return ee({results:[]})}));if(b==="byExperimentalPhase"&&c)return c=m(c.split("____b-internal____")),b=c.next().value,c=c.next().value,d=dr("0"),d.triage.phase=c,Bgd(this.issueApi,b,a,{queryType:"QUERY_TRIAGE_PHASE",experimentalFields:d,concatenator:{relation:"AND"}}).pipe(A(function(e){return{results:e.issues,
totalSize:e.numTotalResults}}));if(c)return this.issueApi.listIssues(c,a).pipe(A(function(e){return{results:e.issues,totalSize:e.numTotalResults}}));throw Error("ce");};h.copy=function(a){return a&&pm(a)};h.watch=function(a,b){return le([pO.prototype.watch.call(this,a,b),this.issueExperimentalFieldsFridge.watch(a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return Y2a([c],[d])[0]}))};
h.watchSet=function(a,b){return le([pO.prototype.watchSet.call(this,a,b),this.issueExperimentalFieldsFridge.watchSet(a)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return Y2a(c,d)}))};h.watchMany=function(a,b){var c=this;return pO.prototype.watchMany.call(this,a,b).pipe(Af(function(d){return c.issueExperimentalFieldsFridge.watchSet(d.results.map(c.idForRecord)).pipe(A(function(e){return Y2a(d.results,e)}),A(function(e){return Object.assign({},d,{results:e})}))}))};
h.peek=function(a){var b=pO.prototype.peek.call(this,a);a=this.issueExperimentalFieldsFridge.peek(a);return Y2a([b],[a])[0]};h.poke=function(a,b){var c=this,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return d=m,z(r,Promise.all([pO.prototype.poke.call(c,a,b),c.issueExperimentalFieldsFridge.poke(a,b)]),2);e=d(r.yieldResult);f=e.next().value;g=e.next().value;k=f;l=g;return r.return(Y2a([k],[l])[0])})};TP.\u0275fac=function(a){return new (a||TP)};
TP.\u0275prov=Fc({token:TP,factory:TP.\u0275fac,providedIn:"root"});var SP=function(){this.issueApi=p(GP);this.maxBatchSize=100;this.bufferTimeMs=0};SP.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(q(a))[0];return this.issueApi.getIssueBasic(c).pipe(A(function(d){return new Map([[c,d]])}))}return pe(function(){return b.issueApi.batchGetIssues([].concat(q(a)))}).pipe(A(function(d){return fo(d,function(e){return e.issueId})}))};SP.prototype.split=function(a,b){return b.get(a)};
SP.\u0275fac=function(a){return new (a||SP)};SP.\u0275prov=Fc({token:SP,factory:SP.\u0275fac,providedIn:"root"});var Z2a=window,q3a=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},$gd=function(a){if($2a())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var t3a=to("debug-logging")(),j3a=window,ahd,p3a=!1,s3a={};var w3a=ndd("last-visit"),x3a=ndd("last-visit-count"),z3a=odd("last-visit"),y3a=odd("last-visit-count");Date.now==null&&(Date.now=function(){return(new Date).getTime()});var bhd=function(){this.activeSession=p(qu);this.transport=(new ZC(2523,this.activeSession.getSessionIdentifier())).build()};bhd.\u0275fac=function(a){return new (a||bhd)};bhd.\u0275prov=Fc({token:bhd,factory:bhd.\u0275fac,providedIn:"root"});var chd=function(){var a=new ZC(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new JK(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new q9c(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};chd.\u0275fac=function(a){return new (a||chd)};chd.\u0275prov=Fc({token:chd,factory:chd.\u0275fac,providedIn:"root"});var dhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dhd,W);var ehd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ehd,W);var fhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fhd,W);h=fhd.prototype;h.setUserAction=function(a){return Hn(this,1,a)};h.getIssueId=function(){return pn(this,3)};h.getIssueId_asString=function(){return un(this,3)};h.setIssueId=function(a){return wn(this,3,a)};h.getEnvironmentType=function(){return vi(this,4)};h.setEnvironmentType=function(a){return pj(this,4,a)};h.getFrontendAccessMode=function(){return vi(this,5)};
h.setFrontendAccessMode=function(a){return pj(this,5,a)};var ghd=to("debug-logging")(),UP=function(){this.activeSession=p(qu);this.streamz=p(chd);this.clearcutTransport=p(bhd);this.pageLoadTime=new rbd(this.streamz.service);this.userLatency=new tbd(this.streamz.service);this.userActionCounter=new sbd(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
UP.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);ghd&&console.log("Clearcut stub",{action:b,duration:a})};var VP=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);ghd&&console.log("Clearcut stub",{action:c,duration:b})},hhd=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);ghd&&console.log("Clearcut stub",{action:b})};UP.\u0275fac=function(a){return new (a||UP)};
UP.\u0275prov=Fc({token:UP,factory:UP.\u0275fac,providedIn:"root"});var ihd=vo("journey-log"),jhd=uo("journey-log"),khd=[{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"}],lhd={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter",
"idle"],successMarker:"SUCCESS-search",count:["nav"]},mhd=function(){this.clearcut=p(UP)},nhd=function(a,b){var c=c===void 0?Date.now():c;var d,e=(d=jhd())!=null?d:[];e.push([b,c]);e.length>100&&(e=e.slice(-100));ihd(e);if(lhd.successEvents.includes(b)){b=e;c=lhd.abortEvents;d=lhd.successEvents;e=lhd.startEvents;for(var f=lhd.successMarker,g,k=b.length-1;k>=0;k--){var l=m(b[k]),r=l.next().value;l=l.next().value;if(c.includes(r))break;if(f===r)break;if(d.includes(r)){if(g&&w)break;var w=l}else w&&
e.includes(r)&&(g=l)}w=g&&w?[g,w]:void 0;w&&(w=m(w),g=w.next().value,w=w.next().value-g,VP(a.clearcut,w,B3a("journey","global-search-text")),er("journey","global-search-text","duration",w),nhd(a,lhd.successMarker))}};mhd.\u0275fac=function(a){return new (a||mhd)};mhd.\u0275prov=Fc({token:mhd,factory:mhd.\u0275fac,providedIn:"root"});var ohd=function(){var a=this;this.clearcut=p(UP);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)))}},phd=function(a){$2a()&&(a.observer!=null&&a.observer.disconnect(),a.observer=new Z2a.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
ohd.\u0275fac=function(a){return new (a||ohd)};ohd.\u0275prov=Fc({token:ohd,factory:ohd.\u0275fac,providedIn:"root"});var C3a={},qhd={logInfo:function(){console.log(E3a());console.log("\nDuplicate Requests:");console.table(D3a())},getCounts:function(){return C3a},getDupes:D3a,getAggregates:E3a};var rhd={attributes:!1,childList:!0,subtree:!0},WP=function(){var a=this;this.ngZone=p(Rg);this.router=p(YE);this.activatedRoute=p(Mj);this.dom$=new sf;this.cdr$=this.ngZone.onStable;this.xhr$=new sf;this.render$=ve(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(lf(200));this.navigatedTo$=this.router.events.pipe(we(G3a),A(function(){return F3a(a.activatedRoute.snapshot)}));this.navigatedTo$.pipe(Af(function(b){return a.renderSettled$.pipe(nf(1),A(function(){return b}))}),xf(1));this.domObserver=
new MutationObserver(function(){return void a.dom$.next()})},shd=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,rhd)};WP.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;C3a[c]=~~C3a[c]+1;this.xhr$.next(c);return b.handle(a)};WP.\u0275fac=function(a){return new (a||WP)};WP.\u0275prov=Fc({token:WP,factory:WP.\u0275fac,providedIn:"root"});var thd={provide:WBc,useExisting:WP,multi:!0};var XP=function(){Ui.apply(this,arguments)};Y(XP,Ui);XP.create=Ui.create;XP.prototype.emit=function(a){Ui.prototype.emit.call(this,a)};var Z=function(){this.destroyed$=new wf(1);this.subscriptions=new Rd};Z.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};Z.\u0275fac=function(a){return new (a||Z)};Z.\u0275dir=df({type:Z});var YP=function(){this.cdr=p(ux);this.zone=p(Rg);this.destroyed=!1};YP.prototype.ngOnDestroy=function(){this.destroyed=!0};YP.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};YP.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};YP.\u0275fac=function(a){return new (a||YP)};YP.\u0275prov=Fc({token:YP,factory:YP.\u0275fac});var ZP=function(){Z.apply(this,arguments);var a=this;this.ngZone=p(Rg);this.activeSubject$=new Nj(!1);this.active$=this.activeSubject$.pipe(pf(),Bf(this.destroyed$),I3a(this.ngZone));this.onUserEvent=VHc(function(){a.activeSubject$.next(!0);uhd(a)},200);this.onVisibilityChange=function(){document.visibilityState==="hidden"?(a.activeSubject$.next(!1),clearTimeout(a.activeTimeoutId)):(a.activeSubject$.next(!0),uhd(a))}};Y(ZP,Z);ZP.\u0275dir=Z.\u0275dir;
ZP.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)};
ZP.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 uhd=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},1E4)};ZP.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ZP)))(b||ZP)}}();ZP.\u0275prov=Fc({token:ZP,factory:ZP.\u0275fac,providedIn:"root"});var vhd=[Qj,Sj,Rj],$P=function(){Z.call(this);var a=this;this.router=p(YE);this.routeChangeStart=new sf;this.routeChangeSuccess=new sf;this.locationChangeStart=new sf;this.locationChangeSuccess=new sf;this.routeUpdate=new sf;this.viewContentLoaded=new sf;this.navigationEnd$=this.router.events.pipe(we(G3a));this.navigationOver$=this.router.events.pipe(we(function(c){return vhd.some(function(d){return c instanceof d})}));whd(this,Wxa).subscribe(function(c){a.routeChangeStart.next({params:Object.assign({},
c.snapshot.queryParams,c.snapshot.params)})});var b=whd(this,yQc);ve(this.navigationOver$.pipe(mf(jx)),this.routeChangeStart.pipe(mf(b))).pipe(Af(Td),we(function(c){return c.snapshot.routeConfig.isRootRoute}),A(function(c){return{params:Object.assign({},c.snapshot.queryParams,c.snapshot.params)}}),Bf(this.destroyed$)).subscribe(function(c){a.routeChangeSuccess.next(c)});whd(this,hr).pipe(A(function(c){return c.url}),pf()).subscribe(function(){a.locationChangeStart.next()});whd(this,Qj).pipe(A(function(c){return c.url}),
pf()).subscribe(function(){a.locationChangeSuccess.next()});b=p(Mj).queryParams.pipe(Ef(whd(this,qQc)));ve(this.routeChangeStart.pipe(mf(jx)),this.navigationOver$.pipe(mf(b))).pipe(Af(Td),Bf(this.destroyed$)).subscribe(function(c){c=m(c);c.next();c=c.next().value;a.routeUpdate.next({params:c.state.root.params})});whd(this,Qj).subscribe(function(){a.viewContentLoaded.next()})};Y($P,Z);$P.\u0275dir=Z.\u0275dir;
var whd=function(a,b){return a.router.events.pipe(we(function(c){return c instanceof b}),A(function(c){return c}),Bf(a.destroyed$))};$P.\u0275fac=function(a){return new (a||$P)};$P.\u0275prov=Fc({token:$P,factory:$P.\u0275fac,providedIn:"root"});var xhd=to("onedev-darkmode"),aQ=function(){var a=p($P),b=p(qu),c=p(Mj);Z.call(this);var d=this;this.journeyTracker=p(mhd);this.preapply=function(){return function(k){return function(l,r){d.trackEvent("editIssue",k,l,r)}}};A3a();u3a(b.getUserTypeLabel());b=b.getUserPreferences();fr("dimension7",xhd()?"dark":"default");var e;fr("dimension3",(e=b.themePreferences)==null?void 0:e.density);e=b.showFullHistory?"fh":"comments";var f;if((f=b.commentFilterPreferences)==null?0:f.commentFilter){var g;e=(g=
b.commentFilterPreferences)==null?void 0:g.commentFilter}fr("dimension2",e);fr("dimension5",b.showRecentEventsFirst?"newestFirst":"oldestFirst");this.subscriptions.add(a.viewContentLoaded.pipe(zf(void 0)).subscribe(function(){var k=F3a(c.snapshot);v3a("page_location",k);m3a("page_view",{page_path:k})}))};Y(aQ,Z);aQ.\u0275dir=Z.\u0275dir;
aQ.prototype.trackEvent=function(a,b,c,d){er(a,b,c,typeof d==="boolean"?d?1:0:d);d=this.journeyTracker;a=B3a(a,b,c);b=m(khd);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=c.outputEvent;if(a.match(c.matcher)){nhd(d,e);break}}};var yhd=function(a,b,c){m3a("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},c!==void 0?{timing_label:c}:{}))},zhd=function(a,b){a.trackEvent("editIssue","updateStatus",b)};aQ.\u0275fac=function(a){return new (a||aQ)};
aQ.\u0275prov=Fc({token:aQ,factory:aQ.\u0275fac,providedIn:"root"});var K3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K3a,W);var Ahd=!1;var cQ=function(){pO.call(this);var a=this;this.batchApiAdapter=p(HO);this.issueApi=p(GP);this.userResources=p(eP);this.refreshMonitor=p(QP);this.issueService=p(NP);this.activeSession=p(qu);this.hotlistFridge=p(gP);this.analytics=p(aQ);this.issueExperimentalFieldsFridge=p(PP);this.issueFullBatchConfig=p(bQ);this.issueFridge=p(TP);this.recordType="issue-full";this.idForRecord=function(c){return String(c.issueId)};this.isEqual=mm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueFullBatchConfig);
if(Ahd)var b=void 0;else Ahd=!0,b=M3a();b&&this.announce(b);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(cQ,pO);h=cQ.prototype;h.announce=function(a,b){pO.prototype.announce.call(this,N3a(a));this.issueFridge.announce(aVa(a),b)};
h.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.batchAdaptedGet(a).pipe(Cf(function(c){b.issueFridge.clearIsGetting(a);b.issueFridge.announce(aVa(c))}),A(function(c){return N3a(c)}),jf(function(c){b.issueFridge.clearIsGetting(a);return ge(function(){return c})}))};h.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c).pipe(jf(function(){return ee(void 0)}))})).pipe(A(function(c){return c.filter(Qm)}))};
h.watch=function(a,b){return le([pO.prototype.watch.call(this,a,b),this.issueFridge.watch(a,b)]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return bVa(d,c)}))};h.watchSet=function(a){return le([pO.prototype.watchSet.call(this,a),this.issueFridge.watchSet(a)]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d=fo(c,function(e){return e.issueId});return b.map(function(e){return bVa(d.get(e.issueId),e)})}),A(function(b){return b.filter(Qm)}))};
h.peek=function(a){var b=pO.prototype.peek.call(this,a);a=this.issueFridge.peek(a);return bVa(a,b)};h.poke=function(a,b){var c=this;return y(function(d){return d.nextAddress==1?z(d,Promise.all([pO.prototype.poke.call(c,a,b),c.issueFridge.poke(a,b)]),2):d.return(c.peek(a))})};h.manualUpdate=function(a,b){if(a=(a=this.peek(a))&&pm(a))b(a),this.announce(a)};h.copy=function(a){return a&&pm(a)};
var Bhd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};TN(a.activeSession)&&(d.voted=c);return Dfd(a.userResources,b,d).pipe(Cf(function(){a.manualUpdate(b,function(e){e.userData&&(e.userData.starred=c,TN(a.activeSession)&&(e.userData.voted=c))})}))},Chd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","vote",c);return Dfd(a.userResources,b,{voted:c,starred:null,notificationSubscription:null}).pipe(Cf(function(){a.manualUpdate(b,
function(d){d.userData&&(d.userData.voted=c)})}))};cQ.prototype.setNotificationSubscription=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return c.analytics.trackEvent("issue","light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},z(e,ie(Dfd(c.userResources,a,d)),2);c.manualUpdate(a,function(f){f.userData&&(f.userData.notificationSubscription=b)});ce(e)})};
var Dhd=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(Cf(function(e){e&&a.announce(e)}))};cQ.prototype.removeHotlists=function(a,b){return this.updateHotlists(a,[],b)};
cQ.prototype.updateHotlists=function(a,b,c){var d=this,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1){d.analytics.trackEvent("issue","edit","hotlists");e={removeHotlistIds:c,addHotlistIds:b,hotlistIssue:{issueId:a}};f=m([].concat(q(b),q(c)));for(g=f.next();!g.done;g=f.next())k=g.value,d.hotlistFridge.setIsSaving(k);Yd(w,2);return z(w,ie(d.issueApi.updateIssueHotlists(a,e)).finally(function(){for(var x=m([].concat(q(b),q(c))),C=x.next();!C.done;C=x.next())d.hotlistFridge.clearIsSaving(C.value)}),
4)}if(w.nextAddress!=2)return(l=w.yieldResult)&&d.announce(l),w.return(l);r=be(w);d.poke(a);throw r;})};var Fhd=function(a,b,c){return Ehd(a,"ADD","DUPLICATE",c,[b]).then(function(){c!=null&&zhd(a.analytics,"DUPLICATE");return a.poke(b)})};h=cQ.prototype;h.removeDuplicate=function(a,b){var c=this;return Ehd(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};h.addBlocking=function(a,b){return Ehd(this,"ADD","BLOCKING",a,b)};
h.removeBlocking=function(a,b){return Ehd(this,"REMOVE","BLOCKING",a,b)};h.addBlockedBy=function(a,b){return Ehd(this,"ADD","BLOCKED_BY",a,b)};h.removeBlockedBy=function(a,b){return Ehd(this,"REMOVE","BLOCKED_BY",a,b)};
var Ehd=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};Ghd(a,b);var f=[d].concat(q(e));e=m(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return ie(a.issueApi.relateIssue(d,b)).then(function(g){g&&a.announce(g)}).catch(function(g){a.poke(d);throw g;}).finally(function(){for(var g=m(f),k=g.next();!k.done;k=g.next())a.clearIsSaving(k.value)})},dQ=function(a,
b,c){c=c===void 0?{}:c;var d=c.markRead===void 0?!0:c.markRead;var e=c.eagerUpdate===void 0?!0:c.eagerUpdate;var f=c.userActivityType===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c.userActivityType;var g,k,l,r;return y(function(w){if(w.nextAddress==1)return a.activeSession.isAnonymous()?w.return():z(w,a.issueService.markRead(b,d,f),2);g=w.yieldResult;if(e)for(k=m(b),l=k.next();!l.done;l=k.next())r=l.value,a.manualUpdate(String(r),function(x){x.userData&&(x.userData.lastViewedTimeMicros=g.readTimestamp)});
return w.return(g.readTimestamp?Math.round(g.readTimestamp/1E3):void 0)})},Ghd=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(q((d=c.snapshot[0].blockedByIssueId)!=null?d:[]),q(b.targetIds.map(String)))}else if(b.actionType==="REMOVE"){var e,f;c.snapshot[0].blockedByIssueId=(f=(e=c.snapshot[0].blockedByIssueId)==null?void 0:e.filter(function(g){return!b.targetIds.includes(String(g))}))!=
null?f:[]}}})};cQ.\u0275fac=function(a){return new (a||cQ)};cQ.\u0275prov=Fc({token:cQ,factory:cQ.\u0275fac,providedIn:"root"});var bQ=function(){this.issueApi=p(GP);this.maxBatchSize=100;this.bufferTimeMs=0};bQ.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(q(a))[0];return this.issueApi.getIssueFull(c).pipe(A(function(d){return new Map([[c,d]])}))}return pe(function(){return b.issueApi.batchGetIssuesFull([].concat(q(a)))}).pipe(A(function(d){return fo(d,function(e){return e.issueId})}))};
bQ.prototype.split=function(a,b){return b.get(a)};bQ.\u0275fac=function(a){return new (a||bQ)};bQ.\u0275prov=Fc({token:bQ,factory:bQ.\u0275fac,providedIn:"root"});var eQ=function(){pO.call(this);var a=this;this.api=p(gO);this.activeSession=p(qu);this.refreshMonitor=p(QP);this.recordType="issue-recommendation";this.isEqual=mm;this.idForRecord=function(b){return b.issueId+"-"+b.recommendationType};this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(eQ,pO);h=eQ.prototype;
h.fetchOne=function(a){if(this.activeSession.isExternalSession())return ee(void 0);a=O3a(a);var b=a.issueId,c=a.recommendationType;return c==="NEEDS_INFO"&&!this.activeSession.getFlag("enableNeedsInfoUi")||c==="ANY_ISSUE_EDIT"&&!this.activeSession.getFlag("enablePlaybook")?ee(void 0):this.api.lookupRecommendations({resource:"issues/"+b,type:c,minConfidence:"MEDIUM",view:"FULL",pageSize:10}).pipe(A(function(d){return{issueId:b,recommendationType:c,recommendations:d.recommendations}}),jf(function(d){console.error("IssueRecommendationFridge error",
d);return ee(void 0)}))};
h.fetchSet=function(a){if(this.activeSession.isExternalSession())return ee([]);var b=a.map(function(c){return O3a(c)});a=vq(b.map(function(c){return"issues/"+c.issueId}));b=new Set(b.map(function(c){return c.recommendationType}));this.activeSession.getFlag("enableNeedsInfoUi")||b.delete("NEEDS_INFO");this.activeSession.getFlag("enablePlaybook")||b.delete("ANY_ISSUE_EDIT");return b.size===0?ee([]):this.api.batchLookupTopRecommendations({resources:a,types:[].concat(q(b)),view:"FULL"}).pipe(A(function(c){return c.recommendations.map(function(d){return{issueId:Wr(d.resource),recommendationType:d.type,
recommendations:[d]}})}))};h.watch=function(a){if(!a.includes("-"))throw Error("de");return pO.prototype.watch.call(this,a)};h.poke=function(a){if(!a.includes("-"))throw Error("ee");return pO.prototype.poke.call(this,a)};h.watchSet=function(a){if(a.some(function(b){return!b.includes("-")}))throw Error("fe");return pO.prototype.watchSet.call(this,a)};var Hhd=function(a,b){if(b.length===0)return ee([]);b=b.map(function(c){return c+"-ANY_ISSUE_EDIT"});return a.watchSet(b)};
eQ.\u0275fac=function(a){return new (a||eQ)};eQ.\u0275prov=Fc({token:eQ,factory:eQ.\u0275fac,providedIn:"root"});var jr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jr,W);var Ihd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ihd,W);h=Ihd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setRelationshipType=function(a){return Im(this,2,a)};h.getIssueRelationship=function(){return X(this,jr,3)};h.setIssueRelationship=function(a){return Ni(this,jr,3,a)};h.setSignificanceOverride=function(a){return Im(this,4,a)};var Jhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jhd,W);h=Jhd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setRelationshipType=function(a){return Im(this,2,a)};h.setRequestsList=function(a){return Oi(this,3,a)};h.addAndReturnRequests=function(){return Bc(this,3,Ihd)};h.setSignificanceOverride=function(a){return Im(this,4,a)};var Khd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Khd,W);h=Khd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setRelationshipType=function(a){return Im(this,2,a)};h.setSignificanceOverride=function(a){return Im(this,4,a)};var Lhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lhd,W);h=Lhd.prototype;h.setRelationshipType=function(a){return Im(this,1,a)};h.getSourceIssueIdsList_asString=function(){return Sm(this,2)};h.setSourceIssueIdsList=function(a){return ur(this,2,a)};h.getQuery=function(){return vi(this,3)};h.setQuery=function(a){return Gm(this,3,a)};h.clearQuery=function(){Aw(this,3)};var fQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fQ,W);var Mhd=function(a,b){return ur(a,1,b)};fQ.prototype.setRelationshipType=function(a){return Im(this,2,a)};var Nhd=function(a,b){return an(a,3,b)},Ohd=function(a,b){return an(a,4,b)};fQ.prototype.getQuery=function(){return vi(this,5)};fQ.prototype.setQuery=function(a){return Gm(this,5,a)};fQ.prototype.clearQuery=function(){Aw(this,5)};var Phd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Phd.messageId)};Y(Phd,W);Phd.prototype.getIt=function(){return X(this,Jhd,5,jb)};Phd.prototype.setIt=function(a){return Ni(this,Jhd,5,a,jb)};Phd.messageId="b.BatchCreateIssueRelationshipsRequest";var Qhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Qhd.messageId)};Y(Qhd,W);Qhd.prototype.getIssueRelationshipsList=function(){return Ci(this,jr,1,Di(),jb)};Qhd.messageId="b.BatchCreateIssueRelationshipsResponse";var Rhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Rhd.messageId)};Y(Rhd,W);Rhd.prototype.getIt=function(){return X(this,Khd,5,jb)};Rhd.prototype.setIt=function(a){return Ni(this,Khd,5,a,jb)};Rhd.messageId="b.BatchDeleteIssueRelationshipsRequest";var Shd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Shd.messageId)};Y(Shd,W);Shd.prototype.getIt=function(){return X(this,Lhd,4,jb)};Shd.prototype.setIt=function(a){return Ni(this,Lhd,4,a,jb)};Shd.messageId="b.BatchGetIssueRelationshipsRequest";var Thd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Thd,W);Thd.prototype.getIssueRelationshipsList=function(){return Ci(this,jr,1,Di())};Thd.prototype.getTotalSize=function(){return Cm(this,2)};var Uhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Uhd.messageId)};Y(Uhd,W);Uhd.messageId="b.BatchGetIssueRelationshipsResponse";var Vhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vhd.messageId)};Y(Vhd,W);Vhd.prototype.getIssueRelationship=function(){return X(this,jr,1,jb)};Vhd.prototype.setIssueRelationship=function(a){return Ni(this,jr,1,a,jb)};Vhd.messageId="b.CreateIssueRelationshipResponse";var Whd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Whd.messageId)};Y(Whd,W);Whd.prototype.getIt=function(){return X(this,fQ,6,jb)};Whd.prototype.setIt=function(a){return Ni(this,fQ,6,a,jb)};Whd.messageId="b.GetIssueDescendantsRequest";var Xhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Xhd.messageId)};Y(Xhd,W);Xhd.messageId="b.GetIssueDescendantsResponse";var Yhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Yhd.messageId)};Y(Yhd,W);Yhd.prototype.getIssueRelationshipsList=function(){return Ci(this,jr,1,Di(),jb)};Yhd.messageId="b.ListIssueRelationshipsResponse";var Zhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Zhd.messageId)};Y(Zhd,W);Zhd.prototype.getIssueRelationship=function(){return X(this,jr,1,jb)};Zhd.prototype.setIssueRelationship=function(a){return Ni(this,jr,1,a,jb)};Zhd.messageId="b.UpdateIssueRelationshipResponse";var gQ=function(){this.executor=p(ZN)};h=gQ.prototype;h.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+WM[b],responseConstructor:Yhd}).pipe(A(function(c){return c.getIssueRelationshipsList().map(Q3a)}))};h.create=function(a,b,c){b=WM[b];c=P3a(c);return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:Vhd}).pipe(A(function(d){return Q3a(d.getIssueRelationship())}))};
h.update=function(a,b,c){b=WM[b];var d=P3a(c);return this.executor.put({url:"action/issues/"+a+"/relationships/"+c.targetIssueId+"?relationshipType="+b,body:d,responseConstructor:Zhd}).pipe(A(function(e){return Q3a(e.getIssueRelationship())}))};h.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+WM[b],responseConstructor:null})};
h.batchGet=function(a,b){b=WM[b];a=(new Shd).setIt((new Lhd).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:Uhd}).pipe(A(function(c){return Ci(c,Thd,1,Di(),jb).map(R3a)}))};
var $hd=function(a,b,c){var d=WM.CHILD;c=c.map(function(e){e=P3a(e);return(new Ihd).setIssueRelationship(e)});b=(new Phd).setIt((new Jhd).setIssueId(b).setRelationshipType(d).setSignificanceOverride(c.length>1?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:Qhd}).pipe(A(function(e){return e.getIssueRelationshipsList().map(Q3a)}))},aid=function(a,b,c){var d=WM.CHILD,e=new Rhd,f=e.setIt;b=(new Khd).setIssueId(b).setRelationshipType(d);
c=ur(b,3,c);e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
gQ.prototype.getDescendants=function(a){var b=a.issueIds;var c=a.relationshipType;var d=a.includeArchived;var e=a.depthLimit;a=a.prefixSizeLimit;c=WM[c];b=(new Whd).setIt(Ohd(Nhd(Mhd(new fQ,b).setRelationshipType(c).setQuery(this.getQuery(d)),e),a));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:Xhd}).pipe(A(function(f){var g=new Map;f=m(wc(f,1,Thd,Ub,jb).entries());for(var k=f.next();!k.done;k=f.next()){var l=m(k.value);k=l.next().value;l=l.next().value;g.set(String(k),
R3a(l))}return g}))};gQ.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};gQ.\u0275fac=function(a){return new (a||gQ)};gQ.\u0275prov=Fc({token:gQ,factory:gQ.\u0275fac,providedIn:"root"});var hQ={},bid=(hQ.BUG="BUG",hQ.FEATURE_REQUEST="FEATURE_REQUEST",hQ.CUSTOMER_ISSUE="CUSTOMER_ISSUE",hQ.INTERNAL_CLEANUP="INTERNAL_CLEANUP",hQ.PROCESS="PROCESS",hQ.VULNERABILITY="VULNERABILITY",hQ.PRIVACY_ISSUE="PRIVACY_ISSUE",hQ.EPIC="STORY",hQ.STORY="TASK",hQ.TASK="TASK",hQ.PROJECT="TASK",hQ.FEATURE="TASK",hQ.MILESTONE="TASK",hQ.PROGRAM="PROJECT",hQ);var iQ=function(){oO.call(this,{freshUntil:6E4,ancientAfter:792E5});var a=this;this.issueRelationshipService=p(gQ);this.issueFullFridge=p(cQ);this.refreshMonitor=p(QP);this.recordType="issueRelationships";this.idForRecord=function(b){return b.issueId};this.isEqual=mm;this.activeMoveOperation$=new Nj(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=tVa(function(b,c){return cid(a,b,c)});this.assignParentToOneIssue=function(b,c){return cid(a,String(b),[{issueId:c}])};
this.moveChildrenInAPI=sVa(function(b){return a.moveChildrenInAPISequentially(b)});this.moveChildrenInAPISequentially=tVa(function(b){var c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa,$a;return y(function(pb){switch(pb.nextAddress){case 1:d=X3a(b);if(d.length===0)return pb.return();e=d.map(function(Xb){return Xb.issues.map(function(lc){return lc.parentId})}).flat();f=d.map(function(Xb){return Xb.newParentId});g=vq([].concat(q(e),q(f)));k=m(g);for(l=k.next();!l.done;l=k.next())r=l.value,
a.setIsSaving(r);Yd(pb,2);w=m(d);x=w.next();case 4:if(x.done){bt(pb,3);break}C=x.value;H=m(C.newRelations);J=H.next();O={};case 7:if(J.done){x=w.next();pb.jumpTo(4);break}O.newRelation=J.value;R=C.issues.find(function(Xb){return function(lc){return lc.issueId===Xb.newRelation.targetIssueId}}(O)).parentId;return C.newParentId===R?z(pb,ie(a.issueRelationshipService.update(C.newParentId,"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})),8):z(pb,ie(a.issueRelationshipService.create(C.newParentId,
"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})).catch(function(Xb){var lc,ec;if(!(Xb==null?0:(lc=Xb.error)==null?0:(ec=lc.details)==null?0:ec.includes("ALREADY_EXISTS")))throw Xb;}),12);case 12:return z(pb,ie(a.issueRelationshipService.delete(R,"CHILD",O.newRelation.targetIssueId)),8);case 8:O={newRelation:void 0};J=H.next();pb.jumpTo(7);break;case 2:c=V=be(pb);case 3:ca=a.activeMoveOperation$.value;oa=m(b.map(function(Xb){return Xb.eventTimestamps}).flat());
for(ua=oa.next();!ua.done;ua=oa.next())ka=ua.value,ca.delete(ka);a.activeMoveOperation$.next(ca);Ga=m(g);for(ja=Ga.next();!ja.done;ja=Ga.next())ta=ja.value,a.clearIsSaving(ta);Promise.all(g.map(function(Xb){return a.poke(Xb)}));xa=m(d);for(Sa=xa.next();!Sa.done;Sa=xa.next())$a=Sa.value,c&&$a.done.reject(c),$a.done.resolve();ce(pb)}})});this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(iQ,oO);
iQ.prototype.fetchOne=function(a){var b=this;return did(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(A(function(c){return{issueId:a,relatedChildren:c,totalChildCount:c.length}}),jf(function(c){return Rp(c)&&c.status===403?ee(void 0):ge(function(){return c})}))})};
iQ.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(q((c=a.ids)!=null?c:[]));return d.length===0?ee({results:[]}):did(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(A(S3a),A(function(e){return{results:e}}))});default:wb(a.type)}};iQ.prototype.copy=function(a){return a&&pm(a)};
var did=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(we(function(d){return d.size===0}),Af(function(){return b()}),Af(function(d){return a.activeMoveOperation$.value.size===0?ee(d):c()}),nf(1))};return c()},eid=function(a,b){return a.watch(b).pipe(Af(function(c){return c&&c.totalChildCount===c.relatedChildren.length?ee(c):a.watch(b,{trustMemory:!1})}))},fid=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})},gid=function(a,b,c){return hed(a,
{type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})};
iQ.prototype.unlinkFromParent=function(a,b,c){c=c===void 0?!1:c;var d=this,e;return y(function(f){switch(f.nextAddress){case 1:d.issueFullFridge.manualUpdate(b,function(g){--g.childIssueCount});d.issueFullFridge.manualUpdate(a,function(g){g.parentIssueIds=g.parentIssueIds.filter(function(k){return k!==b})});d.manualUpdate(b,function(g){var k=g.relatedChildren;g.relatedChildren=W3a(k,a);g.totalChildCount-=k.length-g.relatedChildren.length});if(c)return f.return();Yd(f,2);return z(f,ie(d.issueRelationshipService.delete(b,
"CHILD",a)),4);case 4:bt(f,0);break;case 2:return e=be(f),z(f,Promise.all([d.poke(b),d.issueFullFridge.poke(b),d.issueFullFridge.poke(a)]),5);case 5:throw e;}})};
var cid=function(a,b,c){var d,e,f,g,k,l,r,w,x;return y(function(C){switch(C.nextAddress){case 1:d=[];e=[];f=[];if(c.length===0)return C.return({added:d,notAdded:e});g=hid(a,b);k=c.map(function(H,J){var O=H.afterIssueId==="-1"?g:H.afterIssueId;return{targetIssueId:H.issueId,afterIssueId:J?c[J-1].issueId:O}});iid(a,b,k);l=m(k);r=l.next();case 2:if(r.done){C.jumpTo(4);break}w=r.value;Yd(C,5);return z(C,ie(a.issueRelationshipService.create(b,"CHILD",{targetIssueId:w.targetIssueId,afterIssueId:w.afterIssueId})),
7);case 7:d.push(w.targetIssueId);bt(C,3);break;case 5:x=be(C);if(!Rp(x))throw x;f.push(x);e.push(w.targetIssueId);case 3:r=l.next();C.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFullFridge.poke(b)]),C.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},iid=function(a,b,c){var d=0;a.manualUpdate(b,function(e){var f=V3a(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})},jid=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){if(O.nextAddress==1)return d=[],e=[],f=[],c.length===0?O.return({added:d,notAdded:e}):z(O,Promise.allSettled(c.map(function(R){return ie(a.issueRelationshipService.create(R,"CHILD",{targetIssueId:b,afterIssueId:hid(a,R)}))})),2);g=O.yieldResult;k=m(g.entries());for(l=k.next();!l.done;l=k.next())r=l.value,w=m(r),x=w.next().value,C=w.next().value,H=x,J=C,J.status==="fulfilled"&&
d.push(c[H]),J.status==="rejected"&&(e.push(c[H]),f.push(J.reason));Promise.all(c.map(function(R){return a.poke(R)}));return O.return({added:d,notAdded:e,errors:f})})},kid=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=m(c),g=f.next(),k={};!g.done;k={issue$jscomp$52:void 0},g=f.next())k.issue$jscomp$52=g.value,a.manualUpdate(k.issue$jscomp$52.parentId,function(V){return function(ca){ca.relatedChildren=W3a(ca.relatedChildren,
V.issue$jscomp$52.issueId);--ca.totalChildCount}}(k));var l=void 0,r;if((r=b.position)==null?0:r.issueId){var w;if(((w=b.position)==null?void 0:w.position)==="after")l=b.position.issueId;else{var x;if(((x=b.position)==null?void 0:x.position)==="before"){var C,H;f=(H=(C=a.memory.getData(d))==null?void 0:C.relatedChildren)!=null?H:[];C=m(f.entries());for(H=C.next();!H.done;H=C.next())if(g=m(H.value),H=g.next().value,g=g.next().value,g.targetIssueId===b.position.issueId){b=void 0;l=(b=f[H-1])==null?
void 0:b.targetIssueId;break}}}}var J=c.map(function(V,ca){return{targetIssueId:V.issueId,afterIssueId:ca?c[ca-1].issueId:l}});ied(a,d)!==void 0?a.manualUpdate(d,function(V){V.relatedChildren=V3a(V.relatedChildren,J);V.totalChildCount+=J.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:V3a([],J),totalChildCount:J.length});b=new rVa;var O,R;a.moveChildrenInAPI({newParentId:d,newRelations:J,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:(R=(O=a.memory.getData(d))==null?void 0:
O.relatedChildren)!=null?R:[],done:b});return b.promise},hid=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};iQ.\u0275fac=function(a){return new (a||iQ)};iQ.\u0275prov=Fc({token:iQ,factory:iQ.\u0275fac,providedIn:"root"});var lid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lid,W);var jQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jQ,W);jQ.prototype.getTrackerId=function(){return pn(this,2)};jQ.prototype.getTrackerId_asString=function(){return un(this,2)};jQ.prototype.setTrackerId=function(a){wn(this,2,a)};jQ.prototype.setFilterSignalsList=function(a){return Ww(this,3,a)};var lr=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 mid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mid,W);h=mid.prototype;h.getIterationId_asString=function(){return un(this,1)};h.getWorkspaceId=function(){return pn(this,2)};h.getWorkspaceId_asString=function(){return un(this,2)};h.getType=function(){return xi(this,3)};h.setType=function(a){return Im(this,3,a)};h.getName=function(){return vi(this,4)};h.setName=function(a){return Gm(this,4,a)};h.getHotlistId=function(){return pn(this,7)};
h.setHotlistId=function(a){return Ko(this,7,a)};h.getStatus=function(){return xi(this,8)};h.setStatus=function(a){return Im(this,8,a)};h.getTagsList=function(a){return xn(this,9,Di(a))};h.getTags=function(a){return Ow(this,9,a)};h.setVelocity=function(a){return sp(this,11,a)};h.getStartTime=function(){return X(this,Ti,12)};h.setStartTime=function(a){Ni(this,Ti,12,a)};h.getEndTime=function(){return X(this,Ti,13)};h.setEndTime=function(a){Ni(this,Ti,13,a)};
h.hasEndTime=function(){return yi(this,Ti,13)};h.getEtag=function(){return vi(this,18)};h.setEtag=function(a){return Gm(this,18,a)};var kQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kQ,W);kQ.prototype.setContextsList=function(a){return Ww(this,1,a)};kQ.prototype.addContexts=function(a){return zc(this,1,Cb,a,void 0,Db)};kQ.prototype.getContexts=function(a){return Ow(this,1,a)};var nid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nid,W);var oid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(oid,W);var pid=function(a){var b=new oid;return Oi(b,1,a)};var lQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lQ,W);lQ.prototype.getTitle=function(){return vi(this,2)};lQ.prototype.setTitle=function(a){return Gm(this,2,a)};var qid=function(a,b){return Gm(a,3,b)},rid=function(a,b){return Ko(a,4,b)},sid=function(a,b){return Gm(a,5,b)};lQ.prototype.getClientId=function(){return Cm(this,6)};lQ.prototype.setClientId=function(a){return an(this,6,a)};lQ.prototype.getWorkspaceId=function(){return vi(this,7)};var tid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tid.messageId)};Y(tid,W);tid.prototype.setTaskIdsList=function(a){return Hm(this,1,a,jb)};tid.messageId="mc.BatchUpdateTasksDismissStateRequest";var uid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uid.messageId)};Y(uid,W);uid.prototype.setTaskIdsList=function(a){return Hm(this,1,a,jb)};uid.messageId="mc.BatchUpdateTasksManualSignalStateRequest";var vid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vid.messageId)};Y(vid,W);vid.prototype.setTaskIdsList=function(a){return Hm(this,1,a,jb)};vid.prototype.setTaskStatus=function(a){return Im(this,2,a,jb)};vid.messageId="mc.BatchUpdateTaskSnoozeStateRequest";var wid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wid,W);wid.prototype.setFilterSignalsList=function(a){return Ww(this,1,a)};var xid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xid,W);xid.prototype.setFilterSignalsList=function(a){return Ww(this,1,a)};var yid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yid,W);yid.prototype.setFilterSignalsList=function(a){return Ww(this,1,a)};var zid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zid,W);zid.prototype.getCommentId=function(){return vi(this,2)};zid.prototype.setCommentId=function(a){return Gm(this,2,a)};var Aid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aid,W);Aid.prototype.setTaskResourceTypesList=function(a){return Ww(this,1,a)};Aid.prototype.setMaxTaskAgeDays=function(a){return an(this,2,a)};Aid.prototype.setIssueFilters=function(a){return Ni(this,jQ,3,a)};var Bid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bid,W);Bid.prototype.setFilterSignalsList=function(a){return Ww(this,1,a)};var Cid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cid,W);Cid.prototype.setFilterSignalsList=function(a){return Ww(this,1,a)};var Did=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Did,W);Did.prototype.setTaskResourceTypesList=function(a){return Ww(this,1,a)};Did.prototype.setMaxTaskAgeDays=function(a){return an(this,2,a)};Did.prototype.setIssueFilters=function(a){return Ni(this,jQ,4,a)};var Eid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eid,W);Eid.prototype.getId=function(){return vi(this,1)};Eid.prototype.setId=function(a){return Gm(this,1,a)};Eid.prototype.getTitle=function(){return vi(this,2)};Eid.prototype.setTitle=function(a){return Gm(this,2,a)};var Fid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fid,W);var mQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,mQ.messageId)};Y(mQ,W);mQ.prototype.getResponse=function(){return X(this,Fid,1,jb)};mQ.prototype.getMutableResponse=function(){return Ji(this,Fid,1,void 0,jb)};mQ.prototype.hasResponse=function(){return yi(this,Fid,1,jb)};mQ.messageId="b.GetGoogleTasksTaskListsResponse";var nQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nQ,W);nQ.prototype.getCommentId=function(){return vi(this,1)};nQ.prototype.setCommentId=function(a){return Gm(this,1,a)};nQ.prototype.getContent=function(){return vi(this,3)};nQ.prototype.setContent=function(a){return Gm(this,3,a)};var oQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,oQ.messageId)};Y(oQ,W);oQ.prototype.getResponse=function(){return X(this,nQ,1,jb)};oQ.prototype.getMutableResponse=function(){return Ji(this,nQ,1,void 0,jb)};oQ.prototype.hasResponse=function(){return yi(this,nQ,1,jb)};oQ.messageId="b.LatestDriveMentionResponse";var pQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pQ,W);pQ.prototype.getCreatedTimestamp=function(){return pn(this,1)};pQ.prototype.setOwnedByMe=function(a){return $o(this,3,a)};pQ.prototype.getMimeType=function(){return vi(this,15)};pQ.prototype.setMimeType=function(a){return Gm(this,15,a)};var Gid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gid,W);h=Gid.prototype;h.setResourceId=function(a){Gm(this,17,a)};h.getTitle=function(){return vi(this,2)};h.setTitle=function(a){return Gm(this,2,a)};h.getLastModifiedTimestamp=function(){return pn(this,3)};h.getIconName=function(){return vi(this,10)};h.getExternalLink=function(){return vi(this,16)};h.getIsDeleted=function(){return Gi(this,19)};h.setIsDeleted=function(a){$o(this,19,a)};
h.getDriveResource=function(){return $l(this,pQ,5,Hid)};h.hasDriveResource=function(){return Ri(this,pQ,5,Hid)};var Hid=[5,6,7,8,9,18,22,23,24];var Iid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iid,W);Iid.prototype.getName=function(){return vi(this,1)};Iid.prototype.setName=function(a){return Gm(this,1,a)};Iid.prototype.getContent=function(){return vi(this,2)};Iid.prototype.setContent=function(a){return Gm(this,2,a)};var Jid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jid,W);h=Jid.prototype;h.getTaskId=function(){return vi(this,1)};h.setTaskStatus=function(a){return Im(this,3,a)};h.getResource=function(){return X(this,Gid,6)};h.setResource=function(a){return Ni(this,Gid,6,a)};h.getNote=function(){return X(this,Iid,22)};h.getCreatedTimestamp=function(){return pn(this,7)};var Kid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kid,W);Kid.prototype.getTask=function(){return X(this,Jid,1)};Kid.prototype.hasTask=function(){return yi(this,Jid,1)};var qQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,qQ.messageId)};Y(qQ,W);qQ.prototype.getResponse=function(){return X(this,Kid,1,jb)};qQ.prototype.getMutableResponse=function(){return Ji(this,Kid,1,void 0,jb)};qQ.prototype.hasResponse=function(){return yi(this,Kid,1,jb)};qQ.messageId="b.TasksCreateGoogleTasksResponse";var Lid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lid,W);var p4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p4a,W);h=p4a.prototype;h.getPriority=function(){return xi(this,1)};h.setPriority=function(a){return Im(this,1,a)};h.getAccessLevel=function(){return xi(this,2)};h.setAccessLevel=function(a){return Im(this,2,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return o5a(this,3,Di(a))};h.getHotlistIdsList_asString=function(){return Sm(this,3)};h.setHotlistIdsList=function(a){return ur(this,3,a)};
h.addHotlistIds=function(a,b){return Tw(this,3,a,b)};h.addAllHotlistIds=function(a){Uw(this,3,a)};h.removeHotlistIds=function(a){return Fyc(this,3,a)};var m4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(m4a,W);m4a.prototype.getCategory=function(){return xi(this,1)};m4a.prototype.setCategory=function(a){return Im(this,1,a)};var j4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(j4a,W);h=j4a.prototype;h.getTaskId=function(){return vi(this,1)};h.getTitle=function(){return vi(this,3)};h.setTitle=function(a){return Gm(this,3,a)};h.getCreatedTimestamp=function(){return X(this,Ti,4)};h.getLastModifiedTimestamp=function(){return X(this,Ti,5)};h.getExternalLink=function(){return vi(this,6)};h.getDriveResource=function(){return $l(this,Lid,8,q4a)};
h.hasDriveResource=function(){return Ri(this,Lid,8,q4a)};var q4a=[8,9,10,11,12,16,17];var Mid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mid,W);var Nid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Nid.messageId)};Y(Nid,W);Nid.prototype.getResponsesList=function(){return Ci(this,Mid,1,Di(),jb)};Nid.messageId="b.TasksMyTasksResponse";var Oid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oid,W);Oid.prototype.getCommentNumber=function(){return Mw(this,1)};Oid.prototype.setCommentNumber=function(a){return zc(this,1,Eb,void 0,a,Fb,void 0,1)};var C4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(C4a,W);var A4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(A4a,W);h=A4a.prototype;h.getDataCase=function(){return xo(this,D4a)};h.clearData=function(){return Bw(this,D4a)};h.getSignal=function(){return xi(this,1)};h.setSignal=function(a){return Im(this,1,a)};h.getCommentNumbers=function(){return $l(this,Oid,2,D4a)};var D4a=[2,3];var x4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x4a,W);x4a.prototype.getComeBackTimestamp=function(){return X(this,Ti,1)};var z4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(z4a,W);z4a.prototype.getComeBackTimestamp=function(){return X(this,Ti,2)};var w4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w4a,W);w4a.prototype.hasFutureAvailability=function(){return Ri(this,z4a,1,y4a)};var y4a=[1,2];var nr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nr,W);nr.prototype.getDataCase=function(){return xo(this,Pid)};nr.prototype.clearData=function(){return Bw(this,Pid)};nr.prototype.getSignal=function(){return xi(this,1)};nr.prototype.setSignal=function(a){return Im(this,1,a)};var Pid=[2,3];var s4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(s4a,W);h=s4a.prototype;h.getDataCase=function(){return xo(this,u4a)};h.clearData=function(){return Bw(this,u4a)};h.getSignal=function(){return xi(this,1)};h.setSignal=function(a){return Im(this,1,a)};h.getCommentId=function(){return zo(this,2,u4a)};h.setCommentId=function(a){return Co(this,2,u4a,a)};var u4a=[2];var E4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E4a,W);E4a.prototype.getSignal=function(){return xi(this,1)};E4a.prototype.setSignal=function(a){return Im(this,1,a)};var G4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G4a,W);G4a.prototype.getSignal=function(){return xi(this,1)};G4a.prototype.setSignal=function(a){return Im(this,1,a)};var H4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H4a,W);H4a.prototype.getSignal=function(){return xi(this,1)};H4a.prototype.setSignal=function(a){return Im(this,1,a)};var h4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(h4a,W);h=h4a.prototype;h.getTimestamp=function(){return X(this,Ti,1)};h.setTimestamp=function(a){return Ni(this,Ti,1,a)};h.hasTimestamp=function(){return yi(this,Ti,1)};h.getUrl=function(){return X(this,hm,2)};h.setUrl=function(a){return Ni(this,hm,2,a)};h.hasUrl=function(){return yi(this,hm,2)};var kr=[3,4,5,6,7,9,10];var d4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d4a,W);d4a.prototype.getTask=function(){return X(this,j4a,1)};d4a.prototype.hasTask=function(){return yi(this,j4a,1)};var Qid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qid,W);var Rid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Rid.messageId)};Y(Rid,W);Rid.prototype.getResponsesList=function(){return Ci(this,Qid,1,Di(),jb)};Rid.messageId="b.TasksNeedsAttentionResponse";var Sid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sid,W);Sid.prototype.getRationale=function(){return vi(this,2)};Sid.prototype.setRationale=function(a){pj(this,2,a)};var rQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rQ,W);rQ.prototype.getValue=function(){return Cm(this,1)};rQ.prototype.setValue=function(a){return Fn(this,1,a)};rQ.prototype.hasValue=function(){return kn(this,1)};var sQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sQ,W);sQ.prototype.getUrl=function(){return X(this,hm,2)};sQ.prototype.setUrl=function(a){return Ni(this,hm,2,a)};sQ.prototype.hasUrl=function(){return yi(this,hm,2)};var $3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($3a,W);h=$3a.prototype;h.getId=function(){return vi(this,1)};h.setId=function(a){return pj(this,1,a)};h.getTitle=function(){return vi(this,2)};h.setTitle=function(a){return pj(this,2,a)};h.getUrl=function(){return X(this,hm,3)};h.setUrl=function(a){return Ni(this,hm,3,a)};h.hasUrl=function(){return yi(this,hm,3)};h.getDescription=function(){return vi(this,4)};h.setDescription=function(a){return pj(this,4,a)};
h.hasDescription=function(){return im(this,4)};h.getPriority=function(){return X(this,lid,5)};h.setPriority=function(a){return Ni(this,lid,5,a)};h.getScore=function(){return X(this,rQ,6)};h.setScore=function(a){return Ni(this,rQ,6,a)};h.getConfidence=function(){return X(this,Sid,10)};h.setConfidence=function(a){return Ni(this,Sid,10,a)};var Tid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tid,W);h=Tid.prototype;h.getId=function(){return vi(this,1)};h.setId=function(a){return pj(this,1,a)};h.getTitle=function(){return vi(this,2)};h.setTitle=function(a){return pj(this,2,a)};h.getUrl=function(){return X(this,hm,3)};h.setUrl=function(a){return Ni(this,hm,3,a)};h.hasUrl=function(){return yi(this,hm,3)};h.getDescription=function(){return vi(this,4)};h.setDescription=function(a){return pj(this,4,a)};
h.hasDescription=function(){return im(this,4)};h.getPriority=function(){return X(this,lid,5)};h.setPriority=function(a){return Ni(this,lid,5,a)};h.getScore=function(){return X(this,rQ,6)};h.setScore=function(a){return Ni(this,rQ,6,a)};var b4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b4a,W);h=b4a.prototype;h.getUri=function(){return X(this,FM,1)};h.setUri=function(a){return Ni(this,FM,1,a)};h.getUrl=function(){return X(this,hm,2)};h.setUrl=function(a){return Ni(this,hm,2,a)};h.hasUrl=function(){return yi(this,hm,2)};h.getLabel=function(){return vi(this,3)};h.setLabel=function(a){return pj(this,3,a)};h.hasLabel=function(){return im(this,3)};var Y3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y3a,W);h=Y3a.prototype;h.getUri=function(){return X(this,FM,2)};h.setUri=function(a){return Ni(this,FM,2,a)};h.getObjective=function(){return X(this,Tid,1)};h.setObjective=function(a){return Ni(this,Tid,1,a)};h.getTeam=function(){return X(this,sQ,3)};h.setTeam=function(a){Ni(this,sQ,3,a)};h.hasTeam=function(){return yi(this,sQ,3)};var Uid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uid,W);var tQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tQ.messageId)};Y(tQ,W);tQ.prototype.getResponse=function(){return X(this,Uid,1,jb)};tQ.prototype.getMutableResponse=function(){return Ji(this,Uid,1,void 0,jb)};tQ.prototype.hasResponse=function(){return yi(this,Uid,1,jb)};tQ.messageId="b.TeamObjectivesResponse";var Z4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Z4a,W);var Vid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vid,W);Vid.prototype.getIssue=function(){return X(this,Jp,1)};Vid.prototype.setIssue=function(a){return Ni(this,Jp,1,a)};var Wid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wid,W);Wid.prototype.getIssue=function(){return $l(this,Vid,1,Xid)};Wid.prototype.setIssue=function(a){return Yo(this,1,Xid,a)};var Xid=[1];var or=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(or,W);or.prototype.getId=function(){return vi(this,1)};or.prototype.setId=function(a){return Gm(this,1,a)};or.prototype.getPayloadOrUndefined=function(){return yyc(this,Wid,9)};var Yid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yid,W);Yid.prototype.getWorkspaceId=function(){return pn(this,1)};Yid.prototype.getWorkspaceId_asString=function(){return un(this,1)};Yid.prototype.getType=function(){return xi(this,2)};Yid.prototype.setType=function(a){return Im(this,2,a)};var Zid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zid,W);Zid.prototype.getTypedWorkspaceIdsList=function(){return Ci(this,Yid,1,Di())};Zid.prototype.getIterationIdsList_asString=function(){return Sm(this,2)};var $id=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($id,W);$id.prototype.getEmail=function(){return vi(this,1)};$id.prototype.setEmail=function(a){return Gm(this,1,a)};var qr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qr,W);qr.prototype.getId=function(){return vi(this,1)};qr.prototype.setId=function(a){return Gm(this,1,a)};qr.prototype.getVersion=function(){return vi(this,2)};qr.prototype.setVersion=function(a){return Gm(this,2,a)};var ajd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ajd,W);h=ajd.prototype;h.getWorkspaceId=function(){return pn(this,1)};h.getWorkspaceId_asString=function(){return un(this,1)};h.getName=function(){return vi(this,2)};h.setName=function(a){return Gm(this,2,a)};h.getTimeZone=function(){return X(this,qr,8)};h.setTimeZone=function(a){return Ni(this,qr,8,a)};h.hasTimeZone=function(){return yi(this,qr,8)};h.getMembersList=function(){return Ci(this,$id,9,Di())};
h.setMembersList=function(a){return Oi(this,9,a)};h.getUpdateTime=function(){return X(this,Ti,12)};h.setUpdateTime=function(a){Ni(this,Ti,12,a)};h.hasUpdateTime=function(){return yi(this,Ti,12)};h.getBookmarkGroupId_asString=function(){return un(this,14)};h.setBookmarkGroupId=function(a){return Ko(this,14,a)};h.getTeamId=function(){return vi(this,20)};h.setTeamId=function(a){return Gm(this,20,a)};var bjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bjd,W);bjd.prototype.getWorkspacesMap=function(){return wc(this,1,ajd,Ub)};bjd.prototype.getIterationsMap=function(){return wc(this,2,mid,Ub)};var Y4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Y4a,W);h=Y4a.prototype;h.getContextsMap=function(){return wc(this,1,Zid,Vb)};h.getData=function(){return X(this,bjd,2)};h.setData=function(a){return Ni(this,bjd,2,a)};h.clearData=function(){return Aw(this,2)};h.hasData=function(){return yi(this,bjd,2)};h.getFilter=function(){return X(this,kQ,3)};h.setFilter=function(a){return Ni(this,kQ,3,a)};var cjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cjd,W);var uQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,uQ.messageId)};Y(uQ,W);uQ.prototype.getResponse=function(){return X(this,cjd,1,jb)};uQ.prototype.getMutableResponse=function(){return Ji(this,cjd,1,void 0,jb)};uQ.prototype.hasResponse=function(){return yi(this,cjd,1,jb)};uQ.messageId="b.WorkItemsResponse";var djd=[1,2],vQ=function(){this.executor=p(ZN);this.activeSession=p(qu)},ejd=function(a,b,c){c=c===void 0?!0:c;b=(new tid).setTaskIdsList(b);c=$o(b,2,c,jb);return a.executor.post({url:"action/tasks/dismiss",body:c,responseConstructor:null})},fjd=function(a,b,c){c=c===void 0?!0:c;b=(new uid).setTaskIdsList(b);c=$o(b,2,c,jb);return a.executor.post({url:"action/tasks/manual_signal",body:c,responseConstructor:null})},gjd=function(a,b,c){b=(new vid).setTaskIdsList(b);if(c!==void 0){var d=b.setTaskStatus(2);
c=cn(c);Ni(d,Ti,3,c,jb)}else b.setTaskStatus(0);return a.executor.post({url:"action/tasks/snooze",body:b,responseConstructor:null})},hjd=function(a,b,c,d,e){b=(new Did).setTaskResourceTypesList(b.map(I4a));c=Im(b,3,J4a(d)).setMaxTaskAgeDays(c);b=new jQ;var f;d=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;b.setTrackerId(d);c.setIssueFilters(b);b.setFilterSignalsList(e.buganizerSignals.map(M4a));var g=(new xid).setFilterSignalsList(e.driveSignals.map(O4a)),k=(new wid).setFilterSignalsList(e.changelistSignals.map(Q4a));
d=(new yid).setFilterSignalsList(e.gerritSignals.map(S4a));f=(new Bid).setFilterSignalsList(e.googleTasksSignals.map(T4a));b=c.setIssueFilters(b);b=Ni(b,xid,5,g);b=Ni(b,wid,6,k);d=Ni(b,yid,7,d);Ni(d,Bid,8,f);e=(new Cid).setFilterSignalsList(e.irmSignals.map(U4a));Ni(c,Cid,9,e);return a.executor.post({url:"action/tasks/needs_attention",responseConstructor:Rid,body:c}).pipe(A(f4a))},ijd=function(a,b,c,d){var e=new jQ;d=Im(e,1,K4a(d));var f;e=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;
d.setTrackerId(e);b=(new Aid).setTaskResourceTypesList(b.map(I4a)).setMaxTaskAgeDays(c).setIssueFilters(d);return a.executor.post({url:"action/tasks/my_tasks",responseConstructor:Nid,body:b}).pipe(A(k4a))},jjd=function(a,b){if(!b.length)return ee([]);var c=new nid;b=Hm(c,1,b);c=(new kQ).setContextsList(djd);b=Ni(b,kQ,2,c);return a.executor.post({url:"action/work_items/batch_get_work_items",responseConstructor:uQ,body:b}).pipe(A($4a))},kjd=function(a,b){if(!b.length)return ee([]);b=b.map(function(c){return(new FM).setResourcePath(c)});
b=pid(b);return a.executor.post({url:"action/okrs/batch_get_okrs",body:b,responseConstructor:tQ}).pipe(A(c4a))};vQ.prototype.saveGTask=function(a){a=rid(sid(qid((new lQ).setTitle(a.title),a.details),a.taskListId),a.dueDateMs);return this.executor.post({url:"action/tasks/create_gtask",body:a,responseConstructor:qQ}).pipe(A(function(b){var c,d;b=(c=b.getResponse())==null?void 0:(d=c.getTask())==null?void 0:d.getTaskId();if(!b)throw Error("ge");return b}))};
var ljd=function(a){return a.executor.get({url:"action/tasks/get_gtask_task_lists",responseConstructor:mQ}).pipe(A(function(b){var c,d;return((d=(c=b.getResponse())==null?void 0:Ci(c,Eid,1,Di()))!=null?d:[]).map(function(e){return{id:e.getId(),title:e.getTitle()}})}))};vQ.\u0275fac=function(a){return new (a||vQ)};vQ.\u0275prov=Fc({token:vQ,factory:vQ.\u0275fac,providedIn:"root"});var mjd={sources:["CHANGELIST","DRIVE","ISSUE"],maxTaskAgeDays:30,issueFilter:"ISSUE_TYPE_GROUPS_UNSPECIFIED"},wQ=function(){oO.call(this);this.api=p(vQ);this.recordType="myTasks";this.idForRecord=function(a){return a.taskId};this.defaultQuery=mjd};Y(wQ,oO);wQ.prototype.fetchAll=function(a){return a.sources.length===0?ee({results:[]}):ijd(this.api,a.sources,a.maxTaskAgeDays,a.issueFilter).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};wQ.\u0275fac=function(a){return new (a||wQ)};
wQ.\u0275prov=Fc({token:wQ,factory:wQ.\u0275fac,providedIn:"root"});var ivb=["assigned-to-me","recent-stuff-i-follow"],njd=["BUGANIZER","CRITIQUE","DRIVE"],ojd=["BUGANIZER"],pjd=["NON_WTDM","WTDM","CRITIQUE","DRIVE"],qjd={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"}},rjd={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"]},sjd={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:[]},tjd;tjd={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 ujd={sources:["CHANGELIST","DRIVE","ISSUE"],signalFilter:0,maxTaskAgeDays:30,filterSignals:rjd},xQ=function(){oO.call(this);this.api=p(vQ);this.recordType="needsAttentionTask";this.idForRecord=function(a){return a.task.taskId};this.defaultQuery=ujd};Y(xQ,oO);xQ.prototype.fetchAll=function(a){return a.sources.length===0?ee({results:[]}):hjd(this.api,a.sources,a.maxTaskAgeDays,a.signalFilter,a.filterSignals).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};
xQ.\u0275fac=function(a){return new (a||xQ)};xQ.\u0275prov=Fc({token:xQ,factory:xQ.\u0275fac,providedIn:"root"});var yQ=function(){pO.call(this);this.userAccess=p(yP);this.recordType="permissions";this.idForRecord=function(a){return a.id}};Y(yQ,pO);yQ.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(A(function(b){return m(b).next().value}))};yQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return pe(function(){return agd(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};yQ.\u0275fac=function(a){return new (a||yQ)};
yQ.\u0275prov=Fc({token:yQ,factory:yQ.\u0275fac,providedIn:"root"});var a5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a5a,W);var vjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vjd.messageId)};Y(vjd,W);vjd.messageId="b.PrincipalTypeInfoBatchResponse";var AQ=function(){this.principalResources=p(zQ);this.bulkApiAdapter=p(wP);this.principalTypeGetter=this.bulkApiAdapter.adapt(wjd(this,!1));this.principalTypeWithDetailGetter=this.bulkApiAdapter.adapt(wjd(this,!0))},wjd=function(a,b){return function(c){return xjd(a.principalResources,c,b).then(function(d){return e5a(c,d)})}};AQ.prototype.get=function(a){return BQ(this,a,!1)};
var BQ=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return d!=null?d:f5a()})};AQ.\u0275fac=function(a){return new (a||AQ)};AQ.\u0275prov=Fc({token:AQ,factory:AQ.\u0275fac,providedIn:"root"});
var zQ=function(){this.executor=p(dO)},xjd=function(a,b,c){if(b.length===0)return Promise.resolve({});var d={};d.email=vq(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:vjd}).then(d5a).then(function(e){for(var f={},g=m(b),k=g.next();!k.done;k=g.next()){k=k.value;var l=void 0;f[k]=(l=e[k])!=null?l:f5a()}return f})};zQ.\u0275fac=function(a){return new (a||zQ)};zQ.\u0275prov=Fc({token:zQ,factory:zQ.\u0275fac,providedIn:"root"});var CQ=function(){pO.call(this,{freshUntil:36E5,ancientAfter:864E5});this.principalTypesApi=p(AQ);this.recordType="principalTypes";this.idForRecord=function(a){return a.email}};Y(CQ,pO);CQ.prototype.fetchOne=function(a){var b=this;return pe(function(){return b.principalTypesApi.get(a)}).pipe(A(function(c){return Object.assign({},{email:a},c)}),jf(function(){return ee(void 0)}))};CQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Qm)}))};
CQ.\u0275fac=function(a){return new (a||CQ)};CQ.\u0275prov=Fc({token:CQ,factory:CQ.\u0275fac,providedIn:"root"});var DQ=function(){pO.call(this);this.api=p(GP);this.recordType="recentEventsForIssues";this.idForRecord=function(a){return a.id.query+"-"+a.id.pageSize}};Y(DQ,pO);DQ.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:BUa(a==null?void 0:a.events,b==null?void 0:b.events)};
DQ.prototype.fetchOne=function(a){var b=m(a.split("___")),c=b.next().value;b=b.next().value;Mm(b)||console.error("RecentEventsForIssuesFridge failed to parse maximumSize from query, using default. input: '"+a+"'");var d,e=(d=Mm(b))!=null?d:50;return Fgd(this.api,{query:c,maximumSize:e,minimumSignificance:"MAJOR"}).pipe(A(function(f){return{id:{query:c,pageSize:e},events:f}}))};DQ.\u0275fac=function(a){return new (a||DQ)};DQ.\u0275prov=Fc({token:DQ,factory:DQ.\u0275fac,providedIn:"root"});var yjd=["ASSIGNMENT","RESPONSE","CLOSURE"],zjd=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),Ajd=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),hZb=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var tr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tr,W);h=tr.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Ep(this,1)};h.getId_asString=function(){return un(this,1)};h.setId=function(a){return wn(this,1,a)};h.getFrequency=function(){return xi(this,3)};h.setFrequency=function(a){return Im(this,3,a)};h.getOrdinal=function(){return Cm(this,4)};h.setOrdinal=function(a){return an(this,4,a)};
h.getTimeZone=function(){return X(this,qr,5)};h.setTimeZone=function(a){return Ni(this,qr,5,a)};h.hasTimeZone=function(){return yi(this,qr,5)};h.getTimeOfDay=function(){return X(this,rr,6)};h.setTimeOfDay=function(a){return Ni(this,rr,6,a)};h.setDaysRemaining=function(a){return sp(this,7,a)};h.getTypesList=function(){return xn(this,8,Di())};h.setTypesList=function(a){return Ww(this,8,a)};var Bjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bjd,W);h=Bjd.prototype;h.getTeamId=function(){return pn(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Ep(this,1)};h.getTeamId_asString=function(){return un(this,1)};h.setTeamId=function(a){return Ko(this,1,a)};h.getEffectiveSloEditPolicy=function(){return xi(this,3)};var vr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,vr.messageId)};Y(vr,W);vr.prototype.getIt=function(){return X(this,wr,10,jb)};vr.prototype.setIt=function(a){return Ni(this,wr,10,a,jb)};vr.messageId="b.SloState";var Cjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cjd,W);Cjd.prototype.getQuery=function(){return vi(this,1)};Cjd.prototype.setQuery=function(a){return Gm(this,1,a)};Cjd.prototype.clearQuery=function(){Aw(this,1)};var sr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sr,W);sr.prototype.getComponentId=function(){return pn(this,1)};sr.prototype.getComponentId_asString=function(){return un(this,1)};sr.prototype.setComponentId=function(a){return Ko(this,1,a)};sr.prototype.getEffectiveSloEditPolicy=function(){return xi(this,2)};var Djd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Djd.messageId)};Y(Djd,W);Djd.messageId="b.GetComponentSloEditPolicyResponse";var Ejd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ejd.messageId)};Y(Ejd,W);Ejd.prototype.getTeamSloEditPolicy=function(){return X(this,Bjd,1,jb)};Ejd.messageId="b.GetTeamSloEditPolicyResponse";var Fjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fjd,W);var Gjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Gjd.messageId)};Y(Gjd,W);Gjd.prototype.getIt=function(){return X(this,Fjd,1,jb)};Gjd.prototype.setIt=function(a){return Ni(this,Fjd,1,a,jb)};Gjd.messageId="b.ListSlosResponse";var Hjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Hjd.messageId)};Y(Hjd,W);Hjd.prototype.getTeamSloEditPolicy=function(){return X(this,Bjd,1,jb)};Hjd.messageId="b.UpdateTeamSloEditPolicyResponse";var EQ=function(){this.activeSession=p(qu);this.executor=p(ZN)};h=EQ.prototype;h.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:vr}).pipe(A(r5a))};h.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};h.search=function(a){a=(new Cjd).setQuery(a);return this.executor.post({url:"action/listSlos",body:a,responseConstructor:Gjd}).pipe(A(function(b){b=b.getIt();b=Ci(b,wr,1,Di());return(b!=null?b:[]).map(pXa)}))};
h.create=function(a){a=s5a(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:vr}).pipe(A(r5a))};h.update=function(a){var b=a.sloId;a=s5a(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:vr}).pipe(A(r5a))};EQ.\u0275fac=function(a){return new (a||EQ)};EQ.\u0275prov=Fc({token:EQ,factory:EQ.\u0275fac,providedIn:"root"});
var FQ=function(){this.observableSlosService=p(EQ);var a=p(WO),b;this.slosCache=(b=a.get("slos-second-level-cache"))!=null?b:a.create("slos-second-level-cache",{capacity:25})};h=FQ.prototype;h.get=function(a){var b=this.slosCache.get(a);return b!==void 0?b:this.slosCache.put(String(a),ie(this.observableSlosService.get(a)))};h.getOwnedSlos=function(){return ie(this.observableSlosService.getOwnedSlos())};h.search=function(a){return ie(this.observableSlosService.search(a))};h.create=function(a){return ie(this.observableSlosService.create(a))};
h.update=function(a){return ie(this.observableSlosService.update(a))};FQ.\u0275fac=function(a){return new (a||FQ)};FQ.\u0275prov=Fc({token:FQ,factory:FQ.\u0275fac,providedIn:"root"});var GQ=function(){pO.call(this);this.observableSlosService=p(EQ);this.recordType="slo";this.idForRecord=function(a){return a.sloId}};Y(GQ,pO);h=GQ.prototype;h.fetchOne=function(a){return this.observableSlosService.get(a)};h.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};h.search=function(a){return this.observableSlosService.search(a)};h.create=function(a){return this.observableSlosService.create(a)};h.update=function(a){return this.observableSlosService.update(a)};
GQ.\u0275fac=function(a){return new (a||GQ)};GQ.\u0275prov=Fc({token:GQ,factory:GQ.\u0275fac,providedIn:"root"});var Ijd=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new lfd(this.cacheSize,function(c,d){d.subscription.unsubscribe()})};Ijd.prototype.get=function(a){var b=this;return new Vd(function(c){var d=b.lruCache.get(a);d||(d=Jjd(b,a));return d.obs$.subscribe(c)})};
var Jjd=function(a,b){var c=a.rawGet(b).pipe(xf({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 Kjd(c,d);a.lruCache.set(b,c);return c},Kjd=function(a,b){this.obs$=a;this.subscription=b};var HQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,HQ.messageId)};Y(HQ,W);HQ.prototype.getIt=function(){return X(this,Qed,14,jb)};HQ.prototype.setIt=function(a){return Ni(this,Qed,14,a,jb)};HQ.messageId="b.TeamState";var Ljd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ljd,W);h=Ljd.prototype;h.getPathIdsList_asString=function(){return Sm(this,1)};h.setPathIdsList=function(a){return xc(this,1,a,Hb)};h.getPathNamesList=function(a){return Dm(this,2,Di(a))};h.setPathNamesList=function(a){return Hm(this,2,a)};h.getId=function(){return pn(this,3)};h.getId_asLegacyNumberOrString=function(){return Ayc(this,3)};h.getId_asString=function(){return nn(this,3)};
h.setId=function(a){return Kn(this,3,a)};h.getName=function(){return vi(this,4)};h.setName=function(a){return pj(this,4,a)};h.hasName=function(){return im(this,4)};h.getNameOrUndefined=function(){return Lw(this,4)};h.getDescription=function(){return vi(this,5)};h.setDescription=function(a){return pj(this,5,a)};h.hasDescription=function(){return im(this,5)};var Mjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mjd,W);h=Mjd.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Ayc(this,1)};h.getId_asString=function(){return nn(this,1)};h.setId=function(a){return Kn(this,1,a)};h.getName=function(){return vi(this,2)};h.setName=function(a){return pj(this,2,a)};h.hasName=function(){return im(this,2)};h.getNameOrUndefined=function(){return Lw(this,2)};
h.getDescription=function(){return vi(this,3)};h.setDescription=function(a){return pj(this,3,a)};h.hasDescription=function(){return im(this,3)};var Njd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Njd,W);Njd.prototype.setTeamIdsList=function(a){return ur(this,1,a)};Njd.prototype.setView=function(a){return Im(this,2,a)};var Ojd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ojd.messageId)};Y(Ojd,W);Ojd.prototype.setTeamIdsList=function(a){return xc(this,1,a,Hb,jb)};Ojd.messageId="b.BatchChildTeamsRequest";var Pjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Pjd,W);var Qjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Qjd.messageId)};Y(Qjd,W);Qjd.messageId="b.BatchChildTeamsResponse";var Rjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rjd,W);var Sjd=function(a){return Ci(a,Qed,1,Di())};var IQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,IQ.messageId)};Y(IQ,W);IQ.prototype.getIt=function(){return X(this,Rjd,2,jb)};IQ.prototype.setIt=function(a){return Ni(this,Rjd,2,a,jb)};IQ.messageId="b.BatchGetTeamsResponse";var Tjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Tjd.messageId)};Y(Tjd,W);Tjd.prototype.getTeamSuggestionsList=function(){return Ci(this,Ljd,1,Di(),jb)};Tjd.prototype.setTeamSuggestionsList=function(a){Oi(this,1,a,jb)};Tjd.messageId="b.TeamSuggestionResult";var Ujd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ujd.messageId)};Y(Ujd,W);Ujd.prototype.getIt=function(){return X(this,jq,3,jb)};Ujd.prototype.setIt=function(a){return Ni(this,jq,3,a,jb)};Ujd.messageId="b.UpdateTeamSloRequest";var KQ=function(){var a=this;this.executor=p(ZN);this.teamsBatchApiConfig=p(JQ);this.batchApiAdapter=p(HO);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new Ijd(function(b){return a.batchAdaptedGet(b)},100)};KQ.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:HQ}).pipe(A(u5a))};KQ.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var LQ=function(a,b){return a.getTeam(b).pipe(A(function(c){return c!=null?c:w5a(b)}),jf(function(){return ee(w5a(b))}))},Vjd=function(a,b){b=b.filter(function(c){return c!=="0"}).map(function(c){return a.getTeam(c)});return qe(b).pipe(A(function(c){var d=new Map;c=m(c);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&d.set(e.teamId,e);return d}))};
KQ.prototype.getChildTeams=function(a){a=(new Ojd).setTeamIdsList(a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:Qjd}).pipe(A(function(b){b=[].concat(q(wc(b,1,Pjd,Vb,jb).entries()));return new Map(b.map(function(c){var d=m(c);c=d.next().value;d=d.next().value;d=Ci(d,Mjd,1,Di());return[c,d.map(t5a)]}))}))};
var MQ=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:Tjd}).pipe(A(function(c){return c.getTeamSuggestionsList().map(v5a)}))},Wjd=function(a,b){return a.executor.get({url:"action/teams/"+b+"/experiments",responseConstructor:sP}).pipe(A($_a))},Xjd=function(a,b){a=a.executor;var c=a.post,d="action/teams/"+b.id+"/experiments",e=b.triage.map(m0a);var f=b.playbooks.map(a0a);b=(new sP).setId(b.id);b=Op(b,2,yq,e,jb);f=Op(b,3,zq,f,jb);return c.call(a,
{url:d,body:f,responseConstructor:sP}).pipe(A($_a))},Yjd=function(a,b,c){return b==="0"?ee(!1):a.memoizingTeamStateMap.get(b).pipe(A(function(d){return(d==null?void 0:d.members.find(function(e){return e&&xm(e.user)===c}))!==void 0}))},Zjd=function(a,b){b=(new Njd).setTeamIdsList([].concat(q(b))).setView(2);return a.executor.post({url:"action/batchGetTeams",responseConstructor:IQ,body:b}).pipe(A(function(c){return Sjd(c.getIt())}),A(function(c){return new Map(c.map(function(d){var e,f;return[String(d.getId()),
(f=Zm((e=X(d,iq,7))==null?void 0:pn(e,3)))!=null?f:0]}))}))};
KQ.prototype.updateTeam=function(a){var b=new HQ,c=new Qed,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(Mm).filter(Qm));d=Hm(f,5,a.collapsedPathNames).setMembersList((e=a.members)==null?void 0:e.map(NZa));$o(d,9,a.deleted);e=new iq;d=a.extra;e.setVersion(a.version).setSlo(OZa(a.slo)).setInheritEscalationOwner(!0);(d==null?0:d.escalationOwner)&&e.setEscalationOwner(Jm(d.escalationOwner));
if(d==null?0:d.defaultEscalationOwner)f=Jm(d.defaultEscalationOwner),Ni(e,Fm,7,f);if(d==null?0:d.escalationOwnerOverride)d.escalationOwnerOverride.emailAddress===""?(d=new mGc,Yo(e,10,KZa,d)):(d=Jm(d.escalationOwnerOverride),Yo(e,9,KZa,d));Ni(c,iq,7,e);b.setIt(c);return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:HQ}).pipe(A(u5a))};KQ.\u0275fac=function(a){return new (a||KQ)};KQ.\u0275prov=Fc({token:KQ,factory:KQ.\u0275fac,providedIn:"root"});
var JQ=function(){this.executor=p(ZN)};JQ.prototype.call=function(a){a=(new Njd).setTeamIdsList([].concat(q(a))).setView(1);return this.executor.post({url:"action/batchGetTeams",responseConstructor:IQ,body:a}).pipe(A(function(b){return Sjd(b.getIt()).map(LZa)}),A(function(b){return fo(b,function(c){return c.teamId})}),jf(function(){return ee(new Map)}))};JQ.prototype.split=function(a,b){return b.get(a)};JQ.\u0275fac=function(a){return new (a||JQ)};JQ.\u0275prov=Fc({token:JQ,factory:JQ.\u0275fac,providedIn:"root"});var NQ=function(){oO.call(this);this.teamsApi=p(KQ);this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(a){var b;return(b=a.teamId)!=null?b:"NO_ID"}};Y(NQ,oO);NQ.prototype.fetchAll=function(a){if(a.myTeams)return MQ(this.teamsApi,"").pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}));throw Error("me");};NQ.\u0275fac=function(a){return new (a||NQ)};NQ.\u0275prov=Fc({token:NQ,factory:NQ.\u0275fac,providedIn:"root"});var OQ=function(){pO.call(this,{freshUntil:6E4});this.activeSession=p(qu);this.teamsApi=p(KQ);this.recordType="team-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=mm;this.isEnabled=(this.activeSession.getFlag("enableTeamScope")||this.activeSession.getFlag("enablePlaybook"))&&this.activeSession.isInternalSession()};Y(OQ,pO);
OQ.prototype.fetchOne=function(a){var b=this;return this.isEnabled?pe(function(){return Wjd(b.teamsApi,a).pipe(A(function(c){return c!=null?c:x5a(a)}),jf(function(){return ee(void 0)}))}):ee(void 0)};OQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.watch(c)})).pipe(A(function(c){return c.filter(Qm)}))};OQ.prototype.copy=function(a){return a&&pm(a)};
OQ.prototype.updateOrInsert=function(a,b){var c=this,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:if(!c.isEnabled)return k.return(x5a(a));c.manualUpdate(a,function(l){b(l!=null?l:x5a(a))});return z(k,ie(Wjd(c.teamsApi,a)),2);case 2:return d=k.yieldResult,f=(e=c.copy(d))!=null?e:x5a(a),b(f),z(k,ie(Xjd(c.teamsApi,f)),3);case 3:if(g=k.yieldResult){k.jumpTo(4);break}return z(k,c.poke(a),5);case 5:throw Error("ne");case 4:return c.announce(g),k.return(g)}})};
OQ.\u0275fac=function(a){return new (a||OQ)};OQ.\u0275prov=Fc({token:OQ,factory:OQ.\u0275fac,providedIn:"root"});var PQ=function(){pO.call(this);this.teamsApi=p(KQ);this.recordType="team";this.idForRecord=function(a){return a.teamId}};Y(PQ,pO);PQ.prototype.fetchOne=function(a){return a==="0"?ee(void 0):this.teamsApi.getTeam(a).pipe(jf(function(){return ee(void 0)}))};PQ.prototype.fetchSet=function(a){var b=this;return le(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(Qm)}))};PQ.\u0275fac=function(a){return new (a||PQ)};PQ.\u0275prov=Fc({token:PQ,factory:PQ.\u0275fac,providedIn:"root"});var $jd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($jd,W);$jd.prototype.setTrackerIdsList=function(a){return ur(this,1,a)};var akd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(akd,W);akd.prototype.getTrackersList=function(){return Ci(this,FN,1,Di())};var bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,bkd.messageId)};Y(bkd,W);bkd.prototype.getIt=function(){return X(this,akd,9,jb)};bkd.prototype.setIt=function(a){return Ni(this,akd,9,a,jb)};bkd.messageId="b.BatchGetTrackersResponse";var ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ckd,W);ckd.prototype.getTrackersList=function(){return Ci(this,FN,1,Di())};ckd.prototype.getNextPageToken=function(){return vi(this,2)};ckd.prototype.getTotalSize=function(){return Cm(this,3)};var dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dkd.messageId)};Y(dkd,W);dkd.prototype.getIt=function(){return X(this,ckd,4,jb)};dkd.prototype.setIt=function(a){return Ni(this,ckd,4,a,jb)};dkd.messageId="b.ListTrackersResponse";var QQ=function(){this.jspbExecutor=p(ZN)};QQ.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:Wn}).pipe(A($Ra))};QQ.prototype.batchGet=function(a){a=(new $jd).setTrackerIdsList(a);return this.jspbExecutor.post({url:"action/trackers/batch",responseConstructor:bkd,body:a}).pipe(A(aSa))};
QQ.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:dkd,options:{params:{query:a,pageSize:String(b),pageToken:c===void 0?"":c}}}).pipe(A(bSa))};QQ.\u0275fac=function(a){return new (a||QQ)};QQ.\u0275prov=Fc({token:QQ,factory:QQ.\u0275fac,providedIn:"root"});var RQ=function(){pO.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=p(QQ);this.activeSession=p(qu);this.recordType="tracker";this.idForRecord=function(a){return a.trackerId};ekd(this)};Y(RQ,pO);var ekd=function(a){var b=a.activeSession.getTracker();b&&a.announce(b)};RQ.prototype.fetchOne=function(a){return this.trackerApi.get(a)};RQ.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
RQ.prototype.fetchAll=function(a){var b,c;return this.trackerApi.query((b=a.filter)!=null?b:"",(c=a.pageSize)!=null?c:0,a.pageToken).pipe(A(function(d){var e;return{results:(e=d==null?void 0:d.trackers)!=null?e:[]}}))};RQ.\u0275fac=function(a){return new (a||RQ)};RQ.\u0275prov=Fc({token:RQ,factory:RQ.\u0275fac,providedIn:"root"});var SQ=function(){Z.apply(this,arguments);this.router=p(YE);this.activatedRoute=p(Mj);this.params={};this.routeParams$=new Nj({});this.issueId$=this.routeParams$.pipe(A(function(a){return a.issueId}),pf());this.assignParams.bind(this)};Y(SQ,Z);SQ.\u0275dir=Z.\u0275dir;
var fkd=function(a){a.activatedRoute.queryParams.pipe(Bf(a.destroyed$)).subscribe(function(b){a.assignParams(a.routeParams$.value,b)});a.router.events.pipe(we(function(b){return b instanceof Wxa}),A(function(b){return b}),Bf(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)})},gkd=function(a,b){return a.routeParams$.pipe(A(function(c){return c[b]}))};
SQ.prototype.assignParams=function(a,b){for(var c=m(Object.keys(this.params)),d=c.next();!d.done;d=c.next())delete this.params[y5a(d.value)];this.routeParams$.next(a);b=m(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=m(c.value),c=d.next().value,d=d.next().value,this.params[y5a(c)]=d;a=m(Object.entries(a));for(b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,this.params[y5a(b)]=c};SQ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(SQ)))(b||SQ)}}();
SQ.\u0275prov=Fc({token:SQ,factory:SQ.\u0275fac,providedIn:"root"});var TQ=function(){var a=p($P);Z.call(this);var b=this;this.paramsService=p(SQ);this.issueFullFridge=p(cQ);this.componentIdOverride$=new Nj(null);this.hotlistIdOverride$=new Nj(null);this.issueIdOverride$=new Nj(null);this.teamIdOverride$=new Nj(null);this.routeIssueId$=this.paramsService.issueId$.pipe(A(A5a),xf({refCount:!0,bufferSize:1}));this.routeComponentId$=gkd(this.paramsService,"componentId").pipe(pf());this.routeHotlistId$=gkd(this.paramsService,"hotlistId").pipe(pf());this.routeTeamId$=gkd(this.paramsService,
"teamId").pipe(pf());this.issueId$=le([this.issueIdOverride$,this.routeIssueId$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),A(A5a),pf(),xf({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=this.issueId$.pipe(Af(function(c){return c?b.issueFullFridge.watch(c):ee(void 0)}),A(function(c){return c==null?void 0:c.snapshot[0].componentId}));this.teamIdFromIssueId$=this.issueId$.pipe(Af(function(c){return c?b.issueFullFridge.watch(c):ee(void 0)}),A(function(c){var d;
return c==null?void 0:(d=c.aggregatedData)==null?void 0:d.teamId}));this.componentId$=le([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d||null}),pf(),xf({refCount:!0,bufferSize:1}));this.teamId$=le([this.teamIdOverride$,this.routeTeamId$,this.teamIdFromIssueId$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d}),A(A5a),
pf(),xf({refCount:!0,bufferSize:1}));this.hotlistId$=le([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c||d}),A(z5a),pf(),xf({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){fr("dimension4",c)}));
this.subscriptions.add(this.teamId$.subscribe(function(c){fr("dimension1",c)}))};Y(TQ,Z);TQ.\u0275dir=Z.\u0275dir;TQ.prototype.getComponentId=function(){return this.componentId$};TQ.prototype.getHotlistId=function(){return this.hotlistId$};TQ.prototype.getIssueId=function(){return this.issueId$};TQ.prototype.getTeamId=function(){return this.teamId$};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275prov=Fc({token:TQ,factory:TQ.\u0275fac,providedIn:"root"});var UQ=function(){var a=this;this.issueFullFridge=p(cQ);this.teamFridge=p(PQ);this.componentFridge=p(MO);this.eventsForIssue=p(IP);this.activatedRoute=p(Mj);this.contextSensitiveRegistry=p(TQ);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(A(function(b){return b||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(A(s6a),xf({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(Af(function(b){return b?a.issueFullFridge.watch(b):ee(void 0)}),xf({refCount:!0,bufferSize:1}));this.eventsJs$=
this.id$.pipe(Af(function(b){return b?a.eventsForIssue.watch(b):ee(void 0)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.starred$=this.issueJs$.pipe(A(G5a));this.lastViewedTimeMicros$=this.issueJs$.pipe(A(H5a));this.lastViewedTimeMicros$.pipe(A(function(b){return!b}));this.title$=this.issueJs$.pipe(A(I5a));this.issueJs$.pipe(A($5a));this.accessLimitLevel$=this.issueJs$.pipe(A(Q5a));this.voted$=this.issueJs$.pipe(A(a6a));this.status$=this.issueJs$.pipe(A(J5a));this.priority$=
this.issueJs$.pipe(A(K5a));this.assignee$=this.issueJs$.pipe(A(L5a));this.issueJs$.pipe(A(M5a));this.teamId$=this.issueJs$.pipe(A(N5a));this.team$=this.teamId$.pipe(Af(function(b){return b?a.teamFridge.watch(b):ee(void 0)}),xf({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(A(P5a));this.collaboratorsUsers$=this.issueJs$.pipe(A(R5a));this.issueJs$.pipe(A(function(b){var c,d;return(d=(c=io(b))==null?void 0:c.severity)!=null?d:void 0}));this.type$=this.issueJs$.pipe(A(S5a));this.issueJs$.pipe(A(T5a));
this.issueJs$.pipe(A(U5a));this.issueJs$.pipe(A(V5a));this.postmortems$=this.issueJs$.pipe(A(W5a));this.postmortems$.pipe(A(function(b){return b.length>0}));this.issueJs$.pipe(A(X5a));this.effort$=this.issueJs$.pipe(A(Y5a));this.staffing$=this.issueJs$.pipe(A(Z5a));this.isDeleted$=this.issueJs$.pipe(A(c6a));this.accessLevel$=this.issueJs$.pipe(A(e6a));this.modifiedTime$=this.issueJs$.pipe(A(f6a));this.issueJs$.pipe(A(h6a));this.retentionState$=this.issueJs$.pipe(A(k6a));this.canonicalIssueId$=this.issueJs$.pipe(A(i6a));
this.sloStatus$=this.issueJs$.pipe(A(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.sloStatus}));this.sloId$=this.issueJs$.pipe(A(l6a));this.createdTimeMicros$=this.issueJs$.pipe(A(m6a));this.componentId$=this.issueJs$.pipe(A(O5a));this.component$=this.componentId$.pipe(Af(function(b){return b?a.componentFridge.watch(b):ee(void 0)}));this.teamSuggestions$=this.component$.pipe(A(function(b){var c;return(c=b==null?void 0:b.teamSuggestions)!=null?c:[]}));this.effortSpec$=
this.component$.pipe(A(n6a));this.isEffortEnabled$=this.component$.pipe(A(o6a));this.component$.pipe(A(p6a))};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275prov=Fc({token:UQ,factory:UQ.\u0275fac,providedIn:"root"});var q6a=RegExp("comment([0-9]+)"),r6a=RegExp("comment[0-9]+version([0-9]+)");var hkd={admin:!1,writer:!0,appender:!0,reader:!0},WQ=function(){var a=this;this.issueDetailsBrain=p(UQ);this.permissionsFridge=p(yQ);this.activeSession=p(qu);this.accessPolicyApi=p(FO);this.errorHandler=p(kO);this.userAccess=p(yP);this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+Xr(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(Af(function(c){return c?a.permissionsFridge.watch(eq(c)):
ee(void 0)}),A(function(c){return c!=null?c:hkd}),zf(hkd),xf({bufferSize:1,refCount:!0}));this.hasAclToView$=this.issuePermissions$.pipe(A(function(c){return!!c.reader}));this.hasAclToEdit$=this.issuePermissions$.pipe(A(function(c){return!!c.writer}));this.hasAclToEdit=function(){return!!zr(a.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(A(function(c){return!!c.appender}));this.hasAclToComment=function(){return!!zr(a.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(A(function(c){return!!c.admin}));
this.hasAclToAdmin=function(){return!!zr(a.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(zf([]),A(function(c){return c.some(function(d){return VQ(a,d.emailAddress)})}));this.isCurrentUserCCd=function(){return!!zr(a.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(zf([]),A(function(c){return c.some(function(d){return VQ(a,d.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!zr(a.isCurrentUserCollaborator$)};
this.isAllowedToEditCC$=this.hasAclToEdit$;le([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(A(function(c){var d=m(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(zf(void 0),pf(),Af(function(c){return c?a.accessPolicyApi.checkComponentImplicitAccessEnabled(c):ee(!1)}),jf(function(c){if(c.status===403)return ee(!0);
a.errorHandler.errorHandler(null,c);return ee(!1)}),xf({bufferSize:1,refCount:!0}));this.isImplicitAccessEnabled=function(){return!!zr(a.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=le([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c&&d}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(zf(void 0),pf(),Af(function(c){return c?zP(a.userAccess,"admin","components/"+
c):ee(!1)}),jf(function(c){a.errorHandler.errorHandler(null,c);return ee(!1)}),xf({bufferSize:1,refCount:!0}));this.accessLevel$=this.issueDetailsBrain.accessLevel$.pipe(zf(void 0));this.accessLevel=function(){return zr(a.accessLevel$)};this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.isWithinExternalComponent$=this.accessLevel$.pipe(A(function(c){return!(!c||c==="INTERNAL")}));this.audience$=this.isWithinExternalComponent$.pipe(A(function(c){return c?"EXTERNAL":"INTERNAL"}));
this.audience=function(){return zr(a.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;var b=p(Ee);this.issuePermissions$.pipe(Uj(b)).subscribe();this.isImplicitAccessEnabled$.pipe(Uj(b)).subscribe();this.userIsComponentAdmin$.pipe(Uj(b)).subscribe()},VQ=function(a,b){return(b==null?void 0:b.search(a.currentUserEmailPattern))===0};h=WQ.prototype;
h.canUndeleteComment=function(a){return ho(a)&&a.commentDeletionStatus==="DELETED"?this.hasAclToAdmin()?ee(!0):um(a.lastCommentEditorUser)!==this.activeSession.getUserEmail()?ee(!1):this.hasAclToComment$:ee(!1)};h.canDeleteComment=function(a){return ho(a)&&a.commentDeletionStatus==="ACTIVE"?xm(a.userPerformingActionUser)===this.activeSession.getUserEmail()?ee(!0):this.hasAclToAdmin$:ee(!1)};
h.canEditComment$=function(a){var b=this;return le([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(A(function(c){var d=m(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&&xm(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
h.canDeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"ACTIVE"===a.status?VQ(this,b)?ee(!0):this.hasAclToAdmin$:ee(!1):ee(!1)};h.canUndeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"DELETED"===a.status?VQ(this,b)?ee(!0):this.hasAclToAdmin$:ee(!1):ee(!1)};WQ.\u0275fac=function(a){return new (a||WQ)};WQ.\u0275prov=Fc({token:WQ,factory:WQ.\u0275fac,providedIn:"root"});var XQ=function(a){a=a===void 0?[]:a;this.internalValue$=new Nj(new Set);this.value$=this.internalValue$.asObservable().pipe(A(function(b){return new Set(b)}),pf(mm),xf({refCount:!0,bufferSize:1}));this.reset(a)};h=XQ.prototype;h.reset=function(a){this.value.clear();a=m(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};
h.add=function(){for(var a=m(bd.apply(0,arguments)),b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value);return this};h.clear=function(){this.value.clear();this.internalValue$.next(this.value)};h.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};h.has=function(a){return this.value.has(a)};var Bs=function(a,b){return a.internalValue$.pipe(A(function(c){return c.has(b)}),pf())};XQ.prototype[Symbol.iterator]=function(){return this.value.values()};
XQ.prototype.toString=function(){return"[ReactiveSet](["+[].concat(q(this.value.values())).join(", ")+"])"};XQ.prototype.indexOf=function(a){return[].concat(q(this.value.values())).indexOf(a)};
da.Object.defineProperties(XQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}},size$:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.pipe(A(function(a){return a.size}),pf())}}});var YQ={},ikd=(YQ.ISSUE_DEDUPLICATION=new Set(["VERY_HIGH"]),YQ.ISSUE_DEDUPLICATION_BATCH=new Set(["VERY_HIGH"]),YQ.NEEDS_INFO=new Set(["VERY_HIGH"]),YQ.COMPONENT_ROUTING=new Set(["VERY_HIGH"]),YQ.HOTLIST=new Set(["VERY_HIGH"]),YQ.ANY_ISSUE_EDIT=new Set(["VERY_HIGH"]),YQ.TYPE_UNSPECIFIED=new Set([]),YQ),ZQ=function(){this.activeSession=p(qu);this.issuePermissionService=p(WQ);this.issueFridge=p(TP);this.issueRecommendationFridge=p(eQ);this.refreshMonitor=p(QP);this.hiddenRecommendationIds=new XQ},
kkd=function(a,b){return RP(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION")}).pipe(Af(function(c){return jkd(a,c==null?void 0:c.recommendations)}))},lkd=function(a,b){return RP(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION_BATCH")}).pipe(Af(function(c){return jkd(a,c==null?void 0:c.recommendations)}))},mkd=function(a,b){return RP(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-NEEDS_INFO")}).pipe(Af(function(c){return jkd(a,
c==null?void 0:c.recommendations)}))},nkd=function(a,b){return RP(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING")}).pipe(Af(function(c){return jkd(a,c==null?void 0:c.recommendations)}))},okd=function(a,b){return RP(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ANY_ISSUE_EDIT")}).pipe(Af(function(c){return jkd(a,c==null?void 0:c.recommendations)}))},qkd=function(a,b){return RP(a.refreshMonitor,function(){return Hhd(a.issueRecommendationFridge,
b)}).pipe(Af(function(c){c=c.flatMap(function(d){var e;return(e=d==null?void 0:d.recommendations)!=null?e:[]});return c.length===0?ee([]):le(c.map(function(d){return pkd(a,d).pipe(A(function(e){return e?d:void 0}))})).pipe(A(function(d){return d.filter(Qm)}))}))},jkd=function(a,b){if(!b||!b.length)return ee(void 0);b=b.map(function(c){return pkd(a,c).pipe(A(function(d){return d?c:void 0}))});return le(b).pipe(A(function(c){return c.filter(Qm)[0]}))},pkd=function(a,b){if(!a.activeSession.isInternalSession())return ee(!1);
var c=ikd[b.type];if(!c||!c.has(b.confidence))return ee(!1);c=Wr(b.resource);if(!c)return ee(!1);c=a.issueFridge.watch(c);return le([c,a.issuePermissionService.hasAclToEdit$,Bs(a.hiddenRecommendationIds,b.name)]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return rkd(a,{recommendation:b,hasAclToEdit:f,issue:d,shouldHide:e})}))},rkd=function(a,b){var c=b.recommendation;var d=b.hasAclToEdit;var e=b.issue;if(!d||b.shouldHide)return!1;switch(c.type){case "ISSUE_DEDUPLICATION":var f;
return ko(e)&&!!(c==null?0:(f=c.content)==null?0:f.recommendedIssue);case "HOTLIST":return!0;case "ISSUE_DEDUPLICATION_BATCH":var g;return ko(e)&&!!(c==null?0:(g=c.content)==null?0:g.issueDeduplicationBatch);case "NEEDS_INFO":if(!a.activeSession.getFlag("enableNeedsInfoUi"))return!1;var k,l;return((k=c.content)==null?0:(l=k.issueModification)==null?0:l.addState)&&xm(L5a(e))!==xm(c.content.issueModification.addState.assigneeUser)?!0:!1;case "COMPONENT_ROUTING":var r,w;return((r=c.content)==null?0:
(w=r.issueModification)==null?0:w.addState)&&c.content.issueModification.addState.componentId!==e.snapshot[0].componentId?!0:!1;case "ANY_ISSUE_EDIT":if(!a.activeSession.getFlag("enablePlaybook"))return!1;var x,C,H,J;return((x=c.content)==null?0:(C=x.issueModification)==null?0:C.addState)||((H=c.content)==null?0:(J=H.issueModification)==null?0:J.removeState)?!0:!1;default:return!1}};ZQ.\u0275fac=function(a){return new (a||ZQ)};ZQ.\u0275prov=Fc({token:ZQ,factory:ZQ.\u0275fac,providedIn:"root"});var $Q=function(){this.activeSession=p(qu);this.butterBar=p(QN);this.teamExperimentalFieldsFridge=p(OQ);this.duckieService=p(VN);this.errorHandler=p(kO);this.issueFridge=p(TP);this.recommendationsApi=p(hO);this.recommendationTriggerService=p(ZQ);this.executionCache=new Nj(new Map);this.sourceId=this.activeSession.getEnvironmentType()==="QA"?"1109":"1463"},tkd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return skd(a),z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",
function(f){if(f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("pe");f.playbooks.push(b)}),2);c=e.yieldResult;d=sba(c.playbooks,function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("qe");return e.return(d)})},ukd=function(a,b){return a.teamExperimentalFieldsFridge.watch("8953708121").pipe(A(function(c){return c==null?void 0:c.playbooks.find(function(d){return d.searchQuery===b})}))},vkd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return skd(a),
z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",function(f){if(!f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("re");f.playbooks=f.playbooks.map(function(g){return g.searchQuery===b.searchQuery?b:g})}),2);c=e.yieldResult;d=c.playbooks.find(function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("qe");return e.return(d)})},zkd=function(a,b,c){var d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:skd(a);if(!b.instructions)throw Error("se");
if(!b.searchQuery)throw Error("te");if(!c.length)return x.return([]);d="Triage these bugs: "+c.join(", ")+"\nwith playbook:\n===Start Of Playbook===\n"+b.instructions+"\n===End Of Playbook===";Yd(x,2);return z(x,ie(a.duckieService.generateAnswers(d)),4);case 4:return e=x.yieldResult,f=e.response,g=kVa(f,a.sourceId),z(x,wkd(a,g),5);case 5:return k=x.yieldResult,z(x,xkd(a,k),6);case 6:return l=x.yieldResult,r=l.recommendations,a.executionCache.value.set(b.searchQuery,fo(r,function(C){return Wr(C.resource)})),
a.executionCache.next(a.executionCache.value),ykd(a,r.length),x.return(k);case 2:return w=be(x),w instanceof Error&&(console.error(w),lO(a.errorHandler,"Error connecting to Duckie. Please try again.")),x.return([])}})},Akd=function(a,b,c){return a.executionCache.pipe(nf(1),Af(function(d){var e;return(d=(e=d.get(c))==null?void 0:e.get(b))?ee(d):okd(a.recommendationTriggerService,b)}),Af(function(d){return d?Bs(a.recommendationTriggerService.hiddenRecommendationIds,d.name).pipe(A(function(e){return e?
void 0:d})):ee(void 0)}))},xkd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type==="ANY_ISSUE_EDIT"});if(c.length===0)return e.return({recommendations:[]});d=c.map(function(f){return{parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",resource:f.resource,recommendations:[f]}});return e.return(a.recommendationsApi.batchReplaceRecommendations({parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",requests:d}))})},skd=function(a){if(!a.teamExperimentalFieldsFridge.isEnabled)throw Error("ue");
},wkd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return c=b.map(function(g){return Wr(g.resource)}),z(f,Promise.all(c.map(function(g){return ie(a.issueFridge.watch(g))})),2);d=f.yieldResult;e=fo(d,function(g){return g.issueId});return f.return(b.map(function(g){var k=Wr(g.resource);if(k&&(k=e.get(k)))return iVa(g,k)}).filter(Qm).filter(function(g){return!hVa(g)}))})},ykd=function(a,b){b===0?Pr(a.butterBar,"Playbook execution complete. No recommendations generated."):Pr(a.butterBar,
"Playbook execution complete. Generated "+b+" recommendation(s).")};$Q.\u0275fac=function(a){return new (a||$Q)};$Q.\u0275prov=Fc({token:$Q,factory:$Q.\u0275fac,providedIn:"root"});var Bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bkd,W);h=Bkd.prototype;h.getFormattingMode=function(){return xi(this,1)};h.setFormattingMode=function(a){return Im(this,1,a)};h.getSource=function(){return vi(this,2)};h.setSource=function(a){return Gm(this,2,a)};h.getIssueId=function(){return pn(this,3)};h.getIssueId_asString=function(){return un(this,3)};h.setIssueId=function(a){return Ko(this,3,a)};h.getIdPrefix=function(){return vi(this,4)};
h.setIdPrefix=function(a){return Gm(this,4,a)};var Ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Ckd.messageId)};Y(Ckd,W);Ckd.prototype.getIt=function(){return X(this,Bkd,8,jb)};Ckd.prototype.setIt=function(a){return Ni(this,Bkd,8,a,jb)};Ckd.messageId="b.FormatCommentRequest";var aR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aR,W);aR.prototype.getFormattedComment=function(){return X(this,lp,1)};aR.prototype.setFormattedComment=function(a){Ni(this,lp,1,a)};aR.prototype.hasFormattedComment=function(){return yi(this,lp,1)};aR.prototype.getMentionsList=function(a){return Ci(this,Ccd,2,Di(a))};var Dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Dkd.messageId)};Y(Dkd,W);Dkd.prototype.getIt=function(){return X(this,aR,3,jb)};Dkd.prototype.setIt=function(a){return Ni(this,aR,3,a,jb)};Dkd.messageId="b.FormatCommentResponse";var bR=function(){this.executor=p(ZN);this.activeSession=p(qu)};bR.prototype.format=function(a){return a.formattingMode==="LITERAL"||a.comment.trim()===""?v6a(a):Ekd(this,a).pipe(A(u6a))};
var Ekd=function(a,b){var c,d=(new Bkd).setFormattingMode(mp(b.formattingMode)).setSource(b.comment).setIssueId((c=Mm(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=Gm(d,5,c);b=Im(d,6,Wbd[b.audience]);return a.executor.post({url:"action/formatComment",body:(new Ckd).setIt(b),responseConstructor:Dkd})};
bR.\u0275fac=function(a){return new (a||bR)};bR.\u0275prov=Fc({token:bR,factory:bR.\u0275fac,providedIn:"root"});var Fkd=function(){this.executor=p(ZN)},Gkd=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:En,body:pTa(b)}).pipe(A(function(c){return KSa(c)}))};Fkd.\u0275fac=function(a){return new (a||Fkd)};Fkd.\u0275prov=Fc({token:Fkd,factory:Fkd.\u0275fac,providedIn:"root"});var dR=function(){var a=this;this.userPreferencesManagerBase=p(cR);this.activeSession=p(qu);this.destroyed$=new wf(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(A(pm));this.commentFormattingPreferences$=this.preferences$.pipe(A(function(b){return b.commentFormattingPreferences||{}}));this.lastPublishFormattingMode$=this.commentFormattingPreferences$.pipe(A(function(b){return b.lastPublishMode}),A(Tm),pf());this.commentCreateOverride$=
this.commentFormattingPreferences$.pipe(A(function(b){return b.commentCreateOverride}),A(Tm),A(function(b){return b==="UNSPECIFIED_FORMATTING_MODE"?void 0:b}),pf());this.isCommentCreateOverrideSet$=this.commentCreateOverride$.pipe(A(function(b){return b==="LITERAL"}),pf());this.commentDisplayOverride$=this.commentFormattingPreferences$.pipe(A(function(b){return b.commentDisplayOverride}),A(Tm),A(function(b){return b==="UNSPECIFIED_FORMATTING_MODE"?void 0:b}),pf());this.isCommentDisplayOverrideSet$=
this.commentDisplayOverride$.pipe(A(function(b){return b==="LITERAL"}),pf());this.currentCommentFormattingMode$=le([this.isCommentCreateOverrideSet$,this.lastPublishFormattingMode$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?"LITERAL":c}));this.isCreateCommentFormatLiteral$=this.currentCommentFormattingMode$.pipe(A(function(b){return b==="LITERAL"}));this.themePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)!=
null?c:pm(GN.themePreferences)}),Ar());this.listViewPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.listViewPreferences)!=null?c:pm(GN.listViewPreferences)}),Ar());this.layoutPreferences$=this.preferences$.pipe(A(function(b){return a.getLayoutPreferences(b)}),Ar());this.dateTimePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.dateTimePreferences)!=null?c:pm(GN.dateTimePreferences)}),Ar());this.homepagePreferences$=this.preferences$.pipe(A(function(b){return a.getHomepagePreferences(b)}),
Ar());this.keyboardPrefs$=this.preferences$.pipe(A(function(b){var c;return(c=b.keyboardPreferences)!=null?c:pm(GN.keyboardPreferences)}),Ar());this.displayColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.displayColumns)==null?void 0:c.column)!=null?d:[]}),Ar());this.sortColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}),Ar());this.bugScreensaverPreferences$=this.preferences$.pipe(A(function(b){var c;
return(c=b.bugScreensaverPreferences)!=null?c:pm(GN.bugScreensaverPreferences)}),Ar());this.teamWarningPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.teamWarningPreferences)!=null?c:pm(GN.teamWarningPreferences)}),Ar());this.commentFilterPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.commentFilterPreferences)!=null?c:pm(GN.commentFilterPreferences)}),Ar());this.codeFont$=this.preferences$.pipe(A(function(b){return!!b.useCodefont}),pf());this.autoCcOnComment$=
this.preferences$.pipe(A(function(b){var c;return(c=b.autoCcOnComment)!=null?c:!1}),pf());this.showFullHistory$=this.preferences$.pipe(A(function(b){return!!b.showFullHistory}),pf());this.resultsPerPage$=this.preferences$.pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:GN.resultsPerPage}),pf());this.showRecentEventsFirst$=this.preferences$.pipe(A(function(b){return!!b.showRecentEventsFirst}),pf());this.showInlineImages$=this.preferences$.pipe(A(function(b){var c;return(c=b.showInlineImages)!=
null?c:GN.showInlineImages}),pf())};dR.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};dR.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var Hkd=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(A(a.getLayoutPreferences))},Ikd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return b==="LITERAL"?f.return():z(f,ie(a.preferences$),2);c=f.yieldResult;if(((d=c.commentFormattingPreferences)==null?void 0:d.lastPublishMode)===dSa(b))return f.return();e=Object.assign({},c.commentFormattingPreferences||{},{lastPublishMode:dSa(b)});return z(f,ie(a.save({commentFormattingPreferences:e})),
0)})},Jkd=function(a,b){return a.save({homepagePreferences:b}).pipe(A(a.getHomepagePreferences))};dR.prototype.getDateTimePreferences=function(){var a;return(a=(void 0).dateTimePreferences)!=null?a:pm(GN.dateTimePreferences)};var Kkd=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},Lkd=function(a,b){var c;return(c=a.preferencesSubject$.value.collapsed)==null?void 0:c[b]};
dR.prototype.saveResultsPerPage=function(a){return this.save({resultsPerPage:a}).pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:GN.resultsPerPage}))};var Mkd=function(a,b){return a.save({displayColumns:{column:b}}).pipe(A(function(c){var d,e;return(e=(d=c.displayColumns)==null?void 0:d.column)!=null?e:[]}))};dR.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}))};
var Nkd=function(a,b){return a.save({teamWarningPreferences:b}).pipe(A(function(c){var d;return(d=c.teamWarningPreferences)!=null?d:pm(GN.teamWarningPreferences)}))};dR.prototype.getLayoutPreferences=function(a){var b;return(b=a.layoutPreferences)!=null?b:pm(GN.layoutPreferences)};dR.prototype.getHomepagePreferences=function(a){var b;return(b=a.homepagePreferences)!=null?b:pm(GN.homepagePreferences)};var eR=function(a){return pm(a.preferencesSubject$.getValue())};
dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275prov=Fc({token:dR,factory:dR.\u0275fac,providedIn:"root"});var cR=function(){this.activeSession=p(qu);this.userPreferencesResources=p(Fkd);this.preferences$=new Nj(pm(GN));var a=this.preferences$.value,b=this.activeSession.getUserPreferences();b&&(a=Object.assign({},a,b),Okd(a));this.preferences$.next(a)};
cR.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?ee(Pkd(this,a)):Gkd(this.userPreferencesResources,a).pipe(A(function(){return Pkd(b,a)}))};
var Pkd=function(a,b){var c=pm(a.preferences$.value);c=Object.assign({},c,b);Okd(c);a.preferences$.next(c);return c},Okd=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=GN.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=GN.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=GN.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&a.notificationPreferences.collaboratorPriority!=="UNKNOWN_PRIORITY"||(a.notificationPreferences.collaboratorPriority=GN.notificationPreferences.collaboratorPriority)};cR.\u0275fac=function(a){return new (a||cR)};cR.\u0275prov=Fc({token:cR,factory:cR.\u0275fac,providedIn:"root"});var fR=function(){this.userPreferencesManager=p(dR);this.codefont$=this.userPreferencesManager.codeFont$};fR.\u0275fac=function(a){return new (a||fR)};fR.\u0275prov=Fc({token:fR,factory:fR.\u0275fac,providedIn:"root"});var Qkd=new fd("formatting mode",{factory:function(){return"UNSPECIFIED_FORMATTING_MODE"}});var Rkd=["child"],gR=function(){this.codefont=p(fR)};gR.prototype.ngOnInit=function(){};gR.prototype.ngOnChanges=function(){Yn(this.child.nativeElement,this.content.content)};gR.\u0275fac=function(a){return new (a||gR)};
gR.\u0275cmp=D({type:gR,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&hg(Rkd,7);if(a&2){var c;lg(c=mg())&&(b.child=c.first)}},inputs:{content:"content"},standalone:!1,features:[Gg([{provide:Qkd,useValue:"LITERAL"}]),bx],decls:3,vars:4,consts:[["child",""],[1,"type-m","child"]],template:function(a,b){a&1&&(M(0,"div",1,0),T(2,"async"));a&2&&wg("codefont",U(2,2,b.codefont.codefont$))},dependencies:[Lx],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var hR=new fd("buganizerWindow",{factory:function(){return window}});var iR=function(){this.window=p(hR)};iR.prototype.openInNewTab=function(a){a=yh(a);oi(this.window,a,"_blank")};var Cr=function(a,b){b=yh(b);oi(a.window,b)},Skd=function(a,b){a=a.window.location;b=Ah(b);b!==void 0&&(a.href=b)};iR.\u0275fac=function(a){return new (a||iR)};iR.\u0275prov=Fc({token:iR,factory:iR.\u0275fac,providedIn:"root"});var jR=function(){};jR.\u0275fac=function(a){return new (a||jR)};jR.\u0275cmp=D({type:jR,selectors:[["b-glue"]],standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(cg(),K(0,"span",0),dg(1),L())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});var Tkd=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)};Tkd.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};
Tkd.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var kR=function(){this._document=p(Sh)};kR.prototype.copy=function(a){a=new Tkd(a,this._document);var b=a.copy();a.destroy();return b};kR.\u0275fac=function(a){return new (a||kR)};kR.\u0275prov=Fc({token:kR,factory:kR.\u0275fac,providedIn:"root"});new fd("CDK_COPY_TO_CLIPBOARD_CONFIG");var Ukd=["el"],lR=function(){this.clipboard=p(kR);this.snackBar=p(nB);this.domSafe=p(iR);this.scrollStrategy=p(yz).close();this.opened=!1};lR.prototype.getNgContentParentEl=function(){return this.el.nativeElement};lR.prototype.hide=function(){this.opened=!1};lR.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};lR.\u0275fac=function(a){return new (a||lR)};
lR.\u0275cmp=D({type:lR,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&hg(Ukd,7);if(a&2){var c;lg(c=mg())&&(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();cg();K(0,"a",2,0);N("click",function(d){u(c);d.preventDefault();d.stopPropagation();b.opened=!0;return v()});K(2,
"b-glue");M(3,"mat-icon",3);L();K(4,"span",null,1);dg(6);L()();E(7,y6a,1,1,"ng-template",4);N("overlayOutsideClick",function(){u(c);return v(b.hide())})("detach",function(){u(c);return v(b.hide())})}a&2&&(a=qg(1),B(7),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[Qy,Dy,Pz,Oz,jR,gB,cB,oK,iA],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 Vkd=function(){this.checked=!1;this.disabled=!0;this.startPos="";this.checkedChange=new XP};Vkd.\u0275fac=function(a){return new (a||Vkd)};
Vkd.\u0275cmp=D({type:Vkd,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&&(K(0,"mat-checkbox",0),N("change",function(c){return b.checkedChange.emit(c.checked)}),L());a&2&&I("disabled",b.disabled)("checked",b.checked)},dependencies:[fL,aI],encapsulation:2,changeDetection:0});var F6a="entity agent_name borg_user borg_job cell task_index task_attempt_uid project_id resource.type start_time end_time rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code severity min_latency max_latency text_payload log_text_payload site_path has_sampled_trace snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label insert_id".split(" "),cca={EQUALS:"=",NOT_EQUALS:"!=",
REGEX_MATCH:"=~",NOT_REGEX_MATCH:"!~",CONTAINS:":"},D6a="entity agent_name 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(" "),C6a="start_time end_time min_latency max_latency severity status_code task_index task_attempt_uid".split(" "),E6a=["has_sampled_trace"];var mR=function(){this.changes=new sf;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"};
mR.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};mR.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};mR.\u0275fac=function(a){return new (a||mR)};mR.\u0275prov=Fc({token:mR,factory:mR.\u0275fac,providedIn:"root"});var N6a=function(a,b){return b.id},Wkd=0,Xkd=function(a,b,c,d,e,f,g){e=e===void 0?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=f===void 0?a:f;this.rawValue=g;this.id=Wkd++},Ykd={passive:!1,capture:!0},Zkd={passive:!0,capture:!0},$kd={passive:!0},nR=function(){var a=this;this._elementRef=p(Jd);this._ngZone=p(Rg);this._platform=p(Wh);this._intl=p(mR);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;
this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new Ui;this.previewChange=new Ui;this.activeDateChange=new Ui;this.dragStarted=new Ui;this.dragEnded=new Ui;this._didDragSinceMouseDown=!1;this._injector=p(Ae);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=U6a(d),f=e?a._getCellFromElement(e):null;e!==d.target&&(a._didDragSinceMouseDown=!0);Q6a(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=Q6a(d.target);e?e.closest(".mat-calendar-body")===a._elementRef.nativeElement&&
a._ngZone.run(function(){var f=a._getCellFromElement(e),g;a.dragEnded.emit({value:(g=f==null?void 0:f.rawValue)!=null?g:null,event:d})}):a._ngZone.run(function(){a.dragEnded.emit({value:null,event:d})})}};this._touchendHandler=function(d){(d=U6a(d))&&a._mouseupHandler({target:d})};var b=p(di),c=p(bi);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-");p($h).load(Yz);this._ngZone.runOutsideAngular(function(){var d=a._elementRef.nativeElement;d=[b.listen(d,"touchmove",a._touchmoveHandler,Ykd),b.listen(d,"mouseenter",a._enterHandler,Zkd),b.listen(d,"focus",a._enterHandler,Zkd),b.listen(d,"mouseleave",a._leaveHandler,Zkd),b.listen(d,"blur",a._leaveHandler,Zkd),b.listen(d,"mousedown",a._mousedownHandler,$kd),b.listen(d,"touchstart",a._mousedownHandler,$kd)];a._platform.isBrowser&&d.push(b.listen("window",
"mouseup",a._mouseupHandler),b.listen("window","touchend",a._touchendHandler));a._eventCleanups=d})};h=nR.prototype;h.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};h._cellClicked=function(a,b){this._didDragSinceMouseDown||a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};h._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
h._isSelected=function(a){return this.startValue===a||this.endValue===a};h.ngOnChanges=function(a){var b=a.numCols,c=this.rows,d=this.numCols;if(a.rows||b)this._firstRowOffset=c&&c.length&&c[0].length?d-c[0].length:0;if(a.cellAspectRatio||b||!this._cellPadding)this._cellPadding=50*this.cellAspectRatio/d+"%";if(b||!this._cellWidth)this._cellWidth=100/d+"%"};h.ngOnDestroy=function(){this._eventCleanups.forEach(function(a){return a()})};
h._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};h._focusActiveCell=function(a){var b=this;a=a===void 0?!0:a;Ge(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})},{injector:this._injector})};h._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};
h._isRangeStart=function(a){return R6a(a,this.startValue,this.endValue)};h._isRangeEnd=function(a){return S6a(a,this.startValue,this.endValue)};h._isInRange=function(a){return T6a(a,this.startValue,this.endValue,this.isRange)};h._isComparisonStart=function(a){return R6a(a,this.comparisonStart,this.comparisonEnd)};
h._isComparisonBridgeStart=function(a,b,c){if(!this._isComparisonStart(a)||this._isRangeStart(a)||!this._isInRange(a))return!1;a=this.rows[b][c-1];a||(a=(b=this.rows[b-1])&&b[b.length-1]);return a&&!this._isRangeEnd(a.compareValue)};h._isComparisonBridgeEnd=function(a,b,c){if(!this._isComparisonEnd(a)||this._isRangeEnd(a)||!this._isInRange(a))return!1;a=this.rows[b][c+1];a||(a=(b=this.rows[b+1])&&b[0]);return a&&!this._isRangeStart(a.compareValue)};
h._isComparisonEnd=function(a){return S6a(a,this.comparisonStart,this.comparisonEnd)};h._isInComparisonRange=function(a){return T6a(a,this.comparisonStart,this.comparisonEnd,this.isRange)};h._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};h._isPreviewStart=function(a){return R6a(a,this.previewStart,this.previewEnd)};h._isPreviewEnd=function(a){return S6a(a,this.previewStart,this.previewEnd)};
h._isInPreview=function(a){return T6a(a,this.previewStart,this.previewEnd,this.isRange)};
h._getDescribedby=function(a){if(!this.isRange)return null;if(this.startValue===a&&this.endValue===a)return this._startDateLabelId+" "+this._endDateLabelId;if(this.startValue===a)return this._startDateLabelId;if(this.endValue===a)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(a===this.comparisonStart&&a===this.comparisonEnd)return this._comparisonStartDateLabelId+" "+this._comparisonEndDateLabelId;if(a===this.comparisonStart)return this._comparisonStartDateLabelId;
if(a===this.comparisonEnd)return this._comparisonEndDateLabelId}return null};h._getCellFromElement=function(a){var b=Q6a(a);if(b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)){var c;return((c=this.rows[parseInt(a)])==null?void 0:c[parseInt(b)])||null}return null};nR.\u0275fac=function(a){return new (a||nR)};
nR.\u0275cmp=D({type:nR,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:[bx],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,K6a,3,6,"tr",0),Of(1,O6a,4,1,"tr",1,J6a,!0),K(3,"span",2),Q(4),L(),K(5,"span",2),Q(6),L(),K(7,"span",2),Q(8),L(),K(9,"span",2),Q(10),
L());a&2&&(G(b._firstRowOffset<b.labelMinRequiredCells?0:-1),B(),Pf(b.rows),B(2),I("id",b._startDateLabelId),B(),S(" ",b.startDateAccessibleName,"\n"),B(),I("id",b._endDateLabelId),B(),S(" ",b.endDateAccessibleName,"\n"),B(),I("id",b._comparisonStartDateLabelId),B(),zg(" ",b.comparisonDateAccessibleName," ",b.startDateAccessibleName,"\n"),B(),I("id",b._comparisonEndDateLabelId),B(),zg(" ",b.comparisonDateAccessibleName," ",b.endDateAccessibleName,"\n"))},dependencies:[Dx],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 oR=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new sf;this.selection=a};oR.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};oR.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};oR.prototype._isValidDateInstance=function(a){return KDc(a)&&this._adapter.isValid(a)};oR.\u0275fac=function(){Ze()};oR.\u0275prov=Fc({token:oR,factory:oR.\u0275fac});
var pR=function(a){oR.call(this,null,a)};Y(pR,oR);pR.prototype.add=function(a){oR.prototype.updateSelection.call(this,a,this)};pR.prototype.isValid=function(){return this.selection!=null&&this._isValidDateInstance(this.selection)};pR.prototype.isComplete=function(){return this.selection!=null};pR.prototype.clone=function(){var a=new pR(this._adapter);a.updateSelection(this.selection,this);return a};pR.\u0275fac=function(a){return new (a||pR)($c(Rz))};pR.\u0275prov=Fc({token:pR,factory:pR.\u0275fac});
var ald={provide:oR,useFactory:function(){return p(oR,{optional:!0,skipSelf:!0})||new pR(p(Rz))}};var bld=new fd("MAT_DATE_RANGE_SELECTION_STRATEGY");var cld=function(a,b){return b.id},dld=0,qR=function(){this._changeDetectorRef=p(ux);this._dateFormats=p(Vz,{optional:!0});this._dateAdapter=p(Rz,{optional:!0});this._dir=p(ci,{optional:!0});this._rangeStrategy=p(bld,{optional:!0});this._rerenderSubscription=Rd.EMPTY;this.activeDrag=null;this.selectedChange=new Ui;this._userSelection=new Ui;this.dragStarted=new Ui;this.dragEnded=new Ui;this.activeDateChange=new Ui;this._monthLabel=ng.apply(null,[""].concat(q([])));this._weeks=ng.apply(null,[[]].concat(q([])));
this._firstWeekOffset=ng.apply(null,[0].concat(q([])));this._rangeStart=ng.apply(null,[null].concat(q([])));this._rangeEnd=ng.apply(null,[null].concat(q([])));this._comparisonRangeStart=ng.apply(null,[null].concat(q([])));this._comparisonRangeEnd=ng.apply(null,[null].concat(q([])));this._previewStart=ng.apply(null,[null].concat(q([])));this._previewEnd=ng.apply(null,[null].concat(q([])));this._isRange=ng.apply(null,[!1].concat(q([])));this._todayDate=ng.apply(null,[null].concat(q([])));this._weekdays=
ng.apply(null,[[]].concat(q([])));p($h).load(Ly);this._activeDate=new bo};h=qR.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(zf(null)).subscribe(function(){return a._init()})};h.ngOnChanges=function(a){var b=a.comparisonStart||a.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected);a.activeDrag&&!this.activeDrag&&this._clearPreview()};h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
h._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._clearPreview();this._changeDetectorRef.markForCheck()};h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);Uz(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=rR(this._activeDate,c?1:-1);break;case 39:this.activeDate=rR(this._activeDate,c?-1:1);break;case 38:this.activeDate=rR(this._activeDate,-7);break;case 40:this.activeDate=rR(this._activeDate,7);break;case 36:this.activeDate=rR(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=rR(this._activeDate,zUc(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?sR(this._activeDate,-1):tR(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?sR(this._activeDate,1):tR(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:this._previewEnd()==null||Gh(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}Uz(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};h._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
h._init=function(){this._setRanges(this.selected);this._todayDate.set(this._getCellCompareValue(new bo));this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.locale.SHORTMONTHS[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());var a=uR(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+a.getDay()-this._dateAdapter.getFirstDayOfWeek())%
7);this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};h._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
h._previewChanged=function(a){var b=a.event;a=a.value;if(this._rangeStrategy){a=a?a.rawValue:null;var c=this._rangeStrategy.createPreview(a,this.selected,b);this._previewStart.set(this._getCellCompareValue(c.start));this._previewEnd.set(this._getCellCompareValue(c.end));if(this.activeDrag&&a){var d,e;if(c=(e=(d=this._rangeStrategy).createDrag)==null?void 0:e.call(d,this.activeDrag.value,this.selected,a,b))this._previewStart.set(this._getCellCompareValue(c.start)),this._previewEnd.set(this._getCellCompareValue(c.end))}}};
h._dragEnded=function(a){if(this.activeDrag)if(a.value){var b,c,d=(b=this._rangeStrategy)==null?void 0:(c=b.createDrag)==null?void 0:c.call(b,this.activeDrag.value,this.selected,a.value,a.event);this.dragEnded.emit({value:d!=null?d:null,event:a.event})}else this.dragEnded.emit({value:null,event:a.event})};h._getDateFromDayOfMonth=function(a){return uR(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
h._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=eld(this._dateAdapter,"narrow"),c=eld(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e],id:dld++}});this._weekdays.set(c.slice(a).concat(c.slice(0,a)))};
h._createWeekCells=function(){for(var a=zUc(this.activeDate),b=fld,c=[[]],d=0,e=this._firstWeekOffset();d<a;d++,e++){e==7&&(c.push([]),e=0);var f=uR(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),d+1),g=this._shouldEnableDate(f),k=this._dateAdapter.format(f,this._dateFormats.display.dateA11yLabel),l=this.dateClass?this.dateClass(f,"month"):void 0;c[c.length-1].push(new Xkd(d+1,b[d],k,g,l,this._getCellCompareValue(f),f))}this._weeks.set(c)};
h._shouldEnableDate=function(a){return!!a&&(!this.minDate||Uz(this._dateAdapter,a,this.minDate)>=0)&&(!this.maxDate||Uz(this._dateAdapter,a,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(a))};h._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};h._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};
h._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);return(new Date(b,c,this._dateAdapter.getDate(a))).getTime()}return null};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setRanges=function(a){this._rangeStart.set(this._getCellCompareValue(a));this._rangeEnd.set(this._rangeStart());this._isRange.set(!1);this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart));this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))};
h._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};h._clearPreview=function(){this._previewStart.set(null);this._previewEnd.set(null)};
da.Object.defineProperties(qR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Sz(this._dateAdapter,Tz(this._dateAdapter,a))||new bo;this._activeDate=LDc(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=Sz(this._dateAdapter,Tz(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}}});qR.\u0275fac=function(a){return new (a||qR)};
qR.\u0275cmp=D({type:qR,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&hg(nR,5);if(a&2){var c;lg(c=mg())&&(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:[bx],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue",
"endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead",1)(2,"tr"),Of(3,V6a,5,2,"th",2,cld),L(),K(5,"tr",3),M(6,"th",4),L()(),K(7,"tbody",5),N("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",function(c){return b._previewChanged(c)})("dragStarted",
function(c){return b.dragStarted.emit(c)})("dragEnded",function(c){return b._dragEnded(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),L()());a&2&&(B(3),Pf(b._weekdays()),B(4),I("label",b._monthLabel())("rows",b._weeks())("todayValue",b._todayDate())("startValue",b._rangeStart())("endValue",b._rangeEnd())("comparisonStart",b._comparisonRangeStart())("comparisonEnd",b._comparisonRangeEnd())("previewStart",b._previewStart())("previewEnd",
b._previewEnd())("isRange",b._isRange())("labelMinRequiredCells",3)("activeCell",b._dateAdapter.getDate(b.activeDate)-1)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName))},dependencies:[nR],encapsulation:2,changeDetection:0});var vR=function(){this._changeDetectorRef=p(ux);this._dateAdapter=p(Rz,{optional:!0});this._dir=p(ci,{optional:!0});this._rerenderSubscription=Rd.EMPTY;this.selectedChange=new Ui;this.yearSelected=new Ui;this.activeDateChange=new Ui;this._years=ng.apply(null,[[]].concat(q([])));this._todayYear=ng.apply(null,[0].concat(q([])));this._selectedYear=ng.apply(null,[null].concat(q([])));this._activeDate=new bo};h=vR.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(zf(null)).subscribe(function(){return a._init()})};
h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};h._init=function(){var a=this;this._todayYear.set(this._dateAdapter.getYear(new bo));for(var b=this._dateAdapter.getYear(this._activeDate)-Y6a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),c=[],d=0,e=[];d<24;d++)e.push(b+d),e.length==4&&(c.push(e.map(function(f){return a._createCellForYear(f)})),e=[]);this._years.set(c);this._changeDetectorRef.markForCheck()};
h._yearSelected=function(a){var b=a.value;a=uR(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);Uz(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=sR(this._activeDate,c?1:-1);break;case 39:this.activeDate=sR(this._activeDate,c?-1:1);break;case 38:this.activeDate=sR(this._activeDate,-4);break;case 40:this.activeDate=sR(this._activeDate,4);break;case 36:this.activeDate=sR(this._activeDate,-Y6a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=sR(this._activeDate,24-Y6a(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=sR(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=sR(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}Uz(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};
h._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};h._getActiveCell=function(){return Y6a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};h._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
h._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate);var c=uR(a,b,1);c=zUc(c);return uR(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};h._createCellForYear=function(a){var b=uR(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new Xkd(a,c,c,this._shouldEnableYear(a),b)};
h._shouldEnableYear=function(a){if(a===void 0||a===null||this.maxDate&&a>this._dateAdapter.getYear(this.maxDate)||this.minDate&&a<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var b=uR(a,0,1);this._dateAdapter.getYear(b)==a;b=rR(b,1))if(this.dateFilter(b))return!0;return!1};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setSelectedYear=function(a){this._selectedYear.set(null);a&&this._selectedYear.set(this._dateAdapter.getYear(a))};
da.Object.defineProperties(vR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Sz(this._dateAdapter,Tz(this._dateAdapter,a))||new bo;this._activeDate=LDc(this._dateAdapter,a,this.minDate,this.maxDate);X6a(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=Sz(this._dateAdapter,Tz(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}}});vR.\u0275fac=function(a){return new (a||vR)};
vR.\u0275cmp=D({type:vR,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&hg(nR,5);if(a&2){var c;lg(c=mg())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden",
"true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),L()(),K(4,"tbody",3),N("selectedValueChange",function(c){return b._yearSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",
function(c){return b._handleCalendarBodyKeydown(c)}),L()());a&2&&(B(4),I("rows",b._years())("todayValue",b._todayYear())("startValue",b._selectedYear())("endValue",b._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[nR],encapsulation:2,changeDetection:0});var wR=function(){this._changeDetectorRef=p(ux);this._dateFormats=p(Vz,{optional:!0});this._dateAdapter=p(Rz,{optional:!0});this._dir=p(ci,{optional:!0});this._rerenderSubscription=Rd.EMPTY;this.selectedChange=new Ui;this.monthSelected=new Ui;this.activeDateChange=new Ui;this._months=ng.apply(null,[[]].concat(q([])));this._yearLabel=ng.apply(null,[""].concat(q([])));this._todayMonth=ng.apply(null,[null].concat(q([])));this._selectedMonth=ng.apply(null,[null].concat(q([])));this._activeDate=new bo};
h=wR.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(zf(null)).subscribe(function(){return a._init()})};h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};h._monthSelected=function(a){a=a.value;var b=uR(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};
h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);Uz(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=tR(this._activeDate,c?1:-1);break;case 39:this.activeDate=tR(this._activeDate,c?-1:1);break;case 38:this.activeDate=tR(this._activeDate,-4);break;case 40:this.activeDate=tR(this._activeDate,4);break;case 36:this.activeDate=tR(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=tR(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=sR(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=sR(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}Uz(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
h._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
h._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth.set(this._getMonthInCurrentYear(new bo));this._yearLabel.set(""+this.activeDate.getFullYear());var b=this._dateAdapter.locale.SHORTMONTHS;this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(c){return c.map(function(d){return a._createCellForMonth(d,b[d])})}));this._changeDetectorRef.markForCheck()};h._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};h._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};h._getDateFromMonth=function(a){var b=uR(this._dateAdapter.getYear(this.activeDate),a,1);b=zUc(b);return uR(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
h._createCellForMonth=function(a,b){var c=uR(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 Xkd(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
h._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(a===void 0||a===null||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=uR(b,a,1);this._dateAdapter.getMonth(b)==a;b=rR(b,1))if(this.dateFilter(b))return!0;return!1};h._isYearAndMonthAfterMaxDate=function(a,b){if(this.maxDate){var c=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return a>c||a===c&&b>d}return!1};
h._isYearAndMonthBeforeMinDate=function(a,b){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return a<c||a===c&&b<d}return!1};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setSelectedMonth=function(a){this._selectedMonth.set(this._getMonthInCurrentYear(a))};
da.Object.defineProperties(wR.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Sz(this._dateAdapter,Tz(this._dateAdapter,a))||new bo;this._activeDate=LDc(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=Sz(this._dateAdapter,
Tz(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}}});wR.\u0275fac=function(a){return new (a||wR)};
wR.\u0275cmp=D({type:wR,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&hg(nR,5);if(a&2){var c;lg(c=mg())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",
1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(a,b){a&1&&(K(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),L()(),K(4,"tbody",3),N("selectedValueChange",function(c){return b._monthSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",
function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),L()());a&2&&(B(4),I("label",b._yearLabel())("rows",b._months())("todayValue",b._todayMonth())("startValue",b._selectedMonth())("endValue",b._selectedMonth())("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._dateAdapter.getMonth(b.activeDate)))},dependencies:[nR],encapsulation:2,changeDetection:0});var yR=function(){var a=this;this._intl=p(mR);this.calendar=p(xR);this._dateAdapter=p(Rz,{optional:!0});this._dateFormats=p(Vz,{optional:!0});this._periodButtonLabelId=p(bi).getId("mat-calendar-period-label-");p($h).load(Ly);var b=p(ux);this._updateLabels();this.calendar.stateChanges.subscribe(function(){a._updateLabels();b.markForCheck()})},gld=function(a){return a.calendar.minDate?!a.calendar.minDate||!a._isSameView(a.calendar.activeDate,a.calendar.minDate):!0};
yR.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,q(this._formatMinAndMaxYearLabels())),this._periodButtonDescription=b.formatYearRangeLabel.apply(b,q(this._formatMinAndMaxYearLabels())),this._periodButtonLabel=b.switchToMonthViewLabel,this._prevButtonLabel=b.prevMultiYearLabel,this._nextButtonLabel=
b.nextMultiYearLabel)};yR.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):X6a(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
yR.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-Y6a(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+uR(a,0,1).getFullYear();b=""+uR(b,0,1).getFullYear();return[a,b]};
da.Object.defineProperties(yR.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}}});
yR.\u0275fac=function(a){return new (a||yR)};
yR.\u0275cmp=D({type:yR,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton",
"","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],"viewBox;0 0 24 24;focusable;false;aria-hidden;true".split(";"),["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,b){a&1&&(cg(),K(0,"div",0)(1,"div",1)(2,"span",2),Q(3),L(),K(4,"button",
3),N("click",function(){b.calendar.currentView=b.calendar.currentView=="month"?"multi-year":"month"}),K(5,"span",4),Q(6),L(),Ad(),K(7,"svg",5),M(8,"polygon",6),L()(),Cd(),M(9,"div",7),dg(10),K(11,"button",8),N("click",function(){gld(b)&&(b.calendar.activeDate=b.calendar.currentView=="month"?tR(b.calendar.activeDate,-1):sR(b.calendar.activeDate,b.calendar.currentView=="year"?-1:-24))}),Ad(),K(12,"svg",9),M(13,"path",10),L()(),Cd(),K(14,"button",11),N("click",function(){b.calendar.maxDate&&b._isSameView(b.calendar.activeDate,
b.calendar.maxDate)||(b.calendar.activeDate=b.calendar.currentView=="month"?tR(b.calendar.activeDate,1):sR(b.calendar.activeDate,b.calendar.currentView=="year"?1:24))}),Ad(),K(15,"svg",9),M(16,"path",12),L()()()());a&2&&(B(2),I("id",b._periodButtonLabelId),B(),yg(b.periodButtonDescription),B(),Kf("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),B(2),yg(b.periodButtonText),B(),wg("mat-calendar-invert",b.calendar.currentView!=="month"),B(4),I("disabled",!gld(b))("matTooltip",
b.prevButtonLabel),Kf("aria-label",b.prevButtonLabel),B(3),I("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate)))("matTooltip",b.nextButtonLabel),Kf("aria-label",b.nextButtonLabel))},dependencies:[cB,eB,iA],encapsulation:2,changeDetection:0});
var xR=function(){var a=this;this._dateAdapter=p(Rz,{optional:!0});this._dateFormats=p(Vz,{optional:!0});this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new Ui;this.yearSelected=new Ui;this.monthSelected=new Ui;this.viewChanged=new Ui(!0);this._userSelection=new Ui;this._userDragDrop=new Ui;this._activeDrag=null;this.stateChanges=new sf;this._intlChanges=p(mR).changes.subscribe(function(){a._changeDetectorRef.markForCheck();
a.stateChanges.next()})};h=xR.prototype;h.ngAfterContentInit=function(){this._calendarHeaderPortal=new Hz(this.headerComponent||yR);this.activeDate=this.startAt||new bo;this._currentView=this.startView};h.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};h.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
h.ngOnChanges=function(a){var b=a.minDate&&!this._dateAdapter.sameDate(a.minDate.previousValue,a.minDate.currentValue)?a.minDate:void 0,c=a.maxDate&&!this._dateAdapter.sameDate(a.maxDate.previousValue,a.maxDate.currentValue)?a.maxDate:void 0;(a=b||c||a.dateFilter)&&!a.firstChange&&(a=this._getCurrentViewComponent())&&(this._elementRef.nativeElement.contains(Jh())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
h._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};h._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};h._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};h._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};h._dragStarted=function(a){this._activeDrag=a};h._dragEnded=function(a){this._activeDrag&&(a.value&&this._userDragDrop.emit(a),this._activeDrag=null)};
h._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
da.Object.defineProperties(xR.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Sz(this._dateAdapter,Tz(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=LDc(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))}}});xR.\u0275fac=function(a){return new (a||xR)};
xR.\u0275cmp=D({type:xR,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(hg(qR,5),hg(wR,5),hg(vR,5));if(a&2){var c;lg(c=mg())&&(b.monthView=c.first);lg(c=mg())&&(b.yearView=c.first);lg(c=mg())&&(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:[Gg([ald]),bx],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate",
"dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter",
"maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,b){a&1&&(E(0,Z6a,0,0,"ng-template",0),K(1,"div",1),F(2,$6a,1,11,"mat-month-view",2)(3,a7a,1,6,"mat-year-view",3)(4,b7a,1,6,"mat-multi-year-view",3),L());if(a&2){var c;I("cdkPortalOutlet",b._calendarHeaderPortal);B(2);G((c=b.currentView)==="month"?2:c==="year"?3:c==="multi-year"?4:-1)}},dependencies:[Lz,Jy,qR,wR,vR],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 hld=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},zR=function(){var a=this;this._elementRef=p(Jd);this._dateAdapter=p(Rz,{optional:!0});this._dateFormats=p(Vz,{optional:!0});this.dateChange=new Ui;this.dateInput=new Ui;this.stateChanges=new sf;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=Rd.EMPTY;this._parseValidator=function(){return a._lastValueValid?null:
{matDatepickerParse:{text:a._elementRef.nativeElement.value}}};this._filterValidator=function(b){b=Sz(a._dateAdapter,Tz(a._dateAdapter,b.value));return!b||a._matchesFilter(b)?null:{matDatepickerFilter:!0}};this._minValidator=function(b){b=Sz(a._dateAdapter,Tz(a._dateAdapter,b.value));var c=a._getMinDate();return!c||!b||Uz(a._dateAdapter,c,b)<=0?null:{matDatepickerMin:{min:c,actual:b}}};this._maxValidator=function(b){b=Sz(a._dateAdapter,Tz(a._dateAdapter,b.value));var c=a._getMaxDate();return!c||!b||
Uz(a._dateAdapter,c,b)>=0?null:{matDatepickerMax:{max:c,actual:b}}};this._lastValueValid=!1;this._localeSubscription=this._dateAdapter.localeChanges.subscribe(function(){a._assignValueProgrammatically(a.value)})};h=zR.prototype;h._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
h._registerModel=function(a){var b=this;this._model=a;this._valueChangesSubscription.unsubscribe();this._pendingValue&&this._assignValue(this._pendingValue);this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){b._shouldHandleChangeEvent(c)&&(c=b._getValueFromModel(c.selection),b._lastValueValid=b._isValidValue(c),b._cvaOnChange(c),b._onTouched(),b._formatValue(c),b.dateInput.emit(new hld(b,b._elementRef.nativeElement)),b.dateChange.emit(new hld(b,b._elementRef.nativeElement)))})};
h.ngAfterViewInit=function(){this._isInitialized=!0};h.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=m(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(KDc(d)&&KDc(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};h.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
h.registerOnValidatorChange=function(a){this._validatorOnChange=a};h.validate=function(a){return this._validator?this._validator(a):null};h.writeValue=function(a){this._assignValueProgrammatically(a)};h.registerOnChange=function(a){this._cvaOnChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};
h._onKeydown=function(a){var b=["ctrlKey","shiftKey","metaKey"];Gh(a,"altKey")&&a.keyCode===40&&b.every(function(c){return!Gh(a,c)})&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
h._onInput=function(a){a=a.target.value;var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=Sz(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 hld(this,this._elementRef.nativeElement)))};
h._onChange=function(){this.dateChange.emit(new hld(this,this._elementRef.nativeElement))};h._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};h._formatValue=function(a){this._elementRef.nativeElement.value=a!=null?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};h._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};h._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};
h._parentDisabled=function(){return!1};h._assignValueProgrammatically=function(a){a=Tz(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=Sz(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};h._matchesFilter=function(a){var b=this._getDateFilter();return!b||b(a)};
da.Object.defineProperties(zR.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()}}});
zR.\u0275fac=function(a){return new (a||zR)};zR.\u0275dir=df({type:zR,inputs:{value:"value",disabled:[2,"disabled","disabled",$g]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[bx]});var ild=new fd("mat-datepicker-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Uh(a)}}}),AR=function(){var a=this;this._elementRef=p(Jd);this._animationsDisabled=ni();this._changeDetectorRef=p(ux);this._globalModel=p(oR);this._dateAdapter=p(Rz);this._ngZone=p(Rg);this._rangeSelectionStrategy=p(bld,{optional:!0});this._animationDone=new sf;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())};p($h).load(Ly);this._closeButtonText=p(mR).closeCalendarLabel;if(!this._animationsDisabled){var b=this._elementRef.nativeElement,c=p(di);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[c.listen(b,"animationstart",a._handleAnimationEvent),
c.listen(b,"animationend",a._handleAnimationEvent),c.listen(b,"animationcancel",a._handleAnimationEvent)]})}};h=AR.prototype;h.ngAfterViewInit=function(){var a=this;this._stateChanges=this.datepicker.stateChanges.subscribe(function(){a._changeDetectorRef.markForCheck()});this._calendar._getCurrentViewComponent()._focusActiveCell(!1)};
h.ngOnDestroy=function(){clearTimeout(this._animationFallback);var a;(a=this._eventCleanups)==null||a.forEach(function(c){return c()});var b;(b=this._stateChanges)==null||b.unsubscribe();this._animationDone.complete()};h._handleUserSelection=function(a){var b=this._model.selection;a=a.value;!a||this._dateAdapter.sameDate(a,b)||this._model.add(a);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()};
h._handleUserDragDrop=function(a){this._model.updateSelection(a.value,this)};h._startExitAnimation=function(){var a=this;this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit");this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(function(){a._isAnimating||a._animationDone.next()},200))};h._getSelected=function(){return this._model.selection};
h._applyPendingSelection=function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)};h._assignActions=function(a,b){this._model=a?this._globalModel.clone():this._globalModel;this._actionsPortal=a;b&&this._changeDetectorRef.detectChanges()};AR.\u0275fac=function(a){return new (a||AR)};
AR.\u0275cmp=D({type:AR,selectors:[["mat-datepicker-content"]],viewQuery:function(a,b){a&1&&hg(xR,5);if(a&2){var c;lg(c=mg())&&(b._calendar=c.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,b){a&2&&(xg(b.color?"mat-"+b.color:""),wg("mat-datepicker-content-touch",b.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!b._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",
1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"mat-calendar",1),N("yearSelected",
function(d){return b.datepicker._selectYear(d)})("monthSelected",function(d){return b.datepicker._selectMonth(d)})("viewChanged",function(d){return b.datepicker._viewChanged(d)})("_userSelection",function(d){return b._handleUserSelection(d)})("_userDragDrop",function(d){return b._handleUserDragDrop(d)}),L(),E(2,c7a,0,0,"ng-template",2),K(3,"button",3),N("focus",function(){return b._closeButtonFocused=!0})("blur",function(){return b._closeButtonFocused=!1})("click",function(){return b.datepicker.close()}),
Q(4),L()());if(a&2){wg("mat-datepicker-content-container-with-custom-header",b.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",b._actionsPortal);var c;Kf("aria-modal",!0)("aria-labelledby",(c=b._dialogLabelId)!=null?c:void 0);B();xg(b.datepicker.panelClass);I("id",b.datepicker.id)("startAt",b.datepicker.startAt)("startView",b.datepicker.startView)("minDate",b.datepicker._getMinDate())("maxDate",b.datepicker._getMaxDate())("dateFilter",b.datepicker._getDateFilter())("headerComponent",
b.datepicker.calendarHeaderComponent)("selected",b._model.selection)("dateClass",b.datepicker.dateClass)("comparisonStart",b.comparisonStart)("comparisonEnd",b.comparisonEnd)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName);B();I("cdkPortalOutlet",b._actionsPortal);B();wg("cdk-visually-hidden",!b._closeButtonFocused);I("color",b.color||"primary");B();yg(b._closeButtonText)}},dependencies:[Qy,xR,Lz,cB],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 BR=function(){var a=this;this._injector=p(Ae);this._viewContainerRef=p(fg);this._dateAdapter=p(Rz,{optional:!0});this._dir=p(ci,{optional:!0});this._model=p(oR);this._animationsDisabled=ni();this._scrollStrategy=p(ild);this._inputStateChanges=Rd.EMPTY;this._document=p(Sh);this.startView="month";this.touchUi=!1;this.xPosition="start";this.yPosition="below";this.restoreFocus=!0;this.yearSelected=new Ui;this.monthSelected=new Ui;this.viewChanged=new Ui(!0);this.openedStream=new Ui;this.closedStream=
new Ui;this._opened=!1;this.id=p(bi).getId("mat-datepicker-");this._focusedElementBeforeOpen=null;this._backdropHarnessClass=this.id+"-backdrop";this.stateChanges=new sf;this._changeDetectorRef=p(ux);this._model.selectionChanged.subscribe(function(){a._changeDetectorRef.markForCheck()})};h=BR.prototype;h._getMinDate=function(){return this.datepickerInput&&this.datepickerInput.min};h._getMaxDate=function(){return this.datepickerInput&&this.datepickerInput.max};
h._getDateFilter=function(){return this.datepickerInput&&this.datepickerInput.dateFilter};h.ngOnChanges=function(a){(a=a.xPosition||a.yPosition)&&!a.firstChange&&this._overlayRef&&(a=this._overlayRef.getConfig().positionStrategy,a instanceof Vh&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition()));this.stateChanges.next(void 0)};h.ngOnDestroy=function(){this._destroyOverlay();this.close();this._inputStateChanges.unsubscribe();this.stateChanges.complete()};h.select=function(a){this._model.add(a)};
h._selectYear=function(a){this.yearSelected.emit(a)};h._selectMonth=function(a){this.monthSelected.emit(a)};h._viewChanged=function(a){this.viewChanged.emit(a)};var jld=function(a,b){a._inputStateChanges.unsubscribe();a.datepickerInput=b;a._inputStateChanges=b.stateChanges.subscribe(function(){return a.stateChanges.next(void 0)});return a._model};h=BR.prototype;
h.open=function(){var a;this._opened||this.disabled||((a=this._componentRef)==null?0:a.instance._isAnimating)||(this._focusedElementBeforeOpen=Jh(),this._openOverlay(),this._opened=!0,this.openedStream.emit())};
h.close=function(){var a=this,b;if(this._opened&&((b=this._componentRef)==null||!b.instance._isAnimating)){var c=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus==="function";b=function(){a._opened&&(a._opened=!1,a.closedStream.emit())};if(this._componentRef){var d=this._componentRef,e=d.instance,f=d.location;e._animationDone.pipe(nf(1)).subscribe(function(){var g=a._document.activeElement;!c||g&&g!==a._document.activeElement&&!f.nativeElement.contains(g)||
a._focusedElementBeforeOpen.focus();a._focusedElementBeforeOpen=null;a._destroyOverlay()});e._startExitAnimation()}c?setTimeout(b):b()}};h._applyPendingSelection=function(){var a,b;(a=this._componentRef)==null||(b=a.instance)==null||b._applyPendingSelection()};
h._forwardContentValues=function(a){a.datepicker=this;a.color=this.color;var b=this.datepickerInput;b=b._formField?b._formField.getLabelId():b._elementRef.nativeElement.getAttribute("aria-labelledby");a._dialogLabelId=b;a._assignActions(this._actionsPortal,!1)};
h._openOverlay=function(){var a=this;this._destroyOverlay();var b=this.touchUi,c=new Hz(AR,this._viewContainerRef),d=this._overlayRef=li(this._injector,new ei({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?Jra(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||Ge(function(){d.updatePosition()},{injector:this._injector})};h._destroyOverlay=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)};h._getDialogStrategy=function(){return DDc(Dz(new Cz))};
h._getDropdownStrategy=function(){var a=ADc(Az(Bz(BDc(Yh(this._injector,this.datepickerInput.getConnectedOverlayOrigin()),".mat-datepicker-content"),!1),8));return this._setConnectedPositions(a)};
h._setConnectedPositions=function(a){var b=this.xPosition==="end"?"end":"start",c=b==="start"?"end":"start",d=this.yPosition==="above"?"bottom":"top",e=d==="top"?"bottom":"top";return zz(a,[{originX:b,originY:e,overlayX:b,overlayY:d},{originX:b,originY:d,overlayX:b,overlayY:e},{originX:c,originY:e,overlayX:c,overlayY:d},{originX:c,originY:d,overlayX:c,overlayY:e}])};
h._getCloseStream=function(a){var b=this,c=["ctrlKey","shiftKey","metaKey"];return ve(a.backdropClick(),a._detachments,a.keydownEvents().pipe(we(function(d){return d.keyCode===27&&!Gh(d)||b.datepickerInput&&Gh(d,"altKey")&&d.keyCode===38&&c.every(function(e){return!Gh(d,e)})})))};
da.Object.defineProperties(BR.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)},set:function(a){this._startAt=Sz(this._dateAdapter,Tz(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=m(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()}}});BR.\u0275fac=function(a){return new (a||BR)};
BR.\u0275dir=df({type:BR,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",$g],disabled:[2,"disabled","disabled",$g],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",$g],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",$g]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},
features:[bx]});var kld={provide:VD,useExisting:Yc(function(){return CR}),multi:!0},lld={provide:WD,useExisting:Yc(function(){return CR}),multi:!0},CR=function(){zR.call(this);this._formField=p(wPc,{optional:!0});this._openedSubscription=this._closedSubscription=Rd.EMPTY;this._ariaOwns=ng.apply(null,[null].concat(q([])));this._validator=Wva(zR.prototype._getValidators.call(this))};Y(CR,zR);h=CR.prototype;h.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef};
h.ngOnDestroy=function(){zR.prototype.ngOnDestroy.call(this);this._closedSubscription.unsubscribe();this._openedSubscription.unsubscribe()};h._openPopup=function(){this._datepicker&&this._datepicker.open()};h._getValueFromModel=function(a){return a};h._assignValueToModel=function(a){this._model&&this._model.updateSelection(a,this)};h._getMinDate=function(){return this._min};h._getMaxDate=function(){return this._max};h._getDateFilter=function(){return this._dateFilter};
h._shouldHandleChangeEvent=function(a){return a.source!==this};
da.Object.defineProperties(CR.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(jld(a,this)))}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=Sz(this._dateAdapter,
Tz(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=Sz(this._dateAdapter,Tz(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()}}});CR.\u0275fac=function(a){return new (a||CR)};
CR.\u0275dir=df({type:CR,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&&(Qf("disabled",b.disabled),Kf("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:[Gg([kld,lld,{provide:fQc,useExisting:CR}]),Gf]});var mld=["button"],nld=[[["","matDatepickerToggleIcon",""]]],old=function(){};old.\u0275fac=function(a){return new (a||old)};old.\u0275dir=df({type:old,selectors:[["","matDatepickerToggleIcon",""]]});var DR=function(){this._intl=p(mR);this._changeDetectorRef=p(ux);this._stateChanges=Rd.EMPTY;var a=p(new cx("tabindex"),{optional:!0});this.tabIndex=(a=Number(a))||a===0?a:null};h=DR.prototype;h.ngOnChanges=function(a){a.datepicker&&this._watchStateChanges()};h.ngOnDestroy=function(){this._stateChanges.unsubscribe()};
h.ngAfterContentInit=function(){this._watchStateChanges()};h._open=function(a){this.datepicker&&!this.disabled&&(this.datepicker.open(),a.stopPropagation())};
h._watchStateChanges=function(){var a=this,b=this.datepicker?this.datepicker.stateChanges:ee(),c=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ee(),d=this.datepicker?ve(this.datepicker.openedStream,this.datepicker.closedStream):ee();this._stateChanges.unsubscribe();this._stateChanges=ve(this._intl.changes,b,c,d).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
da.Object.defineProperties(DR.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}}});DR.\u0275fac=function(a){return new (a||DR)};
DR.\u0275cmp=D({type:DR,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,b,c){a&1&&ig(c,old,5);if(a&2){var d;lg(d=mg())&&(b._customIcon=d.first)}},viewQuery:function(a,b){a&1&&hg(mld,5);if(a&2){var c;lg(c=mg())&&(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&&(Kf("tabindex",null)("data-mat-calendar",b.datepicker?b.datepicker.id:null),wg("mat-datepicker-toggle-active",b.datepicker&&
b.datepicker.opened)("mat-accent",b.datepicker&&b.datepicker.color==="accent")("mat-warn",b.datepicker&&b.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",$g],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[bx],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&&(cg(nld),K(0,"button",1,0),F(2,d7a,2,0,":svg:svg",2),dg(3),L());a&2&&(I("tabIndex",b.disabled?-1:b.tabIndex)("disabled",b.disabled)("disableRipple",b.disableRipple),Kf("aria-haspopup",
b.datepicker?"dialog":null)("aria-label",b.ariaLabel||b._intl.openCalendarLabel)("aria-expanded",b.datepicker?b.datepicker.opened:null),B(2),G(b._customIcon?-1:2))},dependencies:[eB],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 ER=function(){BR.apply(this,arguments)};Y(ER,BR);ER.\u0275dir=BR.\u0275dir;ER.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ER)))(b||ER)}}();ER.\u0275cmp=D({type:ER,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Gg([ald,{provide:BR,useExisting:ER}]),Gf],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var FR=function(){};FR.\u0275fac=function(a){return new (a||FR)};FR.\u0275mod=cf({type:FR});FR.\u0275inj=Hc({providers:[mR],imports:[fB,Qz,Zy,Mz,AR,DR,yR,Ey,wz]});var e7a=new Map([["zwieback_id:","zwieback"],["android_id:","android"],["anonymous_id:","anonymous"]]);var pld=["el"],j7a=function(a,b){return b.label},GR=function(){Z.apply(this,arguments);this.domSafe=p(iR);this.clipboard=p(kR);this.snackBar=p(nB);this.activeSession=p(qu);this.contextSensitiveRegistry=p(TQ);this.formattingMode=p(Qkd);this.analytics=p(aQ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.scrollStrategy=p(yz).close();this.urls=[];this.opened=!1};Y(GR,Z);GR.\u0275dir=Z.\u0275dir;
GR.prototype.ngOnInit=function(){this.urls=[{label:this.originalHref,originalHref:this.originalHref,href:this.href}];if(this.activeSession.isInternalSession()){var a=yr(this.contextSensitiveRegistry.getIssueId());a:{var b=this.originalHref;try{var c=null,d=(new URL(b)).hostname;switch(d.includes("analog")?"Analog":d.includes("sherlog")?"Sherlog":d.includes("eye3")?"Third Eye":"PRODUCT_UNSPECIFIED"){case "Analog":var e=new URL("https://nexus.corp.google.com/debug/dashboard");var f=new URL(b);if(f.searchParams.has("text_query")){var g=
f.searchParams.get("text_query");var k=f.searchParams.get("time_range");if(k==null)var l=[];else{var r=k.split("/");if(r.length!==2)l=[];else{var w=(new Date(r[1])).getTime()*1E3;l=[Dr("start_time","=",[(new Date(r[0])).getTime()*1E3]),Dr("end_time","=",[w])]}}f=[];var x=f.concat,C=q(l);l=[];for(var H,J=[],O=m(g.matchAll(/NOT\s\(source_location.file = "(?<file>[^)]+)" source_location.line = "(?<line>[0-9]+)"\)/gm)),R=O.next();!R.done;R=O.next()){var V=R.value;J.push(V[1]+":"+V[2])}(H=J.length>0?Dr("site_path",
"!=",J):null)&&l.push(H);O=void 0;for(var ca=m(g.matchAll(/(?<key>[^\s=!~]+)[\s]*(?<operator>=~?|![=~])[\s]*(?<value>"[^"\\]*(?:\\.[^"\\]*)*"|[^\s"]+)/gm)),oa=ca.next();!oa.done;oa=ca.next()){var ua=oa.value,ka=ua[1];var Ga=ua[2];var ja=dca()(Ga)?Ga:void 0;g=ja;var ta=ua[3];if(ta.length>=2&&ta.charAt(0)==='"'&&ta.charAt(ta.length-1)==='"')var xa=ta.substring(1,ta.length-1);else if(ta==="true"||ta==="false")xa=ta==="true";else{var Sa=Number(ta);xa=hca(Sa)?Sa:void 0}R=xa;if(g)if(ka!=="source_location.file"||
H){ka==="source_location.line"&&O&&(O=Dr("site_path",O.operator,[O.values[0]+":"+R]));var $a=I6a(ka);$a&&l.push(Dr($a,g,[C6a.includes($a)?Number(R):R]))}else O=Dr("site_path",g,[R])}O&&l.push(O);var pb=x.call(f,C,q(l))}else{if(f.searchParams.get("storage")==="borglocal")throw Error("we");x=[];J=m(f.searchParams);for(var Xb=J.next();!Xb.done;Xb=J.next()){var lc=m(Xb.value),ec=lc.next().value,pc=lc.next().value,sb=H6a(ec,pc,f.searchParams);sb&&x.push.apply(x,q(sb))}pb=x}e.searchParams.set("filters",
B6a(pb));e.searchParams.set("scope","Borg");e.searchParams.set("tab","rdl");c=e;break;case "Sherlog":if(b.startsWith("http://sherlog/_")){var Ob=new URL("https://nexus.corp.google.com/trace/"+b.replace("http://sherlog/_",""));Ob.searchParams.set("action","expandsherlog");c=Ob}else{var ib=new URL(b);if(ib.pathname.includes("workflow")){var Yb=ib.searchParams,rc,Gc=encodeURIComponent((rc=Yb.get("dataid"))!=null?rc:""),Rb=new URL("https://nexus.corp.google.com/trace/"+Gc),Cc=f7a(ib);Rb.searchParams.set("account",
Cc.account);Rb.searchParams.set("account_type",Cc.accountType);var Sc;Rb.searchParams.set("version",(Sc=Yb.get("version"))!=null?Sc:"");var Bd;Rb.searchParams.set("pipeline",(Bd=Yb.get("config"))!=null?Bd:"");Rb.searchParams.set("trace_type","sherlog");c=Rb}else c=null}break;default:var Nc="";break a}a=a!=null?a:void 0;c==null?Nc="":(c.searchParams.set("origin_type","buganizer"),a&&(a.startsWith("b/")||(a="b/"+a),c.searchParams.set("origin_id",a)),Nc=c.toString());break a}catch(fe){Nc="";break a}Nc=
void 0}Nc&&this.urls.push({label:"Open in Nexus",originalHref:Nc,href:Nc,icon:"nexus-logo"})}};GR.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(Bf(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};GR.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var qld=function(a){if(a.urls.length>1)return!0;if(a.formattingMode==="PLAIN")return!1;var b=a.getNgContentParentEl(),c,d;if(d=WTa(b))a=a.originalHref,b=(c=b.textContent)!=null?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};GR.prototype.hide=function(){this.opened=!1};GR.prototype.openLink=function(a,b){XTa(a)||(a.preventDefault(),a.stopPropagation(),Cr(this.domSafe,b))};GR.prototype.copyToClipboard=function(a){this.clipboard.copy(a);this.snackBar.open("URL copied","",{duration:2E3})};
var rld=function(a){var b="externalLinkPopup";a.urls.find(function(c){return c.label==="Open in Nexus"})&&(b="externalLinkPopupNexus");a.analytics.trackEvent("issue","click",b)};GR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(GR)))(b||GR)}}();
GR.\u0275cmp=D({type:GR,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(hg(pld,7),hg(Pz,7));if(a&2){var c;lg(c=mg())&&(b.el=c.first);lg(c=mg())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},standalone:!1,features:[Gf],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();cg();K(0,"a",2,0);N("click",function(d){u(c);XTa(d)||(d.preventDefault(),d.stopPropagation(),qld(b)?(rld(b),b.opened=!0):b.openLink(d,b.href));return v()});F(2,g7a,2,0,"b-glue");K(3,"span",null,1);dg(5);L()();E(6,l7a,1,1,"ng-template",3);N("detach",function(){u(c);return v(b.hide())})("overlayOutsideClick",function(){u(c);return v(b.hide())})}a&2&&(a=qg(1),wg("needs-contextual-popup",qld(b)),I("href",b.originalHref,Pe)("rel",b.EXTERNAL_LINK_REL),B(2),G(qld(b)?
2:-1),B(4),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[Qy,Dy,Pz,Oz,jR,gB,cB,oK,iA],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 sld=function(){this.session=p(qu);this.userPreferencesManager=p(dR)};sld.\u0275fac=function(a){return new (a||sld)};sld.\u0275prov=Fc({token:sld,factory:sld.\u0275fac,providedIn:"root"});var tld=new fd("IssueCard");var HR=function(){};HR.prototype.visit=function(){};HR.\u0275fac=function(a){return new (a||HR)};HR.\u0275prov=Fc({token:HR,factory:HR.\u0275fac,providedIn:"root"});var uld=["el"],vld=function(){this.viewContainerRef=p(fg)};vld.\u0275fac=function(a){return new (a||vld)};vld.\u0275dir=df({type:vld,selectors:[["","issueCardHost",""]],standalone:!1});var IR=function(){Z.apply(this,arguments);this.issueReferenceResolver=p(HR);this.issueCard=p(tld,{optional:!0});this.hovercardReady=new wf(1)};Y(IR,Z);IR.\u0275dir=Z.\u0275dir;IR.prototype.ngOnInit=function(){};
IR.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(Bf(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(nf(1),Bf(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
IR.prototype.visit=function(a){if(!XTa(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})}};IR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(IR)))(b||IR)}}();
IR.\u0275cmp=D({type:IR,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(hg(uld,7),hg(vld,5));if(a&2){var c;lg(c=mg())&&(b.el=c.first);lg(c=mg())&&(b.issueCardHost=c)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,features:[Gf],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();cg();K(0,"onedev-hovercard",null,0);E(2,m7a,2,1,"div",2);L();K(3,"a",3,1);N("click",function(d){u(c);return v(b.visit(d))});dg(5);L()}a&2&&(a=qg(1),B(3),I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.issueCard)("href",b.href,Pe))},dependencies:[DK,EK,LK,FK,vld],encapsulation:2,changeDetection:0});var wld=["NEW","CONFIRMED","IN_PROGRESS","FIXED","WONT_FIX"],JR={},xld=(JR.UNSPECIFIED=[],JR.NEW=["PENDING_TRIAGE","REPORTER_RESPONDED","NEEDS_INFO"],JR.CONFIRMED=["PENDING_OWNER"],JR.IN_PROGRESS=["EXPECTED","PLANNED","COMMITTED"],JR.FIXED=["REOPENED"],JR.WONT_FIX=["REOPENED"],JR),KR={},yld=(KR.TRIAGE_SUBPHASE_UNSPECIFIED="Unspecified",KR.NEEDS_INFO="Needs more info",KR.PENDING_TRIAGE="Pending triage",KR.PENDING_OWNER="Pending owner",KR.REPORTER_RESPONDED="Reporter responded",KR.EXPECTED="Expected",
KR.PLANNED="Planned",KR.COMMITTED="Committed",KR.REOPENED="Reopened",KR),LR={},zld=(LR.TRIAGE_SUBPHASE_UNSPECIFIED="unspecified",LR.NEEDS_INFO="needs-info",LR.PENDING_TRIAGE="pending-triage",LR.PENDING_OWNER="pending-owner",LR.REPORTER_RESPONDED="reporter-responded",LR.EXPECTED="expected",LR.PLANNED="planned",LR.COMMITTED="committed",LR.REOPENED="reopened",LR),Ald=nUa(oUa(zld)),MR={},Dt=(MR.UNSPECIFIED="unspecified",MR.NEW="new",MR.CONFIRMED="confirmed",MR.IN_PROGRESS="in-progress",MR.FIXED="fixed",
MR.WONT_FIX="wont-fix",MR),Bld=nUa(oUa(Dt)),Zs=new Map([["NEW","New"],["CONFIRMED","Confirmed"],["IN_PROGRESS","In progress"],["FIXED","Fixed"],["WONT_FIX","Won't fix"]]),Cld={},Dld=(Cld.NEW="status:new modified:7d",Cld.CONFIRMED="status:assigned modified:7d",Cld.IN_PROGRESS="status:accepted modified:30d",Cld.FIXED="status:fixed|verified modified:30d",Cld.WONT_FIX="status:infeasible|not_reproducible|obsolete|duplicate modified:30d",Cld),Eld=[{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"RELATIVE_MODIFIED_TIME"},
{type:"ISSUE_ID"}],NR={},Fld=(NR.UNSPECIFIED=Eld,NR.NEW=[{type:"TRIAGER"},{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"COMPONENT_PATH"},{type:"RELATIVE_MODIFIED_TIME"},{type:"ISSUE_ID"}],NR.CONFIRMED=Eld,NR.IN_PROGRESS=Eld,NR.FIXED=Eld,NR.WONT_FIX=Eld,NR);var Gld=new Set([1049953,209989]);var Hld=new XQ,Ild=Hld.value$.pipe(mf(),lf(0,Br));var Jld=Xn().user.email,Kld={key:"USER_RESPONDED",displayAs:"User responded",emoji:"\u21a9\ufe0f",tooltip:"Reporter responded with more info",check:function(a){return Fr(a)==="REPORTER_RESPONDED"},chipColor:"blue",showCount:!0},Lld={key:"OUT_OF_SLO",displayAs:"Out of SLO",emoji:"\u2757\ufe0f",tooltip:"Out of SLO",check:function(a){return jUa(a.snapshot[0].sloEndTime)&&(!a.snapshot[0].sloStartTime||jUa(a.snapshot[0].sloStartTime))},chipColor:"red",showCount:!0},Mld={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},Nld={key:"PAST_DEADLINE",displayAs:"Past deadline",emoji:"\u231b\ufe0f",check:function(a){var b,c;a=co((b=a.snapshot[0].customField)==null?void 0:(c=b.find(function(d){return Gld.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},
Old={key:"REOPENED",displayAs:"Reopened",emoji:"\u26a0\ufe0f",check:function(a){var b,c;return ko(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},Pld={key:"MY_ISSUES",displayAs:"My issues",emoji:"\ud83c\udf1f",check:function(a){var b;return ko(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)===
Jld||xUa(a)===Jld)},tooltip:"Issues for which you are triager, or assigned to you.",showCount:!0},Qld={key:"TRENDING",displayAs:"Trending",emoji:"\ud83d\udd25",check:function(a){return!!Hld.has(a.issueId)},queryFragment:'(no server query available for "is trending")',tooltip:"Unusually high view activity",chipColor:"purple",showCount:!0},Rld={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"},Sld={key:"NEEDS_ATTENTION",displayAs:"Needs attention",emoji:"",check:function(a){var b,c;return(c=(b=rIb.get("NEW"))==null?void 0:b.some(function(d){return o7a(a,d)}))!=null?c:!1},tooltip:"Issues which are actionable and important.",showCount:!0},Tld={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},Uld={key:"NOT_ASSIGNED",displayAs:"Not assigned",emoji:"",check:function(a){return xUa(a)==null},tooltip:"Issues which have empty assignee.",chipColor:"green",showCount:!0},Vld=new Map([["NEW",[Sld,Pld,Rld]],["CONFIRMED",[Qld,Mld,Rld]],["IN_PROGRESS",[Lld,Nld,Rld]],["FIXED",[Rld]],["WONT_FIX",[Rld]]]),rIb=new Map([["NEW",[Tld,Lld,Kld]],["CONFIRMED",[Qld,Lld,Mld,Tld]],["IN_PROGRESS",[Lld,Nld,Uld]],["FIXED",[Old]],["WONT_FIX",[Old]]]),Wld={INACTIVE_1Y:Mld,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:Rld,MY_ISSUES:Pld,NEEDS_ATTENTION:Sld,NEEDS_MORE_INFO:{key:"NEEDS_MORE_INFO",displayAs:"Needs more info",emoji:"\u2139\ufe0f",check:function(a){return Fr(a)==="NEEDS_INFO"},tooltip:"Waiting for more information from the reporter.",chipColor:"green",showCount:!0},OUT_OF_SLO:Lld,PAST_DEADLINE:Nld,REOPENED:Old,TRENDING:Qld,
USER_RESPONDED:Kld,HIGH_PRIORITY:Tld,NOT_ASSIGNED:Uld};var OR=function(){this.issueFridge=p(TP);this.issueExperimentalFieldsFridge=p(PP);this.activeSession=p(qu)},Yld=function(a,b,c){var d,e,f;y(function(g){switch(g.nextAddress){case 1:return z(g,a.issueFridge.poke(b),2);case 2:d=g.yieldResult;if(!d)return g.return();Yd(g,3);e=c.some(function(k){return["comment","attachments"].includes(k.fieldName)});if(!e){g.jumpTo(5);break}return z(g,Xld(a,d),5);case 5:return g.return();case 3:f=be(g),console.error(f),ce(g)}})},Xld=function(a,b){return y(function(c){return Er(b)!==
"NEW"||Fr(b)!=="NEEDS_INFO"||a.activeSession.getUserEmail()!==xm(b.snapshot[0].reporterUser)?c.jumpTo(0):z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(d){d.triage.subphase="REPORTER_RESPONDED"}),0)})};OR.\u0275fac=function(a){return new (a||OR)};OR.\u0275prov=Fc({token:OR,factory:OR.\u0275fac,providedIn:"root"});var PR=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(TP);this.teamFridge=p(PQ);this.recentIssues$=pe(function(){return a.issueFridge.watchMany({filter:"modified:60d (modifier:me | assignee:me)",pageSize:500})});this.recentTeamIds$=this.recentIssues$.pipe(A(function(b){return b.results}),A(function(b){return b.map(function(c){var d;return(d=c.aggregatedData)==null?void 0:d.teamId}).filter(Qm).filter(Boolean).map(String)}));this.mostActiveTeamIds$=this.recentTeamIds$.pipe(A(function(b){return C_a(b,
function(c){return c})}),A(function(b){return b.filter(function(c){return c.length>=2})}),A(function(b){return b.sort(function(c,d){return d.length-c.length})}),A(function(b){return b.map(function(c){return c[0]})}));this.mostActiveTeams$=this.mostActiveTeamIds$.pipe(Af(function(b){return a.teamFridge.watchSet(b).pipe(A(function(c){var d=fo(c,function(e){return e.teamId});return b.map(function(e){return{teamId:e,team:d.get(e)}})}))}),xf({refCount:!0,bufferSize:1}))};Y(PR,Z);PR.\u0275dir=Z.\u0275dir;
PR.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(PR)))(b||PR)}}();PR.\u0275prov=Fc({token:PR,factory:PR.\u0275fac,providedIn:"root"});var QR=function(){var a=this;this.teamFridge=p(PQ);this.userPrefsManager=p(dR);this.teamUserActivity=p(PR);this.activeSession=p(qu);this.destroyRef=p(Ee);this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.scopePrefs$=this.userPrefsManager.preferences$.pipe(A(function(b){var c;return(c=b==null?void 0:b.scopePreferences)!=null?c:{starredTeams:[],starredTriageViews:[]}}));this.starredTeamIds$=this.scopePrefs$.pipe(A(function(b){return b.starredTeams}));
this.starredTeamIds$.pipe(A(function(b){return b.map(function(c){var d=a.teamFridge.watch(c);return{teamId:c,name$:d.pipe(A(function(e){return(e==null?void 0:e.name)||c})),team$:d}})}));this.starredTriageViews$=this.scopePrefs$.pipe(A(function(b){return b.starredTriageViews}));this.starredTriageViews$.pipe(A(function(b){return b.map(function(c){return c})}));this.starredTeamIds=[];this.starredTriageViews=[];Zld(this);this.starredTeamIds$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.starredTeamIds=
b});this.starredTriageViews$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.starredTriageViews=b})},Zld=function(a){var b,c,d,e;y(function(f){switch(f.nextAddress){case 1:return a.enableTeamScope?z(f,ie(a.scopePrefs$),2):f.return();case 2:b=f.yieldResult;if(b.lastAutomaticStarsUpdate)return f.return();if(!b.starredTeams.length){f.jumpTo(3);break}return z(f,a.save({lastAutomaticStarsUpdate:mSa(Date.now())}),4);case 4:return f.return();case 3:return z(f,ie(a.teamUserActivity.mostActiveTeams$),5);
case 5:return c=f.yieldResult,d=c.slice(0,3).map(function(g){return g.teamId}),e=d.map(function(g){return{teamId:g,triageId:"0"}}),z(f,a.save({lastAutomaticStarsUpdate:mSa(Date.now()),starredTeams:d,starredTriageViews:e}),0)}})};QR.prototype.save=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,ie(b.scopePrefs$),2);c=d.yieldResult;return z(d,ie(b.userPrefsManager.save({scopePreferences:Object.assign({},c,a)})),0)})};
QR.prototype.toggle=function(a){return this.starredTeamIds.includes(a)?this.save({starredTeams:this.starredTeamIds.filter(function(b){return b!==a})}):this.save({starredTeams:[].concat(q(this.starredTeamIds),[a])})};QR.prototype.reset=function(){var a=this;return y(function(b){return z(b,a.save({lastAutomaticStarsUpdate:void 0,starredTeams:[]}),0)})};
var $ld=function(a,b,c){if(a.starredTriageViews.some(function(e){return e.triageId===b&&e.teamId===c})){var d=[].concat(q(a.starredTriageViews)).filter(function(e){return e.triageId!==b||e.teamId!==c});return a.save({starredTriageViews:d})}return a.save({starredTriageViews:[].concat(q(a.starredTriageViews),[{teamId:c,triageId:b}])})};QR.\u0275fac=function(a){return new (a||QR)};QR.\u0275prov=Fc({token:QR,factory:QR.\u0275fac,providedIn:"root"});var amd={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"},bmd={key:"SET_NEEDS_INFO",displayAs:"Needs more info",fieldsToShow:["ASSIGNEE","CUSTOM_FIELDS","COMMENT"]},cmd={key:"SET_CONFIRMED",
displayAs:"Confirmed",fieldsToShow:"COMMENT SEVERITY PRIORITY TYPE HOTLISTS ASSIGNEE COLLABORATORS CC_LIST CUSTOM_FIELDS".split(" ")},dmd={key:"SET_PENDING_OWNER",displayAs:"Pending owner",fieldsToShow:["COMMENT"]},emd={key:"SET_IN_PROGRESS",displayAs:"In progress",fieldsToShow:["COMMENT","SEVERITY","PRIORITY","TYPE","ASSIGNEE"],showAssignToSelf:!0},fmd={key:"SET_EXPECTED",displayAs:"Expected",fieldsToShow:["COMMENT"],showAssignToSelf:!0},gmd={key:"SET_PLANNED",displayAs:"Planned",fieldsToShow:["COMMENT"],
showAssignToSelf:!0},hmd={key:"SET_COMMITTED",displayAs:"Committed",fieldsToShow:["COMMENT"],showAssignToSelf:!0},imd={key:"SET_WONT_FIX",displayAs:"Won't fix",fieldsToShow:["STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"INTENDED_BEHAVIOR"}]},jmd={key:"SET_NEW",displayAs:"New",fieldsToShow:["CUSTOM_FIELDS","STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"NEW"}]},kmd={key:"SET_FIXED",displayAs:"Fixed",fieldsToShow:["COMMENT","STATUS","CODE_CHANGES"],automaticChanges:[{field:"STATUS",
value:"FIXED"}]},lmd={key:"CHANGE_COMPONENT",displayAs:"Route",fieldsToShow:["COMMENT","COMPONENT","HOTLISTS","ASSIGNEE"]},mmd=new Map([["NEW",[lmd,{key:"MARK_AS_DUPLICATE",displayAs:"Mark as duplicate"}]],["CONFIRMED",[]],["IN_PROGRESS",[]],["FIXED",[]],["WONT_FIX",[]]]);var RR={displayAs:"Open",queryAtom:"status:open",tooltip:'Issues that match "status:open"'};var omd=function(a,b,c,d,e,f){var g=this;this.teamId=a;this.triageId=b;this.teamFridge=c;this.issueFullFridge=d;this.issueFridge=e;this.teamExperimentalFieldsFridge=f;this.isLoading$=new Nj(!1);this.setLoading=function(){g.isLoading$.next(!0)};this.setNotLoading=function(){g.isLoading$.next(!1)};this.team$=pe(function(){return ee(g.teamId)}).pipe(Cf(this.setLoading),Af(function(k){return g.teamFridge.watch(k)}),Cf(this.setNotLoading),xf({refCount:!0,bufferSize:1}));this.teamName$=this.team$.pipe(A(function(k){return(k==
null?void 0:k.name)||g.teamId}));this.teamExperiments$=pe(function(){return ee(g.teamId)}).pipe(Cf(this.setLoading),Af(function(k){return g.teamExperimentalFieldsFridge.watch(k)}),Cf(this.setNotLoading),xf({refCount:!0,bufferSize:1}));this.triageScope$=this.teamExperiments$.pipe(A(function(k){var l,r;return(k==null?void 0:(l=k.triage.find(function(w){return w.id===Number(g.triageId)}))==null?void 0:(r=l.scope)==null?void 0:r.trim())||"teamid:"+g.teamId+"+"}),xf({refCount:!0,bufferSize:1}));this.teamTriageViewExperiments$=
this.teamExperiments$.pipe(A(function(k){return k==null?void 0:k.triage.find(function(l){return""+l.id===g.triageId})}));this.triageFieldConfigs$=this.teamTriageViewExperiments$.pipe(A(function(k){var l;return(l=k==null?void 0:k.config)!=null?l:[]}));this.byPhase=new Map(wld.map(function(k){return[k,nmd(g,k)]}));this.allIssues$=le([].concat(q(this.byPhase.values())).map(function(k){return k.issues$})).pipe(A(function(k){return k.flat()}),A(function(k){return uq(k,function(l){return l.issueId})}),
xf({refCount:!0,bufferSize:1}));this.triageName$=le([this.teamName$,this.teamExperiments$]).pipe(A(function(k){var l=m(k);k=l.next().value;l=l.next().value;l=l==null?void 0:l.triage.find(function(r){return r.id===Number(g.triageId)});return Gr(k,l)}))};omd.prototype.phase=function(a){return this.byPhase.get(a)};
var nmd=function(a,b){var c=a.triageScope$.pipe(A(function(l){l=Ir(l,"modified:365d");l=Ir(l,"-status:duplicate");switch(b){case "NEW":case "CONFIRMED":case "IN_PROGRESS":l=Ir(l,"status:open")}return[l,b].join("____b-internal____")}),pf()),d=c.pipe(A(u7a),Cf(a.setLoading),Af(function(l){return a.issueFridge.watchMany(l)}),Cf(a.setNotLoading),xf({refCount:!0,bufferSize:1})),e=d.pipe(A(function(l){return l.results}),A(function(l){return l.map(function(r){return r.issueId})}),pf(mm)).pipe(Af(function(l){return l.length?
le(l.map(function(r){return a.issueFridge.watch(r)})):ee([])}));d=d.pipe(A(function(l){var r;return(r=l.totalSize)!=null?r:0}));e=e.pipe(A(function(l){return v7a(l,b)}),xf({refCount:!0,bufferSize:1}));var f=e.pipe(A(function(l){return n7a(l).length})),g=le([e,f,Ild]).pipe(A(function(l){var r=m(l);l=r.next().value;r=r.next().value;return p7a(l,rIb.get(b)).length+r}),A(function(l){return l===0?"":l>=250?"250+":""+l}));d=le([d,f]).pipe(A(function(l){var r=m(l);l=r.next().value;r=r.next().value;return l+
r}));var k;return{phase:b,displayName:(k=Zs.get(b))!=null?k:"",query$:c,issues$:e,attentionCount$:g,totalCount$:d}};
omd.prototype.reload=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.setLoading(),z(c,Promise.all(vq([].concat(q(a.byPhase.values())).map(function(d){return zr(d.query$)})).map(function(d){return hed(a.issueFridge,u7a(d))})),2);if(c.nextAddress!=3)return b=c.yieldResult,z(c,Promise.all(vq(b.flatMap(function(d){return d.results}).map(function(d){return d.issueId})).map(function(d){return a.issueFullFridge.poke(d)})),3);a.setNotLoading();ce(c)})};
var pmd=function(a,b,c){return a.triageFieldConfigs$.pipe(A(function(d){d=d||[];var e=[];d=m(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="CUSTOM_FIELD"){f=f.customFieldConfig;var g=f.defaultValues.find(function(k){var l;if(b&&((l=k.phases)==null||!l.includes(b)))return!1;var r;return!c||(r=k.subphases)!=null&&r.includes(c)?!0:!1});g&&e.push({customFieldId:f.customFieldId,defaultValues:[g]})}return e}))},qmd=function(a,b,c){return a.triageFieldConfigs$.pipe(A(function(d){var e=[];
d=m(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="HOTLIST"){f=f.hotlistConfig;var g=void 0;if(!b||(g=f.phases)!=null&&g.includes(b))g=void 0,(!c||(g=f.subphases)!=null&&g.includes(c))&&e.push(f)}return e}))},SR=function(){this.teamFridge=p(PQ);this.issueFullFridge=p(cQ);this.issueFridge=p(TP);this.teamExperimentalFieldsFridge=p(OQ);this.cache=new Map};SR.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)};
SR.prototype.create=function(a,b){return new omd(a,b,this.teamFridge,this.issueFullFridge,this.issueFridge,this.teamExperimentalFieldsFridge)};SR.\u0275fac=function(a){return new (a||SR)};SR.\u0275prov=Fc({token:SR,factory:SR.\u0275fac,providedIn:"root"});var TR=function(){this.triageDataFactory=p(SR);this.isSidebarOpen$=new Nj(!1);this.internalCurrentIssueIds$=new Nj([]);this.currentIssueIds$=this.internalCurrentIssueIds$.pipe(pf(mm));this.currentIssueId$=this.currentIssueIds$.pipe(A(function(a){return a[0]}),pf());this.internalSelectedIssueIds$=new Nj([]);this.selectedIssueIds$=this.internalSelectedIssueIds$.pipe(pf(mm));this.mode=0};TR.prototype.openSidebar=function(){this.isSidebarOpen$.next(!0)};TR.prototype.closeSidebar=function(){this.isSidebarOpen$.next(!1)};
TR.prototype.setIssueIds=function(a){this.internalCurrentIssueIds$.next(a);this.internalSelectedIssueIds$.next([])};TR.prototype.setMode=function(a){this.mode=a};TR.\u0275fac=function(a){return new (a||TR)};TR.\u0275prov=Fc({token:TR,factory:TR.\u0275fac,providedIn:"root"});var rmd={ACTIVATION:0,SELECTION:1,0:"ACTIVATION",1:"SELECTION"};var smd=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};
smd.prototype.setData=function(a){a=tmd(a);this.originalIssue=pm(a);var b=pm(this.originalIssue.snapshot[0]);this.issueId=a.issueId;this.assignee=um(b.assigneeUser);this.assigneeUser=b.assigneeUser;this.blockedByIssueId=b.blockedByIssueId;this.blockingIssueId=b.blockingIssueId;this.ccUsers=wm(b.ccUsers);this.cc=this.ccUsers.map(um);this.collaboratorsUsers=wm(b.collaboratorsUsers);this.collaborators=this.collaboratorsUsers.map(um);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=um(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=um(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 umd(e)}));
c=m(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 umd({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 tmd=function(a){a=pm(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},vmd=function(a,b){switch(b.fieldName){case "assignee":a.setAssignee(b.value||"");break;case "attachments":break;case "blockedByIssueId":if(b.actionType==="REMOVE"){var c,d,e=new Set((d=(c=b.value)==null?void 0:c.split(","))!=null?d:[]),f,g;a.blockedByIssueId=(g=(f=a.blockedByIssueId)==null?void 0:f.filter(function(zh){return!e.has(zh)}))!=null?g:[]}else{var k,l,r=(l=(k=b.value)==null?void 0:k.split(","))!=null?
l:[],w;a.blockedByIssueId=vq([].concat(q((w=a.blockedByIssueId)!=null?w:[]),q(r)))}break;case "blockingIssueId":if(b.actionType==="REMOVE"){var x,C,H=new Set((C=(x=b.value)==null?void 0:x.split(","))!=null?C:[]),J,O;a.blockingIssueId=(O=(J=a.blockingIssueId)==null?void 0:J.filter(function(zh){return!H.has(zh)}))!=null?O:[]}else{var R,V;r=(V=(R=b.value)==null?void 0:R.split(","))!=null?V:[];var ca;a.blockingIssueId=vq([].concat(q((ca=a.blockingIssueId)!=null?ca:[]),q(r)))}break;case "ccs":if(b.actionType===
"REMOVE"){var oa,ua,ka=new Set((ua=(oa=b.value)==null?void 0:oa.split(","))!=null?ua:[]),Ga,ja;a.cc=(ja=(Ga=a.cc)==null?void 0:Ga.filter(function(zh){return!ka.has(zh)}))!=null?ja:[]}else{var ta,xa;r=(xa=(ta=b.value)==null?void 0:ta.split(","))!=null?xa:[];var Sa;a.cc=vq([].concat(q((Sa=a.cc)!=null?Sa:[]),q(r)))}break;case "changelists":if(b.actionType==="REMOVE"){var $a,pb,Xb=new Set((pb=($a=b.value)==null?void 0:$a.split(","))!=null?pb:[]),lc,ec;a.changelist=(ec=(lc=a.changelist)==null?void 0:lc.filter(function(zh){return!Xb.has(zh)}))!=
null?ec:[]}else{var pc,sb;r=(sb=(pc=b.value)==null?void 0:pc.split(","))!=null?sb:[];var Ob;a.changelist=vq([].concat(q((Ob=a.changelist)!=null?Ob:[]),q(r)))}break;case "collaborators":if(b.actionType==="REMOVE"){var ib,Yb,rc=new Set((Yb=(ib=b.value)==null?void 0:ib.split(","))!=null?Yb:[]),Gc,Rb;a.collaborators=(Rb=(Gc=a.collaborators)==null?void 0:Gc.filter(function(zh){return!rc.has(zh)}))!=null?Rb:[]}else{var Cc,Sc;r=(Sc=(Cc=b.value)==null?void 0:Cc.split(","))!=null?Sc:[];var Bd;a.collaborators=
vq([].concat(q((Bd=a.collaborators)!=null?Bd:[]),q(r)))}break;case "comment":break;case "componentId":a.componentId=b.value||null;break;case "customField":var Nc=b.customFieldValue,fe,Xe,Ve;k=Nc.textValue||Nc.dateValue||Nc.enumValue||Nc.numericValue||((r=Nc.repeatedTextValue)==null?void 0:r.values)||((fe=Nc.repeatedDateValue)==null?void 0:fe.values)||((Xe=Nc.repeatedEnumValue)==null?void 0:Xe.values)||((Ve=Nc.repeatedNumericValue)==null?void 0:Ve.values)||null;a.setCustomField(Nc.customFieldId,k);
break;case "deletionReason":b.actionType==="REMOVE"?a.deletionReason=null:a.deletionReason=b.value;break;case "duplicateOfIssueId":a.duplicateOfIssueId=b.value||null;break;case "effortEstimate":a.effortEstimate=b.value||null;break;case "foundInVersion":if(b.actionType==="REMOVE"){var Hh,Gw;a.foundInVersion=(Gw=(Hh=a.foundInVersion)==null?void 0:Hh.filter(function(zh){return zh!==b.value}))!=null?Gw:[]}else{r=b.value!=null?[b.value]:[];var dp;a.foundInVersion=vq([].concat(q((dp=a.foundInVersion)!=
null?dp:[]),q(r)))}break;case "gerritChanges":if(b.actionType==="REMOVE"){var Ej,Rm,Hq=new Set((Rm=(Ej=b.value)==null?void 0:Ej.split(","))!=null?Rm:[]),Hw;a.gerritChanges=((Hw=a.gerritChanges)!=null?Hw:[]).map(function(zh){return Wq(zh)}).filter(function(zh){return!Hq.has(zh)}).map(Xq).filter(Qm)}else{var fk,Bl;r=(Bl=(fk=b.value)==null?void 0:fk.split(","))!=null?Bl:[];fe=((Nc=a.gerritChanges)!=null?Nc:[]).map(function(zh){return Wq(zh)});a.gerritChanges=vq([].concat(q(fe),q(r))).map(Xq).filter(Qm)}break;
case "hotlists":if(b.actionType==="REMOVE"){var ep,Iw,XK=new Set((Iw=(ep=b.value)==null?void 0:ep.split(",").map(Number))!=null?Iw:[]),Cl,Xz;a.hotlistId=(Xz=(Cl=a.hotlistId)==null?void 0:Cl.filter(function(zh){return!XK.has(zh)}))!=null?Xz:[]}else{var bX,i9;r=(i9=(bX=b.value)==null?void 0:bX.split(",").map(Number))!=null?i9:[];var j9;a.hotlistId=vq([].concat(q((j9=a.hotlistId)!=null?j9:[]),q(r)))}break;case "inProd":a.inProd=b.value==="true";break;case "isArchived":a.isArchived=b.value==="true";break;
case "isDeleted":a.isDeleted=b.value==="true";break;case "parentId":break;case "priority":a.priority=b.value;break;case "readState":break;case "reporter":a.reporter=b.value||"";break;case "severity":a.severity=b.value;break;case "sloEndTime":(r=b.value?Mm(b.value):null)?a.sloEndTime={seconds:r,nanos:0}:a.sloEndTime=null;break;case "sloSnoozeType":b.value?a.sloSnoozeType=b.value:a.sloSnoozeType=null;break;case "sloStartTime":b.actionType==="REMOVE"?a.sloStartTime=null:(r=Mm(b.value))?a.sloStartTime=
{seconds:r,nanos:0}:a.sloStartTime=null;break;case "staffing":var k9;a.staffing=(k9=b.staffingValue)!=null?k9:null;break;case "status":a.setStatus(b.value);break;case "targetedToVersion":if(b.actionType==="REMOVE"){var cX,Sx;a.targetedToVersion=(Sx=(cX=a.targetedToVersion)==null?void 0:cX.filter(function(zh){return zh!==b.value}))!=null?Sx:[]}else{r=b.value!=null?[b.value]:[];var Tx;a.targetedToVersion=vq([].concat(q((Tx=a.targetedToVersion)!=null?Tx:[]),q(r)))}break;case "title":a.title=b.value||
"";break;case "type":a.type=b.value;break;case "verifiedInVersion":if(b.actionType==="REMOVE"){var $N,aO;a.verifiedInVersion=(aO=($N=a.verifiedInVersion)==null?void 0:$N.filter(function(zh){return zh!==b.value}))!=null?aO:[]}else{r=b.value!=null?[b.value]:[];var dX;a.verifiedInVersion=vq([].concat(q((dX=a.verifiedInVersion)!=null?dX:[]),q(r)))}break;case "verifier":a.verifier=b.value||null;break;default:wb(b.fieldName)}},zmd=function(a){for(var b=[],c=m(Object.values(a.customFieldMap)),d=c.next();!d.done;d=
c.next()){d=d.value;var e=wmd(a,d.customFieldId);if(!mm(e?Uq(e):null,Uq(d))){if(e=Vq(d))d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalIssue){c=a.originalIssue.snapshot[0];UR(um(c.assigneeUser),a.assignee,"assignee",b);UR(c.componentId,a.componentId,"componentId",b);UR(c.deletionReason,a.deletionReason,"deletionReason",b);UR(c.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);UR(c.inProd,a.inProd,"inProd",b);UR(c.isArchived,
a.isArchived,"isArchived",b);UR(c.isDeleted,a.isDeleted,"isDeleted",b);UR(c.priority,a.priority,"priority",b);UR(um(c.reporterUser),a.reporter,"reporter",b);UR(c.severity,a.severity,"severity",b);UR(c.status,a.status,"status",b);UR(c.title,a.title,"title",b);UR(c.type,a.type,"type",b);UR(um(c.verifierUser),a.verifier,"verifier",b);var f,g,k,l;UR((k=(f=c.sloStartTime)==null?void 0:f.seconds)!=null?k:null,(l=(g=a.sloStartTime)==null?void 0:g.seconds)!=null?l:null,"sloStartTime",b);var r,w,x,C;UR((x=
(r=c.sloEndTime)==null?void 0:r.seconds)!=null?x:null,(C=(w=a.sloEndTime)==null?void 0:w.seconds)!=null?C:null,"sloEndTime",b);UR(c.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var H,J;UR((J=(H=c.effort)==null?void 0:H.estimate)!=null?J:null,a.effortEstimate,"effortEstimate",b);VR(wm(c.ccUsers).map(um),a.cc,"ccs",b);VR(wm(c.collaboratorsUsers).map(um),a.collaborators,"collaborators",b);xmd(c.staffing,a.staffing,b);VR(c.changelist,a.changelist,"changelists",b);ymd(c.gerritChanges,a.gerritChanges,
b);VR(c.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);VR(c.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);VR(c.foundInVersion,a.foundInVersion,"foundInVersion",b);VR(c.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);VR(c.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);VR(c.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},UR=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:b!=null?String(b):void 0})},VR=function(a,
b,c,d){var e=ARa(b||[],new Set(a));a=ARa(a||[],new Set(b));e=m(e);for(b=e.next();!b.done;b=e.next())d.push({fieldName:c,value:String(b.value),actionType:"ADD"});e=m(a);for(a=e.next();!a.done;a=e.next())d.push({fieldName:c,value:String(a.value),actionType:"REMOVE"})},ymd=function(a,b,c){var d=Z1a(b!=null?b:[],a!=null?a:[]);a=Z1a(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"})},xmd=function(a,b,c){var d,e=eVa((d=b==null?void 0:b.plannedAllocations)!=null?d:[]),f,g=eVa((f=a==null?void 0:a.plannedAllocations)!=null?f:[]);a=[].concat(q(e.entries())).filter(function(k){var l=m(k);k=l.next().value;l=l.next().value;var r,w=new (Function.prototype.bind.apply(Set,[null,((r=g.get(k))!=null?r:[]).map(function(x){return qo(x)})]));return!g.has(k)||l.some(function(x){return!w.has(qo(x))})}).map(function(k){k=m(k);k.next();return k.next().value});
b=a.map(function(k){var l=k[0];return l.user?qo(l,k.length>1):l.placeholder?"Placeholder: "+l.placeholder.count+" "+l.placeholder.role:""}).join(", ");d=[].concat(q(g.entries())).filter(function(k){k=m(k).next().value;return!e.has(k)}).map(function(k){k=m(k);k.next();return k.next().value});f=d.map(function(k){k=m(k).next().value;if(k.user){var l;return(l=k.user.user)==null?void 0:l.emailAddress}return k.placeholder?"Placeholder: "+k.placeholder.role:""}).join(", ");a.length&&c.push({fieldName:"staffing",
staffingValue:{plannedAllocations:a.flat()},actionType:"ADD",value:b});d.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:d.flat()},actionType:"REMOVE",value:f})};h=smd.prototype;
h.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b||"";break;case "DATE":this.customFieldMap[a].dateValue=b||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue={values:b};break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=
{values:b};break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue={values:b};break;default:Xm("Unexpected custom field type: "+c)}}};
h.setCustomFieldValue=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b.textValue||"";break;case "DATE":this.customFieldMap[a].dateValue=b.dateValue||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b.enumValue||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b.numericValue;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue=b.repeatedTextValue;
break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=b.repeatedDateValue;break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue=b.repeatedEnumValue;break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue=b.repeatedNumericValue;break;default:Xm("Unexpected custom field type: "+c)}}};h.setIsDeleted=function(a){this.isDeleted=a};h.setIsArchived=function(a){this.isArchived=a};h.setDeletionReason=function(a){this.deletionReason=a};
h.setReporter=function(a){this.reporter=a};h.setType=function(a){this.type=a};h.setPriority=function(a){this.priority=a};h.setSeverity=function(a){this.severity=a};h.setAssignee=function(a){this.assignee=a;a=jo.get(this.status);!this.assignee&&this.originalIssue&&(a==null?void 0:a.assigneeRequirement)==="REQUIRED"?this.status="NEW":this.assignee&&this.status!=="FIXED"&&this.status!=="VERIFIED"&&(this.status="ASSIGNED")};
h.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalIssue&&um(this.originalIssue.snapshot[0].verifierUser)&&this.originalIssue.snapshot[0].status==="VERIFIED"&&(this.status="FIXED")};
h.setStatus=function(a){this.status=a;a=jo.get(this.status);(a==null?void 0:a.assigneeRequirement)==="FORBIDDEN"&&this.assigneeUser?this.assignee="":(a==null?void 0:a.assigneeRequirement)!=="REQUIRED"||this.assigneeUser||(this.assignee=this.currentUserEmail);this.status!=="VERIFIED"||this.verifier||(this.verifier=this.currentUserEmail)};h.setInProd=function(a){this.inProd=a};h.setCollaborators=function(a){this.collaborators=a};h.setStaffing=function(a){this.staffing=a};
h.setSloEndTime=function(a){this.sloEndTime=a};h.setSloSnoozeType=function(a){this.sloSnoozeType=a};h.setCodeChanges=function(a){var b=[],c=[];a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Xq(d);e?b.push(e):c.push(d)}this.changelist=c!=null?c:[];this.gerritChanges=b!=null?b:[]};
var wmd=function(a,b){return a.originalIssue?(a=(a.originalIssue.snapshot[0].customField||[]).find(function(c){return c.customFieldId===b}))?a:null:null},Dmb=function(a,b){var c=[];b!==void 0&&!b&&a.changelist&&c.push.apply(c,q(a.changelist));a.gerritChanges&&c.push.apply(c,q(a.gerritChanges.filter(function(d){return d.state==="MERGED"}).map(function(d){return Wq(d)})));return c},Amd=function(a){return a.gerritChanges?a.gerritChanges.filter(function(b){return b.state==="PENDING"}).map(function(b){return Wq(b)}):
[]},umd=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};
umd.prototype.isRepeated=function(){return this.type==null?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var Bmd=new Map([["assignee",function(a,b){a.assigneeUser=ym(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(ym).filter(Qm)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=ym(b.reporter)}],["verifier",function(a,b){a.verifierUser=ym(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 WR=function(){this.$window=p(hR)};WR.\u0275fac=function(a){return new (a||WR)};WR.\u0275prov=Fc({token:WR,factory:WR.\u0275fac,providedIn:"root"});var YR=function(){this.session=p(qu);this.baseDocumentationUrl=this.session.getDocumentationBaseUrl()},ls=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},Cmd=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"};
YR.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 Dmd=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":ls(a)},Nhb=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-external-access"},Emd=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-public-access"},Fmd=function(a){if(a=Emd(a))return a+"#recommended-access-settings"},Gmd=function(a){if(a=Emd(a))return a+"#fully-public-component"},Hmd=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"},s5b=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},mu=function(){return"http://go/buganizer-retention"};YR.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 Hdc=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"},Imd=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};YR.\u0275fac=function(a){return new (a||YR)};YR.\u0275prov=Fc({token:YR,factory:YR.\u0275fac,providedIn:"root"});var Jmd=function(){this.dialogRef=p(NA);this.data=p(PA);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};Jmd.\u0275fac=function(a){return new (a||Jmd)};
Jmd.\u0275cmp=D({type:Jmd,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&&(K(0,"h1",0),Q(1),L(),M(2,"div",1),K(3,"div",2),F(4,w7a,2,1,"button",3),K(5,"button",4),N("click",
function(){return b.dialogRef.close(!0)}),Q(6),L()());a&2&&(B(),yg(b.data.title),B(),I("innerHTML",b.data.content,Oe),B(2),G(b.showCancelButton?4:-1),B(),I("color",b.confirmButtonTheme),B(),S(" ",b.confirmButtonText," "))},dependencies:[gB,cB,TA,VA,UA],encapsulation:2});var ZR=function(){this.dialog=p(QA)},Kmd=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
ZR.prototype.open=function(a){var b=a.title;var c=a.content;var d=a.onConfirm;var e=a.onDismiss;OA(this.dialog.open(Jmd,{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()})};ZR.\u0275fac=function(a){return new (a||ZR)};ZR.\u0275prov=Fc({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});var $R=function(){this.activeSession=p(qu);this.documentationLinks=p(YR);this.confirmationDialogService=p(ZR)},Mmd=function(a,b){return new Promise(function(c){Lmd(a,b,function(){c(!0)},function(){c(!1)})})},Lmd=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Bh("");if(b==="VULNERABILITY")e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Dh([Bh('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}),Eh("a",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more")]);else if(b==="PRIVACY_ISSUE"){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var g={};f=Dh([Bh('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}),Eh("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),Bh(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),Eh("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Bh(". Incidents should be filed at ",{preserveNewlines:!0}),Eh("a",(g.href="http://goto.google.com/privacy-incidents",g.target="_blank",g),"go/privacy-incidents"),Bh(".\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(){}})}};$R.\u0275fac=function(a){return new (a||$R)};$R.\u0275prov=Fc({token:$R,factory:$R.\u0275fac,providedIn:"root"});var Nmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Nmd.messageId)};Y(Nmd,W);Nmd.messageId="b.TimeZoneDataList";var aS=function(){var a=this;this.executor=p(ZN);this.activeSession=p(qu);this.cachedDisplayNames=void 0;this.memoizedTimezones=new Ijd(function(b){a:{var c=m(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?ee(c):a.executor.get({url:"action/timezone/"+encodeURIComponent(b),responseConstructor:Un}).pipe(A(URa))},10)};aS.prototype.get=function(a){return this.memoizedTimezones.get(a)};
var Omd=function(a){return a.cachedDisplayNames?ee(pm(a.cachedDisplayNames)):a.executor.get({url:"action/timezone",responseConstructor:Nmd}).pipe(A(function(b){b=Ci(b,Un,1,Di(),jb).map(function(c){c=URa(c);var d=pUc(Rk(c,new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}});return a.cachedDisplayNames=b}))};aS.\u0275fac=function(a){return new (a||aS)};aS.\u0275prov=Fc({token:aS,factory:aS.\u0275fac,providedIn:"root"});var Pmd=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"]]),Qmd=["P0","P1","P2","P3","P4"],Rmd="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE INACTIVE".split(" "),Smd="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),Tmd=["HIGH","MEDIUM","LOW","ZERO"],Umd=["SWE","SRE","PM","TPGM","UX"],Vmd="SWE SRE PM TPGM UX UXD UXR DATASCI LD DEVREL TW GTM CE OTHER".split(" "),
Wmd=["S0","S1","S2","S3","S4"],Xmd=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]),Ymd=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"]]),Zmd=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"]]),z7a=new Set("PROGRAM PROJECT MILESTONE FEATURE EPIC STORY TASK".split(" ")),$md=Smd.map(function(a){return{value:a,displayText:zm(a),altText:Pmd.get(a),icon:Zmd.get(a),group:A7a(a)?1:0}}),bS=function(){this.priorities=Qmd;this.severities=Wmd;this.editIssueTypes=Smd;this.editIssueTypeChoices=$md;this.issueTypesDisplayNames=Ymd;this.issueTypesShortDescriptions=Pmd;this.issuePrioritiesDisplayNames=Xmd;this.issueTypeIcons=Zmd;
this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}];this.isWTDMType=A7a};bS.\u0275fac=function(a){return new (a||bS)};bS.\u0275prov=Fc({token:bS,factory:bS.\u0275fac,providedIn:"root"});var cS=function(){var a=p(dR),b=p(aS),c=p(bS);Z.call(this);var d=this;this.errorHandler=p(kO);this.cachedFormatters=new Map;this.userPrefs=GN.dateTimePreferences;this.formatPrefChange$=new sf;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(Bf(d.destroyed$));return ie(f).then(function(g){return{name:e.name,timeZone:g}})})).then(function(e){e=m(e);for(var f=e.next();!f.done;f=
e.next())f=f.value,d.timeZones[f.name]=f.timeZone;a.preferences$.pipe(Bf(d.destroyed$)).subscribe(function(g){g.dateTimePreferences&&(g=g.dateTimePreferences,d.userPrefs=g,d.userTimeZone=d.timeZones[g.timeZone],d.formatPrefChange$.next())})}).catch(function(e){d.errorHandler.errorHandler(null,e)})};Y(cS,Z);cS.\u0275dir=Z.\u0275dir;cS.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new nl(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var and=function(a,b){return a.formatPrefChange$.subscribe(b)};cS.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};cS.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};cS.\u0275fac=function(a){return new (a||cS)};cS.\u0275prov=Fc({token:cS,factory:cS.\u0275fac,providedIn:"root"});var dS=function(){this.dateFormatter=p(cS)};
dS.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(Tq(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(Tq(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};dS.\u0275fac=function(a){return new (a||dS)};dS.\u0275prov=Fc({token:dS,factory:dS.\u0275fac,providedIn:"root"});var eS=function(){this.customFieldFormatter=p(dS);this.hotlistFridge=p(gP);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"]},dnd=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e;b.bulkEditOps&&(e=y7a(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=x7a(b.bulkEditOps));b=bnd(f).map(function(g){return cnd(a,g,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?e.length==1?b+" on 1 issue.":b+(" on "+e.length+" issues."):
b+"."},bnd=function(a){var b=[],c=[];a=m(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)},cnd=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=b.customFieldValue,e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):b.fieldName==="effortEstimate"&&d?e=d:e=a.FIELD_TEXT_MAP[b.fieldName]||
b.fieldName;b.fieldName==="hotlists"?f=b.value.split(",").map(function(g){var k,l;return(k=(l=a.hotlistFridge.peek(String(g)))==null?void 0:l.name)?"'"+k+"'":g}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?hj(f.replace(/_/g," ").toLowerCase()):"");return b.actionType==="ADD"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):b.actionType==="REMOVE"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):b.actionType==="ADD"&&
b.fieldName==="parentId"?"Added child issue(s) to parent ["+f+"]":b.actionType==="REMOVE"&&b.fieldName==="parentId"?"Unlinked child issue(s) from parent ["+f+"]":b.actionType||b.fieldName!=="status"?b.actionType||b.fieldName!=="comment"?b.actionType||b.fieldName!=="attachments"?b.actionType||b.fieldName!=="sloStartTime"?b.actionType||b.fieldName!=="sloEndTime"?b.actionType==="ADD"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(g){return g.changeNumber}).join(", "),'"'+f+'" added to '+e):
b.actionType==="REMOVE"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(g){return g.changeNumber}).join(", "),'"'+f+'" removed from '+e):b.actionType!=="ADD"||b.customFieldValue?b.actionType!=="REMOVE"||b.customFieldValue?b.fieldName==="isArchived"?b.value==="true"?"Archived successfully":"Unarchived successfully":e+' set to "'+f+'"':(f=f.replace(/,/g,", "),'"'+f+'" removed from '+e):(f=f.replace(/,/g,", "),'"'+f+'" added to '+e):b.value?"SLO End Time Set":"SLO End Time Unset":b.value?"SLO Start Time Set":
"SLO Start Time Unset":"":"Comment added":'Status set to "'+jo.get(b.value).displayValue+'"'};eS.\u0275fac=function(a){return new (a||eS)};eS.\u0275prov=Fc({token:eS,factory:eS.\u0275fac,providedIn:"root"});var C7a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(C7a,W);C7a.prototype.getContentJudgement=function(){return X(this,Lr,2)};C7a.prototype.setContentJudgement=function(a){return Ni(this,Lr,2,a)};var end=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(end,W);end.prototype.getIssueId=function(){return pn(this,1)};end.prototype.getIssueId_asString=function(){return nn(this,1)};end.prototype.setIssueId=function(a){return Kn(this,1,a)};var fnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fnd,W);h=fnd.prototype;h.getFilename=function(){return vi(this,1)};h.setFilename=function(a){return pj(this,1,a)};h.getMimeType=function(){return vi(this,2)};h.setMimeType=function(a){return pj(this,2,a)};h.getSize=function(){return pn(this,5)};h.setSize=function(a){return wn(this,5,a)};var fS=function(){this.activeSession=p(qu)},gnd=function(a){var b;if((a=(b=a.activeSession.getTracker())==null?void 0:b.trackerId)&&a!=="0")return[a]},dt=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:hnd(a,b,!0,c.trackerId,d)):a=hnd(a,b,!1,"",d);return a},hnd=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},fu=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}},ind=function(a,b){return b?a.filter(function(c){return c.trackerId===b}):a};
fS.\u0275fac=function(a){return new (a||fS)};fS.\u0275prov=Fc({token:fS,factory:fS.\u0275fac,providedIn:"root"});var gS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,gS.messageId)};Y(gS,W);gS.prototype.getIt=function(){return X(this,Oo,14,jb)};gS.prototype.setIt=function(a){return Ni(this,Oo,14,a,jb)};gS.messageId="b.Attachment";var hS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hS.messageId)};Y(hS,W);hS.prototype.getAttachmentsList=function(){return Ci(this,gS,1,Di(),jb)};hS.prototype.setAttachmentsList=function(a){return Oi(this,1,a,jb)};hS.prototype.addAllAttachments=function(a){Op(this,1,gS,a,jb)};hS.messageId="b.CreateAttachmentsResponse";var jnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jnd.messageId)};Y(jnd,W);jnd.prototype.getErrorMessage=function(){return vi(this,2,void 0,jb)};jnd.prototype.setErrorMessage=function(a){pj(this,2,a,jb)};jnd.messageId="b.EncryptedMediaResponse";var iS=function(){this.executor=p(dO);this.httpClient=p(vy);this.activeSession=p(qu);this.trackerHelpers=p(fS)},knd=function(a,b){var c=(new fnd).setFilename(b.filename).setMimeType(b.mimeType);b.encryptedBlobId!=null&&pj(c,3,b.encryptedBlobId);pj(c,4,b.docId);b.size!=null&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:jnd}).then(B7a)},mnd=function(a,b,c){var d=lnd(a)+("/download/attachment/"+b+"/"+c);return pe(function(){return fetch(d,
{credentials:"include",mode:"no-cors"})}).pipe(Af(function(){return a.httpClient.get(d,{observe:"events",responseType:"arraybuffer",withCredentials:!0}).pipe(A(function(e){if(e instanceof qy&&e.body)return e.body}))}))},lnd=function(a){var b=/(g?bugs-qa\.chromium\.org)/,c=/g-issues\.(.*)\.(.*)\/$/,d=/[^-]issues\.(.*)\.(.*)\/$/,e=dt(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()?ws(a.activeSession)?"https://buganizer.usercontent.corp.google.com":"https://buganizer-qa.usercontent.corp.google.com":SN(a.activeSession)?ws(a.activeSession)?"https://partnerissuetracker.usercontent.corp.google.com":"https://partnerissuetracker-qa.usercontent.corp.google.com":ws(a.activeSession)?"https://issuetracker.usercontent.google.com":"https://issuetracker-qa.usercontent.corp.google.com"};
iS.\u0275fac=function(a){return new (a||iS)};iS.\u0275prov=Fc({token:iS,factory:iS.\u0275fac,providedIn:"root"});var jS=function(){this.executor=p(dO)};jS.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})};jS.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:gS}).then(E7a)};
jS.\u0275fac=function(a){return new (a||jS)};jS.\u0275prov=Fc({token:jS,factory:jS.\u0275fac,providedIn:"root"});var nnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nnd,W);h=nnd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getComment=function(){return X(this,Mp,2)};h.setComment=function(a){return Ni(this,Mp,2,a)};h.setSignificanceOverride=function(a){return Im(this,3,a)};h.getContentJudgement=function(){return X(this,Jo,4)};
h.setContentJudgement=function(a){return Ni(this,Jo,4,a)};var ond=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ond,W);h=ond.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCommentNumber=function(){return Cm(this,2)};h.setCommentNumber=function(a){return an(this,2,a)};var pnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pnd,W);h=pnd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCommentNumber=function(){return Cm(this,2)};h.setCommentNumber=function(a){return an(this,2,a)};h.getComment=function(){return X(this,Mp,3)};h.setComment=function(a){return Ni(this,Mp,3,a)};var qnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qnd,W);h=qnd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getCommentNumber=function(){return Cm(this,2)};h.setCommentNumber=function(a){return an(this,2,a)};h.getRestrictedRetention=function(){return xi(this,3)};h.setRestrictedRetention=function(a){return Im(this,3,a)};var kS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,kS.messageId)};Y(kS,W);kS.prototype.getIt=function(){return X(this,fp,2,jb)};kS.prototype.setIt=function(a){return Ni(this,fp,2,a,jb)};kS.messageId="b.CommentReaction";var rnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rnd,W);rnd.prototype.getIt=function(){return X(this,nnd,5)};rnd.prototype.setIt=function(a){return Ni(this,nnd,5,a)};var lS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,lS.messageId)};Y(lS,W);lS.prototype.getIt=function(){return X(this,Mp,19,jb)};lS.prototype.setIt=function(a){return Ni(this,Mp,19,a,jb)};lS.messageId="b.IssueComment";var snd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(snd,W);snd.prototype.getIssueCommentsList=function(){return Ci(this,Mp,1,Di())};var tnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,tnd.messageId)};Y(tnd,W);tnd.prototype.getIt=function(){return X(this,snd,2,jb)};tnd.prototype.setIt=function(a){return Ni(this,snd,2,a,jb)};tnd.messageId="b.ListIssueCommentHistoryResponse";var und=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(und,W);und.prototype.getIt=function(){return X(this,pnd,5)};und.prototype.setIt=function(a){return Ni(this,pnd,5,a)};var vnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vnd,W);vnd.prototype.getIt=function(){return X(this,qnd,4)};vnd.prototype.setIt=function(a){return Ni(this,qnd,4,a)};var mS=function(){this.executor=p(ZN)};h=mS.prototype;h.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(TYa(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:lS}).pipe(A(x1a))};
h.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new nnd).setIssueId(a).setComment((new Mp).setComment(b).setFormattingMode(mp(c)));d&&b.setContentJudgement(kWa(d));d=(new rnd).setIt(b);return this.executor.post({url:"action/issues/"+a+"/comment",body:d,responseConstructor:null,options:{headers:f}})};
h.update=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new und).setIt((new pnd).setIssueId(a).setCommentNumber(b).setComment((new Mp).setComment(c).setFormattingMode(mp(d))));return this.executor.post({url:"action/issues/"+a+"/updateComment",body:b,options:{headers:f},responseConstructor:null})};h.delete=function(a,b,c,d){return this.executor.delete({url:"action/issues/"+a+"/comment/"+b,options:{params:{reason:c},headers:{"If-Match":d}},responseConstructor:null})};
h.undelete=function(a,b,c){var d={};c!==void 0&&(d.comment_version=String(c));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:d},responseConstructor:lS}).pipe(A(x1a))};h.listHistory=function(a,b){var c=(new ond).setIssueId(a).setCommentNumber(b);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/listIssueCommentHistory",body:c,responseConstructor:tnd}).pipe(A(y1a))};
h.updateCommentReaction=function(a){var b=a.issueId;var c=a.commentId;var d=a.reactionType;var e=a.hasReacted;var f;a=new kS;var g=a.setIt,k=new fp;d=(new np).setType((f=gcd[d])!=null?f:0);f=$o(d,1,e);f=g.call(a,Pp(k,2,np,f));return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:kS}).pipe(A(z1a))};
h.updateRetention=function(a,b,c){c=(new vnd).setIt((new qnd).setIssueId(a).setCommentNumber(b).setRestrictedRetention(xWa(c)));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:lS}).pipe(A(x1a))};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275prov=Fc({token:mS,factory:mS.\u0275fac,providedIn:"root"});var nS=function(){this.observableApi=p(mS)};h=nS.prototype;h.get=function(a,b,c){return ie(this.observableApi.get(a,b,c))};
h.create=function(a,b,c,d,e){return ie(this.observableApi.create(a,b,c,d,e))};h.update=function(a,b,c,d,e){return ie(this.observableApi.update(a,b,c,d,e))};h.delete=function(a,b,c,d){return ie(this.observableApi.delete(a,b,c,d))};h.undelete=function(a,b,c){return ie(this.observableApi.undelete(a,b,c))};h.listHistory=function(a,b){return ie(this.observableApi.listHistory(a,b))};h.updateCommentReaction=function(a){return ie(this.observableApi.updateCommentReaction(a))};
h.updateRetention=function(a,b,c){return ie(this.observableApi.updateRetention(a,b,c))};nS.\u0275fac=function(a){return new (a||nS)};nS.\u0275prov=Fc({token:nS,factory:nS.\u0275fac,providedIn:"root"});var wnd=function(){this.dialogRef=p(NA);this.data=p(PA);this.documentationLinks=p(YR);this.userEmails=this.data.userEmails;this.readMoreLink=this.documentationLinks.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings"};wnd.prototype.close=function(a){this.dialogRef.close(a)};wnd.\u0275fac=function(a){return new (a||wnd)};
wnd.\u0275cmp=D({type:wnd,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&&(K(0,"div",0)(1,"h1",1),Q(2,"User may not have access"),L(),K(3,"section",2)(4,
"p"),Q(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),L(),K(6,"ul"),Of(7,G7a,2,1,"li",null,Nf),L(),K(9,"section"),Q(10,"Continue anyway?"),L()(),K(11,"footer",3)(12,"div",4)(13,"a",5),Q(14,"Learn more"),L()(),K(15,"button",6),N("click",function(){return b.close(!0)}),Q(16,"Continue"),L(),K(17,"button",7),N("click",function(){return b.close(!1)}),Q(18,"Cancel"),L()()());a&2&&(B(7),Pf(b.userEmails),B(6),I("href",b.readMoreLink,Pe))},dependencies:[gB,
cB,TA,VA,UA],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var oS=function(){this.matDialogService=p(QA);this.analytics=p(aQ);this.butterBar=p(QN);this.logger=p(iO);this.accessPolicy=p(FO)},ynd=function(a,b){var c=b.componentId;var d=b.userEmails;var e=b.relation;var f=b.analyticsEventLabel;var g,k,l;return y(function(r){switch(r.nextAddress){case 1:if(d.every(function(w){return w.length===0}))return r.return(!0);Yd(r,2);return z(r,xnd(a,c,d,e),4);case 4:g=r.yieldResult;if(g.length===0)return r.return(!0);a.analytics.trackEvent("addUserWithoutAccess","warn",
f);return z(r,a.confirm(g,e),5);case 5:k=r.yieldResult;if(!k)return Pr(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent("addUserWithoutAccess","cancel",f),r.return(!1);a.analytics.trackEvent("addUserWithoutAccess","proceed",f);return r.return(!0);case 2:return l=be(r),a.logger.error(l),r.return(!1)}})},xnd=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(q(e.noAccessEmails||
[]),q(e.unknownEmails||[])))})};oS.prototype.confirm=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return d={userEmails:a,relation:b},e=c.matDialogService.open(wnd,{width:"400px",data:d}),z(g,ie(OA(e)),2);f=g.yieldResult;return g.return(!!f)})};oS.\u0275fac=function(a){return new (a||oS)};oS.\u0275prov=Fc({token:oS,factory:oS.\u0275fac,providedIn:"root"});var znd=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};znd.prototype.cancel=function(){this.state=4};var And={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var pS=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};pS.prototype.reset=function(){this.value="";Bnd(this)};var Bnd=function(a){for(var b=m(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},Cnd=function(a){return a.fromTemplate&&a.initialComment===a.value};
pS.prototype.getAttachments=function(){for(var a=[],b=m(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(pm(c.blobRef));return a};pS.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var Dnd=function(a){return!a.isEmpty()&&!b6b(a)};pS.prototype.isEmpty=function(){return!this.value&&!End(this)};
var b6b=function(a){return a.uploads.some(function(b){return b.state===1||b.state===3})},End=function(a){return a.uploads.some(function(b){return b.state===2})};var qS=function(){var a=this;this.userPreferencesManager=p(dR);this.timeZonesApi=p(aS);this.cachedFormatters=new lfd(100);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(A(function(b){return b.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(A(function(b){return b.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(Af(function(b){return b.timeZone?a.timeZonesApi.get(b.timeZone):ee(void 0)}))};
qS.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d===void 0&&(d=new nl(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};qS.prototype.formatUserCalendar=function(a){var b=this;return le([this.userCalendarFormat$,this.userTimeZone$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
qS.prototype.formatUserTime=function(a){var b=this;return le([this.userTimeFormat$,this.userTimeZone$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var Fnd=function(a,b){return le([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},Gnd=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(A(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):ee(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},Kqb=function(a,b){var c=void 0;c=c===void 0?0:c;b=b===void 0?!1:b;var d=new rm;c&&d.setTime(c);c=new rm;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 PF("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new PF(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"};qS.\u0275fac=function(a){return new (a||qS)};qS.\u0275prov=Fc({token:qS,factory:qS.\u0275fac,providedIn:"root"});var rS=new fd("routeParams",{factory:function(){return p(SQ).params}});var sS=function(){this.routeParams=p(rS);this.issueComments=p(nS);this.draftStore=p(WR);this.errorHandler=p(kO);this.activeSession=p(qu);this.dateFormatter=p(qS)};
sS.prototype.get=function(a){var b=this;if(this.routeParams.comment)return ee(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Number(this.routeParams.template_comment)||1;return pe(function(){return Hnd(b,c,d,b.routeParams.do_attribution)})}return a?ee(this.draftStore.$window.sessionStorage.getItem(Jr(a))||""):ee("")};
var Hnd=function(a,b,c,d){var e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return Yd(x,2),z(x,a.issueComments.get(b,c),4);case 4:return e=x.yieldResult,f=e.unlinkifiedComment,g=e.formattedComment,k="",f?k=f:g&&(k=YTa(g)),z(x,ie(a.dateFormatter.formatUserCalendar(new Date(Number(e.lastModified)/1E3))),5);case 5:return l=x.yieldResult,d?(r="> From issue "+b+" on "+l+":",x.return(r+"\n\n"+k)):x.return(k);case 2:return w=be(x),mO(a.errorHandler,w),x.return("")}})};
sS.\u0275fac=function(a){return new (a||sS)};sS.\u0275prov=Fc({token:sS,factory:sS.\u0275fac,providedIn:"root"});var Ind=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 zr(f.comment$)};this.judgementForNewContent=function(){return zr(f.judgementForNewContent$)};this.issue$=this.issueFullFridge.watch(this.issueId);this.componentId$=this.issue$.pipe(A(function(g){return g==null?void 0:g.snapshot[0].componentId}),pf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(zf(""),
pf(),Ef(this.userPreferencesManager.currentCommentFormattingMode$),A(function(g){var k=m(g);g=k.next().value;k=k.next().value;g=new pS(g);g.formattingMode=k;return g}),xf({bufferSize:1,refCount:!0}));this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.componentJudgementForNewContent$=this.componentId$.pipe(A(function(g){if(g&&f.createRestrictedResourcesComponentIds.includes(g))return{severity:"RESTRICTED",judgementReason:"None Specified"}}),
xf({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new Nj(void 0);this.judgementForNewContent$=le([this.componentJudgementForNewContent$.pipe(zf(void 0)),this.userDefinedJudgementForNewContent$]).pipe(A(function(g){var k=m(g);g=k.next().value;k=k.next().value;return k!=null?k:g}),xf({bufferSize:1,refCount:!0}))};Ind.prototype.setJudgementForNewContent=function(a){this.userDefinedJudgementForNewContent$.next(a)};
var Jnd=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=m(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,f.state===2&&f.blobRef&&(f=pm({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},Knd=function(a){var b=
Jnd(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},tS=function(){this.defaultCommentSource=p(sS);this.issueFullFridge=p(cQ);this.activeSession=p(qu);this.userPreferencesManager=p(dR)};tS.prototype.create=function(a){return new Ind(a,this.defaultCommentSource,this.issueFullFridge,this.activeSession,this.userPreferencesManager)};
tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275prov=Fc({token:tS,factory:tS.\u0275fac,providedIn:"root"});var uS=function(){this.activeSession=p(qu)},vS=function(a,b){var c,d;return((c=b.componentPathInfo)==null?void 0:(d=c.allCustomField)==null?void 0:d.filter(function(e){return Atb(a,e.type)}))||[]},Atb=function(a,b){switch(b){case "TEAM":case "REPEATED_TEAM":return a.activeSession.getFlag("enableCustomFieldTypeTeamUI");case "PRODUCT":case "REPEATED_PRODUCT":return a.activeSession.getFlag("enableCustomFieldTypeProductUI");case "USER":case "REPEATED_USER":return a.activeSession.getFlag("enableCustomFieldTypeUserUI");
default:return!0}};uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275prov=Fc({token:uS,factory:uS.\u0275fac,providedIn:"root"});var K7a=[{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"}],L7a=[{customFieldId:192850,name:"Start Date"},{customFieldId:192876,name:"End Date"},{customFieldId:194618,name:"Risk"},{customFieldId:207778,name:"Commitment Level"},{customFieldId:218363,name:"Requirements doc"},
{customFieldId:218337,name:"Design doc"},{customFieldId:218261,name:"Mocks url"}];var wS=function(){};wS.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var xS=function(a){return!!a&&!!a.targetTime&&a.targetTime.seconds!==0},Lnd=function(a){return xS(a.assignmentBounds)||xS(a.responseBounds)||xS(a.closureBounds)},Mnd=function(a,b){switch(b){case "ASSIGNMENT":return xS(a.assignmentBounds);case "RESPONSE":return xS(a.responseBounds);case "CLOSURE":return xS(a.closureBounds);default:return Lnd(a)}},Nnd=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&N7a(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&N7a(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&N7a(b,c,a.closureBounds,"CLOSURE");return b.length>0?(b.sort(O7a),b[0]):c.length>0?(c.sort(O7a),{sloBounds:c[0].sloBounds,sloMetric:""}):null};wS.\u0275fac=function(a){return new (a||wS)};wS.\u0275prov=Fc({token:wS,factory:wS.\u0275fac,providedIn:"root"});var Ond=function(a,b,c,d,e,f){var g=this;this.issueId=a;this.issueFullFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.customFieldHelper=f;this.enableNonWtdmFieldPerTypeVisibility=this.activeSession.getFlag("enableNonWtdmFieldPerTypeVisibility")||!1;var k=M7a({isInternal:this.activeSession.isInternalSession(),isProd:ws(this.activeSession)});this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issue$=
this.issueFullFridge.watch(this.issueId);this.issueSnapshot$=this.issue$.pipe(A(function(l){return l==null?void 0:l.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(A(function(l){var r;return l==null?void 0:(r=l.aggregatedData)==null?void 0:r.sloStatus}),A(function(l){return!!l&&Lnd(l)}));this.isWtdmType$=this.issueSnapshot$.pipe(A(function(l){return(l==null?void 0:l.type)!=null&&g.constants.isWTDMType(l.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(A(function(l){return!l&&!g.enableNonWtdmFieldPerTypeVisibility}));
this.isSloStatusPrimary$=le([this.hasSloDefined$,this.isWtdmType$]).pipe(A(function(l){var r=m(l);l=r.next().value;r=r.next().value;return l||!r}));this.isSeverityPrimary$=this.isWtdmType$.pipe(A(function(l){return!l}));this.isChangelistPrimary$=le([this.isWtdmType$,this.issueSnapshot$]).pipe(A(function(l){var r=m(l);l=r.next().value;r=r.next().value;var w;return!l||!!(r==null?0:(w=r.changelist)==null?0:w.length)||(r==null?void 0:r.type)==="STORY"||(r==null?void 0:r.type)==="TASK"}));this.customFields$=
this.issue$.pipe(A(function(l){var r,w;return(w=l==null?void 0:(r=l.customFields)==null?void 0:r.filter(function(x){return Atb(g.customFieldHelper,x.type)}))!=null?w:[]}));this.visibleFields$=this.issue$.pipe(A(function(l){var r;return(r=l==null?void 0:l.visibleFields)!=null?r:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(A(function(l){return l.map(function(r){return r.customFieldId}).filter(Qm)}),A(function(l){return new Set(l)}),xf({refCount:!0,bufferSize:1}));this.visibleGlobalCustomFields$=
le([this.customFields$,this.visibleFieldIds$]).pipe(A(function(l){var r=m(l);l=r.next().value;var w=r.next().value;return new Map(l.filter(function(x){return x.shared&&w.has(x.customFieldId)}).map(function(x){return[x.customFieldId,x]}))}),A(function(l){return k.map(function(r){return l.get(r.customFieldId)}).filter(Qm)}),xf({refCount:!0,bufferSize:1}));this.visibleCustomFields$=le([this.visibleFieldIds$,this.customFields$]).pipe(A(function(l){l=m(l);var r=l.next().value;return l.next().value.filter(function(w){return!w.shared&&
r.has(w.customFieldId)})}),xf({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=le([this.visibleFieldIds$,this.customFields$]).pipe(A(function(l){l=m(l);var r=l.next().value;return l.next().value.filter(function(w){return!r.has(w.customFieldId)})}),xf({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=le([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(A(function(l){var r=m(l);l=r.next().value;var w=r.next().value;
var x=r.next().value;var C=r.next().value;r=r.next().value;return(l?0:4)+(w?0:1)+(!g.showSloStatus||x?0:1)+(!g.showChangelists||C?0:2)+r.length}),xf({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(A(function(l){return l>0}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(A(function(l){return l===1?"Show 1 additional field":"Show "+l+" additional fields"}))},yS=function(){this.issueFullFridge=p(cQ);this.constants=p(bS);this.activeSession=p(qu);this.sloStatusHelpersService=
p(wS);this.customFieldHelper=p(uS)};yS.prototype.create=function(a){return new Ond(a,this.issueFullFridge,this.constants,this.activeSession,this.sloStatusHelpersService,this.customFieldHelper)};yS.\u0275fac=function(a){return new (a||yS)};yS.\u0275prov=Fc({token:yS,factory:yS.\u0275fac,providedIn:"root"});var zS=function(){Z.apply(this,arguments);this.analytics=p(aQ);this.clearcut=p(UP);this.userActivity=p(ZP);this.stopActivityTracking$=new sf;this.issueToTrackingState=new Map;this.getState=eo(this.issueToTrackingState,P7a);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(zS,Z);
zS.\u0275dir=Z.\u0275dir;var Pnd=function(a,b){a.getState(b);a.userActivity.active$.pipe(pf(),Bf(a.stopActivityTracking$)).subscribe(function(c){return void a.onUserActiveStatusUpdate(b,c)})},Rr=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),Qnd(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)};
zS.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)){VP(this.clearcut,d,"idp-session-time");b=this.clearcut;var e=c.sessionStartTime;d=Date.now();a=(new fhd).setIssueId(a).setUserAction(1).setEnvironmentType(b.environmentType).setFrontendAccessMode(b.frontendAccessMode);var f=new ehd,g=new dhd;e=Eyc(g,1,e);d=Eyc(e,2,d);d=Ni(f,dhd,1,d);a=Ni(a,ehd,2,d);b.clearcutTransport.transport.dispatch(a);
c.sessionStartTime=Date.now()}};var ju=function(a,b,c){a.getState(b).variations.add(c)},Qnd=function(a,b,c,d){VP(a.clearcut,b,c);d=m(d);for(var e=d.next();!e.done;e=d.next())VP(a.clearcut,b,c+"-"+e.value)};zS.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(zS)))(b||zS)}}();zS.\u0275prov=Fc({token:zS,factory:zS.\u0275fac,providedIn:"root"});var Rnd={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},Snd={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},Tnd={type:"START",displayText:"Start work",description:"Change issue status to '"+Am.get("ACCEPTED")+"'"},Und={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+Am.get("FIXED")+"'"},Vnd={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+Am.get("VERIFIED")+
"'"},Wnd={type:"REOPEN",displayText:"Re-open",description:"Change issue status back to '"+Am.get("ASSIGNED")+"'"};var Ynd=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(xf({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(A(function(f){return f==null?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(A(function(f){return(f==null?void 0:f.assigneeUser)&&xm(f.assigneeUser)}),
A(Nm));this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(A(function(f){return f==null?void 0:f.componentId}),pf(),Af(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):ee(void 0)}),A(function(f){return f&&xm(f.snapshot.assigneeUser)}),xf({bufferSize:1,refCount:!0}));this.issueAssigneeQuickAction$=le([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;return e.defaultAssigneeQuickActionEnabled&&
g&&f!==g?Snd:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(A(function(f){return f&&Xnd(e,f)}))},Znd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1){switch(c.type){case "TAKE":b.status==="NEW"&&(b.status="ASSIGNED");b.assignee=a.activeSession.getUserEmail();break;case "DEFAULT_ASSIGNEE":return e.jumpTo(2);case "START":b.status="ACCEPTED";break;case "FIX":b.status="FIXED";break;case "VERIFY":b.status="VERIFIED";break;case "REOPEN":b.status=b.assignee?"ASSIGNED":"NEW";
break;default:wb(c.type)}return e.jumpTo(0)}if(e.nextAddress!=4)return z(e,ie(a.defaultAssigneeForComponent$),4);if(d=e.yieldResult)b.status==="NEW"&&(b.status="ASSIGNED"),b.assignee=d;return e.jumpTo(0)})},Xnd=function(a,b){a=a.activeSession.getUserEmail();var c=b.status;if(xm(b.verifierUser)===a&&c==="FIXED")return Vnd;if(xm(b.assigneeUser)===a)switch(c){case "ASSIGNED":return Tnd;case "ACCEPTED":return Und;default:return Wnd}switch(c){case "NEW":return Rnd;case "ASSIGNED":return Rnd;case "ACCEPTED":return Rnd;
default:return Wnd}},AS=function(){this.activeSession=p(qu);this.issueFullFridge=p(cQ);this.componentTemplatesFridge=p(SO)};AS.prototype.create=function(a){return new Ynd(a,this.activeSession,this.issueFullFridge,this.componentTemplatesFridge)};AS.\u0275fac=function(a){return new (a||AS)};AS.\u0275prov=Fc({token:AS,factory:AS.\u0275fac,providedIn:"root"});var $nd={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete"},aod=function(){this.fields=new XQ};aod.prototype.get=function(a){return this.fields.has(Q7a(a))};
var bod=function(a,b){return Bs(a.fields,Q7a(b))},Qr=function(a,b){a.fields.add(Q7a(b))},BS=function(a,b){a.fields.delete(Q7a(b))},cod=function(a){var b=[],c=[],d=[];a=m(a.fields);for(var e=a.next();!e.done;e=a.next())if(e=e.value,typeof e==="string"&&e.startsWith("customField:"))b.push(e.split(":")[1]);else{var f=void 0,g=$nd,k=(f=idd.get(g))!=null?f:new Set(Object.values(g));idd.set(g,k);k.has(e)?d.push(e):c.push(e)}return{fields:c,extraFields:d,customFields:b}};var R7a={QA:{157:[{emailAddress:"security@chromium.org"}]},PROD:{157:[{emailAddress:"security@chromium.org"}]}};var CS=function(){};CS.prototype.transform=function(a){return T7a(a)};CS.\u0275fac=function(a){return new (a||CS)};CS.\u0275pipe=ef({name:"appendDomain",type:CS,pure:!0,standalone:!1});var X7a={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"},Z7a=RegExp("(^|[/;,\\-\\s])+(\\d+)","g"),$7a=RegExp("(b|b-qa|issues)\\/(\\d+)","g"),dod=/[\u200b\u2060\u200c\u200d]/u;var DS=function(){var a=this;this.activeSession=p(qu);this.butterBar=p(QN);this.issueInteractionsTracking=p(zS);this.issueApi=p(HP);this.componentFridge=p(MO);this.permissionsFridge=p(yQ);this.eventsForIssueFridge=p(IP);this.statusMessages=p(eS);this.errorHandler=p(kO);this.confirmationDialogService=p(ZR);this.principalTypes=p(AQ);this.issuePermissionService=p(WQ);this.accessPolicy=p(FO);this.issueTypeDialog=p($R);this.logger=p(iO);this.issueFullFridge=p(cQ);this.confirmNoAccessService=p(oS);this.issueService=
p(NP);this.attachmentsMember=p(jS);this.userPreferencesManager=p(dR);this.issueComments=p(nS);this.draftStore=p(WR);this.attachmentApi=p(iS);this.issueFieldsFactory=p(yS);this.issueQuickActionsFactory=p(AS);this.issueCommentDraftFactory=p(tS);this.implicitTriageService=p(OR);this.analytics=p(aQ);this.isSavingMap=new Map;this.savingState=eo(this.isSavingMap,function(){return new aod});this.issueFieldsMap=new Map;this.issueFields=eo(this.issueFieldsMap,function(b){return a.issueFieldsFactory.create(b)});
this.issueQuickActionsMap=new Map;this.issueQuickActions=eo(this.issueQuickActionsMap,function(b){return a.issueQuickActionsFactory.create(b)});this.editableIssueMap=new Map;this.editableIssue$=eo(this.editableIssueMap,function(b){return eod(a,b)});this.editableIssue=function(b){return a.editableIssue$(b).value};this.subscriptions=new Map;this.getSubscription=eo(this.subscriptions,function(){return new Rd});this.issueCommentDraftMap=new Map;this.issueCommentDraft=eo(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)}};DS.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()};
DS.prototype.updateComponent=function(a,b,c,d){var e=this,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1)return f=e.editableIssue(a),f.componentId=b,(g=fod(e,f))&&g.actions&&g.actions.length?z(x,e.getRetentionState(a),2):x.return();k=x.yieldResult;god(e,g);l={issueId:a,componentId:b};r=Object.assign({},l,{setLimitViewTrusted:d});w=c?e.issueApi.moveIssueExternal(a,r):e.issueApi.moveIssue(a,l);return x.return(hod(e,w,g,{originalRetentionState:k}))})};
var JSb=function(a,b,c){var d,e;return y(function(f){if(!c)return a.butterBar.showWarning("Reporter can't be empty."),f.return();d=a.editableIssue(b);d.setReporter(c);return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},iod=function(a,b,c,d){var e,f,g,k,l,r;return y(function(w){switch(w.nextAddress){case 1:e=dRa(c);if(!e)return a.logger.warn("unknown issue type: "+c),w.return();f=a.editableIssue(b);if(e!=="VULNERABILITY"&&e!=="PRIVACY_ISSUE"){w.jumpTo(2);break}return z(w,Mmd(a.issueTypeDialog,
e),3);case 3:if(g=w.yieldResult,!g)return w.return();case 2:if(!d||e!=="VULNERABILITY"){w.jumpTo(4);break}k=S7a(a.activeSession.getEnvironmentType(),d);if(k===void 0){w.jumpTo(4);break}Yd(w,6);return z(w,a.issueApi.markAsVulnerability(b,k),8);case 8:a.permissionsFridge.poke(eq(b));a.issueFullFridge.poke(b);bt(w,7);break;case 6:l=be(w),mO(a.errorHandler,l);case 7:return w.return(Promise.resolve());case 4:return f.setType(e),w.return((r=ES(a,f))!=null?r:Promise.resolve())}})},LSb=function(a,b,c){var d,
e,f;return y(function(g){d=cRa(c);if(!d)return a.logger.warn("unknown priority: "+c),g.return();e=a.editableIssue(b);e.setPriority(d);return g.return((f=ES(a,e))!=null?f:Promise.resolve())})},kod=function(a,b,c){var d,e,f;return y(function(g){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=fod(a,d);return e?(f=e.actions.find(function(k){return k.fieldName==="duplicateOfIssueId"&&!ya(k.value||"")}))&&f.value?g.return(jod(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],
isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):g.return():g.return()})},lod=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},mod=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==1){if(!c)return g.return();d=a.editableIssue(b);e=a.issueQuickActions(b);return z(g,Znd(e,d,c),2)}return g.return((f=ES(a,d))!=null?f:Promise.resolve())})},KRb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);
var g;d.effortEstimate=(g=c==null?void 0:c.estimate)!=null?g:null;return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},tSb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.foundInVersion=c;return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},xSb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.verifiedInVersion=c;return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},vSb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.targetedToVersion=
c;return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},zSb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return((e=ES(a,d))!=null?e:Promise.resolve())})},oSb=function(a,b,c){var d,e,f;return y(function(g){d=eRa(c);if(!d)return a.logger.warn("unknown severity: "+c),g.return();e=a.editableIssue(b);e.setSeverity(d);return g.return((f=ES(a,e))!=null?f:Promise.resolve())})};
DS.prototype.updateSloStartTime=function(a,b){var c=this,d,e;return y(function(f){d=c.editableIssue(a);d.sloStartTime=b;return f.return((e=ES(c,d))!=null?e:Promise.resolve())})};DS.prototype.updateSloEndTime=function(a,b){var c=this,d,e;return y(function(f){d=c.editableIssue(a);d.setSloEndTime(b);return f.return((e=ES(c,d))!=null?e:Promise.resolve())})};
var qSb=function(a,b,c){var d,e,f;y(function(g){d=a.editableIssue(b);d.changelist=(e=c)!=null?e:[];return g.return((f=ES(a,d))!=null?f:Promise.resolve())})},rSb=function(a,b,c){var d,e,f;y(function(g){d=a.editableIssue(b);d.gerritChanges=(e=c)!=null?e:[];return g.return((f=ES(a,d))!=null?f:Promise.resolve())})};DS.prototype.updateCustomField=function(a,b,c){var d=this,e,f;return y(function(g){e=d.editableIssue(a);e.setCustomField(b,c);return g.return((f=ES(d,e))!=null?f:Promise.resolve())})};
var PSb=function(a,b,c){var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?z(k,nod(a,b,"verifier",[c]),5):z(k,ynd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setVerifier(c),k.return((g=ES(a,d))!=null?g:Promise.resolve())}})},
NSb=function(a,b,c){var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?z(k,nod(a,b,"assignee",[c]),5):z(k,ynd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setAssignee(c),k.return((g=ES(a,d))!=null?g:Promise.resolve())}})},
ood=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,nod(a,b,"CC",c),5);e=B_a(d.cc,c);f=e.added;return z(r,ynd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();case 3:return d.cc=c,r.return((l=ES(a,d))!=null?
l:Promise.resolve())}})},pod=function(a,b,c){var d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,nod(a,b,"collaborators",c),5);e=B_a(d.collaborators,c);f=e.added;return z(r,ynd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();
case 3:return d.setCollaborators(c),r.return((l=ES(a,d))!=null?l:Promise.resolve())}})},qod=function(a,b,c){var d;return y(function(e){d=a.editableIssue(b);d.setStaffing(c);return e.return(ES(a,d))})};DS.prototype.unarchive=function(a){var b=this,c,d;return y(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return((d=ES(b,c))!=null?d:Promise.resolve())})};
DS.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),Qr(e,"retention"),Yd(g,2,3),z(g,c.issueApi.updateIssueRetention(a,d),5);case 5:return z(g,c.issueFullFridge.poke(a),6);case 6:Pr(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Zd(g);BS(e,"retention");ae(g,0);break;case 2:f=be(g),mO(c.errorHandler,f),g.jumpTo(3)}})};
var rod=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=fod(a,c);if(!d||!d.actions)return f.jumpTo(0);god(a,d);e=a.issueService.delete(b,"ABUSE");return z(f,hod(a,e,d),0)})},q$b=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=fod(a,c);if(!d||!d.actions)return f.jumpTo(0);god(a,d);e=a.issueService.undelete(b);return z(f,hod(a,e,d),0)})};
DS.prototype.updateSubscription=function(a,b){var c=this,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return d=c.savingState(a),z(l,ie(c.issueFullFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=l.yieldResult;g=(f=e)==null?void 0:f.userData;if(g==null||d.get("subscribe"))return l.return();Yd(l,3,4);Qr(d,"subscribe");return z(l,c.issueFullFridge.setNotificationSubscription(a,b),4);case 4:Zd(l);BS(d,"subscribe");ae(l,0);break;case 3:k=be(l),mO(c.errorHandler,k),l.jumpTo(4)}})};
var sod=function(a,b,c){var d,e;y(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||c.attachmentId==="0"||d.get("undeleteAttachment"))return f.return();Yd(f,2,3);Pr(a.butterBar,"Restoring attachment...");Qr(d,"undeleteAttachment");return z(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:Pr(a.butterBar,"Attachment restored."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Zd(f);BS(d,"undeleteAttachment");ae(f,0);break;case 2:e=be(f),mO(a.errorHandler,
e),f.jumpTo(3)}})},tod=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||c.attachmentId==="0"||e.get("deleteAttachment"))return g.return();Yd(g,2,3);Pr(a.butterBar,"Deleting attachment...");Qr(e,"deleteAttachment");return z(g,a.attachmentsMember.delete(b,c,d),5);case 5:Pr(a.butterBar,"Attachment deleted."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Zd(g);BS(e,"deleteAttachment");ae(g,0);break;case 2:f=be(g),mO(a.errorHandler,
f),g.jumpTo(3)}})};
DS.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=Jnd(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var g=Knd(d);god(this,g);return hod(this,function(){return y(function(k){switch(k.nextAddress){case 1:return z(k,uod(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}c.activeSession.isExternalSession()&&vod(c,a);return z(k,c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,b),
4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(Jr(a));case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var l=c.attachmentApi;var r=f.attachmentsWithJudgements,w=(new end).setIssueId(String(a));r!==void 0&&(r=r.map(D7a),Oi(w,3,r));l=l.executor.post({url:"action/issues/"+a+"/attachments",body:w,responseConstructor:hS}).then(F7a);return z(k,l,6);case 6:e.reset();case 5:return d.setJudgementForNewContent(),k.return(c.issueFullFridge.poke(a))}})}(),g)};
var uod=function(a,b){var c,d;return y(function(e){if(!eR(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();var f=c=a.editableIssue(b),g=[].concat(q(c.cc),[a.activeSession.getUserEmail()]);f.cc=g;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return z(e,a.issueApi.updateIssue(b,d),0)})},eod=function(a,b){var c=a.issueFullFridge.watch(b).pipe(A(function(e){var f=
new smd;e&&(e=wod(a,e),f.currentUserEmail=a.activeSession.getUserEmail(),f.setData(e));return f})),d=new Nj(new smd);a.getSubscription(b).add(c.subscribe(d));return d},ES=function(a,b){function c(H){k=H}function d(H){l=H}var e=b.issueId,f=fod(a,b);if(!f)return null;for(var g=!1,k=[],l=[],r=e,w=m(f.actions),x=w.next();!x.done;x=w.next()){x=x.value;var C=x.value||"";if(x.actionType!=="REMOVE")switch(x.fieldName){case "ccs":c(C.split(",").filter(Boolean));break;case "verifier":case "assignee":case "collaborators":d(C.split(",").filter(Boolean));
break;case "duplicateOfIssueId":ya(C)||(k=b.cc,r=String(C),g=!0)}}return jod(a,e,{actionIssueId:r,implicitAppenders:k,implicitEditors:l,isDeduping:g,isRemovingSelfFromCc:f.actions.length===1&&f.actions[0].fieldName==="ccs"&&f.actions[0].actionType==="REMOVE"&&a.activeSession.getUserEmail()===f.actions[0].value,requestData:f})},jod=function(a,b,c){var d=c.actionIssueId;var e=c.implicitAppenders;var f=c.implicitEditors;var g=c.isDeduping;var k=c.isRemovingSelfFromCc;var l=c.requestData;var r,w,x,C,
H,J,O,R,V,ca,oa,ua,ka,Ga;return y(function(ja){switch(ja.nextAddress){case 1:return z(ja,Promise.all([xod(a,e,"appender",d),xod(a,f,"writer",d)]),2);case 2:r=ja.yieldResult;w=m(r);x=w.next().value;C=w.next().value;H=x;J=C;O=H.noAccessEmails||[];R=J.noAccessEmails||[];V=[].concat(q(O),q(R));if(V.length===0)return ja.return(yod(a,l,g,k));Yd(ja,3);return z(ja,Promise.all(V.map(function(ta){return zod(a,ta)})),5);case 5:return ca=ja.yieldResult,oa=W2a({userPrincipals:ca,newEditors:R,newImplicitUsers:V,
isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),ua=oa.title,ka=oa.content,z(ja,Kmd(a.confirmationDialogService,{title:ua,content:Bh(ka),confirmButtonText:"Allow"}),6);case 6:if(Ga=ja.yieldResult)return ja.return(yod(a,l,g,k));a.permissionsFridge.poke(eq(b));a.issueFullFridge.poke(b);bt(ja,0);break;case 3:be(ja),a.butterBar.showWarning("Could not determine email type."),ce(ja)}})},yod=function(a,b,c,d){god(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 hod(a,e,b)},xod=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;if(e&&!f)throw Error("De");var g=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};return b.length!==0&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(T7a),c,g,d):Promise.resolve(e)},wod=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=pm(b);e=Ia(b.snapshot);c=cod(d);d=c.customFields;c=m(c.fields);for(var f=c.next();!f.done;f=c.next()){var g=void 0;(g=Bmd.get(f.value))==null||g(e,a)}d=m(d);f=d.next();for(c={};!f.done;c={customFieldId$jscomp$16:void 0},f=d.next())f=f.value,c.customFieldId$jscomp$16=sm(f),c=(e.customField||[]).find(function(k){return function(l){return l.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},fod=function(a,b){var c=zmd(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(c8a(e)))});return c.actions.length?c:null},god=function(a,b){var c=String(b.issueId);Pr(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");Rr(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=m(b.actions);
for(c=b.next();!c.done;c=b.next())Qr(a,c8a(c.value))},hod=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:return Yd(g,2),z(g,b,4);case 4:return e=g.yieldResult,dQ(a.issueFullFridge,[c.issueId],{eagerUpdate:!1,userActivityType:"EDIT"}).finally(function(){var k=String(c.issueId);a.issueFullFridge.poke(k);a.eventsForIssueFridge.poke(k)}),z(g,Aod(a,c,e,d),5);case 5:bt(g,0);break;case 2:f=be(g),Bod(a,c,f),ce(g)}})},Aod=function(a,b,c,d){var e=(d===void 0?{}:d).originalRetentionState;
var f,g,k,l;return y(function(r){f=a.savingState(String(b.issueId));g=m(b.actions);for(k=g.next();!k.done;k=g.next())l=k.value,BS(f,c8a(l));Yld(a.implicitTriageService,b.issueId,b.actions);return c?z(r,Cod(a,b,e),0):r.jumpTo(0)})},Bod=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=m(b.actions);for(var f=b.next();!f.done;f=b.next())BS(e,c8a(f.value));a.permissionsFridge.poke(eq(d));a.issueFullFridge.poke(d);Rp(c)&&c.status===403&&Sp(c)?lO(a.errorHandler,Sp(c)):mO(a.errorHandler,c)},Cod=
function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H;return y(function(J){switch(J.nextAddress){case 1:return z(J,a.getEffortSpec(String(b.issueId)),2);case 2:d=J.yieldResult;e=a.editableIssue(String(b.issueId));k=dnd(a.statusMessages,b,e.customFieldMap,(g=(f=d)==null?void 0:f.name)!=null?g:"");if(!c){J.jumpTo(3);break}return z(J,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:l=J.yieldResult;r=m(l);w=r.next().value;x=r.next().value;C=w;H=x;if(H!=="INDEFINITE"&&
c&&C){var O=c.retentionPeriod?eUa(Math.floor(c.retentionPeriod.seconds*1E3/864E5)):"indefinite";var R=C.retentionPeriod?eUa(Math.floor(C.retentionPeriod.seconds*1E3/864E5)):"indefinite";O=O===R?"":" Issue retention period changed from "+O+" to "+R+"."}else O="";k+=O;case 3:Pr(a.butterBar,k),ce(J)}})},nod=function(a,b,c,d){return y(function(e){if(e.nextAddress==1){var f=a.editableIssue(b);var g=a.activeSession.getUserEmail();f=new Map([["CC",f.cc],["collaborators",f.collaborators],["assignee",f.assignee?
[f.assignee]:[]],["verifier",f.verifier?[f.verifier]:[]]]);(new Set([].concat(q(f.values())).flat())).has(g)?(f.set(c,d),g=!(new Set([].concat(q(f.values())).flat())).has(g)):g=!1;e=g?z(e,Dod(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},Dod=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,xod(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&e.noAccessEmails.length!==0?f.return(Kmd(a.confirmationDialogService,
{title:"Removing yourself from "+d+" may revoke your access to the issue",content:Bh("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)})};DS.prototype.getRetentionState=function(a){return ie(this.issueFullFridge.watch(a).pipe(A(k6a)))};DS.prototype.getRetention=function(a){return ie(this.issueFullFridge.watch(a).pipe(A(h6a)))};
DS.prototype.getEffortSpec=function(a){var b=this;return ie(this.issueFullFridge.watch(a).pipe(A(O5a),Af(function(c){return c?b.componentFridge.watch(c):ee(void 0)}),A(n6a)))};var zod=function(a,b){return y(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(BQ(a.principalTypes,b,!0))})};
DS.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=m(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};
var vod=function(a,b){var c,d,e,f,g,k,l,r,w,x;y(function(C){if(C.nextAddress==1)return z(C,ie(a.issueFullFridge.watch(b)),2);if(C.nextAddress!=3)return(c=C.yieldResult)&&(d=c.aggregatedData)!=null&&d.createdTimeMicros?z(C,ie(a.eventsForIssueFridge.watch(b)),3):C.return();e=C.yieldResult;if(!e)return C.return();f=a.activeSession.getUserEmail();g=Eod(a,e.events,f);k=a.getLabel(c,g,f);x=Date.now()-Math.max((l=c.aggregatedData)==null?void 0:l.createdTimeMicros,(w=(r=g)==null?void 0:r.modifiedDate)!=null?
w:0);a.analytics.trackEvent("comment","create",k,x);ce(C)})};DS.prototype.getLabel=function(a,b,c){if(!b)return"global";var d,e,f=((d=a.snapshot[0].assigneeUser)==null?void 0:d.emailAddress)===((e=a.snapshot[0].reporterUser)==null?void 0:e.emailAddress),g;a=c===((g=a.snapshot[0].assigneeUser)==null?void 0:g.emailAddress);var k;b=(b==null?void 0:(k=b.userPerformingActionUser)==null?void 0:k.emailAddress)!==c;c=a&&b;return f&&c?"needs-reporter-input":c?"newly-assigned-to-me":"global"};
var Eod=function(a,b,c){return Fod(b,function(d){var e;if(((e=d.userPerformingActionUser)==null?void 0:e.emailAddress)!==c&&d.preDiffs.some(function(g){return g.name==="assignee"&&g.newValue===a.activeSession.getUserEmail()}))return!0;var f;return((f=d.userPerformingActionUser)==null?void 0:f.emailAddress)===c?!0:!1})},Fod=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c]};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275prov=Fc({token:DS,factory:DS.\u0275fac,providedIn:"root"});var FS=function(){Z.apply(this,arguments);this.issueDetailsBrain=p(UQ);this.issuePermissionService=p(WQ);this.editIssueService=p(DS);this.assigneeInProgress$=new wf(1);this.ccInProgress$=new wf(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){return xUa(a)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){var b;return vm((b=io(a))==null?void 0:b.ccUsers)||[]}));this.assignee$=this.assigneeUpdate$.pipe(xf({refCount:!0,
bufferSize:1}));this.cc$=this.ccUpdate$.pipe(xf({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};Y(FS,Z);FS.\u0275dir=Z.\u0275dir;
var God=function(a,b){var c,d,e;return y(function(f){switch(f.nextAddress){case 1:return z(f,ie(a.id$),2);case 2:c=f.yieldResult;if(!c)return f.return();a.assigneeInProgress$.next(!0);d=b.action==="remove_user"?"":b.email;Yd(f,3,4);return z(f,NSb(a.editIssueService,c,d),6);case 6:return z(f,ie(a.assigneeUpdate$.pipe(we(function(g){g=b.email===g;return b.action==="set_user"?g:!g}),xe(6E4))),4);case 4:Zd(f);a.assigneeInProgress$.next(!1);ae(f,0);break;case 3:throw e=be(f),e;}})},Hod=function(a,b){var c,
d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return z(k,ie(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=ood(a.editIssueService,c,d.cc.filter(function(l){return l!==b.email}))):f=ood(a.editIssueService,c,[].concat(q(d.cc),[b.email]));if(!f)return k.return();Yd(k,3,4);a.ccInProgress$.next(!0);return z(k,f,6);case 6:return z(k,ie(a.ccUpdate$.pipe(we(function(l){l=
l.includes(b.email);return b.action==="set_user"?l:!l}),xe(6E4))),4);case 4:Zd(k);a.ccInProgress$.next(!1);ae(k,0);break;case 3:throw g=be(k),g;}})};FS.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(FS)))(b||FS)}}();FS.\u0275prov=Fc({token:FS,factory:FS.\u0275fac});var Iod=function(a){return["chip","gmat-caption",a]},Jod=function(){this.variant="grey";this.isTall=!1};Jod.\u0275fac=function(a){return new (a||Jod)};
Jod.\u0275cmp=D({type:Jod,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},standalone:!1,ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(cg(),K(0,"div",0)(1,"div",1),dg(2),L()());a&2&&I("ngClass",Ig(1,Iod,b.variant))},dependencies:[Dx],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 Kod=function(a){this.chip=a};Kod.\u0275fac=function(a){return new (a||Kod)(Ye(Jod))};Kod.\u0275dir=df({type:Kod,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&vg("color","var(--chip-"+b.chip.variant+"-icon")("font-size",b.chip.isTall?"16px":"12px")("height",b.chip.isTall?"16px":"12px")("margin","0 4px 0 0")("width",b.chip.isTall?"16px":"12px")},standalone:!1});var GS=function(){};GS.\u0275fac=function(a){return new (a||GS)};GS.\u0275mod=cf({type:GS});GS.\u0275inj=Hc({imports:[Yx]});var Lod=function(){};Lod.\u0275fac=function(a){return new (a||Lod)};Lod.\u0275cmp=D({type:Lod,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&Kf("aria-hidden",!0)},standalone:!1,attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&Q(0,"\u00a0\u00b7\u00a0")},encapsulation:2});var Mod=function(){};Mod.\u0275fac=function(a){return new (a||Mod)};Mod.\u0275mod=cf({type:Mod});Mod.\u0275inj=Hc({});var Nod=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],Ood=function(a){return{"with-avatar":a}},Pod=function(){};Pod.prototype.ngOnInit=function(){};Pod.\u0275fac=function(a){return new (a||Pod)};
Pod.\u0275cmp=D({type:Pod,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&&(cg(Nod),K(0,"div",0)(1,"div",1)(2,"div",2),E(3,d8a,1,2,"img",3),K(4,"div",4),Q(5),L(),E(6,e8a,2,1,"div",5),L(),E(7,f8a,4,1,"div",6),K(8,"div",7),E(9,j8a,7,3,"ng-container",8)(10,k8a,4,1,"ng-container",8)(11,l8a,23,5,"ng-container",8),dg(12),L()(),dg(13,1),L());a&2&&(B(2),I("ngClass",Ig(8,Ood,b.person.imageUrl)),B(),I("ngIf",b.person.imageUrl),B(2),yg(b.person.name||b.person.email),B(),I("ngIf",b.person.name),B(),I("ngIf",b.outOfOfficeDescription),B(2),I("ngIf",b.person.title||b.person.department),
B(),I("ngIf",b.person.location),B(),I("ngIf",b.person.ldap))},dependencies:[GS,Jod,Kod,Yx,Dx,Fx,Mod,Lod,Fy,Dy],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 Qod=new fd("API_VERSION"),Rod=new fd("REQUEST_SERVICE for people-pa_api_client"),Sod={$Xgafv:"$.xgafv",abuseCheckParamsRfaChecks:"abuseCheckParams.rfaChecks",access_token:"access_token",affinityType:"affinityType",alt:"alt",authDelegationContextContactsEncryptedOwnerId:"authDelegationContext.contacts.encryptedOwnerId",authDelegationContextDelegationType:"authDelegationContext.delegationType",authDelegationContextGriffinObfuscatedOwnerId:"authDelegationContext.griffin.obfuscatedOwnerId",authDelegationContextMadisonMadisonGaiaId:"authDelegationContext.madison.madisonGaiaId",
authDelegationContextMadisonObfuscatedMadisonId:"authDelegationContext.madison.obfuscatedMadisonId",authDelegationContextObfuscatedOwnerId:"authDelegationContext.obfuscatedOwnerId",authDelegationContextUnicornObfuscatedOwnerId:"authDelegationContext.unicorn.obfuscatedOwnerId",backgroundPhotoContactId:"backgroundPhotoContactId",backgroundPhotoProfileId:"backgroundPhotoProfileId",blockDirection:"blockDirection",callback:"callback",canonicalPhone:"canonicalPhone",client:"client",clientId:"client.id",
clientVersionClientAgent:"clientVersion.clientAgent",clientVersionClientType:"clientVersion.clientType",clientVersionClientVersion:"clientVersion.clientVersion",clientVersionGmsCoreContextAppManagementContext:"clientVersion.gmsCoreContext.appManagementContext",clientVersionGmsCoreContextIsFirstParty:"clientVersion.gmsCoreContext.isFirstParty",clientVersionGmsCoreContextPackageName:"clientVersion.gmsCoreContext.packageName",clientVersionGmsCoreContextPackageSignature:"clientVersion.gmsCoreContext.packageSignature",
consentOptionsStrategy:"consentOptions.strategy",consistencyOptionsConsistentReadOverrideType:"consistencyOptions.consistentReadOverrideType",consistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"consistencyOptions.directoryConsistencyOptions.directoryVersionToken",consistencyOptionsLevel:"consistencyOptions.level",consistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",consistencyOptionsLevelOptionsExactTimestamp:"consistencyOptions.levelOptions.exactTimestamp",
consistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contactId:"contactId",contactListType:"contactListType",contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",contextAuthDelegationContextContactsEncryptedOwnerId:"context.authDelegationContext.contacts.encryptedOwnerId",
contextAuthDelegationContextDelegationType:"context.authDelegationContext.delegationType",contextAuthDelegationContextGriffinObfuscatedOwnerId:"context.authDelegationContext.griffin.obfuscatedOwnerId",contextAuthDelegationContextMadisonMadisonGaiaId:"context.authDelegationContext.madison.madisonGaiaId",contextAuthDelegationContextMadisonObfuscatedMadisonId:"context.authDelegationContext.madison.obfuscatedMadisonId",contextAuthDelegationContextObfuscatedOwnerId:"context.authDelegationContext.obfuscatedOwnerId",
contextAuthDelegationContextUnicornObfuscatedOwnerId:"context.authDelegationContext.unicorn.obfuscatedOwnerId",contextClientType:"context.clientType",contextClientVersionClientAgent:"context.clientVersion.clientAgent",contextClientVersionClientType:"context.clientVersion.clientType",contextClientVersionClientVersion:"context.clientVersion.clientVersion",contextClientVersionGmsCoreContextAppManagementContext:"context.clientVersion.gmsCoreContext.appManagementContext",contextClientVersionGmsCoreContextIsFirstParty:"context.clientVersion.gmsCoreContext.isFirstParty",
contextClientVersionGmsCoreContextPackageName:"context.clientVersion.gmsCoreContext.packageName",contextClientVersionGmsCoreContextPackageSignature:"context.clientVersion.gmsCoreContext.packageSignature",contextConsistencyContextBase64EncodedZookie:"context.consistencyContext.base64EncodedZookie",contextConsistencyContextDirectoryVersionToken:"context.consistencyContext.directoryVersionToken",contextConsistencyContextFbsRequireAllImportantWritesUpToTime:"context.consistencyContext.fbsRequireAllImportantWritesUpToTime",
contextConsistencyContextFbsVersionInfo:"context.consistencyContext.fbsVersionInfo",contextConsistencyOptionsConsistentReadOverrideType:"context.consistencyOptions.consistentReadOverrideType",contextConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"context.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",contextConsistencyOptionsLevel:"context.consistencyOptions.level",contextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",
contextConsistencyOptionsLevelOptionsExactTimestamp:"context.consistencyOptions.levelOptions.exactTimestamp",contextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contextMigrationOptionsUseClusterBased:"context.migrationOptions.useClusterBased",contextMigrationOptionsUseLegacyRequestMaskBehavior:"context.migrationOptions.useLegacyRequestMaskBehavior",contextMigrationOptionsUseNewRequestMaskBehavior:"context.migrationOptions.useNewRequestMaskBehavior",
contextRequestGroupLoggingId:"context.requestGroupLoggingId",contextRightOfPublicityContext:"context.rightOfPublicityContext",coreIdParamsCheckIdentityAcl:"coreIdParams.checkIdentityAcl",coreIdParamsEnablePrivateAccountEmails:"coreIdParams.enablePrivateAccountEmails",coreIdParamsEnablePrivateNames:"coreIdParams.enablePrivateNames",coreIdParamsEnforceEdsConditionEnforceEdsType:"coreIdParams.enforceEdsCondition.enforceEdsType",coreIdParamsIdentityAclOptionsContextConfigName:"coreIdParams.identityAclOptions.context.configName",
coreIdParamsIdentityAclOptionsContextObjectId:"coreIdParams.identityAclOptions.context.objectId",coreIdParamsIdentityAclOptionsContextObjectPart:"coreIdParams.identityAclOptions.context.objectPart",coreIdParamsIdentityAclOptionsContextZookie:"coreIdParams.identityAclOptions.context.zookie",coreIdParamsIdentityAclOptionsGroupServiceContextGroupName:"coreIdParams.identityAclOptions.groupServiceContext.groupName",coreIdParamsIdentityAclOptionsGroupServiceContextOwnerGaiaId:"coreIdParams.identityAclOptions.groupServiceContext.ownerGaiaId",
coreIdParamsIdentityAclOptionsGroupServiceContextZookie:"coreIdParams.identityAclOptions.groupServiceContext.zookie",coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsProfileAccessTokensInteractionTokens:"coreIdParams.profileAccessTokens.interactionTokens",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",
coreNameCoreProfileFirstName:"coreName.coreProfileFirstName",coreNameCoreProfileLastName:"coreName.coreProfileLastName",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",dataFormatsProfilePhotoOptionsCorpHeaderPreference:"dataFormats.profilePhotoOptions.corpHeaderPreference",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",dataJoinParamsPhoneStalenessSpec:"dataJoinParams.phoneStalenessSpec",
dataJoinParamsProfileJoinType:"dataJoinParams.profileJoinType",dedupeOption:"dedupeOption",delayFullSync:"delayFullSync",delegatedGroupIdDelegatedGroupId:"delegatedGroupId.delegatedGroupId",deleteContacts:"deleteContacts",deleteTrashedContacts:"deleteTrashedContacts",deletionContextMutationContextAndroidDeviceInfoId:"deletionContext.mutationContext.androidDeviceInfo.id",deletionContextMutationContextHostAppInfoHostAppName:"deletionContext.mutationContext.hostAppInfo.hostAppName",deletionContextMutationContextSource:"deletionContext.mutationContext.source",
deletionContextMutationContextThirdPartyInfoClientName:"deletionContext.mutationContext.thirdPartyInfo.clientName",deletionContextMutationContextThirdPartyInfoProjectNumber:"deletionContext.mutationContext.thirdPartyInfo.projectNumber",deletionContextMutationContextTimestamp:"deletionContext.mutationContext.timestamp",deviceId:"deviceId",deviceIdentifierClientInstanceId:"deviceIdentifier.clientInstanceId",deviceIdentityDeviceId:"deviceIdentity.deviceId",dryRunOptionsConsistencyOptionsConsistentReadOverrideType:"dryRunOptions.consistencyOptions.consistentReadOverrideType",
dryRunOptionsConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"dryRunOptions.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",dryRunOptionsConsistencyOptionsLevel:"dryRunOptions.consistencyOptions.level",dryRunOptionsConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"dryRunOptions.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",dryRunOptionsConsistencyOptionsLevelOptionsExactTimestamp:"dryRunOptions.consistencyOptions.levelOptions.exactTimestamp",
dryRunOptionsConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"dryRunOptions.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",dryRunOptionsDryRunMode:"dryRunOptions.dryRunMode",extensionSetExtendedRequestDataPeopleBackendExtensionApplication:"extensionSet.extendedRequestData.peopleBackendExtension.application",extensionSetExtensionNames:"extensionSet.extensionNames",fieldFilterField:"fieldFilter.field",fieldMask:"fieldMask",fieldValueFilterAdminAssistants:"fieldValueFilter.adminAssistants",
fieldValueFilterDottedLineManagers:"fieldValueFilter.dottedLineManagers",fieldValueFilterExecAssistants:"fieldValueFilter.execAssistants",fieldValueFilterIndirectManagers:"fieldValueFilter.indirectManagers",fieldValueFilterIndirectManagersWithMaxNumHops:"fieldValueFilter.indirectManagersWithMaxNumHops",fieldValueFilterManagers:"fieldValueFilter.managers",fieldValueFilterProfileExternalIdCustomTag:"fieldValueFilter.profileExternalId.customTag",fieldValueFilterProfileExternalIdStandardTag:"fieldValueFilter.profileExternalId.standardTag",
fieldValueFilterProfileExternalIdValue:"fieldValueFilter.profileExternalId.value",fields:"fields",getPeopleRequestAbuseCheckParamsRfaChecks:"getPeopleRequest.abuseCheckParams.rfaChecks",getPeopleRequestContextAllowedRequesterState:"getPeopleRequest.context.allowedRequesterState",getPeopleRequestContextAuthDelegationContextContactsEncryptedOwnerId:"getPeopleRequest.context.authDelegationContext.contacts.encryptedOwnerId",getPeopleRequestContextAuthDelegationContextDelegationType:"getPeopleRequest.context.authDelegationContext.delegationType",
getPeopleRequestContextAuthDelegationContextGriffinObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.griffin.obfuscatedOwnerId",getPeopleRequestContextAuthDelegationContextMadisonMadisonGaiaId:"getPeopleRequest.context.authDelegationContext.madison.madisonGaiaId",getPeopleRequestContextAuthDelegationContextMadisonObfuscatedMadisonId:"getPeopleRequest.context.authDelegationContext.madison.obfuscatedMadisonId",getPeopleRequestContextAuthDelegationContextObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.obfuscatedOwnerId",
getPeopleRequestContextAuthDelegationContextUnicornObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.unicorn.obfuscatedOwnerId",getPeopleRequestContextClientType:"getPeopleRequest.context.clientType",getPeopleRequestContextClientVersionClientAgent:"getPeopleRequest.context.clientVersion.clientAgent",getPeopleRequestContextClientVersionClientType:"getPeopleRequest.context.clientVersion.clientType",getPeopleRequestContextClientVersionClientVersion:"getPeopleRequest.context.clientVersion.clientVersion",
getPeopleRequestContextClientVersionGmsCoreContextAppManagementContext:"getPeopleRequest.context.clientVersion.gmsCoreContext.appManagementContext",getPeopleRequestContextClientVersionGmsCoreContextIsFirstParty:"getPeopleRequest.context.clientVersion.gmsCoreContext.isFirstParty",getPeopleRequestContextClientVersionGmsCoreContextPackageName:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageName",getPeopleRequestContextClientVersionGmsCoreContextPackageSignature:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageSignature",
getPeopleRequestContextConsistencyContextDirectoryVersionToken:"getPeopleRequest.context.consistencyContext.directoryVersionToken",getPeopleRequestContextConsistencyOptionsConsistentReadOverrideType:"getPeopleRequest.context.consistencyOptions.consistentReadOverrideType",getPeopleRequestContextConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"getPeopleRequest.context.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",getPeopleRequestContextConsistencyOptionsLevel:"getPeopleRequest.context.consistencyOptions.level",
getPeopleRequestContextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"getPeopleRequest.context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",getPeopleRequestContextConsistencyOptionsLevelOptionsExactTimestamp:"getPeopleRequest.context.consistencyOptions.levelOptions.exactTimestamp",getPeopleRequestContextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"getPeopleRequest.context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",
getPeopleRequestContextMigrationOptionsUseClusterBased:"getPeopleRequest.context.migrationOptions.useClusterBased",getPeopleRequestContextMigrationOptionsUseLegacyRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useLegacyRequestMaskBehavior",getPeopleRequestContextMigrationOptionsUseNewRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useNewRequestMaskBehavior",getPeopleRequestContextRequestGroupLoggingId:"getPeopleRequest.context.requestGroupLoggingId",getPeopleRequestContextRightOfPublicityContext:"getPeopleRequest.context.rightOfPublicityContext",
getPeopleRequestCoreIdParamsCheckIdentityAcl:"getPeopleRequest.coreIdParams.checkIdentityAcl",getPeopleRequestCoreIdParamsEnablePrivateAccountEmails:"getPeopleRequest.coreIdParams.enablePrivateAccountEmails",getPeopleRequestCoreIdParamsEnablePrivateNames:"getPeopleRequest.coreIdParams.enablePrivateNames",getPeopleRequestCoreIdParamsEnforceEdsConditionEnforceEdsType:"getPeopleRequest.coreIdParams.enforceEdsCondition.enforceEdsType",getPeopleRequestCoreIdParamsIdentityAclOptionsContextConfigName:"getPeopleRequest.coreIdParams.identityAclOptions.context.configName",
getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectId:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectId",getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectPart:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectPart",getPeopleRequestCoreIdParamsIdentityAclOptionsContextZookie:"getPeopleRequest.coreIdParams.identityAclOptions.context.zookie",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextGroupName:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.groupName",
getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextOwnerGaiaId:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.ownerGaiaId",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextZookie:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.zookie",getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",
getPeopleRequestCoreIdParamsProfileAccessTokensInteractionTokens:"getPeopleRequest.coreIdParams.profileAccessTokens.interactionTokens",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",getPeopleRequestDataFormatsProfilePhotoOptionsCorpHeaderPreference:"getPeopleRequest.dataFormats.profilePhotoOptions.corpHeaderPreference",
getPeopleRequestDataFormatsProfilePhotoOptionsPrivateUrlFormat:"getPeopleRequest.dataFormats.profilePhotoOptions.privateUrlFormat",getPeopleRequestDedupeOption:"getPeopleRequest.dedupeOption",getPeopleRequestExtensionSetExtendedRequestDataPeopleBackendExtensionApplication:"getPeopleRequest.extensionSet.extendedRequestData.peopleBackendExtension.application",getPeopleRequestExtensionSetExtensionNames:"getPeopleRequest.extensionSet.extensionNames",getPeopleRequestIncludeFieldAcl:"getPeopleRequest.includeFieldAcl",
getPeopleRequestIncludedProfileStates:"getPeopleRequest.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsCertificateParamsRequestCertificates:"getPeopleRequest.mergedPersonSourceOptions.certificateParams.requestCertificates",getPeopleRequestMergedPersonSourceOptionsDataJoinParamsPhoneStalenessSpec:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.phoneStalenessSpec",getPeopleRequestMergedPersonSourceOptionsDataJoinParamsProfileJoinType:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.profileJoinType",
getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterFilterType:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.filterType",getPeopleRequestMergedPersonSourceOptionsIncludeAccountLocale:"getPeopleRequest.mergedPersonSourceOptions.includeAccountLocale",getPeopleRequestMergedPersonSourceOptionsIncludeAffinity:"getPeopleRequest.mergedPersonSourceOptions.includeAffinity",
getPeopleRequestMergedPersonSourceOptionsIncludedContactDeletionStates:"getPeopleRequest.mergedPersonSourceOptions.includedContactDeletionStates",getPeopleRequestMergedPersonSourceOptionsIncludedProfileStates:"getPeopleRequest.mergedPersonSourceOptions.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsPersonModelParamsPersonModel:"getPeopleRequest.mergedPersonSourceOptions.personModelParams.personModel",getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPhotoTypes",
getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPlaces:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPlaces",getPeopleRequestMergedPersonSourceOptionsReplaceIantWithGiant:"getPeopleRequest.mergedPersonSourceOptions.replaceIantWithGiant",getPeopleRequestPersonId:"getPeopleRequest.personId",getPeopleRequestRequestConfigContextConfigKey:"getPeopleRequest.requestConfigContext.configKey",getPeopleRequestRequestConfigContextVersion:"getPeopleRequest.requestConfigContext.version",
getPeopleRequestRequestMaskCustomRequestMask:"getPeopleRequest.requestMask.customRequestMask",getPeopleRequestRequestMaskGuestUserEmailDisplayOption:"getPeopleRequest.requestMask.guestUserEmailDisplayOption",getPeopleRequestRequestMaskImageUrlType:"getPeopleRequest.requestMask.imageUrlType",getPeopleRequestRequestMaskIncludeContainer:"getPeopleRequest.requestMask.includeContainer",getPeopleRequestRequestMaskIncludeField:"getPeopleRequest.requestMask.includeField",getPeopleRequestRequestMaskIncludePeopleInCommon:"getPeopleRequest.requestMask.includePeopleInCommon",
getPeopleRequestRequestMaskPersonAttribute:"getPeopleRequest.requestMask.personAttribute",getPeopleRequestRequestMaskPhotoOptionsPrivateUrlFormat:"getPeopleRequest.requestMask.photoOptions.privateUrlFormat",getPeopleRequestRequestMaskProductContactGroup:"getPeopleRequest.requestMask.productContactGroup",graphRestricts:"graphRestricts",groupExtensionSetExtensionNames:"groupExtensionSet.extensionNames",groupId:"groupId",id:"id",includeAllAvailableSources:"includeAllAvailableSources",includeAllReachablePeople:"includeAllReachablePeople",
includeBlocks:"includeBlocks",includeContent:"includeContent",includeFieldAcl:"includeFieldAcl",includeLinkedPeople:"includeLinkedPeople",includeOthers:"includeOthers",includedProfileStates:"includedProfileStates",invalidatePriorTokens:"invalidatePriorTokens",key:"key",listFilterParamsContainer:"listFilterParams.container",listFilterParamsExcludeUnreachablePeople:"listFilterParams.excludeUnreachablePeople",matchType:"matchType",maxContacts:"maxContacts",mergedPersonSourceOptionsCertificateParamsRequestCertificates:"mergedPersonSourceOptions.certificateParams.requestCertificates",
mergedPersonSourceOptionsDataJoinParamsPhoneStalenessSpec:"mergedPersonSourceOptions.dataJoinParams.phoneStalenessSpec",mergedPersonSourceOptionsDataJoinParamsProfileJoinType:"mergedPersonSourceOptions.dataJoinParams.profileJoinType",mergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",mergedPersonSourceOptionsDeviceContactFilterFilterType:"mergedPersonSourceOptions.deviceContactFilter.filterType",
mergedPersonSourceOptionsIncludeAccountLocale:"mergedPersonSourceOptions.includeAccountLocale",mergedPersonSourceOptionsIncludeAffinity:"mergedPersonSourceOptions.includeAffinity",mergedPersonSourceOptionsIncludedContactDeletionStates:"mergedPersonSourceOptions.includedContactDeletionStates",mergedPersonSourceOptionsIncludedProfileStates:"mergedPersonSourceOptions.includedProfileStates",mergedPersonSourceOptionsPersonModelParamsPersonModel:"mergedPersonSourceOptions.personModelParams.personModel",
mergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"mergedPersonSourceOptions.placeParams.requestPhotoTypes",mergedPersonSourceOptionsPlaceParamsRequestPlaces:"mergedPersonSourceOptions.placeParams.requestPlaces",mergedPersonSourceOptionsReplaceIantWithGiant:"mergedPersonSourceOptions.replaceIantWithGiant",oauth_token:"oauth_token",objectTypesRestricts:"objectTypesRestricts",options:"options",orderBy:"orderBy",pageSize:"pageSize",pageToken:"pageToken",pagingOptionsPageSize:"pagingOptions.pageSize",
pagingOptionsPageToken:"pagingOptions.pageToken",peopleType:"peopleType",personAttribute:"personAttribute",personExpansion:"personExpansion",personId:"personId",phoneBasedAclParamsReaderPhone:"phoneBasedAclParams.readerPhone",phoneLookupQuotaOptionsQuotaBypassTokenOptions:"phoneLookupQuotaOptions.quotaBypassTokenOptions",phoneLookupQuotaOptionsQuotaBypassTokens:"phoneLookupQuotaOptions.quotaBypassTokens",phoneLookupQuotaOptionsQuotaLimitBehavior:"phoneLookupQuotaOptions.quotaLimitBehavior",phones:"phones",
photoOptionsMaxHeight:"photoOptions.maxHeight",photoOptionsMaxWidth:"photoOptions.maxWidth",placeParamsRequestPlaces:"placeParams.requestPlaces",postPhotoMutateReadOption:"postPhotoMutateReadOption",prefixQuery:"prefixQuery",prettyPrint:"prettyPrint",profileId:"profileId",profileLookupOptionsEmailLookupOption:"profileLookupOptions.emailLookupOption",profileLookupOptionsExcludeGaiaAccountTypes:"profileLookupOptions.excludeGaiaAccountTypes",profileLookupOptionsUseTrustedClientPhoneLookupQuota:"profileLookupOptions.useTrustedClientPhoneLookupQuota",
profileUpdateOptionsNameAbuseOption:"profileUpdateOptions.nameAbuseOption",query:"query",quotaFilterType:"quotaFilterType",quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskGuestUserEmailDisplayOption:"requestMask.guestUserEmailDisplayOption",requestMaskImageUrlType:"requestMask.imageUrlType",requestMaskIncludeContainer:"requestMask.includeContainer",
requestMaskIncludeField:"requestMask.includeField",requestMaskIncludePeopleInCommon:"requestMask.includePeopleInCommon",requestMaskPersonAttribute:"requestMask.personAttribute",requestMaskPhotoOptionsPrivateUrlFormat:"requestMask.photoOptions.privateUrlFormat",requestMaskProductContactGroup:"requestMask.productContactGroup",requestOptionsProfilePhotoOptionsCorpHeaderPreference:"requestOptions.profilePhotoOptions.corpHeaderPreference",requestOptionsProfilePhotoOptionsPrivateUrlFormat:"requestOptions.profilePhotoOptions.privateUrlFormat",
requestOptionsRequireConsistency:"requestOptions.requireConsistency",requestOptionsTreatRestrictsAsFilter:"requestOptions.treatRestrictsAsFilter",requireCompleteResults:"requireCompleteResults",returnedFieldAcl:"returnedFieldAcl",searchSettingsMinTotalItemsAccuracy:"searchSettings.minTotalItemsAccuracy",searchSettingsNumToScore:"searchSettings.numToScore",searchSettingsScoringType:"searchSettings.scoringType",skipPostMutateGet:"skipPostMutateGet",sortOptionsSortField:"sortOptions.sortField",sortOptionsSortOrder:"sortOptions.sortOrder",
source:"source",sources:"sources",squery:"squery",stFieldSpecExpressionsExpressionNames:"stFieldSpecExpressions.expressionNames",stFieldSpecExpressionsExpressions:"stFieldSpecExpressions.expressions",startIndex:"startIndex",stquery:"stquery",syncParametersFullSyncOption:"syncParameters.fullSyncOption",syncParametersSyncToken:"syncParameters.syncToken",syncToken:"syncToken",type:"type",uploadType:"uploadType",upload_protocol:"upload_protocol",useBytes:"useBytes"},HS=function(a,b,c){this.gapiVersion=
a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new QMc(b,c)};HS.prototype.list=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;return SMc(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:bva(a,Sod,b)})};HS.\u0275fac=function(a){return new (a||HS)($c(Qod,8),$c(Rod),$c(OMc,8))};HS.\u0275prov=Fc({token:HS,factory:HS.\u0275fac,providedIn:"root"});var Tod=function(){};
Tod.\u0275fac=function(a){return new (a||Tod)};Tod.\u0275prov=Fc({token:Tod,factory:function(a){return HS.\u0275fac(a)},providedIn:"root"});var Uod=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new QMc(b,c)};Uod.\u0275fac=function(a){return new (a||Uod)($c(Qod,8),$c(Rod),$c(OMc,8))};Uod.\u0275prov=Fc({token:Uod,factory:Uod.\u0275fac,providedIn:"root"});var Vod=function(){};Vod.\u0275fac=function(a){return new (a||Vod)};
Vod.\u0275prov=Fc({token:Vod,factory:function(a){return Uod.\u0275fac(a)},providedIn:"root"});var m8a=/.*@google.com/,Wod=new fd("onedevPeopleServiceConfig"),Xod={},IS=function(){},Zod=function(a,b){return Yod(a,[b]).pipe(A(function(c){return c[0]}))};IS.\u0275fac=function(a){return new (a||IS)};IS.\u0275prov=Fc({token:IS,factory:IS.\u0275fac});
var JS=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new sf;this.config=Xod;c&&c.pipe(Cf(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),Bf(this.destroy$)).subscribe({next:function(e){d.config=e}})};Y(JS,IS);
var Yod=function(a,b){return a.lookupApiClient.list({id:b,type:"EMAIL",matchType:"EXACT",requestMaskIncludeField:"person.email,person.name,person.photo,person.organization",requestMaskIncludeContainer:["PROFILE","DOMAIN_PROFILE","GOOGLE_GROUP"],sources:["PROFILE_SOURCE"],access_token:a.config.accessToken}).pipe(A(function(c){return q8a(b,c)}))};JS.prototype.ngOnDestroy=function(){this.destroy$.next()};JS.\u0275fac=function(a){return new (a||JS)($c(Tod),$c(Vod),$c(Wod,8))};
JS.\u0275prov=Fc({token:JS,factory:JS.\u0275fac});var $od=function(){};$od.\u0275fac=function(a){return new (a||$od)};$od.\u0275mod=cf({type:$od});$od.\u0275inj=Hc({providers:[JS,{provide:IS,useExisting:JS}]});var apd=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(apd,sj);apd.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
da.Object.defineProperties(apd.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return eD(this,"dayOfWeek")?rj(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return eD(this,"periodEndMinutes")?rj(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return eD(this,"periodStartMinutes")?rj(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var bpd=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(bpd,sj);bpd.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:KS},keys:["debugOptions","userIds"],objects:{debugOptions:cpd}}};
da.Object.defineProperties(bpd.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return eD(this,"debugOptions")?rj(this,"debugOptions"):this.debugOptions=new cpd},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return eD(this,"userIds")?rj(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var dpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.results=a.results==null?null:a.results};Y(dpd,sj);dpd.prototype.getPartialClassMetadata=function(){return{arrays:{results:epd},keys:["results"]}};
da.Object.defineProperties(dpd.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return rj(this,"results")!==null}},results:{configurable:!0,enumerable:!0,get:function(){return eD(this,"results")?rj(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var fpd=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(fpd,sj);
fpd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(fpd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"committedUntil")?rj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return eD(this,"eventSummary")?rj(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return eD(this,"nextAvailable")?rj(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"occupiedUntil")?rj(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var gpd=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(gpd,sj);gpd.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:hpd}}};
da.Object.defineProperties(gpd.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return eD(this,"geoCoordinates")?rj(this,"geoCoordinates"):this.geoCoordinates=new hpd},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return eD(this,"label")?rj(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return eD(this,"location")?rj(this,"location"):
""},set:function(a){this.Serializable$values.location=a}}});var ipd=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(ipd,sj);ipd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(ipd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"committedUntil")?rj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return eD(this,"nextAvailable")?rj(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"occupiedUntil")?rj(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var jpd=function(){this.Serializable$values={}};Y(jpd,sj);jpd.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var kpd=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(kpd,sj);
kpd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(kpd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"committedUntil")?rj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return eD(this,"eventSummary")?rj(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"inMeetingsUntil")?rj(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return eD(this,"nextAvailable")?rj(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"occupiedUntil")?rj(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var lpd=function(){this.Serializable$values={}};Y(lpd,sj);
lpd.prototype.getPartialClassMetadata=function(){return{keys:[]}};var hpd=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(hpd,sj);hpd.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
da.Object.defineProperties(hpd.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return eD(this,"latitude")?rj(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return eD(this,"longitude")?rj(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var mpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=a.timeZone==null?null:a.timeZone};
Y(mpd,sj);mpd.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};da.Object.defineProperties(mpd.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return eD(this,"timeZone")?rj(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var npd=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(npd,sj);
npd.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
da.Object.defineProperties(npd.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return eD(this,"experimentalBuildingId")?rj(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return eD(this,"experimentalDeskId")?rj(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return eD(this,"experimentalFloorId")?rj(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return eD(this,"label")?rj(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var opd=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(opd,sj);opd.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
da.Object.defineProperties(opd.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"comeBackTime")?rj(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return eD(this,"committedUntil")?rj(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return eD(this,"eventSummary")?rj(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var ppd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime};Y(ppd,sj);ppd.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
da.Object.defineProperties(ppd.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"comeBackTime")?rj(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var qpd=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(qpd,sj);
qpd.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
da.Object.defineProperties(qpd.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return eD(this,"code")?rj(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return eD(this,"details")?rj(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return eD(this,"message")?rj(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var LS=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(LS,sj);LS.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
da.Object.defineProperties(LS.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"endTime")?rj(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"startTime")?rj(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var rpd=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(rpd,sj);rpd.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
da.Object.defineProperties(rpd.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return eD(this,"computationDuration")?rj(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"overrideCurrentTime")?rj(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var spd=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(spd,sj);spd.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:MS}}};
da.Object.defineProperties(spd.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return eD(this,"nextCommitmentStatus")?rj(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new MS},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"nextCommitmentTime")?rj(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var tpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange};Y(tpd,sj);tpd.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:LS}}};da.Object.defineProperties(tpd.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return eD(this,"timeRange")?rj(this,"timeRange"):this.timeRange=new LS},set:function(a){this.Serializable$values.timeRange=a}}});
var upd=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(upd,sj);upd.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:vpd},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:wpd}}};
da.Object.defineProperties(upd.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return eD(this,"availabilities")?rj(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"nextPollTime")?rj(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return eD(this,"workingHours")?
rj(this,"workingHours"):this.workingHours=new wpd},set:function(a){this.Serializable$values.workingHours=a}}});var cpd=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(cpd,sj);cpd.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:rpd}}};
da.Object.defineProperties(cpd.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return eD(this,"forceEnableUserStatusCache")?rj(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return eD(this,"timeSettings")?rj(this,"timeSettings"):this.timeSettings=new rpd},set:function(a){this.Serializable$values.timeSettings=a}}});
var epd=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(epd,sj);epd.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:qpd,userAvailabilities:upd,userId:KS}}};
da.Object.defineProperties(epd.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return rj(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return eD(this,"status")?rj(this,"status"):this.status=new qpd},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return rj(this,"userAvailabilities")!==null}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return eD(this,"userAvailabilities")?
rj(this,"userAvailabilities"):this.userAvailabilities=new upd},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return rj(this,"userId")!==null}},userId:{configurable:!0,enumerable:!0,get:function(){return eD(this,"userId")?rj(this,"userId"):this.userId=new KS},set:function(a){this.Serializable$values.userId=a}}});
var vpd=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(vpd,sj);vpd.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:xpd,status:MS,timeRange:LS}}};
da.Object.defineProperties(vpd.prototype,{hasContexts:{configurable:!0,enumerable:!0,get:function(){return rj(this,"contexts")!==null}},contexts:{configurable:!0,enumerable:!0,get:function(){return eD(this,"contexts")?rj(this,"contexts"):this.contexts=new xpd},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return rj(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return eD(this,"status")?rj(this,"status"):
this.status=new MS},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,enumerable:!0,get:function(){return eD(this,"timeRange")?rj(this,"timeRange"):this.timeRange=new LS},set:function(a){this.Serializable$values.timeRange=a}}});
var xpd=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(xpd,sj);
xpd.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:mpd,upcomingCommitmentContext:spd,upcomingOoo:tpd,workingElsewhere:ypd}}};
da.Object.defineProperties(xpd.prototype,{hasLocalTime:{configurable:!0,enumerable:!0,get:function(){return rj(this,"localTime")!==null}},localTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"localTime")?rj(this,"localTime"):this.localTime=new mpd},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return eD(this,"upcomingCommitmentContext")?rj(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=
new spd},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return eD(this,"upcomingOoo")?rj(this,"upcomingOoo"):this.upcomingOoo=new tpd},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return eD(this,"workingElsewhere")?rj(this,"workingElsewhere"):this.workingElsewhere=new ypd},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var KS=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(KS,sj);KS.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
da.Object.defineProperties(KS.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return eD(this,"email")?rj(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return eD(this,"obfuscatedGaiaId")?rj(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var zpd=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(zpd,sj);zpd.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:gpd,homeLocation:jpd,officeLocation:npd}}};
da.Object.defineProperties(zpd.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return eD(this,"customLocation")?rj(this,"customLocation"):this.customLocation=new gpd},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return eD(this,"homeLocation")?rj(this,"homeLocation"):this.homeLocation=new jpd},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return eD(this,
"officeLocation")?rj(this,"officeLocation"):this.officeLocation=new npd},set:function(a){this.Serializable$values.officeLocation=a}}});
var MS=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(MS,sj);MS.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:fpd,doNotDisturb:ipd,inMeeting:kpd,inactive:lpd,outOfOffice:opd,outsideWorkingHours:ppd}}};
da.Object.defineProperties(MS.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return eD(this,"calendarBusy")?rj(this,"calendarBusy"):this.calendarBusy=new fpd},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return eD(this,"doNotDisturb")?rj(this,"doNotDisturb"):this.doNotDisturb=new ipd},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return eD(this,
"inMeeting")?rj(this,"inMeeting"):this.inMeeting=new kpd},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return eD(this,"inactive")?rj(this,"inactive"):this.inactive=new lpd},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return rj(this,"outOfOffice")!==null}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return eD(this,"outOfOffice")?rj(this,"outOfOffice"):
this.outOfOffice=new opd},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return eD(this,"outsideWorkingHours")?rj(this,"outsideWorkingHours"):this.outsideWorkingHours=new ppd},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var ypd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location};Y(ypd,sj);
ypd.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:zpd}}};da.Object.defineProperties(ypd.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return eD(this,"location")?rj(this,"location"):this.location=new zpd},set:function(a){this.Serializable$values.location=a}}});var wpd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=a.availableTime==null?null:a.availableTime};Y(wpd,sj);
wpd.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:apd},keys:["availableTime"]}};da.Object.defineProperties(wpd.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return eD(this,"availableTime")?rj(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var Apd=new fd("API_VERSION"),Bpd=new fd("REQUEST_SERVICE for waldo_service_api"),NS=function(){};NS.\u0275fac=function(a){return new (a||NS)};
NS.\u0275mod=cf({type:NS});NS.\u0275inj=Hc({});var Cpd={$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"},Dpd=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1alpha":a;this.$apiClient=new QMc(b,c)};Dpd.\u0275fac=function(a){return new (a||Dpd)($c(Apd,8),$c(Bpd),$c(OMc,8))};
Dpd.\u0275prov=Fc({token:Dpd,factory:Dpd.\u0275fac});var Epd=function(){};Epd.\u0275fac=function(a){return new (a||Epd)};Epd.\u0275prov=Fc({token:Epd,factory:function(a){return Dpd.\u0275fac(a)},providedIn:NS});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var OS=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};
OS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof OS&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Fpd(this))}};OS.prototype.continue_=function(a,b){this.blocked_=!1;Gpd(this,a,b)};
var Gpd=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;Hpd(a)},Jpd=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new Ipd(a);a.silentlyCanceled_=!1}};OS.prototype.callback=function(a){Jpd(this);Gpd(this,!0,a)};OS.prototype.errback=function(a){Jpd(this);Gpd(this,!1,a)};OS.prototype.addCallback=function(a,b){return Kpd(this,a,null,b)};OS.prototype.finally=function(a){var b=this;return Lpd(new Promise(function(c,d){Kpd(b,function(e){a();c(e)},function(e){a();d(e)})}))};
var Kpd=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=IB(b):(b=IB(b),c=IB(c)));a.sequence_.push([b,c,d]);e&&Hpd(a);return a};OS.prototype.then=function(a,b,c){var d,e,f=new zC(function(g,k){e=g;d=k});Kpd(this,e,function(g){g instanceof Fpd?f.cancel():d(g);return Mpd},this);return f.then(a,b,c)};OS.prototype.$goog_Thenable=!0;OS.prototype.branch=function(a){var b=new OS;Kpd(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
OS.prototype.isError=function(a){return a instanceof Error};
var Npd=function(a){return txc(a.sequence_,function(b){return typeof b[1]==="function"})},Mpd={},Hpd=function(a){if(a.unhandledErrorId_&&a.fired_&&Npd(a)){var b=a.unhandledErrorId_,c=Opd[b];c&&(ra.clearTimeout(c.id_),delete Opd[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),f=e[0],g=e[1];e=e[2];if(f=a.hadError_?g:f)try{var k=f.call(e||a.defaultScope_,b);k===Mpd&&(k=void 0);k!==void 0&&
(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(lKc(b)||typeof ra.Promise==="function"&&b instanceof ra.Promise)d=!0,a.blocked_=!0}catch(l){b=l,a.hadError_=!0,Npd(a)||(c=!0)}}a.result_=b;d&&(k=nj(a.continue_,a,!0),d=nj(a.continue_,a,!1),b instanceof OS?(Kpd(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new Ppd(b),Opd[b.id_]=b,a.unhandledErrorId_=b.id_)},Lpd=function(a){var b=new OS;a.then(function(c){b.callback(c)},function(c){b.errback(c)});return b},Ipd=function(){pa.call(this)};
rw(Ipd,pa);Ipd.prototype.message="Deferred has already fired";Ipd.prototype.name="AlreadyCalledError";var Fpd=function(){pa.call(this)};rw(Fpd,pa);Fpd.prototype.message="Deferred was canceled";Fpd.prototype.name="CanceledError";var Ppd=function(a){this.id_=ra.setTimeout(nj(this.throwError,this),0);this.error_=a};Ppd.prototype.throwError=function(){delete Opd[this.id_];throw this.error_;};var Opd={};var v8a=function(a,b){var c=b||{};b=c.document||document;var d=vh(a).toString(),e=(new rC(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},g=new OS(Qpd,f),k=null,l=c.timeout!=null?c.timeout:5E3;l>0&&(k=window.setTimeout(function(){Rpd(e,!0);g.errback(new Spd(1,"Timeout reached for loading script "+d))},l),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Rpd(e,c.cleanupWhenDone||!1,k),g.callback(null))};e.onerror=function(){Rpd(e,
!0,k);g.errback(new Spd(0,"Error while loading script "+d))};f=c.attributes||{};Vta(f,{type:"text/javascript",charset:"UTF-8"});PJc(e,f);pi(e,a);Tpd(b).appendChild(e);return g},Tpd=function(a){var b=sC("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement},Qpd=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&Rpd(a,!0,this.timeout_)}},Rpd=function(a,b,c){c!=null&&ra.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){wC(a)},
0)},Spd=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);pa.call(this,c);this.code=a};rw(Spd,pa);var r8a=null,x8a=new WeakMap;var PS=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=pe(function(){return t8a().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return z8a(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};Y(PS,TMc);
PS.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(me(function(c){var d=ee(void 0);b.gapiAuthParams.minAuthTokenTimeRemaining!==void 0&&(d=Xd(y8a(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(me(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}))}))}))};
PS.prototype.parseResponse=function(a){return new Vd(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)})})};PS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&w8a(a,b,this.gapiConfigUpdates[b])};var Upd=function(a,b,c,d,e){d=d===void 0?{}:d;e=e===void 0?{}:e;PS.call(this,a,c,d,e);this.waldoApiKey=b};Y(Upd,PS);Upd.prototype.makeRequest=function(a){var b=PS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var QS=function(a){var b=this;this.apiStub=a;this.result=new sf;this.destroyed=new wf(1);this.trigger=new sf;this.batchedTrigger=this.trigger.pipe(Zka(this.trigger.pipe(hf(200))));this.responseHandler=function(c){if(c.hasResults){c=m(c.results);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d="";e.hasUserId&&e.userId.email&&(d=e.userId.email);if(d)if(e.hasUserAvailabilities){e=e.userAvailabilities.availabilities[0];if(e.hasStatus&&e.status.hasOutOfOffice){var f=e.status.outOfOffice;if(f.comeBackTime){var g=
f=new Date(f.comeBackTime),k=new Date;f=k.getFullYear()===g.getFullYear()&&k.getMonth()===g.getMonth()&&k.getDate()===g.getDate()?"at "+f.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(f.getFullYear()!==(new Date).getFullYear()?f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));f=" - back "+f}else f="";f="Out of Office"+f}else f="";b.result.next({emailAddress:d,
availability:f,timezone:e.hasContexts&&e.contexts.hasLocalTime?e.contexts.localTime.timeZone:""})}else b.result.next({emailAddress:d,availability:"",timezone:""})}}};this.batchedTrigger.pipe(Bf(this.destroyed)).subscribe(function(c){c=[].concat(q(new Set(c)));Vpd(b,c.slice(0,100));c=m(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},Vpd=function(a,b){var c,d;y(function(e){for(var f=new bpd,g=[],k=m(b),l=k.next();!l.done;l=k.next()){l=l.value;var r=new KS;r.email=l;g.push(r)}f.userIds=
g;c=f;f=a.apiStub;var w=w===void 0?{}:w;var x=x===void 0?{}:x;d=SMc(f.$apiClient,{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:bva(w,Cpd,x),responseCtor:dpd});d.pipe(Bf(a.destroyed)).subscribe(a.responseHandler);ce(e)})},Wpd=function(a,b){if(!b)return ee({emailAddress:b,availability:"",timezone:""});a.trigger.next(b);return a.result.pipe(we(function(c){return c.emailAddress===
b}))},Xpd=function(a,b){return Wpd(a,b).pipe(A(function(c){return c.availability}))};QS.prototype.ngOnDestroy=function(){this.destroyed.next()};QS.\u0275fac=function(a){return new (a||QS)($c(Epd))};QS.\u0275prov=Fc({token:QS,factory:QS.\u0275fac});var Ypd=function(){var a=this;this.waldoAvailabilityService=p(QS);this.user="";this.userSubject=new wf(1);this.availability=this.userSubject.pipe(Af(function(b){return Xpd(a.waldoAvailabilityService,b)}))};Ypd.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};Ypd.\u0275fac=function(a){return new (a||Ypd)};
Ypd.\u0275cmp=D({type:Ypd,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},standalone:!1,features:[bx],decls:2,vars:3,consts:[["class","chip__container",4,"ngIf"],[1,"chip__container"],["preserveAspectRatio","xMidYMid meet","width","100%","height","100%","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 24 24","aria-hidden","true",1,"chip__icon"],["d","M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"],
["aria-hidden","true",1,"chip__text"]],template:function(a,b){a&1&&(E(0,A8a,6,3,"div",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.availability))},dependencies:[Fx,Lx],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 Zpd=function(a){this.proxiedService=a};Y(Zpd,TMc);Zpd.prototype.makeRequest=function(a){var b=this;return pe(function(){return b.proxiedService.makeRequest(a)})};var $pd=new fd("environment"),aqd={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},RS=function(){};RS.\u0275fac=function(a){return new (a||RS)};RS.\u0275mod=cf({type:RS});RS.\u0275inj=Hc({imports:[Yx,NS]});var bqd=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"),cqd=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,dqd=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,eqd=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,fqd=function(a){return bqd.test(a)||cqd.test(a)||dqd.test(a)||eqd.test(a)};var gqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gqd,W);h=gqd.prototype;h.getSize=function(){return Pw(this,1)};h.setSize=function(a){return Fn(this,1,a)};h.getWidth=function(){return Pw(this,12)};h.setWidth=function(a){return Fn(this,12,a)};h.getHeight=function(){return Pw(this,13)};h.setHeight=function(a){return Fn(this,13,a)};h.setStretch=function(a){return Pi(this,33,a)};h.setCrop=function(a){return Pi(this,2,a)};
h.setCircleCrop=function(a){return Pi(this,51,a)};h.setImageCrop=function(a){return Pi(this,32,a)};h.setSmartCrop=function(a){return Pi(this,19,a)};h.setSmartCropNoClip=function(a){return Pi(this,52,a)};h.setSmartCropUseFace=function(a){return Pi(this,67,a)};h.setDetectFaces=function(a){Pi(this,80,a)};h.setCenterCrop=function(a){return Pi(this,20,a)};h.setPad=function(a){return Pi(this,60,a)};h.setDownload=function(a){Pi(this,3,a)};h.setHtml=function(a){Pi(this,4,a)};
h.setObjectId=function(a){Eyc(this,7,a)};h.setLooseFaceCrop=function(a){return Pi(this,65,a)};h.setFaceCropVersion=function(a){Fn(this,94,a)};h.setFrameId=function(a){Eyc(this,29,a)};h.setTileX=function(a){Fn(this,9,a)};h.setTileY=function(a){Fn(this,10,a)};h.setTileZoom=function(a){Fn(this,11,a)};h.setTileGeneration=function(a){Pi(this,14,a)};h.setForceTileGeneration=function(a){Pi(this,34,a)};h.setTilePyramidAsProto=function(a){Pi(this,72,a)};h.setExpirationTime=function(a){Fn(this,15,a)};
h.setExpirationTimeInMinutes=function(a){Fn(this,107,a)};h.setImageFilter=function(a){return pj(this,16,a)};h.setKillAnimation=function(a){return Pi(this,17,a)};h.setUnfiltered=function(a){Pi(this,18,a)};h.setUnfilteredWithTransforms=function(a){Pi(this,45,a)};h.setIncludeMetadata=function(a){Pi(this,22,a)};h.setIncludePublicMetadata=function(a){Pi(this,54,a)};h.setStripGoogleData=function(a){Pi(this,82,a)};h.setPreserveGoogleData=function(a){Pi(this,83,a)};
h.setStripMetadata=function(a){Pi(this,93,a)};h.setStripGeoinfo=function(a){Pi(this,95,a)};h.setEsPortraitApprovedOnly=function(a){return Pi(this,21,a)};h.setBypassTakedown=function(a){Pi(this,23,a)};h.getToken=function(){return Dl(this,24)};h.setToken=function(a){pj(this,24,a)};h.hasToken=function(){return im(this,24)};h.setVersionedToken=function(a){pj(this,36,a)};h.setSkipRefererCheck=function(a){Pi(this,6,a)};h.setRotate=function(a){return Fn(this,26,a)};
h.setHorizontalFlip=function(a){Pi(this,30,a)};h.setVerticalFlip=function(a){Pi(this,31,a)};h.getOverlay=function(){return Gv(this,27)};h.setOverlay=function(a){return Pi(this,27,a)};h.setQueryString=function(a){pj(this,28,a)};h.setRequestJpeg=function(a){return Pi(this,57,a)};h.setRequestPng=function(a){return Pi(this,58,a)};h.setRequestGif=function(a){Pi(this,59,a)};h.setRequestAvif=function(a){Pi(this,103,a)};h.setRequestWebp=function(a){return Pi(this,35,a)};
h.setRequestWebpUnlessMaybeTransparent=function(a){Pi(this,41,a)};h.setRequestAnimatedWebp=function(a){Pi(this,64,a)};h.setNoWebp=function(a){Pi(this,48,a)};h.setRequestH264=function(a){return Pi(this,49,a)};h.setLossy=function(a){Pi(this,97,a)};h.setNoOverlay=function(a){return Pi(this,37,a)};h.setBorderSize=function(a){Fn(this,38,a)};h.setBorderRadius=function(a){Fn(this,86,a)};h.setBorderColor=function(a){Fn(this,39,a)};h.setBackgroundColor=function(a){Fn(this,87,a)};
h.setPadColor=function(a){Fn(this,88,a)};h.setSubstitutionColor=function(a){Fn(this,89,a)};h.setNoSilhouette=function(a){Pi(this,40,a)};h.setFocusBlur=function(a){Fn(this,42,a)};h.setFocalPlane=function(a){Fn(this,43,a)};h.setQualityLevel=function(a){return Fn(this,44,a)};h.setQualityBucket=function(a){return Fn(this,62,a)};h.setNoUpscale=function(a){Pi(this,46,a)};h.setPreserveAspectRatio=function(a){Pi(this,61,a)};h.setForceTransformation=function(a){Pi(this,50,a)};
h.setNoDefaultImage=function(a){Pi(this,53,a)};h.setNoCorrectExifOrientation=function(a){Pi(this,55,a)};h.setSelectFrameNumber=function(a){Fn(this,56,a)};h.setVideoFormat=function(a){Fn(this,63,a)};h.setVideoMultiFormat=function(a){pj(this,81,a)};h.setVideoManifest=function(a){Pi(this,98,a)};h.setDownloadVideo=function(a){Pi(this,90,a)};h.setVideoBegin=function(a){wn(this,68,a)};h.setVideoLength=function(a){wn(this,69,a)};h.setMatchVersion=function(a){Pi(this,66,a)};
h.setImageDigest=function(a){Pi(this,70,a)};h.setInternalClient=function(a){Fn(this,71,a)};h.setMonogram=function(a){Pi(this,73,a)};h.setForceMonogram=function(a){return Pi(this,84,a)};h.setMonogramDogfood=function(a){Pi(this,91,a)};h.setIgnoreLowResProfilePhoto=function(a){Pi(this,96,a)};h.setAutoloop=function(a){Pi(this,74,a)};h.getImageVersion=function(){return Qw(this,75)};h.setImageVersion=function(a){wn(this,75,a)};h.setPitchDegrees=function(a){Sw(this,76,a)};
h.setYawDegrees=function(a){Sw(this,77,a)};h.setRollDegrees=function(a){Sw(this,78,a)};h.setFovDegrees=function(a){Sw(this,79,a)};h.setBadge=function(a){Fn(this,85,a)};h.setColorProfile=function(a){Fn(this,92,a)};h.setToneMap=function(a){Pi(this,113,a)};h.setNoToneMap=function(a){Pi(this,114,a)};h.setDeepCrop=function(a){pj(this,99,a)};h.setRequestVideoFast=function(a){Pi(this,100,a)};h.setVideoFormatFilters=function(a){pj(this,102,a)};h.setDummyCacheKeyModifier=function(a){Pi(this,104,a)};
h.setGainMap=function(a){Pi(this,105,a)};h.setNoGainMap=function(a){Pi(this,106,a)};h.setForceCookieRedirect=function(a){Pi(this,108,a)};h.setStoryboardLevel=function(a){Fn(this,109,a)};h.setStoryboardMosaic=function(a){Fn(this,110,a)};h.setPregenTimestamps=function(a){pj(this,111,a)};h.setClientExperimentLabel=function(a){pj(this,112,a)};h.setMediaProvenance=function(a){Fn(this,115,a)};var SS=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};SS.prototype.set=function(a,b){hqd(this,a,b,!1)};SS.prototype.setValue=function(a){this.value_=a};SS.prototype.add=function(a,b){hqd(this,a,b,!0)};var hqd=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 SS);a=a.childNodes_[f]}if(d&&a.value_!==void 0)throw Error("Fe`"+b);a.value_=c};
SS.prototype.setAll=function(a){var b=aIc(a);a=$Hc(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};var iqd=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};SS.prototype.get=function(a){return(a=iqd(this,a))?a.value_:void 0};SS.prototype.getValues=function(){var a=[];jqd(this,a);return a};var jqd=function(a,b){a.value_!==void 0&&b.push(a.value_);for(var c in a.childNodes_)jqd(a.childNodes_[c],b)};
SS.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]}kqd(c,a,b)}else kqd(this,"",b);return b};var kqd=function(a,b,c){a.value_!==void 0&&c.push(b);for(var d in a.childNodes_)kqd(a.childNodes_[d],b+d,c)};h=SS.prototype;h.containsKey=function(a){return this.get(a)!==void 0};h.clear=function(){this.childNodes_={};this.value_=void 0};
h.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("Ge`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;c.length>0;)if(d=c.pop(),b=d[0],d=d[1],b.childNodes_[d].isEmpty())delete b.childNodes_[d];else break;return a};h.clone=function(){return new SS(this)};
h.getCount=function(){var a=this.getValues();if(a.getCount&&typeof a.getCount=="function")a=a.getCount();else if(Na(a)||typeof a==="string")a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a};h.isEmpty=function(){return this.value_===void 0&&Pta(this.childNodes_)};var nqd=function(){if(!lqd){var a=lqd=new SS,b;for(b in mqd)a.add(b,mqd[b])}},lqd,TS=function(a,b){this.types=a;this.setters=b},mqd={a:new TS([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new TS([3],[function(a,b){a.setAutoloop(b)}]),b:new TS([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new TS([0],[function(a,b){a.setBadge(b)}]),bc:new TS([0],[function(a,b){a.setBackgroundColor(b)}]),br:new TS([0],[function(a,
b){a.setBorderRadius(b)}]),c:new TS([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new TS([3],[function(a,b){a.setCircleCrop(b)}]),ci:new TS([3],[function(a,b){a.setImageCrop(b)}]),ckm:new TS([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new TS([0],[function(a,b){a.setColorProfile(b)}]),cr:new TS([3],[function(a,b){a.setForceCookieRedirect(b)}]),cv:new TS([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new TS([3],[function(a,b){a.setDownload(b)}]),dc:new TS([5],
[function(a,b){a.setDeepCrop(b)}]),df:new TS([3],[function(a,b){a.setDetectFaces(b)}]),dv:new TS([3],[function(a,b){a.setDownloadVideo(b)}]),e:new TS([0],[function(a,b){a.setExpirationTime(b)}]),em:new TS([0],[function(a,b){a.setExpirationTimeInMinutes(b)}]),f:new TS([4],[function(a,b){a.setImageFilter(b)}]),fg:new TS([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new TS([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new TS([3],[function(a,b){a.setForceMonogram(b)}]),fo:new TS([2],[function(a,
b){a.setFovDegrees(b)}]),ft:new TS([3],[function(a,b){a.setForceTransformation(b)}]),fv:new TS([3],[function(a,b){a.setVerticalFlip(b)}]),g:new TS([3],[function(a,b){a.setTileGeneration(b)}]),gce:new TS([4],[function(a,b){a.setClientExperimentLabel(b)}]),gd:new TS([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new TS([3],[function(a,b){a.setGainMap(b)}]),h:new TS([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new TS([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new TS([0],
[function(a,b){a.setInternalClient(b)}]),id:new TS([3],[function(a,b){a.setImageDigest(b)}]),il:new TS([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new TS([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new TS([0],[function(a,b){a.setImageVersion(b)}]),j:new TS([1],[function(a,b){a.setFrameId(b)}]),k:new TS([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new TS([0],[function(a,b){a.setQualityLevel(b)}]),lf:new TS([3],[function(a,b){a.setLooseFaceCrop(b)}]),
lo:new TS([3],[function(a,b){a.setLossy(b)}]),m:new TS([0],[function(a,b){a.setVideoFormat(b)}]),md:new TS([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new TS([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new TS([3],[function(a,b){a.setMonogram(b)}]),mp:new TS([0],[function(a,b){a.setMediaProvenance(b)}]),mv:new TS([3],[function(a,b){a.setMatchVersion(b)}]),n:new TS([3],[function(a,b){a.setCenterCrop(b)}]),nc:new TS([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new TS([3],[function(a,
b){a.setNoDefaultImage(b)}]),ng:new TS([3],[function(a,b){a.setStripGeoinfo(b)}]),ngm:new TS([3],[function(a,b){a.setNoGainMap(b)}]),no:new TS([3],[function(a,b){a.setNoOverlay(b)}]),ns:new TS([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new TS([4],[function(a,b){a.setVersionedToken(b)}]),ntm:new TS([3],[function(a,b){a.setNoToneMap(b)}]),nu:new TS([3],[function(a,b){a.setNoUpscale(b)}]),nw:new TS([3],[function(a,b){a.setNoWebp(b)}]),o:new TS([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),
p:new TS([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new TS([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new TS([0],[function(a,b){a.setPadColor(b)}]),pd:new TS([3],[function(a,b){a.setPad(b)}]),pf:new TS([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new TS([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new TS([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new TS([3],[function(a,b){a.setSmartCropNoClip(b)}]),pt:new TS([4],[function(a,b){a.setPregenTimestamps(b)}]),
q:new TS([4],[function(a,b){a.setQueryString(b)}]),r:new TS([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new TS([3],[function(a,b){a.setRequestAvif(b)}]),rf:new TS([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new TS([3],[function(a,b){a.setRequestGif(b)}]),rh:new TS([3],[function(a,b){a.setRequestH264(b)}]),rj:new TS([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new TS([2],[function(a,b){a.setRollDegrees(b)}]),rp:new TS([3],[function(a,b){a.setRequestPng(b)}]),
rw:new TS([3],[function(a,b){a.setRequestWebp(b)}]),rwa:new TS([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new TS([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new TS([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sb:new TS([0],[function(a,b){a.setStoryboardMosaic(b)}]),sc:new TS([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new TS([3],[function(a,b){a.setStripGoogleData(b)}]),sl:new TS([0],[function(a,b){a.setStoryboardLevel(b)}]),sm:new TS([3],
[function(a,b){a.setStripMetadata(b)}]),t:new TS([4],[function(a,b){a.setToken(b)}]),tm:new TS([3],[function(a,b){a.setToneMap(b)}]),u:new TS([3],[function(a,b){a.setUnfiltered(b)}]),ut:new TS([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new TS([0],[function(a,b){a.setQualityBucket(b)}]),vb:new TS([0],[function(a,b){a.setVideoBegin(b)}]),vf:new TS([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new TS([0],[function(a,b){a.setVideoLength(b)}]),vm:new TS([3],[function(a,b){a.setVideoManifest(b)}]),
w:new TS([0],[function(a,b){a.setWidth(b)}]),x:new TS([0],[function(a,b){a.setTileX(b)}]),y:new TS([0],[function(a,b){a.setTileY(b)}]),ya:new TS([2],[function(a,b){a.setYawDegrees(b)}]),z:new TS([0],[function(a,b){a.setTileZoom(b)}])};
nqd.prototype.parse=function(a){var b=new gqd,c=new gqd;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(f.length==0)d=!1;else{var g=f,k=!1;var l=g;var r=g.charAt(0);r!=r.toLowerCase()&&(k=!0,l=g.charAt(0).toLowerCase()+g.substring(1));var w=lqd;for(r=1;r<=l.length;++r){var x=w,C=l.substring(0,r);if(C.length==0?x.isEmpty():!iqd(x,C))break}l=r==1?null:(l=w.get(l.substring(0,r-1)))?{option:g.substring(0,r-1),value:g.substring(r-1),signed:k,attributes:l}:null;if(l){g=
[];k=[];r=!1;for(w=0;w<l.attributes.types.length;w++){x=l.attributes.types[w];var H=l.value;C=e;if(l.signed&&x==1)for(var J=H.length;J<12&&C<a.length-1;)H+="-"+a[C+1],J=H.length,++C;else if(x==2)for(;C<a.length-1&&a[C+1].match(/^[\d\.]/);)H+="-"+a[C+1],++C;J=l.attributes.setters[w];H=oqd(this,x)(l.option,H,b,c,J);if(H===null){r=!0;e=C;break}else g.push(x),k.push(H)}if(!r)for(l=0;l<k.length;l++)w=g[l],H=k[l],pqd(this,w)(f,H);d=d&&r}else d=!1}}a=d}return new qqd(b,c,a)};
var rqd=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};h=nqd.prototype;h.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;b=sm(b);if(isNaN(b))return 1;rqd(a,b,c,d,e,Number);return null};h.logIntParseError_=function(){};h.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;b=wo(b);if(isNaN(b))return 1;rqd(a,b,c,d,e,Number);return null};h.logFloatParseError_=function(){};
h.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;rqd(a,!0,c,d,e,Boolean);return null};h.logBoolParseError_=function(){};h.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;rqd(a,b,c,d,e,function(f){return f?"1":""});return null};h.logStringParseError_=function(){};h.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;rqd(a,b,c,d,e,function(f){return f?1:0});return null};
var oqd=function(a,b){switch(b){case 0:return nj(a.parseAndSetIntOption_,a);case 2:return nj(a.parseAndSetFloatOption_,a);case 3:return nj(a.parseAndSetBoolOption_,a);case 4:return nj(a.parseAndSetStringOption_,a);case 1:return nj(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},pqd=function(a,b){switch(b){case 0:return nj(a.logIntParseError_,a);case 2:return nj(a.logFloatParseError_,a);case 3:return nj(a.logBoolParseError_,a);case 4:case 1:return nj(a.logStringParseError_,a);default:return function(){}}},
qqd=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};qqd.prototype.isValid=function(){return this.valid_};h=B8a.prototype;h.buffer_="";h.set=function(a){this.buffer_=""+a};h.append=function(a,b,c){this.buffer_+=String(a);if(b!=null)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};h.clear=function(){this.buffer_=""};h.getLength=function(){return this.buffer_.length};h.toString=function(){return this.buffer_};var C8a=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;sqd(this,a)};C8a.prototype.getParsedOptions=function(){return this.parsedOptions_};var tqd=function(a){a.parser_==null&&(a.parser_=new nqd);return a.parser_},sqd=function(a,b){a.parsedOptions_=b?typeof b==="string"?tqd(a).parse(b):b:tqd(a).parse("")},US=function(a,b){return a==b?!1:!0};h=C8a.prototype;
h.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,21),Gv(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};h.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,56),Pw(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};h.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,74),Gv(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
h.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,23),Gi(b.signatureFlagProto_,23))&&c.setBypassTakedown(a)};h.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,38),Pw(b.signatureFlagProto_,38))&&c.setBorderSize(a)};h.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,85),Pw(b.signatureFlagProto_,85))&&c.setBadge(a)};
h.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,87),Pw(b.signatureFlagProto_,87))&&c.setBackgroundColor(a)};h.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,86),Pw(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};h.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,2),Gi(b.signatureFlagProto_,2))&&c.setCrop(a);return this};
h.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,39),Pw(b.signatureFlagProto_,39))&&c.setBorderColor(a)};h.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,51),Gv(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};h.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,32),Gv(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
h.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,104),Gv(b.signatureFlagProto_,104))&&c.setDummyCacheKeyModifier(a)};h.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,92),Pw(b.signatureFlagProto_,92))&&c.setColorProfile(a)};h.setForceCookieRedirect=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,108),Gv(b.signatureFlagProto_,108))&&c.setForceCookieRedirect(a)};
h.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,94),Pw(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};h.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,3),Gi(b.signatureFlagProto_,3))&&c.setDownload(a)};h.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,99),Dl(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};
h.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,80),Gv(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};h.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,90),Gv(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};h.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,15),Pw(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};
h.setExpirationTimeInMinutes=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,107),Pw(b.signatureFlagProto_,107))&&c.setExpirationTimeInMinutes(a)};h.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,16),Dl(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};h.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,34),Gi(b.signatureFlagProto_,34))&&c.setForceTileGeneration(a)};
h.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,30),Gv(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};h.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,84),Gv(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};h.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Rw(c,79),Rw(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
h.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,50),Gv(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};h.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,31),Gv(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};h.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,14),Gi(b.signatureFlagProto_,14))&&c.setTileGeneration(a)};
h.setClientExperimentLabel=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,112),Dl(b.signatureFlagProto_,112))&&c.setClientExperimentLabel(a)};h.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,83),Gv(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};h.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,105),Gv(b.signatureFlagProto_,105))&&c.setGainMap(a)};
h.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,4),Gi(b.signatureFlagProto_,4))&&c.setHtml(a)};h.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};h.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,22),Gv(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};
h.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,71),Pw(b.signatureFlagProto_,71))&&c.setInternalClient(a)};h.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,70),Gv(b.signatureFlagProto_,70))&&c.setImageDigest(a)};h.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,96),Gv(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};
h.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,54),Gv(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};h.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};h.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Fw(c,29,Qv),Fw(b.signatureFlagProto_,29,Qv))&&c.setFrameId(a)};
h.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,17),Gv(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};h.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,42),Pw(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};h.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,44),Pw(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};
h.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,65),Gv(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};h.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,97),Gv(b.signatureFlagProto_,97))&&c.setLossy(a)};h.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,63),Pw(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};
h.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,91),Gv(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};h.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,81),Dl(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};h.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,73),Gv(b.signatureFlagProto_,73))&&c.setMonogram(a)};
h.setMediaProvenance=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,115),Pw(b.signatureFlagProto_,115))&&c.setMediaProvenance(a)};h.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,66),Gv(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};h.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,20),Gi(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
h.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,55),Gv(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};h.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,53),Gv(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};h.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,95),Gv(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
h.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,106),Gv(b.signatureFlagProto_,106))&&c.setNoGainMap(a)};h.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,37),Gi(b.signatureFlagProto_,37))&&c.setNoOverlay(a);return this};h.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,40),Gv(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};
h.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,36),Dl(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};h.setNoToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,114),Gv(b.signatureFlagProto_,114))&&c.setNoToneMap(a)};h.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,46),Gv(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};
h.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,48),Gi(b.signatureFlagProto_,48))&&c.setNoWebp(a)};h.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Fw(c,7,Qv),Fw(b.signatureFlagProto_,7,Qv))&&c.setObjectId(a)};h.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};
h.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,19),Gi(b.signatureFlagProto_,19))&&c.setSmartCrop(a);return this};h.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,43),Pw(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};h.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,61),Gv(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};
h.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,88),Pw(b.signatureFlagProto_,88))&&c.setPadColor(a)};h.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,60),Gv(b.signatureFlagProto_,60))&&c.setPad(a);return this};h.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,67),Gi(b.signatureFlagProto_,67))&&c.setSmartCropUseFace(a);return this};
h.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,72),Gi(b.signatureFlagProto_,72))&&c.setTilePyramidAsProto(a)};h.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Rw(c,76),Rw(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};h.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,52),Gi(b.signatureFlagProto_,52))&&c.setSmartCropNoClip(a);return this};
h.setPregenTimestamps=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,111),Dl(b.signatureFlagProto_,111))&&c.setPregenTimestamps(a)};h.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,28),Dl(b.signatureFlagProto_,28))&&c.setQueryString(a)};h.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,6),Gi(b.signatureFlagProto_,6))&&c.setSkipRefererCheck(a)};
h.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,26),Pw(b.signatureFlagProto_,26))&&c.setRotate(a);return this};h.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,103),Gi(b.signatureFlagProto_,103))&&c.setRequestAvif(a)};h.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,100),Gv(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};
h.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,59),Gv(b.signatureFlagProto_,59))&&c.setRequestGif(a)};h.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,49),Gi(b.signatureFlagProto_,49))&&c.setRequestH264(a);return this};h.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,57),Gv(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};
h.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Rw(c,78),Rw(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};h.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,58),Gv(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};h.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,35),Gi(b.signatureFlagProto_,35))&&c.setRequestWebp(a);return this};
h.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,64),Gi(b.signatureFlagProto_,64))&&c.setRequestAnimatedWebp(a)};h.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gi(c,41),Gi(b.signatureFlagProto_,41))&&c.setRequestWebpUnlessMaybeTransparent(a)};h.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,33),Gv(b.signatureFlagProto_,33))&&c.setStretch(a);return this};
h.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};h.setStoryboardMosaic=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,110),Pw(b.signatureFlagProto_,110))&&c.setStoryboardMosaic(a)};h.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,89),Pw(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};
h.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,82),Gv(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};h.setStoryboardLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,109),Pw(b.signatureFlagProto_,109))&&c.setStoryboardLevel(a)};h.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,93),Gv(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
h.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a)};h.setToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,113),Gv(b.signatureFlagProto_,113))&&c.setToneMap(a)};h.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,18),Gv(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};
h.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,45),Gv(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};h.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,62),Pw(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};h.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Qw(c,68),Qw(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};
h.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Dl(c,102),Dl(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};h.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Qw(c,69),Qw(b.signatureFlagProto_,69))&&c.setVideoLength(a)};h.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;US(a,Gv(c,98),Gv(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};
h.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};h.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,9),Pw(b.signatureFlagProto_,9))&&c.setTileX(a)};h.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,10),Pw(b.signatureFlagProto_,10))&&c.setTileY(a)};
h.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Rw(c,77),Rw(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};h.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;US(a,Pw(c,11),Pw(b.signatureFlagProto_,11))&&c.setTileZoom(a)};h.setOptions=function(a){sqd(this,a);return this};
h.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;VS(this,"s",b.getSize(),a.getSize());VS(this,"w",b.getWidth(),a.getWidth());WS(this,"c",Gi(b,2),Gi(a,2));WS(this,"d",Gi(b,3),Gi(a,3));VS(this,"h",b.getHeight(),a.getHeight());WS(this,"s",Gv(b,33),Gv(a,33));WS(this,"h",Gi(b,4),Gi(a,4));WS(this,"p",Gi(b,19),Gi(a,19));WS(this,"pp",Gi(b,52),Gi(a,52));WS(this,"pf",Gi(b,67),Gi(a,67));WS(this,"n",Gi(b,20),Gi(a,20));VS(this,"r",Pw(b,26),Pw(a,26));
WS(this,"r",Gi(b,6),Gi(a,6));WS(this,"o",b.getOverlay(),a.getOverlay());var c=Fw(b,7,Qv);XS(this,"o",c,Fw(a,7,Qv));c=Fw(b,29,Qv);XS(this,"j",c,Fw(a,29,Qv));VS(this,"x",Pw(b,9),Pw(a,9));VS(this,"y",Pw(b,10),Pw(a,10));VS(this,"z",Pw(b,11),Pw(a,11));WS(this,"g",Gi(b,14),Gi(a,14));VS(this,"e",Pw(b,15),Pw(a,15));XS(this,"f",Dl(b,16),Dl(a,16));WS(this,"k",Gv(b,17),Gv(a,17));WS(this,"u",Gv(b,18),!0);WS(this,"ut",Gv(b,45),!0);WS(this,"i",Gv(b,22),!0);WS(this,"a",Gv(b,21),Gv(a,21));WS(this,"b",Gi(b,23),Gi(a,
23));VS(this,"b",Pw(b,38),Pw(a,38));VS(this,"c",Pw(b,39),Pw(a,39),16,8);XS(this,"q",Dl(b,28),Dl(a,28));WS(this,"fh",Gv(b,30),Gv(a,30));WS(this,"fv",Gv(b,31),Gv(a,31));WS(this,"fg",Gi(b,34),Gi(a,34));WS(this,"ci",Gv(b,32),Gv(a,32));XS(this,"t",b.getToken(),a.getToken());XS(this,"nt0",Dl(b,36),Dl(a,36));WS(this,"rw",Gi(b,35),Gi(a,35));WS(this,"rwu",Gi(b,41),Gi(a,41));WS(this,"rwa",Gi(b,64),Gi(a,64));WS(this,"nw",Gi(b,48),Gi(a,48));WS(this,"rh",Gi(b,49),Gi(a,49));WS(this,"no",Gi(b,37),Gi(a,37));WS(this,
"ns",Gv(b,40),Gv(a,40));VS(this,"k",Pw(b,42),Pw(a,42));VS(this,"p",Pw(b,43),Pw(a,43));VS(this,"l",Pw(b,44),Pw(a,44));VS(this,"v",Pw(b,62),Pw(a,62));WS(this,"nu",Gv(b,46),Gv(a,46));WS(this,"ft",Gv(b,50),Gv(a,50));WS(this,"cc",Gv(b,51),Gv(a,51));WS(this,"nd",Gv(b,53),Gv(a,53));WS(this,"ip",Gv(b,54),Gv(a,54));WS(this,"nc",Gv(b,55),Gv(a,55));VS(this,"a",Pw(b,56),Pw(a,56));WS(this,"rj",Gv(b,57),Gv(a,57));WS(this,"rp",Gv(b,58),Gv(a,58));WS(this,"rg",Gv(b,59),Gv(a,59));WS(this,"pd",Gv(b,60),Gv(a,60));WS(this,
"pa",Gv(b,61),Gv(a,61));VS(this,"m",Pw(b,63),Pw(a,63));VS(this,"vb",Qw(b,68),Qw(a,68));VS(this,"vl",Qw(b,69),Qw(a,69));WS(this,"lf",Gv(b,65),Gv(a,65));WS(this,"mv",Gv(b,66),Gv(a,66));WS(this,"id",Gv(b,70),Gv(a,70));VS(this,"ic",Pw(b,71),!0);WS(this,"pg",Gi(b,72),Gi(a,72));WS(this,"mo",Gv(b,73),Gv(a,73));WS(this,"al",Gv(b,74),Gv(a,74));VS(this,"iv",b.getImageVersion(),a.getImageVersion());VS(this,"pi",Rw(b,76),Rw(a,76));VS(this,"ya",Rw(b,77),Rw(a,77));VS(this,"ro",Rw(b,78),Rw(a,78));VS(this,"fo",Rw(b,
79),Rw(a,79));WS(this,"df",Gv(b,80),Gv(a,80));XS(this,"mm",Dl(b,81),Dl(a,81));WS(this,"sg",Gv(b,82),Gv(a,82));WS(this,"gd",Gv(b,83),Gv(a,83));WS(this,"fm",Gv(b,84),Gv(a,84));VS(this,"ba",Pw(b,85),Pw(a,85));VS(this,"br",Pw(b,86),Pw(a,86));VS(this,"bc",Pw(b,87),Pw(a,87),16,8);VS(this,"pc",Pw(b,88),Pw(a,88),16,8);VS(this,"sc",Pw(b,89),Pw(a,89),16,8);WS(this,"dv",Gv(b,90),Gv(a,90));WS(this,"md",Gv(b,91),Gv(a,91));VS(this,"cp",Pw(b,92),Pw(a,92));WS(this,"sm",Gv(b,93),Gv(a,93));VS(this,"cv",Pw(b,94),Pw(a,
94));WS(this,"ng",Gv(b,95),Gv(a,95));WS(this,"il",Gv(b,96),Gv(a,96));WS(this,"lo",Gv(b,97),Gv(a,97));WS(this,"vm",Gv(b,98),Gv(a,98));XS(this,"dc",Dl(b,99),Dl(a,99));WS(this,"rf",Gv(b,100),Gv(a,100));XS(this,"vf",Dl(b,102),Dl(a,102));WS(this,"ra",Gi(b,103),Gi(a,103));WS(this,"ckm",Gv(b,104),Gv(a,104));WS(this,"gm",Gv(b,105),Gv(a,105));WS(this,"ngm",Gv(b,106),Gv(a,106));VS(this,"em",Pw(b,107),Pw(a,107));WS(this,"cr",Gv(b,108),Gv(a,108));VS(this,"sl",Pw(b,109),Pw(a,109));VS(this,"sb",Pw(b,110),Pw(a,
110));XS(this,"pt",Dl(b,111),Dl(a,111));XS(this,"gce",Dl(b,112),Dl(a,112));WS(this,"tm",Gv(b,113),Gv(a,113));WS(this,"ntm",Gv(b,114),Gv(a,114));VS(this,"mp",Pw(b,115),Pw(a,115));return this.components_.join("-")};
var VS=function(a,b,c,d,e,f){if(c!=null){var g=e==void 0||e!=10&&e!=16?10:e;c=Number(c).toString(g);e=new B8a;e.append(g==16?"0x":"");g=e.append;f==void 0?f="":(f-=c.length,f=f<=0?"":tHc("0",f));g.call(e,f);e.append(c);uqd(a,b,e.toString(),!!Number(d))}},WS=function(a,b,c,d){c&&uqd(a,b,"",!!d)},XS=function(a,b,c,d){c&&uqd(a,b,String(c),!!Number(d))},uqd=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};rw(Mr,C8a);h=Mr.prototype;h.setCrop=function(a){a&&YS(this);return Mr.superClass_.setCrop.call(this,a)};h.setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Mr.superClass_.setHeight.call(this,a)};h.setStretch=function(a){a&&YS(this);return Mr.superClass_.setStretch.call(this,a)};h.setQualityLevel=function(a){return Mr.superClass_.setQualityLevel.call(this,a)};h.setImageFilter=function(a){a&&(a=a.replace(";",":"));return Mr.superClass_.setImageFilter.call(this,a)};
h.setImageCrop=function(a){a&&YS(this);return Mr.superClass_.setImageCrop.call(this,a)};h.setCircleCrop=function(a){a&&YS(this);return Mr.superClass_.setCircleCrop.call(this,a)};h.setSize=function(a){Oa(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.setWidth(),this.setHeight());return Mr.superClass_.setSize.call(this,a)};h.setSmartCrop=function(a){a&&YS(this);return Mr.superClass_.setSmartCrop.call(this,a)};
h.setSmartCropNoClip=function(a){a&&YS(this);return Mr.superClass_.setSmartCropNoClip.call(this,a)};h.setSmartCropUseFace=function(a){a&&YS(this);return Mr.superClass_.setSmartCropUseFace.call(this,a)};h.setCenterCrop=function(a){a&&YS(this);return Mr.superClass_.setCenterCrop.call(this,a)};h.setPad=function(a){a&&YS(this);return Mr.superClass_.setPad.call(this,a)};h.setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Mr.superClass_.setWidth.call(this,a)};
var YS=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};Mr.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Gv(a,18)||Gv(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),YS(this)));return Mr.superClass_.build.call(this)};var vqd=/^[^\/]*\/\//,ZS=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(vqd))&&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_=wt(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},wqd=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},$S=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"&&(wqd(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)wqd(a,
a.components_[0]);else if(a.components_[0]=="image")wqd(a,a.components_[0]);else if(b==7||b==3)return a.valid_=!1,a.components_;if(b<=3){a.obfuscated_=!0;b==3&&(wqd(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_};ZS.prototype.isValid=function(){$S(this);return this.valid_};var xqd=function(a){$S(a);return a.obfuscated_},yqd=function(a){$S(a);return a.isFreeformUrl_};
ZS.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};ZS.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var zqd=function(a){$S(a);a.pathPrefix_==void 0&&(a.pathPrefix_=null);return a.pathPrefix_};ZS.prototype.hasOptions=function(){switch($S(this).length){case 7:return!0;case 6:return zqd(this)==null;case 5:return!1;case 3:return!0;case 2:return zqd(this)==null;case 1:return!1;default:return!1}};
var aT=function(a,b){if(yqd(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=$S(a)[b]}else if(xqd(a))a:{var c=zqd(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=$S(a)[b]}else a:{c=zqd(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=$S(a)[b]}return a};h=ZS.prototype;h.getObfuscatedGaiaId=function(){this.obfuscatedGaiaId_==void 0&&(this.obfuscatedGaiaId_=aT(this,0));return this.obfuscatedGaiaId_};h.getPhotoId=function(){this.photoId_==void 0&&(this.photoId_=aT(this,1));return this.photoId_};h.getImageVersion=function(){this.imageVersion_==void 0&&(this.imageVersion_=aT(this,2));return this.imageVersion_};h.getOptions=function(){this.options_==void 0&&(this.options_=aT(this,4));return this.options_};
h.getFilename=function(){this.filename_==void 0&&(this.filename_=aT(this,5));return this.filename_};var F8a=function(){};F8a.prototype.parse=function(a,b){return new D8a(a,b===void 0?!1:b)};var D8a=function(a,b){ZS.call(this,a,b===void 0?!1:b)};Y(D8a,ZS);D8a.prototype.getParsedOptions=function(){if(this.parsedOptions_==void 0){var a=this.getOptions();a||(a="");this.parsedOptions_=(new nqd).parse(a)}return this.parsedOptions_};rw(Nr,Mr);var E8a;Nr.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Nr.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=Nr.superClass_.build.call(this),b=[];zqd(this.parsedImageUrl_)!=null&&b.push(zqd(this.parsedImageUrl_));var c=yqd(this.parsedImageUrl_);if(xqd(this.parsedImageUrl_)){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=aT(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=aT(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_=aT(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=wt(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//",
"://"));return a};var Aqd=/\/\/lh[3-6]\./,Bqd=function(a,b,c,d){if(!a||!fqd(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(Aqd,"//lh3.");return(new Nr(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 Cqd=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],bT=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new wf(1);this.person$=this.providedEmail$.pipe(Af(function(d){return Zod(c.peopleService,d)}),A(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var g=d.imageUrl;if(fqd(g)){var k=new Nr(g);k.setSize(48).setCrop(!0);g=k.build()||g}}else g=d.imageUrl;d=f.call(e,{},d,{imageUrl:g})}return d}),xf(1));this.outOfOfficeDescription$=
new wf;this.init=new wf(1);this.destroyed$=new wf(1)};bT.prototype.ngOnInit=function(){var a=this;this.person$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&Dqd(this)};var Dqd=function(a){a.waldoService&&a.person$.pipe(Af(function(b){return b?Xpd(a.waldoService,b.email):ee("")}),Bf(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
da.Object.defineProperties(bT.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});bT.\u0275fac=function(a){return new (a||bT)(Ye(IS),Ye(QS,8))};
bT.\u0275cmp=D({type:bT,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&&(cg(Cqd),E(0,G8a,4,4,"onedev-person-hovercard-body",0),T(1,"async"));a&2&&I("ngIf",U(1,1,b.person$))},dependencies:[Yx,Fx,$od,Pod,RS,Lx],encapsulation:2,
changeDetection:0});var Eqd=[[["onedev-hovercard-action"],["",8,"actions"]]],cT=function(){};cT.prototype.ngOnInit=function(){};cT.\u0275fac=function(a){return new (a||cT)};
cT.\u0275cmp=D({type:cT,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&&(cg(Eqd),E(0,H8a,3,3,"onedev-person-hovercard",1))},dependencies:[bT,EK,FK],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 dT=function(){this.isNonObfuscatedEmail=$n};dT.\u0275fac=function(a){return new (a||dT)};
dT.\u0275cmp=D({type:dT,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&&(cg(),F(0,J8a,5,4)(1,L8a,1,1,"ng-container"),E(2,M8a,1,0,"ng-template",null,0,Mg));a&2&&G(b.email&&b.isNonObfuscatedEmail(b.email)?0:1)},dependencies:[Kx,DK,LK,cT],
encapsulation:2,changeDetection:0});var eT=function(){Z.apply(this,arguments);this.domSafe=p(iR);this.cdr=p(YP,{self:!0});this.actionService=p(FS,{optional:!0});this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};Y(eT,Z);eT.\u0275dir=Z.\u0275dir;
eT.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;(b=this.actionService)==null||b.assignee$.pipe(Bf(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;(c=this.actionService)==null||c.cc$.pipe(Bf(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var N8a=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";er("personCard","assigneeAction",b);God(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},O8a=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";er("personCard","ccAction",b);Hod(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};eT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(eT)))(b||eT)}}();
eT.\u0275cmp=D({type:eT,selectors:[["b-issue-person-card"]],inputs:{email:"email"},standalone:!1,features:[Gg([YP]),Gf],decls:6,vars:4,consts:[[3,"email"],[1,"actions"],[3,"click"],[3,"onAction","disabled"]],template:function(a,b){a&1&&(K(0,"b-person-card",0),F(1,P8a,9,8,"ng-container",1),T(2,"async"),K(3,"onedev-hovercard-action",2),N("click",function(c){er("personCard","showAssignedIssuesAction");var d=ps.listIssues.makeHref({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
Skd(b.domSafe,d)}),K(4,"span"),Q(5,"Show assigned issues"),L()()());a&2&&(I("email",b.email),B(),G(b.actionService&&U(2,2,b.actionService.editAccess$)?1:-1))},dependencies:[GK,cT,Lx],encapsulation:2,changeDetection:0});var Fqd=function(){this.activeSession=p(qu);this.isMentioningMe=!1};Fqd.prototype.ngOnInit=function(){this.activeSession.isInternalSession()?this.username=this.email.replace(/@google.com$/,""):this.username=this.email};Fqd.\u0275fac=function(a){return new (a||Fqd)};
Fqd.\u0275cmp=D({type:Fqd,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&&(K(0,"span",2,0),Q(2),L(),K(3,"onedev-hovercard",null,1),M(5,"b-issue-person-card",3),L());a&2&&(a=qg(4),wg("me",b.isMentioningMe),I("onedevHovercardTrigger",a),B(2),S("@",b.username),B(3),I("email",b.email))},dependencies:[eT,DK,LK],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 Q8a=RegExp("^https?:\\/\\/((?:screenshot\\.googleplex\\.com|screenshot\\.corp\\.google\\.com|3p-screenshot\\.corp\\.google\\.com|screen\\.corp\\.google\\.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),R8a=RegExp("^http(?:s?):\\/\\/(?:za|za\\.corp\\.google\\.com|alerts|plx-alerts\\.corp\\.google\\.com)\\/chart(?:\\/?)\\?(.*)"),V8a=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)"),S8a=RegExp("^https:\\/\\/static\\.corp\\.google\\.com\\/");var fT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,fT.messageId)};Y(fT,W);fT.prototype.getUrl=function(){return vi(this,1,void 0,jb)};fT.prototype.setUrl=function(a){return pj(this,1,a,jb)};fT.prototype.hasUrl=function(){return im(this,1,jb)};fT.messageId="b.ImageRedirectRequest";var gT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,gT.messageId)};Y(gT,W);gT.prototype.getUrl=function(){return vi(this,1,void 0,jb)};gT.prototype.setUrl=function(a){return pj(this,1,a,jb)};gT.prototype.hasUrl=function(){return im(this,1,jb)};gT.messageId="b.ImageRedirectResponse";var Gqd=function(){this.executor=p(ZN)},Hqd=function(a,b){b=(new fT).setUrl(b);return a.executor.post({url:"action/imageRedirect",body:b,responseConstructor:gT}).pipe(A(function(c){return c.getUrl()}))};Gqd.\u0275fac=function(a){return new (a||Gqd)};Gqd.\u0275prov=Fc({token:Gqd,factory:Gqd.\u0275fac,providedIn:"root"});var hT=function(){var a=this;this.imageRedirector=p(Gqd);this.src$=new Nj("");this.showImage$=new Nj(!1);this.error$=new Nj(!1);this.srcTruncated$=this.src$.pipe(A(function(b){var c=b;c=c===void 0?"":c;var d=d===void 0?48:d;b=[].concat(q(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$=le([this.src$,
this.showImage$]).pipe(we(function(b){b=m(b);b.next();return b.next().value}),Af(function(b){var c=m(b).next().value;return(b=X8a(c,!0))?ee(b):Hqd(a.imageRedirector,c).pipe(jf(function(){a.error$.next(!0);return c}))}))};hT.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
da.Object.defineProperties(hT.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}}});hT.\u0275fac=function(a){return new (a||hT)};
hT.\u0275cmp=D({type:hT,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,b9a,3,3),T(1,"async"),Lf(2,c9a,2,4,"mat-icon",0));a&2&&G(U(1,1,b.error$)===!1?0:2)},dependencies:[Dy,
oK,iA,jR,Lx],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 Iqd={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},Jqd=function(){var a=this;this.activeSession=p(qu);this.userPreferencesManager=p(dR);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=Iqd;this.src$=new Nj("");this.isMarkdownImage$=new Nj(!1);this.displayMode$=le([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(A(function(b){var c=m(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"}),zf("HIDE"))};da.Object.defineProperties(Jqd.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}}});Jqd.\u0275fac=function(a){return new (a||Jqd)};
Jqd.\u0275cmp=D({type:Jqd,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,f9a,3,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.src$))?0:-1,c)}},dependencies:[hT,Lx],styles:["[_nghost-%COMP%]   b-secure-image-widget.thumbnail[_ngcontent-%COMP%]{display:inline-block;margin-top:8px;margin-bottom:8px;max-width:70%}[_nghost-%COMP%]     b-secure-image-widget.thumbnail img{border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;min-width:18px;min-height:18px;max-width:100%;max-height:350px}/*# sourceMappingURL=trusted_image.css.map */"],
changeDetection:0});var iT=function(){this.content=tj;this.canEditComment=!1;this.checkboxChange=new XP;this.appRef=p(Wg);this.flags=p(sld);this.session=p(qu);this.viewContainerRef=p(fg);this.elementRef=p(Jd);this.destroyRef=p(Ee);this.allComponentRefs=[]};
iT.prototype.ngOnChanges=function(){Kqd(this);Yn(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=m(a.querySelectorAll("a"));for(d=c.next();!d.done;d=c.next())if(d=d.value,(f=d.getAttribute("href"))&&T8a(f)&&d&&WTa(d)&&f===d.textContent&&(e=d.nextSibling,Lqd(this,d,f,void 0,b),f=void 0,(f=e)!=null&&f.textContent&&(f=e.textContent.match(/(^[^\w]+)/))))f=
f[1],e.textContent=e.textContent.substring(f.length),e=document.createElement("span"),e.textContent=f,d.insertAdjacentElement("afterend",e);c=a.querySelectorAll("*[data-b-widget]");for(d=0;d<c.length;d++)switch(e=c[d],e.dataset.bWidget){case "image":f=e;e=b;var g=f.dataset.bImgSrc,k=f.dataset.bImgRedirectedSrc;g9a(f);if(g){var l=f.dataset.bImgAlt;if(T8a(g))Lqd(this,f,g,l,e,!0);else if(this.flags.session.getFlag("enableMarkdownInlineImages"))e=this.createComponent(hT,f,e).instance,e.src=g,l&&(e.alt=
l);else{var r=document.createElement("a");l?r.appendChild(document.createTextNode(l)):r.appendChild(document.createTextNode(g));f.appendChild(r);Mqd(this,r,g,k||g,e)}}break;case "checkbox":f=b;l=e.dataset.bCheckboxChecked!=null;g9a(e);Nqd(this,e,l,f);break;case "url":f=b;l=e.dataset.bOriginalHref;g=e.dataset.bRedirectedHref;l&&g&&(e.removeAttribute("href"),Mqd(this,e,l,g,f));break;case "broken-url":if(l=e.dataset.bOriginalHref)for(f=e,e=Array.from(f.childNodes),f=this.createComponent(lR,f,b).instance,
f.originalHref=l,f=f.getNgContentParentEl(),e=m(e),l=e.next();!l.done;l=e.next())f.appendChild(l.value);break;case "mention":f=void 0;l=e;g=b;e="";((f=l.textContent)==null?void 0:f[0])==="@"&&(e=l.textContent.slice(1));g9a(l);f=this.createComponent(Fqd,l,g).instance;f.email=e;f.isMentioningMe=this.session.getUserEmail()===e;break;case "issue-reference":if(l=e.href,g=e.dataset.bIssueId,k=e.dataset.bCommentNumber,l&&g){f=void 0;r=Number(k);k=Array.from(e.childNodes);var w=document.createElement("span");
(f=e.parentNode)==null||f.insertBefore(w,e);f=this.createComponent(IR,w,b).instance;f.href=l;f.issueId=g;f.commentNumber=r;f=f.el.nativeElement;l=m(k);for(g=l.next();!g.done;g=l.next())f.appendChild(g.value);e.remove()}}b=a.querySelectorAll("a");for(c=0;c<b.length;c++)d=b[c],d.getAttribute("target")||d.setAttribute("target","_self");b=a.querySelectorAll("table");for(c=0;c<b.length;c++)d=b[c],d.parentNode&&(e=document.createElement("div"),e.classList.add("table-overflow"),e.tabIndex=-1,d.parentNode.insertBefore(e,
d),e.appendChild(d));a=m(a.querySelectorAll("pre"));for(b=a.next();!b.done;b=a.next())b.value.tabIndex=-1};iT.prototype.ngOnDestroy=function(){Kqd(this)};
var Lqd=function(a,b,c,d,e,f){f=f===void 0?!1:f;var g=b;b instanceof HTMLAnchorElement&&(g=document.createElement("span"),b.insertAdjacentElement("afterend",g));a=a.createComponent(Jqd,g,e).instance;a.src=c;a.alt=d;a.isMarkdownImage=f},Nqd=function(a,b,c,d){var e,f=(e=b.dataset.bCheckboxStartpos)!=null?e:"";b=a.createComponent(Vkd,b,d).instance;b.checked=c;b.disabled=a.session.userRequiresCaptcha()||!a.canEditComment||!a.session.getFlag("enableInteractiveMarkdownCheckboxes");b.startPos=f;b.checkedChange.pipe(Uj(a.destroyRef)).subscribe(function(g){a.checkboxChange.emit({checked:g,
startPos:f})})},Mqd=function(a,b,c,d,e){var f=Array.from(b.childNodes);a=a.createComponent(GR,b,e).instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=m(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)};iT.prototype.createComponent=function(a,b,c){a=opa(a,{environmentInjector:this.appRef.injector,elementInjector:c.injector});b.appendChild(a.location.nativeElement);nAc(this.appRef,a.hostView);this.allComponentRefs.push(a);return a};
var Kqd=function(a){for(var b=m(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[]};iT.\u0275fac=function(a){return new (a||iT)};iT.\u0275dir=df({type:iT,selectors:[["","applyDynamicComponents",""]],inputs:{content:[0,"applyDynamicComponents","content"],canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[bx]});var jT=function(){this.codefont=p(fR);this.canEditComment=!1;this.checkboxChange=new XP};jT.prototype.ngOnInit=function(){};jT.\u0275fac=function(a){return new (a||jT)};
jT.\u0275cmp=D({type:jT,selectors:[["b-markdown-format-presenter"]],inputs:{content:"content",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,features:[Gg([{provide:Qkd,useValue:"MARKDOWN"}])],decls:3,vars:6,consts:[["child",""],[1,"type-m","markdown-display",3,"checkboxChange","applyDynamicComponents","canEditComment"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);T(2,"async");N("checkboxChange",function(d){u(c);return v(b.checkboxChange.emit(d))});
L()}a&2&&(wg("codefont",U(2,4,b.codefont.codefont$)),I("applyDynamicComponents",b.content.content)("canEditComment",b.canEditComment))},dependencies:[iT,Lx],styles:[':root{--blue-50: #e8f0fe;--blue-100: #d2e3fc;--blue-200: #aecbfa;--blue-300: #8ab4f8;--blue-400: #669df6;--blue-500: #4285f4;--blue-600: #1a73e8;--blue-700: #1967d2;--blue-800: #185abc;--blue-900: #174ea6;--blue: var(--blue-600);--red-50: #fce8e6;--red-100: #fad2cf;--red-200: #f6aea9;--red-300: #f28b82;--red-400: #ee675c;--red-500: #ea4335;--red-600: #d93025;--red-700: #c5221f;--red-800: #b31412;--red-900: #a50e0e;--red: var(--red-600);--yellow-50: #fef7e0;--yellow-100: #feefc3;--yellow-200: #fde293;--yellow-300: #fdd663;--yellow-400: #fcc934;--yellow-500: #fbbc04;--yellow-600: #f9ab00;--yellow-700: #f29900;--yellow-800: #ea8600;--yellow-900: #e37400;--yellow: var(--yellow-600);--green-50: #e6f4ea;--green-100: #ceead6;--green-200: #a8dab5;--green-300: #81c995;--green-400: #5bb974;--green-500: #34a853;--green-600: #1e8e3e;--green-700: #188038;--green-800: #137333;--green-900: #0d652d;--green: var(--green-600);--white: #fff;--grey-50: #f8f9fa;--grey-100: #f1f3f4;--grey-200: #e8eaed;--grey-300: #dadce0;--grey-400: #bdc1c6;--grey-500: #9aa0a6;--grey-600: #80868b;--grey-700: #5f6368;--grey-800: #3c4043;--grey-900: #202124;--black: var(--grey-900);--orange-50: #feefe3;--orange-100: #fedfc8;--orange-200: #fdc69c;--orange-300: #fcad70;--orange-400: #fa903e;--orange-500: #fa7b17;--orange-600: #e8710a;--orange-700: #d56e0c;--orange-800: #c26401;--orange-900: #b06000;--pink-50: #fde7f3;--pink-100: #fdcfe8;--pink-200: #fba9d6;--pink-300: #ff8bcb;--pink-400: #ff63b8;--pink-500: #f439a0;--pink-600: #e52592;--pink-700: #c92786;--pink-800: #b80672;--pink-900: #9c166b;--purple-50: #f3e8fd;--purple-100: #e9d2fd;--purple-200: #d7aefb;--purple-300: #c58af9;--purple-400: #af5cf7;--purple-500: #a142f4;--purple-600: #9334e6;--purple-700: #8430ce;--purple-800: #7627bb;--purple-900: #681da8;--cyan-50: #e4f7fb;--cyan-100: #cbf0f8;--cyan-200: #a1e4f2;--cyan-300: #78d9ec;--cyan-400: #4ecde6;--cyan-500: #24c1e0;--cyan-600: #12b5cb;--cyan-700: #129eaf;--cyan-800: #098591;--cyan-900: #007b83}.markdown-display{word-break:break-word;overflow-wrap:break-word}.markdown-display p{word-break:break-word}.markdown-display hr{height:0;border:0;border-top:1px solid var(--hairline)}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{font-weight:500}.markdown-display h1{font-size:160%;font-weight:700}.markdown-display h2{font-size:160%}.markdown-display h3{font-size:140%}.markdown-display h4{font-size:120%}.markdown-display h5{font-size:100%}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display p,.markdown-display blockquote,.markdown-display hr,.markdown-display ul,.markdown-display ol{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display>*:first-child{margin-block-start:0}.markdown-display ul,.markdown-display ol{padding-inline-start:2rem}.markdown-display blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.markdown-display ul{list-style:initial}.markdown-display ul ul{list-style:circle}.markdown-display ul ul ul{list-style:square}.markdown-display ul ul,.markdown-display ol ol,.markdown-display ul ol,.markdown-display ol ul{margin:0}.markdown-display li{margin-block-end:.2em}.markdown-display code,.markdown-display pre{background-color:var(--surface-secondary);border-radius:2px;font-family:WorkAroundWebKitAndMozilla,monospace}.markdown-display pre{border:1px solid var(--hairline);overflow-x:auto}.markdown-display code{color:var(--markdown-code);padding:0 2px}.markdown-display pre code{color:var(--text-high-contrast);padding:0}.markdown-display pre{padding:8px 16px}.markdown-display pre,.markdown-display pre code{line-height:1.5}.markdown-display img{max-width:100%}.markdown-display a,.markdown-display a code{color:var(--primary-default);text-decoration:none}.markdown-display a:visited,.markdown-display a code:visited{color:var(--markdown-link-visited)}.markdown-display pre code a{color:inherit;text-decoration:underline}.markdown-display a:hover{text-decoration:underline}.markdown-display a:focus{outline:-webkit-focus-ring-color auto 1px}.markdown-display table{border-collapse:collapse;margin:1em 0}.markdown-display td,.markdown-display th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.markdown-display th{text-align:left;vertical-align:bottom;word-break:keep-all}.markdown-display div.table-overflow{overflow-x:auto}.markdown-display input[type=checkbox]{vertical-align:middle}.markdown-display section.footnotes{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;margin-top:2.5em;border-top:1px solid #dadce0}.markdown-display sup.footnote-ref::before{content:"["}.markdown-display sup.footnote-ref::after{content:"]"}.markdown-display .footnote-backref{text-decoration:none}.markdown-display .footnote-backref>a{text-decoration:none}.markdown-display .align-left{text-align:left}.markdown-display .align-right{text-align:right}.markdown-display .align-center{text-align:center}.markdown-display .align-justify{text-align:justify}.markdown-display .g3mark-callout{position:relative}.markdown-display .g3mark-callout .g3mark-callout__icon{display:none}.markdown-display summary{cursor:pointer}.markdown-display code{white-space:break-spaces}.markdown-display pre code{white-space:pre}body:not(.dark-mode) .markdown-display .stx-plain{color:inherit}body:not(.dark-mode) .markdown-display .stx-keyword{color:#708}body:not(.dark-mode) .markdown-display .stx-keyword-strong{color:inherit}body:not(.dark-mode) .markdown-display .stx-string{color:#080}body:not(.dark-mode) .markdown-display .stx-comment{color:#800}body:not(.dark-mode) .markdown-display .stx-number{color:#164}body:not(.dark-mode) .markdown-display .stx-macro{color:#555}body:not(.dark-mode) .markdown-display .stx-class{color:inherit}body:not(.dark-mode) .markdown-display .stx-const{color:inherit}body:not(.dark-mode) .markdown-display .stx-escape-sequence{color:inherit}body:not(.dark-mode) .markdown-display .stx-deprecated{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-doc-tag{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-task-tag{font-weight:inherit}body:not(.dark-mode) .markdown-display .stx-atom{color:#219}body:not(.dark-mode) .markdown-display .stx-definition{color:blue}body:not(.dark-mode) .markdown-display .stx-type-id{color:#085}body:not(.dark-mode) .markdown-display .stx-qualifier{color:#555}body:not(.dark-mode) .markdown-display .stx-local-ref{color:#05a}body:not(.dark-mode) .markdown-display .stx-md-entity{color:#708}body:not(.dark-mode) .markdown-display .stx-md-bold{font-weight:bold}body:not(.dark-mode) .markdown-display .stx-md-italic{font-style:italic}body:not(.dark-mode) .markdown-display .stx-md-link{color:#080}body:not(.dark-mode) .markdown-display .stx-md-code{color:#555}body:not(.dark-mode) .markdown-display .stx-comment .stx-md-link,body:not(.dark-mode) .markdown-display .stx-comment .stx-md-code{color:#800}body:not(.dark-mode) .markdown-display pre .chl{border:1px solid #ffca28;background-color:#fff59d;padding:1px 0;margin:0 -1px}body:not(.dark-mode) .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body:not(.dark-mode) .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body:not(.dark-mode) .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body:not(.dark-mode) .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body:not(.dark-mode) .markdown-display .g3mark-callout__keyword{font-weight:bold}body:not(.dark-mode) .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons","Google Symbols";margin-left:-1.5rem}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body:not(.dark-mode) .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body:not(.dark-mode) .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body:not(.dark-mode) .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body:not(.dark-mode) .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body:not(.dark-mode) .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body:not(.dark-mode) .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr,body:not(.dark-mode) .markdown-display .g3mark-callout-summary{border-color:#669df6;background:#e8f0fe;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-todo,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme{border-color:#bdc1c6;background:#f8f9fa;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-tip,body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice{border-color:#5bb974;background:#e6f4ea;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-note{border-color:#bdc1c6;background:#f8f9fa;color:#202124;background:#f1f3f4}body:not(.dark-mode) .markdown-display .g3mark-callout-warning{border-color:#ee675c;background:#fce8e6;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-important{border-color:#fa903e;background:#feefe3;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-question{border-color:#669df6;background:#e8f0fe;color:#202124}body.dark-mode .markdown-display .stx-plain{color:inherit}body.dark-mode .markdown-display .stx-keyword{color:#d8884b}body.dark-mode .markdown-display .stx-keyword-strong{color:inherit}body.dark-mode .markdown-display .stx-string{color:#97c67b}body.dark-mode .markdown-display .stx-comment{color:#8c9292}body.dark-mode .markdown-display .stx-number{color:#79a9c4}body.dark-mode .markdown-display .stx-macro{color:#9dbed9}body.dark-mode .markdown-display .stx-class{color:inherit}body.dark-mode .markdown-display .stx-const{color:inherit}body.dark-mode .markdown-display .stx-escape-sequence{color:inherit}body.dark-mode .markdown-display .stx-deprecated{text-decoration:inherit}body.dark-mode .markdown-display .stx-doc-tag{text-decoration:inherit}body.dark-mode .markdown-display .stx-task-tag{font-weight:inherit}body.dark-mode .markdown-display .stx-atom{color:#cf7ea9}body.dark-mode .markdown-display .stx-definition{color:#75b3db}body.dark-mode .markdown-display .stx-type-id{color:#eede7b}body.dark-mode .markdown-display .stx-qualifier{color:#97c67b}body.dark-mode .markdown-display .stx-local-ref{color:#aac6e3}body.dark-mode .markdown-display .stx-md-entity{color:#d8884b}body.dark-mode .markdown-display .stx-md-bold{font-weight:bold}body.dark-mode .markdown-display .stx-md-italic{font-style:italic}body.dark-mode .markdown-display .stx-md-link{color:#d8884b}body.dark-mode .markdown-display .stx-md-code{color:#d8884b}body.dark-mode .markdown-display .stx-comment .stx-md-link,body.dark-mode .markdown-display .stx-comment .stx-md-code{color:#89b2cd}body.dark-mode .markdown-display pre .chl{border:1px solid #ffca28;background-color:#6a5619;padding:1px 0;margin:0 -1px}body.dark-mode .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body.dark-mode .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body.dark-mode .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body.dark-mode .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body.dark-mode .markdown-display .g3mark-callout__keyword{font-weight:bold}body.dark-mode .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons","Google Symbols";margin-left:-1.5rem}body.dark-mode .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body.dark-mode .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body.dark-mode .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body.dark-mode .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body.dark-mode .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body.dark-mode .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body.dark-mode .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body.dark-mode .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body.dark-mode .markdown-display .g3mark-callout-todo,body.dark-mode .markdown-display .g3mark-callout-fixme,body.dark-mode .markdown-display .g3mark-callout-tldr,body.dark-mode .markdown-display .g3mark-callout-tip,body.dark-mode .markdown-display .g3mark-callout-note,body.dark-mode .markdown-display .g3mark-callout-warning,body.dark-mode .markdown-display .g3mark-callout-important,body.dark-mode .markdown-display .g3mark-callout-best_practice,body.dark-mode .markdown-display .g3mark-callout-summary,body.dark-mode .markdown-display .g3mark-callout-question{border-color:#fff;background:#3c4043;color:#fff}/*# sourceMappingURL=markdown_format_presenter.css.map */\n'],
encapsulation:2,changeDetection:0});var Oqd=["child"],Pqd=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},kT=function(){this.codefont=p(fR)};kT.prototype.ngOnInit=function(){};kT.\u0275fac=function(a){return new (a||kT)};
kT.\u0275cmp=D({type:kT,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},standalone:!1,features:[Gg([{provide:Qkd,useValue:"PLAIN"}])],decls:4,vars:4,consts:[[1,"type-m"],[3,"section"]],template:function(a,b){a&1&&(K(0,"div",0),T(1,"async"),Of(2,h9a,1,1,"b-plain-format-section",1,Nf),L());a&2&&(wg("codefont",U(1,2,b.codefont.codefont$)),B(2),Pf(b.content.plainSection))},dependencies:function(){return[Qqd,Lx]},styles:[Pqd()],changeDetection:0});var Qqd=function(){};
Qqd.prototype.ngOnInit=function(){};Qqd.\u0275fac=function(a){return new (a||Qqd)};Qqd.\u0275cmp=D({type:Qqd,selectors:[["b-plain-format-section"]],inputs:{section:"section"},standalone:!1,decls:3,vars:1,consts:[[3,"section"]],template:function(a,b){a&1&&(Uf(0),F(1,i9a,1,1,"b-plain-format-quoted-section",0)(2,j9a,1,1,"b-plain-format-unquoted-section",0),Vf());a&2&&(B(),G(b.section.isQuoted?1:2))},dependencies:function(){return[lT,Rqd]},encapsulation:2,changeDetection:0});
var lT=function(){this.showQuote=!1;this.childId="plainFormatQuotedSection"+ ++Sqd};lT.prototype.ngOnInit=function(){};lT.prototype.ngOnChanges=function(){k9a(this)};var k9a=function(a){var b=a.child.nativeElement;if(a.showQuote)Yn(b,a.section.content);else for(;b.lastChild;)b.lastChild.remove()};lT.\u0275fac=function(a){return new (a||lT)};
lT.\u0275cmp=D({type:lT,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&hg(Oqd,7);if(a&2){var c;lg(c=mg())&&(b.child=c.first)}},inputs:{section:"section"},standalone:!1,features:[bx],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&&(K(0,"div"),F(1,l9a,2,1,"a",1)(2,m9a,2,1,"a",2),M(3,"div",3,0),L());a&2&&(B(),G(b.showQuote?1:2),B(2),I("id",b.childId))},styles:[Pqd()],changeDetection:0});var Sqd=0,Rqd=function(){};Rqd.prototype.ngOnInit=function(){};Rqd.\u0275fac=function(a){return new (a||Rqd)};
Rqd.\u0275cmp=D({type:Rqd,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:[iT],encapsulation:2,changeDetection:0});var mT=function(){this.canEditComment=!1;this.checkboxChange=new XP;this.contentRendered=new XP};mT.prototype.ngOnInit=function(){};mT.prototype.ngAfterViewInit=function(){this.contentRendered.emit()};mT.\u0275fac=function(a){return new (a||mT)};
mT.\u0275cmp=D({type:mT,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange",contentRendered:"contentRendered"},standalone:!1,decls:3,vars:3,consts:[[3,"content"],[3,"content","canEditComment"],[3,"checkboxChange","content","canEditComment"]],template:function(a,b){a&1&&(F(0,n9a,1,1,"b-literal-format-presenter",0),F(1,o9a,1,2,"b-markdown-format-presenter",1),F(2,p9a,1,1,"b-plain-format-presenter",
0));if(a&2){var c,d,e;G((c=b.formattedComment.literalFormat)?0:-1,c);B();G((d=b.formattedComment.markdownFormat)?1:-1,d);B();G((e=b.formattedComment.plainFormat)?2:-1,e)}},dependencies:[gR,jT,kT],encapsulation:2,changeDetection:0});var nT=function(){Z.apply(this,arguments);var a=this;this.formatter=p(bR);this.issueIdInternal="";this.audience="EXTERNAL";this.formattingMode="LITERAL";this.params$=new wf(1);this.formattedResult$=this.params$.pipe(lf(200),Af(function(b){return a.formatter.format(b).pipe(Tqd,jf(function(){var c={literalFormat:{content:Bh(b.comment)}};return ee({formattedComment:c,isFallback:!0})}))}))};Y(nT,Z);nT.\u0275dir=Z.\u0275dir;
nT.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()})}))};nT.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()})};
nT.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueIdInternal+"-draft"};da.Object.defineProperties(nT.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=a||""}}});nT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nT)))(b||nT)}}();
nT.\u0275cmp=D({type:nT,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},standalone:!1,features:[Gf,bx],decls:2,vars:3,consts:[[1,"md-preview",3,"invisible","error"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(F(0,q9a,2,5,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.formattedResult$))?0:-1,c)}},dependencies:[mT,Lx],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 Tqd=A(function(a){return{formattedComment:a,isFallback:!1}});var Uqd=/^\s*(?:hotlistid|h):(\d+)\s*$/i,Vqd=/(?:\s|^)(?:componentid|c):(\d+)\s*/i,Wqd=/^\s*savedsearchid:(\d+)\s*$/i,oT=function(){Z.call(this);var a=this;this.$log=p(iO);this.activeSession=p(qu);this.contextSensitiveRegistry=p(TQ);this.analytics=p(aQ);this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new Nj({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=pe(function(){var b;return ee((b=a.activeSession.getTracker())==null?void 0:b.trackerId)}).pipe(A(function(b){return b?
[b]:[]}));this.selectedTrackerIds$=new sf;this.trackerScope$=ve(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new sf;this.subscriptions.add(this.queryState$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.currentQuery=b.query;(b=a.currentQuery.match(Vqd))?a.contextSensitiveRegistry.componentIdOverride$.next(b[1]):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentQuery.match(Uqd))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Number(b[1])):
a.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.currentTrackerScope=b}))};Y(oT,Z);oT.\u0275dir=Z.\u0275dir;oT.prototype.clear=function(){Xqd(this,"")};var Xqd=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},Yqd=function(a){return"assignee:"+a+" status:open"},Zqd=function(a,b){return a.currentQuery===Yqd("me")||a.currentQuery===Yqd(b===void 0?"":b)};
oT.prototype.getStarred=function(){return"star:true"};oT.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};var $qd=function(a){return"verifier:"+a+" status:open | status:fixed"},ard=function(a){return(a=a.currentQuery.match(Uqd))?Number(a[1]):0},brd=function(a){return(a=a.currentQuery.match(Wqd))?a[1]:void 0},crd=function(a){return(a=a.currentQuery.match(Vqd))?a[1]:void 0};oT.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};
var drd=function(a,b){a.searchHandlerStack.push(b);return function(){La(a.searchHandlerStack,b)}};oT.\u0275fac=function(a){return new (a||oT)};oT.\u0275prov=Fc({token:oT,factory:oT.\u0275fac,providedIn:"root"});var erd=function(a,b){return[a,b]},pT=function(){this.size=this.name=""};pT.prototype.ngOnInit=function(){};pT.\u0275fac=function(a){return new (a||pT)};
pT.\u0275cmp=D({type:pT,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&&(xg(Jg(3,erd,b.name,b.size)),I("svgIcon",b.name))},dependencies:[Dy],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 frd=["input"],grd=["formField"],hrd=function(a,b){this.source=a;this.value=b},ird={provide:VD,useExisting:Yc(function(){return qT}),multi:!0},jrd=new fd("MatRadioGroup"),krd=new fd("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent",disabledInteractive:!1}}}),qT=function(){this._changeDetector=p(ux);this._value=null;this._name=p(bi).getId("mat-radio-group-");this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=
!1;this._controlValueAccessorChangeFn=function(){};this.onTouched=function(){};this.change=new Ui;this._disabledInteractive=!1};h=qT.prototype;h._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};h.ngAfterContentInit=function(){var a=this;this._isInitialized=!0;this._buttonChanges=this._radios.changes.subscribe(function(){a.selected&&!a._radios.find(function(b){return b===a.selected})&&(a._selected=null)})};
h.ngOnDestroy=function(){var a;(a=this._buttonChanges)==null||a.unsubscribe()};h._touch=function(){if(this.onTouched)this.onTouched()};h._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};
h._updateSelectedRadioFromValue=function(){var a=this,b=this._selected!==null&&this._selected.value===this._value;this._radios&&!b&&(this._selected=null,this._radios.forEach(function(c){c.checked=a.value===c.value;c.checked&&(a._selected=c)}))};h._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new hrd(this._selected,this._value))};h._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};h.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};
h.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
da.Object.defineProperties(qT.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()}}});qT.\u0275fac=function(a){return new (a||qT)};
qT.\u0275dir=df({type:qT,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&ig(c,rT,5);if(a&2){var d;lg(d=mg())&&(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",$g],required:[2,"required","required",$g],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g]},outputs:{change:"change"},exportAs:["matRadioGroup"],
features:[Gg([ird,{provide:jrd,useExisting:qT}])]});
var rT=function(){var a=this;this._elementRef=p(Jd);this._changeDetector=p(ux);this._focusMonitor=p(Hy);this._radioDispatcher=p(sz);this._defaultOptions=p(krd,{optional:!0});this._ngZone=p(Rg);this._renderer=p(di);this.id=this._uniqueId=p(bi).getId("mat-radio-");this.disableRipple=!1;this.tabIndex=0;this.change=new Ui;this._checked=!1;this._value=null;this._removeUniqueSelectionListener=function(){};this._noopAnimations=ni();this._injector=p(Ae);this._onInputClick=function(f){a.disabled&&a.disabledInteractive&&
f.preventDefault()};p($h).load(Yz);var b=p(jrd,{optional:!0}),c=p(new cx("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=ah(c,0))};h=rT.prototype;h.focus=function(a,b){b?Iy(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};h._markForCheck=function(){this._changeDetector.markForCheck()};
h.ngOnInit=function(){var a=this;if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}this._removeUniqueSelectionListener=this._radioDispatcher.listen(function(b,c){b!==a.id&&c===a.name&&(a.checked=!1)})};h.ngDoCheck=function(){this._updateTabIndex()};
h.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()});this._ngZone.runOutsideAngular(function(){a._cleanupClick=a._renderer.listen(a._inputElement.nativeElement,"click",a._onInputClick)})};h.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};
h._emitChangeEvent=function(){this.change.emit(new hrd(this,this._value))};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};h._onInputInteraction=function(a){a.stopPropagation();this.checked||this.disabled||(a=this.radioGroup&&this.value!==this.radioGroup.value,this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent()))};
h._onTouchTargetClick=function(a){this._onInputInteraction(a);if(!this.disabled||this.disabledInteractive){var b;(b=this._inputElement)==null||b.nativeElement.focus()}};h._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
h._updateTabIndex=function(){var a=this,b=this.radioGroup;var c=b&&b.selected&&!this.disabled?b.selected===this?this.tabIndex:-1:this.tabIndex;if(c!==this._previousTabIndex){var d,e=(d=this._inputElement)==null?void 0:d.nativeElement;e&&(e.setAttribute("tabindex",c+""),this._previousTabIndex=c,Ge(function(){queueMicrotask(function(){if(b&&b.selected&&b.selected!==a&&document.activeElement===e){var f;(f=b.selected)==null||f._inputElement.nativeElement.focus();document.activeElement===e&&a._inputElement.nativeElement.blur()}})},
{injector:this._injector}))}};
da.Object.defineProperties(rT.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"}}});rT.\u0275fac=function(a){return new (a||rT)};
rT.\u0275cmp=D({type:rT,selectors:[["mat-radio-button"]],viewQuery:function(a,b){a&1&&(hg(frd,5),hg(grd,7,Jd));if(a&2){var c;lg(c=mg())&&(b._inputElement=c.first);lg(c=mg())&&(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&&(Kf("id",b.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),wg("mat-primary",b.color==="primary")("mat-accent",
b.color==="accent")("mat-warn",b.color==="warn")("mat-mdc-radio-checked",b.checked)("mat-mdc-radio-disabled",b.disabled)("mat-mdc-radio-disabled-interactive",b.disabledInteractive)("_mat-animation-noopable",b._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==
null?0:ah(a)}],checked:[2,"checked","checked",$g],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",$g],required:[2,"required","required",$g],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$g]},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();cg();K(0,"div",2,0)(2,"div",3)(3,"div",4);N("click",function(d){u(c);
return v(b._onTouchTargetClick(d))});L();K(4,"input",5,1);N("change",function(d){u(c);return v(b._onInputInteraction(d))});L();K(6,"div",6);M(7,"div",7)(8,"div",8);L();K(9,"div",9);M(10,"div",10);L()();K(11,"label",11);dg(12);L()()}a&2&&(I("labelPosition",b.labelPosition),B(2),wg("mdc-radio--disabled",b.disabled),B(2),I("id",b.inputId)("checked",b.checked)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),Kf("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",
b.ariaLabelledby)("aria-describedby",b.ariaDescribedby)("aria-disabled",b.disabled&&b.disabledInteractive?"true":null),B(5),I("matRippleTrigger",b._rippleTrigger.nativeElement)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0),B(2),I("for",b.inputId))},dependencies:[aA,Zz],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var lrd=new fd("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1}}});var mrd=["switch"],nrd=function(a,b){this.source=a;this.checked=b},sT=function(){this._elementRef=p(Jd);this._focusMonitor=p(Hy);this._changeDetectorRef=p(ux);this.defaults=p(lrd);this._onChange=function(){};this._onTouched=function(){};this._validatorOnChange=function(){};this._checked=!1;this._noopAnimations=ni();this.name=null;this.labelPosition="after";this.ariaLabelledby=this.ariaLabel=null;this.disableRipple=this.disabled=!1;this.tabIndex=0;this.change=new Ui;this.toggleChange=new Ui;p($h).load(Yz);
var a=p(new cx("tabindex"),{optional:!0}),b=this.defaults;this.tabIndex=a==null?0:parseInt(a)||0;this.color=b.color||"accent";this.id=this._uniqueId=p(bi).getId("mat-mdc-slide-toggle-");var c;this.hideIcon=(c=b.hideIcon)!=null?c:!1;var d;this.disabledInteractive=(d=b.disabledInteractive)!=null?d:!1;this._labelId=this._uniqueId+"-label"};h=sT.prototype;h._createChangeEvent=function(a){return new nrd(this,a)};h.focus=function(){this._switchElement.nativeElement.focus()};
h.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b==="keyboard"||b==="program"?(a._focused=!0,a._changeDetectorRef.markForCheck()):b||Promise.resolve().then(function(){a._focused=!1;a._onTouched();a._changeDetectorRef.markForCheck()})})};h.ngOnChanges=function(a){a.required&&this._validatorOnChange()};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.writeValue=function(a){this.checked=!!a};
h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};h.registerOnValidatorChange=function(a){this._validatorOnChange=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};h.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};h._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
h._handleClick=function(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new nrd(this,this.checked))))};h._getAriaLabelledBy=function(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId};
da.Object.defineProperties(sT.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"}}});sT.\u0275fac=function(a){return new (a||sT)};
sT.\u0275cmp=D({type:sT,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&hg(mrd,5);if(a&2){var c;lg(c=mg())&&(b._switchElement=c.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Qf("id",b.id),Kf("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),xg(b.color?"mat-"+b.color:""),wg("mat-mdc-slide-toggle-focused",b._focused)("mat-mdc-slide-toggle-checked",b.checked)("_mat-animation-noopable",b._noopAnimations))},inputs:{name:"name",
id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",$g],color:"color",disabled:[2,"disabled","disabled",$g],disableRipple:[2,"disableRipple","disableRipple",$g],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ah(a)}],checked:[2,"checked","checked",$g],hideIcon:[2,"hideIcon","hideIcon",$g],disabledInteractive:[2,"disabledInteractive",
"disabledInteractive",$g]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Gg([{provide:VD,useExisting:Yc(function(){return sT}),multi:!0},{provide:WD,useExisting:sT,multi:!0}]),bx],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();cg();K(0,"div",1)(1,"button",2,0);N("click",function(){u(c);return v(b._handleClick())});M(3,"div",3)(4,"span",4);K(5,"span",5)(6,"span",6)(7,"span",7);M(8,"span",8);L();K(9,"span",9);M(10,"span",10);L();F(11,v9a,5,0,"span",11);L()()();K(12,"label",12);N("click",function(d){u(c);return v(d.stopPropagation())});dg(13);L()()}a&2&&(a=qg(2),I("labelPosition",b.labelPosition),B(),wg("mdc-switch--selected",
b.checked)("mdc-switch--unselected",!b.checked)("mdc-switch--checked",b.checked)("mdc-switch--disabled",b.disabled)("mat-mdc-slide-toggle-disabled-interactive",b.disabledInteractive),I("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex)("disabled",b.disabled&&!b.disabledInteractive),Kf("id",b.buttonId)("name",b.name)("aria-label",b.ariaLabel)("aria-labelledby",b._getAriaLabelledBy())("aria-describedby",b.ariaDescribedby)("aria-required",b.required||null)("aria-checked",b.checked)("aria-disabled",
b.disabled&&b.disabledInteractive?"true":null),B(9),I("matRippleTrigger",a)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0),B(),G(b.hideIcon?-1:11),B(),I("for",b.buttonId),Kf("id",b._labelId))},dependencies:[aA,Zz],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var tT=new fd("CDK_TABLE");new fd("text-column-options");var uT=function(){this.template=p(eg)};uT.\u0275fac=function(a){return new (a||uT)};uT.\u0275dir=df({type:uT,selectors:[["","cdkCellDef",""]]});var vT=function(){this.template=p(eg)};vT.\u0275fac=function(a){return new (a||vT)};vT.\u0275dir=df({type:vT,selectors:[["","cdkHeaderCellDef",""]]});var wT=function(){this.template=p(eg)};wT.\u0275fac=function(a){return new (a||wT)};wT.\u0275dir=df({type:wT,selectors:[["","cdkFooterCellDef",""]]});
var xT=function(){this._table=p(tT,{optional:!0});this._stickyEnd=this._sticky=this._hasStickyChanged=!1};xT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};xT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};xT.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};
xT.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
da.Object.defineProperties(xT.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)}}});
xT.\u0275fac=function(a){return new (a||xT)};xT.\u0275dir=df({type:xT,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(ig(c,uT,5),ig(c,vT,5),ig(c,wT,5));if(a&2){var d;lg(d=mg())&&(b.cell=d.first);lg(d=mg())&&(b.headerCell=d.first);lg(d=mg())&&(b.footerCell=d.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",$g],stickyEnd:[2,"stickyEnd","stickyEnd",$g]},features:[Gg([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:xT}])]});
var ord=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,q(a._columnCssClassName))},yT=function(){ord.call(this,p(xT),p(Jd))};Y(yT,ord);yT.\u0275fac=function(a){return new (a||yT)};yT.\u0275dir=df({type:yT,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Gf]});
var zT=function(){var a=p(xT),b=p(Jd);ord.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(zT,ord);zT.\u0275fac=function(a){return new (a||zT)};zT.\u0275dir=df({type:zT,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Gf]});var AT=function(){var a=p(xT),b=p(Jd);ord.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(AT,ord);
AT.\u0275fac=function(a){return new (a||AT)};AT.\u0275dir=df({type:AT,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Gf]});var BT=function(){this.template=p(eg);this._differs=p(xx)};BT.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};BT.\u0275fac=function(a){return new (a||BT)};BT.\u0275dir=df({type:BT,features:[bx]});var CT=function(){BT.call(this,p(eg),p(xx));this._table=p(tT,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(CT,BT);
CT.prototype.ngOnChanges=function(a){BT.prototype.ngOnChanges.call(this,a)};CT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};CT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(CT.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});CT.\u0275fac=function(a){return new (a||CT)};
CT.\u0275dir=df({type:CT,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",$g]},features:[Gf,bx]});var DT=function(){BT.call(this,p(eg),p(xx));this._table=p(tT,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(DT,BT);DT.prototype.ngOnChanges=function(a){BT.prototype.ngOnChanges.call(this,a)};DT.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};
DT.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(DT.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});DT.\u0275fac=function(a){return new (a||DT)};DT.\u0275dir=df({type:DT,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",$g]},features:[Gf,bx]});
var ET=function(){BT.call(this,p(eg),p(xx));this._table=p(tT,{optional:!0})};Y(ET,BT);ET.\u0275fac=function(a){return new (a||ET)};ET.\u0275dir=df({type:ET,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Gf]});var FT=function(){this._viewContainer=p(fg);FT.mostRecentCellOutlet=this};FT.prototype.ngOnDestroy=function(){FT.mostRecentCellOutlet===this&&(FT.mostRecentCellOutlet=null)};FT.mostRecentCellOutlet=null;
FT.\u0275fac=function(a){return new (a||FT)};FT.\u0275dir=df({type:FT,selectors:[["","cdkCellOutlet",""]]});var prd=function(){};prd.\u0275fac=function(a){return new (a||prd)};prd.\u0275cmp=D({type:prd,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&&Wf(0,0)},dependencies:[FT],encapsulation:2});var qrd=function(){};qrd.\u0275fac=function(a){return new (a||qrd)};
qrd.\u0275cmp=D({type:qrd,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&&Wf(0,0)},dependencies:[FT],encapsulation:2});var rrd=function(){};rrd.\u0275fac=function(a){return new (a||rrd)};
rrd.\u0275cmp=D({type:rrd,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Wf(0,0)},dependencies:[FT],encapsulation:2});var GT=function(){this.templateRef=p(eg);this._contentClassNames=["cdk-no-data-row","cdk-row"];this._cellClassNames=["cdk-cell","cdk-no-data-cell"];this._cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell"};GT.\u0275fac=function(a){return new (a||GT)};
GT.\u0275dir=df({type:GT,selectors:[["ng-template","cdkNoDataRow",""]]});var srd=new fd("CDK_SPL");var trd=["top","bottom","left","right"],urd=function(a,b,c,d,e,f,g){var k=this;c=c===void 0?!0:c;d=d===void 0?!0:d;this._isNativeHtmlTable=a;this._stickCellCss=b;this._isBrowser=c;this._needsPositionStickyOnElement=d;this.direction=e;this._positionListener=f;this._tableInjector=g;this._elemSizeCache=new WeakMap;var l;this._resizeObserver=((l=globalThis)==null?0:l.ResizeObserver)?new globalThis.ResizeObserver(function(r){return k._updateCachedSizes(r)}):null;this._updatedStickyColumnsParamsToReplay=
[];this._stickyColumnsReplayTimeout=null;this._cachedCellWidths=[];this._destroyed=!1;this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},vrd=function(a,b,c){(c.includes("left")||c.includes("right"))&&a._removeFromStickyColumnReplayQueue(b);var d=[];b=m(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(q(Array.from(e.children))));Ge({write:function(){for(var f=
m(d),g=f.next();!g.done;g=f.next())a._removeStickyStyle(g.value,c)}},{injector:a._tableInjector})},wrd=function(a,b,c,d,e,f){e=e===void 0?!0:e;f=f===void 0?!0:f;if(b.length&&a._isBrowser&&(c.some(function(V){return V})||d.some(function(V){return V}))){var g=b[0],k=g.children.length,l=a.direction==="rtl",r=l?"right":"left",w=l?"left":"right",x=c.lastIndexOf(!0),C=d.indexOf(!0),H,J,O;f&&a._updateStickyColumnReplayQueue({rows:[].concat(q(b)),stickyStartStates:[].concat(q(c)),stickyEndStates:[].concat(q(d))});
Ge({earlyRead:function(){H=a._getCellWidths(g,e);J=a._getStickyStartColumnPositions(H,c);O=a._getStickyEndColumnPositions(H,d)},write:function(){for(var V=m(b),ca=V.next();!ca.done;ca=V.next()){ca=ca.value;for(var oa=0;oa<k;oa++){var ua=ca.children[oa];c[oa]&&a._addStickyStyle(ua,r,J[oa],oa===x);d[oa]&&a._addStickyStyle(ua,w,O[oa],oa===C)}}a._positionListener&&H.some(function(ka){return!!ka})&&(a._positionListener.stickyColumnsUpdated({sizes:x===-1?[]:H.slice(0,x+1).map(function(ka,Ga){return c[Ga]?
ka:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:C===-1?[]:H.slice(C).map(function(ka,Ga){return d[Ga+C]?ka:null}).reverse()}))}},{injector:a._tableInjector})}else{(l=a._positionListener)==null||l.stickyColumnsUpdated({sizes:[]});var R;(R=a._positionListener)==null||R.stickyEndColumnsUpdated({sizes:[]})}},xrd=function(a,b,c,d){if(a._isBrowser){var e=d==="bottom"?b.slice().reverse():b,f=d==="bottom"?c.slice().reverse():c,g=[],k=[],l=[];Ge({earlyRead:function(){for(var r=0,w=0;r<e.length;r++)if(f[r]){g[r]=
w;var x=e[r];l[r]=a._isNativeHtmlTable?Array.from(x.children):[x];x=a._retrieveElementSize(x).height;w+=x;k[r]=x}},write:function(){for(var r=f.lastIndexOf(!0),w=0;w<e.length;w++)if(f[w])for(var x=g[w],C=w===r,H=m(l[w]),J=H.next();!J.done;J=H.next())a._addStickyStyle(J.value,d,x,C);if(d==="top"){var O;(O=a._positionListener)==null||O.stickyHeaderRowsUpdated({sizes:k,offsets:g,elements:l})}else{var R;(R=a._positionListener)==null||R.stickyFooterRowsUpdated({sizes:k,offsets:g,elements:l})}}},{injector:a._tableInjector})}},
yrd=function(a,b,c){a._isNativeHtmlTable&&Ge({write:function(){var d=b.querySelector("tfoot");d&&(c.some(function(e){return!e})?a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1))}},{injector:a._tableInjector})};h=urd.prototype;h.destroy=function(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout);var a;(a=this._resizeObserver)==null||a.disconnect();this._destroyed=!0};
h._removeStickyStyle=function(a,b){if(a.classList.contains(this._stickCellCss)){for(var c=m(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);trd.some(function(e){return b.indexOf(e)===-1&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}};
h._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};h._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=m(trd),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
h._getCellWidths=function(a,b){if(b!==void 0&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(this._retrieveElementSize(a[c]).width);return this._cachedCellWidths=b};h._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};h._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;e>0;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
h._retrieveElementSize=function(a){var b=this._elemSizeCache.get(a);if(b)return b;b=a.getBoundingClientRect();b={width:b.width,height:b.height};if(!this._resizeObserver)return b;this._elemSizeCache.set(a,b);this._resizeObserver.observe(a,{box:"border-box"});return b};h._updateStickyColumnReplayQueue=function(a){this._removeFromStickyColumnReplayQueue(a.rows);this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(a)};
h._removeFromStickyColumnReplayQueue=function(a){var b=new Set(a);a=m(this._updatedStickyColumnsParamsToReplay);for(var c=a.next();!c.done;c=a.next())c=c.value,c.rows=c.rows.filter(function(d){return!b.has(d)});this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(function(d){return!!d.rows.length})};
h._updateCachedSizes=function(a){var b=this,c=!1;a=m(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)&&w9a(d.target)&&(c=!0);this._elemSizeCache.set(d.target,f)}c&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&
clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(function(){if(!b._destroyed){for(var g=m(b._updatedStickyColumnsParamsToReplay),k=g.next();!k.done;k=g.next())k=k.value,wrd(b,k.rows,k.stickyStartStates,k.stickyEndStates,!0,!1);b._updatedStickyColumnsParamsToReplay=[];b._stickyColumnsReplayTimeout=null}},0))};var zrd=[[["caption"]],[["colgroup"],["col"]],"*"],Ard=function(){this.viewContainer=p(fg);this.elementRef=p(Jd);var a=p(tT);a._rowOutlet=this;a._outletAssigned()};Ard.\u0275fac=function(a){return new (a||Ard)};Ard.\u0275dir=df({type:Ard,selectors:[["","rowOutlet",""]]});var Brd=function(){this.viewContainer=p(fg);this.elementRef=p(Jd);var a=p(tT);a._headerRowOutlet=this;a._outletAssigned()};Brd.\u0275fac=function(a){return new (a||Brd)};
Brd.\u0275dir=df({type:Brd,selectors:[["","headerRowOutlet",""]]});var Crd=function(){this.viewContainer=p(fg);this.elementRef=p(Jd);var a=p(tT);a._footerRowOutlet=this;a._outletAssigned()};Crd.\u0275fac=function(a){return new (a||Crd)};Crd.\u0275dir=df({type:Crd,selectors:[["","footerRowOutlet",""]]});var Drd=function(){this.viewContainer=p(fg);this.elementRef=p(Jd);var a=p(tT);a._noDataRowOutlet=this;a._outletAssigned()};Drd.\u0275fac=function(a){return new (a||Drd)};
Drd.\u0275dir=df({type:Drd,selectors:[["","noDataRowOutlet",""]]});
var HT=function(){var a=this;this._differs=p(xx);this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._dir=p(ci,{optional:!0});this._platform=p(Wh);this._viewRepeater=p(hDc);this._viewportRuler=p(Rh);this._stickyPositioningListener=p(srd,{optional:!0,skipSelf:!0});this._document=p(Sh);this._onDestroy=new sf;this._columnDefsByName=new Map;this._customColumnDefs=new Set;this._customRowDefs=new Set;this._customHeaderRowDefs=new Set;this._customFooterRowDefs=new Set;this._forceRecalculateCellWidths=
this._stickyColumnStylesNeedReset=this._footerRowDefChanged=this._headerRowDefChanged=!0;this._cachedRenderRowsMap=new Map;this.stickyCssClass="cdk-table-sticky";this.needsPositionStickyOnElement=!0;this._hasInitialized=this._hasAllOutlets=this._isShowingNoDataRow=!1;this._cellRoleInternal=void 0;this._fixedLayout=this._multiTemplateDataRows=!1;this.contentChanged=new Ui;this.viewChange=new Nj({start:0,end:Number.MAX_VALUE});this._injector=p(Ae);p(new cx("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role",
"table");this._isServer=!this._platform.isBrowser;this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE";this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c})};h=HT.prototype;h._getCellRole=function(){var a=this._elementRef.nativeElement.getAttribute("role");return a==="grid"||a==="treegrid"?"gridcell":"cell"};
h.ngOnInit=function(){var a=this;this._setupStickyStyler();this._viewportRuler.change().pipe(Bf(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};h.ngAfterContentInit=function(){this._hasInitialized=!0};h.ngAfterContentChecked=function(){this._canRender()&&this._render()};
h.ngOnDestroy=function(){var a;(a=this._stickyStyler)==null||a.destroy();var b,c,d;[(b=this._rowOutlet)==null?void 0:b.viewContainer,(c=this._headerRowOutlet)==null?void 0:c.viewContainer,(d=this._footerRowOutlet)==null?void 0:d.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e==null||e.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();
this._onDestroy.complete();Gra(this.dataSource)&&this.dataSource.disconnect(this)};
var Frd=function(a){a._renderRows=a._getAllRenderRows();var b=a._dataDiffer.diff(a._renderRows);if(b){var c=a._rowOutlet.viewContainer;a._viewRepeater.applyChanges(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){return d.item.data},function(d){d.operation===1&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});a._updateRowIndexContext();AAc(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});a._updateNoDataRow();a.contentChanged.next();
Erd(a)}else a._updateNoDataRow(),a.contentChanged.next()},Grd=function(a){var b=a._getRenderedRows(a._headerRowOutlet);if(a._isNativeHtmlTable){var c=B9a(a._headerRowOutlet,"thead");c&&(c.style.display=b.length?"":"none")}c=a._headerRowDefs.map(function(d){return d.sticky});vrd(a._stickyStyler,b,["top"]);xrd(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},Hrd=function(a){var b=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable){var c=B9a(a._footerRowOutlet,
"tfoot");c&&(c.style.display=b.length?"":"none")}c=a._footerRowDefs.map(function(d){return d.sticky});vrd(a._stickyStyler,b,["bottom"]);xrd(a._stickyStyler,b,c,"bottom");yrd(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},Erd=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)vrd(a._stickyStyler,
[].concat(q(b),q(c),q(d)),["left","right"]),a._stickyColumnStylesNeedReset=!1;b.forEach(function(e,f){a._addStickyColumnStyles([e],a._headerRowDefs[f])});a._rowDefs.forEach(function(e){for(var f=[],g=0;g<c.length;g++)a._renderRows[g].rowDef===e&&f.push(c[g]);a._addStickyColumnStyles(f,e)});d.forEach(function(e,f){a._addStickyColumnStyles([e],a._footerRowDefs[f])});Array.from(a._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})};h=HT.prototype;
h._outletAssigned=function(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())};h._canRender=function(){return this._hasAllOutlets&&this._hasInitialized};
h._render=function(){this._cacheRowDefs();this._cacheColumnDefs();var a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a;this._forceRecalculateCellWidths=a;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1);this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1);this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?
this._observeRenderChanges():this._stickyColumnStylesNeedReset&&Erd(this);this._checkStickyStates()};
h._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;if(!this._data)return a;for(var c=0;c<this._data.length;c++){var d=this._data[c],e=this._getRenderRowsForData(d,c,b.get(d));this._cachedRenderRowsMap.has(d)||this._cachedRenderRowsMap.set(d,new WeakMap);for(d=0;d<e.length;d++){var f=e[d],g=this._cachedRenderRowsMap.get(f.data);g.has(f.rowDef)?g.get(f.rowDef).push(f):g.set(f.rowDef,[f]);a.push(f)}}return a};
h._getRenderRowsForData=function(a,b,c){return this._getRowDefs(a,b).map(function(d){var e=c&&c.has(d)?c.get(d):[];return e.length?(d=e.shift(),d.dataIndex=b,d):{data:a,rowDef:d,dataIndex:b}})};h._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();A9a(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
h._cacheRowDefs=function(){this._headerRowDefs=A9a(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=A9a(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=A9a(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
h._renderUpdatedColumns=function(){var a=function(d,e){e=!!e._columnsDiffer.diff(e.columns);return d||e},b=this._rowDefs.reduce(a,!1);b&&this._forceRenderDataRows();var c=this._headerRowDefs.reduce(a,!1);c&&this._forceRenderHeaderRows();(a=this._footerRowDefs.reduce(a,!1))&&this._forceRenderFooterRows();return b||c||a};
h._switchDataSource=function(a){this._data=[];Gra(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear());this._dataSource=a};
h._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;Gra(this.dataSource)?b=this.dataSource.connect(this):ye(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=ee(this.dataSource));this._renderChangeSubscription=b.pipe(Bf(this._onDestroy)).subscribe(function(c){a._data=c||[];Frd(a)})}};
h._forceRenderHeaderRows=function(){var a=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});Grd(this)};h._forceRenderFooterRows=function(){var a=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});Hrd(this)};
h._addStickyColumnStyles=function(a,b){var c=this,d=Array.from((b==null?void 0:b.columns)||[]).map(function(e){return c._columnDefsByName.get(e)});b=d.map(function(e){return e.sticky});d=d.map(function(e){return e.stickyEnd});wrd(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};h._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
h._getRowDefs=function(a,b){if(this._rowDefs.length==1)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};h._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
h._renderRow=function(a,b,c,d){d=d===void 0?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};h._renderCellTemplateForItem=function(a,b){a=m(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,FT.mostRecentCellOutlet&&FT.mostRecentCellOutlet._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
h._updateRowIndexContext=function(){for(var a=this._rowOutlet.viewContainer,b=0,c=a.length;b<c;b++){var d=a.get(b).context;d.count=c;d.first=b===0;d.last=b===c-1;d.even=b%2===0;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
h._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof CT?c.headerCell.template:a instanceof DT?c.footerCell.template:c.cell.template}):[]};h._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();Frd(this)};
h._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&Grd(this);this._footerRowDefs.reduce(a,!1)&&Hrd(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,Erd(this))};
h._setupStickyStyler=function(){var a=this;this._stickyStyler=new urd(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector);(this._dir?this._dir.change:ee()).pipe(Bf(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;Erd(a)})};h._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
h._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=this._rowOutlet.viewContainer.length===0;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;if(b){c=c.createEmbeddedView(a.templateRef);var d=c.rootNodes[0];if(c.rootNodes.length===1&&(d==null?void 0:d.nodeType)===this._document.ELEMENT_NODE)for(d.setAttribute("role","row"),d.classList.add.apply(d.classList,q(a._contentClassNames)),c=d.querySelectorAll(a._cellSelector),d=0;d<c.length;d++)c[d].classList.add.apply(c[d].classList,
q(a._cellClassNames))}else c.clear();this._isShowingNoDataRow=b;this._changeDetectorRef.markForCheck()}}};
da.Object.defineProperties(HT.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(),Erd(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=a;this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});HT.\u0275fac=function(a){return new (a||HT)};
HT.\u0275cmp=D({type:HT,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(ig(c,GT,5),ig(c,xT,5),ig(c,ET,5),ig(c,CT,5),ig(c,DT,5));if(a&2){var d;lg(d=mg())&&(b._noDataRow=d.first);lg(d=mg())&&(b._contentColumnDefs=d);lg(d=mg())&&(b._contentRowDefs=d);lg(d=mg())&&(b._contentHeaderRowDefs=d);lg(d=mg())&&(b._contentFooterRowDefs=d)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&wg("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",
dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",$g],fixedLayout:[2,"fixedLayout","fixedLayout",$g]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Gg([{provide:tT,useExisting:HT},{provide:hDc,useClass:iDc},{provide:srd,useValue:null}])],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,
b){a&1&&(cg(zrd),dg(0),dg(1,1),F(2,x9a,1,0),F(3,y9a,7,0)(4,z9a,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[Brd,Ard,Drd,Crd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var Ird=function(){};Ird.\u0275fac=function(a){return new (a||Ird)};Ird.\u0275mod=cf({type:Ird});Ird.\u0275inj=Hc({imports:[xz]});var IT=function(){uT.apply(this,arguments)};Y(IT,uT);IT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(IT)))(b||IT)}}();IT.\u0275dir=df({type:IT,selectors:[["","matCellDef",""]],features:[Gg([{provide:uT,useExisting:IT}]),Gf]});var JT=function(){vT.apply(this,arguments)};Y(JT,vT);JT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(JT)))(b||JT)}}();JT.\u0275dir=df({type:JT,selectors:[["","matHeaderCellDef",""]],features:[Gg([{provide:vT,useExisting:JT}]),Gf]});
var KT=function(){wT.apply(this,arguments)};Y(KT,wT);KT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(KT)))(b||KT)}}();KT.\u0275dir=df({type:KT,selectors:[["","matFooterCellDef",""]],features:[Gg([{provide:wT,useExisting:KT}]),Gf]});var LT=function(){xT.apply(this,arguments)};Y(LT,xT);LT.prototype._updateColumnCssClassName=function(){xT.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
da.Object.defineProperties(LT.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});LT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(LT)))(b||LT)}}();LT.\u0275dir=df({type:LT,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Gg([{provide:xT,useExisting:LT},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:LT}]),Gf]});var MT=function(){yT.apply(this,arguments)};Y(MT,yT);
MT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(MT)))(b||MT)}}();MT.\u0275dir=df({type:MT,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Gf]});var NT=function(){zT.apply(this,arguments)};Y(NT,zT);NT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(NT)))(b||NT)}}();
NT.\u0275dir=df({type:NT,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[Gf]});var OT=function(){AT.apply(this,arguments)};Y(OT,AT);OT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(OT)))(b||OT)}}();OT.\u0275dir=df({type:OT,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Gf]});var PT=function(){CT.apply(this,arguments)};Y(PT,CT);PT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(PT)))(b||PT)}}();PT.\u0275dir=df({type:PT,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",$g]},features:[Gg([{provide:CT,useExisting:PT}]),Gf]});var QT=function(){DT.apply(this,arguments)};Y(QT,DT);QT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(QT)))(b||QT)}}();
QT.\u0275dir=df({type:QT,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",$g]},features:[Gg([{provide:DT,useExisting:QT}]),Gf]});var RT=function(){ET.apply(this,arguments)};Y(RT,ET);RT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(RT)))(b||RT)}}();
RT.\u0275dir=df({type:RT,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Gg([{provide:ET,useExisting:RT}]),Gf]});var ST=function(){};Y(ST,prd);ST.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ST)))(b||ST)}}();
ST.\u0275cmp=D({type:ST,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Gg([{provide:prd,useExisting:ST}]),Gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Wf(0,0)},dependencies:[FT],encapsulation:2});var TT=function(){};Y(TT,qrd);TT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TT)))(b||TT)}}();
TT.\u0275cmp=D({type:TT,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[Gg([{provide:qrd,useExisting:TT}]),Gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Wf(0,0)},dependencies:[FT],encapsulation:2});var UT=function(){};Y(UT,rrd);UT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(UT)))(b||UT)}}();
UT.\u0275cmp=D({type:UT,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Gg([{provide:rrd,useExisting:UT}]),Gf],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Wf(0,0)},dependencies:[FT],encapsulation:2});
var VT=function(){GT.call(this);this._cellSelector="td, mat-cell, [mat-cell], .mat-cell";this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row");this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")};Y(VT,GT);VT.\u0275fac=function(a){return new (a||VT)};VT.\u0275dir=df({type:VT,selectors:[["ng-template","matNoDataRow",""]],features:[Gg([{provide:GT,useExisting:VT}]),Gf]});var Jrd=[[["caption"]],[["colgroup"],["col"]],"*"],WT=function(){HT.apply(this,arguments);this.stickyCssClass="mat-mdc-table-sticky";this.needsPositionStickyOnElement=!1};Y(WT,HT);WT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(WT)))(b||WT)}}();
WT.\u0275cmp=D({type:WT,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Gg([{provide:HT,useExisting:WT},{provide:tT,useExisting:WT},{provide:hDc,useClass:iDc},{provide:srd,useValue:null}]),Gf],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&&(cg(Jrd),dg(0),dg(1,1),F(2,C9a,1,0),F(3,D9a,7,0)(4,E9a,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[Brd,Ard,Drd,Crd],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 Krd={SUGGESTIONS:0,AUTOMATIC_ACTIONS:1,0:"SUGGESTIONS",1:"AUTOMATIC_ACTIONS"},XT=function(){Z.apply(this,arguments);var a=this;this.data=p(PA);this.playbookService=p($Q);this.matDialogRef=p(NA);this.changeDetectorRef=p(ux);this.appSearchState=p(oT);this.FormattingMode=Um;this.showSettings=this.isEditing=!1;this.searchQuery$=pe(function(){return a.data.searchQuery?ee(a.data.searchQuery):a.appSearchState.queryState$.pipe(A(function(b){return b.query}))});this.playbook$=this.searchQuery$.pipe(Af(function(b){return b?
ukd(a.playbookService,b):ee(void 0)}));this.draftPlaybook={name:"",instructions:"",searchQuery:this.data.searchQuery};this.unimplementedPlaybookData={enablePlaybook:!0,agentMode:0,clusterSuggestions:!1,statsInterval:2};this.AgentMode=Krd;this.statsIntervalOptions=[0,1,2,3];this.displayedColumns=["triageActions","acceptanceRate","accuracy"];this.dataSource=[{triageActions:"Dedupe",acceptanceRate:"2/8 (25%)",accuracy:"33%"},{triageActions:"Component change",acceptanceRate:"7/10 (70%)",accuracy:"43%"},
{triageActions:"Priority change",acceptanceRate:"6/12 (50%)",accuracy:"62%"},{triageActions:"Severity change",acceptanceRate:"2/10 (20%)",accuracy:"12%"},{triageActions:"Type change",acceptanceRate:"3/8 (38%)",accuracy:"74%"},{triageActions:"Assign to reporter",acceptanceRate:"5/16 (31%)",accuracy:"48%"},{triageActions:"Close as \u201cWon\u2019t fix\u201d",acceptanceRate:"6/9 (67%)",accuracy:"34%"}]};Y(XT,Z);XT.\u0275dir=Z.\u0275dir;
XT.prototype.ngOnInit=function(){var a=this;this.playbook$.pipe(Bf(this.destroyed$)).subscribe(function(b){b&&(a.originalPlaybook=b,a.draftPlaybook=pm(b),b.instructions&&(a.formattedComment={markdownFormat:{content:Bh(b.instructions)}}),a.changeDetectorRef.detectChanges())})};XT.prototype.hasChanges=function(){return!mm(this.originalPlaybook,this.draftPlaybook)};
var Lrd=function(a){return y(function(b){if(b.nextAddress==1)return a.hasChanges()?a.originalPlaybook?z(b,vkd(a.playbookService,a.draftPlaybook),3):z(b,tkd(a.playbookService,a.draftPlaybook),3):b.return();a.matDialogRef.close();a.isEditing=!1;ce(b)})},I9a=function(a){switch(a){case 0:return"All time";case 1:return"Last day";case 2:return"Last 7 days";case 3:return"Last 30 days";default:return wb(a)}};XT.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(XT)))(b||XT)}}();
XT.\u0275cmp=D({type:XT,selectors:[["b-playbook-dialog"]],standalone:!1,features:[Gf],decls:19,vars:3,consts:[["textarea",""],["statsSelector","matMenu"],["mat-dialog-title",""],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Close","aria-label","Close",1,"pos-tr",3,"click"],["svgIcon","clear",1,"icon-s"],[1,"flex-kids-x","gap-l","full-height"],[1,"flex-kids-y","grow-1","gap-s"],[1,"uppercase","muted"],["cdkFocusInitial","","aria-label","Playbook instructions","placeholder",
"Move issues related to X to component Y.",1,"grow-1",3,"ngModel"],[1,"flex-kids-y","gap-s"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","aria-label","Save playbook","color","primary",3,"click","disabled"],["cdkFocusInitial","","aria-label","Playbook instructions","placeholder","Move issues related to X to component Y.",1,"grow-1",3,"ngModelChange","ngModel"],[1,"unset-background",3,"comment","formattingMode"],[1,"flex-kids-x"],["mat-button","",1,"align-self-flex-end","edit",
3,"click"],[1,"flex-kids-y","gap"],[3,"ngModelChange","ngModel"],[1,"flex-kids-x","gap","align-items-center"],["type","text","disabled","","aria-label","Playbook scope",1,"grow-1","rounded",3,"ngModel"],[1,"flex-kids-x","gap"],["aria-label","Agent mode",1,"flex-kids-x","gap",3,"ngModelChange","ngModel"],[3,"value"],[1,"flex-kids-x","gap","align-items-center","margin-top"],["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button",3,"matMenuTriggerFor"],[1,"margin-xs-right"],
["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["mat-table","",3,"dataSource"],["matColumnDef","triageActions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","acceptanceRate"],["matColumnDef","accuracy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["type","button","mat-menu-item","",3,"click"],["svgIcon","done",1,"icon-s"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",
""],["mat-row",""]],template:function(a,b){a&1&&(K(0,"div",2)(1,"div",3)(2,"h1"),Q(3,"Triage agent"),L(),K(4,"button",4),N("click",function(){return b.matDialogRef.close()}),M(5,"mat-icon",5),L()()(),K(6,"mat-dialog-content")(7,"div",6)(8,"div",7)(9,"h4",8),Q(10,"Playbook"),L(),F(11,F9a,2,1,"textarea",9)(12,H9a,4,1),L(),F(13,S9a,42,11,"div",10),L()(),K(14,"mat-dialog-actions",11)(15,"button",12),N("click",function(){return b.matDialogRef.close()}),Q(16,"Cancel"),L(),K(17,"button",13),N("click",function(){return Lrd(b)}),
Q(18,"Save"),L()());a&2&&(B(11),G(b.isEditing?11:12),B(2),G(b.showSettings?13:-1),B(4),I("disabled",!b.hasChanges()))},dependencies:[Dy,nT,yj,$D,gE,gB,cB,eB,TA,VA,UA,pT,YG,WG,aH,qT,rT,sT,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,iA],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}textarea[_ngcontent-%COMP%]{resize:none}h1[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]     div.mat-mdc-dialog-title:before{height:0}[_nghost-%COMP%]     b-live-preview.unset-background .md-preview{background:unset}input[_ngcontent-%COMP%]{padding:4px 8px}b-live-preview[_ngcontent-%COMP%]{max-height:90%;overflow:scroll}.disclaimer[_ngcontent-%COMP%]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;font-style:italic}"],
changeDetection:0});var YT=function(){this.matDialog=p(QA)};YT.prototype.open=function(a){return ie(OA(this.matDialog.open(XT,{width:"80vw",height:"80vh",maxWidth:"1200px",maxHeight:"800px",data:{searchQuery:a}})))};YT.\u0275fac=function(a){return new (a||YT)};YT.\u0275prov=Fc({token:YT,factory:YT.\u0275fac,providedIn:"root"});var Mrd=function(a){this.allowExecution=a;this.queue=[]};Mrd.prototype.addTask=function(a){this.queue.push(a);Nrd(this)};var Nrd=function(a){if(a.queue.length!==0)if(a.allowExecution()){var b=m(a.queue),c=b.next().value;a.queue=ij(b);c();Nrd(a)}else setTimeout(function(){Nrd(a)},0)};var ZT=function(){var a=this;this.location=p(ii);this.platformLocation=p(Zx);this.activatedRoute=p(Mj);this.router=p(YE);this.scheduler=new Mrd(function(){return!Rc(a.router.navigationTransitions.currentNavigation)})};ZT.prototype.hash=function(a,b){typeof a!=="undefined"&&Ord(this,a!=null?a:"",b);var c;return(c=this.activatedRoute.snapshot.fragment)!=null?c:""};var Ord=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})})};
ZT.prototype.path=function(a,b){typeof a!=="undefined"&&this.setPath(a,b);return this.getPath()};var Prd=function(a,b){a.path(b,!0)};h=ZT.prototype;h.getPath=function(){var a=m(this.location.path().split("?")).next().value;return m(a.split("#")).next().value};h.setPath=function(a,b){var c=this;a=a===void 0?"":a;b=b===void 0?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};
h.search=function(a,b,c){typeof a!=="undefined"&&this.setSearch(a,b,c);return this.getSearch()};h.getSearch=function(){return T9a(this.activatedRoute.snapshot.queryParamMap)};h.setSearch=function(a,b,c){var d=this;c=c===void 0?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};h.replaceUrl=function(a){return this.setUrl(a,!0)};
h.setUrl=function(a,b){var c=this;b=b===void 0?!1:b;return new Promise(function(d,e){c.addTask(function(){Ct(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};h.getUrl=function(){return this.location.path(!0)};h.addTask=function(a){this.scheduler.addTask(a)};ZT.\u0275fac=function(a){return new (a||ZT)};ZT.\u0275prov=Fc({token:ZT,factory:ZT.\u0275fac,providedIn:"root"});var $T=function(){this.ariaLabel="loading";this.SIZE_SMALL=16;this.SIZE_LARGE=36;this.DIAMETER_SMALL=2};$T.\u0275fac=function(a){return new (a||$T)};$T.\u0275cmp=D({type:$T,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,U9a,1,2,"mat-spinner",0),F(1,V9a,1,3,"mat-spinner",1));a&2&&(G(b.large?0:-1),B(),G(b.large?-1:1))},dependencies:[jK,rI],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 Qrd={EMPTY:0,EXISTS:1,RUNNING:2,COMPLETE:3,0:"EMPTY",1:"EXISTS",2:"RUNNING",3:"COMPLETE"},aU=function(){var a=this;this.playbookService=p($Q);this.bLocation=p(ZT);this.playbookDialogService=p(YT);this.appSearchState=p(oT);this.issueIds=[];this.PlaybookState=Qrd;this.playbookState=0;this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(b){return b.query||void 0}));this.playbook$=this.searchQuery$.pipe(Af(function(b){return b?ukd(a.playbookService,b):ee(void 0)}))};
aU.prototype.ngOnInit=function(){var a=this;this.playbook$.subscribe(function(b){b&&(a.playbookState=1)})};var Y9a=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.playbook$),2);if(c.nextAddress!=3){b=c.yieldResult;if(!b)throw Error("He");a.playbookState=2;return z(c,zkd(a.playbookService,b,a.issueIds),3)}a.playbookState=3;ce(c)})};
aU.prototype.openDialog=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.searchQuery$),2);b=c.yieldResult;a.playbookDialogService.open(b);ce(c)})};aU.\u0275fac=function(a){return new (a||aU)};
aU.\u0275cmp=D({type:aU,selectors:[["playbook-controls"]],inputs:{issueIds:"issueIds"},standalone:!1,decls:2,vars:1,consts:[["mat-button",""],["mat-button","",3,"click"],["svgIcon","edit-outline",1,"triage-rules","icon-m"],[1,"running"],["svgIcon","format_list_bulleted_spark_24px",1,"triage-rules","icon-m"]],template:function(a,b){a&1&&F(0,W9a,3,0,"button",0)(1,$9a,5,1);a&2&&G(b.playbookState===b.PlaybookState.EMPTY?0:1)},dependencies:[Dy,$T,gB,cB],styles:["[_nghost-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.mat-icon.triage-rules[_ngcontent-%COMP%]{height:unset;margin-right:4px}.running[_ngcontent-%COMP%]{display:inline-block;padding:4px;font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:var(--text-muted);text-wrap:nowrap}"],
changeDetection:0});var Rrd=function(){this.text="..."};Rrd.\u0275fac=function(a){return new (a||Rrd)};
Rrd.\u0275cmp=D({type:Rrd,selectors:[["ai-spinner"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("large",b.large)},inputs:{large:"large",text:"text"},standalone:!1,decls:2,vars:1,template:function(a,b){a&1&&(K(0,"label"),Q(1),L());a&2&&(B(),S(" ",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 bU=function(){};bU.\u0275fac=function(a){return new (a||bU)};bU.\u0275mod=cf({type:bU});bU.\u0275inj=Hc({imports:[RO,kK]});var Srd=function(){};Srd.\u0275fac=function(a){return new (a||Srd)};Srd.\u0275mod=cf({type:Srd});Srd.\u0275inj=Hc({imports:[Fy,bU,iB]});var cU=function(){this.prefs=p(dR);this.links=p(YR);this.change=new XP;this.checked$=new Nj(!1);this.disabled$=new Nj(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/"},Trd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=b.checked?"MARKDOWN":"PLAIN",z(d,Ikd(a.prefs,c),2);a.change.emit(c);ce(d)})};
da.Object.defineProperties(cU.prototype,{initialValue:{configurable:!0,enumerable:!0,set:function(a){this.checked$.next(a==="MARKDOWN");this.disabled$.next(a==="LITERAL")}}});cU.\u0275fac=function(a){return new (a||cU)};
cU.\u0275cmp=D({type:cU,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},standalone:!1,decls:5,vars:7,consts:[["aria-label","Use markdown for this comment","matTooltip","Use Markdown for this comment",3,"change","checked","disabled"],["mat-icon-button","","matTooltip","Markdown Help","aria-label","Markdown Help","target","_blank",1,"help","small",3,"href","disableRipple"],["svgIcon","help-outline",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"mat-checkbox",
0),T(1,"async"),T(2,"async"),N("change",function(e){return Trd(b,e)}),Q(3," Markdown\n"),L(),F(4,a$a,2,2,"a",1));if(a&2){var c,d;I("checked",(c=U(1,3,b.checked$))!=null?c:!1)("disabled",(d=U(2,5,b.disabled$))!=null?d:!1);B(4);G(b.mdHelpLink?4:-1)}},dependencies:[fL,aI,Dy,gB,eB,oK,iA,Lx],encapsulation:2,changeDetection:0});var dU=function(){var a=this;this.errorHandler=p(kO);this.eventsForIssueFridge=p(IP);this.issueFullFridge=p(cQ);this.issueCommentsService=p(nS);this.issueInteractionsTracking=p(zS);this.butterBar=p(QN);this.editIssueService=p(DS);this.formattedCommentsForIssueFridge=p(KP);this.rawComment$=new sf;this.issueId="";this.commentNumber=0;this.rawComment="";var b=0;this.rawComment$.pipe(A(function(c){return{comment:c,id:b+=1}}),lf(800),me(function(c){return a.doSave(c.comment,c.id)}),we(function(c){return c===
b})).subscribe(function(){Urd(a)})};dU.prototype.ngOnDestroy=function(){this.rawComment$.complete()};dU.prototype.initialize=function(a,b){this.issueId=a;this.commentNumber=b};dU.prototype.pending=function(){var a,b;return(b=(a=this.savingState)==null?void 0:a.get("commentEdit"))!=null?b:!1};
dU.prototype.doSave=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return Yd(g,2),z(g,c.issueCommentsService.update(c.issueId,(d=c.commentNumber)!=null?d:0,a,"MARKDOWN",""),4);case 4:bt(g,3);break;case 2:e=be(g),mO(c.errorHandler,e),(f=c.savingState)==null||BS(f,"commentEdit");case 3:return g.return(b)}})};
var Urd=function(a){Pr(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(a.issueId,function(c){c.events=wUa(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||BS(b,"commentEdit")};dU.\u0275fac=function(a){return new (a||dU)};
dU.\u0275prov=Fc({token:dU,factory:dU.\u0275fac});var eU=function(){var a=p(dR);Z.call(this);var b=this;this.activeSession=p(qu);this.appEvents=p(PO);this.markdownCheckboxService=p(dU);this.init=new XP;this.canEditComment=!1;this.formattedComment=null;this.FormattingMode=Um;this.activeSession.isInternalSession()&&a.commentDisplayOverride$.pipe(Bf(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Y(eU,Z);eU.\u0275dir=Z.\u0275dir;
eU.prototype.ngOnInit=function(){var a;this.markdownCheckboxService.initialize(this.issueId,(a=this.note.commentNumber)!=null?a:0)};
eU.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)};
eU.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next({issueId:this.issueId,commentNumber:this.note.commentNumber});this.init.next(this)};eU.\u0275fac=function(a){return new (a||eU)};
eU.\u0275cmp=D({type:eU,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId",canEditComment:"canEditComment"},outputs:{init:"init"},standalone:!1,features:[Gg([dU]),Gf,bx],decls:4,vars:1,consts:[[1,"bv2-note-container","bv2-event-note"],[1,"bv2-note-container-note"],[3,"formattedComment","canEditComment"],[3,"comment","issueId","audience","formattingMode","idPrefix"],[3,"checkboxChange","formattedComment","canEditComment"]],
template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,b$a,1,2,"b-formatted-comment-presenter",2)(3,c$a,1,5,"b-live-preview",3),L()());if(a&2){B(2);if(a=b.formattedComment)a=b.formattedComment,a=!a||b.formattingModeOverride?!1:a.literalFormat&&b.formattingMode==="LITERAL"||a.plainFormat&&b.formattingMode==="PLAIN"||a.markdownFormat&&b.formattingMode==="MARKDOWN"?!0:!1;G(a?2:3)}},dependencies:[mT,nT],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 fU=function(){};fU.\u0275fac=function(a){return new (a||fU)};fU.\u0275mod=cf({type:fU});fU.\u0275inj=Hc({imports:[RO,bT,MK]});var gU=function(){};gU.\u0275fac=function(a){return new (a||gU)};gU.\u0275mod=cf({type:gU});gU.\u0275inj=Hc({imports:[RO,MK,fU]});var Sr=function(a,b){this.char=a;this.modifiers=b};var Vrd={category:"Edit Issue Page",keys:[Tr("r")],displayAs:"Shift+r",description:"Refresh"},Wrd={category:"Issue List",keys:["u",Tr("r")],displayAs:"u / Shift+r",description:"Refresh search results"},Vr={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Tr("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:Vrd,REFRESH_ISSUE_LIST:Wrd,TOGGLE_LEFT_SIDEBAR:{category:"General",keys:["<"],
displayAs:"<",description:"Toggle left sidebar"},TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},TOGGLE_RIGHT_SIDEBAR:{category:"General",keys:[">"],displayAs:">",description:"Toggle right sidebar"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};/*

 Copyright 2016 Craig Campbell

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Nick Richardson

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var Xrd=function(a,b,c,d,e,f){this.combo=a;this.callback=b;this.allowIn=c;this.description=d;this.action=e;this.persistent=f;this.combo=Array.isArray(a)?a:[a];this.allowIn=c||[];this.description=d||""};
da.Object.defineProperties(Xrd.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 Yrd=new fd("HotkeyOptions");var hU=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new sf;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 Xrd(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new Xrd("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};h=hU.prototype;
h.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=m(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(g,k){var l=!0;if(g){var r=g.target,w=r.nodeName.toUpperCase();(" "+r.className+" ").indexOf(" mousetrap ")>-1?l=!0:c.preventIn.indexOf(w)>-1&&a.allowIn.map(function(x){return x.toUpperCase()}).indexOf(w)===-1&&(l=!1)}if(l)return a.callback.apply(c,[g,k])},b);return a};
h.remove=function(a){var b=[];if(!a){a=m(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=m(a);for(c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}b=this.hotkeys.indexOf(a);return b>-1?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
h.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())b.push(this.get(c.value));return b}for(b=0;b<this.hotkeys.length;b++)if(this.hotkeys[b].combo.indexOf(a)>-1)return this.hotkeys[b];return null};h.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=m(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
h.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=m(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return b>-1?(this.add(a),this.pausedHotkeys.splice(b,1)):null};h.reset=function(){this.mousetrap.reset()};hU.\u0275fac=function(a){return new (a||hU)($c(Yrd))};hU.\u0275prov=Fc({token:hU,factory:hU.\u0275fac});var Zrd=function(){};Zrd.\u0275fac=function(a){return new (a||Zrd)};Zrd.\u0275mod=cf({type:Zrd});Zrd.\u0275inj=Hc({imports:[Yx]});var $rd;var asd="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),bsd=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},iU=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?($rd||(c={},$rd=(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=$rd,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},csd=function(a,b){a=a.getAttribute("aria-"+b);return a==null||a==void 0?"":String(a)},jU=function(a,b){var c="";b&&(c=b.id);iU(a,"activedescendant",c)},dsd=function(a,b){iU(a,"label",b)};var kU=function(){var a=p($P),b=p(dR);Z.call(this);var c=this;this.rawHotkeysService=p(hU);this.ngZone=p(Rg);this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;b.keyboardPrefs$.pipe(Bf(this.destroyed$)).subscribe(function(d){d&&(c.enabled=!!d.enableAllHotkeys)});a.routeChangeStart.pipe(Bf(this.destroyed$)).subscribe(function(){c.unpause()});this.rawHotkeysService.mousetrap.stopCallback=function(d,e){if(!c.enabled||c.paused)e=!0;else if((" "+e.className+" ").includes(" mousetrap ")||e.classList.contains("has-hotkey"))e=
!1;else{if(d=e.getAttribute)d=e.getAttribute("role")||null,d=Ka(asd,d);e=d||e.contentEditable==="true"||e.tagName==="INPUT"&&e.type==="text"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||esd(e)?!0:!1}return e};this.destroyed$.subscribe(function(){fsd(c)})};Y(kU,Z);kU.\u0275dir=Z.\u0275dir;kU.prototype.isEnabled=function(){return this.enabled};kU.prototype.isPaused=function(){return this.paused};
var lU=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(q(b),q(d)));gsd(a);return function(){var f=new Set(d.map(function(l){return l.onPress})),g,k=((g=a.hotkeyGroups.get(c))!=null?g:[]).filter(function(l){return!f.has(l.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);gsd(a)}},fsd=function(a){var b=[].concat(q(a.rawHotkeysService.hotkeys));b=m(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},gsd=function(a){fsd(a);for(var b=m(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=hsd(a,c.value);c=m(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 Xrd(h$a(e.binding$jscomp$9.key),function(f){return function(g){a.ngZone.run(function(){f.binding$jscomp$9.command()});g.stopPropagation();return!1}}(e),e.binding$jscomp$9.allowIn),a.rawHotkeysService.add(d)}},esd=function(a){return[].concat(q(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return b.style.position===
"static"}).some(function(b){return b.contains(a)})},hsd=function(a,b){var c=[];b=m(b);for(var d=b.next(),e={};!d.done;e={hotkeySpec:void 0},d=b.next()){e.hotkeySpec=d.value;d=m(e.hotkeySpec.keys.entries());for(var f=d.next(),g={};!f.done;g={index$jscomp$5717:void 0},f=d.next()){var k=m(f.value);f=k.next().value;k=k.next().value;g.index$jscomp$5717=f;c.push(new isd(k,function(l,r){return function(){a.ngZone.run(function(){l.hotkeySpec.onPress(r.index$jscomp$5717)})}}(e,g),e.hotkeySpec.allowIn))}}Eba(c,
function(l,r){return l.strokeLength>r.strokeLength?-1:l.strokeLength<r.strokeLength?1:0});return c};kU.prototype.pause=function(){this.paused=!0};kU.prototype.unpause=function(){this.paused=!1};var jsd=function(a){return[].concat(q(a.hotkeyGroups.entries())).map(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:uq(c,i$a)}})};kU.\u0275fac=function(a){return new (a||kU)};kU.\u0275prov=Fc({token:kU,factory:kU.\u0275fac,providedIn:"root"});
var isd=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 mU=function(){Z.apply(this,arguments);this.hotkeys=p(kU);this.tooltip=p(iA,{optional:!0});this.hotkeyEnabled=!0;this.onHotkey=new XP};Y(mU,Z);mU.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+")"}};
mU.prototype.ngOnInit=function(){var a=this;this.hotkey&&this.hotkeyEnabled&&this.subscriptions.add(lU(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};mU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(mU)))(b||mU)}}();
mU.\u0275dir=df({type:mU,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("has-hotkey",b.hotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},standalone:!1,features:[Gf,bx]});var nU=function(){};nU.\u0275fac=function(a){return new (a||nU)};nU.\u0275mod=cf({type:nU});nU.\u0275inj=Hc({});var oU=function(){this.segments=[];this.clickMain=new XP;this.clickSegment=new XP};oU.prototype.ngOnInit=function(){};da.Object.defineProperties(oU.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return this.segments.length>0}}});oU.\u0275fac=function(a){return new (a||oU)};
oU.\u0275cmp=D({type:oU,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&&(K(0,"span",1)(1,"a",2),N("click",function(){return b.clickMain.emit(b.label)}),M(2,"mat-icon",3),Q(3),L(),F(4,m$a,6,1),L());a&2&&(B(),wg("square-right",b.showMoreButton),Kf("href",b.href||void 0,Pe),B(),I("svgIcon",b.icon),B(),S(" ",b.label," "),B(),G(b.showMoreButton?4:-1))},dependencies:[Dy,gB,cB,OJ,YG,WG,aH],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 ksd=function(a,b){return b.value},lsd=function(){this.choices=[];this.value="";this.valueChange=new XP};lsd.\u0275fac=function(a){return new (a||lsd)};
lsd.\u0275cmp=D({type:lsd,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&&Of(0,o$a,3,5,"button",0,ksd);a&2&&Pf(b.choices)},dependencies:[Dy,
gB,cB,oK,iA],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 msd=[oU,lsd],pU=function(){};pU.\u0275fac=function(a){return new (a||pU)};pU.\u0275mod=cf({type:pU});pU.\u0275inj=Hc({imports:[RO,iB,PJ,pK]});var nsd=function(){};nsd.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};nsd.\u0275fac=function(a){return new (a||nsd)};
nsd.\u0275cmp=D({type:nsd,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&&(K(0,"section",0)(1,"button",1),N("click",function(){return b.onPressBack()}),M(2,"mat-icon",2),L()())},dependencies:[Dy,gB,eB,oK,iA],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var qU=function(){Z.call(this);this.templateRef=p(eg);this.viewContainer=p(fg);this.cdr=p(ux);this.isViewInitialized=!1;this.viewContainer.createEmbeddedView(this.templateRef)};Y(qU,Z);qU.prototype.ngAfterViewInit=function(){this.isViewInitialized=!0};
da.Object.defineProperties(qU.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(Bf(this.destroyed$)).subscribe(function(){b.isViewInitialized&&(b.viewContainer.clear(),b.viewContainer.createEmbeddedView(b.templateRef),b.cdr.detectChanges())})}}});qU.\u0275fac=function(a){return new (a||qU)};qU.\u0275dir=df({type:qU,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},standalone:!1,features:[Gf]});var rU=function(){var a=this;this.cdr=p(YP,{self:!0});this.events=p(PO);this.ngZone=p(Rg);this.HOTKEYS=Vr;this.lastOpenPosition=this.width=220;this.direction="ltr";this.maxWidth=700;this.widthChanged=new XP;this.widthAtDragStart=this.width;this.startDragging=function(b){a.dragStart=b;a.widthAtDragStart=a.width};this.minSnapWidth=185;this.onMousemove=function(b){if(a.isDragging)a.onDrag(b.pageX)};this.onMouseup=function(){a.dragStart=void 0;a.cdr.markForCheck()};this.broadcastWidthChange=MB(function(b){a.widthChanged.emit(b);
a.events.sidebarWidthChanged.next(b)},400);this.trackKeyboardResizing=MB(function(){er("sidebar","resizeKeyboard")},2E3)};rU.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};rU.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};
rU.prototype.onDrag=function(a){this.setWidth(this.widthAtDragStart+(a-(this.dragStart||0))*(this.isLTR?1:-1));this.cdr.markForCheck()};var q$a=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=b<0?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};rU.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
rU.prototype.setWidth=function(a){var b=this.minSnapWidth,c=this.maxWidth;a=a<90?20:a<b?b:Math.min(a,c===void 0?700:c);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a);this.cdr.markForCheck()};
da.Object.defineProperties(rU.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}}});rU.\u0275fac=function(a){return new (a||rU)};
rU.\u0275cmp=D({type:rU,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.direction)},inputs:{minWidth:"minWidth",direction:"direction",size:"size",maxWidth:"maxWidth"},outputs:{widthChanged:"widthChanged"},standalone:!1,features:[Gg([YP])],ngContentSelectors:["*"],decls:5,vars:11,consts:[["cdkScrollable","",1,"inner"],[1,"content"],["type","button","mat-icon-button","","aria-label","Open Sidebar","matTooltip","Open Sidebar",1,"openSidebarButton","xs",3,"class","isClosed",
"hotkey"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",3,"hotkey"],["type","button","mat-icon-button","","aria-label","Open Sidebar","matTooltip","Open Sidebar",1,"openSidebarButton","xs",3,"click","onHotkey","hotkey"],[3,"svgIcon"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",3,"onHotkey","mousedown","keyup.arrowleft","keyup.arrowright","keyup.space",
"keyup.enter","dblclick","hotkey"]],template:function(a,b){a&1&&(cg(),K(0,"div",0)(1,"div",1),dg(2),L(),F(3,p$a,2,6,"button",2)(4,r$a,1,3,"div",3),L());a&2&&(xg(b.direction),vg("width",b.width+"px"),wg("isDragging",b.isDragging)("isClosed",b.isClosed),B(),vg("width",b.lastOpenPosition+"px"),B(2),G(b.isClosed?3:4))},dependencies:[Dy,mU,gB,eB,oK,iA,qz],styles:['[_nghost-%COMP%]{position:relative}.inner[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;transition:width .2s cubic-bezier(0.165, 0.84, 0.44, 1);display:flex;flex-direction:column}.inner.ltr[_ngcontent-%COMP%]{border-right:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.rtl[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.isDragging[_ngcontent-%COMP%]{transition:none}.content[_ngcontent-%COMP%]{position:relative;flex:1;opacity:1;transition:opacity .1s ease-in-out;transition-delay:.1s}.isClosed[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:none;opacity:0;transition-delay:0s}.isDragging[_ngcontent-%COMP%]{user-select:none}.resizeHandle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:8px;cursor:col-resize}.ltr[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{right:0}.rtl[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{left:0}.openSidebarButton[_ngcontent-%COMP%]{z-index:2;position:absolute;bottom:0;top:0;margin:auto;transform:rotateZ(180deg)}.openSidebarButton.ltr[_ngcontent-%COMP%]{right:0}.openSidebarButton.rtl[_ngcontent-%COMP%]{left:0}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isClosed[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});var osd=new fd("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),psd=new fd("isScrolledOnScreen",{factory:function(){return{fully:s$a,partially:t$a}}}),sU=function(){this.intersectionObserverBuilder=p(osd);this.isScrolledOnScreen=p(psd)};sU.prototype.getObservable=function(a,b){b=b===void 0?!1:b;return window.IntersectionObserver!=null?u$a(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):v$a(a,this.isScrolledOnScreen,b)};
var qsd=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(yla(function(f,g){return{cumulativeTime:f.cumulativeTime+(f.wasPreviouslyOnScreen?Date.now()-f.lastTimestamp:0),wasPreviouslyOnScreen:g,lastTimestamp:Date.now()}},d),Af(function(f){if(e===0&&f.wasPreviouslyOnScreen)return ee(void 0);var g=e-f.cumulativeTime;
return g<0?ee(void 0):f.wasPreviouslyOnScreen?ee(void 0).pipe(of(g)):jx}),A(function(){}),nf(1))};sU.\u0275fac=function(a){return new (a||sU)};sU.\u0275prov=Fc({token:sU,factory:sU.\u0275fac,providedIn:"root"});var tU=function(){};tU.prototype.onClick=function(a,b){rsd(b)&&a.preventDefault()};var rsd=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};tU.\u0275fac=function(a){return new (a||tU)};tU.\u0275dir=df({type:tU,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c,c.target)})},standalone:!1});q(msd);var uU=function(){};uU.\u0275fac=function(a){return new (a||uU)};uU.\u0275mod=cf({type:uU});uU.\u0275inj=Hc({imports:[RO,nU,iB,pK,wz,pU]});var ssd=new fd("GM2_SELECT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var vU=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};vU.\u0275fac=function(a){return new (a||vU)(Ye(ssd))};vU.\u0275dir=df({type:vU,selectors:[["mat-select"]],hostAttrs:[1,"gmat-mdc-select"],standalone:!1});var tsd={provide:C0c,deps:[[new azc,new bzc,new $yc(C0c)],[new azc,new $yc(ssd)]],useFactory:function(a,b){return!b||b.disableGmatStyle?a||{}:a?Object.assign({},a,{overlayPanelClass:Lh(a.overlayPanelClass).concat("gmat-mdc-select")}):{overlayPanelClass:"gmat-mdc-select"}}},wU=function(){};wU.\u0275fac=function(a){return new (a||wU)};wU.\u0275mod=cf({type:wU});wU.\u0275inj=Hc({providers:[tsd],imports:[OH,OD]});var usd=new fd("GM2_SNACK_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var xU=function(){nB.apply(this,arguments);this.additionalClasses=["gmat-mdc-snack-bar"];this.gmatOptions=p(usd)};Y(xU,nB);xU.prototype.openFromComponent=function(a,b){a=nB.prototype.openFromComponent.call(this,a,b);b=a.containerInstance._elementRef.nativeElement.closest(".cdk-overlay-pane");if(this.gmatOptions.disableGmatStyle)throw Error("db");b==null||b.classList.add.apply(b.classList,q(this.additionalClasses));return a};
xU.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(xU)))(b||xU)}}();xU.\u0275prov=Fc({token:xU,factory:xU.\u0275fac});var yU=function(){};yU.\u0275fac=function(a){return new (a||yU)};yU.\u0275mod=cf({type:yU});yU.\u0275inj=Hc({providers:[{provide:nB,useClass:xU}],imports:[oB]});var zU=function(){};zU.\u0275fac=function(a){return new (a||zU)};zU.\u0275mod=cf({type:zU});zU.\u0275inj=Hc({imports:[Zy,gL,yU,RO,Qz,uU,wU,yL,iB,pK,fU,gU,MK]});var vsd=function(a,b){return[a,b]},wsd=[[["b-callout-body"]],[["b-callout-actions"]]],AU=function(){this.messageType="info";this.format="default"};AU.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"}};AU.\u0275fac=function(a){return new (a||AU)};
AU.\u0275cmp=D({type:AU,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&xg(Jg(2,vsd,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&&(cg(wsd),K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),dg(3),L(),K(4,"div",3),dg(5,1),L()());
a&2&&(B(2),I("svgIcon",b.getIconName()))},dependencies:[Dy],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 BU=function(){};BU.\u0275fac=function(a){return new (a||BU)};BU.\u0275dir=df({type:BU,selectors:[["b-callout-body"],["b-callout-actions"]],standalone:!1});var CU=function(){};CU.\u0275fac=function(a){return new (a||CU)};CU.\u0275mod=cf({type:CU});CU.\u0275inj=Hc({imports:[RO]});var DU=function(){};DU.\u0275fac=function(a){return new (a||DU)};DU.\u0275mod=cf({type:DU});DU.\u0275inj=Hc({imports:[RO]});var EU=function(){};EU.\u0275fac=function(a){return new (a||EU)};EU.\u0275mod=cf({type:EU});EU.\u0275inj=Hc({imports:[dA,rT,Ey]});var FU=function(){};FU.\u0275fac=function(a){return new (a||FU)};FU.\u0275mod=cf({type:FU});FU.\u0275inj=Hc({imports:[sT,Ey]});var GU=function(){};GU.\u0275fac=function(a){return new (a||GU)};GU.\u0275mod=cf({type:GU});GU.\u0275inj=Hc({imports:[Ird,Ey]});var xsd=function(){};xsd.\u0275fac=function(a){return new (a||xsd)};xsd.\u0275mod=cf({type:xsd});xsd.\u0275inj=Hc({imports:[RO,CU,zU,xE,iB,MJ,DU,AE,bH,EU,FU,GU,jA]});var HU={},ysd=(HU.assignee="single_value",HU.attachments="collection",HU.blockedByIssueId="collection",HU.blockingIssueId="collection",HU.ccs="collection",HU.changelists="collection",HU.collaborators="collection",HU.comment="single_value",HU.componentId="single_value",HU.customField="any_value",HU.deletionReason="single_value",HU.duplicateOfIssueId="single_value",HU.effortEstimate="single_value",HU.foundInVersion="collection",HU.gerritChanges="collection",HU.hotlists="collection",HU.inProd="single_value",
HU.isArchived="single_value",HU.isDeleted="single_value",HU.parentId="collection",HU.priority="single_value",HU.readState="single_value",HU.reporter="single_value",HU.severity="single_value",HU.sloEndTime="single_value",HU.sloSnoozeType="single_value",HU.sloStartTime="single_value",HU.staffing="single_value",HU.status="single_value",HU.targetedToVersion="collection",HU.title="single_value",HU.type="single_value",HU.verifiedInVersion="collection",HU.verifier="single_value",HU),G$a=new Set(Object.entries(ysd).filter(function(a){a=
m(a);a.next();return a.next().value==="collection"}).map(function(a){return m(a).next().value})),F$a=new Set("componentId priority reporter severity status title type".split(" "));var H$a=new Set(["INACTIVE","NOT_REPRODUCIBLE","INFEASIBLE","OBSOLETE","INTENDED_BEHAVIOR"]),IU={},y$a=(IU.TYPE_UNSPECIFIED=new Set([]),IU.ISSUE_DEDUPLICATION=new Set([]),IU.HOTLIST=new Set([]),IU.ISSUE_DEDUPLICATION_BATCH=new Set([]),IU.NEEDS_INFO=new Set(["comment"]),IU.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists".split(" ")),IU.ANY_ISSUE_EDIT=new Set("componentId priority severity type assignee hotlists comment".split(" ")),IU),JU={},z$a=(JU.TYPE_UNSPECIFIED=
new Set([]),JU.ISSUE_DEDUPLICATION=new Set([]),JU.HOTLIST=new Set([]),JU.ISSUE_DEDUPLICATION_BATCH=new Set(["duplicateOfIssueId"]),JU.NEEDS_INFO=new Set(["comment"]),JU.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists ccs".split(" ")),JU.ANY_ISSUE_EDIT=new Set("comment componentId priority severity type assignee hotlists ccs status".split(" ")),JU);var KU=function(){this.recommendation=void 0;this.isParentRowActive=!1;this.onClick=new XP};KU.prototype.handleClick=function(){this.onClick.emit()};KU.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};KU.prototype.getRecommendationText=function(){return this.recommendation?I$a(this.recommendation,!1):""};KU.\u0275fac=function(a){return new (a||KU)};
KU.\u0275cmp=D({type:KU,selectors:[["recommendation-chip"]],inputs:{recommendation:"recommendation",isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},standalone:!1,decls:1,vars:1,consts:[["type","button",1,"recommendation-chip",3,"aria-label","hovered"],["type","button",1,"recommendation-chip",3,"click","keydown","aria-label"],["svgIcon","devai",1,"icon-s"],[1,"recommendation-text"]],template:function(a,b){a&1&&F(0,J$a,4,4,"button",0);a&2&&G(b.recommendation?0:-1)},dependencies:[Dy],
styles:[".dark-mode   [_nghost-%COMP%]    , .light-mode   [_nghost-%COMP%]    , :root   [_nghost-%COMP%]    {--recommendation-chip-bg:#fff}.dark-mode   [_nghost-%COMP%]    {--recommendation-chip-bg:#28292c}.recommendation-chip[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 8px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#5f6368;color:var(--c700);font-size:.8125rem;font-weight:500;line-height:20px;white-space:nowrap;background-color:var(--recommendation-chip-bg)}.recommendation-chip[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%]{display:none}.recommendation-chip.hovered[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus, .recommendation-chip[_ngcontent-%COMP%]:hover{cursor:pointer}.recommendation-chip.hovered[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:hover   .recommendation-text[_ngcontent-%COMP%]{display:inline;padding-left:4px}"],
changeDetection:0});var zsd=function(){};zsd.\u0275fac=function(a){return new (a||zsd)};zsd.\u0275mod=cf({type:zsd});zsd.\u0275inj=Hc({imports:[RO,Fy]});var L$a=function(a,b){return b.key},LU=function(){this.phase=void 0;this.actions=[jmd,cmd,emd,kmd,imd];this.onSelect=new XP},N$a=function(a){var b=P();return b.phase==="NEW"&&a===jmd?[bmd]:b.phase==="CONFIRMED"&&a===cmd?[dmd]:b.phase==="IN_PROGRESS"&&a===emd?[fmd,gmd,hmd]:[]};LU.\u0275fac=function(a){return new (a||LU)};
LU.\u0275cmp=D({type:LU,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&&(K(0,"button",1),Q(1,"Change triage phase"),L(),K(2,"mat-menu",
null,0),Of(4,O$a,4,3,null,null,L$a),L());a&2&&(a=qg(3),I("matMenuTriggerFor",a),B(4),Pf(b.actions))},dependencies:[gB,cB,OJ,YG,WG,aH],styles:["button.subAction[_ngcontent-%COMP%]{padding-left:32px}"],changeDetection:0});var Asd=["button"],MU=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new XP};MU.prototype.onClick=function(a){this.onAction.emit(a)};MU.prototype.focus=function(){this.nativeButton.focus()};MU.\u0275fac=function(a){return new (a||MU)};
MU.\u0275cmp=D({type:MU,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&hg(Asd,5);if(a&2){var c;lg(c=mg())&&(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&&(cg(),E(0,P$a,1,0,"ng-template",null,0,Mg),F(2,R$a,3,8,"button",2)(3,T$a,3,8,"button",3)(4,V$a,3,8,"button",4)(5,X$a,3,8,"button",5)(6,Z$a,3,8,"button",2));if(a&2){var c;B(2);G((c=b.format)==="hairline"?2:c==="flat"?3:c==="fill"?4:c==="icon"?5:6)}},dependencies:[gB,cB,eB,oK,iA,Kx],encapsulation:2,changeDetection:0});var NU=function(){};NU.\u0275fac=function(a){return new (a||NU)};NU.\u0275mod=cf({type:NU});NU.\u0275inj=Hc({imports:[iB,pK,RO]});var Bsd=new fd("GM2_SLIDE_TOGGLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var OU=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};OU.\u0275fac=function(a){return new (a||OU)(Ye(Bsd))};OU.\u0275dir=df({type:OU,selectors:[["mat-slide-toggle"]],hostAttrs:[1,"gmat-mdc-slide-toggle"],standalone:!1});var PU=function(){};PU.\u0275fac=function(a){return new (a||PU)};PU.\u0275mod=cf({type:PU});PU.\u0275inj=Hc({providers:[{provide:lrd,useValue:{color:"primary"}}],imports:[FU]});var Csd=0,QU=function(){this.id="b-slide-toggle-"+ ++Csd;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new XP};QU.\u0275fac=function(a){return new (a||QU)};
QU.\u0275cmp=D({type:QU,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&&(K(0,"mat-slide-toggle",0),N("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
Q(1),L());if(a&2){I("id",b.id)("disabled",b.disabled)("checked",b.model);Jf("aria-label",b.ariaLabel||b.label);var c;I("matTooltip",(c=b.tooltip)!=null?c:"")("labelPosition",b.label?b.labelPosition:"after");B();yg(b.label)}},dependencies:[OU,sT,oK,iA],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var RU=function(){};RU.\u0275fac=function(a){return new (a||RU)};RU.\u0275mod=cf({type:RU});RU.\u0275inj=Hc({imports:[PU,pK]});var SU=function(){this.refreshMonitor=p(QP);this.coinonly=null};SU.\u0275fac=function(a){return new (a||SU)};SU.\u0275cmp=D({type:SU,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&&E(0,aab,1,1,"ng-template",0);a&2&&I("refreshable",b.refreshMonitor.getObservable())},dependencies:[Ypd,qU],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var TU=function(){};TU.\u0275fac=function(a){return new (a||TU)};TU.\u0275mod=cf({type:TU});TU.\u0275inj=Hc({imports:[RS,RO,uU]});var Dsd=["spanElement"],UU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};UU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};UU.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)+"...")};
UU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};UU.\u0275fac=function(a){return new (a||UU)};
UU.\u0275cmp=D({type:UU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&hg(Dsd,5);if(a&2){var c;lg(c=mg())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},standalone:!1,features:[bx],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,Oe)},dependencies:[oK,iA],encapsulation:2});var VU=function(){};VU.\u0275fac=function(a){return new (a||VU)};VU.\u0275mod=cf({type:VU});VU.\u0275inj=Hc({imports:[RO,pK]});var WU=function(){};WU.prototype.transform=function(a){if($n(a))return a};WU.\u0275fac=function(a){return new (a||WU)};WU.\u0275pipe=ef({name:"omitObfuscatedEmail",type:WU,pure:!0,standalone:!1});var Esd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Esd,W);Esd.prototype.getDisplayName=function(){return vi(this,1)};Esd.prototype.setDisplayName=function(a){return pj(this,1,a)};Esd.prototype.getPhotoUrl=function(){return vi(this,2)};var Fsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fsd.messageId)};Y(Fsd,W);Fsd.messageId="b.UserProfileBatchResponse";var YU=function(){var a=this;this.userProfilesBatchApiConfig=p(XU);this.batchApiAdapter=p(HO);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new Ijd(function(b){return a.batchAdaptedGet(b)},100)};YU.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};YU.\u0275fac=function(a){return new (a||YU)};YU.\u0275prov=Fc({token:YU,factory:YU.\u0275fac,providedIn:"root"});var XU=function(){this.executor=p(ZN)};
XU.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(q(a)).join(",")}},responseConstructor:Fsd}).pipe(jf(function(){return ee(new Fsd)}))};XU.prototype.split=function(a,b){return(a=wc(b,1,Esd,Vb,jb).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:vi(a,3),displayName:a.getDisplayName()}:void 0};XU.\u0275fac=function(a){return new (a||XU)};XU.\u0275prov=Fc({token:XU,factory:XU.\u0275fac,providedIn:"root"});var oab={"alertmanager-buganizer-handler@prod.google.com":"https://g3doc.corp.google.com/production/borg/alertmanager/g3doc/templates/AlertManager-darkred.png","android-ftslo-regression-actuator@prod.google.com":"https://g3doc.corp.google.com/company/teams/dx-velocity/images/atn_favicon.png","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","blunderbuss-prod@prod.google.com":"https://moma.corp.google.com/team_logos/f5955dadc5abc82300946ee12bf0b610",
"boq-android-culprit-assistant@prod.google.com":"https://g3doc.corp.google.com/wireless/android/engprod/culpritassistant/g3doc/images/aca_logo.png?cl=head","bugjuggler-beta@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler-beta@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head",
"chrome-devtools-continuous-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","chrome-devtools-daily-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","dx-workflow-gitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","gado-bug-service@prod.google.com":"https://g3doc.corp.google.com/hardware/gchips/productivity/g3doc/koala/images/buganizer_profile_picture.png","koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head",
"mendel-toolbox@google.com":"https://g3doc.corp.google.com/experiments/mendel/g3doc/logo_mendel_bkg-green_32px.svg?cl=head","modem-explorer-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","modem-tools-bug-workbench@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","octave-services-koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head",
"piper-bugupdater@google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","piper-bugupdater@prod.google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","pixel-camera-astro-robo-michael@prod.google.com":"https://g3doc.corp.google.com/company/teams/pixel-camera-astro/images/robo-michael.jpg?cl=head","pixel-modem-alcedo-issue-sync-server-dev-jobs@prod.google.com":"https://static.corp.google.com/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/sdlc_riemann/riemann_logo.svg","pixel-modem-tools-issue-classifier-be@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-tools-ltp-be@prod.google.com":"https://static.corp.google.com/modem-tools/ltp/logo.svg","pmw-data-prod-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","prefilter-fetcher-jobs-dev@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"pte-pqm-bugbot-dev-jobs@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head","pte-pqm-bugbot@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head","spur-workflows@prod.google.com":"https://g3doc.corp.google.com/security/spur/g3doc/spur_logo.jpg?cl=head","supply-chain-hw-dam2-async@prod.google.com":"https://g3doc.corp.google.com/supplychain/hw/dam2/g3doc/images/beaver.png?cl=head",
"support-bugs-automation-jobs@prod.google.com":"https://g3doc.corp.google.com/enterprise/support/cloud/support_bugs_automation/g3doc/img/sba_logo_new.png?cl=head"},Gsd={"android-ftslo-regression-actuator@prod.google.com":"Android Test Notifier","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"GitWatcher","blunderbuss-prod@prod.google.com":"Blunderbuss","boq-android-culprit-assistant@prod.google.com":"Culprit Assistant","bug-agent-ads-dqm-alert-handler@system.gserviceaccount.com":"Ads DQM Alert Handler Agent",
"bug-agent-ai-summary@system.gserviceaccount.com":"AI Summary Agent","bug-agent-anabase@system.gserviceaccount.com":"BAP Anabase Agent","bug-agent-anr-agent@system.gserviceaccount.com":"ANR Agent","bug-agent-baseline-validation@system.gserviceaccount.com":"Baseline Validation Agent","bug-agent-buganizer-cleanup@system.gserviceaccount.com":"Buganizer Cleanup Bot","bug-agent-bugwise@system.gserviceaccount.com":"Bugwise Agent","bug-agent-chrome-moderation@system.gserviceaccount.com":"Chrome Moderation Agent",
"bug-agent-culprit-assistant@system.gserviceaccount.com":"Culprit Assistant Agent","bug-agent-fatal-exception-agent@system.gserviceaccount.com":"Fatal Exception Agent","bug-agent-geminet@system.gserviceaccount.com":"Packet Capture Agent","bug-agent-launcher-assigner@system.gserviceaccount.com":"Assigner Agent","bug-agent-native-crash-agent@system.gserviceaccount.com":"Native Crash Agent","bug-agent-ooo-reassignment-agent@system.gserviceaccount.com":"OOO Reassignment Agent","bug-agent-playbooks@system.gserviceaccount.com":"Playbooks Agent",
"bug-agent-primes-bug-enrichment@system.gserviceaccount.com":"Primes Bug Enrichment Agent","bug-agent-sample-module@system.gserviceaccount.com":"Sample Module Agent","bug-agent-slo@system.gserviceaccount.com":"SLO Agent","bug-agent-watchdog-agent@system.gserviceaccount.com":"Watchdog Agent","bug-agent-zombie-auto-triage@system.gserviceaccount.com":"Zombie Auto Triage Agent","bugcorder@prod.google.com":"Bug Agent Platform","chrome-devtools-continuous-blintz@prod.google.com":"Chrome DevTools Bot","chrome-devtools-daily-blintz@prod.google.com":"Chrome DevTools Bot",
"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","supply-chain-hw-dam2-async@prod.google.com":"DAM Agent","support-bugs-automation-jobs@prod.google.com":"Support Bugs Automation"};var Hsd=new fd("overrideDisplayMap",{factory:function(){return Gsd}}),ZU=function(){var a=this;this.session=p(qu);this.userProfiles=p(YU);this.overrideDisplayMap=p(Hsd);this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.user$=new wf(1);this.showEmail$=new Nj(!1);this.isNonObfuscatedEmail=$n;this.userProfile$=this.user$.pipe(Af(function(b){return a.userProfiles.get(xm(b))})).pipe(zf(void 0));this.content$=le([this.user$,this.userProfile$,this.showEmail$]).pipe(A(function(b){var c=
m(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=xm(b),f=a.overrideDisplayMap[xm(b)];b=f?f:(d==null?void 0:d.displayName)||um(b);return c&&e!==b?e+" ("+b+")":b}));this.vars$=le([this.user$,this.content$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{user:b,email:xm(b),content:c}}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};
da.Object.defineProperties(ZU.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.user$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});ZU.\u0275fac=function(a){return new (a||ZU)};
ZU.\u0275cmp=D({type:ZU,selectors:[["b-user-display-name"]],inputs:{user:"user",showEmail:"showEmail",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},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,hab,4,1),T(1,"async"));if(a&2){var c;G((c=
U(1,1,b.vars$))?0:-1,c)}},dependencies:[Kx,SU,eT,DK,LK,Lx],encapsulation:2,changeDetection:0});var $U=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};$U.prototype.getDisplayString=function(){return um(this.model)};$U.prototype.getEmailAddress=function(){return xm(this.model)||""};$U.\u0275fac=function(a){return new (a||$U)};
$U.\u0275cmp=D({type:$U,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},standalone:!1,decls:3,vars:1,consts:[[3,"user","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(Uf(0),F(1,iab,1,4,"b-user-display-name",0)(2,jab,2,1,"span"),Vf());a&2&&(B(),G(GRa(b.model)&&b.getEmailAddress()&&b.model?1:2))},dependencies:[ZU],
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 aV=function(){Z.apply(this,arguments);this.teamsService=p(KQ);this.activeSession=p(qu);this.teamMembers=new Map;this.teamChildren=new Map};Y(aV,Z);aV.\u0275dir=Z.\u0275dir;
var Ksd=function(a,b,c){return a.activeSession.getFlag("enableTeamScope")&&a.activeSession.isInternalSession()&&b&&c&&$n(c)?Isd(a,b).pipe(Af(function(d){return d.has(c)?ee(!0):Jsd(a,b).pipe(Af(function(e){return e.length===0?ee(!1):qe(e.map(function(f){return Ksd(a,f,c)})).pipe(A(function(f){return f.some(Boolean)}))}))})):ee(!1)},Jsd=function(a,b){if(a.teamChildren.has(b))return a.teamChildren.get(b);var c=new wf(1);a.subscriptions.add(a.teamsService.getChildTeams([b]).pipe(A(function(d){var e,f;
return(f=(e=d.get(b))==null?void 0:e.map(function(g){return g.id}))!=null?f:[]})).subscribe(c));a.teamChildren.set(b,c);return c},Isd=function(a,b){if(a.teamMembers.has(b))return a.teamMembers.get(b);var c=new wf(1);a.subscriptions.add(a.teamsService.getTeam(b).pipe(A(function(d){var e;return(e=d==null?void 0:d.members)!=null?e:[]}),A(function(d){return d.map(function(e){return xm(e==null?void 0:e.user)}).filter(Qm)}),A(function(d){return new Set(d)})).subscribe(c));a.teamMembers.set(b,c);return c};
aV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(aV)))(b||aV)}}();aV.\u0275prov=Fc({token:aV,factory:aV.\u0275fac,providedIn:"root"});var bV=function(){var a=this;this.userProfiles=p(YU);this.activeSession=p(qu);this.teamMembershipService=p(aV);this.email$=new wf(1);this.isNonObfuscatedEmail=$n;this.teamId$=new Nj(void 0);this.userProfile$=this.email$.pipe(Af(function(b){return b?a.userProfiles.get(b).pipe(zf(void 0)):ee(void 0)}));this.vars$=le([this.email$,this.userProfile$]).pipe(A(function(b){var c=m(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$=le([this.teamId$,this.email$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return Ksd(a.teamMembershipService,b,c)}),zf(!1),jf(function(){return ee(!1)}))},sab=function(a,b){return!b||a.activeSession.isExternalSession()?!1:oab[b]!==void 0};
da.Object.defineProperties(bV.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){$n(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}}});bV.\u0275fac=function(a){return new (a||bV)};
bV.\u0275cmp=D({type:bV,selectors:[["b-user-image"]],hostVars:8,hostBindings:function(a,b){a&2&&wg("tiny",b.tiny)("small",b.small)("medium",b.medium)("hasTeam",b.hasTeam)},inputs:{email:"email",size:"size",teamId:"teamId"},standalone:!1,decls:2,vars:3,consts:[["imageDisplay",""],["card",""],["role","img","aria-label","user avatar",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["alt","",1,"user-avatar","material","robo-avatar",3,"src"],[1,"user-avatar","material",3,"team-member","anonymous"],
[1,"user-avatar","material"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(F(0,uab,4,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.vars$))?0:-1,c)}},dependencies:[Kx,eT,DK,LK,Lx],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 Lsd=function(){this.transform=vab};Lsd.\u0275fac=function(a){return new (a||Lsd)};Lsd.\u0275pipe=ef({name:"toNewEmailPreference",type:Lsd,pure:!0,standalone:!1});var cV=function(){this.transform=wab};cV.\u0275fac=function(a){return new (a||cV)};cV.\u0275pipe=ef({name:"enumToHuman",type:cV,pure:!0,standalone:!1});var Msd=function(){this.transform=xab};Msd.\u0275fac=function(a){return new (a||Msd)};Msd.\u0275pipe=ef({name:"arrayToHuman",type:Msd,pure:!0,standalone:!1});var dV=function(){};
dV.prototype.transform=function(a,b){return rh(yab(a,b)).toString()};dV.\u0275fac=function(a){return new (a||dV)};dV.\u0275pipe=ef({name:"boldPrefixMatches",type:dV,pure:!0,standalone:!1});var eV=function(){this.transform=zab};eV.\u0275fac=function(a){return new (a||eV)};eV.\u0275pipe=ef({name:"yesNo",type:eV,pure:!0,standalone:!1});var Nsd=function(){this.transform=Aab};Nsd.\u0275fac=function(a){return new (a||Nsd)};Nsd.\u0275pipe=ef({name:"teamPath",type:Nsd,pure:!0,standalone:!1});
var Osd=function(){this.transform=Bab};Osd.\u0275fac=function(a){return new (a||Osd)};Osd.\u0275pipe=ef({name:"humanFileSize",type:Osd,pure:!0,standalone:!1});var Psd=function(){this.transform=Dab};Psd.\u0275fac=function(a){return new (a||Psd)};Psd.\u0275pipe=ef({name:"omitObfuscatedEmail",type:Psd,pure:!0,standalone:!1});var Qsd=function(){this.transform=Eab};Qsd.\u0275fac=function(a){return new (a||Qsd)};Qsd.\u0275pipe=ef({name:"toString",type:Qsd,pure:!0,standalone:!1});var Rsd=function(){};
Rsd.prototype.transform=function(a,b,c){a=b.indexOf(a);if(a<0)return!0;c=a+c;return!(c>=0&&c<b.length)};Rsd.\u0275fac=function(a){return new (a||Rsd)};Rsd.\u0275pipe=ef({name:"isOutOfBounds",type:Rsd,pure:!0,standalone:!1});var fV=function(){};fV.prototype.transform=function(a){return ym(a)};fV.\u0275fac=function(a){return new (a||fV)};fV.\u0275pipe=ef({name:"emailToUser",type:fV,pure:!0,standalone:!1});var gV=function(){};gV.\u0275fac=function(a){return new (a||gV)};gV.\u0275mod=cf({type:gV});
gV.\u0275inj=Hc({});var Ssd=function(){this.session=p(qu);this.isNonObfuscatedEmail=$n;this.getEmailDisplayString=Mab;this.email="";this.withProfile=!0;this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};Ssd.\u0275fac=function(a){return new (a||Ssd)};
Ssd.\u0275cmp=D({type:Ssd,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&&(K(0,"span",2),F(1,Fab,1,1,"b-user-image",3),F(2,Hab,5,
3)(3,Jab,1,1,"ng-container"),E(4,Kab,2,1,"ng-template",null,0,Mg),F(6,Lab,3,3,"span",4),L());a&2&&(B(),G(b.withProfile?1:-1),B(),G(b.isNonObfuscatedEmail(b.email)?2:3),B(4),G(b.enableWaldoAvailability?6:-1))},dependencies:[Kx,SU,eT,DK,LK,bV,fV],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 hV=function(){Z.apply(this,arguments);var a=this;this.teamsService=p(KQ);this.session=p(qu);this.principalTypesFridge=p(CQ);this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new wf(1);this.providedUser$=new wf(1);this.providedEmail$=new wf(1);this.isNonObfuscatedEmail=$n;this.userToDisplayString=um;this.isGroup$=this.providedEmail$.pipe(Af(function(b){return a.principalTypesFridge.watch(b)}),we(Qm),A(function(b){return b.principalType==="GROUP"}));this.fetchedTeam$=
this.providedTeamId$.pipe(Af(function(b){return LQ(a.teamsService,b)}));this.detailedUserType$=this.providedUser$.pipe(A(function(b){b=b?b.aliases||[]:[];return b.includes("googlers_unrestricted")?"UNRESTRICTED_GOOGLER":b.includes("google_domain")?"TVC":b.includes("issue_creation_only_accounts")?"ISSUE_CREATION_ONLY":b.includes("external_partners")?"EXTERNAL":b.includes("public_non_google")?"PUBLIC":"NO_DETAILED_TYPE"}),zf("NO_DETAILED_TYPE"));this.isTeamMember$=le([this.providedTeamId$,this.providedEmail$]).pipe(Af(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return Yjd(a.teamsService,b,c)}),zf(!1),jf(function(){return ee(!1)}));this.teamUser$=this.fetchedTeam$.pipe(A(function(b){return"Member of "+b.name}));this.groupMembershipType$=le([this.detailedUserType$,this.isTeamMember$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b==="PUBLIC"?"PUBLIC_USER":b==="EXTERNAL"?"PARTNER_USER":c?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&
this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(A(function(b){return a.enableSmallChip?"user-chip-small":b&&b!=="INTERNAL_NON_TEAM_MEMBER"?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(A(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"team-member-chip";if(b==="PARTNER_USER")return"partner-chip";if(b==="PUBLIC_USER")return"public-chip"}else return"internal-non-team-member-chip";return""}));
this.shouldShowIcon$=this.groupMembershipType$.pipe(A(function(b){return b&&b!=="INTERNAL_NON_TEAM_MEMBER"}));this.iconName$=this.groupMembershipType$.pipe(A(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"people-outline";if(b==="PARTNER_USER")return"enterprise";if(b==="PUBLIC_USER")return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(Ef(this.teamUser$),A(function(b){var c=m(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(hV,Z);hV.\u0275dir=Z.\u0275dir;hV.prototype.ngOnInit=function(){};hV.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)};hV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(hV)))(b||hV)}}();
hV.\u0275cmp=D({type:hV,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},standalone:!1,features:[Gf,bx],decls:10,vars:14,consts:[["emailDisplay",""],["card",""],[3,"user","hovercardFocusEnabled","availabilityChipEnabled"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"],["name","group_24px","size","small"],["size","tiny",3,"email"],["tabindex","0","role","button",1,"keep-focus-ring","overflow-hidden",
"overflow-ellipsis",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"user-chip-name"]],template:function(a,b){a&1&&(K(0,"span"),T(1,"async"),K(2,"span"),T(3,"async"),F(4,Pab,3,3),F(5,Qab,2,5,"b-user-display-name",2)(6,Zab,4,1),F(7,$ab,3,6,"mat-icon",3),T(8,"async"),L()(),F(9,abb,1,1,"b-availability-chip",4));if(a&2){var c;xg((c=U(1,8,b.userTypeClass$))!=null?c:"");B(2);var d;xg((d=U(3,10,b.userChipType$))!=null?d:"");B(2);G(b.enableSmallChip?4:-1);B();G(b.enableSmallChip?6:5);B(2);
G(U(8,12,b.shouldShowIcon$)?7:-1);B(2);G(b.enableWaldoAvailability&&!b.enableSmallChip?9:-1)}},dependencies:[Kx,Dy,SU,pT,oK,iA,eT,DK,LK,bV,ZU,Lx,fV],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 iV=function(){};iV.\u0275fac=function(a){return new (a||iV)};iV.\u0275mod=cf({type:iV});iV.\u0275inj=Hc({imports:[RO,TU,DU,pK,fU,gU,MK,gV]});var Tsd=function(a,b,c,d){Oy.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new sf;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};Ny(this)};Y(Tsd,Oy);var jV=function(){this.checker=p(Ky);this.ngZone=p(Rg);this.document=p(Sh)};jV.prototype.create=function(a){return new Tsd(a,this.checker,this.ngZone,this.document)};jV.\u0275fac=function(a){return new (a||jV)};
jV.\u0275prov=Fc({token:jV,factory:jV.\u0275fac,providedIn:"root"});var Usd=["content"],kV=function(){Z.apply(this,arguments);this.focusEscapeNotifierFactory=p(jV);this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.includeTimePicker=!1;this.dateChange=new XP;this.dateTimeChange=new XP;this.cancelClicked=new XP;this.saveClicked=new XP;this.dateSelectionChange=new XP;this.focusEscaped=new XP;this.timeFormControl=new fE("",wj)};Y(kV,Z);kV.\u0275dir=Z.\u0275dir;
kV.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){gbb(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Bf(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(b===0){var c;(c=a.focusEscapeNotifier)==null||ICc(c)}else{var d;(d=a.focusEscapeNotifier)==null||My(d)}else a.focusEscaped.emit(b)});fbb(this,this.dateTime)};
var ebb=function(a,b){a.date=b;a.dateTime=Q1a(b,a.timeFormControl.value);a.dateSelectionChange.emit(b)};kV.prototype.saveChanges=function(){this.includeTimePicker&&(this.dateTime=Q1a(this.dateTime,this.timeFormControl.value),this.dateTimeChange.emit(this.dateTime));this.dateChange.emit(this.date)};var gbb=function(a){var b=a.includeTimePicker?a.dateTime:a.date;if(b=b instanceof bo?b:fUa(b))a.calendar.activeDate=b;a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};
kV.prototype.showPicker=function(a){a instanceof HTMLInputElement&&a.showPicker()};var fbb=function(a,b){var c=new nl("HH:mm");a.timeFormControl.setValue(a.includeTimePicker&&b?c.format(b):"")};kV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(kV)))(b||kV)}}();
kV.\u0275cmp=D({type:kV,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(hg(xR,7),hg(Usd,7));if(a&2){var c;lg(c=mg())&&(b.calendar=c.first);lg(c=mg())&&(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:[Gf],decls:15,vars:11,consts:[["content",""],[1,"b-optional-calendar-button-row"],[3,"selectedChange","selected","startAt"],["appearance","outline"],[1,"actions"],[1,"b-calendar-button-row"],["type","button","mat-button","",1,"cancel",3,"click"],["type","button","mat-button","",1,"save",3,"click"],[4,"ngTemplateOutlet"],["type","time","matInput","",
"aria-label","Time Picker","required","",1,"time-input",3,"focus","formControl"],["type","button","mat-button","",1,"today"],["type","button","mat-button","",1,"none"],["type","button","mat-button","",1,"today",3,"click"],["type","button","mat-button","",1,"none",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"div",null,0)(2,"div",1);F(3,cbb,1,1,"ng-container");L();K(4,"mat-calendar",2);T(5,"toDateTime");T(6,"toDateTime");N("selectedChange",function(d){u(c);return v(ebb(b,d))});L();F(7,
dbb,2,1,"mat-form-field",3);K(8,"div",4);F(9,jbb,4,2,"div",1);K(10,"div",5)(11,"button",6);N("click",function(){u(c);return v(b.cancelClicked.emit())});Q(12,"Cancel");L();K(13,"button",7);N("click",function(){u(c);b.saveChanges();return v(b.saveClicked.emit())});Q(14,"Save");L()()()()}a&2&&(wg("container",b.renderPanel),B(3),G(b.calendarButtonRow?3:-1),B(),I("selected",b.includeTimePicker?b.dateTime:U(5,7,b.date))("startAt",b.includeTimePicker?b.dateTime:U(6,9,b.date)),B(3),G(b.includeTimePicker?
7:-1),B(2),G(b.todayButtonEnabled||b.noneButtonEnabled?9:-1))},dependencies:function(){return[Kx,gB,cB,xR,aK,yj,$D,sE,mE,MD,zE,Vsd]},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 Vsd=function(){};Vsd.prototype.transform=function(a){var b;return(b=fUa(a))!=null?b:void 0};Vsd.\u0275fac=function(a){return new (a||Vsd)};Vsd.\u0275pipe=ef({name:"toDateTime",type:Vsd,pure:!0,standalone:!1});var Wsd=[{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"}],lV=function(){Z.call(this);var a=this;this.overlay=p(Nz);this.element=p(Jd);this.hostEl=p(Jd);this.openOnEnter=this.openOnClick=!0;this.includeTimePicker=this.required=this.focusTrapHost=!1;this.selectedChange=new XP;this.selectedDateTimeChange=
new XP;this.dateSelectionChange=new XP;this.includeTimePickerChange=new XP;this.onClose=new XP;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==null||b.dispose()})};Y(lV,Z);h=lV.prototype;h.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};h.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};
h.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};h.close=function(a){a=a===void 0?!1:a;if(this.opened){var b;(b=this.overlayRef)==null||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};h.onHostTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(My(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
h.onHostShiftTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(ICc(this.pickerContent.focusEscapeNotifier),a.preventDefault())};h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");return a};
h.attach=function(){var a=this,b=new Hz(kV),c;this.pickerContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;var d;(d=this.overlayRef)==null||d.updatePosition();setTimeout(function(){a.connectValues()})};h.getPositionStrategy=function(){return zz(Az(Bz(Fz(this.overlay.position(),this.element)),8),Wsd)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h.connectValues=function(){var a=this;if(this.pickerContent&&this.overlayRef){var b=ve(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)&&fbb(this.pickerContent,this.selectedDateTime);this.focusTrapHost&&this.pickerContent.focusEscaped.pipe(Bf(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});
this.pickerContent.dateChange.pipe(Bf(b)).subscribe(function(c){a.selectedChange.emit(c)});this.pickerContent.dateTimeChange.pipe(Bf(b)).subscribe(function(c){a.selectedDateTimeChange.emit(c)});this.pickerContent.dateSelectionChange.pipe(Bf(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});ve(this.pickerContent.saveClicked,this.pickerContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(we(function(c){return c.code==="Escape"}))).pipe(Bf(b)).subscribe(function(){a.close()})}};
lV.\u0275fac=function(a){return new (a||lV)};
lV.\u0275dir=df({type:lV,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&&Kf("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:[Gf]});var Xsd=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Ysd=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Zsd=function(a){this.patternParts_=[];this.dateTimeSymbols_=OF;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
Zsd.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(Xsd.test(e))for(c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),this.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<a.length-1&&a.charAt(d+1)==" ";)d++;else if(b)e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!1:c+=e;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(e)>=0){c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),
c="");for(var f=a.charAt(d),g=d+1;g<a.length&&a.charAt(g)==f;)g++;f=g-d;f<=0?g=!1:(g="MydhHmsSDkK".indexOf(e),g=g>0||g==0&&f<3);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:g});d+=f-1}else e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!0:c+=e}c.length>0&&this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});a=!1;for(b=0;b<this.patternParts_.length;b++)this.patternParts_[b].numeric?!a&&b+1<this.patternParts_.length&&this.patternParts_[b+1].numeric&&(a=!0,this.patternParts_[b].abutStart=
!0):a=!1};Zsd.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)};
Zsd.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("Je`"+f.text.charAt(0));}f=new $sd;c=[0];f.dayPeriodIndex=-1;for(var g=0;g<this.patternParts_.length&&!(d&&c[0]>=a.length);g++){if(this.patternParts_[g].count==0){a:{var k=a;var l=c,r=this.patternParts_[g],w=d;if(r.text.match(Xsd)!=null){if(r=l[0],
atd(k,l),l[0]>r){k=!0;break a}}else{if(k.indexOf(r.text,l[0])==l[0]){l[0]+=r.text.length;k=!0;break a}if(w&&r.text.indexOf(k.substring(l[0]))==0){l[0]+=k.length-l[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[g].abutStart){a:{l=a;r=c;w=g;var x=r[0],C=0;for(k=w;k<this.patternParts_.length;k++){var H=this.patternParts_[k],J=H.count;if(J===0)break;if(k==w&&(J-=C,C++,J==0)){k=0;break a}var O=k>w&&H.numeric,R=r[0];if(!btd(this,l,r,H,J,f,!1)||O&&r[0]-R<J)k=w-1,r[0]=x}k-=w}if(k<=0)return 0;
g+=k-1}else if(!btd(this,a,c,this.patternParts_[g],0,f,d))return 0}a:{a=e;if(b==null)throw Error("Ke");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=vUc(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 btd=function(a,b,c,d,e,f,g){atd(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return ctd(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return dtd(a,b,c,e,d,f);case "E":return ctd(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=ctd(b,c,a,function(k){return f.dayPeriodIndex=
k},g),f.dayPeriodName=e[f.dayPeriodIndex],g?b:!0;case "a":return b=ctd(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},g),g?b:!0;case "y":return etd(a,b,c,d,e,f);case "Q":return ctd(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=k*3;f.day=1});case "d":return ftd(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return gtd(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=ftd(a,b,c,d,e,function(k){f.hours=d.text.charAt(0)==="h"&&k===12?0:k},g),g?
b:!0;case "m":return b=ftd(a,b,c,d,e,function(k){f.minutes=k},g),g?b:!0;case "s":return ftd(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return htd(a,b,c,f);default:return!1}},etd=function(a,b,c,d,e,f){var g=c[0];e=itd(a,b,c,e);e===null&&(e=itd(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-g==2&&d.count==2?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a<c?100:0),f.year=a):f.year=e;return!0},dtd=function(a,b,c,d,e,f){return e.numeric&&
ftd(a,b,c,e,d,function(g){f.month=g-1})?!0:ctd(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(g){f.month=g})},gtd=function(a,b,c,d,e){var f=c[0];a=itd(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},htd=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=itd(a,b,c,0,!0);
if(f===null)return!1;if(c[0]<b.length&&b.charAt(c[0])==":"){var g=f*60;c[0]++;f=itd(a,b,c,0);if(f===null)return!1;g+=f}else g=f,g=g<24&&c[0]-e<=3?g*60:g%100+g/100*60;d.tzOffset=-g;return!0},ftd=function(a,b,c,d,e,f,g){g=g||!1;var k=c[0];a=itd(a,b,c,e);if(a===null)return!1;if(g&&c[0]-k<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-k))}f(a);return!0},ctd=function(a,b,c,d,e){e=e||!1;for(var f,g=0;g<c.length;g++){f=b;for(var k=c[g],l=e,r=0,w=null,x=a.substring(f[0]).toLowerCase(),C=
0;C<k.length;C++){var H=k[C].toLowerCase();if(l&&H.indexOf(x)==0){r=x.length;w=C;break}k[C].length>r&&x.indexOf(H)==0&&(r=k[C].length,w=C)}w!==null&&(f[0]+=r);f=w;if(f!==null)return d(f),!0}return!1},atd=function(a,b){(a=a.substring(b[0]).match(Ysd))&&(b[0]+=a[0].length)},itd=function(a,b,c,d,e){b=d>0?b.substring(0,c[0]+d):b;e=e||!1;if(a.dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f<b.length;f++){var g=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=g&&g<=9?String.fromCharCode(g+48):b.charAt(f))}b=
d.join("")}else b=b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},$sd=function(){};$sd.prototype.ambiguousYear=!1;var fld=Array(31).fill(0).map(function(a,b){return""+(b+1)}),mV=function(){var a=Rz.apply(this,arguments)||this;a.locale=OF;return a};Y(mV,Rz);mV.prototype.setLocale=function(){throw Error("Le");};mV.prototype.getYear=function(a){return a.getYear()};mV.prototype.getMonth=function(a){return a.getMonth()};mV.prototype.getDate=function(a){return a.getDate()};var eld=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
mV.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};mV.prototype.clone=function(a){return a.clone()};var uR=function(a,b,c){return new bo(a,b,c)};mV.prototype.parse=function(a,b){if(a===""||typeof a!=="string")return null;b=new Zsd(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new bo(new Date(a));b.parse(a,c);return c};mV.prototype.format=function(a,b){if(!this.isValid(a))throw Error("Me");return(new nl(b)).format(a)};
var sR=function(a,b){a=a.clone();a.add(new PF(b));return a},tR=function(a,b){a=a.clone();a.add(new PF(0,b));return a},rR=function(a,b){a=a.clone();a.add(new PF(0,0,b));return a},KDc=function(a){return a instanceof bo};h=mV.prototype;h.isValid=function(a){return!isNaN(a.getTime())};h.invalid=function(){return new bo(NaN)};h.sameDate=function(a,b){return a&&b?(new rm(a)).equals(b):!1};h.getHours=function(a){return a.getHours()};h.getMinutes=function(a){return a.getMinutes()};h.getSeconds=function(a){return a.getSeconds()};
h.setTime=function(a,b,c,d){a=this.clone(a);a.setHours(b);a.setMinutes(c);a.setSeconds(d);a.setMilliseconds(0);return a};mV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(mV)))(b||mV)}}();mV.\u0275prov=Fc({token:mV,factory:mV.\u0275fac});var jtd=OF.DATEFORMATS[3];jtd=jtd.replace(/yyyy/,"yy").replace(/yy/,"yyyy");jtd==="M/d/yyyy"&&(jtd="MM/dd/yyyy");var ktd=OF.TIMEFORMATS.at(-1),ltd={parse:{dateInput:jtd,timeInput:ktd},display:{dateInput:jtd,monthYearLabel:VF.YEAR_MONTH_ABBR,dateA11yLabel:VF.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:VF.YEAR_MONTH_FULL,timeInput:ktd,timeOptionLabel:ktd}};var nV=function(){};nV.\u0275fac=function(a){return new (a||nV)};nV.\u0275mod=cf({type:nV});nV.\u0275inj=Hc({providers:[{provide:Rz,useClass:mV},{provide:Vz,useValue:ltd}]});var oV=function(){};oV.\u0275fac=function(a){return new (a||oV)};oV.\u0275mod=cf({type:oV});oV.\u0275inj=Hc({imports:[RO,iB,FR,bK,Zy,xE,yE,ND,AE,nV]});var mtd=["popupField"],ntd=["fieldContent"],otd=["popupOverlay"],ptd=["overlayContent"],obb=function(a){return{q:a}},qtd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],pV=function(){Z.apply(this,arguments);this.cdr=p(YP,{self:!0});this.element=p(Jd);this.overlay=p(Nz);this.viewContainerRef=p(fg);this.dateFormatter=p(cS);this.activeSession=p(qu);this.constants=p(bS);this.appEvents=p(PO);this.IssuePriority=dcd;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=
this.displayIcon=this.displayValue=null;this.textBuffer="";this.enableTeamAnnotations=this.activeSession.isInternalSession();this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.teamId="";this.clearable=!1;this.choices=[];this.customFieldId=0;this.showEnumTitle=!1;this.valueChange=new XP;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.showHotkeyHint=this.truncate=!1};Y(pV,Z);pV.\u0275dir=Z.\u0275dir;
h=pV.prototype;h.ngOnInit=function(){var a=this;this.enableWaldoAvailability=this.activeSession.getFlag("enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,rtd(a),a.cdr.detectChanges())}));this.subscriptions.add(and(this.dateFormatter,function(){std(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){rtd(a)})};
h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};h.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&std(this)};h.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
h.getPositionStrategy=function(){return zz(Az(Bz(Fz(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),qtd)};
var rtd=function(a){var b;((b=a.overlayRef)==null?0:b.hasAttached())&&a.overlayRef.detach()},vbb=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();Yr(a,b,!0,!1);break;case 27:b.stopPropagation(),Yr(a,b,!1,!0)}},Yr=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,rtd(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?Tq(c):null),a.type==="ENUM"&&a.enumMenuTrigger.openMenu(),a.type!=="ENUM"){ttd(a);var f=a.element.nativeElement;re(document,"click").pipe(we(function(g){return!f.contains(g.target)}),nf(1),Bf(a.overlayRef._detachments),Bf(a.destroyed$)).subscribe(function(){Yr(a,null,!1,!1)})}b==null||b.stopPropagation();a.cdr.detectChanges()}};
pV.prototype.schedule=function(a){var b=se.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};pV.prototype.getDisplayValue=function(a){return this.displayValue===null?a:this.displayValue};
var std=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(Tq(b)):a.displayValue=null;a.readonlyTooltip=
null;break;default:a.displayValueOverride?a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};pV.prototype.setFieldValue=function(a){this.disabled||this.readonly||(this.type==="DATE"&&a&&(a=O1a(a)),this.type==="NUMERIC"&&a===""&&(a=null),mm(this.value,a)?this.type==="ENUM"&&Yr(this,null,!1,!0):(Yr(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var Rbb=function(a){if(a.type===void 0)throw Error("Ne");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("Oe");default:wb(a.type,"FieldType")}};pV.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);Yr(this,null,!1,!0)};
var ttd=function(a){rtd(a);var b=a.overlayRef.attach(new Iz(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()})};pV.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};
pV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(pV)))(b||pV)}}();
pV.\u0275cmp=D({type:pV,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(hg(aH,5),hg(mtd,5),hg(ntd,5),hg(otd,5),hg(ptd,5));if(a&2){var c;lg(c=mg())&&(b.enumMenuTrigger=c.first);lg(c=mg())&&(b.popupField=c.first);lg(c=mg())&&(b.fieldContent=c.first);lg(c=mg())&&(b.popupOverlay=c.first);lg(c=mg())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",displayValueOverride:"displayValueOverride",teamId:"teamId",clearable:"clearable",
choices:"choices",customFieldId:"customFieldId",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showHotkeyHint:"showHotkeyHint",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:12,vars:4,consts:[["enumMenu","matMenu"],["renderFieldContent",""],["popupOverlay",""],["popupField","","tooltip","matTooltip"],["fieldContent",""],["overlayContent",""],[1,"bv2-issue-metadata-field"],
["role","button",1,"keep-focus-ring",3,"class","bv2-disabled","bv2-readonly","matTooltip"],[3,"class","bv2-disabled","bv2-readonly","matTooltip"],[1,"bv2-issue-metadata-footer"],[1,"keep-focus-ring"],["matMenuContent",""],["role","button",1,"keep-focus-ring",3,"click","keydown","keydown.escape","matTooltip"],[3,"class"],[1,"bv2-editable-value"],[1,"bv2-editable-value",3,"matMenuTriggerFor"],[1,"overflow-ellipsis"],[1,"bv2-editable-value",3,"menuClosed","matMenuTriggerFor"],[4,"ngTemplateOutlet"],
["routerLink","/issues",1,"subtle-link",3,"queryParams"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuClosed","matMenuTriggerFor"],[3,"matTooltip"],[1,"keep-focus-ring",3,"modelChange","disabled","aria-label","model"],[3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked","disabled"],["type","button",
"mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"click","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click","onHotkey","disabled","hotkey"],[1,"flex-kids-x","align-items-center","gap-s"],[1,"icon-s","b-icon-prefix",3,"svgIcon"],[1,"muted","plain-monospace","margin-left-auto","padded-s-left"],[1,"bv2-editable-value",3,"keydown","click"],[1,"icon-s","muted",3,"svgIcon"],[1,"bv2-metadata-field-value",
3,"p0","p1","maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"class","maxWidth","modelValue","disabled"],[1,"chippy",3,"maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"maxWidth","modelValue","disabled"],[1,"bv2-edit-button"],[1,"issue-metadata-field-dropdown-icon"],[1,"issue-metadata-field-edit-icon"],["svgIcon","arrow-dropdown"],["svgIcon","edit-outline"],["role","dialog"],[1,"bv2-text-field-edit"],[3,"dateSelectionChange","saveClicked","cancelClicked","required",
"date"],[1,"bv2-text-field-edit",3,"click"],["spellcheck","false",3,"ngModel"],["step","any","spellcheck","false",3,"ngModel"],[1,"bv2-text-edit-dialog-buttons"],["type","button","mat-flat-button","","color","primary",1,"medium","field-popup-button",3,"click","disabled","matTooltip"],["svgIcon","done"],["type","button","mat-stroked-button","","color","primary",1,"medium","field-popup-button",3,"click","matTooltip"],["svgIcon","close"],["spellcheck","false",3,"ngModelChange","keydown","ngModel"],["step",
"any","spellcheck","false",3,"ngModelChange","keydown","ngModel"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",6),F(2,wbb,6,15,"div",7),F(3,ybb,3,13,"div",8),M(4,"div",9),L(),K(5,"mat-menu",10,0),E(7,Ebb,3,1,"ng-template",11),L()(),E(8,Nbb,12,6,"ng-template",null,1,Mg)(10,Vbb,6,4,"ng-template",null,2,Mg));a&2&&(B(),wg("active",b.isActive&&!b.readonly&&!b.disabled),B(),G(b.type!=="BOOL"?2:-1),B(),G(b.type==="BOOL"?3:-1))},dependencies:[Kx,Dy,$E,kV,yj,$D,gE,mU,gB,cB,OJ,YG,WG,XG,aH,oK,iA,QU,UU,aK,
Mx],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 qV={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},rV=function(){};rV.\u0275fac=function(a){return new (a||rV)};rV.\u0275mod=cf({type:rV});rV.\u0275inj=Hc({imports:[TU,NU,RO,oV,xE,nU,iB,PJ,pK,RU,fU,gV,VU,iV,bK]});var Xbb=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],Ybb={year:"yr",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"};var utd=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],vtd=Symbol("Pe"),wtd=Symbol("Pe"),sV=function(){var a=this;this.dateFormatter=p(qS);this.paddingLeftPx=5;this.timestampMs$=new wf(1);this.timestampIso$=this.timestampMs$.pipe(A(function(b){return b?(new Date(b)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(A(function(b){if(b!==void 0)return new Date(b)}));this[vtd]=this.timestampDate$.pipe(Af(function(b){if(b===void 0)return ee("");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 Fnd(a.dateFormatter,b);case "relativepast":return b=Zr(c),ee(b);case "relativepastshort":var d;return ee((d=Zr(c,!0))!=null?d:"");case "relativepasttiny":var e;return ee((e=Zr(c,!0,1))!=null?e:"");default:return wb(a.mode)}}));this[wtd]=this.timestampDate$.pipe(Af(function(b){return b===void 0?ee(""):le(utd.map(function(c){return Gnd(a.dateFormatter,
b,c.id).pipe(A(function(d){return{formatted:d,tzName:c.name}}))})).pipe(xtd)}));this.vars$=le([this[vtd],this[wtd]]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{formatted:b,title:c}}))};sV.prototype.ngOnInit=function(){};
da.Object.defineProperties(sV.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())}}});sV.\u0275fac=function(a){return new (a||sV)};
sV.\u0275cmp=D({type:sV,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,Zbb,3,8,"time",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.vars$))?0:-1,c)}},dependencies:[Lx],encapsulation:2,changeDetection:0});
var xtd=Ud(A(function(a){var b=new Map;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values(),function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var tV=function(){Z.apply(this,arguments);var a=this;this.changelistApi=p(zO);this.emailToUser=ym;this.providedChangelistId$=new wf(1);this.changelist$=this.providedChangelistId$.pipe(Af(function(b){return a.changelistApi.getChangelistDetails(b)}),xf({refCount:!0,bufferSize:1}));this.init=new wf(1)};Y(tV,Z);tV.\u0275dir=Z.\u0275dir;tV.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()})};
tV.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};tV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tV)))(b||tV)}}();
tV.\u0275cmp=D({type:tV,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},standalone:!1,features:[Gf,bx],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"card"],[3,"href"],[1,"author"],[1,"description"],[3,"innerHTML"],[3,"user","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,ccb,16,5,"div",
2),T(3,"async"),L()());if(a&2){var c;B(2);G((c=U(3,1,b.changelist$))?2:-1,c)}},dependencies:[ZU,sV,Lx,fV],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 uV=function(){this.analytics=p(aQ);this.config=Object.assign({},new HK,{showDelay:400,hideDelay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};uV.prototype.ngOnInit=function(){};uV.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","changelistChip")};uV.\u0275fac=function(a){return new (a||uV)};
uV.\u0275cmp=D({type:uV,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();K(0,"a",2);N("click",function(){u(c);return v(b.trackClick())});
Q(1);K(2,"span",3);Q(3,"CL");L()();K(4,"onedev-hovercard",null,0);E(6,dcb,2,2,"b-changelist-card",4);L()}a&2&&(a=qg(5),I("href","http://critique.corp.google.com/"+b.changelistId,Pe)("onedevHovercardTrigger",a)("onedevHovercardConfig",b.config),Kf("aria-label","Changelist "+b.changelistId),B(),S(" ",b.changelistId," "))},dependencies:[DK,EK,LK,FK,tV],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 vV=function(){this.activeSession=p(qu);this.analytics=p(aQ);this.gerritUrl="";this.isInternal=this.activeSession.getFrontendAccessMode()==="INTERNAL"};vV.prototype.ngOnInit=function(){};vV.prototype.ngOnChanges=function(a){a.change&&(this.gerritUrl=Wq(this.change,this.isInternal))};vV.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","gerritChangesChip")};vV.\u0275fac=function(a){return new (a||vV)};
vV.\u0275cmp=D({type:vV,selectors:[["b-gerrit-change-chip"]],inputs:{change:[0,"gerritChange","change"]},standalone:!1,features:[bx],decls:5,vars:8,consts:[["target","_blank",1,"bv2-metadata-link",3,"click","href"],[1,"suffix"]],template:function(a,b){a&1&&(K(0,"a",0),N("click",function(){return b.trackClick()}),Q(1),K(2,"span",1),Q(3),T(4,"titlecase"),L()());a&2&&(Kf("aria-label",Fg("",b.change.host," ",b.change.changeNumber)),I("href",b.gerritUrl,Pe),B(),S(" ",b.change.changeNumber," "),B(2),yg(U(4,
6,b.change.host)))},dependencies:[Nx],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 wV=function(){this.gerritChange=this.changelist=void 0};wV.prototype.ngOnInit=function(){};wV.prototype.ngOnChanges=function(a){a.codeChange&&((a=Xq(this.codeChange))?(this.changelist=void 0,this.gerritChange=a):(this.gerritChange=void 0,this.changelist=Number(this.codeChange)))};wV.\u0275fac=function(a){return new (a||wV)};
wV.\u0275cmp=D({type:wV,selectors:[["b-code-change-chip"]],inputs:{codeChange:"codeChange"},standalone:!1,features:[bx],decls:2,vars:1,consts:[[3,"changelistId"],[3,"gerritChange"]],template:function(a,b){a&1&&F(0,ecb,1,1,"b-changelist-chip",0)(1,fcb,1,1,"b-gerrit-change-chip",1);a&2&&G(b.changelist?0:b.gerritChange?1:-1)},dependencies:[uV,vV],encapsulation:2});var xV=function(){};xV.\u0275fac=function(a){return new (a||xV)};xV.\u0275mod=cf({type:xV});xV.\u0275inj=Hc({imports:[RO]});var ytd=function(){this.id=0};ytd.\u0275fac=function(a){return new (a||ytd)};
ytd.\u0275cmp=D({type:ytd,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&&(K(0,"a",2),Q(1),L(),K(2,"onedev-hovercard",null,0),E(4,gcb,2,2,"b-changelist-card",3),L());a&2&&(a=qg(3),I("href","http://critique.corp.google.com/"+
b.id,Pe)("onedevHovercardTrigger",a),B(),S(" cl/",b.id,"\n"))},dependencies:[DK,EK,LK,FK,tV],encapsulation:2});var yV=function(){};yV.\u0275fac=function(a){return new (a||yV)};yV.\u0275mod=cf({type:yV});yV.\u0275inj=Hc({imports:[RO,gV,iV,MK,xV]});var ztd=function(){};ztd.\u0275fac=function(a){return new (a||ztd)};ztd.\u0275mod=cf({type:ztd});ztd.\u0275inj=Hc({imports:[RO,MK,yV]});var zV=function(){Z.apply(this,arguments);var a=this;this.dialogRef=p(NA);this.data=p(PA);this.searchQuery$=new sf;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(lf(300),pf(),A(function(b){if(b.trim()!==""){var c=
b.toLowerCase();return a.data.allowedValues.filter(function(d){return za(d.toLowerCase(),c)})}return Atd(a)}))};Y(zV,Z);zV.\u0275dir=Z.\u0275dir;var Atd=function(a){var b=a.data.allowedValues.filter(function(c){return!a.originalSelectedValues.has(c)});return[].concat(q(a.originalSelectedValues),q(b))};
zV.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=hRa(this.originalSelectedValues,this.selectedValues);this.hasPendingChanges=!!a;var c=m(icb(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};var Btd=function(a){a.dialogRef.close(a.usePreviousSelectedValues?a.previousSelectedValues:a.selectedValues)};
zV.prototype.closeDialog=function(){this.dialogRef.close()};zV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(zV)))(b||zV)}}();
zV.\u0275cmp=D({type:zV,selectors:[["b-custom-repeated-enum-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return Btd(b)})("keydown.shift.enter",function(){return Btd(b)})("keydown.control.enter",function(){return Btd(b)})},standalone:!1,features:[Gf],decls:18,vars:10,consts:[["customRepeatedEnumSearchBox",""],["content",""],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search",1,"search-box",3,"click","input","placeholder"],["mat-dialog-content",
"",1,"search-results"],[3,"selectionChange","keydown.meta.enter","keydown.shift.enter","keydown.control.enter"],["checkboxPosition","before",3,"selected","value","height"],["type","button","mat-button","","mat-dialog-close","","tooltip","Close dialog","aria-label","Close dialog","role","button",3,"click"],["type","button","mat-flat-button","","color","primary",3,"click","mat-dialog-close","matTooltip","disabled"],["checkboxPosition","before",3,"selected","value"]],template:function(a,b){if(a&1){var c=
t();K(0,"header",2)(1,"h2");Q(2);L();K(3,"div",3);M(4,"mat-icon",4);K(5,"input",5,0);N("click",function(){u(c);var e=qg(6);b.searchQuery$.next(e.value);return v()})("input",function(){u(c);var e=qg(6);b.searchQuery$.next(e.value);return v()});L()()();K(7,"section",6,1)(9,"mat-selection-list",7);N("selectionChange",function(e){u(c);return v(b.changeSelection(e))})("keydown.meta.enter",function(){u(c);return v(b.usePreviousSelectedValues=!0)})("keydown.shift.enter",function(){u(c);return v(b.usePreviousSelectedValues=
!0)})("keydown.control.enter",function(){u(c);return v(b.usePreviousSelectedValues=!0)});Of(10,hcb,2,5,"mat-list-option",8,Nf);T(12,"async");L()();K(13,"mat-dialog-actions")(14,"button",9);N("click",function(){u(c);return v(b.closeDialog())});Q(15," Cancel ");L();K(16,"button",10);N("click",function(){u(c);return v(Btd(b))});Q(17);L()()}if(a&2){B(2);S("Search for ",b.data.customFieldTitle);B(3);I("placeholder","Type to filter "+b.data.customFieldTitle+" values");Kf("aria-label","Filter "+b.data.customFieldTitle+
" values");B(5);var d;Pf((d=U(12,8,b.matchedValues$))!=null?d:Atd(b));B(6);I("mat-dialog-close",!0)("matTooltip",b.saveBtnTooltip)("disabled",!b.hasPendingChanges);Kf("aria-label",b.saveBtnTooltip);B();S(" ",b.saveBtnLabel," ")}},dependencies:[Dy,gB,cB,RA,TA,VA,UA,SJ,gK,cK,oK,iA,Lx],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 AV=function(){this.dialog=p(QA);this.dialogRef=null};AV.prototype.open=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return c={panelClass:"no-jitter",data:a,ariaLabel:"Custom repeated enum dialog"},b.dialogRef=b.dialog.open(zV,c),z(e,ie(OA(b.dialogRef)),2);d=e.yieldResult;return e.return(Promise.resolve(d))})};AV.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};AV.\u0275fac=function(a){return new (a||AV)};
AV.\u0275prov=Fc({token:AV,factory:AV.\u0275fac,providedIn:"root"});var Ctd=function(){};Ctd.\u0275fac=function(a){return new (a||Ctd)};Ctd.\u0275mod=cf({type:Ctd});Ctd.\u0275inj=Hc({imports:[RO,xE,iB,MJ,iK,pK]});var Dtd=0,BV=function(){Z.call(this);var a=this;this.teamsService=p(KQ);this.ROUTES=ps;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new XP;this.linkBlurred=new XP;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new wf(1);this.teamLinkId="b-team-link-content-"+Dtd;this.fetchedTeam$=this.providedTeamId$.pipe(pf(),we(function(b){return b!=="0"}),Af(function(b){return LQ(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),
zf(!1));this.fetchedTeam$.pipe(Bf(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});Dtd++};Y(BV,Z);BV.\u0275dir=Z.\u0275dir;BV.prototype.ngOnInit=function(){};BV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};BV.prototype.trackClick=function(a){er("teamCard","click",a,1)};
BV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};BV.\u0275fac=function(a){return new (a||BV)};
BV.\u0275cmp=D({type:BV,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},standalone:!1,features:[Gf,bx],decls:21,vars:9,consts:[["role","dialog","aria-label","Team hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"flex-kids-x"],["alt","Team logo"],[1,"flex-kids-y","margin-s-left",
"margin-s-bottom"],[1,"type-m"],["svgIcon","supervisor_account_24px",1,"icon-xxs"],[1,"type-s","id-text"],[1,"card-description"],[1,"flex-kids-y","padded-s-top","hovercard-action-container"],["aria-label","View team settings",3,"click","routerLink"],["type","button","mat-button","",1,"primary","hovercard-action"],["target","_blank","aria-label","View team in Moma",3,"click","href"],["type","button","mat-button","",1,"gmat-button","primary","hovercard-action"],["svgIcon","pop-out",1,"icon-xxs"],["aria-label",
"View team association on component",3,"href"],["aria-label","View team association on component",3,"click","href"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2),M(3,"img",3),K(4,"div",4)(5,"div",5),M(6,"mat-icon",6),Q(7),L(),K(8,"div",7),Q(9),L()()(),K(10,"p",8),Q(11),L(),K(12,"div",9)(13,"a",10),N("click",function(){return b.trackClick("viewTeamSettingsPage")}),K(14,"button",11),Q(15,"View team settings"),L()(),K(16,"a",12),N("click",function(){return b.trackClick("viewTeamInMoma")}),
K(17,"button",13),Q(18,"View team in Moma "),M(19,"mat-icon",14),L()(),F(20,jcb,3,1,"a",15),L()()());a&2&&(B(3),Kf("src",b.teamLogoUrl,Pe),B(4),S(" Team: ",b.teamName," "),B(2),S("Team ID: ",b.teamId),B(2),yg(b.teamDescription),B(2),I("routerLink",Eg("/teams/",b.teamId,"/edit")),B(3),I("href",Eg("https://moma.corp.google.com/team/",b.teamId),Pe),B(4),G(b.componentId?20:-1))},dependencies:[Dy,$E,gB,cB],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 CV=function(){};CV.\u0275fac=function(a){return new (a||CV)};CV.\u0275mod=cf({type:CV});CV.\u0275inj=Hc({imports:[RO,iB]});var Etd=0,DV=function(){Z.call(this);var a=this;this.teamsService=p(KQ);this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new wf(1);this.teamLinkId="b-team-link-content-"+Etd++;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(pf(),we(function(b){return b!=="0"}),Af(function(b){return LQ(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),zf(!1));this.fetchedTeam$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.teamName=
b.name})};Y(DV,Z);DV.\u0275dir=Z.\u0275dir;DV.prototype.ngOnInit=function(){};DV.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};DV.prototype.trackClick=function(a){er("teamCard","click",a,1)};DV.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};DV.\u0275fac=function(a){return new (a||DV)};
DV.\u0275cmp=D({type:DV,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},standalone:!1,features:[Gf,bx],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,mcb,2,2),T(1,"async"),Lf(2,pcb,2,2),K(3,"onedev-hovercard",null,0),Uf(5),M(6,"b-team-card",1),Vf(),L());a&2&&(G(b.teamId!="0"&&U(1,3,b.isTeamFetched$)?0:2),B(6),I("componentId",b.componentId)("teamId",b.teamId.toString()))},dependencies:[Dy,DK,LK,BV,Lx],encapsulation:2});var EV=function(){};EV.\u0275fac=function(a){return new (a||EV)};EV.\u0275mod=cf({type:EV});EV.\u0275inj=Hc({imports:[RO,MK,CV]});var Ftd=0,FV=function(){this.elementRef=p(Jd);this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.ariaLabel="";this.counter=Ftd++;this.headerId="b-collapsible-panel-header-"+this.counter;this.id="b-collapsible-panel-"+this.counter};FV.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
da.Object.defineProperties(FV.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"}}});FV.\u0275fac=function(a){return new (a||FV)};
FV.\u0275cmp=D({type:FV,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",iconName:"iconName",hasCompactTitleBar:"hasCompactTitleBar",ariaLabel:"ariaLabel",title:"title"},standalone:!1,ngContentSelectors:["*"],decls:8,vars:14,consts:[[1,"collapsible-panel"],["type","button",1,"title-bar","unstyled-button",3,"click","mouseup","aria-label"],["size","small",1,"icon",3,"name"],[1,"title"],
[1,"horizontal-line"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(cg(),K(0,"div",0)(1,"button",1),N("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,qcb,1,1,"b-icon",2),F(3,rcb,2,1,"span",3),F(4,scb,2,0,"div",4),M(5,"mat-icon",5),L(),K(6,"div",6),dg(7),L()());a&2&&(B(),wg("compact",b.hasCompactTitleBar),Jf("aria-label",Eg("",b.ariaLabel?b.ariaLabel+", ":"","collapsible panel")),
Kf("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(),G(b.iconName?2:-1),B(),G(b.hasCompactTitleBar&&b.isExpanded?-1:3),B(),G(b.hasCompactTitleBar?4:-1),B(),I("@expandCollapseIcon",b.expandedState),B(),I("@expandCollapseContent",b.expandedState),Kf("id",b.id)("aria-labelledby",b.headerId))},dependencies:[Dy,pT],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:[Ata("expandCollapseContent",[Yi("expanded",Wi({height:"*",visibility:"visible"})),Yi("collapsed",Wi({height:"0",visibility:"hidden"})),Zi("expanded <=> collapsed",[Vi("200ms")])]),Ata("expandCollapseIcon",[Yi("expanded",Wi({transform:"rotate(-180deg)"})),Yi("collapsed",Wi({transform:"*"})),Zi("expanded <=> collapsed",[Vi("200ms")])])]}});var GV=function(){};GV.\u0275fac=function(a){return new (a||GV)};GV.\u0275mod=cf({type:GV});GV.\u0275inj=Hc({imports:[RO,DU]});var HV=function(){};HV.\u0275fac=function(a){return new (a||HV)};HV.\u0275mod=cf({type:HV});HV.\u0275inj=Hc({});var IV=function(){};IV.\u0275fac=function(a){return new (a||IV)};IV.\u0275mod=cf({type:IV});IV.\u0275inj=Hc({});var Gtd=new fd("CDK_DRAG_CONFIG");var Htd={capture:!0},Itd={passive:!1,capture:!0},Jtd=function(){};Jtd.\u0275fac=function(a){return new (a||Jtd)};Jtd.\u0275cmp=D({type:Jtd,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 JV=function(){var a=this;this._ngZone=p(Rg);this._document=p(Sh);this._styleLoader=p($h);this._renderer=p(af).createRenderer(null,null);this._scroll=new sf;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=ng.apply(null,[[]].concat(q([])));this._draggingPredicate=function(b){return b.isDragging()};this._domNodesToDirectives=null;this.pointerMove=new sf;this.pointerUp=new sf;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))}},Ktd=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},Ltd=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,
Itd)})},Ntd=function(a,b){a._dragInstances.delete(b);Mtd(a,b);if(a._dragInstances.size===0){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a)}};
JV.prototype.startDragging=function(a,b){var c=this;if(!(this._activeDragInstances().indexOf(a)>-1)&&(this._styleLoader.load(Jtd),this._activeDragInstances.update(function(f){return[].concat(q(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)},Htd],["selectstart",this._preventDefaultWhileDragging,Itd]];b?e.push(["touchend",d,Htd],["touchcancel",d,Htd]):e.push(["mouseup",d,
Htd]);b||e.push(["mousemove",function(f){return c.pointerMove.next(f)},Itd]);this._ngZone.runOutsideAngular(function(){c._globalListeners=e.map(function(f){var g=m(f);f=g.next().value;var k=g.next().value;g=g.next().value;return c._renderer.listen(c._document,f,k,g)})})}};var Mtd=function(a,b){a._activeDragInstances.update(function(c){var d=c.indexOf(b);return d>-1?(c.splice(d,1),[].concat(q(c))):c});a._activeDragInstances().length===0&&a._clearGlobalListeners()};
JV.prototype.isDragging=function(a){return this._activeDragInstances().indexOf(a)>-1};JV.prototype.scrolled=function(a){var b=this,c=[this._scroll];a&&a!==this._document&&c.push(new Vd(function(d){return b._ngZone.runOutsideAngular(function(){var e=b._renderer.listen(a,"scroll",function(f){b._activeDragInstances().length&&d.next(f)},Htd);return function(){e()}})}));return ve.apply(null,q(c))};
var Otd=function(a,b,c){a._domNodesToDirectives!=null||(a._domNodesToDirectives=new WeakMap);a._domNodesToDirectives.set(b,c)},Ptd=function(a,b){var c;(c=a._domNodesToDirectives)==null||c.delete(b)},Qtd=function(a,b){var c;return((c=a._domNodesToDirectives)==null?void 0:c.get(b))||null};
JV.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return Ntd(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._domNodesToDirectives=null;this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};JV.prototype._clearGlobalListeners=function(){var a;(a=this._globalListeners)==null||a.forEach(function(b){return b()});this._globalListeners=void 0};JV.\u0275fac=function(a){return new (a||JV)};
JV.\u0275prov=Fc({token:JV,factory:JV.\u0275fac,providedIn:"root"});var Rtd=new fd("CDK_DRAG_PARENT");var Std=new fd("CdkDragHandle"),KV=function(){this.element=p(Jd);this._parentDrag=p(Rtd,{optional:!0,skipSelf:!0});this._dragDropRegistry=p(JV);this._stateChanges=new sf;this._disabled=!1;var a;(a=this._parentDrag)==null||a._addHandle(this)};KV.prototype.ngAfterViewInit=function(){if(!this._parentDrag)for(var a=this.element.nativeElement.parentElement;a;){var b=Qtd(this._dragDropRegistry,a);if(b){this._parentDrag=b;b._addHandle(this);break}a=a.parentElement}};
KV.prototype.ngOnDestroy=function(){var a;(a=this._parentDrag)==null||a._removeHandle(this);this._stateChanges.complete()};da.Object.defineProperties(KV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._stateChanges.next(this)}}});KV.\u0275fac=function(a){return new (a||KV)};
KV.\u0275dir=df({type:KV,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",$g]},features:[Gg([{provide:Std,useExisting:KV}])]});var xcb=0;var Ttd=function(a){this._document=a;this.positions=new Map};Ttd.prototype.clear=function(){this.positions.clear()};Ttd.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:ycb(c)})})};
var Utd=function(a,b){var c=Kh(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,g=b.left-d;a.positions.forEach(function(k,l){k.clientRect&&c!==l&&c.contains(l)&&Acb(k.clientRect,f,g)});b.top=e;b.left=d;return{top:f,left:g}};Ttd.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var Vtd=new Set(["position"]),Wtd=function(a,b,c,d,e,f,g,k,l,r){this._document=a;this._rootElement=b;this._direction=c;this._initialDomRect=d;this._previewTemplate=e;this._previewClass=f;this._pickupPositionOnPage=g;this._initialTransform=k;this._zIndex=l;this._renderer=r};h=Wtd.prototype;h.attach=function(a){this._preview=this._createPreview();a.appendChild(this._preview);"showPopover"in this._preview&&this._preview.showPopover()};
h.destroy=function(){this._preview.remove();var a;(a=this._previewEmbeddedView)==null||a.destroy();this._preview=this._previewEmbeddedView=null};h.setTransform=function(a){this._preview.style.transform=a};h.getBoundingClientRect=function(){return this._preview.getBoundingClientRect()};h.addClass=function(a){this._preview.classList.add(a)};h.addEventListener=function(a,b){return this._renderer.listen(this._preview,a,b)};
h._createPreview=function(){var a=this._previewTemplate,b=this._previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._initialDomRect:null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=Ccb(c,this._document);this._previewEmbeddedView=c;a.matchSize?Icb(e,d):e.style.transform=Hcb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=wcb(this._rootElement),Icb(e,this._initialDomRect),this._initialTransform&&(e.style.transform=this._initialTransform);
Dcb(e.style,{"pointer-events":"none",margin:"showPopover"in e?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Vtd);$r(e,!1);e.classList.add("cdk-drag-preview");e.setAttribute("popover","manual");e.setAttribute("dir",this._direction);b&&(Array.isArray(b)?b.forEach(function(f){return e.classList.add(f)}):e.classList.add(b));return e};da.Object.defineProperties(Wtd.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this._preview}}});var Xtd={passive:!0},Ytd={passive:!1},Ztd={passive:!1,capture:!0},Ecb=new Set(["position"]),bud=function(a,b,c,d,e,f,g){var k=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._renderer=g;this._anchor=null;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=ng.apply(null,[!1].concat(q([])));this._moveEvents=new sf;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=
Rd.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.lockAxis=null;this.dragStartDelay=0;this.scale=1;this._disabled=!1;this.beforeStarted=new sf;this.started=new sf;this.released=new sf;this.ended=new sf;this.entered=new sf;this.exited=new sf;this.dropped=new sf;this.moved=this._moveEvents;this._pointerDown=function(l){k.beforeStarted.next();if(k._handles.length){var r=k._getTargetHandle(l);!r||k._disabledHandles.has(r)||
k.disabled||k._initializeDragSequence(r,l)}else k.disabled||k._initializeDragSequence(k._rootElement,l)};this._pointerMove=function(l){var r=k._getPointerPositionOnPage(l);if(k._hasStartedDragging()){l.cancelable&&l.preventDefault();var w=k._getConstrainedPointerPosition(r);k._hasMoved=!0;k._lastKnownPointerPosition=r;k._updatePointerDirectionDelta(w);if(k._dropContainer)k._updateActiveDropContainer(w,r);else{r=k.constrainPosition?k._initialDomRect:k._pickupPositionOnPage;var x=k._activeTransform;
x.x=w.x-r.x+k._passiveTransform.x;x.y=w.y-r.y+k._passiveTransform.y;k._applyRootElementTransform(x.x,x.y)}k._moveEvents.observers.length&&k._ngZone.run(function(){k._moveEvents.next({source:k,pointerPosition:w,event:l,distance:k._getDragDistance(w),delta:k._pointerDirectionDelta})})}else Math.abs(r.x-k._pickupPositionOnPage.x)+Math.abs(r.y-k._pickupPositionOnPage.y)>=k._config.dragStartThreshold&&((r=Date.now()>=k._dragStartTime+k._getDragStartDelay(l),x=k._dropContainer,r)?x&&(x.isDragging()||x._activeSiblings.size>
0)||(l.cancelable&&l.preventDefault(),k._hasStartedDragging.set(!0),k._ngZone.run(function(){return k._startDragSequence(l)})):k._endDragSequence(l))};this._pointerUp=function(l){k._endDragSequence(l)};this._nativeDragStart=function(l){if(k._handles.length){var r=k._getTargetHandle(l);!r||k._disabledHandles.has(r)||k.disabled||l.preventDefault()}else k.disabled||l.preventDefault()};$td(aud(this,a),b.parentDragRef||null);this._parentPositions=new Ttd(c);Ltd(f,this)};
bud.prototype.getPlaceholderElement=function(){return this._placeholder};bud.prototype.getRootElement=function(){return this._rootElement};
var cud=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},dud=function(a,b){a._handles=b.map(function(d){return Oh(d)});a._handles.forEach(function(d){return $r(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},aud=function(a,b){var c=Oh(b);if(c!==a._rootElement){a._removeRootElementListeners();var d=a._renderer;a._rootElementCleanups=a._ngZone.runOutsideAngular(function(){return[d.listen(c,
"mousedown",a._pointerDown,Ytd),d.listen(c,"touchstart",a._pointerDown,Xtd),d.listen(c,"dragstart",a._nativeDragStart,Ytd)]});a._initialTransform=void 0;a._rootElement=c}typeof SVGElement!=="undefined"&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},eud=function(a,b){a._boundaryElement=b?Oh(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},$td=function(a,b){a._parentDragRef=b};h=bud.prototype;
h.dispose=function(){this._removeRootElementListeners();if(this.isDragging()){var a;(a=this._rootElement)==null||a.remove()}var b;(b=this._marker)==null||b.remove();this._destroyPreview();this._destroyPlaceholder();Ntd(this._dragDropRegistry,this);this._removeListeners();this.beforeStarted.complete();this.started.complete();this.released.complete();this.ended.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this._moveEvents.complete();this._handles=[];this._disabledHandles.clear();
this._dropContainer=void 0;this._resizeSubscription.unsubscribe();this._parentPositions.clear();this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null};h.isDragging=function(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)};h.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};
h.withDirection=function(a){this._direction=a;return this};h._withDropContainer=function(a){this._dropContainer=a};h.setFreeDragPosition=function(a){this._activeTransform={x:0,y:0};this._passiveTransform.x=a.x;this._passiveTransform.y=a.y;this._dropContainer||this._applyRootElementTransform(a.x,a.y)};h._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};
h._removeListeners=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe();var a;(a=this._cleanupShadowRootSelectStart)==null||a.call(this);this._cleanupShadowRootSelectStart=void 0};h._destroyPreview=function(){var a;(a=this._preview)==null||a.destroy();this._preview=null};
h._destroyPlaceholder=function(){var a;(a=this._anchor)==null||a.remove();var b;(b=this._placeholder)==null||b.remove();var c;(c=this._placeholderRef)==null||c.destroy();this._placeholder=this._anchor=this._placeholderRef=null};
h._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),Mtd(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();
Mtd(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();Mtd(this._dragDropRegistry,this)}};
h._startDragSequence=function(a){var b=this;Mcb(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",Ncb,Ztd)});if(d){var e=this._rootElement,f=e.parentNode,g=this._placeholder=this._createPlaceholderElement(),k=this._marker=this._marker||this._document.createComment("");f.insertBefore(k,e);this._initialTransform=
e.style.transform||"";this._preview=new Wtd(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));Fcb(e,!1);this._document.body.appendChild(f.replaceChild(g,e));this.started.next({source:this,event:a});d.start();this._initialContainer=d;this._initialIndex=d.getItemIndex(this)}else this.started.next({source:this,
event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(d?d._scrollableElements:[])};
h._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=Mcb(b),f=!e&&b.button!==0,g=this._rootElement,k=Kh(b),l=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?hra(b):gra(b);k&&k.draggable&&b.type==="mousedown"&&b.preventDefault();d||f||l||e||(this._handles.length&&(d=g.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),
this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(r){return c._updateOnScroll(r)}),this._boundaryElement&&(this._boundaryRect=ycb(this._boundaryElement)),this._pickupPositionInElement=
(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,a,b),a=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(b),this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:a.x,y:a.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,b))};
h._cleanupDragArtifacts=function(a){var b=this;Fcb(this._rootElement,!0);this._marker.parentNode.replaceChild(this._rootElement,this._marker);this._destroyPreview();this._destroyPlaceholder();this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0;this._ngZone.run(function(){var c=b._dropContainer,d=c.getItemIndex(b),e=b._getPointerPositionOnPage(a),f=b._getDragDistance(e),g=c._isOverContainer(e.x,e.y);b.ended.next({source:b,distance:f,dropPoint:e,event:a});b.dropped.next({item:b,
currentIndex:d,previousIndex:b._initialIndex,container:c,previousContainer:b._initialContainer,isPointerOverContainer:g,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,g,f,e,a);b._dropContainer=b._initialContainer})};
h._updateActiveDropContainer=function(a,b){var c=this;var d=a.x;var e=a.y;a=b.x;b=b.y;var f=this._initialContainer._getSiblingContainerFromPosition(this,d,e);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(d,e)&&(f=this._initialContainer);f&&f!==this._dropContainer&&this._ngZone.run(function(){var g=c._dropContainer.getItemIndex(c),k;g=((k=c._dropContainer.getItemAtIndex(g+1))==null?void 0:cud(k))||null;c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);
c._conditionallyInsertAnchor(f,c._dropContainer,g);c._dropContainer=f;c._dropContainer.enter(c,d,e,f===c._initialContainer&&f.sortingDisabled?c._initialIndex:void 0);c.entered.next({item:c,container:f,currentIndex:f.getItemIndex(c)})});this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,b),this._dropContainer._sortItem(this,d,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(d,e):this._applyPreviewTransform(d-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))};
h._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=Lcb(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&&Kh(k)===a._preview.element&&k.propertyName==="transform")g(),d(),clearTimeout(f)},f=setTimeout(e,
c*1.5),g=a._preview.addEventListener("transitionend",e)})})};h._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=Ccb(this._placeholderRef,this._document)):a=wcb(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
h._getPointerPositionInElement=function(a,b,c){b=(b=b===this._rootElement?null:b)?b.getBoundingClientRect():a;c=Mcb(c)?c.targetTouches[0]:c;var d=this._getViewportScrollPosition();return{x:b.left-a.left+(c.pageX-b.left-d.left),y:b.top-a.top+(c.pageY-b.top-d.top)}};
h._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=Mcb(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a;a=c.pageX-b.left;b=c.pageY-b.top;if(this._ownerSVGElement&&(c=this._ownerSVGElement.getScreenCTM())){var d=this._ownerSVGElement.createSVGPoint();d.x=a;d.y=b;return d.matrixTransform(c.inverse())}return{x:a,y:b}};
h._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this,this._initialDomRect,this._pickupPositionInElement):a;a=c.x;c=c.y;if(this.lockAxis==="x"||b==="x")c=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0);else if(this.lockAxis==="y"||b==="y")a=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0);if(this._boundaryRect){var d=
this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),g=d.top+e;e=d.bottom-(f.height-e);a=Math.max(d.left+b,Math.min(d.right-(f.width-b),a));c=Math.max(g,Math.min(e,c))}return{x:a,y:c}};
h._updatePointerDirectionDelta=function(a){var b=a.x;a=a.y;var c=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,e=Math.abs(a-d.y);Math.abs(b-d.x)>this._config.pointerDirectionChangeThreshold&&(c.x=b>d.x?1:-1,d.x=b);e>this._config.pointerDirectionChangeThreshold&&(c.y=a>d.y?1:-1,d.y=a);return c};
h._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,$r(this._rootElement,a))}};h._removeRootElementListeners=function(){var a;(a=this._rootElementCleanups)==null||a.forEach(function(b){return b()});this._rootElementCleanups=void 0};
h._applyRootElementTransform=function(a,b){var c=1/this.scale;a=Hcb(a*c,b*c);b=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=b.transform&&b.transform!="none"?b.transform:"");b.transform=Gcb(a,this._initialTransform)};h._applyPreviewTransform=function(a,b){var c,d=((c=this._previewTemplate)==null?0:c.template)?void 0:this._initialTransform;this._preview.setTransform(Gcb(Hcb(a,b),d))};
h._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};h._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
h._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(b===0&&a===0||this.isDragging())&&this._boundaryElement){var c=this._rootElement.getBoundingClientRect(),d=this._boundaryElement.getBoundingClientRect();if(!(d.width===0&&d.height===0||c.width===0&&c.height===0)){var e=d.left-c.left,f=c.right-d.right,g=d.top-c.top,k=c.bottom-d.bottom;d.width>c.width?(e>0&&(b+=e),f>0&&(b-=f)):b=0;d.height>c.height?(g>0&&(a+=g),k>0&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};h._getDragStartDelay=function(a){var b=this.dragStartDelay;return typeof b==="number"?b:Mcb(a)?b.touch:b?b.mouse:0};
h._updateOnScroll=function(a){var b=Utd(this._parentPositions,a);b&&(a=Kh(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&Acb(this._boundaryRect,b.top,b.left),this._pickupPositionOnPage.x+=b.left,this._pickupPositionOnPage.y+=b.top,this._dropContainer||(this._activeTransform.x-=b.left,this._activeTransform.y-=b.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y)))};
h._getViewportScrollPosition=function(){var a;return((a=this._parentPositions.positions.get(this._document))==null?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};h._getShadowRoot=function(){this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=sra(this._rootElement));return this._cachedShadowRoot};
h._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return c==="parent"?a:c==="global"?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):Oh(c)};h._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect);return this._previewRect};
h._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};h._conditionallyInsertAnchor=function(a,b,c){if(a===this._initialContainer){var d;(d=this._anchor)==null||d.remove();this._anchor=null}else if(b===this._initialContainer&&b.hasAnchor){var e;a=(e=this._anchor)!=null?e:this._anchor=wcb(this._placeholder);a.classList.remove("cdk-drag-placeholder");a.classList.add("cdk-drag-anchor");a.style.transform="";c?c.before(a):Oh(b.element).appendChild(a)}};
da.Object.defineProperties(bud.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 $r(b,a)}))}}});var fud=function(a,b){this._document=a;this._dragDropRegistry=b;this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};this._relatedNodes=[]};h=fud.prototype;h.start=function(a){var b=this._element.childNodes;this._relatedNodes=[];for(var c=0;c<b.length;c++){var d=b[c];this._relatedNodes.push([d,d.nextSibling])}this.withItems(a)};
h.sort=function(a,b,c,d){var e=this._getItemIndexFromPointerPosition(a,b,c),f=this._previousSwap;if(e===-1||this._activeItems[e]===a)return null;var g=this._activeItems[e];if(f.drag===g&&f.overlaps&&f.deltaX===d.x&&f.deltaY===d.y)return null;var k=this.getItemIndex(a),l=a.getPlaceholderElement();a=g.getRootElement();e>k?a.after(l):a.before(l);as(this._activeItems,k,e);b=this._getRootNode().elementFromPoint(b,c);f.deltaX=d.x;f.deltaY=d.y;f.drag=g;f.overlaps=a===b||a.contains(b);return{previousIndex:k,
currentIndex:e}};h.enter=function(a,b,c,d){var e=this._activeItems.indexOf(a);e>-1&&this._activeItems.splice(e,1);d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;d===-1&&(d=this._getClosestItemIndexToPointer(a,b,c));(b=this._activeItems[d])&&!this._dragDropRegistry.isDragging(b)?(this._activeItems.splice(d,0,a),b.getRootElement().before(a.getPlaceholderElement())):(this._activeItems.push(a),this._element.appendChild(a.getPlaceholderElement()))};
h.withItems=function(a){this._activeItems=a.slice()};h.withSortPredicate=function(a){this._sortPredicate=a};h.reset=function(){for(var a=this._element,b=this._previousSwap,c=this._relatedNodes.length-1;c>-1;c--){var d=m(this._relatedNodes[c]),e=d.next().value;d=d.next().value;e.parentNode===a&&e.nextSibling!==d&&(d===null?a.appendChild(e):d.parentNode===a&&a.insertBefore(e,d))}this._relatedNodes=[];this._activeItems=[];b.drag=null;b.deltaX=b.deltaY=0;b.overlaps=!1};h.getActiveItemsSnapshot=function(){return this._activeItems};
h.getItemIndex=function(a){return this._activeItems.indexOf(a)};h.getItemAtIndex=function(a){return this._activeItems[a]||null};h.updateOnScroll=function(){var a=this;this._activeItems.forEach(function(b){a._dragDropRegistry.isDragging(b)&&b._sortFromLastPointerPosition()})};h.withElementContainer=function(a){a!==this._element&&(this._element=a,this._rootNode=void 0)};
h._getItemIndexFromPointerPosition=function(a,b,c){var d=this._getRootNode().elementFromPoint(Math.floor(b),Math.floor(c));b=d?this._activeItems.findIndex(function(e){e=e.getRootElement();return d===e||e.contains(d)}):-1;return b!==-1&&this._sortPredicate(b,a)?b:-1};h._getRootNode=function(){this._rootNode||(this._rootNode=sra(this._element)||this._document);return this._rootNode};
h._getClosestItemIndexToPointer=function(a,b,c){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;for(var d=Infinity,e=-1,f=0;f<this._activeItems.length;f++){var g=this._activeItems[f];g!==a&&(g=g.getRootElement().getBoundingClientRect(),g=Math.hypot(b-g.x,c-g.y),g<d&&(d=g,e=f))}return e};var gud=function(a){this._dragDropRegistry=a;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};h=gud.prototype;h.start=function(a){this.withItems(a)};
h.sort=function(a,b,c,d){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(f===-1&&e.length>0)return null;var g=this.orientation==="horizontal",k=e.findIndex(function(J){return J.drag===a}),l=e[f],r=l.clientRect,w=k>f?1:-1,x=this._getItemOffsetPx(e[k].clientRect,r,w),C=this._getSiblingOffsetPx(k,e,w),H=e.slice();as(e,k,f);e.forEach(function(J,O){if(H[O]!==J){var R=J.drag===a;O=R?x:C;R=R?a.getPlaceholderElement():J.drag.getRootElement();J.offset+=O;var V=Math.round(1/J.drag.scale*
J.offset);g?(R.style.transform=Gcb("translate3d("+V+"px, 0, 0)",J.initialTransform),Acb(J.clientRect,0,O)):(R.style.transform=Gcb("translate3d(0, "+V+"px, 0)",J.initialTransform),Acb(J.clientRect,O,0))}});this._previousSwap.overlaps=zcb(r,b,c);this._previousSwap.drag=l.drag;this._previousSwap.delta=g?d.x:d.y;return{previousIndex:k,currentIndex:f}};
h.enter=function(a,b,c,d){d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;var e=this._activeDraggables,f=e.indexOf(a),g=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(d==null||d===-1||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);f>-1&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(g,b),e.splice(d,0,a)):(this._element.appendChild(g),e.push(a));g.style.transform="";this._cacheItemPositions()};
h.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};h.withSortPredicate=function(a){this._sortPredicate=a};
h.reset=function(){var a=this,b;(b=this._activeDraggables)==null||b.forEach(function(c){var d=c.getRootElement();if(d){var e,f=(e=a._itemPositions.find(function(g){return g.drag===c}))==null?void 0:e.initialTransform;d.style.transform=f||""}});this._itemPositions=[];this._activeDraggables=[];this._previousSwap.drag=null;this._previousSwap.delta=0;this._previousSwap.overlaps=!1};h.getActiveItemsSnapshot=function(){return this._activeDraggables};
h.getItemIndex=function(a){return this._getVisualItemPositions().findIndex(function(b){return b.drag===a})};h.getItemAtIndex=function(a){var b;return((b=this._getVisualItemPositions()[a])==null?void 0:b.drag)||null};h.updateOnScroll=function(a,b){var c=this;this._itemPositions.forEach(function(d){Acb(d.clientRect,a,b)});this._itemPositions.forEach(function(d){d=d.drag;c._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};h.withElementContainer=function(a){this._element=a};
h._cacheItemPositions=function(){var a=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(function(b){var c=cud(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:ycb(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};h._getVisualItemPositions=function(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions};
h._getItemOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=d?b.left-a.left:b.top-a.top;c===-1&&(e+=d?b.width-a.width:b.height-a.height);return e};h._getSiblingOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=b[a].clientRect;a=b[a+c*-1];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=c===-1?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
h._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d=this.orientation==="horizontal";if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
h._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f=this.orientation==="horizontal",g=this._itemPositions.findIndex(function(k){var l=k.drag;k=k.clientRect;if(l===a)return!1;if(d){var r=f?d.x:d.y;if(l===e._previousSwap.drag&&e._previousSwap.overlaps&&r===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return g!==-1&&this._sortPredicate(g,a)?g:-1};var iud=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.sortingDisabled=this.disabled=!1;this.lockAxis=null;this.autoScrollDisabled=!1;this.autoScrollStep=2;this.hasAnchor=!1;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new sf;this.entered=new sf;this.exited=new sf;this.dropped=new sf;this.sorted=new sf;this.receivingStarted=new sf;this.receivingStopped=new sf;this._isDragging=!1;this._draggables=
[];this._siblings=[];this._activeSiblings=new Set;this._viewportScrollSubscription=Rd.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new sf;this._cachedShadowRoot=null;this._scrollableElements=[];this._direction="ltr";this._startScrollInterval=function(){f._stopScrolling();Zha(0,Bzc).pipe(Bf(f._stopScrollTimers)).subscribe(function(){var g=f._scrollNode,k=f.autoScrollStep;f._verticalScrollDirection===1?g.scrollBy(0,-k):f._verticalScrollDirection===2&&
g.scrollBy(0,k);f._horizontalScrollDirection===1?g.scrollBy(-k,0):f._horizontalScrollDirection===2&&g.scrollBy(k,0)})};a=this.element=Oh(a);this._document=c;hud(this,"vertical").withElementContainer(a);Ktd(b,this);this._parentPositions=new Ttd(c)};h=iud.prototype;
h.dispose=function(){this._stopScrolling();this._stopScrollTimers.complete();this._viewportScrollSubscription.unsubscribe();this.beforeStarted.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this.sorted.complete();this.receivingStarted.complete();this.receivingStopped.complete();this._activeSiblings.clear();this._scrollNode=null;this._parentPositions.clear();this._dragDropRegistry._dropInstances.delete(this)};h.isDragging=function(){return this._isDragging};
h.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};h.enter=function(a,b,c,d){this._draggingStarted();d==null&&this.sortingDisabled&&(d=this._draggables.indexOf(a));this._sortStrategy.enter(a,b,c,d);this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})};h.exit=function(a){this._reset();this.exited.next({item:a,container:this})};
h.drop=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:g,event:k})};h.withItems=function(a){var b=this,c=this._draggables;this._draggables=a;a.forEach(function(d){return d._withDropContainer(b)});this.isDragging()&&(c.filter(function(d){return d.isDragging()}).every(function(d){return a.indexOf(d)===-1})?this._reset():this._sortStrategy.withItems(this._draggables))};
h.withDirection=function(a){this._direction=a;this._sortStrategy instanceof gud&&(this._sortStrategy.direction=a);return this};h.connectedTo=function(a){this._siblings=a.slice();return this};
var hud=function(a,b){if(b==="mixed")a._sortStrategy=new fud(a._document,a._dragDropRegistry);else{var c=new gud(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},jud=function(a,b){var c=a._container;a._scrollableElements=b.indexOf(c)===-1?[c].concat(q(b)):b.slice()};h=iud.prototype;
h.withElementContainer=function(a){if(a!==this._container){var b=this._scrollableElements.indexOf(this._container),c=this._scrollableElements.indexOf(a);b>-1&&this._scrollableElements.splice(b,1);c>-1&&this._scrollableElements.splice(c,1);this._sortStrategy&&this._sortStrategy.withElementContainer(a);this._cachedShadowRoot=null;this._scrollableElements.unshift(a);this._container=a}};h.getItemIndex=function(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)};
h.getItemAtIndex=function(a){return this._isDragging?this._sortStrategy.getItemAtIndex(a):this._draggables[a]||null};h._sortItem=function(a,b,c,d){!this.sortingDisabled&&this._domRect&&Bcb(this._domRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
h._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(l,r){if(r!==c._document&&l.clientRect&&!k&&Bcb(l.clientRect,a,b)){var w=l.clientRect;l=Ocb(w,b);w=Pcb(w,a);var x=0,C=0;if(l){var H=r.scrollTop;l===1?H>0&&(x=1):r.scrollHeight-H>r.clientHeight&&(x=2)}w&&(l=r.scrollLeft,c._direction==="rtl"?w===2?l<0&&(C=2):r.scrollWidth+l>r.clientWidth&&(C=1):w===1?l>0&&(C=1):r.scrollWidth-l>r.clientWidth&&(C=2));l=m([x,C]);
d=l.next().value;e=l.next().value;if(d||e)k=r}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),g=f.width;f=f.height;g={width:g,height:f,top:0,right:g,bottom:f,left:0};d=Ocb(g,b);e=Pcb(g,a);var k=window}!k||d===this._verticalScrollDirection&&e===this._horizontalScrollDirection&&k===this._scrollNode||(this._verticalScrollDirection=d,this._horizontalScrollDirection=e,this._scrollNode=k,(d||e)&&k?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}};
h._stopScrolling=function(){this._stopScrollTimers.next()};h._draggingStarted=function(){var a=this._container.style;this.beforeStarted.next();this._isDragging=!0;this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"";a.scrollSnapType=a.msScrollSnapType="none";this._sortStrategy.start(this._draggables);this._cacheParentPositions();this._viewportScrollSubscription.unsubscribe();this._listenToScrollEvents()};
h._cacheParentPositions=function(){this._parentPositions.cache(this._scrollableElements);this._domRect=this._parentPositions.positions.get(this._container).clientRect};h._reset=function(){var a=this;this._isDragging=!1;var b=this._container.style;b.scrollSnapType=b.msScrollSnapType=this._initialScrollSnap;this._siblings.forEach(function(c){return c._stopReceiving(a)});this._sortStrategy.reset();this._stopScrolling();this._viewportScrollSubscription.unsubscribe();this._parentPositions.clear()};
h._isOverContainer=function(a,b){return this._domRect!=null&&zcb(this._domRect,a,b)};h._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};h._canReceive=function(a,b,c){return this._domRect&&zcb(this._domRect,b,c)&&this.enterPredicate(a,this)?(a=this._getShadowRoot().elementFromPoint(b,c))?a===this._container||this._container.contains(a):!1:!1};
h._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||c._draggables.indexOf(e)>-1})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:a,receiver:this,items:b}))};h._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe();this.receivingStopped.next({initiator:a,receiver:this})};
h._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=Utd(a._parentPositions,b))&&a._sortStrategy.updateOnScroll(b.top,b.left):a._activeSiblings.size>0&&a._cacheParentPositions()})};h._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=sra(this._container)||this._document);return this._cachedShadowRoot};
h._notifyReceivingSiblings=function(){var a=this,b=this._sortStrategy.getActiveItemsSnapshot().filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};var kud={dragStartThreshold:5,pointerDirectionChangeThreshold:5},LV=function(){this._document=p(Sh);this._ngZone=p(Rg);this._viewportRuler=p(Rh);this._dragDropRegistry=p(JV);this._renderer=p(af).createRenderer(null,null)};LV.prototype.createDrag=function(a,b){b=b===void 0?kud:b;return new bud(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)};LV.\u0275fac=function(a){return new (a||LV)};LV.\u0275prov=Fc({token:LV,factory:LV.\u0275fac,providedIn:"root"});var lud=new fd("CdkDropList"),MV=function(){var a=this;this.element=p(Jd);this.dropContainer=p(lud,{optional:!0,skipSelf:!0});this._ngZone=p(Rg);this._viewContainerRef=p(fg);this._dir=p(ci,{optional:!0});this._changeDetectorRef=p(ux);this._selfHandle=p(Std,{optional:!0,self:!0});this._parentDrag=p(Rtd,{optional:!0,skipSelf:!0});this._dragDropRegistry=p(JV);this._destroyed=new sf;this._handles=new Nj([]);this.lockAxis=null;this.scale=1;this.started=new Ui;this.released=new Ui;this.ended=new Ui;this.entered=
new Ui;this.exited=new Ui;this.dropped=new Ui;this.moved=new Vd(function(d){var e=a._dragRef.moved.pipe(A(function(f){return{source:a,pointerPosition:f.pointerPosition,event:f.event,delta:f.delta,distance:f.distance}})).subscribe(d);return function(){e.unsubscribe()}});this._injector=p(Ae);var b=this.dropContainer,c=p(Gtd,{optional:!0});this._dragRef=p(LV).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;Otd(this._dragDropRegistry,this.element.nativeElement,this);c&&this._assignDefaults(c);b&&(b.addItem(this),b._dropListRef.beforeStarted.pipe(Bf(this._destroyed)).subscribe(function(){a._dragRef.scale=a.scale}));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};h=MV.prototype;h.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};h.getRootElement=function(){return this._dragRef.getRootElement()};
h.reset=function(){this._dragRef.reset()};h.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};h.ngAfterViewInit=function(){var a=this;Ge(function(){a._updateRootElement();a._setupHandlesListener();a._dragRef.scale=a.scale;a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)},{injector:this._injector})};
h.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();this._dragRef.scale=this.scale;a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};
h.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);Ptd(this._dragDropRegistry,this.element.nativeElement);this._ngZone.runOutsideAngular(function(){a._handles.complete();a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};h._addHandle=function(a){var b=this._handles.getValue();b.push(a);this._handles.next(b)};h._removeHandle=function(a){var b=this._handles.getValue();a=b.indexOf(a);a>-1&&(b.splice(a,1),this._handles.next(b))};
h._setPreviewTemplate=function(a){this._previewTemplate=a};h._resetPreviewTemplate=function(a){a===this._previewTemplate&&(this._previewTemplate=null)};h._setPlaceholderTemplate=function(a){this._placeholderTemplate=a};h._resetPlaceholderTemplate=function(a){a===this._placeholderTemplate&&(this._placeholderTemplate=null)};
h._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=a.closest!==void 0?a.closest(this.rootElementSelector):(c=a.parentElement)==null?void 0:c.closest(this.rootElementSelector)}aud(this._dragRef,b||a)};h._getBoundaryElement=function(){var a=this.boundaryElement;return a?typeof a==="string"?this.element.nativeElement.closest(a):Oh(a):null};
h._syncInputs=function(a){var b=this;a.beforeStarted.subscribe(function(){if(!a.isDragging()){var c=b._dir,d=b.dragStartDelay,e=b._placeholderTemplate?{template:b._placeholderTemplate.templateRef,context:b._placeholderTemplate.data,viewContainer:b._viewContainerRef}:null,f=b._previewTemplate?{template:b._previewTemplate.templateRef,context:b._previewTemplate.data,matchSize:b._previewTemplate.matchSize,viewContainer:b._viewContainerRef}:null;a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.scale=b.scale;
a.dragStartDelay=typeof d==="object"&&d?d:Ph(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=eud(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(nf(1)).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){var d=Qtd(b._dragDropRegistry,c);if(d){a._parentDragRef=d._dragRef;
break}c=c.parentElement}})};
h._handleEvents=function(a){var b=this;a.started.subscribe(function(c){b.started.emit({source:b,event:c.event});b._changeDetectorRef.markForCheck()});a.released.subscribe(function(c){b.released.emit({source:b,event:c.event})});a.ended.subscribe(function(c){b.ended.emit({source:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:c.container.data,item:b,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:c.container.data,
item:b})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,isPointerOverContainer:c.isPointerOverContainer,item:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event})})};
h._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,g=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=g==null?!1:g;this.dragStartDelay=c||0;this.lockAxis=b||null;d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
h._setupHandlesListener=function(){var a=this;this._handles.pipe(Cf(function(b){b=b.map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);dud(a._dragRef,b)}),Af(function(b){return ve.apply(null,q(b.map(function(c){return c._stateChanges.pipe(zf(c))})))}),Bf(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),$r(d,!0)):c._disabledHandles.has(d)&&
(c._disabledHandles.delete(d),$r(d,c.disabled))})};da.Object.defineProperties(MV.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}}});MV.\u0275fac=function(a){return new (a||MV)};
MV.\u0275dir=df({type:MV,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&wg("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition",
"freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",$g],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ah]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Gg([{provide:Rtd,
useExisting:MV}]),bx]});var mud=new fd("CdkDropListGroup");var NV=function(){var a=this;this.element=p(Jd);this._changeDetectorRef=p(ux);this._scrollDispatcher=p(Th);this._dir=p(ci,{optional:!0});this._group=p(mud,{optional:!0,skipSelf:!0});this._destroyed=new sf;this.connectedTo=[];this.id=p(bi).getId("cdk-drop-list-");this.lockAxis=null;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Ui;this.entered=new Ui;this.exited=new Ui;this.sorted=new Ui;this._unsortedItems=new Set;var b=p(LV),c=p(Gtd,{optional:!0});
this._dropListRef=new iud(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);NV._dropLists.push(this);this._group&&this._group._items.add(this)};
NV.prototype.addItem=function(a){this._unsortedItems.add(a);a._dragRef._withDropContainer(this._dropListRef);this._dropListRef.isDragging()&&this._syncItemsWithRef(nud(this).map(function(b){return b._dragRef}))};NV.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 nud=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return cud(b._dragRef).compareDocumentPosition(cud(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};h=NV.prototype;h.ngOnDestroy=function(){var a=NV._dropLists.indexOf(this);a>-1&&NV._dropLists.splice(a,1);this._group&&this._group._items.delete(this);this._latestSortedRefs=void 0;this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
h._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(zf(this._dir.value),Bf(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=Lh(b.connectedTo).map(function(e){return typeof e==="string"?NV._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=eDc(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
jud(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=Ph(b.autoScrollStep,2);a.hasAnchor=b.hasAnchor;hud(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
h._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef(nud(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()});ve(a.receivingStarted,a.receivingStopped).subscribe(function(){return b._changeDetectorRef.markForCheck()})};
h._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=c==null?!1:c;this.sortingDisabled=d==null?!1:d;this.autoScrollDisabled=e==null?!1:e;this.orientation=a||"vertical";this.lockAxis=b||null};h._syncItemsWithRef=function(a){this._latestSortedRefs=a;this._dropListRef.withItems(a)};
da.Object.defineProperties(NV.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}}});NV._dropLists=[];NV.\u0275fac=function(a){return new (a||NV)};
NV.\u0275dir=df({type:NV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(Kf("id",b.id),wg("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",b._dropListRef._activeSiblings.size>0))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis",
"lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",$g],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",$g],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",$g],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor",
"hasAnchor",$g]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Gg([{provide:mud,useValue:void 0},{provide:lud,useExisting:NV}])]});new fd("CdkDragPlaceholder");new fd("CdkDragPreview");var OV=function(){};OV.\u0275fac=function(a){return new (a||OV)};OV.\u0275mod=cf({type:OV});OV.\u0275inj=Hc({providers:[LV],imports:[wz]});var oud=["addLink"],pud=["showFewer"],qud=["showMore"],rud=["editButton"],sud=["removeButton"],tud=[[["",8,"value-action"]]],Scb=function(a,b){return{item:a,$index:b}},ldb=function(a){return{q:a}},uud=[Object.assign({},Bdb("start","bottom"),Cdb("start","top"),{offsetY:8}),Object.assign({},Bdb("center","bottom"),Cdb("center","top"),{offsetY:8}),Object.assign({},Bdb("end","bottom"),Cdb("end","top"),{offsetY:8}),Object.assign({},Bdb("start","top"),Cdb("start","bottom"),{offsetY:-8}),Object.assign({},
Bdb("end","top"),Cdb("end","bottom"),{offsetY:-8})],PV=function(){Z.apply(this,arguments);var a=this;this.cdr=p(YP,{self:!0});this.dateFormatter=p(cS);this.analytics=p(aQ);this.liveAnnouncer=p(Yy);this.principalTypesFridge=p(CQ);this.issuePermissionService=p(WQ);this.activeSession=p(qu);this.customRepeatedEnumDialogService=p(AV);this.OVERLAY_POSITION_LIST=uud;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.providedValues$=
new wf(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 XP;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 XP;this.enableTeamAnnotations=
this.activeSession.isInternalSession();this.environmentType=this.activeSession.getEnvironmentType();this.teamId=this.invalidMessage="";this.isString=sRa;this.groups$=this.providedValues$.pipe(Af(function(b){return a.extractGroups(b)}),zf(new Set));this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.focusOnTitle=!1};Y(PV,Z);PV.\u0275dir=Z.\u0275dir;
PV.prototype.ngOnChanges=function(a){if(a.values){var b;this.providedValues$.next((b=this.values)!=null?b:[])}a.showInternalOnlyFieldBadge&&(this.showInternalOnlyFieldBadge=a.showInternalOnlyFieldBadge.currentValue)};PV.prototype.ngOnInit=function(){Zcb(this)};
var Zcb=function(a){a.sortedEnumChoices=[].concat(q(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})},$cb=function(a){var b=a.values||[],c=[].concat(q(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})},bdb=function(a){var b;return y(function(c){if(c.nextAddress==
1)return a.customRepeatedEnumDialogService.isOpen()?c.return():z(c,a.customRepeatedEnumDialogService.open({customFieldTitle:a.title,allowedValues:vud(a),selectedValues:a.values}),2);(b=c.yieldResult)&&wud(a,Array.from(b));ce(c)})},bs=function(a){return a.type==="REPEATED_ENUM"&&a.sortedEnumChoices.length>1E3},vud=function(a){return a.sortedEnumChoices.map(function(b){return b.displayText})},wud=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);tdb(a)&&cs(a,!0)};h=PV.prototype;h.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
h.removeItem=function(a){var b=this;if(!this.listFieldDisabled){var c=this.values.splice(a,1);this.valuesChange.emit({values:this.values,removed:c})}this.schedule(function(){var d;if((d=b.values)==null?0:d.length){d=Math.min(a,b.values.length-1);var e,f,g;(e=b.removeButtons)==null||(f=e.get(d))==null||(g=f.nativeElement)==null||g.focus()}else{var k,l;(k=b.addLinkEl)==null||(l=k.nativeElement)==null||l.focus()}})};
h.addItems=function(a){var b=[];this.values=this.values||[];if(a)if(this.type==="REPEATED_DATE"){var c=O1a(a);this.preventDuplicates&&this.values.find(function(f){return mm(f,c)})||b.push(c)}else if(this.type==="REPEATED_NUMERIC"&&tRa(this.values)&&tRa(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(qm(this.values)&&qm(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=m(a.split(/[,; ]/));for(var d=
a.next();!d.done;d=a.next()){var e=d=d.value;this.type==="CODE_CHANGES"&&(Xq(d)||(e=a2a(d)));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&this.type!=="REPEATED_DATE"||this.closeAddPopup(!0);b.length!==0&&(this.values=[].concat(q(this.values),q(b)),this.valuesChange.emit({values:this.values,added:b}))};h.onDrop=function(a){as(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
h.closeAddPopup=function(a){var b,c=m((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=m((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};
var cs=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()})},tdb=function(a){return!!a.values&&a.values.length>a.defaultLineCount+1},Ucb=function(a){return a.values&&a.type==="REPEATED_DATE"?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Tq(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 sRa(b)?b:rRa(b)?""+b:a.dateFormatter.formatUserCalendar(Tq(b))})};h=PV.prototype;
h.textPopupSubmit=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return c.inputValidator?z(g,c.inputValidator(a.value.input),3):g.jumpTo(2);g.nextAddress!=2&&(c.invalidMessage=g.yieldResult,c.cdr.markForCheck());if(!a.valid||c.invalidMessage)return g.return();d=a.value.input;(e=a)==null||e.reset();(f=b.querySelector("input"))==null||f.focus();c.addItems(d);ce(g)})};h.trackClick=function(a){this.analytics.trackEvent("linkField","click",a)};h.getUser=function(a){return this.userMap.get(a)};
h.schedule=function(a){this.subscriptions.add(se.schedule(a))};h.getAriaLabel=function(){if(!this.values||this.values.length===0)return this.title+" is empty";var a=this.title+" has "+this.values.length+" ";switch(this.type){case "REPEATED_DATE":a+="date";break;default:a+="item"}this.values.length>1&&(a+="s");return a};var vdb=function(a,b){return b.displayText+", "+(a.enumPendingValues.has(b.value)?"selected":"not selected")};
PV.prototype.extractGroups=function(a){if(!this.isUser)return ee(new Set([]));var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(A(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};PV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(PV)))(b||PV)}}();
PV.\u0275cmp=D({type:PV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(hg(oud,5),hg(pud,5),hg(qud,5),hg(rud,5,Jd),hg(sud,5),hg(aH,5),hg(aB,5));if(a&2){var c;lg(c=mg())&&(b.addLinkEl=c.first);lg(c=mg())&&(b.showFewer=c.first);lg(c=mg())&&(b.showMore=c.first);lg(c=mg())&&(b.editButton=c.first);lg(c=mg())&&(b.removeButtons=c);lg(c=mg())&&(b.menuTriggers=c);lg(c=mg())&&(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:[Gg([YP]),Gf,bx],ngContentSelectors:[".value-action"],decls:23,vars:28,consts:[["addLink",""],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["textPopup",""],["datePopup",""],["editButton",""],["removeButton",""],["showFewer",""],["showMore",""],["textPopupForm","ngForm","formEl",""],["tabindex",
"0",1,"bv2-issue-metadata-field-inner",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],[1,"bv2-editable-title",3,"focusin","focusout","matTooltip","matTooltipPosition","matTooltipDisabled"],["svgIcon","shield_person_24px","matTooltip","Visible to internal only","aria-label","Visible to internal only",1,"icon-xs","internal-only-badge"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDropped","cdkDropListDisabled"],[3,"isExpanded","iconName","hasCompactTitleBar","title"],[1,"bv2-field-user-action-footer"],
["matMenuContent",""],["cdkDrag",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"no-value"],["type","button","mat-button","","dialogLabel","Add a new item to the list","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link",
"tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"matMenuTriggerFor"],["type","button","mat-button","","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list",
"tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuOpened","menuClosed","matMenuTriggerFor"],["type","button","mat-button","","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"click"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"beforeOpened","xapInlineDialogClick","dialogLabel","overlayPositions",
"matTooltip"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[1,"overflow-ellipsis",3,"matTooltip"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"disabled","matTooltip"],[1,"float-clear"],[3,"codeChange"],["target","_blank",1,"bv2-metadata-link",3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"click","href"],["routerLink","/issues",1,"subtle-link",3,"click","queryParams"],[3,"maxWidth",
"modelValue","disabled"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["mat-menu-item",
"","type","button","role","menuitemcheckbox",3,"disabled","b-menu-item-checked"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"click","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],[3,"ngSubmit"],["name","input","ngModel","","required","","step","any","aria-expanded","true","autofocus","",3,"type"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button",
"","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"],[3,"dateChange","cancelClicked","required","renderPanel"]],template:function(a,b){if(a&1){var c=t();cg(tud);K(0,"div")(1,"div",11)(2,"div",12);N("focusin",function(){u(c);return v(b.focusOnTitle=!0)})("focusout",function(){u(c);return v(b.focusOnTitle=!1)});F(3,Qcb,2,1,"label");F(4,Rcb,1,0,"mat-icon",13);L();K(5,"div",14);N("cdkDropListDropped",function(d){u(c);return v(b.onDrop(d))});F(6,Vcb,4,5,"collapsible-panel",
15)(7,Ycb,4,2);K(8,"div",16,0);F(10,gdb,3,1);dg(11);L()()();E(12,qdb,1,1,"ng-template",null,1,Mg)(14,udb,2,2,"ng-template",null,2,Mg);K(16,"mat-menu",null,3);E(18,xdb,2,0,"ng-template",17);L();E(19,zdb,12,9,"ng-template",null,4,Mg)(21,Adb,1,2,"ng-template",null,5,Mg);L()}a&2&&(wg("bv2-issue-metadata-list-field",!b.showInternalOnlyFieldBadge)("bv2-issue-metadata-field",!b.showInternalOnlyFieldBadge)("internal-only",b.showInternalOnlyFieldBadge)("empty-list-field-indication",b.isRequired&&!(b.values==
null?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(),wg("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",bs(b)),Kf("aria-label",b.getAriaLabel()),B(),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",!bs(b)),B(),G(b.title?3:-1),B(),G(b.showInternalOnlyFieldBadge?4:-1),B(),wg("draggable",(b.values==null?null:b.values.length)&&b.isDefaultOrAllowedValues),
I("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(),G(b.isCollapsible||bs(b)?6:7),B(4),G(b.readonly?-1:10))},dependencies:[Kx,Dy,$E,CD,kV,hE,yj,$D,aE,sE,gE,eE,gB,cB,oK,iA,UU,NV,MV,YA,XA,aB,OJ,YG,WG,XG,aH,FV,DV,wV],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.list-field-content.draggable[_ngcontent-%COMP%]{cursor:grab}.list-field-content.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}.internal-only[_ngcontent-%COMP%]{background-color:#f4f5f6;background-color:var(--tonal-fill-grey);margin:5px;border-radius:4px;padding:5px 15px}.internal-only[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}[_nghost-%COMP%]     .bv2-field-user-action-footer span{width:max-content;display:flex}[_nghost-%COMP%]     b-icon.group-icon{width:12px;margin-top:1px}[_nghost-%COMP%]     b-icon.group-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon.group-icon mat-icon svg{width:12px;height:16px}[_nghost-%COMP%]     b-icon.disabled-icon mat-icon svg{color:#bdc1c6;color:var(--text-disabled)}"]});
var xud={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"},QV=function(){};QV.\u0275fac=function(a){return new (a||QV)};QV.\u0275mod=cf({type:QV});QV.\u0275inj=Hc({imports:[RO,DU,BE,yV,oV,xE,iB,pK,fU,CV,VU,iV,OV,HV,IV,PJ,GV,IV,EV,ztd,Ctd]});var yud=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var zud=Wi({opacity:"0"}),Aud=we(function(a){return a}),Bud=Ud(pf(),Aud,mf()),Cud=new fd("xap-bubble UX style"),RV=function(a){var b=this;this.activity=new sf;this.openedSubject=new Nj(!1);this.destroy=new wf;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Ui;this.onOpened=new Ui;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Yka(function(){return b.activity.pipe(lf(b.hoverDelayMs))}));a=Bf(this.destroy);this.opened.pipe(Bud,
a).subscribe(this.onOpened);this.openedSubject.pipe(Aud,Ela(function(){return b.opened.pipe(we(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};RV.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};RV.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};RV.\u0275fac=function(a){return new (a||RV)(Ye(Cud,8))};
RV.\u0275cmp=D({type:RV,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();cg();K(0,"span",1,0);N("mouseenter",function(){u(c);return v(b.toggle(!0))})("mouseleave",function(){u(c);return v(b.toggle(!1))})("mousemove",function(){u(c);b.activity.next();return v()});dg(2);L();E(3,Gdb,2,3,"ng-template",2);T(4,"async")}a&
2&&(a=qg(1),I("ngClass",b.bubbleStyle),B(3),I("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",U(4,5,b.opened)))},dependencies:[Dx,Kx,Pz,Oz,Lx],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:[Ata("fade",[Zi(":enter",[zud,Vi("225ms")]),Zi(":leave",[Vi("195ms",zud)])])]}});var SV=function(){this.activeSession=p(qu);this.documentationLinks=p(YR);this.labelOnlyMode=this.compactMode=!1;this.chipText=this.bubbleText=this.chipClass=""};
SV.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=""}};SV.\u0275fac=function(a){return new (a||SV)};
SV.\u0275cmp=D({type:SV,selectors:[["b-component-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},standalone:!1,features:[bx],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,Kdb,2,1);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?b.accessLevel===
"EXTERNAL_PARTNER"||b.accessLevel==="EXTERNAL_PUBLIC":SN(b.activeSession)?b.accessLevel==="EXTERNAL_PUBLIC":!1;G(a?0:-1)}},dependencies:[RV],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 Dud=ps.listIssues.makeHref,Eud=ps.createIssue.makeHref,TV=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(MO);this.activeSession=p(qu);this.providedComponentId$=new wf(1);this.component$=this.providedComponentId$.pipe(Af(function(b){return a.componentFridge.watch(b)}),xf({refCount:!0,bufferSize:1}));this.init=new wf(1);this.isAnonymous=this.activeSession.isAnonymous()};Y(TV,Z);TV.\u0275dir=Z.\u0275dir;
TV.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=Dud({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=Eud()+"?component="+this.componentId;this.viewComponentUrl=ps.editComponent.makeHref(this.componentId);this.component$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()})};TV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TV)))(b||TV)}}();
TV.\u0275cmp=D({type:TV,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},standalone:!1,features:[Gf],decls:4,vars:3,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[3,"accessLevel","labelOnlyMode"],["tabindex","0",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,Mdb,15,8),T(3,"async"),L()());if(a&2){var c;B(2);G((c=U(3,1,b.component$))?2:-1,c)}},dependencies:[SV,
Lx],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var UV=function(){this.trackerHelpers=p(fS);this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};da.Object.defineProperties(UV.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=fu(this.trackerHelpers,a);this.componentPath=this.componentPathsLinkTo==="settings"?Pdb(a,D5a):Pdb(a)}}});UV.\u0275fac=function(a){return new (a||UV)};
UV.\u0275cmp=D({type:UV,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&&(K(0,"div",1)(1,"p",2),Q(2),L(),K(3,"span",3),Of(4,Ndb,6,4,"span",4,Nf),F(6,Odb,2,0,"span",5),L()());a&2&&(B(2),S("",b.label,":"),B(2),Pf(b.componentPath),B(2),G(b.isArchived?6:-1))},dependencies:[QO,DK,LK,TV],encapsulation:2});var VV=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(MO);this.trackerHelpers=p(fS);this.recentIssuesInComponent=xr;this.componentId$=new wf(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(we(function(b){return String(b.idOrKey)===a.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(we(Qm),Af(function(b){return a.componentFridge.watch(b)}),we(Qm));this.component$=ve(this.error$,this.rawComponent$).pipe(A(function(b){return b.componentId&&b.name?
b:{componentId:b.idOrKey,name:"(unknown)"}}));this.isArchived$=this.component$.pipe(A(function(b){return b.archived}));this.componentPath$=this.component$.pipe(A(function(b){b=fu(a.trackerHelpers,b.componentPathInfo);return Pdb(b)}));this.init=new wf(1);this.routes$=this.componentId$.pipe(A(function(b){return{createIssue:C5a(b),componentSettings:D5a(b),recentIssues:xr(b)}}))};Y(VV,Z);VV.\u0275dir=Z.\u0275dir;VV.prototype.ngOnInit=function(){var a=this;this.component$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.init.next()})};
da.Object.defineProperties(VV.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a;this.componentId$.next(a)}}});VV.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(VV)))(b||VV)}}();
VV.\u0275cmp=D({type:VV,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},standalone:!1,features:[Gf],decls:7,vars:7,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"component-path","squared","b-chip","s","margin-s-bottom"],[1,"flex-kids-y","padded-s-top","actions"],[3,"routerLinkObj"],[1,"flex-kids-x"],["svgIcon","folder",1,"icon-xs"],[1,"type-s"],[1,"id-text",
"flex-kids-x","gap-s","align-items-center"],[3,"accessLevel","labelOnlyMode"],["aria-label","View recent open issues","mat-button","",1,"primary",3,"routerLinkObj"],["aria-label","View component settings","mat-button","",1,"primary",3,"routerLinkObj"],["aria-label","Create issue in this component","mat-button","",1,"primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,Tdb,6,5,"div",2),F(3,Udb,10,5),T(4,"async"),F(5,Vdb,7,3,"div",3),T(6,"async"),L()());if(a&2){var c,
d;B(2);G(b.hidePath?-1:2);B();G((c=U(4,3,b.component$))?3:-1,c);B(2);G((d=U(6,5,b.routes$))?5:-1,d)}},dependencies:[Dy,QO,gB,cB,SV,Lx],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 Wdb={QA:"124156",NIGHTLY:"190923",PROD:"190923"};new Promise(function(){});var WV=function(){var a=p(WO),b=p(wP),c=p(MO);Z.call(this);var d=this;this.componentApi=p(KO);this.appEvents=p(PO);this.activeSession=p(qu);this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(e){d.components.removeAll();c.invalidate(e)}));this.componentGetter=b.adapt(function(e){var f=Ma(e);Bba(f);return d.componentApi.query({id:f}).then(function(g){var k={};g=m(g);
for(var l=g.next();!l.done;l=g.next())(l=l.value)&&(k[l.componentId]=l);return e.map(function(r){return k[r]||null})})})};Y(WV,Z);WV.\u0275dir=Z.\u0275dir;h=WV.prototype;h.get=function(a){var b=this.components.get(a);if(b!=null)return b;b=this.componentGetter.get(a).then(function(c){return c!=null?c:Promise.reject(new Bdd("Could not load details for component "+a))});return this.components.put(a,b)};
h.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};h.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};h.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
h.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};h.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};h.getChildren=function(a,b){return this.componentApi.getChildren(a,b===void 0?!1:b)};h.getDescendants=function(a){return this.componentApi.getDescendants(a)};
h.getUncached=function(a){this.components.remove(a);return this.componentApi.fetchComponent(a)};h.search=function(a,b){var c={query:a};if(b===void 0?0:b)c.includearchived=!0;return Fud(this,a,this.componentApi.query(c))};
var Fud=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=Xdb(a.activeSession.getEnvironmentType());if(d)return ms({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=m(e.rest);for(var g=e.next();!g.done;g=e.next())g=g.value,g.componentId!==d&&f.push(g);return f})}return c};
WV.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(f)});Bba(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var g={};f=m(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(g[k.componentId]=k);return g});c=m(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$430:void 0},d=c.next())e.id$jscomp$430=d.value,this.components.put(e.id$jscomp$430,a.then(function(f){return function(g){return g[f.id$jscomp$430]?g[f.id$jscomp$430]:Promise.reject(new Bdd("Could not load details for component "+
f.id$jscomp$430))}}(e)))}};WV.\u0275fac=function(a){return new (a||WV)};WV.\u0275prov=Fc({token:WV,factory:WV.\u0275fac,providedIn:"root"});var Gud=kw(["https://www.gstatic.com/buganizer/gfx/","/",""]),XV=kw(["https://www.gstatic.com/buganizer/img/v2/",""]),Hud=Fh(Gud,"2025-11-04-8066d098","all-icons.svg"),Iud=Fh(XV,"empty_blocker_light.png"),Jud=Fh(XV,"empty_blocker_dark.png"),Kud=Fh(XV,"empty_child_light.png"),Lud=Fh(XV,"empty_child_dark.png"),Mud=Fh(XV,"robot_sleeping.png"),Nud=Fh(XV,"tea_light.png"),Oud=Fh(XV,"tea_dark.png"),Pud=Fh(XV,"space_empty_state.png"),Qud=Fh(XV,"eg_work_area.png"),Rud=Fh(XV,"empty_triage.png");Fh(XV,"gerrit_logo.svg");var YV=function(){this.ICON_URL=Hud;this.LOGO_LIGHT="https://www.gstatic.com/buganizer/img/v3/logo_light.svg";this.LOGO_PURPLE="https://www.gstatic.com/buganizer/img/v2/logo_purple.svg";this.EMPTY_BLOCKER_LIGHT=Iud;this.EMPTY_BLOCKER_DARK=Jud;this.EMPTY_CHILD_LIGHT=Kud;this.EMPTY_CHILD_DARK=Lud;this.ROBOT_SLEEPING=Mud;this.TEA_LIGHT=Nud;this.TEA_DARK=Oud;this.SPACE_EMPTY_STATE=Pud;this.WORK_AREA_EXAMPLE_ILLUSTRATION=Qud;this.EMPTY_TRIAGE=Rud};YV.\u0275fac=function(a){return new (a||YV)};
YV.\u0275prov=Fc({token:YV,factory:YV.\u0275fac,providedIn:"root"});var ZV=function(){this.activeSession=p(qu);this.documentationLinks=p(YR);this.trackerHelpers=p(fS);this.imageUrls=p(YV);this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
ZV.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=this.isGlobalBuganizer?hnd(this.trackerHelpers,""):dt(this.trackerHelpers,"",this.tracker);this.name=this.getName();this.extendedName=this.isGlobalBuganizer?this.name:"the "+this.name+" Tracker";if(this.isGlobalBuganizer)a=this.imageUrls.LOGO_LIGHT;else{var b,c;if((b=this.tracker)==null?0:(c=b.branding)==null?0:c.logoUrl){var d,e,f;a=(f=(d=this.tracker)==null?void 0:(e=d.branding)==null?void 0:e.logoUrl)!=null?
f:""}else a="https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}this.logoLight=a;if(this.isGlobalBuganizer)d="https://www.gstatic.com/buganizer/img/v3/logo_dark.svg";else{var g;d=(g=this.logoLight)!=null?g:""}this.logoDark=d}};ZV.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:""};ZV.\u0275fac=function(a){return new (a||ZV)};
ZV.\u0275cmp=D({type:ZV,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},standalone:!1,features:[bx],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,aeb,15,12);a&2&&G(b.tracker||b.isGlobalBuganizer?0:-1)},dependencies:[DK,LK,gB,cB],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 $V=function(){var a=this;this.activeSession=p(qu);this.trackerFridge=p(RQ);this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new Nj(void 0);this.tracker$=this.trackerId$.pipe(Af(function(b){return b?a.trackerFridge.watch(b).pipe(jf(function(){return ee(void 0)})):ee(void 0)}));this.isCurrentTracker$=this.trackerId$.pipe(A(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return d?d===b:!b}))};$V.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId)};
da.Object.defineProperties($V.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return!this.trackerId$.value}}});$V.\u0275fac=function(a){return new (a||$V)};
$V.\u0275cmp=D({type:$V,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},standalone:!1,features:[bx],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(F(0,beb,2,6,"b-tracker-chip",0),T(1,"async"));a&2&&G(U(1,1,b.isCurrentTracker$)===!1?0:-1)},dependencies:[ZV,Lx],encapsulation:2,changeDetection:0});var aW=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new XP;this.expandComponent=new XP;this.goBack=new XP};aW.prototype.ngOnInit=function(){};aW.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};aW.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};aW.\u0275fac=function(a){return new (a||aW)};
aW.\u0275cmp=D({type:aW,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&&(K(0,"div",0),F(1,ceb,1,0,"mat-icon",1)(2,deb,2,0,"button",2)(3,eeb,2,3,"button",3),K(4,"div",4)(5,"span",5),F(6,jeb,2,0)(7,leb,1,1),F(8,meb,2,0,"span",6),L(),M(9,"b-component-access-level-indicator",7)(10,"b-tracker-chip-smart",8),L()());a&2&&(B(),G(!0===(b.mode=="recent"||b.mode=="popular")?1:!0===(b.mode=="tree")?2:3),B(5),G(b.mode!=="leaf"?6:7),B(2),G(b.componentOption.archived?8:-1),B(),I("accessLevel",b.componentOption.accessLimit==null?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",
!0),B(),I("trackerId",b.componentOption.trackerId)("showHovercard",!1))},dependencies:[Dy,gB,eB,oK,iA,$V,SV,dV,Qsd],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 bW=function(a,b,c,d,e,f,g,k,l,r,w,x,C){var H=this;this.userApi=a;this.userAccess=b;this.componentApi=c;this.componentActions=d;this.teamsService=e;this.analytics=f;this.destroyed$=g;this.config=k;this.trackerHelpers=l;this.activeSession=r;this.issueRecommendationFridge=w;this.componentFridge=x;this.recommendationsService=C;this.includeArchived=!1;this.searchQuery$=new Nj("");this.debouncedSearchQuery$=this.searchQuery$.pipe(lf(250));this.state$=new Nj("default");this.listUpdated$=new sf;this.componentsLoading=
this.teamsLoading=!1;this.teamScope$=new Nj(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.rawPopularComponents=[];this.popularComponents=[];this.rawRecentComponents=[];this.recentComponents=[];this.recommendedComponents=[];this.recommendedComponentToRecommendation=new Map;this.myTeams$=new Nj([]);this.showAllTeams$=new Nj(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(pf());this.teamOptions$=new Nj([]);this.filteredTeamOptions$=le([this.teamOptions$,
this.showAllTeamsDistinct$]).pipe(A(function(J){var O=m(J);J=O.next().value;return O.next().value?J:J.slice(0,5)}));this.hasHiddenTeams$=le([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(J){var O=m(J);J=O.next().value;O=O.next().value;return J.length>5&&!O}));this.newChildTeams$=new Nj([]);this.teamsDisplayed$=ve(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(A(function(J){return J?[J]:[]}))).pipe(A(function(J){return J.map(function(O){return O.id})}));this.requestIndex=
0;this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(A(function(J){return J.filter(function(O){return!H.childTeamsMap.has(O)})}),we(function(J){return J.length>0}),Af(function(J){return H.teamsService.getChildTeams(J)}),A(qeb));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(A(function(J){return J.filter(function(O){return!H.componentCountMap.has(O)})}),we(function(J){return J.length>0}),Af(function(J){return Zjd(H.teamsService,J)}));this.componentIdSelected$=new wf(1);this.lastProcessedIndex=
-1;this.ootbSourceId=this.activeSession.getEnvironmentType()==="PROD"?"recommendationSources/1385":"recommendationSources/1057"};
bW.prototype.init=function(a,b,c){var d=this;a=a===void 0?!1:a;this.issueId=c;Sud(this,b===void 0?null:b,c);le([this.debouncedSearchQuery$.pipe(yf(a?1:0)),this.state$]).pipe(Bf(this.destroyed$)).subscribe(function(e){var f=m(e);e=f.next().value;f=f.next().value;d.showAllTeams$.next(!1);f==="default"?e?d.state$.next("global"):(d.componentOptions=[],d.teamOptions$.next([]),d.listUpdated$.next()):f==="global"?e?(d.includeTeamData()&&Tud(d,e),Uud(d,e)):d.state$.next("default"):f==="team_scope"?d.teamScope$.value&&
(d.teamOptions$.next([]),Uud(d,"teamid:"+d.teamScope$.value.id+" "+e)):f==="component_scope"&&d.componentScope&&Vud(d,d.componentScope.id)});this.debouncedSearchQuery$.pipe(Ef(this.state$),Bf(this.destroyed$)).subscribe(function(e){var f=m(e);e=f.next().value;f.next().value==="component_scope"&&d.state$.next(e?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(Bf(this.destroyed$)).subscribe(function(e){e=m(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;
g=g.next().value;d.childTeamsMap.set(f,g)}});this.unseenTeamComponentCountMap$.pipe(Bf(this.destroyed$)).subscribe(function(e){e=m(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;d.componentCountMap.set(f,g)}})};bW.prototype.includeTeamData=function(){return this.config.includeTeamData&&!qs(this.activeSession)};
var Sud=function(a,b,c){b=b===void 0?null:b;a.componentsLoading=!0;var d=Promise.resolve(b!==null?zP(a.userAccess,"reader","components/"+b.componentId+"/issueDefaults"):!1).then(function(f){return f?a.componentApi.getPopularRoutingTargets(b.componentId).then(function(g){g=g.filter(function(k){return a.filterTrackerComponents(k)});g=Wud(a,g);a.rawPopularComponents=g;a.listUpdated$.next()}):Promise.resolve()}),e=a.userApi.getRecentComponents().then(function(f){f=f.filter(function(g){return a.filterTrackerComponents(g)});
f=Wud(a,f);a.rawRecentComponents=f});c=c?Xud(a,c).then(function(f){a.recommendedComponents=f}):Promise.resolve();Promise.all([d,e,c]).finally(function(){var f=new Set(a.recommendedComponents.map(function(k){return k.id}));a.popularComponents=a.rawPopularComponents.filter(function(k){return!f.has(k.id)});var g=new Set(a.popularComponents.map(function(k){return k.id}));a.recentComponents=a.rawRecentComponents.filter(function(k){return!g.has(k.id)&&!f.has(k.id)});a.listUpdated$.next();a.componentsLoading=
!1});a.includeTeamData()&&(a.teamsLoading=!0,MQ(a.teamsService,"").pipe(Bf(a.destroyed$)).subscribe(function(f){a.myTeams$.next(f.map(neb));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))},Xud=function(a,b){a.recommendedComponentToRecommendation.clear();return ie(a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING").pipe(nf(1),A(function(c){var d;return(d=c==null?void 0:c.recommendations)!=null?d:[]}),A(function(c){return c.filter(function(d){return d.source===a.ootbSourceId})}),
Af(function(c){if(c.length===0)return ee([]);c=c.map(function(d){var e=d.recommendation.split("/");(e=e.length===2&&e[0]==="components"?e[1]:null)&&a.recommendedComponentToRecommendation.set(e,d);return e}).filter(function(d){return!!d});if(c.length===0)return ee([]);c=[].concat(q(new Set(c)));return le(c.map(function(d){return a.componentFridge.watch(d).pipe(jf(function(){return ee(void 0)}))}))}),A(function(c){return Wud(a,c.filter(function(d){return!!d}))}),jf(function(){return ee([])}),Bf(a.destroyed$)))};
bW.prototype.filterTrackerComponents=function(a){var b;return!qs(this.activeSession)||a.trackerId===((b=this.activeSession.getTracker())==null?void 0:b.trackerId)};bW.prototype.selectOption=function(a){a.type==="component"?Wfb(this,a.id):a.type==="team"?Leb(this,a):console.warn("invalid option selected")};
var Wfb=function(a,b){a.analytics.trackEvent("componentPicker","autocomplete-select",Yud(a,b));var c=new Map;c.set("combined",[].concat(q(a.recommendedComponents),q(a.popularComponents),q(a.recentComponents)));c.set("recommended",a.recommendedComponents);c.set("popular",a.rawPopularComponents);c.set("recent",a.rawRecentComponents);c=m(c);for(var d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;for(var f=null,g=0;g<e.length;g++){var k=void 0;if(b===((k=e[g])==null?
void 0:k.id)){f=g+1;break}}f!=null?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"Success"):(g=void 0,((g=e)==null?void 0:g.length)>0?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoMatch"):a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoSuggestion"));f!=null&&(f===1&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N1"),f<=5&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N5"),f<=10&&a.analytics.trackEvent("componentPicker",
"suggestionSuccess",d+"N10"))}(c=a.recommendedComponentToRecommendation.get(b))&&a.issueId&&(d=A$a(c),Zud(a.recommendationsService,c,d,d));a.componentIdSelected$.next(b);a.state$.next("global")},Yud=function(a,b){if(a.state$.value==="default")return a.recommendedComponents.some(function(e){return b===e.id})?"recommended-component":a.popularComponents.some(function(e){return b===e.id})?"popular-component":"recent-component";if(a.state$.value==="global")return"global-search";if(a.state$.value==="component_scope")return"component-scope";
if(a.state$.value==="team_scope"){var c,d=(c=a.teamScope$.value)==null?void 0:c.id;return a.myTeams$.value.some(function(e){return e.id===d})?"my-team":"team-scope"}return""};bW.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var Dfb=function(a,b){a.componentActions.get(b).then(function(c){var d=fu(a.trackerHelpers,c.componentPathInfo);a.componentScope=peb(c,d);a.state$.next("component_scope")})},Cfb=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},Leb=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||Meb(a,b.id)},Meb=function(a,b){a.teamsLoading=!0;MQ(a.teamsService,b).pipe(Bf(a.destroyed$)).subscribe(function(c){c=
c.map(neb);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})},$ud=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(a.teamScope$.value.pathIds.length<2)){var b=a.teamScope$.value.pathIds;Meb(a,b[b.length-2])}};bW.prototype.getChildTeams=function(a){var b;return(b=this.childTeamsMap.get(a))!=null?b:[]};
bW.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?this.componentCountMap.get(a)===0:!1};
var sfb=function(a,b){b.expanded=!1;a.listUpdated$.next()},tfb=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},wfb=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},Tud=function(a,b){b.length>1&&(a.teamsLoading=!0,MQ(a.teamsService,b).pipe(Bf(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(neb));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},Uud=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=Wud(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},Vud=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=Wud(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})},Wud=function(a,b){return b.map(function(c){var d=fu(a.trackerHelpers,c.componentPathInfo);return peb(c,d)})};var avd=0,cW=function(){this.changeDetectorRef=p(ux);this.elementRef=p(Jd);this.active=!1;this.id="b-component-picker-option-"+avd++};cW.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};cW.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};cW.\u0275fac=function(a){return new (a||cW)};
cW.\u0275dir=df({type:cW,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Qf("id",b.id),wg("active",b.active))},inputs:{data:"data",listOrder:"listOrder"},standalone:!1});var dW=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new XP};dW.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};dW.prototype.ngOnInit=function(){};dW.\u0275fac=function(a){return new (a||dW)};
dW.\u0275cmp=D({type:dW,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&&(K(0,"div",0),F(1,
reb,1,1,"img",1),K(2,"div",2),F(3,teb,4,5,"div",3),F(4,Beb,3,0,"div",4),L()());a&2&&(wg("no-component",b.hasNoComponent)("compact",b.compact),B(),G(b.compact?-1:1),B(2),G(b.compact?-1:3),B(),G(b.teamOption.pathNames&&b.teamOption.pathNames.length?4:-1))},dependencies:[dV],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 bvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bvd,W);bvd.prototype.getAttachmentId_asString=function(){return un(this,1)};bvd.prototype.setAttachmentId=function(a){return Ko(this,1,a)};bvd.prototype.getCategory=function(){return vi(this,2)};bvd.prototype.setCategory=function(a){return Gm(this,2,a)};var cvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cvd,W);cvd.prototype.getCategory=function(){return vi(this,1)};cvd.prototype.setCategory=function(a){return Gm(this,1,a)};var dvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dvd,W);dvd.prototype.getRecommendation=function(){return vi(this,1)};dvd.prototype.setRecommendation=function(a){return Gm(this,1,a)};var evd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(evd,W);h=evd.prototype;h.getSummaryType=function(){return xi(this,1)};h.setSummaryType=function(a){return Im(this,1,a)};h.getModelVersion=function(){return Cm(this,2)};h.setModelVersion=function(a){return an(this,2,a)};h.getIssueVersion=function(){return Cm(this,3)};h.setIssueVersion=function(a){return an(this,3,a)};var eW=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eW,W);var fvd=[1,2,3,4];var gvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gvd,W);h=gvd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getFeature=function(){return xi(this,2)};h.setFeature=function(a){return Im(this,2,a)};h.getEventType=function(){return xi(this,3)};h.setEventType=function(a){return Im(this,3,a)};var hvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hvd,W);hvd.prototype.setEvents=function(a,b){return zw(this,1,gvd,a,b)};var fW=function(){this.executor=p(ZN)};fW.prototype.logIssueUserEventForRecommendation=function(a,b,c,d){d=ivd(d);return this.logIssueUserEvent(a,b,c,d)};fW.prototype.logIssueUserEventForRecommendations=function(a){a=a.map(function(b){var c=b.issueId,d=b.feature,e=b.eventType;b=ivd(b.recommendationName);c=(new gvd).setIssueId(c).setFeature(Sbd[d]).setEventType(Pbd[e]);return Ni(c,eW,6,b)});return jvd(this,a)};
fW.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c,d){var e=new eW;d=(new cvd).setCategory(d);e=Yo(e,3,fvd,d);return this.logIssueUserEvent(a,b,c,e)};fW.prototype.logIssueUserEvent=function(a,b,c,d){a=(new gvd).setIssueId(a).setFeature(Sbd[b]).setEventType(Pbd[c]);d=Ni(a,eW,6,d);return jvd(this,[d])};
var jvd=function(a,b){a=a.executor;var c=a.post,d=new hvd;b=Op(d,1,gvd,b);return c.call(a,{url:"action/issues/batch_log_event",body:b,responseConstructor:null})},ivd=function(a){var b=new eW;a=(new dvd).setRecommendation(a);return Yo(b,2,fvd,a)};fW.\u0275fac=function(a){return new (a||fW)};fW.\u0275prov=Fc({token:fW,factory:fW.\u0275fac,providedIn:"root"});var kvd=new Set(["NEEDS_INFO","COMPONENT_ROUTING","ANY_ISSUE_EDIT"]),gW={},lvd=(gW.TYPE_UNSPECIFIED="FEATURE_UNSPECIFIED",gW.ISSUE_DEDUPLICATION="FEATURE_ISSUE_DEDUPLICATION",gW.HOTLIST="FEATURE_HOTLIST",gW.ISSUE_DEDUPLICATION_BATCH="FEATURE_ISSUE_DEDUPLICATION_BATCH",gW.NEEDS_INFO="FEATURE_NEEDS_INFO",gW.COMPONENT_ROUTING="FEATURE_COMPONENT_ROUTING",gW.ANY_ISSUE_EDIT="FEATURE_ANY_ISSUE_EDIT",gW),hW=function(){this.api=p(gO);this.issueUserEventsService=p(fW);this.analytics=p(aQ);this.errorHandler=
p(kO);this.recommendationTriggerService=p(ZQ);this.activeSession=p(qu)},nvd=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("editIssue","reject",Ceb(b)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(c=new Set,c.add(b.name),d=[{issueId:Wr(b.resource),recommendationName:b.name}],(e=b.content)==null||(f=e.issueDeduplicationBatch)==null||f.entries.forEach(function(l){c.has(l.recommendation)||(c.add(l.recommendation),d.push({issueId:l.issue.issueId,recommendationName:l.recommendation}))}),
g=Array.from(c,function(l){return{parent:l,userEngagement:{type:"REJECTED"}}}),z(k,ie(a.api.createUserEngagements(g)),6)):z(k,mvd(a,"REJECTED",b),4);case 4:return z(k,a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_REJECT"),3);case 6:return z(k,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_REJECT",d),3);case 3:a.recommendationTriggerService.hiddenRecommendationIds.add(b.name),ce(k)}})},ovd=function(a,b){y(function(c){a.analytics.trackEvent("editIssue","view",
Ceb(b)+"-initialization");ce(c)})},pvd=function(a,b){y(function(c){return c.nextAddress==1?(a.analytics.trackEvent("editIssue","view",Ceb(b)),z(c,a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_VIEW"),2)):z(c,mvd(a,"VIEWED",b),0)})},Zud=function(a,b,c,d){var e,f,g,k,l,r,w,x;return y(function(C){return C.nextAddress==1?(a.analytics.trackEvent("editIssue","accept",Ceb(b)),e=mm(c,d),f=void 0,kvd.has(b.type)&&(f=E$a(d)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(g=new Set,g.add(b.name),k=[{issueId:Wr(b.resource),
recommendationName:b.name}],l=new Set(d.map(function(H){return H.issueId})),(r=b.content)==null||(w=r.issueDeduplicationBatch)==null||w.entries.filter(function(H){return l.has(H.issue.issueId)}).forEach(function(H){g.has(H.recommendation)||(g.add(H.recommendation),k.push({issueId:H.issue.issueId,recommendationName:H.recommendation}))}),x=Array.from(g,function(H){return{parent:H,userEngagement:{type:"ACCEPTED"}}}),z(C,ie(a.api.createUserEngagements(x)),6)):z(C,mvd(a,e?"ACCEPTED":"PARTIALLY_ACCEPTED",
b,f),4)):C.nextAddress!=6?z(C,a.logIssueUserEventForRecommendation(b,e?"EVENT_TYPE_ACCEPT":"EVENT_TYPE_PARTIALLY_ACCEPT"),0):z(C,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_ACCEPT",k),0)})},mvd=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return Yd(g,2),e=c.name,z(g,ie(a.api.createUserEngagements([{parent:e,userEngagement:{type:b,issueModification:d}}])),4);if(g.nextAddress!=2)return bt(g,0);f=be(g);mO(a.errorHandler,f);ce(g)})};
hW.prototype.logIssueUserEventForRecommendation=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=Wr(a.resource);if(!d||c.activeSession.isExternalSession())return g.return();Yd(g,2);e=lvd[a.type];return e==="FEATURE_UNSPECIFIED"?g.jumpTo(4):z(g,ie(c.issueUserEventsService.logIssueUserEventForRecommendation(d,e,b,a.name)),4)}if(g.nextAddress!=2)return bt(g,0);f=be(g);mO(c.errorHandler,f);ce(g)})};
hW.prototype.logIssueUserEventForRecommendations=function(a,b,c){var d=this,e,f;return y(function(g){if(g.nextAddress==1)return e=c.map(function(k){return{issueId:k.issueId,feature:a,eventType:b,recommendationName:k.recommendationName}}),Yd(g,2),z(g,ie(d.issueUserEventsService.logIssueUserEventForRecommendations(e)),4);if(g.nextAddress!=2)return bt(g,0);f=be(g);mO(d.errorHandler,f);ce(g)})};hW.\u0275fac=function(a){return new (a||hW)};hW.\u0275prov=Fc({token:hW,factory:hW.\u0275fac,providedIn:"root"});var qvd=new fd("GM2_PROGRESS_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var rvd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};rvd.\u0275fac=function(a){return new (a||rvd)(Ye(qvd))};rvd.\u0275dir=df({type:rvd,selectors:[["mat-progress-bar"]],hostAttrs:[1,"gmat-mdc-progress-bar"],standalone:!1});var svd=["container"],tvd=["inputBox"],uvd=["dropdownTemplate"],vvd=["dropdown"],Teb=function(a){return{mode:"recommended",$implicit:a}},Xeb=function(a){return{mode:"popular",$implicit:a}},$eb=function(a){return{mode:"recent",$implicit:a}},mfb=function(a){return{mode:"default",$implicit:a}},gfb=function(a){return[a]},ffb=function(a,b){return{team:a,level:0,order:b}},Afb=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},xfb=function(){return[0]},pfb=function(a){return[0,a]},Gfb=function(a){return{mode:"leaf",
$implicit:a}},Mfb=function(a,b,c){return{team:a,level:b,order:c}},wvd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],xvd=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],iW=function(){Z.apply(this,arguments);this.overlay=p(Nz);this.viewContainerRef=p(fg);this.userApi=p(fP);this.componentApi=p(KO);this.componentActions=p(WV);this.teamsService=
p(KQ);this.userAccess=p(yP);this.analytics=p(aQ);this.activeSession=p(qu);this.issueRecommendationFridge=p(eQ);this.componentFridge=p(MO);this.trackerHelpers=p(fS);this.cdr=p(ux);this.recommendationsService=p(hW);this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=this.showOverlayAbove=!1;this.accessCheckComplete=new XP;this.shouldFocus=!1;this.touched=new XP;this.selectedComponentChange=new XP;this.dropdownClosed=new XP;this.checkingAccess=this.hasAccess=!1;this.isExternal=
this.activeSession.isExternalSession();this.searchState=new bW(this.userApi,this.userAccess,this.componentApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.trackerHelpers,this.activeSession,this.issueRecommendationFridge,this.componentFridge,this.recommendationsService);this.componentLoading=this.isDropdownOpen=!1};Y(iW,Z);iW.\u0275dir=Z.\u0275dir;
iW.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent,this.selectedComponent,this.issueId);this.searchState.componentIdSelected$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;yvd(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});ve(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(Bf(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
iW.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var yvd=function(a){if(a.selectedComponent){var b=fu(a.trackerHelpers,a.selectedComponent.componentPathInfo);b=peb(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},zvd=function(a){if(a.dropdown&&a.keyManager&&a.keyManager.activeItem){var b=a.keyManager.activeItem.elementRef.nativeElement,c=b.offsetTop;b=b.offsetHeight;var d=a.dropdown.nativeElement.scrollTop,e=a.dropdown.nativeElement.offsetHeight;
a.dropdown.nativeElement.scrollTop=c<d?c:c+b>d+e?Math.max(0,c-e+b):d}};h=iW.prototype;h.ngOnChanges=function(a){a.selectedComponent&&(yvd(this),this.checkAdminAccess&&this.selectedComponent&&Avd(this,this.selectedComponent))};h.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
h.ngAfterViewInit=function(){var a=this;this.keyManager=gz(hz(new lz(this.listOptions)));this.searchState.listUpdated$.pipe(Bf(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(Bf(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(fgb);b=[].concat(q(c),q(b));a.listOptions.reset(b);var d;if((d=a.keyManager)==null?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
d>-1&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};h.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
h.close=function(a){a=a===void 0?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),this.searchState.state$.value==="team_scope"&&wfb(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),this.analytics.trackEvent("componentPicker","close",a?"with-selection":"without-selection"))};
h.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var Bvd=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};
iW.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),zvd(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)==null||YCc(d);zvd(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),zvd(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)!=null&&d._setActiveItemByIndex(0,1);zvd(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?wfb(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(),tfb(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?sfb(this.searchState,this.keyManager.activeItem.data):$ud(this.searchState));this.searchState.state$.value==="component_scope"&&(a.preventDefault(),Cfb(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(wfb(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var os=function(a){a.preventDefault();a.stopPropagation()},Avd=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;zP(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};h=iW.prototype;
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new ei({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:(c=this.container.nativeElement)==null?void 0:c.offsetWidth}))};h.attach=function(){var a=new Iz(this.dropdownTemplateRef,this.viewContainerRef),b;(b=this.dropdownOverlayRef)==null||b.attach(a);var c;(c=this.dropdownOverlayRef)==null||c.updatePosition()};
h.getPositionStrategy=function(){var a=this.showOverlayAbove?xvd:wvd;return zz(zDc(Bz(Fz(this.overlay.position(),this.container),!1),!1),a)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};h.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};
da.Object.defineProperties(iW.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});iW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(iW)))(b||iW)}}();
iW.\u0275cmp=D({type:iW,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(hg(svd,7),hg(tvd,7),hg(uvd,7),hg(vvd,5),hg(cW,5));if(a&2){var c;lg(c=mg())&&(b.container=c.first);lg(c=mg())&&(b.inputBox=c.first);lg(c=mg())&&(b.dropdownTemplateRef=c.first);lg(c=mg())&&(b.dropdown=c.first);lg(c=mg())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",ariaLabel:"ariaLabel",showOverlayAbove:"showOverlayAbove",issueId:"issueId",selectedComponent:"selectedComponent",
checkAdminAccess:"checkAdminAccess",shouldFocus:"shouldFocus",includeArchived:"includeArchived"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},standalone:!1,features:[Gf,bx],decls:13,vars:10,consts:[["container",""],["inputBox",""],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["dropdown",""],[1,"container","pseudo-input"],["type","text","role","combobox","autocomplete","off",
"spellcheck","false","aria-autocomplete","list",1,"override",3,"ngModelChange","keydown","click","focus","blur","ngModel","placeholder","required"],"type;button;mat-icon-button;;tabindex;-1;matTooltip;Clear component;aria-label;Clear component".split(";"),["type","button","mat-icon-button","","tabindex","-1","matTooltip","Clear component","aria-label","Clear component",3,"mousedown"],["svgIcon","clear"],[1,"bv2-picker-checking"],[1,"bv2-picker-error"],["target","_blank",3,"href"],[1,"dropdown",3,
"mousedown"],[1,"progress-bar-container"],["mode","indeterminate"],[1,"dropdown-content"],["role","tree"],[1,"section-header"],["role","treeitem","listOption","",1,"list-option",3,"data"],["role","treeitem","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectTeamId","teamOption","query","hasNoComponent"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button",
3,"mousedown"],["svgIcon","arrow-down"],[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"selectTeamId","teamOption","query","compact","allowSegmentSelection"],["type","button","tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"small","clear-filter",3,"mousedown"],["svgIcon","close"],[1,"team-scope-child-teams"],[1,"component-scope-container"],[1,"title"],["mode","tree",3,"goBack","selectComponentId","componentOption"],["role","treeitem","listOption",
"",1,"list-option",3,"mousedown","listOrder","data"],[1,"team-row-container"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],["role","listbox"],["role","option","listOption","",1,"list-option",3,"data"],["svgIcon","spark_24px",1,"icon-spark"],["role","option","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectComponentId",
"expandComponent","showFolderSpecialIcon","componentOption","query","mode"],[1,"empty-list","muted"],["svgIcon","close",1,"icon-xs","valign-middle"],["href","http://go/buganizer:component-mapping#associate","target","_blank"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){if(a&1){var c=t();K(0,"div",6,0)(2,"input",7,1);T(4,"async");N("ngModelChange",function(d){u(c);return v(b.searchState.searchQuery$.next(d))})("keydown",function(d){u(c);return v(b.handleKeydown(d))})("click",function(){u(c);
b.open();return v(b.touched.emit())})("focus",function(){u(c);return v(b.open())})("blur",function(){u(c);return v(b.close())});L();F(5,Deb,2,0,"button",8);L();F(6,Heb,3,1,"div");E(7,Jfb,6,2,"ng-template",null,2,Mg)(9,Pfb,5,11,"ng-template",null,3,Mg)(11,egb,2,1,"ng-template",null,4,Mg)}a&2&&(a=qg(3),B(2),I("ngModel",U(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired),Kf("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",
b.isDropdownOpen)("aria-activedescendant",Bvd(b)),B(3),G(a.value?5:-1),B(),G(b.checkAdminAccess?6:-1))},dependencies:[Kx,Dy,yj,$D,sE,gE,gB,eB,aK,oK,iA,rvd,eJ,dW,aW,cW,Lx],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid;border-color:#1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.section-header[_ngcontent-%COMP%]   .icon-spark[_ngcontent-%COMP%]{color:var(--primary-c600);font-size:1.125rem;height:18px;padding-right:4px;width:18px}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-row-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.team-row-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px}team-row[_ngcontent-%COMP%]{width:100%}.team-scope[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 10px}.team-scope[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.team-scope.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-color:#1a73e8;border-color:var(--primary-c600)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple{background-color:#1a73e8;background-color:var(--primary-c600);opacity:.12}.team-scope-container[_ngcontent-%COMP%]{margin-bottom:10px}.expand-team-line-button[_ngcontent-%COMP%]{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:4px;margin-left:12px;color:#1a73e8;color:var(--link)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon.expanded[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:6px}.mat-mdc-icon-button[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:20px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mat-icon-button-icon-size:16px;height:16px;width:16px;line-height:16px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:not(.expanded){-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.indent[_ngcontent-%COMP%]{margin-left:24px}.arrow-button[_ngcontent-%COMP%]{margin-right:4px}.team-scope-child-teams[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]{padding-left:14px}.component-scope-container[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%]{font-weight:700;padding:4px 16px;background-color:#f1f3f4;background-color:var(--c100)}.component-scope-container[_ngcontent-%COMP%] > component-row[_ngcontent-%COMP%]{display:block;margin-left:10px}.empty-list[_ngcontent-%COMP%]{padding:4px 18px}button.clear-filter[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}\n/*# sourceMappingURL=team_component_picker.css.map */"],
changeDetection:0});var Cvd=function(){this.warningChunks=[]};Cvd.prototype.ngOnInit=function(){var a=this.warningText,b=lgb(a,"EXTERNAL_PUBLIC")||lgb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};Cvd.\u0275fac=function(a){return new (a||Cvd)};
Cvd.\u0275cmp=D({type:Cvd,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},standalone:!1,decls:3,vars:0,consts:[[3,"accessLevel"]],template:function(a,b){a&1&&(K(0,"div"),Of(1,jgb,3,1,"span",null,Nf),L());a&2&&(B(),Pf(b.warningChunks))},dependencies:[SV],encapsulation:2});var kgb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var jW=function(){this.data=p(PA);this.documentationLinks=p(YR);this.dialogRef=p(NA);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)};jW.prototype.allow=function(){var a;(a=this.dialogRef)==null||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow(this.setLimitViewTrusted)};
jW.prototype.cancel=function(){var a;(a=this.dialogRef)==null||a.close();this.callbacks.cancel()};jW.\u0275fac=function(a){return new (a||jW)};
jW.\u0275cmp=D({type:jW,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&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"div",2),M(4,"b-component-move-warning-content",3),L(),M(5,"br"),K(6,"a",4),Q(7,"Learn more"),L(),F(8,ogb,3,1,"div"),L(),K(9,"mat-dialog-actions")(10,"button",5),N("click",function(){return b.cancel()}),Q(11," Cancel "),L(),F(12,pgb,2,1,"button",6),L());a&2&&(B(),yg(b.header),B(3),I("warningText",b.warning),B(2),Kf("href",b.learnMore,
Pe),B(2),G(b.isExternalMove&&b.isAllowed?8:-1),B(4),G(b.isAllowed?12:-1))},dependencies:[$D,gE,gB,cB,qT,rT,fL,aI,RA,TA,VA,UA,Cvd],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var Dvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Dvd.messageId)};Y(Dvd,W);Dvd.messageId="b.CompareComponentAccessResponse";var kW=function(){this.executor=p(dO)};kW.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:Dvd}).then(d_a)};kW.\u0275fac=function(a){return new (a||kW)};kW.\u0275prov=Fc({token:kW,factory:kW.\u0275fac,providedIn:"root"});var lW=function(){this.issueInteractionsTracking=p(zS);this.issueFullFridge=p(cQ);this.componentFridge=p(MO);this.butterBar=p(QN);this.compareComponentAccess=p(kW);this.matDialogService=p(QA);this.editIssueService=p(DS);this.activeSession=p(qu)};
lW.prototype.updateComponent=function(a,b){var c=this,d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){switch(O.nextAddress){case 1:Rr(c.issueInteractionsTracking,a,{label:"changeComponent"});if(!b)return O.return(!1);d=m;return z(O,Promise.all([ie(c.issueFullFridge.watch(a)),ie(c.componentFridge.watch(b))]),2);case 2:e=d(O.yieldResult);f=e.next().value;g=e.next().value;k=f;l=g;if(!k)return c.butterBar.showWarning("Could not load issue "+a),O.return(!1);if(!l)return c.butterBar.showWarning("Could not load component "+
b),O.return(!1);r=k.snapshot[0].componentId;return r===b?O.return(!1):z(O,c.compareComponentAccess.check(r,b,a),3);case 3:w=O.yieldResult;x=!!l.trackerId;C=k.snapshot[0].issueAccessLimitLevel==="LIMIT_NONE";H=x&&C;J={allow:!1,setLimitViewTrusted:!1};if(!w.warning){O.jumpTo(4);break}return z(O,Evd(c,w,H),5);case 5:if(J=O.yieldResult,!J.allow)return O.return(!1);case 4:return z(O,c.editIssueService.updateComponent(a,b,w.isExternalMove,J.setLimitViewTrusted),6);case 6:return O.return(!0)}})};
var Evd=function(a,b,c){c=c===void 0?!1:c;return new Promise(function(d){OA(a.matDialogService.open(jW,{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})})})};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275prov=Fc({token:lW,factory:lW.\u0275fac,providedIn:"root"});var mW=function(){this.bLocation=p(ZT);this.listIssues=ps.listIssues.makeHref;this.createIssue=ps.createIssue.makeHref};mW.prototype.viewSavedSearch=function(a,b){return qgb(ps.viewSavedSearch.routeDeclarationPath,{id:a,params:b})};var Fvd=function(a,b){b=b.charAt(0)!=="/"?"/"+b:b;a=a.bLocation.getUrl();a=new Ns(a);b=new Ns(b);return a.getPath()===b.getPath()&&SB(a.queryData_.toString())===SB(b.queryData_.toString())};h=mW.prototype;h.createBookmarkGroup=function(){return ps.createBookmarkGroup.routeDeclarationPath};
h.viewBookmarkGroup=function(a){return qgb(ps.viewBookmarkGroup.routeDeclarationPath,{id:a})};h.editBookmarkGroup=function(a){return ss(ps.editBookmarkGroup.routeDeclarationPath,{id:a})};h.editSavedSearch=function(a){return ss(ps.editSavedSearch.routeDeclarationPath,{id:a})};h.dashboard=function(a){return ss(ps.viewDashboard.routeDeclarationPath,{id:a})};
h.getBaseUrl=function(){var a=this.bLocation.platformLocation.href;a=a.slice(0,a.length-this.bLocation.getUrl().length);a.charAt(a.length-1)==="/"&&(a=a.slice(0,a.length-1));return a};h.settings=function(a){return a?ss(ps.settingsTab.routeDeclarationPath,{id:a,token:":settingsTab?"}):ss(ps.settings.routeDeclarationPath)};h.home=function(){return ss(ps.home.routeDeclarationPath,{params:void 0})};mW.\u0275fac=function(a){return new (a||mW)};mW.\u0275prov=Fc({token:mW,factory:mW.\u0275fac,providedIn:"root"});var Gvd=function(){this.documentationLinks=p(YR)};Gvd.\u0275fac=function(a){return new (a||Gvd)};
Gvd.\u0275cmp=D({type:Gvd,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&&(K(0,"h1",0),Q(1,"Apply component retention settings?"),
L(),K(2,"div",1)(3,"p"),Q(4," This issue is currently retained indefinitely. If you select this option, this issue will be scheduled for deletion based on the component retention settings. "),L(),K(5,"a",2),Q(6,"Learn more"),L()(),K(7,"div",3)(8,"button",4),Q(9," Cancel "),L(),K(10,"button",5),Q(11," OK "),L()());a&2&&(B(5),I("href",mu(),Pe),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[RA,TA,VA,UA,gB,cB],encapsulation:2});var Hvd=function(){this.documentationLinks=p(YR);this.data=p(PA);this.deletionReasons=this.data.deletionReasons;this.attachmentId=this.data.attachmentId};Hvd.\u0275fac=function(a){return new (a||Hvd)};
Hvd.\u0275cmp=D({type:Hvd,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&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"span"),Q(4," Please select the reason for deleting this attachment. "),K(5,"a",2),Q(6," \u00a0Learn more "),L()(),K(7,"mat-radio-group",3),Cg("ngModelChange",function(c){Bg(b.selectedReason,c)||(b.selectedReason=c);return c}),Of(8,xgb,3,4,"mat-radio-button",4,Nf),L()(),K(10,"div",5)(11,"button",6),Q(12," Cancel "),L(),K(13,"button",7),Q(14," Delete "),L()());a&2&&(B(),S("Delete attachment ",b.attachmentId),B(4),I("href",
Imd(b.documentationLinks),Pe),B(2),Ag("ngModel",b.selectedReason),B(),Pf(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[RA,TA,VA,UA,gB,cB,$D,gE,qT,rT],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var Ivd=function(){this.documentationLinks=p(YR);this.data=p(PA);this.deletionReasons=this.data.deletionReasons;this.commentNumber=this.data.commentNumber;this.issueId=this.data.issueId};Ivd.\u0275fac=function(a){return new (a||Ivd)};
Ivd.\u0275cmp=D({type:Ivd,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&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"label"),Q(4,"Please select the reason for deleting this comment."),L(),K(5,"a",2),Q(6," \u00a0Learn more "),L(),K(7,"mat-radio-group",3),Cg("ngModelChange",function(c){Bg(b.selectedReason,c)||(b.selectedReason=c);return c}),Of(8,zgb,3,4,"mat-radio-button",4,Nf),L()(),K(10,"div",5)(11,"button",6),Q(12," Cancel "),L(),K(13,"button",7),Q(14," Delete "),L()());a&2&&(B(),zg("Delete Comment #",b.commentNumber," of Issue ",b.issueId),
B(4),I("href",Imd(b.documentationLinks),Pe),B(2),Ag("ngModel",b.selectedReason),B(),Pf(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[RA,TA,VA,UA,gB,cB,$D,gE,qT,rT],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var Jvd=function(){this.documentationLinks=p(YR);this.activeSession=p(qu);this.REMOVAL_URL=Agb(this.activeSession.isInternalSession())};Jvd.\u0275fac=function(a){return new (a||Jvd)};
Jvd.\u0275cmp=D({type:Jvd,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&&(K(0,"h1",0),Q(1,"Report spam?"),
L(),K(2,"div",1)(3,"p"),Q(4," This will remove the issue from search results, and it will be deleted after 30 days. For more information on remediating spam at scale, "),K(5,"a",2),Q(6,"see here"),L(),Q(7,". "),L(),M(8,"p"),K(9,"p"),Q(10," To delete PII or other sensitive content, "),K(11,"a",2),Q(12,"file a support request"),L(),Q(13,". "),L()(),K(14,"div",3)(15,"button",4),Q(16," Cancel "),L(),K(17,"button",5),Q(18," Report spam "),L()());a&2&&(B(5),I("href",Hmd(b.documentationLinks),Pe),B(6),I("href",
b.REMOVAL_URL,Pe),B(4),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[RA,TA,VA,UA,gB,cB],encapsulation:2});var Kvd=function(){this.documentationLinks=p(YR);this.indefiniteRetentionAcknowledged=!1};Kvd.\u0275fac=function(a){return new (a||Kvd)};
Kvd.\u0275cmp=D({type:Kvd,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&&(K(0,"h1",
0),Q(1,"Retain issue indefinitely?"),L(),K(2,"div",1)(3,"p"),Q(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),L(),K(5,"p")(6,"b"),Q(7,"Please note indefinite retention is not appropriate in many circumstances."),L(),M(8,"br"),Q(9," Before selecting this option, you should make sure at least one of the following is true: "),L(),K(10,"ul")(11,"li"),Q(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
L(),K(13,"li"),Q(14," You have a process in place to manually delete this issue within an approved period of time. "),L(),K(15,"li"),Q(16," Legal and Privacy have approved this non-standard retention period. "),L()(),M(17,"p"),K(18,"p")(19,"a",2),Q(20,"Learn more"),L()(),K(21,"mat-checkbox",3),N("change",function(c){return b.indefiniteRetentionAcknowledged=c.checked}),Q(22," I acknowledge "),L()(),K(23,"div",4)(24,"button",5),Q(25," Cancel "),L(),K(26,"button",6),Q(27," OK "),L()());a&2&&(B(19),I("href",
mu(),Pe),B(2),I("checked",b.indefiniteRetentionAcknowledged),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[RA,TA,VA,UA,gB,cB,fL,aI],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var nW=function(){Z.apply(this,arguments);this.userPreferencesManager=p(dR);this.timestamps$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.dismissalTimestamps)!=null?b:void 0}))};Y(nW,Z);nW.\u0275dir=Z.\u0275dir;var Lvd=function(a,b){return a.timestamps$.pipe(A(function(c){return c?!!c[b]:!1}))};nW.prototype.isDismissed=function(a){return ie(Lvd(this,a))};
nW.prototype.dismiss=function(a){var b=this;return this.timestamps$.pipe(nf(1),A(function(c){var d={};return{dismissalTimestamps:Object.assign({},c,(d[a]=new Date(Date.now()),d))}}),Af(function(c){return b.userPreferencesManager.save(c)}),A(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};nW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(nW)))(b||nW)}}();nW.\u0275prov=Fc({token:nW,factory:nW.\u0275fac,providedIn:"root"});var oW=function(){Z.apply(this,arguments);this.data=p(PA);this.dialogRef=p(NA);this.dismissalService=p(nW);this.dontShowAgain=!1};Y(oW,Z);oW.\u0275dir=Z.\u0275dir;oW.prototype.confirm=function(){var a=this,b;return y(function(c){if(c.nextAddress==1){if(!a.dontShowAgain)return c.jumpTo(2);b=Bgb(a.data.action);return z(c,ie(a.dismissalService.dismiss(b)),2)}a.dialogRef.close(!0);ce(c)})};oW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(oW)))(b||oW)}}();
oW.\u0275cmp=D({type:oW,selectors:[["b-share-email-confirmation-dialog"]],standalone:!1,features:[Gf],decls:9,vars:2,consts:[["mat-dialog-content",""],[3,"innerHTML"],[3,"change","checked"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"div",1),K(2,"mat-checkbox",2),N("change",function(c){return b.dontShowAgain=c.checked}),
Q(3," Don't show this again "),L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),L(),K(7,"button",5),N("click",function(){return b.confirm()}),Q(8," Confirm "),L()());a&2&&(B(),I("innerHTML",b.data.content,Oe),B(),I("checked",b.dontShowAgain))},dependencies:[VA,UA,gB,cB,fL,aI],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-top: 12px;\n      padding-bottom: 12px;\n    }"]});var Mvd=function(){};Mvd.\u0275fac=function(a){return new (a||Mvd)};Mvd.\u0275mod=cf({type:Mvd});Mvd.\u0275inj=Hc({imports:[Zy,RO,MJ,iB,BE,xE,OD,EU,bU,yL,gL]});var Egb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Egb,W);h=Egb.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setEmbeddingType=function(a){Im(this,7,a)};h.getScope=function(){return vi(this,2)};h.setScope=function(a){return Gm(this,2,a)};h.setScopeSortOrder=function(a){return Gm(this,3,a)};h.setMaxResults=function(a){return an(this,4,a)};
h.setView=function(a){return Im(this,5,a)};h.setIssueDescriptionView=function(a){return Im(this,6,a)};var Cgb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cgb,W);h=Cgb.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.setEmbeddingType=function(a){Im(this,6,a)};h.getScope=function(){return vi(this,2)};h.setScope=function(a){return Gm(this,2,a)};h.setScopeSortOrder=function(a){return Gm(this,4,a)};h.setMaxResults=function(a){return an(this,5,a)};var ts=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ts.messageId)};Y(ts,W);ts.prototype.getIt=function(){return X(this,Cgb,1,jb)};ts.prototype.setIt=function(a){return Ni(this,Cgb,1,a,jb)};ts.messageId="b.LookupSimilarIssuesRequest";var Nvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nvd,W);h=Nvd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getScore=function(){return em(this,2)};h.setScore=function(a){return sp(this,2,a)};var Ovd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ovd,W);var Pvd=function(a){return Ci(a,Jp,1,Di())},Qvd=function(a){return Ci(a,Nvd,2,Di())};var Rvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Rvd.messageId)};Y(Rvd,W);Rvd.prototype.getIt=function(){return X(this,Ovd,3,jb)};Rvd.prototype.setIt=function(a){return Ni(this,Ovd,3,a,jb)};Rvd.messageId="b.LookupSimilarIssuesResponse";var us=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,us.messageId)};Y(us,W);us.prototype.getIt=function(){return X(this,Egb,1,jb)};us.prototype.setIt=function(a){return Ni(this,Egb,1,a,jb)};us.messageId="b.RetrieveSimilarIssuesRequest";var Svd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Svd,W);Svd.prototype.getIssuesList=function(){return Ci(this,Jp,1,Di())};var Tvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Tvd.messageId)};Y(Tvd,W);Tvd.prototype.getIt=function(){return X(this,Svd,1,jb)};Tvd.prototype.setIt=function(a){return Ni(this,Svd,1,a,jb)};Tvd.messageId="b.RetrieveSimilarIssuesResponse";var Uvd={},Vvd=(Uvd[RR.queryAtom]=!0,Uvd),pW=function(){this.executor=p(ZN)},Wvd=function(a,b){return a.executor.post({url:"action/lookup_similar_issues",body:Dgb(b),responseConstructor:Rvd}).pipe(A(function(c){var d=Pvd(c.getIt()).map(gYa);c=Qvd(c.getIt()).map(function(e){return e.getScore()});return{similarIssues:d,scores:c}}))},Xvd=function(a,b){return a.executor.post({url:"action/retrieve_similar_issues",body:Fgb(b),responseConstructor:Tvd}).pipe(A(function(c){return{similarIssues:c.getIt().getIssuesList().map(gYa),
scores:[]}}))},Yvd=function(a,b,c,d,e,f){d=d===void 0?new Set:d;e={maxResults:e===void 0?7:e,scopeSortOrder:"vote_count desc"};(f===void 0?0:f)?e.scope=void 0:e.scope=Ir.apply(null,[Hr("modified","365d")].concat(q(Array.from(d,function(g){return g.queryAtom}))));c==null?e.issueId=Number(b):e.keyword=c;return Wvd(a,e)},Zvd=function(a,b,c,d){d=d===void 0?new Set:d;return Wvd(a,{issueId:Number(b),maxResults:7,scope:Ir.apply(null,[Hr("-id",b),Hr("id",c)].concat(q(Array.from(d,function(e){return e.queryAtom}).filter(function(e){return Vvd[e]}))))})};
pW.\u0275fac=function(a){return new (a||pW)};pW.\u0275prov=Fc({token:pW,factory:pW.\u0275fac,providedIn:"root"});var $vd=gn(function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0},hn),awd=new Set([RR]),qW=function(){this.issueFullFridge=p(cQ);this.issueFridge=p(TP);this.similarIssuesApi=p(pW);this.analytics=p(aQ);this.recentlyViewedIds$=this.issueFridge.watchMany({custom:"viewed",pageSize:50}).pipe(A(function(a){return a.results.map(function(b){return b.issueId})}));this.componentIdToRecentCanonicals=new Map},bwd=function(a,b,c,d){c=c===void 0?awd:c;d=Yvd(a.similarIssuesApi,
b,void 0,c,void 0,d===void 0?!1:d);var e=ee([]).pipe(of(5E3));e=bia(e,a.recentlyViewedIds$).pipe(Af(function(f){return Zvd(a.similarIssuesApi,b,f,c)}));return le([d,e]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;return Ggb(f,g)}),A(function(f){return f.similarIssues.map(function(g,k){return Object.assign({},g,{score:f.scores[k]})})}),A(function(f){return f.slice(0,7)}),jf(function(f){Xm("IssuePickerSearchService::searchSimilarIssuesById() error: ",f);var g,k,l=(k=f==null?void 0:
(g=f.error)==null?void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-id",l);return ee([])}))},dwd=function(a,b,c,d,e){c=c===void 0?awd:c;return b.trim()?d==="canonical"?Yvd(a.similarIssuesApi,e==null?void 0:e.id,b,c).pipe(A(function(f){return f.similarIssues.map(function(g,k){return Object.assign({},g,{score:f.scores[k]})})}),jf(function(f){Xm("IssuePickerSearchService::searchSimilarIssues() error: ",f);var g,k,l=(k=f==null?void 0:(g=f.error)==null?
void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-text",l);return ee([])})):cwd(a,b):ee(void 0)};
qW.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return ee(void 0);if(b==="canonical"){b=ewd(this,a,d);d=fwd(this,d).pipe(Af(function(g){return e.issueFridge.watchMany({filter:Ir(a,Hr("-id",c==null?void 0:c.id),Hr("status","open"),Hr("componentid",g)),pageSize:10})}),A(function(g){return g==null?void 0:g.results}));var f=this.issueFridge.watchMany({filter:Ir(a,Hr("-id",c==null?void 0:c.id)),pageSize:10,sort:"modified_time:desc"}).pipe(A(function(g){return g==null?void 0:g.results}),zf([]));
return le([b,d,f]).pipe(A(function(g){return uq(g.flat(),function(k){return k.issueId})}),A(function(g){return g.slice(0,10)}),A(function(g){return $vd(g,"DESCENDING")}))}return cwd(this,a)};
var cwd=function(a,b){return a.issueFridge.watchMany({filter:b,pageSize:10}).pipe(A(function(c){return c==null?void 0:c.results}))},ewd=function(a,b,c){return c&&c!=="0"?gwd(a,c).pipe(Af(function(d){return d.length===0?ee([]):a.issueFridge.watchMany({filter:Ir(b,Hr("id",d),Hr("status","open")),pageSize:10}).pipe(A(function(e){return e==null?void 0:e.results}))})):ee([])},gwd=function(a,b){if(!b||b==="0")return ee([]);if(a.componentIdToRecentCanonicals.has(b))return a.componentIdToRecentCanonicals.get(b);
var c=a.issueFridge.watchMany({filter:Ir(Hr("componentid",b,!0),Hr("status","duplicate")),sort:"modified_time:desc",pageSize:250}).pipe(A(function(d){return d==null?void 0:d.results}),A(function(d){return d.map(function(e){return e.snapshot[0].duplicateOfIssueId})}),A(function(d){return vq(d.filter(Qm))}),xf({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},fwd=function(a,b){return b&&b!=="0"?gwd(a,b).pipe(Af(function(c){return a.issueFullFridge.watchSet(c)}),A(function(c){return c.map(function(d){return d.snapshot[0].componentId})}),
A(function(c){return[b].concat(q(c.filter(Qm)))}),A(vq),xf({bufferSize:1,refCount:!0})):ee([])};qW.\u0275fac=function(a){return new (a||qW)};qW.\u0275prov=Fc({token:qW,factory:qW.\u0275fac,providedIn:"root"});var rW=function(){};rW.\u0275fac=function(a){return new (a||rW)};rW.\u0275cmp=D({type:rW,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&&(cg(),F(0,Hgb,1,0)(1,Igb,1,0,"div",0));a&2&&G(b.isReady?0:1)},encapsulation:2});var sW=function(){this.mode="datetime";this.isDataLoaded=!1};sW.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};sW.\u0275fac=function(a){return new (a||sW)};
sW.\u0275cmp=D({type:sW,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},standalone:!1,features:[bx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Jgb,1,3,"b-formatted-date-time",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.createdTime?1:-1))},dependencies:[rW,sV],encapsulation:2,changeDetection:0});var tW=function(){this.relayOnly=!1;this.keydown$=new sf};tW.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};da.Object.defineProperties(tW.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});tW.\u0275fac=function(a){return new (a||tW)};
tW.\u0275dir=df({type:tW,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b.onKeydown(c)});a&2&&Kf("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"},standalone:!1});var hwd=0,uW=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+hwd;this.closePanel$=new wf(1);hwd++};uW.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;(b==="Escape"||a.altKey&&b==="ArrowUp")&&this.closePanel$.next()};uW.\u0275fac=function(a){return new (a||uW)(Ye(tW,8))};
uW.\u0275cmp=D({type:uW,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&hg(eg,7);if(a&2){var c;lg(c=mg())&&(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&&(cg(),E(0,Kgb,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 vW=function(a,b,c,d,e){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.cdr=e;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new Ui;this.closed=new Ui;this.isOpen=!1;this.destroyed$=new wf(1);this.closingActionsSubscription=Rd.EMPTY};vW.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
vW.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new Iz(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=iwd(this).pipe(Bf(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
vW.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()}};
vW.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 iwd=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?ve(b,c,d):ve(c,d)};
vW.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
vW.prototype.getPositionStrategy=function(){return zz(Az(Bz(Fz(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"}])};vW.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
da.Object.defineProperties(vW.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});vW.\u0275fac=function(a){return new (a||vW)(Ye(Nz),Ye(Jd),Ye(fg),Ye(ez),Ye(ux))};
vW.\u0275dir=df({type:vW,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&Kf("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 wW=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(qu);this.trackerHelpers=p(fS);this.clipboard=p(kR);this.butterBar=p(QN);this.componentId=void 0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=Vr;this.copyIssueId=WHc(function(){a.clipboard.copy(a.issueId);Pr(a.butterBar,"Issue ID copied",2E3)})};Y(wW,Z);wW.\u0275dir=Z.\u0275dir;var vs=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
wW.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};wW.prototype.getAppBaseUrl=function(a){return dt(this.trackerHelpers,this.issueId,void 0,a===void 0?!1:a)};wW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wW)))(b||wW)}}();
wW.\u0275cmp=D({type:wW,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&hg(vW,5);if(a&2){var c;lg(c=mg())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled",enableHotkeys:"enableHotkeys",showCopyOptions:"showCopyOptions"},standalone:!1,features:[Gf],decls:4,vars:6,consts:[["trigger","onedevPopupPanelTrigger"],["contentPanel","onedevPopupPanel"],["issueIdField",""],["issueUrlField",
""],["urlAndTitleField",""],["issueShortlinkField",""],["issueEmailField",""],["todoCommentField",""],["type","button","matTooltip","Copy issue ID","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click","mousedown"],["svgIcon","copy",1,"icon-xs","invisible"],["type","button","matTooltip","Show links for this issue","onedevPopupPanelTrigger","","disableRipple","true",1,"unstyled","square-left",3,"onHotkey","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed","click","onedevPopupPanelTriggerFor",
"hotkey","hotkeyEnabled"],["svgIcon","arrow-dropdown",1,"icon-xs"],["role","region"],["cdkTrapFocus","",1,"issue-id-picker-popup",3,"cdkTrapFocusAutoCapture"],[1,"id-details-row"],[3,"htmlFor"],["cdkFocusInitial","","type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],[1,"muted","shortcut"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],
["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy text",
"matTooltip","Copy text",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-issue-shortlink-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy shortlink","matTooltip","Copy shortlink",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",
1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"copy",3,"onHotkey",
"click","hotkey","hotkeyEnabled"]],template:function(a,b){a&1&&(K(0,"button",8),N("click",function(){return b.copyIssueId()})("mousedown",function(){return b.copyIssueId()}),Q(1),F(2,Lgb,1,0,"mat-icon",9),L(),F(3,Wgb,6,5));a&2&&(wg("square-right",b.showCopyOptions),Kf("aria-label","Copy issue number "+b.issueId),B(),S(" ",b.issueId," "),B(),G(b.showCopyOptions?-1:2),B(),G(b.showCopyOptions?3:-1))},dependencies:[Qy,Dy,mU,gB,eB,oK,iA,uW,vW],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 xW=function(){};xW.prototype.ngOnInit=function(){};xW.prototype.onClick=function(a){a.stopPropagation()};xW.\u0275fac=function(a){return new (a||xW)};
xW.\u0275cmp=D({type:xW,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&&(K(0,"b-async-data-placeholder",0),F(1,Xgb,1,2,"b-issue-id-picker",1),L());a&2&&(I("isReady",!!b.id),B(),G(b.id?1:-1))},dependencies:[rW,wW],encapsulation:2,changeDetection:0});var yW=function(){this.IssuePriority=dcd},jwd=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""}};yW.\u0275fac=function(a){return new (a||yW)};
yW.\u0275cmp=D({type:yW,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},standalone:!1,decls:2,vars:3,consts:[[1,"p-chip"]],template:function(a,b){a&1&&(K(0,"span",0),Q(1),L());a&2&&(xg(jwd(b)),B(),a=b.issuePriority,S(" ",a==null?"--":Ocd[a]," "))},styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var kwd=function(){this.priority=this.issue=null;this.isDataLoaded=!1};kwd.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};kwd.\u0275fac=function(a){return new (a||kwd)};
kwd.\u0275cmp=D({type:kwd,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},standalone:!1,features:[bx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"issuePriority"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Ygb,1,1,"b-issue-priority-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.priority?1:-1))},dependencies:[rW,yW],encapsulation:2,changeDetection:0});var zW=function(){this.changelistFridge=p(BO);this.IssueStatus=tcd;this.STATUS_JS_FULL_TEXT=Am;this.STATUS_JS_TERSE=Lcd;this.isFixed=EUa;this.issue=null;this.isDataLoaded=!1};zW.prototype.ngOnChanges=function(){if(this.showPendingFix&&this.issue){var a=this.changelistFridge.peekAllRecords(),b;this.pendingFixCl=bhb(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};
zW.\u0275fac=function(a){return new (a||zW)};
zW.\u0275cmp=D({type:zW,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue",showPendingFix:"showPendingFix"},standalone:!1,features:[bx],decls:3,vars:2,consts:[[3,"isReady"],["target","_blank",3,"class","href","matTooltip"],["target","_blank",3,"href","matTooltip"],[3,"class","title"],[3,"title"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Zgb,2,8,"a",1)(2,ahb,1,1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.pendingFixCl&&!b.isFixed(b.issue)?1:2))},dependencies:[rW,
oK,iA],encapsulation:2,changeDetection:0});var AW=function(){this.el=p(Jd);this.bFocus=!0;this.nativeElement=this.el.nativeElement};AW.prototype.ngOnInit=function(){lwd(this)};AW.prototype.ngOnChanges=function(){lwd(this)};var lwd=function(a){setTimeout(function(){a.bFocus&&a.nativeElement.focus()})};AW.\u0275fac=function(a){return new (a||AW)};AW.\u0275dir=df({type:AW,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},standalone:!1,features:[bx]});var BW=function(){};BW.\u0275fac=function(a){return new (a||BW)};BW.\u0275mod=cf({type:BW});
BW.\u0275inj=Hc({});var CW=function(){this.activeSession=p(qu);this.issueApi=p(HP);this.analytics=p(aQ);this.errorHandler=p(kO);this.onCc=new XP};CW.prototype.ngOnInit=function(){};
CW.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)}))};CW.\u0275fac=function(a){return new (a||CW)};CW.\u0275cmp=D({type:CW,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&&(K(0,"button",0),N("click",function(){return b.toggle()}),F(1,chb,2,0,"ng-container")(2,dhb,2,0,"ng-container"),L());a&2&&(B(),G(b.ccState?1:2))},dependencies:[gB,cB],encapsulation:2});var sv=function(a,b){this.name_=b||"";this.address=a||""},mwd=/"/g,nwd=/\\"/g,owd=/\\/g,pwd=/\\\\/g,qwd=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),rwd=new RegExp("["+Lta({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");sv.prototype.getName=function(){return this.name_};sv.prototype.setName=function(a){this.name_=a};sv.prototype.toString=function(){return swd(this,'()<>@:\\".[],;')};
var swd=function(a,b){var c=a.getName();c=c.replace(mwd,"");a:{for(var d=c,e=0;e<b.length;e++)if(za(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(owd,"\\\\")+'"');return c==""?a.address:a.address==""?c:c+" <"+a.address+">"};sv.prototype.isValid=function(){return qwd.test(this.address)};
var hv=function(a){var b=twd;a=a.replace(rwd,"");for(var c="",d="",e=0;e<a.length;){var f=a;var g=e,k=f.charAt(g),l='"<(['.indexOf(k);if(l==-1||uwd(f,g))f=k;else{l='">)]'.charAt(l);for(var r=f.indexOf(l,g+1);r>=0&&uwd(f,r);)r=f.indexOf(l,r+1);f=r>=0?f.substring(g,r+1):k}f.charAt(0)=="<"&&f.indexOf(">")!=-1?(d=f.indexOf(">"),d=f.substring(1,d)):d==""&&(c+=f);e+=f.length}d==""&&c.indexOf("@")!=-1&&(d=c,c="");c=rHc(c);c=sHc(c,"'");c=sHc(c,'"');c=c.replace(nwd,'"');c=c.replace(pwd,"\\");d=rHc(d);return new b(d,
c)},uwd=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 twd=function(a,b){sv.call(this,a,b)};rw(twd,sv);var vwd=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}$");twd.prototype.isValid=function(){return wwd(this.address)};var wwd=function(a){return a==null?!1:vwd.test(a)};twd.prototype.toString=function(){return swd(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var xwd=/[^a-z0-9]+/ig,ywd=[9,11,10,12,13,14,19],zwd=[9,19,11],Awd=[1,6],Bwd=[2,7],Cwd=[3,8],Dwd=[1,2,6,7,8,9,11,10,12,13,14,18,19],Ovc=[3,4,5,17,20],Cv=function(a,b,c){this.type_=a;this.normalizedValue_=xs(b);this.originalValue_=xs(c===void 0?b:c)};Cv.prototype.getType=function(){return this.type_};Cv.prototype.getValue=function(){return this.normalizedValue_};Cv.prototype.getOriginalValue=function(){return this.originalValue_};
var xv=function(a){return ywd.includes(a.getType())},Ewd=function(a){return zwd.includes(a.getType())},Fwd=function(a){return Awd.includes(a.getType())},Mvc=function(a,b){switch(a){case 1:return Av(b);case 6:return new Cv(6,xs(b).toLowerCase(),b);case 2:return Jtc(b);case 7:return Ltc(b);case 3:return Otc(b);case 8:return new Cv(8,xs(b).toLowerCase(),b);case 5:return new Cv(5,xs(b).toLowerCase(),b);case 4:return Ptc(b);case 9:return Gwd(b);case 12:return new Cv(12,xs(b),b);case 13:return new Cv(13,
xs(b),b);case 14:return new Cv(14,xs(b),b);case 10:return new Cv(10,xs(b),b);case 11:return new Cv(11,xs(b),b);case 18:return Nvc(b);case 19:return new Cv(19,xs(b),b);case 20:return new Cv(20,xs(b),b);case 17:return Hwd;default:return new Cv(0,b)}},Av=function(a){return new Cv(1,xs(a).toLowerCase(),a)},Jtc=function(a){var b=xs(a).toLowerCase().replace(xwd,"");return new Cv(2,b,a)},Otc=function(a){var b=xs(a).toLowerCase();return b==="me"?Hwd:new Cv(3,b,a)},Ptc=function(a){return new Cv(4,xs(a).toLowerCase(),
a)},Ltc=function(a){var b=xs(a).toLowerCase().replace(xwd,"");return new Cv(7,b,a)},Gwd=function(a){return new Cv(9,xs(a).toLowerCase(),a)},Nvc=function(a){return new Cv(18,xs(a),a)},rv=function(a){var b=a.indexOf(":");return Mvc(b>0?parseInt(a.substring(0,b),10):0,a.substring(b+1))};Cv.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};Cv.prototype.serialize=function(){return this.type_+":"+this.originalValue_};
Cv.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};var Iwd=function(a){switch(a.getType()){case 1:case 6:return wwd(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(xwd,""),a.length>=3&&a[0]>="0"&&a[0]<="9";case 3:case 8:return!!xs(a.originalValue_);default:return!0}},Ev=Mvc(0,""),Hwd=new Cv(17,"me");var $u=function(){this.filter_=null;this.boostIds_=[];this.primingTimeoutMillis_=1E3;this.searchMaxResults_=this.suggestMaxResults_=this.searchFormat_=this.suggestFormat_=this.queryScope_=0;this.slots_=[];this.entryPoint_=0;this.filterEmptyExplodingGroups_=!0;this.selectedCustomProviderNames_=null};h=$u.prototype;h.getFilter=function(){return this.filter_};h.setFilter=function(a){this.filter_=a;return this};h.setQueryScope=function(a){this.queryScope_=a;return this};h.getQueryScope=function(){return this.queryScope_};
h.getEntryPoint=function(){return this.entryPoint_};h.setEntryPoint=function(a){this.entryPoint_=a;return this};h.getSuggestFormat=function(){return this.suggestFormat_};h.getSearchFormat=function(){return this.searchFormat_};h.getSuggestMaxResults=function(){return this.suggestMaxResults_};h.getSearchMaxResults=function(){return this.searchMaxResults_};
h.clone=function(){var a=new $u;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 aw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aw,W);aw.prototype.getEntryPoint=function(){return xi(this,5)};aw.prototype.setEntryPoint=function(a){return Hn(this,5,a)};var bw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bw,W);bw.prototype.getEntryPoint=function(){return xi(this,1)};bw.prototype.setEntryPoint=function(a){return Hn(this,1,a)};var DW=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DW,W);DW.prototype.getQuery=function(){return vi(this,1)};DW.prototype.setQuery=function(a){return pj(this,1,a)};DW.prototype.clearQuery=function(){Aw(this,1)};DW.prototype.hasQuery=function(){return im(this,1)};var Jwd=function(a,b){wn(a,3,b)};DW.prototype.getAffinityVersion=function(){return Cm(this,7)};DW.prototype.setAffinityVersion=function(a){Fn(this,7,a)};
DW.prototype.getAffinityVersionOrUndefined=function(){return Kw(this,7)};var Lwd=function(a){var b=Kwd();Sw(a,8,b)};h=DW.prototype;h.getInstanceId=function(){return vi(this,11)};h.setInstanceId=function(a){return pj(this,11,a)};h.clearInstanceId=function(){Aw(this,11)};h.hasInstanceId=function(){return im(this,11)};h.getInstanceIdOrUndefined=function(){return Lw(this,11)};var Wv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wv,W);h=Wv.prototype;h.getPersonLoggingId=function(){return vi(this,1)};h.setPersonLoggingId=function(a){pj(this,1,a)};h.getFieldLoggingId=function(){return vi(this,2)};h.setFieldLoggingId=function(a){pj(this,2,a)};h.setFieldValue=function(a){return pj(this,3,a)};h.clearFieldValue=function(){return Aw(this,3)};h.getName=function(){return vi(this,4)};h.setName=function(a){return pj(this,4,a)};
h.hasName=function(){return im(this,4)};h.getNameOrUndefined=function(){return Lw(this,4)};h.getContactId=function(){return vi(this,5)};h.setContactId=function(a){return pj(this,5,a)};h.getProfileId=function(){return vi(this,6)};h.getProfileId_legacyNullable=function(){return Dl(this,6)};h.setProfileId=function(a){return pj(this,6,a)};h.hasProfileId=function(){return im(this,6)};h.getFieldType=function(){return xi(this,7)};h.getIsPlaceholder=function(){return Gi(this,10)};
h.setIsPlaceholder=function(a){Pi(this,10,a)};h.getGroupId=function(){return vi(this,11)};h.setGroupId=function(a){pj(this,11,a)};h.hasGroupId=function(){return im(this,11)};h.getIsBoosted=function(){return Gi(this,12)};h.setIsBoosted=function(a){Pi(this,12,a)};var Vv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vv,W);h=Vv.prototype;h.getProvenance=function(){return xi(this,3)};h.setProvenance=function(a){return Hn(this,3,a)};h.getContext=function(){return xi(this,5)};h.getExistingSelectionsCount=function(){return Cm(this,6)};h.setExistingSelectionsCount=function(a){Fn(this,6,a)};var Uv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uv,W);Uv.prototype.getInfo=function(){return X(this,Wv,1)};var Uu=function(a){return X(a,Vv,2)};Uv.prototype.getSessionState=function(){return X(this,DW,3)};Uv.prototype.setSessionState=function(a){return Ni(this,DW,3,a)};Uv.prototype.hasSessionState=function(){return yi(this,DW,3)};var Sv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Sv,W);h=Sv.prototype;h.getType=function(){return xi(this,1)};h.setType=function(a){return Hn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValue=function(){return vi(this,2)};h.setValue=function(a){return pj(this,2,a)};h.hasValue=function(){return im(this,2)};var Mwd=function(a){this.delegate_=a};h=Mwd.prototype;h.getDelegate=function(){return this.delegate_};h.getId=function(){return this.delegate_.getId()};h.getTargetType=function(){return this.delegate_.getTargetType()};h.getValue=function(){return this.delegate_.getValue()};h.getDisplayValue=function(){return this.delegate_.getDisplayValue()};h.getCanonicalValue=function(){return this.delegate_.getCanonicalValue()};h.getDescription=function(){return this.delegate_.getDescription()};h.getName=function(){return this.delegate_.getName()};
h.getPhoto=function(){return this.delegate_.getPhoto()};h.getTagList=function(){return this.delegate_.getTagList()};h.getSourceIdList=function(){return this.delegate_.getSourceIdList()};h.getProfileId=function(){return this.delegate_.getProfileId()};h.getContactId=function(){return this.delegate_.getContactId()};h.getLoggingToken=function(){return this.delegate_.getLoggingToken()};h.getIsMe=function(){return this.delegate_.getIsMe()};h.getOrgState=function(){return this.delegate_.getOrgState()};
h.getEmailSecurityInfo=function(){return this.delegate_.getEmailSecurityInfo()};h.getDataSource=function(){return this.delegate_.getDataSource()};h.getOriginatingField=function(){return this.delegate_.getOriginatingField()};h.getReachabilityInfo=function(){return this.delegate_.getReachabilityInfo()};h.getExtendedData=function(){return this.delegate_.getExtendedData()};var ruc=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};h=ruc.prototype;h.getDisplayName=function(){return this.displayName_};h.setDisplayName=function(a){this.displayName_=a||"";return this};h.getGivenName=function(){return this.givenName_};h.setGivenName=function(a){this.givenName_=a||"";return this};h.getFamilyName=function(){return this.familyName_};h.setFamilyName=function(a){this.familyName_=a||"";return this};h.getSourceType=function(){return this.sourceType_};
h.setSourceType=function(a){this.sourceType_=a||0;return this};var Nwd=function(a,b){this.delegate_=a;this.name_=b};Y(Nwd,Mwd);Nwd.prototype.getName=function(){return this.name_};var EW=function(a){this.delegate_=a};h=EW.prototype;h.getDelegate=function(){return this.delegate_};h.getResultType=function(){return this.delegate_.getResultType()};h.getTargetList=function(){return this.delegate_.getTargetList()};h.getMemberList=function(){return this.delegate_.getMemberList()};h.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};h.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};h.getDisplayName=function(){return this.delegate_.getDisplayName()};
h.getDisplayValue=function(){return this.delegate_.getDisplayValue()};h.getDescription=function(){return this.delegate_.getDescription()};h.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};h.getIsBoosted=function(){return this.delegate_.getIsBoosted()};h.getMatchInfo=function(){return this.delegate_.getMatchInfo()};h.getExtendedData=function(){return this.delegate_.getExtendedData()};var ehb=function(a){this.delegate_=a};Y(ehb,EW);h=ehb.prototype;h.getPrimaryTarget=function(){return this.getTargetList()[0]};h.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};h.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};h.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
h.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};var fhb=function(a,b){this.delegate_=a;this.targets_=b};Y(fhb,EW);fhb.prototype.getTargetList=function(){return this.targets_};var suc=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};h=suc.prototype;h.getUrl=function(){return this.url_};h.setUrl=function(a){this.url_=a||"";return this};h.getType=function(){return this.type_};h.setType=function(a){this.type_=a;return this};h.getSourceType=function(){return this.sourceType_};h.setSourceType=function(a){this.sourceType_=a||0;return this};h.getGlyph=function(){return this.glyph_};h.setGlyph=function(a){this.glyph_=a||"";return this};
var Owd=(new suc).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),Pwd=new suc;var FW=function(){};FW.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!b.shouldRemove(d)});return c.length===0?null:c.length===a.getTargetList().length?a:ys(new fhb(a,c))};FW.prototype.reset=function(){};var hhb=function(a){this.types_=a};Y(hhb,FW);hhb.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};hhb.prototype.reset=function(){};var jhb=function(a){this.sourceIds_=a.filter(function(b){return Ovc.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return Dwd.includes(b.getType())}).map(String)};Y(jhb,FW);jhb.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 Qwd=function(a){this.sources_=a};Y(Qwd,FW);Qwd.prototype.shouldRemove=function(a){return!this.sources_.includes(a.getDataSource())};var lhb=function(a){this.filters_=a};lhb.prototype.filterResult=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};lhb.prototype.reset=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var nhb=function(a){this.filters_=a};
nhb.prototype.filterResult=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())if(c=c.value.filterResult(a))return c;return null};nhb.prototype.reset=function(a){for(var b=m(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var Rwd=mhb();var Swd=new fd("PeoplekitClientConfig"),Twd=function(a){this.matcher=a};Y(Twd,FW);Twd.prototype.shouldRemove=function(a){return a.getTargetType()===1&&this.matcher(a.getValue())};var GW=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new Nj(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=window.localStorage.getItem("onedev-darkmode")!=null;Uwd(b,b.localDarkmode);b.clientStreamzService&&y9c(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")}};GW.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(KK)};var Uwd=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};GW.\u0275fac=function(a){return new (a||GW)($c(Ae))};GW.\u0275prov=Fc({token:GW,factory:GW.\u0275fac});var Vwd=mhb(ihb(1),ohb(function(){return new Qwd(bd.apply(0,arguments))}(3),new Twd(function(a){return a.includes("-pager")||a.includes("+pager")||a.includes("-oncall")||a.includes("+oncall")||a.includes("lifeguard-ng")}))),HW=function(){this.theme=p(GW)};HW.prototype.getTheme=function(){return this.theme.clientDarkmodeSubject.getValue()?1:0};
var Wwd=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()})},uhb=function(a){return{moveAutocompleteAboveAnchorIfOffscreen:!0,density:2,theme:a.getTheme(),autoActivateFirstSearchResult:!0,showSuggestions:!1}};HW.\u0275fac=function(a){return new (a||HW)};HW.\u0275prov=Fc({token:HW,factory:HW.\u0275fac,providedIn:"root"});var Xwd=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var Ywd=function(a){this.profileId_=a};Ywd.prototype.getProfileId=function(){return this.profileId_};var Zwd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zwd,W);h=Zwd.prototype;h.setMaxResults=function(a){return Fn(this,1,a)};h.getQuery=function(){return vi(this,2)};h.setQuery=function(a){return pj(this,2,a)};h.clearQuery=function(){Aw(this,2)};h.hasQuery=function(){return im(this,2)};var $wd=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var axd=Object.freeze({preferOauth:!1}),IW=Object.freeze({userProfileId:"",apiEnv:4,userEmail:"",clearcut:axd});var bxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,1)};Y(bxd,W);var cxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cxd,W);h=cxd.prototype;h.getExperimentIdsList=function(a){return Em(this,1,Di(a))};h.setExperimentIdsList=function(a){return xc(this,1,a,Eb)};h.getExperimentIds=function(){return Mw(this,1)};h.setExperimentIds=function(a){zc(this,1,Eb,void 0,a,Fb,void 0,1)};h.getProfileId=function(){return vi(this,2)};h.getProfileId_legacyNullable=function(){return Dl(this,2)};h.setProfileId=function(a){return pj(this,2,a)};
h.hasProfileId=function(){return im(this,2)};var dxd=function(){},exd=function(){return!1},fxd=function(){this.experiments_=(new cxd).setProfileId(IW.userProfileId);this.peopleApiEnv_=IW.apiEnv;this.delegatorId_=this.userEmail_="";this.userKeys_=new Set;this.onAuthError_=dxd;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=exd;this.customDataConfig_=null;this.isOrgStateEnabled_=!1;var a=IW.userEmail;this.userEmail_=a||"";a&&this.userKeys_.add(String(Av(a)))};h=fxd.prototype;h.getUserEmail=function(){return this.userEmail_};
h.getPeopleApiEnv=function(){return this.peopleApiEnv_};h.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};h.getExperiments=function(){return this.experiments_};h.getAuthErrorHandler=function(){return this.onAuthError_};h.setClearcutUrl=function(a){this.clearcutUrl_=a};h.getClearcutUrl=function(){return this.clearcutUrl_};h.getApiKey=function(){return this.apiKey_};h.setApiKey=function(a){this.apiKey_=a;return this};var JW=function(a,b){b!=null||(b=p(Rg));var c=new fxd;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 $wd;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 Xwd(c.getPeopleApiEnv(),new Ywd(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};JW.\u0275fac=function(a){return new (a||JW)($c(Swd),$c(Rg))};JW.\u0275prov=Fc({token:JW,factory:JW.\u0275fac});var gxd=["multiUserInput"],hxd=function(a){this.component=a;this.name="Buganizer ACL Autocomplete Entries"};hxd.prototype.getPosition=function(){return 2};hxd.prototype.warmUpCache=function(){var a=new Ecd;Fcd(a,this.component.additionalContactsFn().map(function(b){var c=(new tN).setResultType(7),d=(new sN).setValue(b.id);b=Hn(d,1,18).setName((new qN).setDisplayName(b.text));Pp(c,2,sN,b);return c}));return Promise.resolve(a)};hxd.prototype.needsWarmUp=function(){return!1};
var KW=function(){Z.apply(this,arguments);var a=this;this.element=p(Jd);this.principalTypes=p(AQ);this.activeSession=p(qu);this.documentationLinks=p(YR);this.appEvents=p(PO);this.cdr=p(YP,{self:!0});this.hotkeys=p(kU);this.autocompleteConfigService=p(HW);this.usersChange=new XP(!0);this.includeViewAliases=this.removeContainerDivTabIndex=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.placeholderText=this.ariaLabel="";this.isValid=new XP;this.sessionOptions=
(new $u).setFilter(ohb(Vwd,ihb(18)));this.typedText="";this.items=[];this.additionalContactsFn=function(){return ixd(a)};this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set};Y(KW,Z);KW.\u0275dir=Z.\u0275dir;
KW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){a.typedText=""}));this.subscriptions.add(lU(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 jxd(c)},validateInternalAccessLevel:function(b,c){return kxd(a,c)},validateExternalAccessLevel:function(b,
c){return lxd(a,c)}},this.customValidators)};KW.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=mxd(this,this.users),nxd(this)};var nxd=function(a){var b=[].concat(q(a.items)),c=oxd(b),d=pxd(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&mm(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
KW.prototype.validate=function(a,b,c){for(var d=new Set,e=m(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;g(a,c)||d.add(f)}a=m(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=m(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return this.violations.size===0};
var shb=function(a){!a.isWidgetDisabled()&&qxd(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},qhb=function(a){zs(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};KW.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var qxd=function(a){var b,c;return a.maxUserAllowed<0||((c=(b=a.users)==null?void 0:b.length)!=null?c:0)<a.maxUserAllowed};
KW.prototype.removeItem=function(a){this.isWidgetDisabled()||!zs(this,a)||this.items[a].isReadonly||(qhb(this),this.items.splice(a,1),nxd(this))};KW.prototype.setAccessLevel=function(a){this.accessLevel=a};
var ixd=function(a){return rxd(a).map(function(b){return{text:FRa(b),id:ds({alias:b})}})},rxd=function(a){if(!a.includeAliases||TN(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},thb=function(a,b){b&&(b=yud.test(b)?sxd(a,b):txd(a,b),a.items.push(b));a.typedText="";nxd(a)},zs=function(a,b){return b>=0&&b<a.items.length},sxd=function(a,b){var c=c===void 0?
!1:c;var d=Edb(b);if(d.alias===void 0)throw Error("Se`"+b);b=d.alias;d=FRa(b);return new uxd("ALIAS",b,d,null,c,a)},vxd=function(a,b){b=T7a(b);var c=new uxd("GROUP",b,b,null,!1,a);BQ(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;nxd(a)});return c},wxd=function(a,b){var c=c===void 0?!1:c;b=T7a(b);var d=new uxd("USER",b,b,null,c,a);BQ(a.principalTypes,b,!0).then(function(e){d.detailedUserType=e.detailedUserType;nxd(a)});return d},txd=function(a,b){var c=c===void 0?!1:
c;b=T7a(b);var d=new uxd("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);BQ(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;nxd(a)});return d},xxd=function(a,b,c){return new uxd("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};KW.prototype.getAccessLevel=function(){return this.accessLevel};KW.prototype.getAppName=function(){return this.activeSession.getAppName()};
KW.prototype.onKeyDown=function(a){a.keyCode===8?zs(this,this.selectedChipIndex)?(zs(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?zs(this,this.selectedChipIndex)&&zs(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):a.keyCode===39&&shb(this)};
var mxd=function(a,b){b=(b||[]).map(function(d){return yxd(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 xxd(a,d.displayText,d.values.map(function(e){return yxd(a,e)}))});return[].concat(q(c),q(b))}return b},yxd=function(a,b){var c=b.split(":");if(c.length!==2)throw Error("Te`"+b);var d=c[0];if(d!=="USER"&&d!=="GROUP"&&d!=="ALIAS")throw Error("Te`"+b);return d==="ALIAS"?sxd(a,b):d===
"USER"?wxd(a,c[1]):vxd(a,c[1])},oxd=function(a){return(a||[]).filter(function(b){return b.principalType!=="PRINCIPAL_TYPE_UNSPECIFIED"}).map(function(b){return b.principalType+":"+b.value})},pxd=function(a){return(a||[]).filter(function(b){return b.detailedUserType!=="NO_DETAILED_TYPE"}).map(function(b){return b.detailedUserType+":"+b.value})},jxd=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},kxd=function(a,b){return a.accessLevel!=="INTERNAL"?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
lxd=function(a,b){return a.accessLevel!=="EXTERNAL_PARTNER"?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};KW.prototype.selectAutocomplete=function(a){a.length>0&&(this.typedText=a[0].result().getPrimaryTarget().getValue(),thb(this,this.typedText.split(",")[0].trim()),this.isFocused=!1,this.cdr.markForCheck())};KW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(KW)))(b||KW)}}();
KW.\u0275cmp=D({type:KW,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&hg(gxd,5);if(a&2){var c;lg(c=mg())&&(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:[Gg([YP,JW,{provide:Swd,useFactory:function(){var a=p(KW),b=p(Swd,{skipSelf:!0}),c;return Object.assign({},b,{staticDataProviders:[].concat(q((c=b.staticDataProviders)!=null?c:[]),[new hxd(a)])})}}]),Gf,bx],decls:17,vars:15,consts:[["multiUserInput",""],["role","list",1,"bv2-multi-user-input",
"keep-focus-ring",3,"click"],["id","input-description","hidden","",1,"screen-reader-only"],["role","listitem",1,"bv2-user-chip"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay","ngModel","disabled","placeholder"],["role","alert",1,"bv2-multi-user-errors"],[3,"chipSelection","chipClear","chipRemove","isReadonly","isSelected",
"isWidgetDisabled","principalType","detailedUserType","nestedChips","value","displayText","accessLevel"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteSelectionChange","ngModelChange","focus","blur","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay","ngModel","disabled","placeholder"],["target","_blank"]],template:function(a,b){a&1&&(K(0,"div",
1),N("click",function(){return shb(b)}),K(1,"div",2),Q(2," Press tab to navigate through users and right arrow to go to input section "),L(),K(3,"div"),Of(4,rhb,2,9,"div",3,Nf),F(6,vhb,2,6,"input",4),L()(),K(7,"div",5),F(8,whb,4,1,"span"),F(9,xhb,2,0,"span"),F(10,yhb,2,0,"span"),F(11,zhb,2,0,"span"),F(12,Ahb,2,0,"span"),F(13,Bhb,2,0,"span"),F(14,Chb,2,0,"span"),F(15,Dhb,2,0,"span"),F(16,Ehb,2,0,"span"),L());if(a&2){wg("focused",b.isFocused);var c;Kf("tabindex",b.removeContainerDivTabIndex?-1:0)("aria-label",
(c=b.idForInputBox)!=null?c:0);B(4);Pf(b.items);B(2);G(qxd(b)?6:-1);B();Kf("aria-hidden",b.violations.size===0);B();G(b.violations.has("noRestrictedPlusGroups")?8:-1);B();G(b.violations.has("validateGaia")?9:-1);B();G(b.violations.has("validateInternalAccessLevel")?10:-1);B();G(b.violations.has("validateExternalAccessLevel")?11:-1);B();G(b.violations.has("escalationOwnerNotUser")?12:-1);B();G(b.violations.has("escalationOwnerNotGoogler")?13:-1);B();G(b.violations.has("userNotInGoogleDomain")?14:-1);
B();G(b.violations.has("userAlreadySelected")?15:-1);B();G(b.violations.has("isNotUserType")?16:-1)}},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 uxd=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType="NO_DETAILED_TYPE";this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};h=uxd.prototype;
h.getTooltip=function(){if(this.principalType!=="ALIAS")return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.parentController.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All users, excluding the google.com domain.";case "public":return"All users";default:throw Error("Ue`"+this.value);}};
h.isGroupChip=function(){return this.principalType==="GROUP"};h.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};h.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};h.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};h.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};
h.isContainerChip=function(){return this.nestedChips!==null};h.isInternalAccessViolated=function(){return this.parentController.getAccessLevel()==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};h.isExternalPartnerAccessViolated=function(){return this.parentController.getAccessLevel()==="EXTERNAL_PARTNER"&&this.isPublicChip()};h.isUserChip=function(){return this.principalType==="USER"};var LW={type:"no_indicator",displayText:""},zxd={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."},Ihb={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."},Axd={type:"visible_to_partners",
displayText:"Visible to partners",displayTextCompact:"Partners",explanation:"This issue is visible to partner users."},Fhb={type:"visible_to_public",displayText:"Visible to public",displayTextCompact:"Public",explanation:"This issue is visible to the public."},MW=function(){this.issueFullFridge=p(cQ);this.componentAccessPolicyFridge=p(GO);this.activeSession=p(qu)},Dxd=function(a,b,c){var d=a.issueFullFridge.watch(b);b=pe(function(){return c?ee(c):d.pipe(A(function(e){return e==null?void 0:e.snapshot[0].componentId}))}).pipe(Af(function(e){return e?
a.componentAccessPolicyFridge.watch(e):ee(void 0)}));return le([d,b]).pipe(A(function(e){var f=m(e);e=f.next().value;f=f.next().value;var g,k;var l=(k=e==null?void 0:e.snapshot[0].issueAccessLimitLevel)!=null?k:void 0;k=e==null?void 0:(g=e.accessLimit)==null?void 0:g.accessLevel;if(TN(a.activeSession))g=LW;else if(SN(a.activeSession))g=Bxd(l,k,f);else if(a.activeSession.isInternalSession())g=Cxd(l,k,f);else throw Error("Ve");return g}))},Bxd=function(a,b,c){switch(b){case "INTERNAL":return LW;case "EXTERNAL_PARTNER":return LW;
case "EXTERNAL_PUBLIC":return Jhb(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return LW;default:return LW}},Cxd=function(a,b,c){switch(b){case "INTERNAL":return LW;case "EXTERNAL_PARTNER":return a&&Hhb(a)?zxd:Axd;case "EXTERNAL_PUBLIC":return Jhb(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return LW;default:return LW}};MW.\u0275fac=function(a){return new (a||MW)};MW.\u0275prov=Fc({token:MW,factory:MW.\u0275fac,providedIn:"root"});var NW=function(){Z.apply(this,arguments);var a=this;this.accessIndicatorService=p(MW);this.documentationLinks=p(YR);this.issueFullFridge=p(cQ);this.issueApi=p(GP);this.compactMode=!1;this.issueId$=new wf;this.accessIndicator$=this.issueId$.pipe(Af(function(b){return Dxd(a.accessIndicatorService,b)}));this.chipClass$=this.accessIndicator$.pipe(A(function(b){return b.type}));this.chipText$=this.accessIndicator$.pipe(A(function(b){return a.compactMode?b.displayTextCompact||b.displayText:b.displayText}));
this.bubbleText$=this.accessIndicator$.pipe(A(function(b){return b.explanation}));this.shouldShowIndicator$=this.accessIndicator$.pipe(A(function(b){return b.type!=="no_indicator"}));this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.viewers$=le([this.issue$,this.accessIndicator$]).pipe(lf(0,Br),Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(!b||!Phb(c.type))return ee([]);var d,e;return a.issueApi.getRetainedAccessPrincipals(b==null?void 0:b.issueId,
(e=b==null?void 0:(d=b.snapshot[0])==null?void 0:d.issueAccessLimitLevel)!=null?e:"LIMIT_NONE",[],[]).pipe(A(function(f){f=[].concat(q(gs(f.writers)),q(gs(f.appenders)),q(gs(f.readers)));return[].concat(q(new Set(f)))}))}),xf({refCount:!0,bufferSize:1}));this.showHovercard$=this.viewers$.pipe(A(function(b){return!!b.length}),we(Boolean),A(function(){}));this.loadTooltip$=new wf(1);this.tooltipText$=this.loadTooltip$.pipe(Af(function(){return a.viewers$}),A(function(b){return b.length?"Press Alt + Right arrow for more details":
""}));this.loadTooltipOnce=uVa(function(){a.loadTooltip$.next()})};Y(NW,Z);NW.\u0275dir=Z.\u0275dir;NW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.tooltipText$.subscribe(function(b){b&&(a.matTooltip.message=b,a.matTooltip.show())}))};da.Object.defineProperties(NW.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});NW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(NW)))(b||NW)}}();
NW.\u0275cmp=D({type:NW,selectors:[["b-issue-visibility-chip"]],viewQuery:function(a,b){a&1&&hg(iA,5);if(a&2){var c;lg(c=mg())&&(b.matTooltip=c.first)}},inputs:{issueId:"issueId",compactMode:"compactMode"},standalone:!1,features:[Gf],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,Ohb,15,18),T(1,"async"));a&2&&G(U(1,1,b.shouldShowIndicator$)?0:-1)},dependencies:[KW,DK,EK,LK,FK,oK,iA,Lx],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 OW=function(){Z.apply(this,arguments);this.errorHandler=p(kO);this.issueFullFridge=p(cQ);this.upvoted=!1;this.voteCount=0;this.onVote=new XP;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};Y(OW,Z);OW.\u0275dir=Z.\u0275dir;
OW.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;Chd(this.issueFullFridge,String(this.issueId),this.upvoted).pipe(nf(1),Bf(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};OW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(OW)))(b||OW)}}();
OW.\u0275cmp=D({type:OW,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("no-votes",b.voteCount<=0)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},standalone:!1,features:[Gf],decls:4,vars:6,consts:[["type","button","mat-button","",1,"small",3,"click","matTooltip"],["svgIcon","exposure_plus_1_24px",1,"icon-m"],[3,"title"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){return b.onClick()}),M(1,"mat-icon",
1),K(2,"output",2),Q(3),L()());a&2&&(I("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),Kf("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),B(2),I("title",Eg("",b.voteCount," votes on this issue")),B(),S(" ",b.voteCount>99999?"99999+":b.voteCount," "))},dependencies:[Dy,gB,cB,oK,iA],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 cib=function(){return[]},PW=function(){Z.apply(this,arguments);var a=this;this.cdr=p(YP,{self:!0});this.activeSession=p(qu);this.analytics=p(aQ);this.relationshipService=p(gQ);this.issueFullFridge=p(cQ);this.butterBar=p(QN);this.STATUS_JS_FULL_TEXT=Am;this.ISSUE_PRIORITY_TEXT_JS=Ocd;this.ISSUE_PRIORITY_ENUM=dcd;this.ROUTES=ps;this.providedIssueId$=new wf(1);this.issue$=this.providedIssueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}),we(Qm));this.FormattingMode=Um;this.init=new wf(1)};
Y(PW,Z);PW.\u0275dir=Z.\u0275dir;PW.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issue$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.issue=b;a.firstEvent=b.description&&o1a(b.description,b);a.cdr.markForCheck();a.init.next()})};PW.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
PW.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 bib=function(a,b){return vm(b).includes(a.activeSession.getUserEmail())},Xhb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=a.issueId,a.issueFullFridge.manualUpdate(b,function(e){var f=e.parentIssueIds.indexOf(c);f<0||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Yd(d,2,3),z(d,ie(a.relationshipService.delete(c,"CHILD",b)),3);if(d.nextAddress!=2)return Zd(d),a.issueFullFridge.poke(b),ae(d,0);be(d);a.butterBar.showWarning("Error removing the parent issue.");return d.jumpTo(3)})};
PW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(PW)))(b||PW)}}();
PW.\u0275cmp=D({type:PW,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},standalone:!1,features:[Gg([YP]),Gf],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[1,"bv2-hovercard-wide"],[3,"href"],[1,"bv2-issue-card-title"],[1,"issue-card-id-snippets"],[3,"issueId"],[1,"priority-status"],[1,"bv2-priority"],[1,"issue-card-buttons","margin-y"],[3,"onCc","issueId","ccState"],
["type","button","mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"medium"],[1,"bv2-issue-card-comment"],[3,"model","hovercardEnabled"],[3,"issueId","voteCount","upvoted"],["type","button","mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"medium",3,"click"],["mode","date",1,"float-right",3,"timestamp"],[3,"issueId","issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,dib,22,17,"div",1),
L());if(a&2){var c;B();G((c=b.issue&&b.issue.snapshot[0])?1:-1,c)}},dependencies:[gB,cB,oK,iA,$U,sV,eU,OW,NW,CW],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 Exd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Exd,W);h=Exd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.getText=function(){return vi(this,2)};h.setText=function(a){return Gm(this,2,a)};var Fxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Fxd.messageId)};Y(Fxd,W);Fxd.prototype.getIt=function(){return X(this,Exd,3,jb)};Fxd.prototype.setIt=function(a){return Ni(this,Exd,3,a,jb)};Fxd.messageId="b.CheckBannedWordsRequest";var Gxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gxd,W);var Hxd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Hxd.messageId)};Y(Hxd,W);Hxd.prototype.getIt=function(){return X(this,Gxd,2,jb)};Hxd.prototype.setIt=function(a){return Ni(this,Gxd,2,a,jb)};Hxd.messageId="b.CheckBannedWordsResponse";var QW=function(){this.executor=p(ZN)};QW.prototype.checkBannedWords=function(a){a=(new Fxd).setIt((new Exd).setComponentId(Number(a.componentId)).setText(a.text));return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:Hxd}).pipe(A(eib))};QW.\u0275fac=function(a){return new (a||QW)};QW.\u0275prov=Fc({token:QW,factory:QW.\u0275fac,providedIn:"root"});var RW=function(){this.observableApi=p(QW)};RW.prototype.checkBannedWords=function(a){return ie(this.observableApi.checkBannedWords(a))};
RW.\u0275fac=function(a){return new (a||RW)};RW.\u0275prov=Fc({token:RW,factory:RW.\u0275fac,providedIn:"root"});var SW=function(){Z.apply(this,arguments);this.bannedWordsApi=p(RW);this.activeSession=p(qu);this.errorHandler=p(kO);this.analytics=p(aQ);this.matchedPatterns=[];this.warningState$=new Nj("INITIAL");this.isUserInternal=this.activeSession.isInternalSession();this.showWarning$=this.warningState$.pipe(A(function(a){return a==="SHOW_WARNING"}))};Y(SW,Z);SW.\u0275dir=Z.\u0275dir;
SW.prototype.check=function(a,b,c){var d=this;return y(function(e){if(!d.isUserInternal||!b||!c)return e.return(!0);switch(d.warningState$.value){case "INITIAL":return e.return(Ixd(d,c,a));case "SHOW_WARNING":return d.warningState$.next("SKIP_WARNING"),d.analytics.trackEvent("bannedWords","skipBannedWordsCheck",As(d)),e.return(!0);default:return e.return(!0)}})};
var Ixd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return Yd(f,2),z(f,a.bannedWordsApi.checkBannedWords({componentId:b,text:c}),4);if(f.nextAddress!=2)return d=f.yieldResult,d.matchedPatterns.length>0?(a.matchedPatterns=d.matchedPatterns,a.warningState$.next("SHOW_WARNING"),a.analytics.trackEvent("bannedWords","failBannedWordsCheck",As(a)),f.return(!1)):f.return(!0);e=be(f);mO(a.errorHandler,e);return f.return(!0)})},As=function(a){return a.matchedPatterns.join(", ")};
SW.prototype.showWarning=function(){return this.warningState$.value==="SHOW_WARNING"};SW.prototype.reset=function(){this.matchedPatterns=[];this.warningState$.next("INITIAL")};SW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(SW)))(b||SW)}}();SW.\u0275prov=Fc({token:SW,factory:SW.\u0275fac});var Jxd=["issueTitleCellInputEl"],TW=function(){this.appEvents=p(PO);this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.bannedWordsChecker=p(SW);this.savingTitle=!1;this.issue=null;this.isEditMode=this.enableHovercard=this.useButtonToNavigate=!1;this.onCancel=new XP;this.onSave=new XP;this.issueNavigated=new XP;this.title="";this.isDataLoaded=!1;this.link=""};
TW.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 iib=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)}};TW.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):ps.viewIssue.makeHref(a)};
var fib=function(a){var b,c=(b=a.issue)==null?void 0:b.issueId;c!=null&&a.appEvents.didShowIssueHovercard.next(c)},pib=function(a){var b,c;return y(function(d){if(d.nextAddress==1){if(!a.title||a.savingTitle||((b=a.issue)==null?void 0:b.issueId)==null)return d.return();a.savingTitle=!0;$d(d,2);return z(d,a.bannedWordsChecker.check(a.title,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",a.issue.snapshot[0].componentId),4)}if(d.nextAddress!=2)return c=d.yieldResult,c?z(d,Kxd(a),2):(a.issueTitleCellInputEl.nativeElement.focus(),
d.jumpTo(2));Zd(d);a.savingTitle=!1;return ae(d,0)})},Kxd=function(a){return y(function(b){if(b.nextAddress==1)return a.bannedWordsChecker.reset(),$d(b,2),z(b,ie(Dhd(a.issueFullFridge,a.issue.issueId,a.title.trim())),2);Zd(b);a.onSave.emit();return ae(b,0)})};TW.\u0275fac=function(a){return new (a||TW)};
TW.\u0275cmp=D({type:TW,selectors:[["b-issue-title-cell"]],viewQuery:function(a,b){a&1&&hg(Jxd,5);if(a&2){var c;lg(c=mg())&&(b.issueTitleCellInputEl=c.first)}},hostAttrs:[1,"flex-kids-x","line-clamp-3"],hostVars:2,hostBindings:function(a,b){a&2&&wg("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:[Gg([SW]),bx],decls:12,vars:9,consts:[["issueHovercard","onedevHovercard"],["editableIssueTitle",""],["issueTitleCellInputEl",""],[1,"title","title-location","gap-s",3,"isReady"],[3,"trackerId","compactMode"],[1,"b-chip","s","margin-s-left",3,"class","matTooltip"],[3,"issueId"],[1,"banned-words-warning","break-word"],[1,"line-clamp-3",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"line-clamp-3"],["mat-icon-button","",
"tabindex","0","matTooltip","Open issue in a new tab","aria-label","Open issue",1,"small","visible-on-row-active","hover-link","pop-out-link",3,"keydown","click","routerLink","target"],["svgIcon","pop-out",1,"icon-s"],[1,"line-clamp-3",3,"onedevHovercardShown","onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],[1,"b-chip","s","margin-s-left",3,"matTooltip"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",
1,"color-bad-text","keep-underline"],[1,"hover-link","line-clamp-3","break-word",3,"routerLink","target","onedevHovercardTrigger","onedevHovercardActive"],["type","text","placeholder","Enter a new title",1,"grow-1",3,"input","ngModelChange","keydown","bFocus","ngModel"],["id","save-button","type","button","mat-stroked-button","","color","primary","format","fill","size","small","title","Change issue title","matTooltip","(Shortcut: Enter)",3,"onAction","disabled"],["id","cancel-button","type","button",
"mat-stroked-button","","format","flat","size","small","title","Cancel","matTooltip","(Shortcut: Esc)",3,"onAction","disabled"],[1,"hover-link","line-clamp-3","break-word",3,"keydown","click","onedevHovercardShown","routerLink","target","onedevHovercardTrigger","onedevHovercardActive"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",3),M(1,"b-tracker-chip-smart",4),F(2,jib,4,3)(3,lib,1,1,"ng-container"),F(4,mib,2,7,"span",5),L(),K(5,"onedev-hovercard",null,0),F(7,nib,1,1,"b-issue-card",
6),L(),F(8,oib,4,1,"p",7),T(9,"async"),E(10,sib,2,1,"ng-template",null,1,Mg));if(a&2){var c;I("isReady",b.isDataLoaded);B();I("trackerId",b.issue==null?null:b.issue.trackerId)("compactMode",!0);B();G(b.useButtonToNavigate?2:3);B(2);G((c=b.trailingChip)?4:-1,c);B(3);G(b.enableHovercard&&b.issue?7:-1);B();G(U(9,7,b.bannedWordsChecker.showWarning$)?8:-1)}},dependencies:[rW,Kx,Dy,$E,MU,AW,yj,$D,gE,gB,eB,oK,iA,DK,LK,PW,$V,Lx],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 UW=function(a,b){this.checker=a;this.document=b};UW.prototype.focusFirstFocusableElement=function(a){(a=Lxd(this,a,!0))&&a.focus()};var Lxd=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?Lxd(a,b[c]):null;if(d)return d}return null};UW.\u0275fac=function(a){return new (a||UW)($c(Ky),$c(Sh))};UW.\u0275prov=Fc({token:UW,factory:UW.\u0275fac,providedIn:"root"});var VW=function(){this.elementRef=p(Jd);this.interactivityHelper=p(UW)};VW.prototype.ngOnInit=function(){};VW.prototype.focus=function(){this.element.contains(document.activeElement)||this.interactivityHelper.focusFirstFocusableElement(this.element)};da.Object.defineProperties(VW.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});VW.\u0275fac=function(a){return new (a||VW)};
VW.\u0275dir=df({type:VW,selectors:[["tr","row",""]],inputs:{row:"row"},exportAs:["tableRowDirective"],standalone:!1});var WW=function(){};WW.\u0275fac=function(a){return new (a||WW)};WW.\u0275mod=cf({type:WW});WW.\u0275inj=Hc({});var Mxd=function(a,b){mz.call(this,a);this.directives=a;this.isEqual=b};Y(Mxd,mz);var Cs=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.directives.changes.pipe(zf(a.directives.toArray()),A(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),we(Boolean),xe(3E3))),2);c=d.yieldResult;a.setActiveItem(c);ce(d)})};var Nxd=new fd("GM2_TABLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var XW=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};XW.\u0275fac=function(a){return new (a||XW)(Ye(Nxd))};XW.\u0275dir=df({type:XW,selectors:[["table","mat-table",""],["mat-table"]],hostAttrs:[1,"gmat-mdc-table"],standalone:!1});var Oxd=["componentSearchMenuTrigger"],Pxd=["searchInput"],Qxd={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},Rxd={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",SEMANTIC_SEARCH_RESULTS:"Semantic search results",ISSUE_IDS:"Issue IDs"},Sxd={},Txd=(Sxd["Similar issues"]="similar",Sxd["Search results"]="exact",Sxd["Semantic search results"]="semantic",Sxd["Issue IDs"]="id",Sxd),Uxd={SEMANTIC_SEARCH:"Smart search",EXACT_MATCH:"Exact match"},YW=function(){Z.apply(this,
arguments);var a=this;this.dialogRef=p(NA);this.initialData=p(PA);this.issueFullFridge=p(cQ);this.issuePickerSearchService=p(qW);this.analytics=p(aQ);this.activeSession=p(qu);this.componentFridge=p(MO);this.teamFridge=p(PQ);this.domSafe=p(iR);this.elRef=p(Jd);this.focusTrapFactory=p(ez);this.userPreferencesManager=p(dR);this.issueUserEventsService=p(fW);this.destroyRef=p(Ee);this.enableExpandedScopeIssuePicker=this.activeSession.getFlag("enableExpandedScopeIssuePicker");this.isInternalSession=this.activeSession.isInternalSession();
this.data=Object.assign({},Qxd,this.initialData);var b;this.currentComponentId=(b=this.data.componentId)!=null?b:void 0;this.currentIssueId$=pe(function(){var d;return((d=a.data.currentResource)==null?void 0:d.type)==="issue"?ee(a.data.currentResource.id):jx});this.currentIssue$=this.currentIssueId$.pipe(Af(function(d){return a.issueFullFridge.watch(d)}),xf({bufferSize:1,refCount:!0}));this.team$=this.currentIssue$.pipe(Af(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):ee(void 0)}),xf({bufferSize:1,refCount:!0}));this.DEFAULT_PREFERENCES={open:!0,searchScope:"COMPONENT",componentScope:this.currentComponentId,includeDescendants:!1};this.assistiveIssuePickerPreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){var e,f;return(f=a.currentComponentId?d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:e.get(a.currentComponentId):void 0)!=null?f:a.DEFAULT_PREFERENCES}));
this.hasCustomPreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){if(!a.currentComponentId)return!1;var e;return(d=d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:e.get(a.currentComponentId))?!mm(d,a.DEFAULT_PREFERENCES):!1}),pf(),xf({bufferSize:1,refCount:!0}));this.showFiltersSubject=new Nj(!1);this.showFilters$=this.showFiltersSubject.asObservable();var c;this.originIsBulk=(c=this.data.originIsBulk)!=null?c:!1;this.openFilterEnabled$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.open}));
this.selectedScope$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.searchScope}));this.includeDescendants$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.includeDescendants}));this.component$=this.assistiveIssuePickerPreferences$.pipe(Af(function(d){return d.componentScope?a.componentFridge.watch(d.componentScope):ee(void 0)}));this.selectedIssues=new XQ;this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");
this.issueUrlFactory=ps.viewIssue.makeHref;this.trackByIssueId=function(d,e){return e.issueId};this.searchText$=new Nj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(d){return d.trim()}),pf());this.idsInSearchText$=this.searchTextTrimmed$.pipe(A(a8a),A(vq),A(function(d){return d.filter(function(e){return e.length>=4})}),pf(mm));this.issuesWithIdMatches$=this.idsInSearchText$.pipe(Af(function(d){return a.issueFullFridge.watchSet(d)}),Cf(function(){a.isLoading=!1}),xf({bufferSize:1,refCount:!0}));
this.openFilter=RR;this.teamFilter=this.componentFilter=void 0;this.defaultChoices$=this.issueFullFridge.watchSet(this.data.defaultChoices.map(function(d){return d.resourceId})).pipe(we(Qm));this.selectedFilters$=new XQ([]);this.similarIssues$=le([this.currentIssueId$,this.selectedFilters$.value$,this.searchTextTrimmed$,this.showFilters$]).pipe(lf(0,Br),we(function(d){d=m(d);d.next();d.next();return d.next().value===""&&a.data.defaultChoices.length===0}),Cf(function(){a.isLoading=!0}),Af(function(d){var e=
m(d);d=e.next().value;var f=e.next().value;e.next();return e.next().value?bwd(a.issuePickerSearchService,d,f):bwd(a.issuePickerSearchService,d,void 0,!0)}),Cf(function(){a.isLoading=!1}),xf({bufferSize:1,refCount:!0}));this.SearchSource=Uxd;this.selectedSearchSource$=new Nj("Smart search");this.searchResults$=le([this.searchTextTrimmed$.pipe(Cf(function(){a.isLoading=!0}),lf(200)),this.selectedFilters$.value$.pipe(Cf(function(){a.isLoading=!0})),this.selectedSearchSource$]).pipe(Af(function(d){var e=
m(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),dwd(a.issuePickerSearchService,d,f,a.data.edgeType,a.data.currentResource)):a.issuePickerSearchService.search(d,a.data.edgeType,a.data.currentResource,a.currentComponentId)}),Cf(function(){a.isLoading=!1}),xf({bufferSize:1,refCount:!0}));this.idsToAutoSelect$=this.issuesWithIdMatches$.pipe(A(function(d){return d.length!==1?[]:[d[0].issueId]}),
pf(mm),Cf(function(d){d.length===0&&(a.isPasteResultInSuggestion=!1);var e,f=(e=yr(a.similarIssues$))!=null?e:[];a.isPasteResultInSuggestion=f.map(function(g){return g.issueId}).includes(d[0])}),xf({bufferSize:1,refCount:!0}));this.TableDataSource=Rxd;this.tableDataSource="Search results";this.issues$=le([this.searchTextTrimmed$,this.issuesWithIdMatches$,this.similarIssues$.pipe(zf([])),this.selectedSearchSource$,this.defaultChoices$]).pipe(Af(function(d){var e=m(d);d=e.next().value;var f=e.next().value;
var g=e.next().value;var k=e.next().value;e=e.next().value;return f.length===1?(a.tableDataSource="Issue IDs",a.issuesWithIdMatches$):d?(a.tableDataSource=k==="Smart search"?"Semantic search results":"Search results",a.searchResults$):e&&e.length>0?(a.tableDataSource="Similar issues",a.defaultChoices$):g?(g.length>0&&(a.tableDataSource="Similar issues"),a.similarIssues$):ee(void 0)}),pf());this.correctedDisplayedRows=new gg;this.isPasteResultInSuggestion=this.isLoading=!1};Y(YW,Z);YW.\u0275dir=Z.\u0275dir;
YW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.idsToAutoSelect$.subscribe(function(b){a.selectedIssues.reset(b)}));this.subscriptions.add(this.hasCustomPreferences$.pipe(rf()).subscribe(function(b){a.showFiltersSubject.next(!a.enableExpandedScopeIssuePicker||b)}));this.data.edgeType==="canonical"&&this.subscriptions.add(gwd(this.issuePickerSearchService,this.currentComponentId).subscribe());Vxd(this)};
var Vxd=function(a){var b,c,d,e,f,g,k,l,r,w,x,C,H;y(function(J){if(J.nextAddress==1)return b=m,z(J,Promise.all([ie(a.openFilterEnabled$),ie(a.component$),ie(a.team$),ie(a.selectedScope$),ie(a.includeDescendants$)]),2);c=b(J.yieldResult);d=c.next().value;e=c.next().value;f=c.next().value;g=c.next().value;k=c.next().value;l=d;r=e;w=f;x=g;C=k;l&&a.selectedFilters$.add(a.openFilter);if(r){a.componentFilter=t7a(r,C);if(H=x==="COMPONENT"||x==="UNSPECIFIED")a.selectedScopeFilter=a.componentFilter,a.selectedFilters$.add(a.componentFilter);
a.selectedComponent=r}w&&(a.teamFilter=s7a(w,C),x==="TEAM"&&(a.selectedScopeFilter=a.teamFilter,a.selectedFilters$.add(a.teamFilter)));ce(J)})};YW.prototype.ngAfterViewInit=function(){this.focusManager=jz(new Mxd(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}));this.trapFocus()};YW.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a;(a=this.focusTrap)==null||a.destroy()};
YW.prototype.openFilterChanged=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a?b.selectedFilters$.add(RR):b.selectedFilters$.delete(RR),z(d,ie(b.assistiveIssuePickerPreferences$),2);c=d.yieldResult;return z(d,Wxd(b,Object.assign({},c,{open:a!==void 0})),0)})};
var Wxd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.userPreferencesManager.preferences$.pipe(A(function(e){return new Map(e.assistiveIssuePickerPreferences)}))),2);c=d.yieldResult;a.currentComponentId&&(c.set(a.currentComponentId,b),a.subscriptions.add(a.userPreferencesManager.save({assistiveIssuePickerPreferences:c}).subscribe()));ce(d)})},Cib=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!a.componentFilter||!a.teamFilter||a.selectedScopeFilter===
b)return f.return();a.selectedScopeFilter=b;c=new Set(a.selectedFilters$.value);(d=b===a.componentFilter)?(c.add(a.componentFilter),c.delete(a.teamFilter)):(c.add(a.teamFilter),c.delete(a.componentFilter));a.selectedFilters$.reset(c);return z(f,ie(a.assistiveIssuePickerPreferences$),2)}e=f.yieldResult;return z(f,Wxd(a,Object.assign({},e,{searchScope:d?"COMPONENT":"TEAM"})),0)})},Kib=function(a){var b,c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return z(l,ie(a.includeDescendants$),
2);case 2:return b=!l.yieldResult,z(l,ie(a.assistiveIssuePickerPreferences$),3);case 3:return c=l.yieldResult,z(l,Wxd(a,Object.assign({},c,{includeDescendants:b})),4);case 4:return z(l,ie(a.component$),5);case 5:return d=l.yieldResult,z(l,ie(a.team$),6);case 6:e=l.yieldResult;if(!d)return l.return();f=t7a(d,b);g=new Set(a.selectedFilters$.value);if(!a.componentFilter)return l.return();g.has(a.componentFilter)&&(g.delete(a.componentFilter),g.add(f),a.selectedScopeFilter=f);a.componentFilter=f;e&&(k=
s7a(e,b),a.teamFilter&&g.has(a.teamFilter)&&(g.delete(a.teamFilter),g.add(k),a.selectedScopeFilter=k),a.teamFilter=k);a.selectedFilters$.reset(g);ce(l)}})},njb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,ns(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(Qm);a.correctedDisplayedRows.reset(d);kg(a.correctedDisplayedRows);ce(e)})};
YW.prototype.onPressConfirm=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1){if(!a.selectedIssues.size)return d.return();b=[].concat(q(a.selectedIssues));c={selectedIssueIds:b};a.dialogRef.close(c);return z(d,Xxd(a,b[0]),2)}return z(d,Yxd(a,b[0]),0)})};YW.prototype.onPressCancel=function(){this.dialogRef.close()};YW.prototype.selectIssue=function(a){this.selectedIssues.reset([a])};
YW.prototype.onRowKeydown=function(a,b,c){if(a===0&&c.key==="ArrowUp")this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var Gib=function(a,b){var c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:a.trigger.closeMenu();if(!a.componentFilter)return r.return();if(c=!b){r.jumpTo(2);break}return z(r,ie(a.component$),3);case 3:c=r.yieldResult===b;case 2:if(c)return r.return();d=t7a;e=b;return z(r,ie(a.includeDescendants$),4);case 4:return f=d(e,r.yieldResult),a.selectedScopeFilter=f,z(r,ie(a.assistiveIssuePickerPreferences$),5);case 5:return g=r.yieldResult,z(r,Wxd(a,Object.assign({},g,{componentScope:b.componentId})),
6);case 6:return k=Set,z(r,ie(a.selectedFilters$.value$),7);case 7:l=new k(r.yieldResult),l.delete(a.componentFilter),l.add(f),a.componentFilter=f,a.selectedFilters$.reset(l),a.analytics.trackEvent("assistive-issue-picker","component-scope-changed","component-id: "+b.componentId),ce(r)}})},yib=function(a){return y(function(b){if(b.nextAddress==1)return z(b,ie(a.component$),2);a.selectedComponent=b.yieldResult;ce(b)})},Yxd=function(a,b){var c,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return a.data.edgeType!==
"canonical"?r.return():z(r,ie(a.issueFullFridge.watch(b)),2);if(r.nextAddress!=3)return(c=r.yieldResult)?z(r,Zxd(a,b),3):r.return();d=r.yieldResult;e=Txd[a.tableDataSource];a.analytics.trackEvent("assistive-issue-picker","picked-c-canonical",d?e+"-hit":e+"-miss",d?1:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","dupe-count",(g=(f=c.snapshot[0].duplicateIssueId)==null?void 0:f.length)!=null?g:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","plus-one-count",
(l=(k=c.aggregatedData)==null?void 0:k.voteCount)!=null?l:0);ce(r)})};YW.prototype.trapFocus=function(){this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement);JCc(this.focusTrap)};
var Xxd=function(a,b){var c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return z(l,ie(a.similarIssues$),2);case 2:d=(c=l.yieldResult)!=null?c:[];e=d.find(function(r){return r.issueId===b});f=!!e;g=Txd[a.tableDataSource];if(d.length===0){a.analytics.trackEvent("assistive-issue-picker","empty-hit-rate-"+a.data.edgeType,g+"-empty");l.jumpTo(0);break}a.analytics.trackEvent("assistive-issue-picker","hit-rate-"+a.data.edgeType,f?g+"-hit":g+"-miss",f?1:0);if(!f){l.jumpTo(0);break}if(a.tableDataSource!==
"Similar issues"){l.jumpTo(5);break}return z(l,ie(a.currentIssueId$),6);case 6:k=l.yieldResult,a.issueUserEventsService.logIssueUserEvent(k,"FEATURE_SIMILAR_ISSUES","EVENT_TYPE_CLOSE_AS_DUPLICATE").pipe(Uj(a.destroyRef)).subscribe();case 5:a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-rank",d.indexOf(e)+1),e.score&&a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-score",e.score),ce(l)}})},Zxd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==
1){if(a.data.edgeType!=="canonical")return e.return(!1);c=Set;return z(e,ie(gwd(a.issuePickerSearchService,a.currentComponentId)),2)}d=new c(e.yieldResult);return e.return(d.has(b))})};YW.prototype.openLearnMore=function(){this.domSafe.openInNewTab("http://go/b-mark-as-duplicate")};var Aib=function(a){return a.startsWith("Component:")?"Component":a};YW.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(YW)))(b||YW)}}();
YW.\u0275cmp=D({type:YW,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(hg(Oxd,5),hg(Pxd,5),hg(VW,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.inputEl=c.first);lg(c=mg())&&(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:[Gf],decls:29,vars:21,consts:[["searchInput",""],["teamComponentMenu","matMenu"],
["componentSearchMenu","matMenu"],["menuTrigger","matMenuTrigger"],["componentSearchMenuTrigger","matMenuTrigger"],["mat-dialog-title",""],[1,"heading","flex-kids-x","gap-xxs","align-items-center","padded-s-y","heading-m"],["svgIcon","merge_type_24px",1,"rotate-180","green"],[1,"search-field","margin-s-bottom","flex-kids-x","align-items-center","heading-xs"],["cdkFocusInitial","","placeholder","Search by title, contents, or id",3,"keydown.arrowdown","input","keydown.enter"],[1,"padded-s",3,"selectionChange",
"value"],["matTooltip","Searches by semantic similarity of the query. Does not support search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],["matTooltip","Searches by the exact query text. Supports search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],[1,"flex-kids-x","align-items-center","margin-s-bottom","gap-s"],[1,"center-text","padded","margined","pos-rel"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",
"cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],[1,"heading","flex-kids-y","gap-s","border-bottom","padded-bottom","margin-s-bottom"],[1,"type-xs"],[1,"heading-s","line-clamp-3"],["svgIcon","search_spark_24px",1,"icon-m"],["svgIcon","search",1,"icon-m"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",1,"open-filter-chip",3,"selected","value"],[3,"matTooltip"],["xPosition","before"],["matMenuContent",
""],["xPosition","after"],["aria-label","Include subcomponents or subteams",3,"change"],["appearance","hairline-filter",1,"include-descendants-chip",3,"selected"],["matTooltip","Include subcomponents or subteams"],["type","button","mat-button","",1,"component-picker-action-buttons","toggle-filters",3,"click"],"type;button;mat-icon-button;;matTooltip;Learn more;aria-label;help".split(";"),["aria-label","Scope search to component or team",3,"selectable"],["appearance","hairline-filter","aria-label",
"Select search scope","matTooltip","Select Component or Team scope","selected","","color","primary","role","button",1,"team-component-filters",3,"keydown.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown",1,"dropdown-icon"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select search scope","matTooltip","Search for a component","selected","","color","primary","role","button",1,"component-search-filter",
3,"keydown.enter","keyup.space","menuOpened","matMenuTriggerFor"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"component-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"team-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"component-filter",3,"click","matTooltip"],["svgIcon","done"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"team-filter",3,"click","matTooltip"],[3,
"click","keydown.tab","keydown.shift.tab"],[1,"component-search-menu-item"],["tabindex","0",3,"selectedComponentChange","selectedComponent","placeholder","shouldFocus","isRequired"],[1,"component-picker-action-buttons"],["type","button","mat-button","","color","primary",1,"choose-picker-button","small",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel-picker-button","small",3,"click"],["type","button","mat-icon-button","","matTooltip","Learn more","aria-label","help",
3,"click"],["svgIcon","help-outline"],["text","Finding similar issues...",3,"large"],["text","Searching..."],["ariaLabel","Loading results",1,"margined","inline-block"],["messageType","info","iconOverride","lightbulb_24px"],[1,"heading-xs"],["mat-table","",1,"full-width",3,"dataSource","trackBy"],[1,"center-text","padded"],["href","http://go/b-mark-as-duplicate","target","\u201d_blank\u201d"],["svgIcon","spark_24px","color","primary",1,"valign-middle"],["mat-table","",1,"full-width",3,"contentChanged",
"dataSource","trackBy"],["matColumnDef","single-selection"],["mat-header-cell","",4,"matHeaderCellDef"],["aria-label","Select issue",3,"change"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","id"],["matColumnDef","priority"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["matColumnDef","duplicateCount"],["mat-cell","","class","center-text",4,"matCellDef"],["matColumnDef","votes"],["mat-header-cell","","matTooltip","Votes",
4,"matHeaderCellDef"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"row","keydown","keydown.enter","focusin","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","0",3,"checked","aria-label","value"],["anchorTarget","_blank",3,"issue","issueUrlFactory","useButtonToNavigate","enableHovercard"],[3,"id"],[3,
"issue"],["mat-header-cell","","mat-sort-header","status"],["mat-cell","",1,"center-text"],["mat-header-cell","","matTooltip","Votes"],["svgIcon","exposure_plus_1_24px",1,"icon-xs"],["mat-header-cell","","mat-sort-header","createdTime"],["mode","relativepastshort",3,"issue"],["mat-header-row",""],["mat-row","",1,"clickable",3,"keydown","keydown.enter","focusin","click","row"],[1,"margined","inline-block"]],template:function(a,b){if(a&1){var c=t();K(0,"div",5);F(1,uib,2,3);K(2,"div",6);M(3,"mat-icon",
7);K(4,"span");Q(5,"Close as duplicate of:");L()();K(6,"header",8);F(7,xib,2,1);T(8,"async");K(9,"input",9,0);N("keydown.arrowdown",function(){u(c);return v(b.focusManager.setActiveItem(0))})("input",function(){u(c);var f=qg(10);return v(b.searchText$.next(f.value))})("keydown.enter",function(){u(c);return v(b.onPressConfirm())});L();K(11,"mat-select",10);T(12,"async");N("selectionChange",function(f){u(c);b.selectedSearchSource$.next(f.value);return v()});K(13,"mat-option",11);Q(14);L();K(15,"mat-option",
12);Q(16);L()()();F(17,Nib,2,3);T(18,"async");Lf(19,Pib,4,1,"div",13);L();F(20,Tib,5,3,"div",14);F(21,qjb,5,4,"div",15);T(22,"async");K(23,"div",16)(24,"button",17);N("click",function(){u(c);return v(b.onPressCancel())});Q(25," Cancel ");L();K(26,"button",18);T(27,"async");N("click",function(){u(c);return v(b.onPressConfirm())});Q(28," Close as duplicate ");L()()}if(a&2){var d,e;B();G(b.originIsBulk?-1:1);B(6);G((d=U(8,11,b.selectedSearchSource$))?7:-1,d);B(4);I("value",U(12,13,b.selectedSearchSource$));
B(2);I("value",b.SearchSource.SEMANTIC_SEARCH);B();S(" ",b.SearchSource.SEMANTIC_SEARCH," ");B();I("value",b.SearchSource.EXACT_MATCH);B();S(" ",b.SearchSource.EXACT_MATCH," ");B();G(U(18,15,b.showFilters$)?17:19);B(3);G(b.isLoading?20:-1);B();G((e=U(22,17,b.issues$))?21:-1,e);B(5);I("disabled",!U(27,19,b.selectedIssues.size$))}},dependencies:[Dy,NK,VK,UK,TK,sW,xW,kwd,zW,TW,gB,cB,eB,TA,VA,UA,OJ,YG,WG,XG,aH,qT,rT,vU,MH,cA,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,oK,iA,Rrd,$T,VW,AU,BU,iW,Lx],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 $xd=function(){this.enrichmentCategoryFridge=p(rP);this.enrichmentCategoryNames=[]},ujb=function(a,b){return b==="Buganizer"?ee({enableHovercard:!1,displayName:b,description:""}):a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d,e;return{enableHovercard:!0,displayName:(d=c==null?void 0:c.displayName)!=null?d:b,description:(e=c==null?void 0:c.description)!=null?e:""}}),zf({enableHovercard:!0,displayName:b,description:""}))};$xd.\u0275fac=function(a){return new (a||$xd)};
$xd.\u0275cmp=D({type:$xd,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&&Of(0,vjb,2,3,null,null,Nf);a&2&&Pf(b.enrichmentCategoryNames)},dependencies:[DK,LK,Lx],encapsulation:2,changeDetection:0});var ayd=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.isEditMode=!1;this.onSaveOutput=new XP;this.onCancelOutput=new XP;this.expansionChange=new XP;this.title=""};ayd.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||""};ayd.\u0275fac=function(a){return new (a||ayd)};
ayd.\u0275cmp=D({type:ayd,selectors:[["b-expandable-issue-title-cell"]],viewQuery:function(a,b){a&1&&hg(TW,7);if(a&2){var c;lg(c=mg())&&(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:[bx],decls:4,vars:5,consts:[[1,"flex-kids-x","align-items-center"],["type","button","mat-icon-button","",
1,"medium","expander",3,"collapsed"],[1,"leaf"],[1,"grow-1",3,"onSave","onCancel","issue","isEditMode"],["type","button","mat-icon-button","",1,"medium","expander",3,"click"],["name","arrow-dropdown","size","small"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,wjb,2,3,"button",1)(2,xjb,1,0,"div",2),K(3,"b-issue-title-cell",3),N("onSave",function(){return b.onSaveOutput.emit()})("onCancel",function(){return b.onCancelOutput.emit()}),L()());a&2&&(vg("margin-left",b.level*24,"px"),B(),G(b.expandable?
1:2),B(2),I("issue",b.issue)("isEditMode",b.isEditMode))},dependencies:[gB,eB,pT,TW],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 ZW=function(){this.tooltip=this.displayText=this.chipColor=""};ZW.\u0275fac=function(a){return new (a||ZW)};
ZW.\u0275cmp=D({type:ZW,selectors:[["b-signal-chip"]],inputs:{chipColor:"chipColor",icon:"icon",displayText:"displayText",tooltip:"tooltip"},decls:3,vars:6,consts:[["role","button","tabindex","0",3,"matTooltip"],[1,"vertical-centered","icon-s",3,"svgIcon"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,yjb,1,1,"mat-icon",1),Q(2),L());a&2&&(xg("signal-chip type-button "+b.chipColor),I("matTooltip",b.tooltip),Kf("aria-label",b.tooltip),B(),G(b.icon?1:-1),B(),S(" ",b.displayText,"\n"))},dependencies:[oK,
iA,Dy],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 $W=function(){this.issueService=p(NP);this.issueExperimentalFieldsFridge=p(PP);this.isDataLoaded=!1;this.alerts=[]};$W.prototype.ngOnInit=function(){};var Ajb=function(a){return a.alerts.filter(function(b){return o7a(a.issue,b)})};
$W.prototype.dismissAlert=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.issue.issueId?z(c,ie(a.issueExperimentalFieldsFridge.watch(a.issue.issueId)),2):c.return();b=c.yieldResult;if(!b)return c.return();b.triage.dismissed={seconds:Date.now()/1E3,nanos:0};return z(c,Ygd(a.issueService,b),0)})};$W.\u0275fac=function(a){return new (a||$W)};
$W.\u0275cmp=D({type:$W,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&&(K(0,"div",1),$f(1),F(2,zjb,3,3),F(3,Bjb,2,2,"div",2),L(),E(4,Djb,4,0,"ng-template",null,0,Mg));a&2&&(B(),a=ag(Ajb(b)[0]),B(),G(a?2:-1),B(),G(Ajb(b).slice(1).length?3:-1))},dependencies:[Dy,gB,eB,oK,iA,ZW,YA,XA,cL],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 aX=function(){this.issue=null;this.isDataLoaded=!1};aX.prototype.ngOnChanges=function(){var a;this.assignee=Dab(xm((a=this.issue)==null?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=this.issue!==null};aX.\u0275fac=function(a){return new (a||aX)};
aX.\u0275cmp=D({type:aX,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},standalone:!1,features:[bx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Ejb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.assignee?1:-1))},dependencies:[rW,dT],encapsulation:2,changeDetection:0});var iX=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};iX.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};iX.\u0275fac=function(a){return new (a||iX)};
iX.\u0275cmp=D({type:iX,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},standalone:!1,features:[bx],decls:2,vars:2,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Fjb,1,3,"b-team-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.teamId?1:-1))},dependencies:[rW,DV],encapsulation:2,changeDetection:0});var jX=function(){this.activeSession=p(qu);this.issueExperimentalFieldsFridge=p(PP);this.analytics=p(aQ)};jX.prototype.ngOnInit=function(){};jX.prototype.claim=function(){var a=this;this.issueExperimentalFieldsFridge.updateOrInsert(this.issue.issueId,function(b){b.triage.triagerEmail=a.activeSession.getUserEmail()});this.analytics.trackEvent("triageIssue","claim")};jX.\u0275fac=function(a){return new (a||jX)};
jX.\u0275cmp=D({type:jX,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,Gjb,1,1,"b-user-image",0)(1,Hjb,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:[gB,cB,bV],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 kX=function(){this.type=this.issue=null;this.isDataLoaded=!1};kX.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};kX.\u0275fac=function(a){return new (a||kX)};
kX.\u0275cmp=D({type:kX,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},standalone:!1,features:[bx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Ijb,3,3,"ng-container"),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.type?1:-1))},dependencies:[rW,cV],encapsulation:2,changeDetection:0});var byd=function(){};byd.prototype.transform=function(a){return DWa(a)};byd.\u0275fac=function(a){return new (a||byd)};byd.\u0275pipe=ef({name:"toCustomFieldTypeDisplayValue",type:byd,pure:!0,standalone:!1});var lX=function(){};lX.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+"@"};lX.\u0275fac=function(a){return new (a||lX)};lX.\u0275pipe=ef({name:"shortenEmail",type:lX,pure:!0,standalone:!1});var mX=function(){};mX.prototype.transform=function(a){if(!a||!a.length)return"";var b=(new Set(a.filter(function(c){return!!c.user}).map(function(c){return oo(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"?Zq[d]:"Other")});a=a.length>0?"Placeholders: "+a.join(", "):"";return b+(b&&a?", ":"")+a};mX.\u0275fac=function(a){return new (a||mX)};
mX.\u0275pipe=ef({name:"staffingSummary",type:mX,pure:!0,standalone:!1});var nX=function(){};nX.\u0275fac=function(a){return new (a||nX)};nX.\u0275mod=cf({type:nX});nX.\u0275inj=Hc({imports:[RO]});var oX=function(){};oX.\u0275fac=function(a){return new (a||oX)};oX.\u0275mod=cf({type:oX});oX.\u0275inj=Hc({imports:[Yx,Qz]});var pX=function(){};pX.\u0275fac=function(a){return new (a||pX)};pX.\u0275mod=cf({type:pX});pX.\u0275inj=Hc({imports:[RO,nX,oX]});var qX=function(){this.el=p(Jd);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)};qX.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
qX.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};qX.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"};qX.\u0275fac=function(a){return new (a||qX)};
qX.\u0275dir=df({type:qX,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 cyd=function(){};cyd.\u0275fac=function(a){return new (a||cyd)};cyd.\u0275mod=cf({type:cyd});cyd.\u0275inj=Hc({});var rX=function(){this.activeSession=p(qu);this.sessionIsExternal=this.activeSession.isExternalSession()};rX.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!$n(this.email)};rX.prototype.getName=function(){return this.email===void 0?"":this.email.split("@")[0]};rX.\u0275fac=function(a){return new (a||rX)};
rX.\u0275cmp=D({type:rX,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&&(cg(),F(0,Njb,16,5)(1,Pjb,1,1,"ng-container"),E(2,Qjb,1,0,"ng-template",null,0,Mg));a&2&&G($n(b.email)?0:1)},dependencies:[Kx,Dy,DK,LK],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 sX=function(){};sX.\u0275fac=function(a){return new (a||sX)};sX.\u0275mod=cf({type:sX});sX.\u0275inj=Hc({imports:[RO,MK]});var dyd=function(){this.dialogTabIndex=0;this.displayText="";this.overlaySizeConfig={maxHeight:"unset",maxWidth:600}};dyd.\u0275fac=function(a){return new (a||dyd)};
dyd.\u0275cmp=D({type:dyd,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&&(cg(),K(0,"xap-text-trigger",1),Q(1),L(),E(2,Rjb,3,0,"ng-template",null,0,Mg));a&2&&(a=qg(3),I("dialogLabel",b.displayText)("dialogTabIndex",0)("overlaySize",b.overlaySizeConfig)("xapInlineDialog",
a),B(),S(" ",b.displayText,"\n"))},dependencies:[YA,XA,cL,dL],styles:["/*# sourceMappingURL=text_with_tooltip.css.map */"],changeDetection:0});var eyd=function(){};eyd.\u0275fac=function(a){return new (a||eyd)};eyd.\u0275mod=cf({type:eyd});eyd.\u0275inj=Hc({imports:[YA,dL]});var tX=function(){Z.apply(this,arguments);this.activeSession=p(qu);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 XP;this.chipClear=new XP;this.chipRemove=new XP};Y(tX,Z);tX.\u0275dir=Z.\u0275dir;h=tX.prototype;h.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};
h.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};h.isContainerChip=function(){return this.nestedChips!==null};h.isUserChip=function(){return this.principalType==="USER"};h.isGroupChip=function(){return this.principalType==="GROUP"};h.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};h.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};
h.isExternalPartnerAccessViolated=function(){return this.accessLevel==="EXTERNAL_PARTNER"&&this.isPublicChip()};h.isInternalAccessViolated=function(){return this.accessLevel==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};
h.getTooltip=function(){if(this.principalType!=="ALIAS")return this.displayText;switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.activeSession.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All users, excluding the google.com domain.";case "public":return"All users";default:throw Error("Ue`"+this.value);}};
var fyd=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};tX.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tX)))(b||tX)}}();
tX.\u0275cmp=D({type:tX,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:[Gf],decls:8,vars:17,consts:[[1,"bv2-user-chip-item",3,"focus","blur"],[1,"alias-icon"],
[3,"svgIcon"],[1,"user-chip-name"],[3,"email"],[3,"dialogTabIndex","displayText"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"matTooltip"],[1,"bv2-user-chip-nested-content-container","flex-kids-x","flex-wrap"],[1,"bv2-user-chip"],[3,"value","detailedUserType","principalType","accessLevel","displayText"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"click","keydown.enter","matTooltip"],["svgIcon","close"]],template:function(a,b){a&1&&(K(0,"span",0),N("focus",
function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),K(1,"span",1),F(2,Sjb,1,1,"mat-icon",2),L(),K(3,"div",3),F(4,Tjb,2,2,"b-person-hovercard",4),F(5,Ujb,2,2,"b-group-email-card",4),F(6,Yjb,3,3,"b-text-with-tooltip",5),L(),F(7,Zjb,2,3,"div",6),L());if(a&2){var c;wg("bv2-user-chip-external",b.isExternalChip())("bv2-user-chip-non-gaia",b.isNonGaiaChip())("bv2-user-chip-not-accessible",b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated())("bv2-user-chip-container",
b.isContainerChip())("selected",b.isSelected)("readonly",b.isReadonly);B(2);G((c=fyd(b))?2:-1,c);B(2);G(b.isUserChip()?4:-1);B();G(b.isGroupChip()?5:-1);B();G(b.isUserChip()||b.isGroupChip()?-1:6);B();G(b.isReadonly||b.isWidgetDisabled?-1:7)}},dependencies:[Dy,oK,iA,dT,rX,dyd,tX],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 uX=function(a,b,c,d,e,f,g){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.destroyRef=g;this.selectionChange=new Ui;this.sessionOptions=(new $u).setFilter(gyd);this.inputSearchDelay=200;this.inputChanged$=new wf(1)};h=uX.prototype;h.ngOnDestroy=function(){this.autocomplete.dispose()};
h.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);phb(b,this.config);this.zone.runOutsideAngular(function(){var c;a.autocomplete=(c=a.clientConfig.autocompleteFactory)==null?void 0:c.create(a.getAnchor(),a.inputEl.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions)});this.autocomplete.subscribeToSelectionChanged(function(c){a.zone.run(function(){a.selectionChange.emit(c)});a.autocomplete.report(4)});this.inputChanged$.pipe(lf(this.inputSearchDelay),
Uj(this.destroyRef)).subscribe(function(){a.search()})};h.getAnchor=function(){if(!this.peopleKitService.autocompleteAnchor){var a=this.renderer.createElement("div");this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");var b;((b=tNa(this.inputEl.nativeElement))!=null?b:this.document.body).append(a)}return this.peopleKitService.autocompleteAnchor};
h.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};h.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};uX.\u0275fac=function(a){return new (a||uX)(Ye(Swd),Ye(Sh),Ye(JW),Ye(Jd),Ye(Rg),Ye(di),Ye(Ee))};
uX.\u0275dir=df({type:uX,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 gyd=ihb(1);var vX=function(){this.selectionChange=new Ui;this.sessionOptions=(new $u).setFilter(hyd);this.clientConfig=p(Swd);this.document=p(Sh);this.peopleKitService=p(JW);this.elementRef=p(Jd);this.zone=p(Rg);this.renderer=p(di);this.destroyRef=p(Ee);this.queryChanged$=new wf(1)};
vX.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);phb(b,this.config);this.autocomplete=this.zone.runOutsideAngular(function(){var c,d=(c=a.clientConfig.autocompleteFactory)==null?void 0:c.create(a.getAnchor(),a.elementRef.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions);d.subscribeToSelectionChanged(function(e){a.zone.run(function(){a.selectionChange.emit(e)});a.autocomplete.report(4)});return d});
this.destroyRef.onDestroy(function(){a.zone.runOutsideAngular(function(){a.autocomplete.dispose()})});this.queryChanged$.pipe(Uj(this.destroyRef)).subscribe(function(c){c!==void 0&&a.search(c)})};
vX.prototype.getAnchor=function(){if(this.peopleKitService.autocompleteAnchor)return this.peopleKitService.autocompleteAnchor;var a=this.renderer.createElement("div");this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");var b;((b=tNa(this.elementRef.nativeElement))!=null?b:this.document.body).append(a);return a};vX.prototype.search=function(a){var b=this;this.zone.runOutsideAngular(function(){b.autocomplete.search(a,b.elementRef.nativeElement)})};
vX.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};da.Object.defineProperties(vX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){this.queryChanged$.next(a)}}});vX.\u0275fac=function(a){return new (a||vX)};
vX.\u0275dir=df({type:vX,selectors:[["","peoplekitManualAutocomplete",""]],inputs:{config:[0,"peoplekitAutocompleteConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"],query:"query"},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},exportAs:["peoplekitManualAutocomplete"]});var hyd=ihb(1);var wX=function(){};wX.\u0275fac=function(a){return new (a||wX)};wX.\u0275mod=cf({type:wX});wX.\u0275inj=Hc({});var xX=function(){};xX.\u0275fac=function(a){return new (a||xX)};xX.\u0275mod=cf({type:xX});xX.\u0275inj=Hc({imports:[RO,xE,pK,fU,sX,gV,cyd,wX,eyd]});Doa(KW,[yj,$D,gE,qX,uX,tX],[]);var yX=function(){};yX.\u0275fac=function(a){return new (a||yX)};yX.\u0275mod=cf({type:yX});yX.\u0275inj=Hc({imports:[RO,nX,xX,MK,pK]});var zX=function(){};zX.\u0275fac=function(a){return new (a||zX)};zX.\u0275mod=cf({type:zX});zX.\u0275inj=Hc({imports:[RO,iB,pK]});var AX=function(){};AX.\u0275fac=function(a){return new (a||AX)};AX.\u0275mod=cf({type:AX});AX.\u0275inj=Hc({providers:[{provide:tld,useValue:PW}],imports:[RO,pX,iB,pK,iV,xV,zU,zX,yX]});var BX=function(){};BX.\u0275fac=function(a){return new (a||BX)};BX.\u0275mod=cf({type:BX});BX.\u0275inj=Hc({imports:[RO]});var iyd={provide:iEc,deps:[Nz],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},jyd=Ih({passive:!0}),CX=function(a,b,c,d,e,f,g,k,l,r,w,x){var C=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=g;this._focusMonitor=k;this._dir=r;this._defaultOptions=w;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=
!1;this._viewportMargin=8;this._cssClassPrefix="mat";this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new sf;this._scrollStrategy=l;this._document=x;w&&(this._showDelay=w.showDelay,this._hideDelay=w.hideDelay,w.position&&(this.position=w.position),w.positionAtOrigin&&(this.positionAtOrigin=w.positionAtOrigin),w.touchGestures&&(this.touchGestures=w.touchGestures));r.change.pipe(Bf(this._destroyed)).subscribe(function(){C._overlayRef&&C._updatePosition(C._overlayRef)})};
h=CX.prototype;h.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Bf(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
h.ngOnDestroy=function(){var a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=m(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,jyd)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();bz(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
h.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new Hz(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(Bf(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};h.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};h.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};h._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
h._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Jd)return this._overlayRef;this._detach()}c=eDc(this._scrollDispatcher,this._elementRef);a=xDc(Az(Bz(BDc(Fz(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(Bf(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(Bf(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(Bf(this._destroyed)).subscribe(function(){var e;
return(e=b._tooltipInstance)==null?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Bf(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&e.keyCode===27&&!Gh(e)&&(e.preventDefault(),e.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var d;((d=this._defaultOptions)==null?0:d.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(this._cssClassPrefix+"-tooltip-panel-non-interactive");return this._overlayRef};
h._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};h._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();zz(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};h._addOffset=function(a){return a};
h._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
h._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
h._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(nf(1),Bf(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};h._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
h._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
h._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
h._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show(void 0,d)},500)}])),this._addListeners(this._passiveListeners))};
h._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){clearTimeout(a._touchstartTimeout);a.hide(a._defaultOptions.touchendHideDelay)};
b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,q(b))}};h._addListeners=function(a){var b=this;a.forEach(function(c){var d=m(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,jyd)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._wheelListener=function(a){if(this._isTooltipVisible()){a=this._document.elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
h._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
da.Object.defineProperties(CX.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=Mh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Mh(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Ph(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Ph(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;bz(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(){az(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)}}});CX.\u0275fac=function(){Ze()};
CX.\u0275dir=df({type:CX,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 DX=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new sf;this._animationsDisabled=b==="NoopAnimations"};h=DX.prototype;h.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};
h.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};h.afterHidden=function(){return this._onHide};h.isVisible=function(){return this._isVisible};h.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};h._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};
h._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};h._onShow=function(){};h._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};
h._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};h._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
h._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);(this._isVisible=a)&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
DX.\u0275fac=function(a){return new (a||DX)(Ye(ux),Ye(ki,8))};DX.\u0275dir=df({type:DX,standalone:!1});var kyd=["tooltip"],FX=function(a,b,c,d,e,f,g,k,l,r,w,x){CX.call(this,a,b,c,d,e,f,g,k,l,r,w,x);this._tooltipComponent=EX};Y(FX,CX);FX.\u0275fac=function(a){return new (a||FX)(Ye(Nz),Ye(Jd),Ye(Th),Ye(fg),Ye(Rg),Ye(Wh),Ye($y),Ye(Hy),Ye(iEc),Ye(ci,8),Ye(jEc,8),Ye(Sh))};FX.\u0275dir=df({type:FX,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],standalone:!1,features:[Gf]});
var EX=function(a,b,c){DX.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(EX,DX);EX.\u0275dir=DX.\u0275dir;EX.\u0275fac=function(a){return new (a||EX)(Ye(ux),Ye(Sy),Ye(ki,8))};
EX.\u0275cmp=D({type:EX,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&hg(kyd,7);if(a&2){var c;lg(c=mg())&&(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&&(Kf("mat-id-collision",null),vg("zoom",b.isVisible()?1:null))},standalone:!1,features:[Gf],decls:4,vars:6,consts:[["tooltip",""],[1,"mat-tooltip",3,"animationend","ngClass"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1,0);T(2,"async");N("animationend",function(e){u(c);return v(b._handleAnimationEnd(e))});Q(3);L()}if(a&2){var d;wg("mat-tooltip-handset",(d=U(2,4,b._isHandset))==null?null:d.matches);I("ngClass",b.tooltipClass);B(3);yg(b.message)}},dependencies:[Dx,Lx],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 GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=cf({type:GX});GX.\u0275inj=Hc({providers:[iyd],imports:[Zy,Yx,Qz,Ey,wz]});var HX=function(){};HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275mod=cf({type:HX});HX.\u0275inj=Hc({imports:[Yx,Qz,Mz,LI,GX,Zy,CK]});var IX=function(){};IX.\u0275fac=function(a){return new (a||IX)};IX.\u0275mod=cf({type:IX});IX.\u0275inj=Hc({imports:[Zy,RO,nU,iB,pK,HX]});var lyd=function(){var a=this;this.componentFridge=p(MO);this.trackerHelpers=p(fS);this.issue$=new wf(1);this.isLoaded$=this.issue$.pipe(A(function(b){return b!==null}));this.componentId$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.component$=this.componentId$.pipe(Af(function(b){return b?a.componentFridge.watch(b):ee(void 0)}));this.componentName$=le([this.componentId$,this.component$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;
return c?(b=fu(a.trackerHelpers,c.componentPathInfo))&&b.componentPathName?b.componentPathName[b.componentPathName.length-1].toString():"":b||""}))};da.Object.defineProperties(lyd.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){this.issue$.next(a)}}});lyd.\u0275fac=function(a){return new (a||lyd)};
lyd.\u0275cmp=D({type:lyd,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&&(K(0,"b-async-data-placeholder",0),T(1,"async"),F(2,$jb,2,2,"span",1),T(3,"async"),L());if(a&2){var c;I("isReady",U(1,2,b.isLoaded$));B(2);G((c=U(3,4,b.componentName$))?2:-1,c)}},dependencies:[rW,oK,iA,Lx],encapsulation:2,changeDetection:0});var myd=function(){this.issue=null;this.isDataLoaded=!1};myd.prototype.ngOnChanges=function(){var a;this.reporter=Dab(xm((a=this.issue)==null?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=this.issue!==null};myd.\u0275fac=function(a){return new (a||myd)};
myd.\u0275cmp=D({type:myd,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},standalone:!1,features:[bx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,akb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.reporter?1:-1))},dependencies:[rW,dT],encapsulation:2,changeDetection:0});var nyd=["theInput"],oyd=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new XP;this.commit=new XP};oyd.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};oyd.\u0275fac=function(a){return new (a||oyd)};
oyd.\u0275cmp=D({type:oyd,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&hg(nyd,5);if(a&2){var c;lg(c=mg())&&(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();K(0,"input",1,0);N("keydown.enter",
function(d){u(c);b.readonly||b.commit.emit(d);return v()})("ngModelChange",function(d){u(c);return v(b.valueChange.emit(d))});L()}a&2&&(wg("readonly",b.readonly)("override",b.readonly),I("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[yj,$D,gE],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 JX=function(){};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275mod=cf({type:JX});JX.\u0275inj=Hc({imports:[RO,MK,iB]});var KX=function(){};KX.\u0275fac=function(a){return new (a||KX)};KX.\u0275mod=cf({type:KX});KX.\u0275inj=Hc({imports:[RO]});var LX=function(){};LX.\u0275fac=function(a){return new (a||LX)};LX.\u0275mod=cf({type:LX});LX.\u0275inj=Hc({imports:[KX,gV,RO,NU,xV,BW,xE,iB,pK,MK,DU,AX,IX,BX,fU,EV,JX,ZW,iV,YA]});var MX=function(){};MX.\u0275fac=function(a){return new (a||MX)};MX.\u0275mod=cf({type:MX});MX.\u0275inj=Hc({imports:[fJ]});var NX=function(){};NX.\u0275fac=function(a){return new (a||NX)};NX.\u0275mod=cf({type:NX});NX.\u0275inj=Hc({imports:[RO,xE,iB,bK,pK,MX,MJ,Qz,Mz,JX,Zy,gV,pX]});var OX=function(){};OX.\u0275fac=function(a){return new (a||OX)};OX.\u0275mod=cf({type:OX});OX.\u0275inj=Hc({imports:[GU]});var pyd=function(){};pyd.\u0275fac=function(a){return new (a||pyd)};pyd.\u0275mod=cf({type:pyd});pyd.\u0275inj=Hc({imports:[RO,YK,yL,LX,iB,MJ,PJ,EU,wU,OX,pK,bU,WW,CU,NX]});var PX=function(){this.issuesApi=p(HP)};PX.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})};PX.\u0275fac=function(a){return new (a||PX)};PX.\u0275prov=Fc({token:PX,factory:PX.\u0275fac,providedIn:"root"});var qyd=new fd("GM2_AUTOCOMPLETE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var ryd=["panel"],syd=function(a,b){this.source=a;this.option=b},tyd=new fd("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}}),QX=function(){this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._defaults=p(tyd);this._animationsDisabled=ni();this._activeOptionChanges=Rd.EMPTY;this._isOpen=this.showPanel=!1;this.displayWith=null;this.optionSelected=
new Ui;this.opened=new Ui;this.closed=new Ui;this.optionActivated=new Ui;this.id=p(bi).getId("mat-autocomplete-");p(Wh);this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption;this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption;this.requireSelection=!!this._defaults.requireSelection;var a;this._hideSingleSelectionIndicator=(a=this._defaults.hideSingleSelectionIndicator)!=null?a:!1};h=QX.prototype;h._setColor=function(a){this._color=a;this._changeDetectorRef.markForCheck()};
h._syncParentProperties=function(){if(this.options)for(var a=m(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};h.ngAfterContentInit=function(){var a=this;this._keyManager=gz(new lz(this.options)).skipPredicate(this._skipPredicate);this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._activeOptionChanges.unsubscribe()};h._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};h._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};h._setVisibility=function(){var a;this.showPanel=!((a=this.options)==null||!a.length);this._changeDetectorRef.markForCheck()};h._emitSelectEvent=function(a){this.optionSelected.emit(new syd(this,a))};
h._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};h._skipPredicate=function(){return!1};
da.Object.defineProperties(QX.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()}}});QX.\u0275fac=function(a){return new (a||QX)};
QX.\u0275cmp=D({type:QX,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(ig(c,cA,5),ig(c,NDc,5));if(a&2){var d;lg(d=mg())&&(b.options=d);lg(d=mg())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(hg(eg,7),hg(ryd,5));if(a&2){var c;lg(c=mg())&&(b.template=c.first);lg(c=mg())&&(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",$g],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",$g],requireSelection:[2,"requireSelection","requireSelection",$g],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",$g],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$g]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
exportAs:["matAutocomplete"],features:[Gg([{provide:MDc,useExisting:QX}])],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&&(cg(),If(0,bkb,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 uyd={provide:VD,useExisting:Yc(function(){return RX}),multi:!0},vyd=new fd("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:function(){var a=p(Ae);return function(){return Uh(a)}}}),RX=function(){var a=this;this._environmentInjector=p($e);this._element=p(Jd);this._injector=p(Ae);this._viewContainerRef=p(fg);this._zone=p(Rg);this._changeDetectorRef=p(ux);this._dir=p(ci,{optional:!0});this._formField=p(wPc,{optional:!0,host:!0});this._viewportRuler=p(Rh);this._scrollStrategy=p(vyd);
this._renderer=p(di);this._animationsDisabled=ni();this._defaults=p(tyd,{optional:!0});this._componentDestroyed=!1;this._initialized=new sf;this._manuallyFloatingLabel=!1;this._viewportSubscription=Rd.EMPTY;this._breakpointObserver=p(Sy);this._handsetLandscapeSubscription=Rd.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new sf;var b;this._overlayPanelClass=Lh(((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=pe(function(){var c=a.autocomplete?a.autocomplete.options:null;return c?c.changes.pipe(zf(c),Af(function(){return ve.apply(null,q(c.map(function(d){return d.onSelectionChange})))})):a._initialized.pipe(Af(function(){return a.optionSelections}))});this._handlePanelKeydown=function(c){if(c.keyCode===
27&&!Gh(c)||c.keyCode===38&&Gh(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};RX.prototype.ngAfterViewInit=function(){this._initialized.next();this._initialized.complete();this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)};
RX.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};RX.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 uIb=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&&
Qh(a._trackedModal,"aria-owns",a.autocomplete.id))};h=RX.prototype;h.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
h._getOutsideClickStream=function(){var a=this;return new Vd(function(b){var c=function(e){var f=Kh(e),g=a._formField?a._formField.getConnectedOverlayOrigin().nativeElement:null,k=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;!a._overlayAttached||f===a._element.nativeElement||a._hasFocus()||g&&g.contains(f)||k&&k.contains(f)||!a._overlayRef||a._overlayRef.overlayElement.contains(f)||b.next(e)},d=[a._renderer.listen("document","click",c),a._renderer.listen("document","auxclick",c),a._renderer.listen("document",
"touchend",c)];return function(){d.forEach(function(e){return e()})}})};h.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this._element.nativeElement.disabled=a};
h._handleKeydown=function(a){var b=a.keyCode,c=Gh(a);b!==27||c||a.preventDefault();this._valueOnLastKeydown=this._element.nativeElement.value;if(this.activeOption&&b===13&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=b===38||b===40;if(b===9||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown);
if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
h._handleInput=function(a){var b=a.target;a=b.value;b.type==="number"&&(a=a==""?null:parseFloat(a));if(this._previousValue!==a){this._previousValue=a;this._pendingAutoselectedOption=null;this.autocomplete&&this.autocomplete.requireSelection||this._onChange(a);if(!a)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){var c;if(b=(c=this.autocomplete.options)==null?void 0:c.find(function(e){return e.selected}))c=this._getDisplayValue(b.value),a!==c&&
b.deselect(!1)}if(this._canOpen()&&this._hasFocus()){var d;a=(d=this._valueOnLastKeydown)!=null?d:this._element.nativeElement.value;this._valueOnLastKeydown=null;this._openPanelInternal(a)}}};h._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};h._handleClick=function(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()};
h._hasFocus=function(){return Jh()===this._element.nativeElement};h._floatLabel=function(a){this._formField&&this._formField.floatLabel==="auto"&&((a===void 0?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};h._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)};
h._subscribeToClosingActions=function(){var a=this,b=new Vd(function(f){Ge(function(){f.next()},{injector:a._environmentInjector})}),c,d,e=(d=(c=this.autocomplete.options)==null?void 0:c.changes.pipe(Cf(function(){return wDc(a._positionStrategy)}),of(0)))!=null?d:ee();return ve(b,e).pipe(Af(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})}),nf(1)).subscribe(function(f){return a._setValueAndClose(f)})};h._emitOpened=function(){this.autocomplete.opened.emit()};h._destroyPanel=function(){this._overlayRef&&(uIb(this),this._overlayRef.dispose(),this._overlayRef=null)};h._getDisplayValue=function(a){var b=this.autocomplete;return b&&b.displayWith?b.displayWith(a):a};
h._assignOptionValue=function(a){var b=this._getDisplayValue(a);a==null&&this._clearPreviousSelectedOption(null,!1);this._updateNativeInputValue(b!=null?b:"")};h._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
h._setValueAndClose=function(a){var b=this.autocomplete;(a=a?a.source:this._pendingAutoselectedOption)?(this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),b._emitSelectEvent(a),this._element.nativeElement.focus()):b.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null));uIb(this)};
h._clearPreviousSelectedOption=function(a,b){var c,d;(c=this.autocomplete)==null||(d=c.options)==null||d.forEach(function(e){e!==a&&e.selected&&e.deselect(b)})};h._openPanelInternal=function(a){a=a===void 0?this._element.nativeElement.value:a;this._attachOverlay(a);this._floatLabel();this._trackedModal&&Ara(this._trackedModal,"aria-owns",this.autocomplete.id)};
h._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 Iz(this.autocomplete.template,this._viewContainerRef,{id:(d=this._formField)==null?void 0:d.getLabelId()});this._overlayRef=c=li(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?Az(yDc(Bz(b._positionStrategy,!0),!0),8):Az(yDc(Bz(b._positionStrategy,!1),!1),0)})}c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=a,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());a=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0;this.autocomplete._latestOpeningTrigger=
this;var e;this.autocomplete._setColor((e=this._formField)==null?void 0:e.color);this._updatePanelState();this._applyModalPanelOwnership();this.panelOpen&&a!==this.panelOpen&&this._emitOpened()};
h._updatePanelState=function(){this.autocomplete._setVisibility();if(this.panelOpen){var a=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=a.keydownEvents().subscribe(this._handlePanelKeydown));this._outsideClickSubscription||(this._outsideClickSubscription=a.outsidePointerEvents().subscribe())}else{(a=this._keydownSubscription)==null||a.unsubscribe();var b;(b=this._outsideClickSubscription)==null||b.unsubscribe();this._keydownSubscription=this._outsideClickSubscription=null}};
h._getOverlayConfig=function(){var a,b,c;return new ei({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:(c=this._dir)!=null?c:void 0,hasBackdrop:(a=this._defaults)==null?void 0:a.hasBackdrop,backdropClass:((b=this._defaults)==null?void 0:b.backdropClass)||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})};
h._getOverlayPosition=function(){var a=zDc(Bz(Yh(this._injector,this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
h._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"}];b=this.position==="above"?c:this.position==="below"?b:[].concat(q(b),q(c));zz(a,b)};
h._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element};h._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};h._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};
h._resetActiveItem=function(){var a=this.autocomplete;if(a.autoActiveFirstOption){for(var b=-1,c=0;c<a.options.length;c++)if(!a.options.get(c).disabled){b=c;break}a._keyManager.setActiveItem(b)}else a._keyManager.setActiveItem(-1)};h._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this.autocompleteDisabled};
h._scrollToOption=function(a){var b=this.autocomplete,c=Yra(a,b.options,b.optionGroups);a===0&&c===1?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(Zra(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
h._applyModalPanelOwnership=function(){var a=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.autocomplete.id;this._trackedModal&&Qh(this._trackedModal,"aria-owns",b);Ara(a,"aria-owns",b);this._trackedModal=a}};h._clearFromModal=function(){this._trackedModal&&(Qh(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
da.Object.defineProperties(RX.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 ve(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(we(function(){return a._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(we(function(){return a._overlayAttached})):
ee()).pipe(A(function(b){return b instanceof cEc?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});RX.\u0275fac=function(a){return new (a||RX)};
RX.\u0275dir=df({type:RX,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&&Kf("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",$g]},exportAs:["matAutocompleteTrigger"],features:[Gg([uyd]),bx]});var SX=function(){};SX.\u0275fac=function(a){return new (a||SX)};SX.\u0275mod=cf({type:SX});SX.\u0275inj=Hc({imports:[Qz,fA,wz,fA,Ey]});var TX=function(){if(p(qyd).disableGmatStyle)throw Error("db");var a=p(RX,{self:!0,optional:!0});a&&a._overlayPanelClass.push("gmat-mdc-autocomplete")};TX.\u0275fac=function(a){return new (a||TX)};TX.\u0275dir=df({type:TX,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],standalone:!1});var UX=function(){Z.apply(this,arguments);var a=this;this.cdr=p(YP,{self:!0});this.paths=p(mW);this.issueFullFridge=p(cQ);this.relatedIssues=p(PX);this.errorHandler=p(kO);this.domSafe=p(iR);this.activeSession=p(qu);this.STATUS_ICON=Qcd;this.entrySelect=new XP;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new XP;this.getTextToPutInInputOnSelect=function(){return a.query}};
Y(UX,Z);UX.\u0275dir=Z.\u0275dir;UX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(lf(250),Bf(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};UX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(q(this.defaultChoices),q(this.asyncChoices)))};UX.prototype.selectIssue=function(a){wyd(this,[a])};
var yyd=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(xyd(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return u9a(b)?[b]:[]},xyd=function(a){return!a.some(function(b){return!u9a(b)})};UX.prototype.search=function(a){typeof a==="string"&&(this.query=a)};
UX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(a==="")zyd(this);else{var b=yyd(a);b.length===1||b.length>1&&this.allowMultipleIds?(this.lastSearchType="id",Ayd(this,b,a)):(this.lastSearchType="query",Byd(this,a))}};
var zyd=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;wyd(a,[])},wyd=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;(c=a.autocomplete)==null||uIb(c)},Ayd=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,zyd(a)):(a.choices=Cyd(a,b),a.hasLoadedResults=!1,a.issueFullFridge.watchSet(b).pipe(nf(1),Bf(a.destroyed$)).subscribe(function(e){if(a.currentQuery===
c){var f=e.reduce(function(g,k){var l=Ia(k.snapshot);return g.set(k.issueId,{resourceId:k.issueId,displayText:l.title,status:l.status,relations:[]})},new Map);Bba(b);e=b.map(function(g){return f.get(g)});e.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=e;a.choices=[].concat(q(a.choices),q(a.asyncChoices));wyd(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))},Byd=function(a,b){a.choices=Dyd(a,b);a.hasLoadedResults=
!1;if(ya(b))a.hasLoadedResults=!0;else{var c=Eyd(b,a.defaultChoices),d,e,f;a.relatedIssues.get({query:c,trackerId:(d=a.activeSession.getTracker())==null?void 0:d.trackerId,resourceType:(e=a.currentResource)==null?void 0:e.type,resourceId:(f=a.currentResource)==null?void 0:f.id,nonParallelRequest:!0}).then(function(g){a.currentQuery===b&&(g=g.issueDigests.map(function(k){return{resourceId:k.issueId,displayText:k.title,status:k.status,relations:[]}}),a.choices=[].concat(q(a.choices),q(g)),a.cdr.detectChanges())},
function(g){a.errorHandler.errorHandler(null,g)}).finally(function(){a.hasLoadedResults=!0})}},Cyd=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},Dyd=function(a,b){return ya(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};UX.prototype.getIssueLink=function(a){return rs(a.resourceId)};
var hkb=function(a){return a.relations.map(function(b){return Fyd.get(b)}).filter(function(b){return!!b}).join("/")},Eyd=function(a,b){if(b.length===0)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};UX.prototype.onEnter=function(a){var b;((b=this.autocomplete)==null?0:b.panelOpen)&&a.stopPropagation()};da.Object.defineProperties(UX.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
UX.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(UX)))(b||UX)}}();
UX.\u0275cmp=D({type:UX,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&hg(RX,5);if(a&2){var c;lg(c=mg())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},standalone:!1,features:[Gg([PX,YP]),Gf,bx],decls:10,vars:7,consts:[["auto","matAutocomplete"],["issueHovercard","onedevHovercard"],["cardBody",""],[1,"bv2-issue-picker"],[1,"bv2-resource-picker",
"bv2-picker"],["type","text","placeholder","Type issue ID or search query...","autocomplete","off","spellcheck","false","aria-autocomplete","list","role","combobox","autofocus","autofocus","cdkFocusInitial","",1,"bv2-resource-picker-input",3,"ngModelChange","keydown.enter","keydown.alt.arrowright","ngModel","matAutocomplete"],[1,"issue-picker","base-resource-picker",3,"optionActivated","optionSelected","displayWith"],["disabled",""],["disabled","",1,"bv2-resource-picker-message"],[1,"bv2-resource-picker-item",
"bv2-issue-picker-item",3,"value"],[1,"bv2-issue-picker-message"],[1,"spinner-container"],[3,"large"],["role","region","tabindex","0"],[1,"icon-s","margin-none",3,"svgIcon"],[1,"bv2-issue-picker-issue-id",3,"title"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["mat-icon-button","","aria-label","Go to issue page.","data-stable","issue-pop-out","target","_blank",1,"small","bv2-issue-picker-pop-out",3,"click","onedevHovercardTrigger","href"],["svgIcon","pop-out",1,"icon-s"],[1,
"bv2-issue-picker-relations"],[1,"bv2-issue-picker-description",3,"title","innerHTML"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3);F(1,ckb,3,0,"div");K(2,"div",4)(3,"input",5);N("ngModelChange",function(d){u(c);return v(b.search(d))})("keydown.enter",function(d){u(c);return v(b.onEnter(d))})("keydown.alt.arrowright",function(){u(c);b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice));return v()});L();K(4,"mat-autocomplete",6,0);N("optionActivated",
function(d){u(c);b.activeChoice=d.option==null?null:d.option.value;return v()})("optionSelected",function(d){u(c);return v(b.selectIssue(d.option.value))});F(6,dkb,3,1,"mat-option",7);F(7,ekb,2,0,"mat-option",8);Of(8,ikb,14,15,"mat-option",9,Nf);L()()()}a&2&&(a=qg(5),B(),G(b.searchingForSelf?1:-1),B(2),I("ngModel",b.query)("matAutocomplete",a),Kf("aria-label",b.selectedIssues.length>0?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue"),B(),I("displayWith",b.getTextToPutInInputOnSelect),
B(2),G(b.query===""||b.hasLoadedResults?-1:6),B(),G(b.query!==""&&b.hasLoadedResults&&b.choices.length===0?7:-1),B(),Pf(b.choices))},dependencies:[Dy,yj,$D,gE,DK,EK,LK,FK,PW,TX,QX,cA,RX,gB,eB,$T,dV],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 Fyd=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"]]);var Gyd=function(){this.dialogRef=p(NA);this.params=p(SQ);this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.originalData=p(PA);this.data=Object.assign({},this.DEFAULTS,this.originalData);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.isQueryRestricted=!1;this.selectedIssues=[]},mkb=function(a){if(a.queryRestriction!==""&&a.issuePicker!=null){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Xr(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};h=Gyd.prototype;h.onQueryChange=function(a){this.isQueryRestricted=this.queryRestriction!==""&&a.includes(this.queryRestriction)};h.onEnter=function(){if(this.selectedIssues.length!==0)this.onPressConfirm()};h.onEscape=function(){this.dialogRef.close()};h.onPressConfirm=function(){var a,b={selectedIssueIds:this.selectedIssues.map(function(c){return c.resourceId}),lastSearchType:(a=this.issuePicker)==null?void 0:a.lastSearchType};this.dialogRef.close(b)};
h.onPressCancel=function(){this.dialogRef.close()};Gyd.\u0275fac=function(a){return new (a||Gyd)};
Gyd.\u0275cmp=D({type:Gyd,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hg(UX,5);if(a&2){var c;lg(c=mg())&&(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&&(K(0,"h2",0),Q(1),L(),K(2,"div",1)(3,"div",2),F(4,kkb,3,0,"div",3),F(5,lkb,6,3,"div",3),L(),K(6,"div",4)(7,"div",5),F(8,nkb,2,2,"div",6),K(9,"b-simple-issue-picker",7),N("keydown.enter",function(){return b.onEnter()})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),L()()()(),K(10,
"div",8)(11,"button",9),N("click",function(){return b.onPressCancel()}),Q(12," Cancel "),L(),K(13,"button",10),N("click",function(){return b.onPressConfirm()}),Q(14," Confirm "),L()());a&2&&(B(),S(" ",b.data.title,"\n"),B(3),G(b.selectedIssues.length>1?4:-1),B(),G(b.selectedIssues.length===1?5:-1),B(3),G(b.queryRestriction?8:-1),B(),wg("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),I("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",
b.data.allowMultipleIds),B(4),I("disabled",!b.selectedIssues.length))},dependencies:[Dy,gB,cB,TA,VA,UA,oK,iA,UX],encapsulation:2});var VX=function(){};VX.\u0275fac=function(a){return new (a||VX)};VX.\u0275mod=cf({type:VX});VX.\u0275inj=Hc({imports:[SX]});var Hyd=function(){};Hyd.\u0275fac=function(a){return new (a||Hyd)};Hyd.\u0275mod=cf({type:Hyd});Hyd.\u0275inj=Hc({imports:[gV,RO,xE,MK,AX,VX,iB,MJ,pK,bU]});var Iyd=new fd("XapHatsSurveyApiKey"),Jyd=new fd("XapHatsSurveyLocale"),Kyd=new fd("XapHatsSurveyWindow"),Lyd=new fd("XapHatsSurveyListnrProductId");var Myd=new Map([[0,1],[1,2]]),Nyd={anchor:1,verticalMargin:0,horizontalMargin:0},WX=function(a,b,c,d,e){var f=function(){var g={apiKey:a,locale:c!=null?c:"en-US",window:d};g=ybd(Dbd,"help.service.Lazy.create",b,{apiKey:g.apiKey||g.apiKey,asxUiUri:g.asxUiUri||g.asxUiUri,environment:g.environment||g.environment,flow:g.flow||g.flow,frdProductData:g.frdProductData||g.frdProductData,frdProductDataSerializedJspb:g.frdProductDataSerializedJspb||g.frdProductDataSerializedJspb,helpCenterPath:g.helpCenterPath||
g.helpCenterPath,locale:g.locale||g.locale||"en-US".replace(/-/g,"_"),nonce:g.nonce||g.nonce,productData:g.productData||g.productData,receiverUri:g.receiverUri||g.receiverUri,renderApiUri:g.renderApiUri||g.renderApiUri,theme:g.theme||g.theme,window:g.window||g.window});return new Cbd(g)};this.helpService=e?e.runOutsideAngular(f):f()},Oyd=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 Vd(function(f){a.helpService.requestSurvey({triggerId:b,
enableTestingMode:d.enableTestingMode,enableFeedback1pEndpoint:d.enableFeedback1pEndpoint,nonProd:d.nonProd,thirdPartyDomainSupportEnabled:d.thirdPartyDomainSupportEnabled,callback:function(g){g.surveyData!=null&&f.next(g.surveyData);f.complete()},authuser:e})})).pipe(Af(function(f){return new Vd(function(g){var k;a.helpService.presentSurvey({surveyData:f,colorScheme:d.theme?Myd.get(d.theme):1,authuser:e,customZIndex:(k=d.zIndex)!=null?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,parentDomElementId:d.parentDomElementId,
listener:{surveyClosed:function(){g.complete()},surveyPositioning:function(){return Object.assign({},Nyd,d.placement)}}});g.next(f.surveyMetadata)})}))};WX.\u0275fac=function(a){return new (a||WX)($c(Iyd),$c(Lyd),$c(Jyd,8),$c(Kyd,8),$c(Rg,8))};WX.\u0275prov=Fc({token:WX,factory:WX.\u0275fac,providedIn:"root"});var XX=function(){this.dialog=p(QA);this.analytics=p(aQ);this.hatsService=p(WX);this.activeSession=p(qu)};
XX.prototype.open=function(a,b){var c=this,d=Pyd(a),e=d.dialog,f=d.config;return new Promise(function(g){OA(c.dialog.open(e,f)).subscribe(function(k){var l,r=(l=k==null?void 0:k.selectedIssueIds)!=null?l:[],w;k=(w=k==null?void 0:k.lastSearchType)!=null?w:"";w=[a.originIsBulk?"bulk":void 0,r.length>1?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent("issuePicker",w,k);b==null||b(r);g(r);c.activeSession.isInternalSession()&&k==="id"&&Oyd(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(nf(1)).subscribe()})})};
var Pyd=function(a){var b={panelClass:"no-jitter",data:a};return a.edgeType==="canonical"?(b.width="60vw",b.minWidth="800px",{dialog:YW,config:b}):{dialog:Gyd,config:b}};XX.\u0275fac=function(a){return new (a||XX)};XX.\u0275prov=Fc({token:XX,factory:XX.\u0275fac,providedIn:"root"});var Qyd=function(){};Qyd.\u0275fac=function(a){return new (a||Qyd)};Qyd.\u0275mod=cf({type:Qyd});Qyd.\u0275inj=Hc({imports:[Hyd,pyd]});var Ryd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ryd,W);Ryd.prototype.getContentJudgement=function(){return X(this,Jo,1)};Ryd.prototype.setContentJudgement=function(a){return Ni(this,Jo,1,a)};var Syd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Syd,W);Syd.prototype.getContentJudgement=function(){return X(this,Jo,1)};Syd.prototype.setContentJudgement=function(a){return Ni(this,Jo,1,a)};var Tyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Tyd.messageId)};Y(Tyd,W);Tyd.prototype.getIt=function(){return X(this,Ryd,4,jb)};Tyd.prototype.setIt=function(a){return Ni(this,Ryd,4,a,jb)};Tyd.messageId="b.CreateContentJudgementRequest";var Uyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Uyd,W);var Vyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Vyd.messageId)};Y(Vyd,W);Vyd.prototype.getIt=function(){return X(this,Uyd,2,jb)};Vyd.prototype.setIt=function(a){return Ni(this,Uyd,2,a,jb)};Vyd.messageId="b.ListContentJudgementsResponse";var Wyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,Wyd.messageId)};Y(Wyd,W);Wyd.prototype.getIt=function(){return X(this,Syd,2,jb)};Wyd.prototype.setIt=function(a){return Ni(this,Syd,2,a,jb)};Wyd.messageId="b.UpdateContentJudgementRequest";var YX=function(){this.executor=p(ZN)};YX.prototype.create=function(a,b,c){var d=new Tyd,e=d.setIt,f=new Ryd,g=f.setContentJudgement;a=V0a(iWa({resourcePath:a,severity:b,judgementReason:c,contentJudgementId:void 0}));a=Im(a,6,2);d=e.call(d,g.call(f,a));return this.executor.post({url:"action/content_judgements",body:d,responseConstructor:Lr}).pipe(A(VYa))};
YX.prototype.update=function(a){var b=V0a(iWa(a));b=Aw(b,9);b=(new Wyd).setIt((new Syd).setContentJudgement(b));return this.executor.post({url:"action/content_judgements/"+a.contentJudgementId,body:b,responseConstructor:Lr}).pipe(A(VYa))};YX.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:Vyd}).pipe(A(function(b){b=b.getIt();return Ci(b,Jo,1,Di()).map(jWa)}))};YX.\u0275fac=function(a){return new (a||YX)};
YX.\u0275prov=Fc({token:YX,factory:YX.\u0275fac,providedIn:"root"});var ZX=function(){var a=this;this.dialogRef=p(NA);this.documentationLinks=p(YR);this.contentJudgements=p(YX);this.activeSession=p(qu);this.data=p(PA);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.RestrictionSeverity=jcd;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=m(b);for(var d=b.next();!d.done;d=
b.next())d=d.value,xm(d.judge)===a.activeSession.getUserEmail()?Xyd(a,d):Yyd(d.severity,c)&&(c=d.severity);a.minimumSeverity=c;Yyd(a.minimumSeverity,a.severity)&&(a.severity=a.minimumSeverity);a.loaded=!0}):(Xyd(this,this.data.contentJudgement),this.loaded=!0)};ZX.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var Yyd=function(a,b){return okb(a)>okb(b)},Xyd=function(a,b){if(a.judgement=b)a.severity=b.severity},Zyd=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.";
Yyd(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};ZX.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};
ZX.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()})};ZX.prototype.onNoClick=function(){this.dialogRef.close(null)};ZX.\u0275fac=function(a){return new (a||ZX)};
ZX.\u0275cmp=D({type:ZX,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&&(K(0,"header",0)(1,"h1"),M(2,"mat-icon",1),K(3,"div"),Q(4," Set restriction "),L()()(),K(5,"section",2)(6,"label",3),Q(7),K(8,"a",4),Q(9," Learn More "),
L()(),K(10,"mat-radio-group",5),Cg("ngModelChange",function(c){Bg(b.severity,c)||(b.severity=c);return c}),K(11,"mat-radio-button",6),Q(12," No restriction "),K(13,"div"),Q(14,' Users with "View issues" can access. '),L()(),K(15,"mat-radio-button",7),Q(16," Restricted "),K(17,"div"),Q(18,' Users with "View restricted content" can access. '),L()(),K(19,"mat-radio-button",8),Q(20," Restricted+ "),K(21,"div"),Q(22,' Users with "View restricted+ content" can access. '),L()()()(),K(23,"mat-dialog-actions")(24,
"button",9),N("click",function(){return b.onNoClick()}),Q(25," Cancel "),L(),K(26,"button",10),N("click",function(){return b.onSaveClick()}),Q(27," Set "),L()());a&2&&(B(7),S(" ",Zyd(b)," "),B(),I("rel",b.EXTERNAL_LINK_REL),Kf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Pe),B(2),Ag("ngModel",b.severity),B(),I("value",b.RestrictionSeverity.NONE_DETECTED)("disabled",!b.canInteract()||Yyd(b.minimumSeverity,b.RestrictionSeverity.NONE_DETECTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED)("disabled",
!b.canInteract()||Yyd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED_PLUS)("disabled",!b.canInteract()||Yyd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED_PLUS)),B(7),I("disabled",!b.canInteract()))},dependencies:[Dy,gB,cB,TA,VA,UA,qT,rT,$D,gE],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 $X=function(){this.dialogRef=p(NA);this.documentationLinks=p(YR);this.data=p(PA);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.resource=this.data.resource;this.piiRetention=this.data.piiRetention;this.acknowledgeToMatchIssueRetention=!1};$X.prototype.canInteract=function(){return!$yd(this)||this.acknowledgeToMatchIssueRetention};var $yd=function(a){return a.piiRetention==="INDEFINITE"};$X.prototype.onSaveClick=function(){this.dialogRef.close(1)};$X.prototype.onNoClick=function(){this.dialogRef.close(0)};
$X.\u0275fac=function(a){return new (a||$X)};
$X.\u0275cmp=D({type:$X,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&&(K(0,"h1",0),M(1,"mat-icon",1),K(2,"div"),F(3,pkb,2,1,"span")(4,qkb,2,0,"span"),L()(),K(5,"div",2),F(6,rkb,8,1,"span")(7,skb,3,2,"span"),K(8,"span")(9,"a",3),Q(10," Learn More "),L()(),K(11,"div")(12,"span"),F(13,tkb,2,1,"mat-checkbox",4),L()()(),K(14,"div",5)(15,"button",6),N("click",function(){return b.onNoClick()}),Q(16," Cancel "),L(),K(17,"button",7),N("click",function(){return b.onSaveClick()}),
Q(18," Save "),L()());a&2&&(B(3),G($yd(b)?3:4),B(3),G($yd(b)?6:7),B(3),I("rel",b.EXTERNAL_LINK_REL),Kf("href",mu(),Pe),B(4),G($yd(b)?13:-1),B(4),I("disabled",!b.canInteract()))},dependencies:[Dy,gB,cB,TA,VA,UA,fL,aI,$D,gE],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var azd=function(){this.activeSession=p(qu);this.errorHandler=p(kO);this.eventsForIssueFridge=p(IP);this.issueFullFridge=p(cQ);this.issueCommentsService=p(nS);this.issueInteractionsTracking=p(zS);this.butterBar=p(QN);this.editIssueService=p(DS);this.formattedCommentsForIssueFridge=p(KP);this.userPreferencesManager=p(dR)},bzd=function(a,b){var c=b.issueId;var d=b.newCommentId;var e=b.newComment;var f=b.newCommentFormattingMode;var g=b.recaptchaToken;var k,l;y(function(r){switch(r.nextAddress){case 1:k=
a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),r.return();Qr(k,"commentEdit");Pr(a.butterBar,"Saving comment edit...",0);Rr(a.issueInteractionsTracking,c,{label:d===1?"description":"comment"});Yd(r,2,3);return z(r,a.issueCommentsService.update(c,d,e,f,g),5);case 5:Pr(a.butterBar,"Comment edit successful.",4E3),a.eventsForIssueFridge.manualUpdate(c,function(w){w.events=wUa(w.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})}),
a.issueFullFridge.poke(c),a.formattedCommentsForIssueFridge.invalidate(c+"-"+d),a.eventsForIssueFridge.poke(c);case 3:Zd(r);BS(k,"commentEdit");ae(r,0);break;case 2:l=be(r),mO(a.errorHandler,l),r.jumpTo(3)}})};azd.\u0275fac=function(a){return new (a||azd)};azd.\u0275prov=Fc({token:azd,factory:azd.\u0275fac,providedIn:"root"});var czd=function(a,b,c,d){this.objectId=a;this.version=b;this.payload=c;this.isReplay=d===void 0?!1:d},dzd=function(){},ezd=function(a){this.timestampMicros=a};ukb.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var fzd=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 aY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(aY,W);var hzd=function(){var a=new aY;return So(a,1,gzd,yb(!0))},izd=function(){var a=new aY;return So(a,2,gzd,yb(!0))},gzd=[1,2,3,15];var Ikb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ikb,W);var Hkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hkb,W);var Js=[1,2,3,4,5,6,7,8,9,10,11,12,13];var Is=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Is,W);Is.prototype.getPartsList=function(){return Ci(this,Hkb,1,Di())};Is.prototype.addParts=function(a){return Pp(this,1,Hkb,a)};var Hs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hs,W);Hs.prototype.getName=function(){return Tv(this,1,jzd)};Hs.prototype.setName=function(a){return Co(this,1,jzd,a)};Hs.prototype.hasName=function(){return mr(this,1,jzd)!=null};Hs.prototype.getNameOrUndefined=function(){return mr(this,1,jzd)};var jzd=[1,2];var kzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kzd,W);h=kzd.prototype;h.setProject=function(a){Ni(this,Hs,1,a)};h.getOwner=function(){return X(this,aY,2)};h.setOwner=function(a){return Ni(this,aY,2,a)};h.getPath=function(){return X(this,Is,3)};h.setPath=function(a){return Ni(this,Is,3,a)};h.hasPath=function(){return yi(this,Is,3)};var lzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lzd,W);h=lzd.prototype;h.setProject=function(a){Ni(this,Hs,1,a)};h.getOwner=function(){return X(this,aY,2)};h.setOwner=function(a){return Ni(this,aY,2,a)};h.getPrefix=function(){return X(this,Is,3)};h.setPrefix=function(a){Ni(this,Is,3,a)};var bY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bY,W);bY.prototype.getVersion=function(){return Pw(this,1)};bY.prototype.setVersion=function(a){return Fn(this,1,a)};bY.prototype.getVersionOrUndefined=function(){return Kw(this,1)};var mzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mzd,W);h=mzd.prototype;h.getHeader=function(){return X(this,bY,4)};h.hasHeader=function(){return yi(this,bY,4)};h.getStartTimeMicros_asString=function(){return nn(this,1)};h.setStartTimeMicros=function(a){return Kn(this,1,a)};h.getPrefix=function(){return $l(this,lzd,6,nzd)};h.setPrefix=function(a){Yo(this,6,nzd,a)};var nzd=[2,3,6];var ozd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ozd,W);var pzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(pzd,W);pzd.prototype.setAffinitization=function(a){Hn(this,2,a)};pzd.prototype.getAffinitizationOrUndefined=function(){return xp(this,2)};pzd.prototype.getStartTimeMicros_asString=function(){return un(this,4)};pzd.prototype.setStartTimeMicros=function(a){return wn(this,4,a)};var qzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qzd,W);var rzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(rzd,W);h=rzd.prototype;h.setStreamId=function(a){return Kn(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return Ew(this,1)};h.getOpen=function(){return $l(this,mzd,2,szd)};h.setOpen=function(a){return Yo(this,2,szd,a)};h.getClose=function(){return $l(this,qzd,3,szd)};h.setClose=function(a){Yo(this,3,szd,a)};h.hasClose=function(){return Ri(this,qzd,3,szd)};h.setAffinitization=function(a){Hn(this,4,a)};
h.getAffinitizationOrUndefined=function(){return xp(this,4)};var szd=[2,3];var tzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(tzd,W);tzd.prototype.setRequestsList=function(a){return Oi(this,1,a)};tzd.prototype.addAndReturnRequests=function(){return Bc(this,1,rzd)};var uzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uzd,W);uzd.prototype.getChannelId=function(){return vi(this,1)};uzd.prototype.setChannelId=function(a){return pj(this,1,a)};var vzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vzd,W);var cY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(cY,W);cY.prototype.getCode=function(){return xi(this,1)};cY.prototype.setCode=function(a){return Hn(this,1,a)};cY.prototype.getCodeOrUndefined=function(){return xp(this,1)};var wzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wzd,W);var xzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xzd,W);h=xzd.prototype;h.getPayloadOrUndefined=function(){return fm(this,2,void 0,void 0,uc)};h.getVersion=function(){return Qw(this,3)};h.setVersion=function(a){return Kn(this,3,a)};h.getVersionOrUndefined=function(){return Qb(fm(this,3))};h.getVersionOrUndefined_asString=function(){return Ew(this,3)};var yzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yzd,W);var zzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zzd,W);var Azd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Azd,W);Azd.prototype.getStart=function(){return $l(this,zzd,1,Bzd)};Azd.prototype.setStart=function(a){return Yo(this,1,Bzd,a)};Azd.prototype.hasChanges=function(){return Ri(this,yzd,2,Bzd)};var Bzd=[1,2,3,5];var Czd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Czd,W);Czd.prototype.getChannelId=function(){return vi(this,1)};Czd.prototype.setChannelId=function(a){return pj(this,1,a)};var Dzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dzd,W);Dzd.prototype.getStatus=function(){return X(this,rFc,1)};Dzd.prototype.setStatus=function(a){return Ni(this,rFc,1,a)};Dzd.prototype.hasStatus=function(){return yi(this,rFc,1)};var Ezd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ezd,W);h=Ezd.prototype;h.setStreamId=function(a){return Kn(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return Ew(this,1)};h.getClose=function(){return $l(this,Dzd,3,Fzd)};h.setClose=function(a){Yo(this,3,Fzd,a)};h.hasClose=function(){return Ri(this,Dzd,3,Fzd)};var Fzd=[2,3,4];var Gzd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gzd,W);Gzd.prototype.getResponsesList=function(){return Ci(this,Ezd,1,Di())};Gzd.prototype.getStatus=function(){return X(this,cY,2)};Gzd.prototype.setStatus=function(a){return Ni(this,cY,2,a)};Gzd.prototype.hasStatus=function(){return yi(this,cY,2)};var Hzd=function(){CB.call(this,"d")};rw(Hzd,CB);var Izd=function(){CB.call(this,"c")};rw(Izd,CB);var Jzd=function(a,b,c,d){this.uri=a;this.authMethod=b;this.useFetchApi=c;this.addDomainPrefix=d},Kzd=function(a){var b=a.uri.clone();a.addDomainPrefix&&QB(b,Math.floor(Math.random()*10).toString()+"-"+b.getDomain());return b},Lzd=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new vu;this.channel=this.createWebChannel(e)};
Lzd.prototype.createWebChannel=function(a){var b=this;a={sendRawJson:!0,messageContentType:"application/json+protobuf",httpSessionIdParam:void 0,messageUrlParams:Object.assign({},{gsessionid:a},this.config.authMethod.getQueryParameters()),detectBufferingProxy:!0,useFetchStreams:this.config.useFetchApi,messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(Kzd(this.config).toString(),a);this.channelHandler.listen(a,
"a",function(){b.channelStatusHandler.onOpen()});this.channelHandler.listen(a,"b",function(){b.channelStatusHandler.onClose((new Mzd(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"d",function(c){if(c.data&&Array.isArray(c.data)&&c.data.length===1)if(c.metadataKey&&c.metadataKey==="status"){c=nea(AB,c.data[0][0]);var d=b.channelStatusHandler;c.getCode()!==0&&(d.channelEventCallback(new Nzd(c)),d.handleError(c))}else c=
nea(Gzd,c.data[0]),b.channelMessageHandler(c)});this.channelHandler.listen(a,"c",function(c){b.channelStatusHandler.onError(c,(new Mzd(b.channel.channel_)).getLastStatusCode());c.status!==0&&(b.state=2)});return a};Lzd.prototype.open=function(){this.state===0&&(this.state=1,this.channel.open())};Lzd.prototype.close=function(){this.state!==2&&this.channel.close()};Lzd.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var Ozd,Pzd=(new bY).setVersion(9);Ozd=Hn(Pzd,2,5);var Es=function(a){this.rep=a};Es.prototype.equals=function(a){return this.rep===a.rep};var Qzd=function(){var a=8;a=a===void 0?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};Qzd.prototype.update=function(){var a=Date.now(),b=this.tokens+(a-this.lastAddedTimestampMs)/3E5;this.tokens>=b||(this.tokens=Math.min(b,this.max),this.lastAddedTimestampMs=a)};var Rzd=function(){},Szd=function(){},Tzd=function(){},Uzd=function(){},Vzd=function(){},Wzd=function(){},Xzd=function(a){this.error=a},Nzd=function(a){this.status=a};var Jkb=function(a,b){this.seconds=a;this.nanos=b},Kkb=function(a){var b=new Ti;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Pkb=function(a){try{var b=Number(a.getSeconds()),c=a.getNanos();if(b<-62135596800)throw Error("Xe`"+b);if(253402300800<=b)throw Error("Ye`"+b);if(c<0)throw Error("Ze`"+c);if(1E9<=c)throw Error("$e`"+c);if(!Number.isInteger(b))throw Error("af`"+b);if(!Number.isInteger(c))throw Error("bf`"+c);return new Jkb(b,c)}catch(d){return null}};
Jkb.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var Ds=function(a,b){this.value=a;this.isDecreasing=!!b};
Ds.prototype.equals=function(a){if(this.value===null)var b=a.value===null;else if(this.value instanceof Es)b=a.value instanceof Es?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 Ks)b=a.value instanceof Ks?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 Jkb?a.value instanceof Jkb?this.value.equals(a.value):!1:!1;return b};var Ls=function(a,b){this.parts=a;this.isPrivate=b},Mkb=function(){for(var a=[],b=m(bd.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Ds?a.push(c):a.push(new Ds(c));return new Ls(a,!1)};
Ls.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 Yzd=function(){},Bkb=function(a,b){this.apiKey=a;this.authUser=b};h=Bkb.prototype;h.getHeaders=function(){var a={},b;(b=mqc([]))?(b=b.split(" "),b={scheme:b[0],hash:b[1]}):b=null;b!=null&&(a.Authorization=b.scheme+" "+b.hash,a["X-Goog-AuthUser"]=String(this.authUser||0));return a};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 0};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){return this.authUser};
var ykb=function(a){this.oauthTokens=a};h=ykb.prototype;h.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};h.getQueryParameters=function(){return{}};h.domainType=function(){return 1};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){};var Akb=function(a){this.apiKey=a};h=Akb.prototype;h.getHeaders=function(){return{}};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 1};
h.usesCredentialedRequests=function(){return!1};h.getAuthUser=function(){};var zkb=function(a,b){this.apiKey=a;this.oauthTokens=b};h=zkb.prototype;h.getHeaders=function(){return{Authorization:"Bearer "+this.oauthTokens.getValue()}};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 0};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){};var Zzd=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,Zzd.prototype);this.name="XhrError"};Y(Zzd,Error);var $zd=function(a,b){b=b===void 0?Ekb():b;this.baseUri=a;this.xhrIo=b};$zd.prototype.post=function(a,b,c,d){d=d===void 0?{}:d;return this.request("POST",a,b,c,d)};
var aAd=function(a,b){a.endsWith("/")&&(a=a.substring(0,a.length-1));b.startsWith("/")&&(b=b.substring(1));return a+"/"+b};
$zd.prototype.request=function(a,b,c,d,e){var f=this,g=new Ns(this.baseUri);g.setPath(aAd(g.getPath(),b));if(e.queryParams){b=m(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var l=m(k.value);k=l.next().value;l=l.next().value;yt(g,k,l)}}var r={"Content-type":"application/json+protobuf"};Object.assign(r,e.extraHeaders);var w=c.serialize();return new Promise(function(x,C){var H;f.xhrIo.send(g,function(){var J=this.getStatus()===-1?void 0:this.getStatus();if(this.isSuccess())try{x(dta(d,
this.getResponseText()))}catch(O){C(new Zzd(4,"Failed to deserialize response from "+g+": "+this.getResponseText(),J))}else C(new Zzd(this.getLastErrorCode(),this.getLastError(),J))},a,w,r,(H=e.timeoutMs)!=null?H:2E4,e.withCredentials)})};var bAd=null,cAd=function(){return bAd=bAd||new kj},dAd=function(a){CB.call(this,"serverreachability",a)};rw(dAd,CB);var eAd=function(a){var b=cAd();b.dispatchEvent(new dAd(b,a))},fAd=function(a,b){CB.call(this,"statevent",a);this.stat=b};rw(fAd,CB);var dY=function(a){var b=cAd();b.dispatchEvent(new fAd(b,a))},gAd=function(a,b,c){CB.call(this,"timingevent",a);this.size=b;this.rtt=c};rw(gAd,CB);
var hAd=function(a,b,c){var d=cAd();d.dispatchEvent(new gAd(d,a,b,c))},iAd=function(a,b){if(typeof a!=="function")throw Error("df");return ra.setTimeout(function(){a()},b)};var eY=function(){this.redactEnabled_=!0};eY.prototype.disableRedact=function(){this.redactEnabled_=!1};
var jAd=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var g="";for(var k=f.split("&"),l=0;l<k.length;l++){var r=k[l].split("=");if(r.length>1){var w=r[0];r=r[1];var x=w.split("_");g=x.length>=2&&x[1]=="type"?g+(w+"="+r+"&"):g+(w+"=redacted&")}}}else g=null;else g=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+g})},kAd=function(a,b,c,d,e,f,g){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+g})},mAd=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+lAd(a,c)+(d?" "+d:"")})},nAd=function(a,b){a.info(function(){return"TIMEOUT: "+b})};eY.prototype.debug=function(){};eY.prototype.info=function(){};eY.prototype.warning=function(){};
var lAd=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(e.length<2)){var f=e[1];if(Array.isArray(f)&&!(f.length<1)){var g=f[0];if(g!="noop"&&g!="stop"&&g!="close")for(var k=1;k<f.length;k++)f[k]=""}}}return(new jHc).serialize(c)}catch(l){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var fY=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 vu(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 oAd},oAd=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},pAd=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"}},qAd={},rAd={};
fY.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};fY.prototype.setTimeout=function(a){this.timeout_=a};fY.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};fY.prototype.getPendingMessages=function(){return this.pendingMessages_};
var tAd=function(a,b,c){a.type_=1;a.baseUri_=kIc(b.clone());a.postData_=c;a.decodeChunks_=!0;sAd(a,null)},sAd=function(a,b){a.requestStartTime_=Date.now();uAd(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 oAd;a.xmlHttp_=vAd(a.channel_,c?b:null,!a.postData_);a.readyStateChangeThrottleMs_>0&&(a.readyStateChangeThrottle_=new xLc(nj(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?cj(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));eAd(1);jAd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
fY.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)};fY.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?wAd(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),xAd(this)}finally{}};
var wAd=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!xAd(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?eAd(3):eAd(2));yAd(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=zAd(a);xAd(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=e==200;kAd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
AAd(a))mAd(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,BAd(a,d);else{a.successful_=!1;a.lastError_=3;dY(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");gY(a);CAd(a);return}a.decodeChunks_?DAd(a,b,c):(mAd(a.channelDebug_,a.rid_,c,null),BAd(a,c));b==4&&gY(a);a.successful_&&!a.cancelled_&&(b==4?EAd(a.channel_,a):(a.successful_=!1,uAd(a)))}else a.xmlHttp_.getResponseHeaders(),e==400&&c.indexOf("Unknown SID")>
0?(a.lastError_=3,dY(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,dY(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),gY(a),CAd(a)}},AAd=function(a){return a.xmlHttp_&&(a=Zta(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!ya(a)?a:null},zAd=function(a){if(!FAd(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 gY(a),CAd(a),"";a.fetchResponseState_.textDecoder=new ra.TextDecoder}for(var f=0;f<d;f++)a.fetchResponseState_.responseArrivedForFetch=!0,c+=a.fetchResponseState_.textDecoder.decode(b[f],{stream:!(e&&f==d-1)});b.length=0;a.fetchResponseState_.responseBuffer+=c;a.xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},xAd=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},FAd=function(a){return a.xmlHttp_?
a.verb_=="GET"&&a.type_!=2&&a.channel_.usesFetchStreams_:!1},DAd=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=GAd(a,c),e==rAd){b==4&&(a.lastError_=4,dY(14),d=!1);mAd(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==qAd){a.lastError_=4;dY(15);mAd(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else mAd(a.channelDebug_,a.rid_,e,null),BAd(a,e);FAd(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,dY(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),HAd(b),b.bpDetectionDone_=!0,dY(11))):(mAd(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),gY(a),CAd(a))},GAd=
function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return rAd;c=Number(b.substring(c,d));if(isNaN(c))return qAd;d+=1;if(d+c>b.length)return rAd;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};fY.prototype.cancel=function(){this.cancelled_=!0;gY(this)};
var uAd=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;IAd(a,a.timeout_)},IAd=function(a,b){if(a.watchDogTimerId_!=null)throw Error("ef");a.watchDogTimerId_=iAd(nj(a.onWatchDogTimeout_,a),b)},yAd=function(a){a.watchDogTimerId_&&(ra.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
fY.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(nAd(this.channelDebug_,this.requestUri_),this.type_!=2&&(eAd(3),dY(17)),gY(this),this.lastError_=2,CAd(this)):(this.channelDebug_.warning("WatchDog timer called too early"),IAd(this,this.watchDogTimeoutTime_-a))};
var CAd=function(a){a.channel_.isClosed()||a.cancelled_||EAd(a.channel_,a)},gY=function(a){yAd(a);$i(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};h=fY.prototype;h.getLastError=function(){return this.lastError_};h.getLastStatusCode=function(){return this.lastStatusCode_};h.getSessionId=function(){return this.sid_};h.getRequestId=function(){return this.rid_};h.getXhr=function(){return this.xmlHttp_};
var BAd=function(a,b){try{var c=a.channel_;if(c.state_!=0&&(c.backChannelRequest_==a||JAd(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&JAd(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.parser_.parse(b)}catch(oa){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_)KAd(c),LAd(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");MAd(c);dY(18)}else{c.lastPostResponseArrayId_=e[1];var f=c.lastPostResponseArrayId_-c.lastArrayId_;if(0<f){var g=e[2];c.channelDebug_.debug(g+" bytes (in "+f+" arrays) are outstanding on the BackChannel");g<37500&&c.enableStreaming_&&c.backChannelRetryCount_==0&&!c.deadBackChannelTimerId_&&(c.deadBackChannelTimerId_=iAd(nj(c.onBackChannelDead_,c),6E3))}}if(NAd(c.forwardChannelRequestPool_)<=
1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(oa){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),hY(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&KAd(c),!ya(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f],l=k[0];if(l<=c.lastArrayId_)c.channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+l+", lastArrayId: "+c.lastArrayId_);else if(l>
c.lastArrayId_+1&&c.lastArrayId_>-1&&c.channelDebug_.warning("Received non-consecutive message with arrayId: "+l+", lastArrayId: "+c.lastArrayId_),c.lastArrayId_=l,k=k[1],c.state_==2)if(k[0]=="c"){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var r=k[3];r!=null&&(c.channelVersion_=r,c.channelDebug_.info("VER="+c.channelVersion_));var w=k[4];w!=null&&(c.serverVersion_=w,c.channelDebug_.info("SVER="+c.serverVersion_));var x=k[5];x!=null&&typeof x==="number"&&x>0&&(g=1.5*x,c.backChannelRequestTimeoutMs_=
g,c.channelDebug_.info("backChannelRequestTimeoutMs_="+g));g=c;var C=a.getXhr();if(C){var H=Zta(C,"X-Client-Wire-Protocol");if(H){var J=g.forwardChannelRequestPool_;b=H;!J.requestPool_&&(za(b,"spdy")||za(b,"quic")||za(b,"h2"))&&(J.maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.request_&&(OAd(J,J.request_),J.request_=null))}if(g.httpSessionIdParam_){var O=Zta(C,"X-HTTP-Session-Id");O?(g.httpSessionId_=O,yt(g.forwardChannelUri_,g.httpSessionIdParam_,O)):g.channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response")}}c.state_=
3;c.handler_&&c.handler_.channelOpened();c.detectBufferingProxy_&&(c.handshakeRttMs_=Date.now()-a.requestStartTime_,c.channelDebug_.info("Handshake RTT: "+c.handshakeRttMs_+"ms"));g=c;b=a;var R=d=g,V=PAd(R,R.supportsCrossDomainXhrs_?g.hostPrefix_:null,g.path_);R.channelDebug_.debug("GetBackChannelUri: "+V);d.backChannelUri_=V;if(b.initialResponseDecoded_){g.channelDebug_.debug("Upgrade the handshake request to a backchannel.");QAd(g.forwardChannelRequestPool_,b);d=b;var ca=g.backChannelRequestTimeoutMs_;
ca&&d.setTimeout(ca);d.watchDogTimerId_&&(yAd(d),uAd(d));g.backChannelRequest_=b}else RAd(g);c.outgoingMaps_.length>0&&SAd(c)}else k[0]!="stop"&&k[0]!="close"||hY(c,7);else c.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?hY(c,7):c.disconnect():k[0]!="noop"&&c.handler_&&c.handler_.channelHandleArray(k),c.backChannelRetryCount_=0)}eAd(4)}catch(oa){}};var TAd=function(a,b){this.mapId=a;this.map=b;this.context=null};var UAd=function(a){this.maxPoolSizeConfigured_=a||10;ra.PerformanceNavigationTiming?(a=ra.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(ra.chrome&&ra.chrome.loadTimes&&ra.chrome.loadTimes()&&ra.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.maxSize_>1&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},VAd=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},NAd=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},JAd=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1},OAd=function(a,b){a.requestPool_?a.requestPool_.add(b):a.request_=b},QAd=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
UAd.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=m(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
UAd.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=m(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return Ma(this.pendingMessages_)};var WAd=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var XAd=function(a,b){var c=new eY;c.debug("TestLoadImage: loading "+a);if(ra.Image){var d=new Image;d.onload=pw(iY,c,"TestLoadImage: loaded",!0,b,d);d.onerror=pw(iY,c,"TestLoadImage: error",!1,b,d);d.onabort=pw(iY,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=pw(iY,c,"TestLoadImage: timeout",!1,b,d);ra.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},YAd=function(a,b){var c=new eY,d=new AbortController,e=setTimeout(function(){d.abort();iY(c,"TestPingServer: timeout",!1,
b)},1E4);fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?iY(c,"TestPingServer: ok",!0,b):iY(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);iY(c,"TestPingServer: error",!1,b)})},iY=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 ZAd=function(){this.replacer_=void 0};ZAd.prototype.stringify=function(a){return ra.JSON.stringify(a,this.replacer_)};ZAd.prototype.parse=function(a){return ra.JSON.parse(a,void 0)};var $Ad=function(){this.parser_=new ZAd};var aBd=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},jY=function(a){this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new eY;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_=aBd("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_=aBd("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=aBd("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=aBd("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
aBd("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 UAd(a&&a.concurrentRequestLimit);this.wireCodec_=new $Ad;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};h=jY.prototype;h.channelVersion_=8;h.state_=1;
h.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");dY(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=PAd(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;SAd(this)};
h.disconnect=function(){this.channelDebug_.debug("disconnect()");bBd(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();yt(b,"SID",this.sid_);yt(b,"RID",a);yt(b,"TYPE","terminate");cBd(this,b);a=new fY(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=kIc(b.clone());b=!1;if(ra.navigator&&ra.navigator.sendBeacon)try{b=ra.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&ra.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=vAd(a.channel_,null),
a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();uAd(a)}dBd(this)};h.getSessionId=function(){return this.sid_};
var LAd=function(a){a.backChannelRequest_&&(HAd(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},bBd=function(a){LAd(a);a.backChannelTimerId_&&(ra.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);KAd(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ra.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};h=jY.prototype;h.setExtraHeaders=function(a){this.extraHeaders_=a};
h.getHttpSessionId=function(){return this.httpSessionId_};h.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};h.getHandler=function(){return this.handler_};h.isClosed=function(){return this.state_==0};h.getState=function(){return this.state_};h.getLastStatusCode=function(){return this.errorResponseStatusCode_};
var SAd=function(a){VAd(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,xC(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},fBd=function(a,b){if(NAd(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_=iAd(nj(a.onStartForwardChannelTimer_,a,b),eBd(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
jY.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 fY(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=cj(c),Vta(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=gBd(this,b,d);e=this.forwardChannelUri_.clone();yt(e,"RID",a);yt(e,"CVER",22);this.httpSessionIdParam_&&yt(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);
cBd(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+JB(nIc(c))+"&"+d:this.httpHeadersOverwriteParam_&&oIc(e,this.httpHeadersOverwriteParam_,c));OAd(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&yt(e,"TYPE","init");this.fastHandshake_?(yt(e,"$req",d),yt(e,"SID","null"),b.decodeInitialResponse_=!0,tAd(b,e,null)):tAd(b,e,d);this.state_=2}}else this.state_==3&&(a?hBd(this,a):this.outgoingMaps_.length==0?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):VAd(this.forwardChannelRequestPool_)||
(hBd(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var hBd=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();yt(d,"SID",a.sid_);yt(d,"RID",c);yt(d,"AID",a.lastArrayId_);cBd(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&oIc(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new fY(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=gBd(a,c,1E3);c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*
.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));OAd(a.forwardChannelRequestPool_,c);tAd(c,d,b)},cBd=function(a,b){a.extraParams_&&aj(a.extraParams_,function(c,d){yt(b,d,c)});a.handler_&&aj({},function(c,d){yt(b,d,c)})},gBd=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?nj(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var g=["count="+c];f==-1?c>0?(f=e[0].mapId,g.push("ofs="+f)):f=0:g.push("ofs="+f);for(var k=!0,l=0;l<c;l++){var r=
e[l].mapId,w=e[l].map;r-=f;if(r<0)f=Math.max(0,e[l].mapId-100),k=!1;else try{r="req"+r+"_"||"";try{var x=w instanceof Map?w:Object.entries(w);for(var C=m(x),H=C.next();!H.done;H=C.next()){var J=m(H.value),O=J.next().value,R=J.next().value,V=R;Oa(R)&&(V=(new jHc).serialize(R));g.push(r+O+"="+encodeURIComponent(V))}}catch(ca){throw g.push(r+"type="+encodeURIComponent("_badmap")),ca;}}catch(ca){d&&d(w)}}if(k){x=g.join("&");break a}}x=void 0}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return x},
RAd=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,xC(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},MAd=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||a.backChannelRetryCount_>=3)return!1;a.channelDebug_.debug("Going to retry GET");a.backChannelAttemptId_++;a.backChannelTimerId_=iAd(nj(a.onStartBackChannelTimer_,a),eBd(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
jY.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;iBd(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_=iAd(nj(this.onBpDetectionTimer_,this),a)}};
jY.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;dY(10);LAd(this);iBd(this)}else this.channelDebug_.warning("Invalid operation.")};
var HAd=function(a){a.bpDetectionTimerId_!=null&&(a.channelDebug_.debug("Cancel the BP detection timer."),ra.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},iBd=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new fY(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();yt(b,"RID","rpc");yt(b,"SID",a.sid_);yt(b,"AID",a.lastArrayId_);yt(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&yt(b,"TO",a.longPollingTimeout_);yt(b,"TYPE","xmlhttp");cBd(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&oIc(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=kIc(b.clone());
c.postData_=null;c.decodeChunks_=!0;sAd(c,d);a.channelDebug_.debug("New Request created")};jY.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};jY.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,LAd(this),MAd(this),dY(19))};
var KAd=function(a){a.deadBackChannelTimerId_!=null&&(ra.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},EAd=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){KAd(a);HAd(a);a.backChannelRequest_=null;var d=2}else if(JAd(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),QAd(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(hAd(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),SAd(a)):RAd(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: "+pAd(f,a.errorResponseStatusCode_)});if(d==1&&fBd(a,b)||d==2&&MAd(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&WAd(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:hY(a,5);break;case 4:hY(a,10);break;case 3:hY(a,6);break;default:hY(a,2)}}},eBd=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},hY=function(a,b){a.channelDebug_.info("Error code "+b);if(b==2){var c=nj(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new Ns(d||"//www.google.com/images/cleardot.gif");ra.location&&ra.location.protocol=="http"||PB(d,"https");kIc(d);e?XAd(d.toString(),
c):YAd(d.toString(),c)}else dY(2);a.onError_(b)};jY.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),dY(2)):(this.channelDebug_.info("Failed to ping google.com"),dY(1))};jY.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);dBd(this);bBd(this)};
var dBd=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}),xba(a.nonAckedMapsAtChannelClose_,b),xba(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ma(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
PAd=function(a,b,c){var d=wt(c);d.getDomain()!=""?(b&&QB(d,b+"."+d.getDomain()),RB(d,d.port_)):(d=ra.location,d=lIc(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&yt(d,b,c);yt(d,"VER",a.channelVersion_);cBd(a,d);return d},vAd=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("ff");b=a.usesFetchStreams_&&!a.xmlHttpFactory_?new Fs(new NB({streamBinaryChunks:c})):new Fs(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};jY.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var jBd=function(){};h=jBd.prototype;h.channelOpened=function(){};h.channelHandleArray=function(){};h.channelError=function(){};h.channelClosed=function(){};h.isActive=function(){return!0};h.badMapError=function(){};h.correctHostPrefix=function(a){return a};var kBd=function(){};kBd.prototype.createWebChannel=function(a,b){return new kY(a,b)};
var kY=function(a,b){kj.call(this);this.channel_=new jY(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)&&!ya(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!ya(b)&&(this.channel_.httpSessionIdParam_=b,Mta(this.messageUrlParams_,b)&&Rta(this.messageUrlParams_,b));this.channelHandler_=new lBd(this)};rw(kY,kj);
kY.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};kY.prototype.close=function(){this.channel_.disconnect()};kY.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 jHc).serialize(a),a=c);b.outgoingMaps_.push(new TAd(b.nextMapId_++,a));b.state_==3&&SAd(b)};
kY.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;kY.superClass_.disposeInternal.call(this)};var mBd=function(a){Hzd.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)?Tta(b,this.metadataKey):b}else this.data=a};rw(mBd,Hzd);
var nBd=function(a){Izd.call(this);this.status=1;this.errorCode=a};rw(nBd,Izd);var lBd=function(a){this.channel_=a};rw(lBd,jBd);lBd.prototype.channelOpened=function(){this.channel_.dispatchEvent("a")};lBd.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new mBd(a))};lBd.prototype.channelError=function(a){this.channel_.dispatchEvent(new nBd(a))};lBd.prototype.channelClosed=function(){this.channel_.dispatchEvent("b")};var Mzd=function(a){this.channel_=a};
Mzd.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};Mzd.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};Mzd.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var oBd=function(){this.changeList=[]};oBd.prototype.add=function(a){this.changeList.push(a)};
var pBd=function(){var a=a===void 0?Date:a;var b=b===void 0?MN(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},qBd=function(a,b,c){this.authMethod=b;this.jspbClient=new $zd(a,c)},rBd=function(a,b,c,d){var e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1){e=new pBd;var C=new ozd;C=Ni(C,mzd,1,b);f=Fn(C,4,c);if(d){if(d.rttMicros==null)throw Error("hf");C=HN(d.rttMicros)/1E6;C=Sw(f,2,C);var H=d.clockOffsetMicros!=null?MN(d.clock.now()*1E3).add(d.clockOffsetMicros):void 0;H=(g=H)==null?void 0:
g.toString();wn(C,3,H)}return z(x,a.jspbClient.post("/v1/chooseServer",f,pzd,xkb(a.authMethod)),2)}k=x.yieldResult;C=e;H=Ms(k.getStartTimeMicros_asString());var J=Ms(un(k,5)),O=MN(C.clock.now()*1E3),R=JN(J,H);C.rttMicros=JN(JN(O,C.clientStartMicros),R);C.clockOffsetMicros=JN(JN(H,C.clientStartMicros).add(J),O).div(MN(2));l=Lw(k,1);if(l==null)throw Error("jf");return x.return({gsessionid:l,affinitization:(r=k.getAffinitizationOrUndefined())!=null?r:0,initialConnectionDelayMillis:(w=Kw(k,3))!=null?
w:0,timeEstimator:e})})},sBd=function(a,b,c){this.authMethod=b;this.jspbClient=new $zd(a,c)},tBd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1){if(a.authMethod instanceof Akb)return f.return(Promise.resolve());d=(new uzd).setChannelId(c);e=xkb(a.authMethod);e.queryParams==null&&(e.queryParams={});e.queryParams.gsessionid=b;e.timeoutMs=1E4;Yd(f,2);return z(f,a.jspbClient.post("/v1/refreshCreds",d,vzd,e),4)}if(f.nextAddress!=2)return bt(f,0);be(f);ce(f)})},uBd=function(a,b,c){this.project=
a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},lY=function(a,b){var c=this;this.channelDeps=a;this.options=b;this.refreshCredsTimerScheduled=!1;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new sf;this.streamNumber=0;this.rawStatus=new sf;this.status=new Nj(new AB);this.skipBackoff=new Qzd;this.recentResyncs=[];this.hasConnected=!1;this.consecutiveThrottledConnections=0;this.channelStatHandler=
new vu;this.channelEventCallback=function(f){Promise.resolve().then(function(){var g,k;(k=(g=c.options).channelEventCallback)==null||k.call(g,f)}).catch(function(){})};this.options.channelEventCallback&&this.channelStatHandler.listen(cAd(),"statevent",function(f){c.channelEventCallback(f)});this.rawStatus.pipe(ela(function(f){return f.getCode()===0?Promise.resolve():new Promise(function(g){Gs(g,500)})})).subscribe(this.status);this.delayGenerator=new ukb;var d,e;this.reconnectHint=(e=(d=b.reconnectHint)==
null?void 0:d.pipe(jf(function(){return jx}),dla(jx)))!=null?e:jx;vBd(this)},wBd=function(a,b,c){b=b.then(function(d){var e=!1;switch(d.domainType()){case 2:case 0:var f=a.firstPartyUri;e=a.addDomainPrefix;break;case 1:f=a.thirdPartyUri;break;default:f=new Ns}var g=f.clone().setPath(aAd(f.getPath(),"/multi-watch/channel")),k=new Jzd(g,d,c.xmlHttpFactory!==void 0,e);return{serverChooser:new qBd(f,d,Ekb(c.xmlHttpFactory)),credentialRefresher:new sBd(f,d,Ekb(c.xmlHttpFactory)),channelCreator:function(l,
r,w){l=new Lzd(l,r,k,function(x,C){return(new kBd).createWebChannel(x,C)},w);l.open();return l}}});return new lY(b,c)},xBd=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},yBd=function(a){var b;Gs(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?(tBd(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),
a.channelState.lastRefreshTime=Date.now(),yBd(a)):a.refreshCredsTimerScheduled=!1})},xBd(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))};lY.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 zBd=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},ABd=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 Ls&&d instanceof Ls?c.equals(d):!1;return d})};lY.prototype.onOpen=function(){this.channelEventCallback(new Vzd);var a=(new AB).setCode(0);try{this.rawStatus.next(a)}catch(b){}};
lY.prototype.onClose=function(){this.channelEventCallback(new Wzd);this.channelState=void 0;vBd(this)};lY.prototype.onError=function(a,b){this.channelEventCallback(new Xzd(a));a=(new AB).setCode(Dkb(b));this.handleError(a)};
lY.prototype.handleError=function(a){this.channelState==null||this.channelState.hasReceivedMessage||a.getCode()!==14||this.consecutiveThrottledConnections++;try{this.rawStatus.next(a)}catch(c){}a=m(this.causalStreams.values());for(var b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=m(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var DBd=function(a,b,c){if(a.channelState){var d=BBd(c.project,c.interestSet);if(c instanceof CBd){var e=d.setStartTimeMicros(c.knowledgeTimestamp.toString());Pi(e,8,c.knowledgeTimestampChosenByPunctual)}Hn(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new tzd;c.addAndReturnRequests().setStreamId(b.toString()).setOpen(d).setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},BBd=function(a,b){var c=new mzd;c=Ni(c,bY,4,Ozd);if(b instanceof Ls){var d=new kzd;
a!=null&&d.setProject(Gkb(a));d.setOwner(b.isPrivate?izd():hzd()).setPath(Lkb(b));Yo(c,2,nzd,d)}else d=new lzd,a!=null&&d.setProject(Gkb(a)),d.setOwner(b.root.isPrivate?izd():hzd()).setPrefix(Lkb(b.root)),c.setPrefix(d);return c},EBd=function(a,b){var c=new tzd;c.addAndReturnRequests().setStreamId(b.toString()).setClose(new qzd);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},vBd=function(a){var b=fzd(a.delayGenerator);
Fkb(b).pipe(wla(a.reconnectHint.pipe(rf(function(){var c=a.skipBackoff;c.update();c.tokens<1?c=!1:(c.tokens--,c=!0);return c})))).subscribe(function(){a.channelDeps.then(function(c){a.channelEventCallback(new Rzd);FBd(a,c.serverChooser).then(function(d){a.channelEventCallback(new Szd);a.serverTimeEstimator=d.timeEstimator;Gs(function(){a.hasConnected=!0;GBd(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(d){var e=(new AB).setCode(2);d instanceof Zzd?(e.setMessage(d.message),
d.status&&e.setCode(Dkb(d.status)),d.status===503&&a.consecutiveThrottledConnections++):e.setMessage(d.toString());a.channelEventCallback(new Tzd);try{a.rawStatus.next(e)}catch(f){}vBd(a)})},function(c){c=(new AB).setCode(13).setMessage(c.toString());a.rawStatus.next(c)})})},FBd=function(a,b){var c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return z(l,HBd(a),2);c=l.yieldResult;d=m(c);e=d.next().value;f=d.next().value;g=e;k=f;return l.return(rBd(b,BBd(g,k),a.consecutiveThrottledConnections,
a.serverTimeEstimator))})},HBd=function(a){var b,c,d,e,f,g,k;return y(function(l){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=m(b);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=m(e.values()),g=f.next();!g.done;g=f.next())return k=g.value,l.return([k.project,k.interestSet]);return z(l,ie(a.newStreamSubject.asObservable().pipe(rf())),1)})},GBd=function(a,b,c){a.channelEventCallback(new Uzd);a.channelState={channel:b(function(f){for(var g=m(f.getResponsesList()),k=g.next();!k.done;k=
g.next()){var l=a,r=k.value;l.channelState!=null&&(l.channelState.hasReceivedMessage=!0);l.consecutiveThrottledConnections=0;k=r.getStreamIdOrUndefined_asString();if(k!=null)if(k=Number(k),r.hasClose()){a:{if(r=r.getClose())if(r=r.getStatus())break a;r=void 0}r&&l.handleClose(k,r)}else if(r=$l(r,Azd,2,Fzd))switch(xo(r,Bzd)){case 1:if(r=l.causalStreams.get(k)){try{r.observer.next(new dzd)}catch(R){}l.causalStreams.delete(k);l.limboStreams.set(k,r.start())}break;case 3:a:{if(r=$l(r,wzd,3,Bzd))if(r=
Ew(r,1),r!=null){var w=new ezd(Ms(r));break a}w=void 0}if(w&&(r=k,k=w,(w=l.limboStreams.get(r))?(w=w.advance(k.timestampMicros),l.limboStreams.delete(r),l.nonCausalStreams.set(r,w),l=w):l=l.nonCausalStreams.get(r),l)){r=l;w=k.timestampMicros;w>r.knowledgeTimestamp&&(r.knowledgeTimestamp=w,r.knowledgeTimestampChosenByPunctual=!0);try{l.observer.next(k)}catch(R){}}break;case 2:k=l.nonCausalStreams.get(k)||l.limboStreams.get(k);if(!k)break;l=k.interestSet;if(w=$l(r,yzd,2,Bzd)){r=new oBd;w=m(Ci(w,xzd,
1,Di()));for(var x=w.next();!x.done;x=w.next()){x=x.value;var C=X(x,Is,6),H=x.getVersionOrUndefined_asString();if(C&&H!=null){var J=void 0,O=(J=x.getPayloadOrUndefined())==null?void 0:Xsa(J);J=O==null?void 0:O;(C=Qkb(l,C))&&r.add(new czd(C,Ms(H),J,!!zb(fm(x,7))))}}l=r}else l=void 0;if(l)for(l=m(l.changeList),r=l.next();!r.done;r=l.next()){r=r.value;r=new czd(r.objectId,r.version,r.payload,r.isReplay);try{k.observer.next(r)}catch(R){}}break;case 5:if(k=l.causalStreams.get(k)||l.limboStreams.get(k)||
l.nonCausalStreams.get(k)){k instanceof CBd&&(zBd(l),(r=ABd(l,k))?(r.hasRecurred=!0,r.knowledgeTimestamp=k.knowledgeTimestamp,r.resyncMillis=Date.now()):l.recentResyncs.push(new uBd(k.project,k.interestSet,k.knowledgeTimestamp)));try{k.observer.complete()}catch(R){}}}}if(f.hasStatus())switch(f.getStatus().getCodeOrUndefined()){case 1:g=m(a.causalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=3;g=m(a.nonCausalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=
3;a.channelState&&a.channelState.channel.close()}yi(f,Czd,3)&&a.channelState&&(a.channelState.channelId=X(f,Czd,3).getChannelId(),a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||(yBd(a),a.refreshCredsTimerScheduled=!0))},a,c.gsessionid),affinitization:c.affinitization,gsessionid:c.gsessionid,hasReceivedMessage:!1};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(f,g){return f[0]-g[0]});b=m(b);for(c=b.next();!c.done;c=
b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;DBd(a,c,d)}b=m(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=m(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Gs(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
lY.prototype.watch=function(a,b){var c=this;b=b===void 0?{}:b;return new Vd(function(d){var e=++c.streamNumber,f,g=(f=b.projectOverride)!=null?f:c.options.defaultProject;d=new IBd(d,g,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});DBd(c,e,d);return function(){EBd(c,e)}})};
lY.prototype.watchWithStartTime=function(a,b,c){var d=this;c=c===void 0?{}:c;return new Vd(function(e){var f=++d.streamNumber,g,k=(g=c.projectOverride)!=null?g:d.options.defaultProject,l=new CBd(e,k,a,b,!1);zBd(d);if((e=ABd(d,l))&&(e.hasRecurred||b.compare(e.knowledgeTimestamp)<=0)){var r=!0;Gs(function(){r&&l.observer.complete()},6E4);return function(){r=!1}}d.nonCausalStreams.set(f,l);d.newStreamSubject.next({});DBd(d,f,l);return function(){EBd(d,f)}})};
var IBd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};IBd.prototype.start=function(){return new JBd(this.observer,this.project,this.interestSet)};var JBd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};JBd.prototype.advance=function(a){return new CBd(this.observer,this.project,this.interestSet,a,!0)};
var CBd=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 KBd={firstPartyUri:new Ns("https://signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Ns("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1},LBd={firstPartyUri:new Ns("https://punctual.corp.google.com/punctual"),thirdPartyUri:new Ns,addDomainPrefix:!1},MBd={firstPartyUri:new Ns("https://punctual-dev.corp.google.com/punctual"),thirdPartyUri:new Ns("https://signaler-staging.sandbox.google.com/punctual"),addDomainPrefix:!1},NBd=new Map([["corp",LBd],["prod",KBd],["prod-up",
LBd],["preprod-dynamite-alpha-us",Os("preprod-dynamite-alpha-us")],["preprod-dynamite-alpha-eu",Os("preprod-dynamite-alpha-eu")],["preprod-dynamite-beta-us",Os("preprod-dynamite-beta-us")],["preprod-dynamite-beta-eu",Os("preprod-dynamite-beta-eu")],["preprod-dynamite-gamma-us",Os("preprod-dynamite-gamma-us")],["preprod-dynamite-gamma-eu",Os("preprod-dynamite-gamma-eu")],["preprod-qual-dynamite-perftest",Os("preprod-qual-dynamite-perftest")],["prod-dynamite-prod-00-eu",Os("prod-dynamite-prod-00-eu")],
["prod-dynamite-prod-01-eu",Os("prod-dynamite-prod-01-eu")],["prod-dynamite-prod-00-us",Os("prod-dynamite-prod-00-us")],["prod-dynamite-prod-01-us",Os("prod-dynamite-prod-01-us")],["prod-dynamite-prod-02-us",Os("prod-dynamite-prod-02-us")],["prod-dynamite-prod-03-us",Os("prod-dynamite-prod-03-us")],["prod-dynamite-prod-04-us",Os("prod-dynamite-prod-04-us")],["prod-dynamite-prod-05-us",Os("prod-dynamite-prod-05-us")],["prod-dynamite-prod-06-us",Os("prod-dynamite-prod-06-us")],["prod-dynamite-prod-07-us",
Os("prod-dynamite-prod-07-us")],["prod-dynamite-prod-08-us",Os("prod-dynamite-prod-08-us")],["prod-dynamite-prod-09-us",Os("prod-dynamite-prod-09-us")],["dynamite-alpha-us",Ps("preprod","alpha-us")],["dynamite-alpha-eu",Ps("preprod","alpha-eu")],["dynamite-beta-us",Ps("preprod","beta-us")],["dynamite-beta-eu",Ps("preprod","beta-eu")],["dynamite-gamma-us",Ps("preprod","gamma-us")],["dynamite-gamma-eu",Ps("preprod","gamma-eu")],["dynamite-prod-00-us",Ps("prod","prod-00-us")],["dynamite-prod-00-eu",
Ps("prod","prod-00-eu")],["dynamite-prod-01-us",Ps("prod","prod-01-us")],["dynamite-prod-01-eu",Ps("prod","prod-01-eu")],["dynamite-prod-02-us",Ps("prod","prod-02-us")],["dynamite-prod-03-us",Ps("prod","prod-03-us")],["dynamite-prod-04-us",Ps("prod","prod-04-us")],["dynamite-prod-05-us",Ps("prod","prod-05-us")],["dynamite-prod-06-us",Ps("prod","prod-06-us")],["dynamite-prod-07-us",Ps("prod","prod-07-us")],["dynamite-prod-08-us",Ps("prod","prod-08-us")],["dynamite-prod-09-us",Ps("prod","prod-09-us")],
["ytprod",{firstPartyUri:new Ns("https://signaler-pa.youtube.com/punctual"),thirdPartyUri:new Ns("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}],["dev",MBd]]);var OBd=function(a){this.projectPath=a;this.authParams=new Yzd;this.fetchApi=!1};OBd.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};OBd.prototype.useFetchApi=function(a){this.fetchApi=!0;this.worker=a;return this};
OBd.prototype.build=function(){var a=Ckb(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("kf`"+b);var c=b.substring(10).split("/");if(c.length!==2)throw Error("lf`"+b);b=m(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Ns(decodeURIComponent(c.substring(7))),c.setPath("/punctual"),c={firstPartyUri:c,thirdPartyUri:c,addDomainPrefix:!1};else{var d=NBd.get(c);if(!d)throw Error("mf`"+c);c=d}var e;this.fetchApi&&(e=new NB({worker:this.worker}));return wBd(c,
a,{reconnectHint:this.reconnectHint,defaultProject:b,xmlHttpFactory:e,channelEventCallback:this.channelEventCallback})};var PBd={watch:function(){return jx},watchWithStartTime:function(){return jx},status:jx},mY=function(){this.activeSession=p(qu);if(this.activeSession.getFlag("enablePushUpdatesClient")){switch(this.activeSession.getEnvironmentType()){case "PROD":case "NIGHTLY":var a="AIzaSyDBL0cdQ7zgltPyAYPmzKE4X2t2_S_wW8w";var b="/punctual/prod/buganizer";break;case "QA":a="AIzaSyCpeBtg5BChNlEw-O4F0WpVJWgk_CFEY6I";b="/punctual/prod/buganizer-qa";break;default:a="ANVavNKXeiME5gTvC0_SzcTVHNYBMU50fWn-NpE",b="/punctual/dev/buganizer-test"}this.punctualClient=
(new OBd(b)).setApiKey(a).build()}else this.punctualClient=PBd};mY.prototype.watch=function(a,b){return this.punctualClient.watch(Mkb(String(a),b)).pipe(we(function(c){return c instanceof czd}))};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275prov=Fc({token:mY,factory:mY.\u0275fac,providedIn:"root"});var nY=function(){this.punctualService=p(mY);this.stream=new sf;this.isPaused=!1;this.closeStream$=new sf};nY.prototype.resume=function(){this.isPaused=!1};var QBd=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new sf,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};nY.prototype.watch=function(a){var b=this;return this.punctualService.watch("new-comment-issue",a).pipe(we(function(){var c=!b.isPaused;b.resume();return c}),lf(1E3),Bf(this.closeStream$))};
nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275prov=Fc({token:nY,factory:nY.\u0275fac,providedIn:"root"});var RBd=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var oY=function(){Z.call(this);this.window=p(hR);this.scrolledOnScreenService=p(sU);this.elementRef=p(Jd);this.onAutoResize=new XP;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(oY,Z);oY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&SBd(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){SBd(a,2)}))};
oY.prototype.onInput=function(){SBd(this,1)};
var SBd=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=m("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=Zn(d.getPropertyValue("border-top-width"))+Zn(d.getPropertyValue("padding-top"))+c.scrollHeight+Zn(d.getPropertyValue("padding-bottom"))+Zn(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=Zn(d.getPropertyValue("max-height")),d=Zn(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})))};oY.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Z.prototype.ngOnDestroy.call(this)};oY.\u0275fac=function(a){return new (a||oY)};
oY.\u0275dir=df({type:oY,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},standalone:!1,features:[Gf]});var TBd=new fd("isMac",{factory:function(){return cv}}),UBd=function(){this.isMac=p(TBd);this.textarea=p(Jd).nativeElement;this.macPasteWorkaroundActivated=new XP};
UBd.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())}}};
UBd.\u0275fac=function(a){return new (a||UBd)};UBd.\u0275dir=df({type:UBd,selectors:[["textarea","macPasteWorkaround",""]],hostBindings:function(a,b){a&1&&N("paste",function(c){return b.handlePaste(c)})},outputs:{macPasteWorkaroundActivated:"macPasteWorkaroundActivated"},standalone:!1});var pY=function(){this.activeSession=p(qu);this.issuePermissionService=p(WQ);this.window=p(hR);this.userPreferencesManager=p(dR);this.placeholderPrefix="@";this.candidateDenylist=new Set;this.isMentionAutocompleteEnabled=function(){throw Error("nf");};this.getHiddenInput=function(){throw Error("nf");};this.getAutocompleteUnderlay=function(){throw Error("nf");};this.getTextarea=function(){throw Error("nf");};this.focusOnComponent=function(){throw Error("nf");};this.emitContentChange=function(){throw Error("nf");
};this.autocompleteUserName=new Nj("");this.autocompleteUserName$=this.autocompleteUserName.pipe(pf());this.autocompleteTop=new Nj(0);this.autocompleteTop$=this.autocompleteTop.pipe(pf());this.autocompleteLeft=new Nj(0);this.autocompleteLeft$=this.autocompleteLeft.pipe(pf());this.scrollPosition=0;this.taggingInProgress=new Nj(!1);this.taggingInProgress$=this.taggingInProgress.pipe(pf());this.wordInfo={wordStart:0,wordEnd:0,word:""}};h=pY.prototype;
h.initialize=function(a){this.placeholderPrefix=a.placeholderPrefix;var b;this.candidateDenylist=new Set((b=a.candidateDenylist)!=null?b:[]);this.isMentionAutocompleteEnabled=a.isMentionAutocompleteEnabled;this.getHiddenInput=a.getHiddenInput;this.getAutocompleteUnderlay=a.getAutocompleteUnderlay;this.getTextarea=a.getTextarea;this.focusOnComponent=a.focusOnComponent;this.emitContentChange=a.emitContentChange};
h.findWordAroundCursor=function(){var a=this.getTextarea().selectionStart;this.wordInfo=Tkb(this.getTextarea().value,a!=null?a:0)};h.textAreaContainerElKeyDown=function(a){a.key==="Escape"&&(this.taggingInProgress.next(!1),this.focusOnComponent())};
h.textAreaKeyDown=function(a){if(VBd(a)&&this.taggingInProgress.value&&this.isMentionAutocompleteEnabled()&&this.taggingInProgress.value){a==null||a.preventDefault();var b;(b=this.getHiddenInput())==null||b.focus();b=a.code;var c=a.key,d=a.keyCode,e=a.which;a=new KeyboardEvent("keydown",{charCode:a.charCode,metaKey:a.metaKey,type:a.type,code:c==="Enter"?"Tab":b,key:c==="Enter"?"Tab":c,keyCode:c==="Enter"?9:d,which:c==="Enter"?9:e});var f;(f=this.getHiddenInput())==null||f.dispatchEvent(a)}};
h.textAreaKeyUp=function(a){if(!VBd(a))if(a=a.target,this.scrollPosition=a.scrollTop,this.findWordAroundCursor(),Wkb(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=m(e);for(var f=
e.next();!f.done;f=e.next()){f=f.value;var g=d.getPropertyValue(f);c.style.setProperty(f,g)}}this.synchronizeScrolling()}b=b==null?void 0:b.firstChild;c=b==null?void 0:b.textContent;b&&c&&a&&(c=new Range,c.setStart(b,a),c.setEnd(b,a),a=document.createElement("span"),c.deleteContents(),c.insertNode(a),b=a.getBoundingClientRect(),this.autocompleteTop.next(b.top),this.autocompleteLeft.next(b.left),a.remove())}this.taggingInProgress.next(!0);if(this.isMentionAutocompleteEnabled()){this.autocompleteUserName.next(this.wordInfo.word.slice(this.placeholderPrefix.length));
var k;(k=this.getHiddenInput())==null||k.dispatchEvent(new KeyboardEvent("keydown"))}}else this.taggingInProgress.next(!1)};var VBd=function(a){return a.key==="ArrowDown"||a.key==="ArrowUp"||a.key==="Enter"||a.key==="Escape"||a.key==="Tab"};pY.prototype.synchronizeScrolling=function(){var a=this.getAutocompleteUnderlay(),b=this.getTextarea();a&&b&&(a.scrollTop=b.scrollTop)};
pY.prototype.escapeKeyupAnywhere=function(a){var b=a.key;a=a.target.classList.contains("autocomplete-hidden-input");b==="Escape"&&a&&(this.taggingInProgress.next(!1),this.focusOnComponent())};var Wkb=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:hdd.test(b)&&!gdd.test(b)};pY.\u0275fac=function(a){return new (a||pY)};pY.\u0275prov=Fc({token:pY,factory:pY.\u0275fac});
var Rkb=/[\s,]/gu,Skb=/[\s,]|$/u;var WBd=["textarea"],XBd=["hiddenInput"],YBd=["autocompleteUnderlay"],qY=function(){Z.apply(this,arguments);var a=this;this.codefont=p(fR);this.activeSession=p(qu);this.issuePermissionService=p(WQ);this.autocompleteLogic=p(pY);this.userPreferencesManager=p(dR);this.autocompleteConfigService=p(HW);this.darkmodeService=p(GW);this.refresh$=this.darkmodeService.clientDarkmode$.pipe(A(function(){}));this.textareaClass=[];this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=
this.disabled=!1;this.contentChange=new XP;this.focus=new XP;this.blur=new XP;this.autoResize=new XP;this.manualResize$=new XP;this.autocompleteTop$=this.autocompleteLogic.autocompleteTop$;this.autocompleteLeft$=this.autocompleteLogic.autocompleteLeft$;this.taggingInProgress$=this.autocompleteLogic.taggingInProgress$;this.autocompleteUserName$=this.autocompleteLogic.autocompleteUserName$;this.sessionOptions=(new $u).setFilter(Vwd);this.isCreateCommentFormatLiteral=!1;this.shouldShowMentionsNotSupportedWarning$=
this.autocompleteLogic.taggingInProgress$.pipe(A(function(b){return a.enableMentionsAutocomplete&&TN(a.activeSession)?!(a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent)&&b:!1}))};Y(qY,Z);qY.\u0275dir=Z.\u0275dir;qY.prototype.getConfig=function(){return uhb(this.autocompleteConfigService)};
qY.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}})};qY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?a.getTextarea().classList.add("codefont"):a.getTextarea().classList.remove("codefont")}));this.subscriptions.add(this.userPreferencesManager.isCreateCommentFormatLiteral$.subscribe(function(b){a.isCreateCommentFormatLiteral=b}));ZBd(this)};
var ZBd=function(a){le([a.taggingInProgress$,a.autocompleteUserName$]).pipe(of(0),Bf(a.destroyed$)).subscribe(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b){var d;if((d=a.hiddenInputRef)==null?0:d.nativeElement)if(d=a.hiddenInputRef.nativeElement,d.value!==c){d.value=c;var e;(e=a.hiddenInputRef)==null||e.nativeElement.dispatchEvent(new Event("input"))}}})};h=qY.prototype;h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};
h.emitContentChange=function(){this.contentChange.emit(this.getTextarea().value)};h.focusOnComponent=function(){this.getTextarea().focus()};h.setValue=function(a){this.getTextarea().value!==a&&(this.getTextarea().value=a,this.manualResize$.next())};h.getTextarea=function(){return this.textareaRef.nativeElement};h.textAreaContainerElKeyDown=function(a){this.autocompleteLogic.textAreaContainerElKeyDown(a)};h.textAreaKeyDown=function(a){this.autocompleteLogic.textAreaKeyDown(a)};h.textAreaKeyUp=function(a){this.autocompleteLogic.textAreaKeyUp(a)};
h.escapeKeyupAnywhere=function(a){this.autocompleteLogic.escapeKeyupAnywhere(a)};h.synchronizeScrolling=function(){this.autocompleteLogic.synchronizeScrolling()};var $Bd=function(a){setTimeout(function(){a.autocompleteLogic.taggingInProgress.next(!1)})};
qY.prototype.isMentionAutocompleteEnabled=function(){return this.isLiteralModeSupported&&this.isCreateCommentFormatLiteral||!this.enableMentionsAutocomplete?!1:TN(this.activeSession)?this.issueId?this.issuePermissionService.hasAclToEdit():this.canEditIssuesInComponent:!0};qY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(qY)))(b||qY)}}();
qY.\u0275cmp=D({type:qY,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(hg(WBd,7),hg(XBd,5),hg(YBd,5));if(a&2){var c;lg(c=mg())&&(b.textareaRef=c.first);lg(c=mg())&&(b.hiddenInputRef=c.first);lg(c=mg())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&N("click",function(){return $Bd(b)},Sga)("keyUp",function(c){return b.escapeKeyupAnywhere(c)},Sga)},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:[Gg([pY]),Gf,bx],decls:13,vars:22,consts:[["commentBoxContainer",""],["textarea",""],["hiddenInput",""],["autocompleteUnderlay",""],[1,"pos-rel","comment-box-container",3,"keydown"],["aria-label",
"Comment box - add your comment","cdkFocusInitial","","macPasteWorkaround","",3,"input","focus","blur","onAutoResize","keydown","keyup","scroll","autoResize","disabled"],[1,"bv2-literal-mode-warning"],["id","mentions-warning","role","alert",1,"bv2-validation-error-banner"],[1,"autocomplete-input-container"],[3,"refreshable"],["contentEditable","true",1,"autocomplete-underlay"],[1,"bv2-literal-mode-warning-icon"],["svgIcon","verified_user_24px",1,"icon-xxs"],["href","http://go/buganizer-literal-mode",
"target","_blank"],[1,"bv2-validation-error"],["type","text","tabIndex","-1","inert","","autocomplete","off","spellcheck","off","peoplekitAutocomplete","",1,"autocomplete-hidden-input",3,"peoplekitAutocompleteSelectionChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4,0);N("keydown",function(d){u(c);return v(b.textAreaContainerElKeyDown(d))});K(2,"textarea",5,1);N("input",function(){u(c);
return v(b.emitContentChange())})("focus",function(d){u(c);return v(b.focus.emit(d))})("blur",function(d){u(c);return v(b.blur.emit(d))})("onAutoResize",function(d){u(c);return v(b.autoResize.emit(d))})("keydown",function(d){u(c);return v(b.textAreaKeyDown(d))})("keyup",function(d){u(c);return v(b.textAreaKeyUp(d))})("scroll",function(){u(c);return v(b.synchronizeScrolling())});L();F(4,Ukb,8,0,"div",6);F(5,Vkb,3,0,"div",7);T(6,"async");K(7,"span",8);T(8,"async");T(9,"async");F(10,Ykb,1,1,null,9);
T(11,"async");L();F(12,Zkb,2,0,"div",10);L()}a&2&&(B(2),xg(b.textareaClass),I("autoResize",b.manualResize$)("disabled",b.disabled),Kf("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),G(b.isLiteralModeSupported&&b.isCreateCommentFormatLiteral?4:-1),B(),G(U(6,14,b.shouldShowMentionsNotSupportedWarning$)?5:-1),B(2),vg("top",U(8,16,b.autocompleteTop$)+"px")("left",U(9,18,b.autocompleteLeft$)+"px"),B(3),G(b.isMentionAutocompleteEnabled()&&U(11,20,b.taggingInProgress$)?10:-1),B(2),G(b.isMentionAutocompleteEnabled()?
12:-1))},dependencies:[Dy,qU,uX,oY,UBd,Lx],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 rY=function(){Z.apply(this,arguments);var a=this;this.cdr=p(YP,{self:!0});this.ref=p(Jd);this.events=p(PO);this.previewDisabled=!1;this.selectedIndex=0;this.render=function(){var b=a.matTabGroup;b._tabHeader&&b._tabHeader._alignInkBarToSelectedTab();a.cdr.markForCheck()}};Y(rY,Z);rY.\u0275dir=Z.\u0275dir;rY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.events.commentSubmitted.subscribe(function(){a.matTabGroup.selectedIndex=0}))};
rY.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+8+48+"px"};rY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(rY)))(b||rY)}}();
rY.\u0275cmp=D({type:rY,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&hg(sL,7);if(a&2){var c;lg(c=mg())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},standalone:!1,features:[Gg([YP]),Gf],decls:5,vars:5,consts:[[1,"small","no-border",3,"animationDone","selectedIndexChange","dynamicHeight","selectedIndex"],["label","Edit"],[4,"ngTemplateOutlet"],["label","Preview",3,"disabled"]],template:function(a,b){a&1&&
(K(0,"mat-tab-group",0),N("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),K(1,"mat-tab",1),E(2,$kb,1,0,"ng-container",2),L(),K(3,"mat-tab",3),E(4,alb,1,0,"ng-container",2),L()());a&2&&(I("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),I("ngTemplateOutlet",b.editArea),B(),I("disabled",b.previewDisabled),B(),I("ngTemplateOutlet",b.previewArea))},dependencies:[Kx,wL,rL,sL],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});
var sY=function(){Z.apply(this,arguments);this.codefont=p(fR);this.ngZone=p(Rg);this.prefs=p(dR);this.hotkeys=p(kU);this.isMarkdown$=this.prefs.lastPublishFormattingMode$.pipe(A(function(a){return a==="MARKDOWN"}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience="EXTERNAL";this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=!1;this.init=new XP;this.contentChange=new XP;this.focus=new XP;this.blur=new XP;this.autoResize=
new XP;this.onSubmit=new XP};Y(sY,Z);sY.\u0275dir=Z.\u0275dir;sY.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
sY.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 aCd=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&a.commentDraftTextarea.focusOnComponent()})};sY.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};sY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(sY)))(b||sY)}}();
sY.\u0275cmp=D({type:sY,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(hg(qY,5),hg(rY,5));if(a&2){var c;lg(c=mg())&&(b.commentDraftTextarea=c.first);lg(c=mg())&&(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:[Gf,bx],decls:2,vars:13,consts:[[3,"autoResize","keydown.control.enter","keydown.meta.enter","textareaClass","disabled","placeholder","idForAriaLabel","audience","issueId","canEditIssuesInComponent","enableMentionsAutocomplete","isLiteralModeSupported"]],template:function(a,b){a&1&&(K(0,"b-comment-draft-textarea",0),T(1,"async"),N("autoResize",function(c){return b.synchronizeHeight(c)})("keydown.control.enter",
function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()})("keydown.meta.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()}),L());a&2&&(wg("draft-markdown",U(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:[qY,Lx],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 bCd=["captchaContainer"],tY=function(){this.ngZone=p(Rg);this.window=p(hR);this.darkmodeService=p(GW);this.appEvents=p(PO);this.analytics=p(aQ);this.onUpdate=new XP;this.destroyed$=new wf(1)};tY.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(Bf(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
tY.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"})})};tY.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};tY.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)})}};tY.\u0275fac=function(a){return new (a||tY)};
tY.\u0275cmp=D({type:tY,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&hg(bCd,5);if(a&2){var c;lg(c=mg())&&(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 uY=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)};uY.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler);window.removeEventListener("unload",this.onUnload)};var vY=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new Rd(function(){a.checks=a.checks.filter(function(e){return e!==d})})};
uY.prototype.canDeactivate=function(a,b,c,d){a:{a=wt(c.url).getPath()===wt(d.url).getPath();b=m(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?cCd(this)?(this.checks=[],!0):!1:!0};var cCd=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};
uY.\u0275fac=function(a){return new (a||uY)};uY.\u0275prov=Fc({token:uY,factory:uY.\u0275fac,providedIn:"root"});var dCd=function(a){return[a]},wY=function(){this.matDialog=p(QA)};
wY.prototype.show=function(a){var b=a.issueId;var c=a.audience;var d=a.componentId;var e=a.text===void 0?"":a.text;var f=a.formattingMode===void 0?"PLAIN":a.formattingMode;var g=a.commentNumber;var k=a.dialogTitle;this.dialog=this.matDialog.open(xY,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,componentId:d,audience:c,commentNumber:g,text:e,formattingMode:f,dialogTitle:k!=null?k:"Editing Comment #"+g+" of Issue "+b,showPiiWarning:a.showPiiWarning===void 0?!0:a.showPiiWarning}});
return ie(OA(this.dialog))};wY.\u0275fac=function(a){return new (a||wY)};wY.\u0275prov=Fc({token:wY,factory:wY.\u0275fac,providedIn:"root"});
var xY=function(){Z.apply(this,arguments);this.activeSession=p(qu);this.originalData=p(PA);this.dialogRef=p(NA);this.bannedWordsChecker=p(SW);this.checkBeforeExit=p(uY);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(xY,Z);xY.\u0275dir=Z.\u0275dir;h=xY.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(Bf(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Bf(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};h.closeIfUnmodified=function(){this.isModified()||this.dialogRef.close()};
h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};h.isModified=function(){return!mm(this.dataDraft,this.originalData)};
h.closeDialogForSave=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return a.isModified()?z(e,a.bannedWordsChecker.check(a.dataDraft.text,a.dataDraft.audience==="EXTERNAL",a.dataDraft.componentId),2):e.return();(b=e.yieldResult)?(d={text:a.dataDraft.text,formattingMode:a.dataDraft.formattingMode},a.enableRecaptcha&&(d.recaptchaToken=a.recaptchaResponse),a.dialogRef.close(d)):(c=a.commentDraft)==null||aCd(c);ce(e)})};
xY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(xY)))(b||xY)}}();
xY.\u0275cmp=D({type:xY,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hg(sY,5);if(a&2){var c;lg(c=mg())&&(b.commentDraft=c.first)}},standalone:!1,features:[Gg([SW]),Gf],decls:18,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],[3,"contentChange","onSubmit","content","audience","textareaClass","enableMentionsAutocomplete","isLiteralModeSupported"],[1,"banned-words-warning","break-word"],[1,"inline-block",3,"change","initialValue"],[3,"comment","issueId","audience",
"formattingMode"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"save",3,"click","disabled","color"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[1,"recaptcha-container"],[3,"onUpdate"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1),L(),K(2,"section",
1),F(3,blb,6,1,"p",2),K(4,"b-comment-draft",3),T(5,"async"),Cg("contentChange",function(c){Bg(b.dataDraft.text,c)||(b.dataDraft.text=c);return c}),N("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),L(),F(6,clb,4,1,"p",4),T(7,"async"),K(8,"b-markdown-toggle",5),N("change",function(c){return b.dataDraft.formattingMode=c}),L(),F(9,dlb,1,4,"b-live-preview",6),L(),F(10,elb,3,0,"section"),K(11,"footer",7)(12,"button",8),Q(13," Cancel "),L(),
K(14,"button",9),T(15,"async"),N("click",function(){return b.closeDialogForSave()}),Q(16),T(17,"async"),L()());a&2&&(B(),yg(b.originalData.dialogTitle),B(2),G(b.originalData.showPiiWarning?3:-1),B(),Ag("content",b.dataDraft.text),I("audience",b.originalData.audience)("textareaClass",Ig(25,dCd,U(5,17,b.bannedWordsChecker.showWarning$)?"banned-words-warning":""))("enableMentionsAutocomplete",!0)("isLiteralModeSupported",!1),B(2),G(U(7,19,b.bannedWordsChecker.showWarning$)?6:-1),B(2),wg("margin-bottom",
(b.dataDraft==null?null:b.dataDraft.formattingMode)!==b.MARKDOWN),I("initialValue",b.originalData.formattingMode),B(),G(b.dataDraft.formattingMode===b.MARKDOWN?9:-1),B(),G(b.enableRecaptcha?10:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",!b.isModified()||!b.isCaptchaValid())("color",U(15,21,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),S(" ",U(17,23,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[RA,TA,VA,UA,gB,cB,cU,nT,sY,tY,Lx],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 yY=function(){this.dismissalService=p(nW);this.editIssueService=p(DS);this.butterBar=p(QN);this.issuePermissionService=p(WQ);this.issueCommentService=p(azd);this.editCommentDialogService=p(wY);this.issueFullFridge=p(cQ);this.matDialogService=p(QA);this.paths=p(mW);this.analytics=p(aQ);this.domSafe=p(iR);this.confirmationDialogService=p(ZR);this.issueComments=p(nS);this.errorHandler=p(kO);this.eventsForIssueFridge=p(IP);this.componentFridge=p(MO);this.commentFormatter=p(bR);this.confirmNoAccessService=
p(oS);this.activeSession=p(qu);this.appEvents=p(PO);this.issuePicker=p(XX);this.eventsForIssueWatcher=p(nY);this.issueInteractionsTracking=p(zS)},Qtb=function(a,b,c){var d,e,f,g,k,l,r,w,x,C;return y(function(H){if(H.nextAddress==1)return z(H,ie(a.issueFullFridge.watch(b)),2);if(H.nextAddress!=3){d=H.yieldResult;g=(f=(e=d)==null?void 0:e.snapshot[0].componentId)!=null?f:void 0;k=a.editIssueService.savingState(b);if(k.get("commentEdit"))return H.return();l=c.commentNumber;if(!l)return H.return();a.butterBar.dismiss();
w=(r=a.issuePermissionService.audience())!=null?r:"EXTERNAL";return z(H,a.editCommentDialogService.show({issueId:b,audience:w,componentId:g,text:(x=c.unlinkifiedComment)!=null?x:void 0,formattingMode:c.formattingMode,commentNumber:l}),3)}C=H.yieldResult;if(C==null)return H.return();bzd(a.issueCommentService,{issueId:b,newCommentId:l,newComment:C.text,newCommentFormattingMode:C.formattingMode,recaptchaToken:C.recaptchaToken});ce(H)})},fCd=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==
1)return c?z(g,eCd(a,b),2):g.return();if(g.nextAddress!=3)return d={title:"Choose target issue",defaultChoices:g.yieldResult,allowMultipleIds:!1,currentResource:{id:b,type:"issue"},edgeType:"copyComment"},z(g,a.issuePicker.open(d),3);e=g.yieldResult;if((f=e)==null?0:f.length){var k=rs(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent("editIssue","copyComment");a.domSafe.openInNewTab(k)}ce(g)})},eCd=function(a,b){function c(V){return x.get(V)}var d,e,f,g,k,l,r,w,
x,C,H,J,O,R;return y(function(V){if(V.nextAddress==1)return z(V,ie(a.issueFullFridge.watch(b)),2);if(V.nextAddress!=3){d=V.yieldResult;if(!d)return V.return([]);f=(e=d.snapshot[0].duplicateIssueId)!=null?e:[];k=(g=d.snapshot[0].blockingIssueId)!=null?g:[];r=(l=d.snapshot[0].blockedByIssueId)!=null?l:[];return z(V,ie(a.issueFullFridge.watchSet(vq([].concat(q(f),q(k),q(r))))),3)}w=V.yieldResult;x=new Map(w.map(function(ca){return[ca.issueId,ca]}));C=r.map(c).filter(Qm).map(flb("BLOCKED_BY"));H=k.map(c).filter(Qm).map(flb("BLOCKING"));
J=f.map(c).filter(Qm).map(flb("DUPLICATE"));O=[].concat(q(C),q(H),q(J));R=glb(O);return V.return(R)})},hCd=function(a,b,c){var d;return y(function(e){return e.nextAddress==1?c?z(e,Kmd(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Bh("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?z(e,gCd(a,b,c),0):e.return()})},gCd=function(a,b,c){var d,e;return y(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();
Pr(a.butterBar,"Restoring comment...",0);Yd(f,2,3);Qr(d,"commentUndelete");return z(f,a.issueComments.undelete(b,c),5);case 5:Pr(a.butterBar,"Comment restored successfully.");case 3:Zd(f);BS(d,"commentUndelete");a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);ae(f,0);break;case 2:e=be(f),Pr(a.butterBar,"Comment restoration failed."),mO(a.errorHandler,e),f.jumpTo(3)}})},kCd=function(a,b,c,d){var e,f,g,k;return y(function(l){if(l.nextAddress==1){if(!c)return l.return();e=a.editIssueService.savingState(b);
return e.get("commentDelete")?l.return():z(l,iCd(a,b),2)}return l.nextAddress!=3?(f=l.yieldResult,a.butterBar.dismiss(),z(l,ie(OA(a.matDialogService.open(Ivd,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(g=l.yieldResult)?z(l,jCd(a,b,c,g.value,(k=d)!=null?k:""),0):l.jumpTo(0)})},jCd=function(a,b,c,d,e){var f,g;return y(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Yd(k,2,3);Pr(a.butterBar,"Deleting comment...",
0);Qr(f,"commentDelete");return z(k,a.issueComments.delete(b,c,d,e),5);case 5:Pr(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Zd(k);BS(f,"commentDelete");a.issueFullFridge.poke(b);ae(k,0);break;case 2:g=be(k),Pr(a.butterBar,"Comment deletion failed."),mO(a.errorHandler,g),k.jumpTo(3)}})},iCd=function(a,b){var c,d,e,f,g,k,l,r;return y(function(w){switch(w.nextAddress){case 1:return z(w,ie(a.issueFullFridge.watch(b,{trustUncertainMemory:!0})),
2);case 2:c=w.yieldResult;e=((d=c)==null?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;w.jumpTo(3);break}return z(w,ie(a.componentFridge.watch(e)),4);case 4:f=w.yieldResult;case 3:return g=f,k=new RBd("Other","USER_REQUEST"),g&&g.commentEditState!=="DISABLED"||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),l=new RBd("Spam or Abuse","ABUSE"),a.issuePermissionService.accessLevel()!=="EXTERNAL_PUBLIC"&&(l.enabled=!1,l.disabledReason="available on Public components"),r=
new RBd("Personally Identifiable Information","RESTRICTED"),w.return([r,l,k])}})},lCd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return d=VQ(a.issuePermissionService,xm(c.userPerformingActionUser)),a.analytics.trackEvent("restrictedContent","updateContentJudgement","comment"),z(f,a.showContentJudgementDialog({severity:Tp(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),dQ(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ce(f)})};yY.prototype.showContentJudgementDialog=function(a){return ie(OA(this.matDialogService.open(ZX,{panelClass:"no-jitter",width:"500px",data:a})))};
var mCd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ie(OA(a.matDialogService.open($X,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(d===1)})},nCd=function(a,b,c,d){var e;y(function(f){if(f.nextAddress==1){if(d==null)return f.return();a.analytics.trackEvent("restrictedContent","updateContentJudgement","attachment");return z(f,a.showContentJudgementDialog({severity:Tp(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),dQ(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ce(f)})};
yY.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,g,k,l;y(function(r){if(r.nextAddress==1){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId||b.attachmentId==="0")return r.return();e=ie;f=c.matDialogService;g=f.open;k=Hvd;return z(r,iCd(c,a),3)}return r.nextAddress!=2?z(r,e(OA(g.call(f,k,{width:"560px",data:{deletionReasons:r.yieldResult,attachmentId:b.attachmentId}}))),2):(l=r.yieldResult)?z(r,tod(c.editIssueService,a,b,l.value),0):r.jumpTo(0)})};
var oCd=function(a,b){var c=b.issueId;var d=b.componentId;var e=b.comment;var f,g,k;return y(function(l){if(l.nextAddress==1){if(TN(a.activeSession)&&!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return l.return(!0);Yd(l,2);var r=a.commentFormatter;var w={comment:e.value,issueId:c,audience:(f=a.issuePermissionService.audience())!=null?f:"EXTERNAL",formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"};r=w.formattingMode===
"LITERAL"||w.comment.trim()===""?ee([]):Ekd(r,w).pipe(A(t6a));return z(l,ie(r),4)}if(l.nextAddress!=2)return g=l.yieldResult,l.return(ynd(a.confirmNoAccessService,{componentId:d,userEmails:g,relation:"reader",analyticsEventLabel:"mention"}));k=be(l);mO(a.errorHandler,k);return l.return(!1)})},pCd=function(a,b){b=b===void 0?"comment":b;var c,d,e;return y(function(f){if(f.nextAddress==1)return(c=a.issuePermissionService.accessLevel())&&c==="INTERNAL"||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||
SN(a.activeSession)?f.return(!0):z(f,a.dismissalService.isDismissed(Bgb(b)),2);if(d=f.yieldResult)return f.return(!0);switch(b){case "comment":e=Bh("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":e=Bh("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:wb(b)}return f.return(ie(OA(a.matDialogService.open(oW,{width:"500px",data:{content:e,action:b}}))))})};
yY.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!Dnd(c)||f.get("comment"))return r.return(!1);Qr(f,"comment");g=function(){BS(f,"comment")};return z(r,oCd(e,{issueId:b,componentId:a,comment:c}),2);case 2:return k=r.yieldResult,k?z(r,pCd(e),3):(g(),r.return(!1));case 3:l=r.yieldResult;if(!l)return g(),r.return(!1);e.analytics.trackEvent("editIssue",
"addComment",c.formattingMode==="MARKDOWN"?"markdown":"non markdown");Rr(e.issueInteractionsTracking,b);e.eventsForIssueWatcher.isPaused=!0;return z(r,e.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(b,d).finally(function(){g();e.appEvents.commentSubmitted.next(b)}),4);case 4:return r.return(!0)}})};
yY.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),g=(f=(e=d)==null?void 0:e.severity)!=null?f:"NONE_DETECTED",z(l,b.showContentJudgementDialog({severity:g,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=l.yieldResult)&&c.setJudgementForNewContent(k.contentJudgement);ce(l)})};
yY.prototype.updateCommentReaction=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?a.hasReacted?z(d,pCd(b,"reaction"),3):d.jumpTo(2):d.nextAddress==2||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};yY.\u0275fac=function(a){return new (a||yY)};yY.\u0275prov=Fc({token:yY,factory:yY.\u0275fac,providedIn:"root"});var zY=function(){this.editIssueService=p(DS);this.issuePicker=p(XX);this.analytics=p(aQ);this.butterBar=p(QN)},qCd=function(a,b){var c,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return b=String(b),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResource:{id:b,type:"issue"},componentId:c.componentId,allowMultipleIds:!1,edgeType:"canonical"},f=(new Date).getTime(),z(r,a.issuePicker.open(e),2);if(r.nextAddress!=3){g=r.yieldResult;
if((k=g)==null||!k.length)return c.status=d,r.return("DISMISSED");if(b===g[0])return c.status=d,a.butterBar.showWarning("Cannot set issue as a duplicate of itself"),r.return("DISMISSED");l=(new Date).getTime()-f;a.analytics.trackEvent("issuePicker","duplicate duration","<"+Math.min(2*Math.ceil(l/2E3),600)+"s",l);a.analytics.trackEvent("editIssue","setCanonicalIssue");zhd(a.analytics,"DUPLICATE");return z(r,kod(a.editIssueService,b,g[0]),3)}return r.return("DUPLICATE")})};
zY.\u0275fac=function(a){return new (a||zY)};zY.\u0275prov=Fc({token:zY,factory:zY.\u0275fac,providedIn:"root"});var ulb=function(a,b){return b.id},AY=function(){var a=this;this.componentFridge=p(MO);this.issueEditComponentService=p(lW);this.trackerHelpers=p(fS);this.activeSession=p(qu);this.cdr=p(ux);this.componentId$=new wf(1);this.readOnly=!1;this.linkifyComponentNames=!0;this.showPickerOverlayAbove=!1;this.handleSave=!0;this.compactMode$=new Nj(!1);this.componentChanged=new XP;this.displayValueOverride="";this.editing=!1;this.component$=this.componentId$.pipe(Af(function(b){return a.componentFridge.watch(b).pipe(zf(void 0))}));
this.isArchived$=this.component$.pipe(A(function(b){return b==null?void 0:b.archived}));this.showPublicIndicator$=this.component$.pipe(A(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||a.activeSession.isExternalSession()?!1:a.activeSession.isInternalSession()||SN(a.activeSession)?b==="EXTERNAL_PUBLIC":!1}));this.showPartnerIndicator$=this.component$.pipe(A(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||
a.activeSession.isExternalSession()||SN(a.activeSession)?!1:a.activeSession.isInternalSession()?b==="EXTERNAL_PARTNER":!1}));this.folder$=le([this.showPublicIndicator$,this.showPartnerIndicator$]).pipe(A(function(b){var c=m(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."}:qs(a.activeSession)?
{icon:"folder_special_24px",tooltip:"This component is inside a tracker"}:{icon:"folder",tooltip:""}}),zf({icon:"folder",tooltip:""}));this.componentPath$=le([this.componentId$,this.component$,this.compactMode$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;if(d==null)return Pdb({componentPathId:[b]});b=fu(a.trackerHelpers,d.componentPathInfo);b=Pdb(b);if(c){c=[];d=0;for(var e=b.length-1;e>=0;e--){var f=b[e],g=e===b.length-1?48:32;if(d>=g)break;var k=String(f.name),
l=void 0;if(d+[].concat(q(k)).length>g){var r=g-d;g="";k=k===void 0?"":k;r=r===void 0?48:r;g=g===void 0?"...":g;l=[].concat(q(k));l.length<=r||(k=r-[].concat(q(g)).length,k=l.slice(-k).join(""),String.prototype.trimStart!=null&&(k=k.trimStart()),k=g+k);l=!0}d+=[].concat(q(k)).length;c.unshift(Object.assign({},f,{name:k,isTruncated:l}));if(l)break}b.length>c.length&&(c[0].isSpliced=!0);b=c}return b}));this.isEmpty$=this.component$.pipe(A(function(b){return!b}));this.isThinkingAndEmpty$=le([this.componentFridge.thinking$,
this.isEmpty$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&c}));this.isReady$=this.isThinkingAndEmpty$.pipe(A(function(b){return!b}))};AY.prototype.ngOnInit=function(){};var Alb=function(a,b){a.editing=!1;(b=b==null?void 0:b.componentId)&&(a.handleSave?a.issueEditComponentService.updateComponent(a.issueId,b):a.componentChanged.emit(b))};
da.Object.defineProperties(AY.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)}}});AY.\u0275fac=function(a){return new (a||AY)};
AY.\u0275cmp=D({type:AY,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","issueId"],[1,"b-chip","squared","s"],["title","Component folder path",1,"icon-xs",3,"svgIcon","matTooltip"],[1,"component-path"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn"],["mat-icon-button","","aria-label","View Component (Link opens in a new window)","matTooltip","View Component","target","_blank",1,"small","pop-out-btn",3,"routerLinkObj"],["href","javascript:void(0);",
"title","Show all Components","aria-label","Show all Components","role","button",1,"subtle-link"],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components","aria-label","Show all Components","role","button",1,"subtle-link",3,"click"],["aria-hidden","true"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger","muted"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],[1,"plain-component-name",3,"muted"],[1,"plain-component-name"],[3,"onedevIsHovercardReady",
"componentId"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn",3,"click"],["svgIcon","edit-outline",1,"icon-xxs"],["svgIcon","pop-out",1,"icon-xs"],["placeholder","Choose Component",3,"selectedComponentChange","dropdownClosed","selectedComponent","isRequired","shouldFocus","showOverlayAbove","issueId"]],template:function(a,b){a&1&&F(0,zlb,13,22,"b-async-data-placeholder",2)(1,Blb,2,7,"b-team-component-picker",3);a&2&&G(b.editing?1:
0)},dependencies:[rW,Dy,QO,gB,eB,iW,DK,EK,LK,FK,oK,iA,VV,Lx],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 Dlb={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"},rCd={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"},Clb=[Dlb,{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"},rCd];var BY=function(){Z.call(this);var a=this;this.defaultAccessLimitLevel$=new wf(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new XP;this.selectedDisplay$=new Nj(null);this.displays=Clb;this.disabledDropdownTooltip="Only users with Issue Admin permission can adjust restriction levels.";this.currentIssueAccessLimitLevelDisplay$=le([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(A(function(c){var d=m(c);c=d.next().value;d=d.next().value;return c?c:sCd(a,d)}));
this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(A(function(c){return c.title}));var b=p(Ee);this.defaultAccessLimitLevel$.pipe(Uj(b)).subscribe(function(c){a.selectedDisplay$.next(sCd(a,c))})};Y(BY,Z);BY.\u0275dir=Z.\u0275dir;var sCd=function(a,b){a=m(a.displays);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.accessLevel===b)return c;return Dlb};da.Object.defineProperties(BY.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
BY.\u0275fac=function(a){return new (a||BY)};
BY.\u0275cmp=D({type:BY,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel",disabled:"disabled",implicitAccessEnabled:"implicitAccessEnabled"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},standalone:!1,features:[Gf],decls:14,vars:9,consts:[["accessLimitsMenu","matMenu"],[1,"access-limits-dropdown"],["mat-button","","mat-stroked-button","","dropdown-menu-button","","type","button",1,"access-limits-dropdown-button","gmat-mdc-button",
"small",3,"matMenuTriggerFor","disabled"],[1,"selected-access-limit-level-title"],["svgIcon","acl-alias-domain",1,"icon-s"],[1,"selected-access-limit-level-title-text"],["iconPositionEnd","","svgIcon","arrow-dropdown",1,"icon-s"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle",3,"matTooltip"],[1,"access-limit-level-options"],["type","button","mat-menu-item","",1,"access-limit-level-option"],["type","button","mat-menu-item","",1,"access-limit-level-option",
3,"click"],[1,"access-limit-level-title"],[1,"icon-s",3,"svgIcon"],[1,"access-limit-level-title-text"],[1,"access-limit-level-description"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"button",2),T(2,"async"),K(3,"span",3),M(4,"mat-icon",4),K(5,"span",5),Q(6),T(7,"async"),L()(),M(8,"mat-icon",6),L(),F(9,Flb,1,1,"mat-icon",7),K(10,"mat-menu",8,0),Of(12,Glb,7,3,"button",9,Nf),L()());if(a&2){var c;a=qg(11);B();I("matMenuTriggerFor",a)("disabled",b.disabled);var d;Kf("aria-label","Issue Access level, "+
((d=(c=U(2,5,b.selectedDisplay$))==null?null:c.title)!=null?d:"Default access"));B(5);S(" ",U(7,7,b.issueAccessLimitLevelDisplayTitle$)," ");B(3);G(b.disabled?9:-1);B(3);Pf(b.displays)}},dependencies:[Dy,gB,cB,OJ,YG,WG,aH,oK,iA,Lx],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 CY=function(){Z.apply(this,arguments);var a=this;this.errorHandler=p(kO);this.activeSession=p(qu);this.issueApi=p(HP);this.issueFullFridge=p(cQ);this.componentFridge=p(MO);this.trackerFridge=p(RQ);this.eventsForIssueFridge=p(IP);this.issuePermissionService=p(WQ);this.snackBar=p(nB);this.dialogRef=p(NA);this.data=p(PA);this.analytics=p(aQ);this.confirmationDialogService=p(ZR);this.jspbPrincipalTypes=p(zQ);this.defaultAccessLimitLevel="LIMIT_NONE";this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.writers=[];this.appenders=[];this.readers=[];this.currentUserEmail=this.activeSession.getUserEmail();this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.issueId=this.data.issueId;this.issue$=this.issueFullFridge.watch(this.issueId);this.currentAccessLimitLevel$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].issueAccessLimitLevel)!=null?c:a.defaultAccessLimitLevel}));
this.updatedAccessLimitLevel$=new Nj(this.defaultAccessLimitLevel);this.hasAccessLimitLevelSelectionChanged$=le([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!==c}));this.componentId=this.data.componentId;this.component$=this.componentFridge.watch(this.componentId);this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(Af(function(b){return b?
a.trackerFridge.watch(b):ee(void 0)}));this.collaboratorGroupsEmailToDetailsMap=new Map;this.addedCollaboratorGroups=new Set;this.removedCollaboratorGroups=new Set;this.expandedAccessTooltip$=this.isImplicitAccessEnabled$.pipe(A(function(b){return b?"This component has expanded access enabled. Assignees, verifiers, and collaborators can edit issues, and CC'd users can add comments.":"This component has expanded access disabled. Being listed on the issue does not confer any additional access privileges."}))};
Y(CY,Z);CY.\u0275dir=Z.\u0275dir;
CY.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);Hlb(a,b)}));this.subscriptions.add(le([this.tracker$,this.issue$]).subscribe(function(b){var c=m(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)};
CY.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,g;y(function(k){if(k.nextAddress==1){c.collaboratorGroupsEmailToDetailsMap.clear();c.addedCollaboratorGroups.clear();c.removedCollaboratorGroups.clear();if(a&&a.collaboratorGroups)for(d=m(a.collaboratorGroups),e=d.next();!e.done;e=d.next())f=e.value,f.emailAddress&&c.collaboratorGroupsEmailToDetailsMap.set(f.emailAddress,{user:f,specifiedOnIssue:!1});return b&&b.snapshot&&b.snapshot[0].collaboratorsUsers?z(k,tCd(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}g=k.yieldResult;g.forEach(function(l){c.collaboratorGroupsEmailToDetailsMap.set(l.emailAddress,{user:l,specifiedOnIssue:!0})});ce(k)})};
var tCd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){return f.emailAddress}).filter(Qm),z(e,xjd(a.jspbPrincipalTypes,c,!1),2);d=e.yieldResult;return e.return(b.filter(function(f){if(!f.emailAddress)return!1;var g;return((g=d[f.emailAddress])==null?void 0:g.principalType)==="GROUP"}))})},uCd=function(a){return a?"Expanded access on":"Expanded access off"},Klb=function(a,b){return a.addedCollaboratorGroups.size>0||a.removedCollaboratorGroups.size>0||b===
!0},Hlb=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=gs(c.writers);a.appenders=gs(c.appenders);a.readers=gs(c.readers)},function(c){mO(a.errorHandler,
c)})};h=CY.prototype;h.manageComponentAccessRouterLink=function(a){return{path:"/components/"+a+"/manage",fragment:"access"}};h.closeDialog=function(){this.dialogRef.close()};h.onEnter=function(){this.onPressSave()};h.onEscape=function(){this.dialogRef.close()};
h.onPressSave=function(){var a=this,b=ds({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:Bh(c),onConfirm:function(){a.save()}})}};
h.save=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,this.updatedAccessLimitLevel$.value,Array.from(this.addedCollaboratorGroups),Array.from(this.removedCollaboratorGroups)).then(function(){a.didSave();a.analytics.trackEvent("issueAccessLimits","update","issue_access_limits_dialog:"+a.updatedAccessLimitLevel$.value);a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added:"+a.issueId);a.removedCollaboratorGroups.size>
0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed:"+a.issueId)},function(b){mO(a.errorHandler,b)})};h.didSave=function(){this.snackBar.open("Successfully saved access configuration",void 0,{duration:2500});this.issueFullFridge.poke(this.issueId);this.eventsForIssueFridge.poke(this.issueId)};h.onPressCancel=function(){this.dialogRef.close()};CY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(CY)))(b||CY)}}();
CY.\u0275cmp=D({type:CY,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},standalone:!1,features:[Gf],decls:38,vars:43,consts:[[1,"bv2-issue-limits-title"],[1,"lock-circle"],["svgIcon","lock","color","text-primary"],[1,"issue-limits-dialog-title-txt"],[3,"issueId","componentId","compactMode","popoutLink","readOnly","linkifyComponentNames"],[1,"expanded-access"],[1,"expanded-access-txt"],["svgIcon","help-outline","tabindex",
"0","aria-hidden","false","aria-label","Help","role","button",1,"icon-s","valign-middle",3,"matTooltip"],[3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[1,"user-display-area"],[1,"limit-users-title"],["idForInputBox","Users who can edit, comment, and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can comment and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can only view",3,"users",
"includeAliases","includeViewAliases"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","close"],[1,"collaborator-groups-title"],[1,"collaborator-groups-checkboxes"],[1,"collaborator-group-checkbox",3,"id","name","checked"],[1,"collaborator-group-checkbox",3,"click","change","id","name","checked"],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],["type","button","mat-button",
"",1,"medium","close",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span",1),M(2,"mat-icon",2),L(),K(3,"h2",3),Q(4,"Issue access level"),L()(),K(5,"mat-dialog-content")(6,"div"),M(7,"b-component-breadcrumb-chip",4),K(8,"span",5),T(9,"async"),K(10,"span",6),Q(11),T(12,"async"),L(),M(13,"mat-icon",7),T(14,"async"),L()(),K(15,"b-issue-access-limits-dropdown",8),T(16,"async"),T(17,"async"),T(18,"async"),N("updatedAccessLimitLevel",function(g){b.updatedAccessLimitLevel$.next(g);Hlb(b,g)}),L(),
F(19,Jlb,8,4),T(20,"async"),K(21,"div",9)(22,"div")(23,"div",10),Q(24,"Users who can edit, comment, and view"),L(),M(25,"b-multi-user-input",11),L(),K(26,"div")(27,"div",10),Q(28,"Users who can comment and view"),L(),M(29,"b-multi-user-input",12),L(),K(30,"div")(31,"div",10),Q(32,"Users who can only view"),L(),M(33,"b-multi-user-input",13),L()()(),K(34,"div",14),F(35,Llb,5,3),T(36,"async"),Lf(37,Mlb,2,0,"button",15),L());if(a&2){B(7);I("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",
!0)("popoutLink",b.manageComponentAccessRouterLink)("readOnly",!0)("linkifyComponentNames",!1);B();wg("expanded-access-on",U(9,27,b.isImplicitAccessEnabled$));B(3);var c;yg(uCd((c=U(12,29,b.isImplicitAccessEnabled$))!=null?c:!1));B(2);var d;I("matTooltip",(d=U(14,31,b.expandedAccessTooltip$))!=null?d:"");B(2);var e,f;I("disabled",!U(16,33,b.hasAclToAdmin$))("defaultAccessLimitLevel",(e=U(17,35,b.currentAccessLimitLevel$))!=null?e:b.defaultAccessLimitLevel)("implicitAccessEnabled",(f=U(18,37,b.isImplicitAccessEnabled$))!=
null?f:!1);B(4);G(b.collaboratorGroupsEmailToDetailsMap.size>0&&U(20,39,b.hasAclToAdmin$)?19:-1);B(6);I("users",b.writers)("includeAliases",!1)("includeViewAliases",!1);Kf("disabled",!0);B(4);I("users",b.appenders)("includeAliases",!1)("includeViewAliases",!1);Kf("disabled",!0);B(4);I("users",b.readers)("includeAliases",!1)("includeViewAliases",!1);Kf("disabled",!0);B(2);G(U(36,41,b.hasAclToAdmin$)?35:37)}},dependencies:[BY,Dy,AY,gB,cB,VA,UA,oK,iA,KW,fL,aI,Lx,Qx],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 DY=function(){this.dialog=p(QA);this.dialogRef=null};DY.prototype.open=function(a){this.dialogRef=this.dialog.open(CY,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};DY.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};DY.\u0275fac=function(a){return new (a||DY)};DY.\u0275prov=Fc({token:DY,factory:DY.\u0275fac,providedIn:"root"});var EY=function(){this.buttonRef=p(Jd);this.toRefocus=!1};EY.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}))};EY.\u0275fac=function(a){return new (a||EY)};
EY.\u0275dir=df({type:EY,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},standalone:!1,features:[bx]});var FY=function(){this.activeSession=p(qu);this.cdr=p(ux);this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new XP;this.isAnonymous=this.activeSession.isAnonymous()};h=FY.prototype;h.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.markForCheck())};h.onEnter=function(a){this.onClick(a)};h.isDisabled=function(){return this.isAnonymous||this.disabled};
h.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};h.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};FY.\u0275fac=function(a){return new (a||FY)};
FY.\u0275cmp=D({type:FY,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();K(0,"div",1,0)(2,"button",2);N("keydown.enter",function(d){u(c);return v(b.onEnter(d))})("click",function(d){u(c);return v(b.onClick(d))})("focus",function(){u(c);var d=qg(1);return v(d.show())})("blur",function(){u(c);var d=qg(1);return v(d.hide())});M(3,"mat-icon",3);L()()}a&2&&(I("matTooltip",b.getLabel()),B(2),wg("starred",b.starred),I("disabled",b.isDisabled()),Kf("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(),I("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[Dy,
gB,eB,oK,iA,EY],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 GY=function(){this.activeSession=p(qu);this.ROUTES=ps;this.isCompact=!1;this.starClicked=new XP;this.currentUserEmail=this.activeSession.getUserEmail()};GY.prototype.ngOnInit=function(){};GY.prototype.isDirectAdmin=function(a){return a?vm(a.adminUsers).includes(this.currentUserEmail):!1};GY.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};GY.\u0275fac=function(a){return new (a||GY)};
GY.\u0275cmp=D({type:GY,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,Plb,5,5,"span",0);a&2&&G(b.hotlist?0:-1)},dependencies:[Dy,$E,FY,oK,iA,Lx],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 vCd=function(){this.tokens=new Map};vCd.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};vCd.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new wCd(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var wCd=function(a){this.sortedEntries=a};
wCd.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};wCd.prototype.search=function(a){var b=new Set;a=m(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=m(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var xCd=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(q(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};var yCd=function(a){this.hotlists=a;var b=new vCd,c=new vCd;a=m(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())?V7a(d.name.toLowerCase()):[];e=m(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())?V7a(d.description.toLowerCase()):[];e=m(f);for(f=e.next();!f.done;f=e.next())c.add(f.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(g,
k){return[g,k]}))};
yCd.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=m(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=d.name)==null?void 0:e.toLowerCase(),g=void 0;e=(g=d.description)==null?void 0:g.toLowerCase();g=d.hotlistId;var k=void 0,l=void 0;(uRa(a)&&String(g).includes(a)||((k=f)==null?0:k.includes(a))||((l=e)==null?0:l.includes(a)))&&b.add(d)}a=V7a(a);c=m(xCd(this.nameTokenMatcher,a));for(d=c.next();!d.done;d=c.next())b.add(d.value);a=m(xCd(this.descriptionTokenMatcher,a));
for(c=a.next();!c.done;c=a.next())b.add(c.value);return zCd(this,b)};var zCd=function(a,b){return[].concat(q(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};var ACd=function(){this.innerHeight$=oe(pe(function(){return ee(window.innerHeight)}),re(window,"resize").pipe(A(function(){return window.innerHeight})))};ACd.\u0275fac=function(a){return new (a||ACd)};ACd.\u0275prov=Fc({token:ACd,factory:ACd.\u0275fac,providedIn:"root"});var emb=function(a,b){return b.hotlistId},BCd={USER:"USER",ISSUE:"ISSUE",RECOMMENDED:"RECOMMENDED"},HY=function(){Z.call(this);var a=this;this.dialogRef=p(NA);this.data=p(PA);this.paths=p(mW);this.hotlistFridge=p(gP);this.currentUserBookmarksFridge=p(lP);this.hotlistApi=p(bP);this.snackBar=p(nB);this.appEvents=p(PO);this.errorHandler=p(kO);this.userApi=p(fP);this.windowHeight=p(ACd);this.permissionsFridge=p(yQ);this.activeSession=p(qu);this.isInternalSession=this.activeSession.isInternalSession();
this.HotlistType=BCd;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new Nj("");this.debouncedQuery$=this.query$.pipe(lf(100),zf(""));this.hotlists=[];var b;this.allHotlistIds=new Set([].concat(q(this.data.selectedHotlistIds),q((b=this.data.partiallySelectedHotlistIds)!=null?b:[])));this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.partiallySelectedHotlistIds=new Set(this.data.partiallySelectedHotlistIds);
var c;this.selectedHotlistIdsMap=rmb((c=this.data.selectedHotlistIdsMap)!=null?c:new Map);var d;this.originalSelectedHotlistIdsMap=rmb((d=this.data.selectedHotlistIdsMap)!=null?d:new Map);qmb(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 dE({name:new fE("",wj),description:new fE("")});this.starredHotlists=new XQ;this.isSavingStar=new XQ;this.userHotlists$=
mP(this.currentUserBookmarksFridge).pipe(A(function(e){return e.sort(omb)}));this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.allHotlistIds)).pipe(A(function(e){return e.sort(omb)}));this.combineHotlistsWithPermissions=A(function(e){var f=a.permissionsFridge.watchSet(e.map(function(g){return"hotlists/"+g.hotlistId}));return e.map(function(g,k){return Object.assign({},g,{permissions$:f.pipe(A(function(l){return l[k]}))})})});this.recommendedHotlists$=this.data.recommendedHotlists$;this.hotlists$=
le([this.issueHotlists$,this.recommendedHotlists$,this.userHotlists$]).pipe(A(function(e){var f=m(e);e=f.next().value;var g=f.next().value;f=f.next().value;return[].concat(q(e.map(function(k){return Object.assign({},k,{type:"ISSUE"})})),q(g.map(function(k){return Object.assign({},k,{type:"RECOMMENDED"})})),q(f.map(function(k){return Object.assign({},k,{type:"USER"})})))}),A(v_a(function(e){return e.hotlistId})),A(function(e){return e.filter(Qm)}),this.combineHotlistsWithPermissions,xf({bufferSize:1,
refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(A(function(e){return new yCd(e)}),xf({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new sf;this.matchedHotlists$=le([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(A(function(e){var f=m(e);e=f.next().value;var g=f.next().value;f=f.next().value;return e.trim()!==""?g.search(e):f}),xf({bufferSize:1,refCount:!0}));this.visibleHotlists$=le([this.matchedHotlists$,ve(this.matchedHotlists$.pipe(A(function(){return!1})),
this.forceShowOverflow$)]).pipe(A(function(e){var f=m(e);e=f.next().value;f=f.next().value;return e.length>200&&!f?e.slice(0,200):e}),xf({bufferSize:1,refCount:!0}));this.isOverflowMode$=le([this.matchedHotlists$,this.visibleHotlists$]).pipe(A(function(e){var f=m(e);e=f.next().value;f=f.next().value;return e.length!==f.length}));this.showLoadById$=this.query$.pipe(A(function(e){e=e.trim();return!a.allHotlistIds.has(Number(e))&&uRa(e)}));this.showCreateNew$=le([this.query$,this.matchedHotlists$]).pipe(A(function(e){var f=
m(e);e=f.next().value;f=f.next().value;return pmb(e,f)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(A(function(e){return Math.max(1,Math.floor(e*.5/24))}),pf());this.compactNumberOfHotlistsToShow$.pipe(A(function(e){return e*24}));this.subscriptions.add(this.hotlists$.subscribe(function(e){a.hotlists=e;e=m(e);for(var f=e.next();!f.done;f=e.next())a.allHotlistIds.add(f.value.hotlistId)}))};Y(HY,Z);HY.\u0275dir=Z.\u0275dir;
HY.prototype.ngOnInit=function(){var a=this;CCd(this);this.query$.pipe(Bf(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
HY.prototype.onCheckboxChange=function(a,b){a.checked?this.selectedHotlistIds.add(b):this.selectedHotlistIds.delete(b);for(var c=m(this.selectedHotlistIdsMap.values()),d=c.next();!d.done;d=c.next())d=d.value,a.checked?d.add(b):d.delete(b);a=hRa(this.originalIds,this.selectedHotlistIds);b=[];c=m(this.selectedHotlistIdsMap.entries());for(d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;var f=e.next().value;e=void 0;(d=hRa(f,(e=this.originalSelectedHotlistIdsMap.get(d))!=null?e:new Set))&&
b.push(d)}this.pristine=!a&&b.length===0;var g;b=(g=a==null?void 0:a.added.length)!=null?g:0;var k;g=(k=a==null?void 0:a.removed.length)!=null?k:0;g=m(a?b>0&&g===0?["Add ("+b+")","Add "+b+" hotlist(s)"]:b===0&&g>0?["Remove ("+g+")","Remove "+g+" hotlist(s)"]:["Save","Save all changes ("+b+" added, "+g+" removed)"]:["Save","(No changes)"]);k=g.next().value;g=g.next().value;this.saveBtnLabel=k;this.saveBtnTooltip=g};
var Qs=function(a){a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})},lmb=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("name"))==null?void 0:b.value)?a:""},DCd=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("description"))==null?void 0:b.value)?a:""},kmb=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=lmb(a),c=DCd(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)})},CCd=function(a){ie(Hfd(a.currentUserBookmarksFridge)).then(function(b){a.starredHotlists.clear();for(var c=m(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=m(b.bookmarkGroups);for(c=b.next();!c.done;c=b.next())for(c=m(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)})};
HY.prototype.toggleStar=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a};Yd(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),z(f,b.userApi.removeUserBookmark(d),3);b.starredHotlists.add(a);return z(f,b.userApi.addUserBookmark(d),3);case 3:Zd(f);b.isSavingStar.delete(a);ae(f,4);break;case 2:e=be(f);mO(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
ce(f)}})};var Slb=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);Qs(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};HY.\u0275fac=function(a){return new (a||HY)};
HY.\u0275cmp=D({type:HY,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return Qs(b)})("keydown.shift.enter",function(){return Qs(b)})("keydown.control.enter",function(){return Qs(b)})},standalone:!1,features:[Gf],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,Rlb,1,1,"ng-container")(1,gmb,15,9);K(2,"mat-dialog-actions")(3,"button",5);N("click",function(){u(c);b.dialogRef.close();return v()});Q(4," Cancel ");L();F(5,imb,1,1,"ng-container")(6,jmb,2,5,"button",6);L();E(7,mmb,2,1,"ng-template",null,0,Mg)(9,nmb,14,1,"ng-template",null,1,Mg)}a&2&&(G(b.showCreateNewPane?0:1),B(5),G(b.showCreateNewPane?5:6))},dependencies:[Kx,Dy,RA,TA,VA,
UA,fL,aI,gB,cB,SJ,dK,eK,hE,yj,$D,aE,sE,oE,nE,oK,iA,GY,Lx],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 IY=function(){this.dialog=p(QA);this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.errorHandler=p(kO);this.issueRecommendationFridge=p(eQ);this.recommendationsApi=p(hO);this.issueUserEventsService=p(fW);this.activeSession=p(qu);this.analytics=p(aQ)},FCd=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(b),2);c=g.yieldResult;e=(d=c)==null?void 0:d.snapshot[0].hotlistId;if(!e||!c)return g.return();a.analytics.trackEvent("hotlistPicker","open","IDP");f=
String(c.issueId);return z(g,ECd(a,f,e),0)})},ECd=function(a,b,c,d){d=d===void 0?!0:d;var e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return e=GCd(a,b),f=e.pipe(A(function(C){return C.map(function(H){var J;return(J=H.content)==null?void 0:J.recommendedHotlist}).filter(Qm)}),Cf(function(C){C.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","hotlistPicker")})),g=new Map,g.set(b,new Set(c)),z(x,HCd(a,c,f),2);case 2:k=x.yieldResult;if(k==null||!k.hotlistDiff)return x.return();
l=k.hotlistDiff;r=l.added.map(String);w=l.removed.map(String);if(!d){x.jumpTo(3);break}return z(x,a.updateHotlists(b,r,w),4);case 4:return z(x,ICd(a,b,e,r),3);case 3:return x.return({addedIds:r,removedIds:w})}})},JCd=function(a,b){var c=!1;c=c===void 0?!0:c;var d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa,$a,pb,Xb,lc,ec;return y(function(pc){switch(pc.nextAddress){case 1:d=new Map;e=m(b.values());for(f=e.next();!f.done;f=e.next())if(g=f.value)for(k=m(g),l=k.next();!l.done;l=k.next())r=
l.value,d.has(r)?(w=void 0,x=(w=d.get(r))!=null?w:0,x++,d.set(r,x)):d.set(r,1);C=b.size;H=[];J=[];O=m(d.entries());for(R=O.next();!R.done;R=O.next())V=R.value,ca=m(V),oa=ca.next().value,ua=ca.next().value,ka=oa,Ga=ua,Ga<C?H.push(ka):Ga===C&&J.push(ka);return z(pc,HCd(a,J,ee([]),b,H),2);case 2:ja=pc.yieldResult;if(ja==null)return pc.return();if(!c){pc.jumpTo(3);break}ta=m(ja.issueMapDiffs.entries());xa=ta.next();case 4:if(xa.done){pc.jumpTo(3);break}Sa=xa.value;$a=m(Sa);pb=$a.next().value;Xb=$a.next().value;
lc=pb;ec=Xb;return z(pc,a.updateHotlists(lc,ec.added.map(String),ec.removed.map(String)),5);case 5:xa=ta.next();pc.jumpTo(4);break;case 3:return pc.return(ja)}})};IY.prototype.updateHotlists=function(a,b,c){var d=this,e;return y(function(f){if(f.nextAddress==1)return Yd(f,2,3),z(f,d.issueFullFridge.updateHotlists(a,b,c),3);if(f.nextAddress!=2)return Zd(f),d.eventsForIssueFridge.poke(a),ae(f,0);e=be(f);mO(d.errorHandler,e);return f.jumpTo(3)})};
var HCd=function(a,b,c,d,e){var f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja;return y(function(ta){if(ta.nextAddress==1)return f={selectedHotlistIds:b,recommendedHotlists$:c,selectedHotlistIdsMap:d,partiallySelectedHotlistIds:e},g={panelClass:"no-jitter",data:f,ariaLabel:"Search for Hotlists"},k=a.dialog.open(HY,g),z(ta,ie(OA(k)),2);l=ta.yieldResult;if(!l)return ta.return(Promise.resolve());r=l.selectedHotlistIds;w=l.selectedHotlistIdsMap;x=hRa(new Set(b),new Set(r));C=new Map;if(d&&w)for(H=m(w.entries()),
J=H.next();!J.done;J=H.next())O=J.value,R=m(O),V=R.next().value,ca=R.next().value,oa=V,ua=ca,ka=void 0,Ga=hRa((ka=d.get(oa))!=null?ka:new Set,ua),ja=void 0,C.set(oa,(ja=Ga)!=null?ja:{added:[],removed:[]});return ta.return(Promise.resolve({hotlistDiff:x,issueMapDiffs:C}))})},GCd=function(a,b){return b&&a.activeSession.isInternalSession()?a.issueRecommendationFridge.watch(b+"-HOTLIST").pipe(A(function(c){return(c==null?void 0:c.recommendations)||[]})):ee([])},ICd=function(a,b,c,d){var e,f,g,k;return y(function(l){if(l.nextAddress==
1)return z(l,ie(c),2);if(l.nextAddress!=3){e=l.yieldResult;f=e.filter(function(r){var w,x;return(r=(w=r.content)==null?void 0:(x=w.recommendedHotlist)==null?void 0:x.hotlistId)&&d.includes(String(r))});g=f.map(function(r){return{parent:r.name,userEngagement:{type:"ACCEPTED"}}});if(g.length===0)return l.return();a.analytics.trackEvent("hotlistRecommendation","accept","hotlistPicker");return z(l,a.recommendationsApi.createUserEngagements(g),3)}k=f.map(function(r){return{issueId:b,feature:"FEATURE_HOTLIST",
eventType:"EVENT_TYPE_ACCEPT",recommendationName:r.name}});return z(l,ie(a.issueUserEventsService.logIssueUserEventForRecommendations(k)),0)})};IY.\u0275fac=function(a){return new (a||IY)};IY.\u0275prov=Fc({token:IY,factory:IY.\u0275fac,providedIn:"root"});var KCd={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"},JY=function(){Z.apply(this,arguments);var a=this;this.butterBar=p(QN);this.componentTemplatesFridge=p(SO);this.errorHandler=p(kO);this.triageService=p(TR);this.issueApi=p(HP);this.issueFullFridge=p(cQ);this.editIssueService=p(DS);this.hotlistPickerService=
p(IY);this.issueCommentDialogsService=p(yY);this.issueLimits=p(DY);this.issuePermissionService=p(WQ);this.jspbPrincipalTypes=p(zQ);this.statusMessages=p(eS);this.constants=p(bS);this.activeSession=p(qu);this.issueEditComponentService=p(lW);this.IssueFieldKey=KCd;this.HOTKEYS=Vr;this.FieldType=qV;this.ListFieldType=xud;this.IssueType=xcd;this.IssueSeverity=qcd;this.IssuePriority=dcd;this.IssueStatus=tcd;this.codeChangesValidator=b2a;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 Nj(void 0);this.issueId$=this.triageService.currentIssueId$.pipe(we(Qm),pf());this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.defaultAssigneeForComponent$=this.componentId$.pipe(Af(function(b){return b?a.componentTemplatesFridge.defaultTemplate$(String(b)):ee(void 0)}),A(function(b){return b&&xm(b.snapshot.assigneeUser)}));this.issueIds$=le([this.triageService.currentIssueIds$,
this.triageService.selectedIssueIds$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return c.length?c:b}));this.issues$=this.issueIds$.pipe(Af(function(b){return a.issueFullFridge.watchSet(b)}));this.editableIssues$=this.issueIds$.pipe(A(function(b){return b.map(function(c){return a.editIssueService.editableIssue(c)})}));this.editableIssue$=this.editableIssues$.pipe(A(function(b){return b[0]}));this.areEditableIssuesLoaded$=this.editableIssues$.pipe(A(function(b){return b.every(function(c){return c.issueId!==
""})}));this.fieldMultipleValueMap$=le([this.editableIssues$,this.areEditableIssuesLoaded$]).pipe(A(function(b){var c=m(b);b=c.next().value;if(!c.next().value)return new Map;Ss(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 XP;this.completeAction=new XP;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:j$a(b)}});this.statusChoices=Rcd.filter(function(b){return b.value!=="DUPLICATE"}).map(function(b){return Object.assign({},b,{hotkey:k$a(b.value)})});this.showAssigneeChips$=le([this.hasAclToEdit$,this.defaultAssigneeForComponent$,this.editableIssue$]).pipe(A(function(b){var c=m(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 Nj(!1);this.showCommentInput=!1;this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(g){return g.trim()}).filter(Boolean);
return z(f,xjd(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(g){var k;return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})}};Y(JY,Z);JY.\u0275dir=Z.\u0275dir;h=JY.prototype;
h.ngOnInit=function(){for(var a=m(this.automaticChanges),b=a.next();!b.done;b=a.next())LCd(this,b.value);this.showCommentInput=this.expandCommentBox;a=zr(this.editableIssue$);this.componentId=a.componentId||void 0;this.componentId$.next(this.componentId);Rs(this,a);Ts(this,a)};h.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a=yr(this.issueId$);a&&this.editIssueService.clear(a)};
h.setSeverity=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setSeverity(b);Ss(this,a)};h.setPriority=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setPriority(b);Ss(this,a)};h.setAssignee=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setAssignee(b);Ss(this,a)};h.setType=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setType(b);Ss(this,a)};
h.setStatus=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setStatus(b);Ss(this,a)};h.setComponent=function(a,b){this.componentId=b;this.componentId$.next(b);for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.componentId=b;Ss(this,a)};h.setCodeChanges=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c.value.setCodeChanges(b)};h.setCcs=function(a,b){b=[].concat(q(new Set(b.newUsers)));for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.cc=b;Ts(this,a[0])};
h.setCollaborators=function(a,b){b=[].concat(q(new Set(b.newUsers)));for(var c=m(a),d=c.next();!d.done;d=c.next())d.value.setCollaborators(b);Rs(this,a[0])};
var Pmb=function(a,b){for(var c=a.activeSession.getUserEmail(),d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(g){return g!==c});e.cc=f}Ts(a,b[0]);Ss(a,b)},Kmb=function(a,b){for(var c=a.activeSession.getUserEmail(),d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(g){return g!==c});e.setCollaborators(f)}Rs(a,b[0]);Ss(a,b)},Lmb=function(a,b,c){for(var d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(g){return!c.includes(g)});
e.setCollaborators(f)}Rs(a,b[0]);Ss(a,b)},Qmb=function(a,b,c){for(var d=m(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(g){return!c.includes(g)});e.cc=f}Ts(a,b[0]);Ss(a,b)},Smb=function(a,b){for(var c=m(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.cc;a.isCurrentUserCcd?(e=e.filter(function(f){return!VQ(a.issuePermissionService,f)}),d.cc=e):(e.push(a.activeSession.getUserEmail()),d.cc=e)}Ts(a,b[0])};
JY.prototype.toggleCollaborators=function(a){for(var b=this,c=m(a),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.collaborators;this.isCurrentUserCollaborator?(e=e.filter(function(f){return!VQ(b.issuePermissionService,f)}),d.setCollaborators(e)):(e.push(this.activeSession.getUserEmail()),d.setCollaborators(e))}Rs(this,a[0])};
var Ts=function(a,b){a.isCurrentUserCcd=b.cc.includes(a.activeSession.getUserEmail())},Rs=function(a,b){a.isCurrentUserCollaborator=b.collaborators.includes(a.activeSession.getUserEmail())},Wmb=function(a,b){return a.automaticChanges.find(function(c){return c.field===b})},MCd=function(a,b){var c=[];b=m(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};
JY.prototype.save=function(a){var b=this,c,d,e,f,g,k,l,r,w,x;return y(function(C){if(C.nextAddress==1){b.isSaving$.next(!0);c=a[0];d=a.map(function(H){return zmd(H)}).flat().filter(function(H){return H!==null});e=d.map(function(H){return{issueIds:[H.issueId],actions:H.actions}});f=MCd(b,a);e.push.apply(e,q(f));g=a.map(function(H){return H.issueId});(k=NCd(b,c.issueId)?{fieldName:"comment",value:b.editIssueService.issueCommentDraft(c.issueId).comment().value}:null)&&e.push({issueIds:g,actions:[k]});
b.customFieldBulkEditOps.length&&e.push.apply(e,q(b.customFieldBulkEditOps));l=m(a);for(r=l.next();!r.done;r=l.next())w=r.value,x=w.customFieldMap,Object.assign(b.customFieldMap,x);return z(C,b.sendBulkEditRequest(e),2)}if(C.nextAddress!=3)return z(C,b.updateHotlists(),3);b.isSaving$.next(!1);b.completeAction.emit(g);ce(C)})};JY.prototype.toggleAccessLimits=function(a){this.issueLimits.isOpen()||this.componentId&&this.issueLimits.open({componentId:this.componentId,issueId:a})};
var Ss=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!z_a(e.cc,c.cc)});a.doesFieldHaveMultipleValues.set("CC_LIST",d);b=b.some(function(e){return!z_a(e.collaborators,c.collaborators)});a.doesFieldHaveMultipleValues.set("COLLABORATORS",b)},NCd=function(a,b){b=a.editIssueService.issueCommentDraft(b).comment();return a.showCommentInput&&!!b.value},Hmb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return a.showCommentInput=
!1,z(d,ns(0),2);(c=b)==null||c.focus();ce(d)})},LCd=function(a,b){var c,d;y(function(e){switch(e.nextAddress){case 1:return z(e,ie(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:wb(d)}e.jumpTo(0);break;case 3:return z(e,a.setComment(b.value),5);case 5:e.jumpTo(0)}})};
JY.prototype.setComment=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,ie(b.triageService.currentIssueId$),2);c=f.yieldResult;if(!c)return f.return();d=b.editIssueService.issueCommentDraft(c).comment();if(d.value)return f.return();e=d.value;d.value=a;b.destroyed$.subscribe(function(){var g=b.editIssueService.issueCommentDraft(c).comment();g.value===a&&(g.value=e)});ce(f)})};
JY.prototype.updateHotlists=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return(b=a.fields.includes("HOTLISTS"))?z(g,ie(a.issues$),2):g.return();case 2:c=g.yieldResult;if(!c||!c.length)return g.return();d=m(c);e=d.next();case 3:if(e.done){g.jumpTo(0);break}f=e.value;return z(g,OCd(a,f),4);case 4:e=d.next(),g.jumpTo(3)}})};
var OCd=function(a,b){var c,d,e,f;return y(function(g){e=(c=b.snapshot[0])==null?void 0:(d=c.hotlistId)==null?void 0:d.map(String);return e?(f=a.hotlistIdsMap.get(b.issueId))?z(g,a.hotlistPickerService.updateHotlists(b.issueId,f.added.map(function(k){return k.toString()}),f.removed.map(function(k){return k.toString()})),0):g.return():g.return()})};
JY.prototype.sendBulkEditRequest=function(a){var b=this,c;return y(function(d){c={bulkEditOps:a};Pr(b.butterBar,"Saving changes...",0);return d.return(b.issueApi.issueBulkEdit(c).then(function(e){e.errors&&e.errors.length?(e=dVa(e.errors),b.butterBar.showWarning("Failed to update issue(s) "+e+".")):(e=dnd(b.statusMessages,c,b.customFieldMap))?Pr(b.butterBar,e):Pr(b.butterBar,"Saved "+y7a(a).length+" issue(s).")}).catch(function(e){b.errorHandler.errorHandler(null,e)}))})};
JY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(JY)))(b||JY)}}();
JY.\u0275cmp=D({type:JY,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:[Gf],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,$mb,2,3),T(1,"async"));if(a&2){var c;G((c=U(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 KY=function(){Z.apply(this,arguments);this.TriageActionKey=amd;this.TriagePhase=vcd;this.TriageSubphase=wcd;this.CONFIRM_ACTION=cmd;this.SET_IN_PROGRESS=emd;this.SET_FIXED=kmd;this.CHANGE_COMPONENT=lmd;this.NEEDS_MORE_INFO=bmd;this.SET_WONT_FIX=imd;this.SET_NEW=jmd;this.SET_PENDING_OWNER=dmd;this.SET_EXPECTED=fmd;this.SET_PLANNED=gmd;this.SET_COMMITTED=hmd;this.needsInfoAutomaticChanges=[];this.cancelAction=new XP;this.finalizeAction=new XP};Y(KY,Z);KY.\u0275dir=Z.\u0275dir;
KY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(KY)))(b||KY)}}();
KY.\u0275cmp=D({type:KY,selectors:[["secondary-footer"]],inputs:{needsInfoAutomaticChanges:"needsInfoAutomaticChanges",selectedTriageAction:"selectedTriageAction"},outputs:{cancelAction:"cancelAction",finalizeAction:"finalizeAction"},standalone:!1,features:[Gf],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,
bnb,1,1,"ng-container")(1,dnb,1,1,"ng-container")(2,fnb,1,1,"ng-container")(3,hnb,1,1,"ng-container")(4,jnb,1,1,"ng-container")(5,lnb,1,1,"ng-container")(6,nnb,1,1,"ng-container")(7,pnb,1,1,"ng-container")(8,rnb,1,1,"ng-container")(9,tnb,1,1,"ng-container")(10,vnb,1,1,"ng-container"),E(11,wnb,4,7,"ng-template",null,0,Mg)(13,xnb,4,2,"ng-template",null,1,Mg)(15,ynb,4,2,"ng-template",null,2,Mg)(17,znb,4,2,"ng-template",null,3,Mg)(19,Anb,4,3,"ng-template",null,4,Mg)(21,Bnb,4,3,"ng-template",null,5,Mg)(23,
Cnb,4,3,"ng-template",null,6,Mg)(25,Dnb,4,3,"ng-template",null,7,Mg)(27,Enb,4,3,"ng-template",null,8,Mg)(29,Fnb,4,3,"ng-template",null,9,Mg)(31,Gnb,4,2,"ng-template",null,10,Mg));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:[Kx,JY],encapsulation:2,changeDetection:0});var LY=function(){this.issueExperimentalFieldsFridge=p(PP)},PCd=function(a,b,c){var d;return y(function(e){switch(e.nextAddress){case 1:switch(c){case "SET_NEEDS_INFO":return e.jumpTo(2);case "SET_CONFIRMED":return e.jumpTo(3);case "SET_PENDING_OWNER":return e.jumpTo(4);case "SET_NEW":return e.jumpTo(5);case "SET_IN_PROGRESS":return e.jumpTo(6);case "SET_EXPECTED":return e.jumpTo(7);case "SET_PLANNED":return e.jumpTo(8);case "SET_COMMITTED":return e.jumpTo(9);case "SET_FIXED":return e.jumpTo(10);
case "CHANGE_COMPONENT":return e.jumpTo(11);case "SET_WONT_FIX":return e.jumpTo(12);case "MARK_AS_DUPLICATE":throw Error("of");default:wb(c)}e.jumpTo(13);break;case 2:return z(e,a.setNeedsInfo(b),14);case 14:d=e.yieldResult;e.jumpTo(13);break;case 3:return z(e,a.setConfirmed(b),15);case 15:d=e.yieldResult;e.jumpTo(13);break;case 4:return z(e,a.setPendingOwner(b),16);case 16:d=e.yieldResult;e.jumpTo(13);break;case 5:return z(e,a.setNew(b),17);case 17:d=e.yieldResult;e.jumpTo(13);break;case 6:return z(e,
a.setInProgress(b),18);case 18:d=e.yieldResult;e.jumpTo(13);break;case 7:return z(e,a.setExpected(b),19);case 19:d=e.yieldResult;e.jumpTo(13);break;case 8:return z(e,a.setPlanned(b),20);case 20:d=e.yieldResult;e.jumpTo(13);break;case 9:return z(e,a.setCommitted(b),21);case 21:d=e.yieldResult;e.jumpTo(13);break;case 10:return z(e,a.setFixed(b),22);case 22:d=e.yieldResult;e.jumpTo(13);break;case 11:return z(e,a.setNew(b),23);case 23:d=e.yieldResult;e.jumpTo(13);break;case 12:return z(e,a.setWontFix(b),
24);case 24:d=e.yieldResult;e.jumpTo(13);break;case 13:return e.return(d)}})};h=LY.prototype;h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="NEW";f.triage.subphase="NEEDS_INFO"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="PENDING_OWNER"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="EXPECTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="PLANNED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="COMMITTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="FIXED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="NEW";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="WONT_FIX";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};LY.\u0275fac=function(a){return new (a||LY)};LY.\u0275prov=Fc({token:LY,factory:LY.\u0275fac,providedIn:"root"});var QCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(QCd,W);h=QCd.prototype;h.getId=function(){return vi(this,3)};h.setId=function(a){return Gm(this,3,a)};h.getName=function(){return vi(this,1)};h.setName=function(a){return Gm(this,1,a)};h.getArgs=function(){return X(this,yA,2)};h.getType=function(){return xi(this,7)};h.setType=function(a){return Im(this,7,a)};var RCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(RCd,W);var SCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(SCd,W);h=SCd.prototype;h.getDataCase=function(){return xo(this,MY)};h.clearData=function(){return Bw(this,MY)};h.getText=function(){return zo(this,2,MY)};h.setText=function(a){return Co(this,2,MY,a)};h.hasText=function(){return mr(this,2,MY)!=null};h.getFunctionCall=function(){return $l(this,QCd,4,MY)};h.hasFunctionCall=function(){return Ri(this,QCd,4,MY)};h.getThought=function(){return Gi(this,11)};
h.getVideoMetadata=function(){return $l(this,RCd,14,TCd)};h.hasVideoMetadata=function(){return Ri(this,RCd,14,TCd)};var MY=[2,3,4,5,6,7,9,10,15,17,18],TCd=[14];var NY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NY,W);NY.prototype.getPartsList=function(){return Ci(this,SCd,1,Di())};NY.prototype.addParts=function(a){return Pp(this,1,SCd,a)};NY.prototype.getRole=function(){return vi(this,2)};NY.prototype.setRole=function(a){return Gm(this,2,a)};var UCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(UCd,W);var VCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(VCd,W);h=VCd.prototype;h.setModel=function(a){return Gm(this,1,a)};h.setSystemInstruction=function(a){Ni(this,NY,8,a)};h.getSessionId=function(){return pn(this,12)};h.setSessionId=function(a){return wn(this,12,a)};h.hasSessionId=function(){return on(this,12)};h.setRequestContext=function(a){Ni(this,UCd,17,a)};var Jnb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jnb,W);h=Jnb.prototype;h.getIndex=function(){return Cm(this,3)};h.setIndex=function(a){Fn(this,3,a)};h.getContent=function(){return X(this,NY,1)};h.setContent=function(a){return Ni(this,NY,1,a)};h.hasContent=function(){return yi(this,NY,1)};var Inb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Inb,W);h=Inb.prototype;h.setCandidates=function(a,b){return zw(this,1,Jnb,a,b)};h.getModelVersion=function(){return vi(this,4)};h.setModelVersion=function(a){return Gm(this,4,a)};h.getResponseId=function(){return vi(this,5)};h.setResponseId=function(a){return Gm(this,5,a)};var WCd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,WCd.messageId)};Y(WCd,W);WCd.messageId="b.GenerateContentResponse";var XCd=function(){this.executor=p(dO)};XCd.\u0275fac=function(a){return new (a||XCd)};XCd.\u0275prov=Fc({token:XCd,factory:XCd.\u0275fac,providedIn:"root"});var OY=function(){var a=this;this.geminiApi=p(XCd);this.issueFridge=p(TP);this.issueFullFridge=p(cQ);this.getLlmResponse=vVa(function(b,c){var d,e;return y(function(f){if(f.nextAddress==1){d={prompt:b};var g=a.geminiApi;var k;var l=(new VCd).setModel((k=d.model)!=null?k:"models/gemini-1.5-flash");k=(new NY).addParts((new SCd).setText(d.prompt));l=Pp(l,2,NY,k);g=g.executor.post({url:"/action/gemini/generate",options:{params:{feature:c}},body:l,responseConstructor:WCd}).then(Knb);return z(f,g,2)}e=
f.yieldResult;return f.return(e.output)})})},YCd=function(a,b){return b.length<3?ee("Unknown (cluster is too small)"):pe(function(){return a.issueFridge.watchSet(b)}).pipe(Af(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")}))},$Cd=function(a,b,c){return pe(function(){return le(b.map(function(d){return a.issueFridge.watchSet(d)})).pipe(Af(function(d){d=
d.map(function(e){return e.map(function(f){return f.snapshot[0].title})});return ZCd(a,d,c)}))})},ZCd=function(a,b,c){var d="";b=m(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 pe(function(){return a.getLlmResponse(f,"CLUSTER_TITLE")}).pipe(A(function(g){return g.split(",")}))},aDd=function(a,b){return b.length<3?ee("Unknown (cluster is too small)"):pe(function(){return a.issueFullFridge.watchSet(b)}).pipe(Af(function(c){var d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return d="<START>",e="<END>",f=c.map(function(x){var C;return"Task b/"+x.issueId+' has title "'+x.snapshot[0].title+'" and has description "'+((C=x.description)==null?void 0:C.unlinkifiedComment.substring(0,
100))+'"'}).join("\n"),g="\nYou are a world-class technical lead and manager in software engineering, tasked with summarizing a set of issues using data from a issue tracking tool. You will receive a list of issues including titles and descriptions.\n\nGeneral Information:\n\nIssues: Issues are stored in a system called Buganizer and are usually referred as b/<id>. All b/<id> are references to the same issue. http://b/<id> can be used to refer to a issue in summary.\n\nSteps to Follow:\n\n1. Understand Issue Context: Use the issue title and description to understand the nature of the issue. DO NOT include the titles or specific names of issues in the summary.\n2. Generate Summary:\n  - Start with a high-level overview of the issues, in one small sentence, focusing on the key accomplishments and outcomes. Summarize the issues and their impact, using concise and informative language. Don't include introductory phrases and additional formatting. Skip this if you don't find a common theme. Don't hallucinate.\n  - Use the format "+
d+" and "+e+" tags for the summary without additional headers.\n  - If you need to reference issues in the summary, you may do so by their IDs as http://b/<id>\n\nImportant: Ensure the summary is concise, informative, and does not include any issue titles or names.\n\nIssues, title and description:\n\n"+f+"\n\nOutput:\n",z(w,a.getLlmResponse(g,"CLUSTER_DESCRIPTION"),2);k=w.yieldResult;l=k.indexOf(d);r=k.indexOf(e);return w.return(k.substring(l+d.length,r).trim())})}))};
OY.\u0275fac=function(a){return new (a||OY)};OY.\u0275prov=Fc({token:OY,factory:OY.\u0275fac,providedIn:"root"});var bDd=kw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),cDd=kw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),dDd=kw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),eDd=kw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),fDd=function(){var a=this;this.dialogRef=p(NA);this.darkmodeService=p(GW);this.data=
p(PA);this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(A(function(b){switch(a.data.type){case "HOMEPAGE":return b?Fh(bDd):Fh(cDd);default:return b?Fh(dDd):Fh(eDd)}}))};fDd.\u0275fac=function(a){return new (a||fDd)};
fDd.\u0275cmp=D({type:fDd,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&&
(K(0,"div",0),F(1,Lnb,1,3,"iframe",1),T(2,"async"),F(3,Mnb,1,0,"mat-spinner",2),L(),K(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),L(),K(7,"button",5),N("click",function(){return b.dialogRef.close(!0)}),Q(8," File a new issue "),L()());if(a&2){var c;B();G((c=U(2,2,b.docUrl$))?1:-1,c);B(2);G(b.contentLoaded?-1:3)}},dependencies:[VA,UA,gB,cB,jK,rI,Lx],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 Ys=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ys,W);h=Ys.prototype;h.getEnableSsEngine=function(){return Gi(this,2)};h.getEnableAwr=function(){return Gi(this,3)};h.getAlohaAutoGaRollout=function(){return Gi(this,5)};h.getEnableConfigurator=function(){return Gi(this,6)};h.getEnableMweb=function(){return Gi(this,7)};var hDd=function(){var a=gDd();return $o(a,7,!0)};Ys.prototype.getEnableCtlConsentCheckbox=function(){return Gi(this,8)};
Ys.prototype.getEnableIframe=function(){return Gi(this,9)};var gDd=function(){var a=new Ys;a=$o(a,5,!0);a=$o(a,2,!0);a=$o(a,4,!1);a=$o(a,8,!0);return $o(a,9,!0)};Ys.prototype.getEnableScreenshotNudge=function(){return Gi(this,10)};var iDd=function(){var a=hDd();return $o(a,10,!0)};Ys.prototype.getEnableWebStartupConfigEndpoint=function(){return Gi(this,11)};Ys.prototype.getEnableJunkNudge=function(){return Gi(this,12)};var eob=function(){var a=iDd();return $o(a,12,!0)};h=Ys.prototype;
h.getEnableConfiguratorLocale=function(){return Gi(this,13)};h.getEnableTinyNoPointer=function(){return Gi(this,14)};h.getEnableSupportSessionLogging=function(){return Gi(this,15)};h.getEnableFileUploadForScreenshot=function(){return Gi(this,16)};h.getEnableDirectDeflectionForSingleCategory=function(){return Gi(this,17)};h.getEnableImageSanitization=function(){return Gi(this,18)};h.getEnableAlohaBinarySplit=function(){return Gi(this,19)};h.getEnableDbFeedbackIntents=function(){return Gi(this,20)};
h.getEnableMarkMandatoryFieldsWithRequired=function(){return Gi(this,21)};h.getEnableFeedbackCategoryCustomUi=function(){return Gi(this,22)};h.getEnableRealtimeCtl=function(){return Gi(this,23)};var dob=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dob,W);var Nnb=[/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 Pnb="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 Qnb=kw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Rnb=kw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Xs=function(){var a=Error.call(this,"Form is either loading or already opened");this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="DuplicateFormError"};Y(Xs,Error);var Tnb,Wnb,Unb,Xnb;var jDd=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ra,e=d.document,f=a.nonce||dsa(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var g=Ou("document.location.href",d);!a.helpCenterContext&&g&&(a.helpCenterContext=g.substring(0,1200));g=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(g=k.length<=1200)&&(a.psdJson=k)}g||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(g=d.GOOGLE_FEEDBACK_START)g.apply(d,
b);else{d=c+"/load.js?";for(var l in a)b=a[l],b==null||Oa(b)||(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=lj(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);pi(a,uh(d));e.body.appendChild(a)}},kDd=function(a,b,c,d){var e,f;return y(function(g){e=c||ra;var k=a.serverEnvironment==="DEV",l=c||ra;l=a.nonce||dsa(l.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:l,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&&(l=new Map(Object.entries(b)),k.extraData.productSpecificData=l);f=k;return z(g,aob(f,d,e),0)})},lDd=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,
"");oi(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?jDd(a,b,c):fob(a.productId,a.feedbackServerUri).then(function(e){e=X(e,Ys,1);var f=!xxc||(e==null?void 0:e.getEnableMweb()),g=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&g?kDd(a,b,c,e).catch(function(k){!k||k instanceof Xs||jDd(a,b,c)}):jDd(a,b,c)},function(e){!e||e instanceof Xs||jDd(a,b,c)})}catch(e){kDd(a,b,c,null).catch(function(f){!f||f instanceof Xs||jDd(a,b,c)})}};
qw("userfeedback.api.startFeedback",lDd);var mDd={width:"500px",maxHeight:"80vh",autoFocus:!0},nDd=new Date,PY=function(){this.activeSession=p(qu);this.matDialog=p(QA);this.reportStartTime=new Date};PY.prototype.startFeedback=function(){var a=this;this.reportStartTime=new Date;this.activeSession.isInternalSession()?OA(this.matDialog.open(fDd,Object.assign({},mDd,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&oDd(a)}):oDd(this)};
var Dlc=function(a){a.reportStartTime=new Date;a.activeSession.isInternalSession()?OA(a.matDialog.open(fDd,Object.assign({},mDd,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&oDd(a)}):oDd(a)},oDd=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20251105.06_p0"};b.bucket=qs(a.activeSession)?"buganizer-trackers-feedback":"buganizer3-feedback";var c=[].concat(q([]),q(sdd(a.activeSession))).join(", ");c={userType:a.activeSession.getUserTypeLabel(),
flags:c};if(qs(a.activeSession)){var d,e;c.trackerId=(e=(d=a.activeSession.getTracker())==null?void 0:d.trackerId)!=null?e:""}c.initialLoadTime=gob(nDd);c.reportStartTime=gob(a.reportStartTime);lDd(b,c)};PY.\u0275fac=function(a){return new (a||PY)};PY.\u0275prov=Fc({token:PY,factory:PY.\u0275fac,providedIn:"root"});var pDd=["actionsMenuIconButton"],QY=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical";this.buttonSize="medium";this.menuClass="actions-menu"};QY.prototype.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,ns(0),2);if(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)return c.return();b.type!=="action"&&b.type!=="select"||b.action(a);ce(c)})};QY.prototype.ngOnInit=function(){};QY.\u0275fac=function(a){return new (a||QY)};
QY.\u0275cmp=D({type:QY,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&hg(pDd,5);if(a&2){var c;lg(c=mg())&&(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,hob,3,6,"button",3),K(1,"mat-menu",null,0)(3,"div",4),F(4,iob,2,1,"div",5),Of(5,wob,2,2,null,null,Mf),L()());a&2&&(G(b.menuItems.length>0?0:-1),B(),xg(Eg("",b.menuClass,"-menu")),B(3),G(b.header?4:-1),B(),Pf(b.menuItems))},dependencies:[OJ,YG,WG,aH,Dy,gB,eB,oK,iA],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 qDd={type:"action",label:"Report illegal content"},rDd={type:"submenu",label:"View as"},sDd={type:"action",label:"Restriction settings..."},tDd={type:"action",label:"Show editing history"};var RY=function(){Z.apply(this,arguments);var a=this;this.triageService=p(TR);this.llmService=p(OY);this.issueFridge=p(TP);this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.issuePicker=p(XX);this.issueApi=p(HP);this.errorHandler=p(kO);this.butterBar=p(QN);this.domSafe=p(iR);this.analytics=p(aQ);this.triagePhaseService=p(LY);this.userFeedback=p(PY);this.isClosed=CUa;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(Af(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Er));this.title$=this.issueIds$.pipe(Af(function(b){return YCd(a.llmService,b)}));this.clusterDescription$=this.issueIds$.pipe(Af(function(b){return aDd(a.llmService,b)}));this.rows$=this.issueIds$.pipe(A(function(b){return b.map(function(c){return{id:c,issue$:a.issueFridge.watch(c)}})}));
this.searchUrl$=this.issueIds$.pipe(A(function(b){return{path:"/issues",params:{q:"id:("+b.join("|")+")"}}}));this.refreshTable=new XP;this.checkedIssueIds=new XQ;this.areAllChecked$=le([this.issueIds$,this.checkedIssueIds.value$]).pipe(A(function(b){var c=m(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(RY,Z);RY.\u0275dir=Z.\u0275dir;h=RY.prototype;
h.ngOnInit=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.issueIds$),2);b=c.yieldResult;a.checkedIssueIds.reset(b);ce(c)})};h.toggleAll=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,ie(b.issueIds$),2);c=d.yieldResult;a.checked?b.checkedIssueIds.reset(c):b.checkedIssueIds.reset([]);ce(d)})};
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1){b=[].concat(q(a.checkedIssueIds));if(!b||!b.length)return l.return();c=cVa;return z(l,ie(a.issueFridge.watchSet(b)),2)}if(l.nextAddress!=3)return d=c(l.yieldResult),e=m,z(l,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),3);f=e(l.yieldResult);return(k=g=f.next().value)?z(l,a.markAsDuplicate(k,b),0):l.return()})};
h.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(){b.domSafe.openInNewTab(ps.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(q(b.checkedIssueIds));b.markAsDuplicate(a.id,c.filter(function(d){return d!==a.id}))},title:"Mark selected issues as duplicate of this one",icon:"issue-status-duplicate"}]};
h.markAsDuplicate=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:d=b.filter(function(k){return k!==a});if(!d.length)return g.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Yd(g,2,3);Pr(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),5);case 5:Pr(c.butterBar,"Marked "+b.length+" issues as duplicate.");case 3:return Zd(g),z(g,Promise.all([].concat(q(b.map(function(k){return c.issueFridge.poke(k)})),[c.issueFridge.poke(a)])),
6);case 6:ae(g,0);break;case 2:f=be(g),mO(c.errorHandler,f),g.jumpTo(3)}})};h.cancelAction=function(){this.displaySecondaryFooter=!1};h.finalizeSecondaryAction=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return b.displaySecondaryFooter=!1,(c=b.selectedTriageAction)?z(e,PCd(b.triagePhaseService,a,c),2):e.return();d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ce(e)})};h.sendFeedback=function(){oDd(this.userFeedback)};
h.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","accept","trendingThemes")};h.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","reject","trendingThemes")};
h.openSecondaryActionFooter=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return c=[].concat(q(b.checkedIssueIds)),b.triageService.internalSelectedIssueIds$.next(c),a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,b.openDupeDialog(),3);if(d.nextAddress!=2)return d.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;ce(d)})};h.announceUpdate=function(a,b){if(b&&b.length)for(a=m(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};
RY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(RY)))(b||RY)}}();
RY.\u0275cmp=D({type:RY,selectors:[["cluster-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Gf],decls:48,vars:25,consts:[[1,"container","bg-secondary","flex-kids-y"],[1,"flex-kids-x","space-between","border-bottom","bg-main","align-items-center"],["chipColor","purple","displayText","Trending themes","icon","issue-status-new","tooltip","Trending theme identified by AI",1,"margin-s-left"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label",
"Close sidebar",1,"gmat-button","margin-left-auto",3,"click"],["svgIcon","close"],[1,"content","flex-kids-y","margin-s"],[1,"flex-kids-x","space-between","full-width"],[1,"heading-m"],[1,"type-s"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Send feedback for the trending themes","aria-label","send feedback for the trending themes",1,"feedback-button",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Trending themes are helpful",
"aria-label","thumb up",1,"feedback-button",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Trending themes are not helpful","aria-label","thumb down",1,"feedback-button",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],[1,"bg-main","rounded","bordered","flex-kids-y","margin-s-y","gap-xs"],[1,"description","border-bottom","padded"],[1,"padded"],[1,"muted"],["mat-table","",1,"full-width",3,"dataSource","trackBy"],["matColumnDef",
"checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","phase"],["matColumnDef","relativeModifiedTime"],["mat-header-cell","","mat-sort-header","relativeModifiedTime","start","desc","class","nowrap",4,"matHeaderCellDef"],["mat-cell","","class","nowrap",4,"matCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"closed",4,"matRowDef","matRowDefColumns"],["mat-button","","color","primary",
1,"small","width-fit-content","margin-s-top",3,"routerLink","queryParams"],[1,"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[1,"muted","uppercase"],[1,"margin-s-top"],["mat-header-cell",""],["gmat-checkbox","",3,"change","checked","indeterminate"],["mat-cell",""],["gmat-checkbox","",3,"change","checked"],["anchorTarget","_blank",3,"issue","enableHovercard"],[1,"chippy"],["mat-header-cell","","mat-sort-header","relativeModifiedTime","start","desc",1,"nowrap"],["mat-cell","",1,"nowrap"],
[3,"timestamp","mode","paddingLeftPx"],["buttonLabel","More options","buttonIcon","more-settings-vertical","menuClass","issue-cluster-options",3,"click","menuItems"],["mat-header-row",""],["mat-row",""],[1,"full-width",3,"selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","","matTooltip","Mark selected issues as duplicate",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",
0)(1,"div",1),M(2,"b-signal-chip",2),K(3,"button",3),N("click",function(){return b.triageService.closeSidebar()}),M(4,"mat-icon",4),L()(),K(5,"div",5)(6,"div",6)(7,"h3",7),Q(8),T(9,"async"),T(10,"async"),L(),M(11,"span",8),K(12,"div",9)(13,"button",10),N("click",function(){return b.sendFeedback()}),M(14,"mat-icon",11),L(),K(15,"button",12),N("click",function(){return b.trackThumbsUp()}),M(16,"mat-icon",13),L(),K(17,"button",14),N("click",function(){return b.trackThumbsDown()}),M(18,"mat-icon",15),
L()()(),K(19,"div",16),F(20,zob,5,1,"div",17),T(21,"async"),K(22,"div",18)(23,"span",19),Q(24,"Select issues to take action"),L(),K(25,"table",20),Uf(26,21),E(27,Aob,4,6,"th",22)(28,Bob,3,3,"td",23),Vf(),Uf(29,24),E(30,Cob,2,0,"th",22)(31,Dob,3,4,"td",23),Vf(),Uf(32,25),E(33,Eob,2,0,"th",22)(34,Hob,3,3,"td",23),Vf(),Uf(35,26),E(36,Iob,2,0,"th",27)(37,Lob,3,3,"td",28),Vf(),Uf(38,29),E(39,Mob,1,0,"th",22)(40,Nob,2,1,"td",23),Vf(),E(41,Oob,1,0,"tr",30)(42,Pob,2,4,"tr",31),L(),F(43,Qob,2,2,"a",32),T(44,
"async"),L()()(),K(45,"div",33),F(46,Tob,2,1),T(47,"async"),L()());if(a&2){var c,d,e,f;B(8);zg("",U(9,15,b.title$)," (",(c=U(10,17,b.issueIds$))==null?null:c.length," issues)");B(7);I("disabled",b.hasReacted);B();wg("has-reacted-icon",b.thumbsUpClicked);B();I("disabled",b.hasReacted);B();wg("has-reacted-icon",b.thumbsDownClicked);B(2);G((d=U(21,19,b.clusterDescription$))?20:-1,d);B(5);I("dataSource",b.rows$)("trackBy",b.trackBy);B(16);I("matHeaderRowDef",b.tableColumns);B();I("matRowDefColumns",b.tableColumns);
B();G((e=U(44,21,b.searchUrl$))?43:-1,e);B(3);G((f=U(47,23,b.issuePhase$))?46:-1,f)}},dependencies:[QY,Dy,$E,sV,gB,cB,eB,fL,aI,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,oK,iA,TW,ZW,KY,LU,Lx],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 SY=function(){var a=this;this.data=p(PA);this.cdr=p(YP,{self:!0});this.codefont=p(fR);this.location=p(ii);this.paths=p(mW);this.userFeedback=p(PY);this.errorHandler=p(kO);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()})};
SY.prototype.updateUrl=function(a,b){a.stopPropagation();a=rs(this.issueId)+("#comment"+this.commentNumber+"version"+b);this.location.replaceState(a)};SY.prototype.startFeedback=function(){this.userFeedback.startFeedback()};SY.\u0275fac=function(a){return new (a||SY)};
SY.\u0275cmp=D({type:SY,selectors:[["comment-history-dialog"]],standalone:!1,features:[Gg([YP])],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],[3,"change","checked"],[1,"dialog-feedback",3,"click"],[1,"float-clear"],[1,"bv2-view-loading"],[1,"comment-history-list"],"type button mat-button  mat-dialog-close ".split(" "),[1,"comment-version",3,"comment-version-open"],[1,"comment-version"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"comment-version-header",
3,"click"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],[1,"muted","float-right","float-clear"],[1,"type-xs",3,"innerHtml"],[1,"type-xs"],[1,"comment-version-email"],[3,"email"],[3,"click","id"],[1,"comment-version-preview"],[1,"comment-version-preview","deleted"],[1,"comment-version-restricted"],[1,"comment-version-content","deleted"],[1,"comment-version-content",3,"codefont","innerHtml"],[1,"comment-version-content",3,"innerHtml"]],template:function(a,b){a&1&&(K(0,"h2",
0),Q(1),L(),K(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),N("change",function(c){return b.diffView=c.checked}),Q(5," Show Diff "),L()(),K(6,"a",3),N("click",function(){return b.startFeedback()}),Q(7,"Feedback"),L(),M(8,"br",4),F(9,Uob,2,0,"div",5)(10,ipb,3,0,"ul",6),L(),K(11,"mat-dialog-actions")(12,"button",7),Q(13,"Close"),L()());a&2&&(B(),S("History for Comment #",b.commentNumber),B(3),I("checked",b.diffView),B(5),G(b.isLoading?9:10))},dependencies:[sV,fL,aI,gB,cB,RA,TA,VA,UA,dT,$T,
bV,$U,Lx,CS,WU],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 jpb=function(){},$s=function(a,b,c,d,e){typeof e=="undefined"&&(e=(new Date).getTime()+1E3);if(b==null||c==null)throw Error("sf");if(b==c)return b?[[0,b]]:[];typeof d=="undefined"&&(d=!0);var f=uDd(b,c),g=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=vDd(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=wDd(a,b,c,d,e);g&&b.unshift([0,g]);k&&b.push([0,k]);xDd(a,b);return b},wDd=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,g=b.length>c.length?c:b,k=f.indexOf(g);if(k!=-1)return a=[[1,f.substring(0,k)],[0,g],[1,f.substring(k+g.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(g.length==1)return[[-1,b],[1,c]];if(f=yDd(b,c))return c=f[1],g=f[3],b=f[4],f=$s(a,f[0],f[2],d,e),a=$s(a,c,g,d,e),f.concat([[0,b]],a);if(d&&b.length>100&&c.length>100){b=zDd(b,c);c=b.lineArray;b=$s(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];g=[];for(k=0;k<f.length;k++)g[k]=c[f.charCodeAt(k)];b[d][1]=g.join("")}kpb(a,
b);b.push([0,""]);f=d=c=0;for(k=g="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;g+=b[c][1];break;case 0:if(d>=1&&f>=1){b.splice(c-d-f,d+f);c=c-d-f;d=$s(a,g,k,!1,e);for(f=d.length-1;f>=0;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=g=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;g=Math.ceil((d+f)/2);k=2*g;for(var l=Array(k),r=Array(k),w=0;w<k;w++)l[w]=-1,r[w]=-1;l[g+1]=0;r[g+1]=0;w=d-f;for(var x=w%2!=0,C=0,H=0,J=0,O=0,R=0;R<g&&!((new Date).getTime()>e);R++){for(var V=-R+
C;V<=R-H;V+=2){var ca=g+V;var oa=V==-R||V!=R&&l[ca-1]<l[ca+1]?l[ca+1]:l[ca-1]+1;for(var ua=oa-V;oa<d&&ua<f&&b.charAt(oa)==c.charAt(ua);)oa++,ua++;l[ca]=oa;if(oa>d)H+=2;else if(ua>f)C+=2;else if(x&&(ca=g+w-V,ca>=0&&ca<k&&r[ca]!=-1)){var ka=d-r[ca];if(oa>=ka){a=ADd(a,b,c,oa,ua,e);break a}}}for(V=-R+J;V<=R-O;V+=2){ca=g+V;ka=V==-R||V!=R&&r[ca-1]<r[ca+1]?r[ca+1]:r[ca-1]+1;for(oa=ka-V;ka<d&&oa<f&&b.charAt(d-ka-1)==c.charAt(f-oa-1);)ka++,oa++;r[ca]=ka;if(ka>d)O+=2;else if(oa>f)J+=2;else if(!x&&(ca=g+w-V,
ca>=0&&ca<k&&l[ca]!=-1&&(oa=l[ca],ua=g+oa-ca,ka=d-ka,oa>=ka))){a=ADd(a,b,c,oa,ua,e);break a}}}a=[[-1,b],[1,c]]}return a},ADd=function(a,b,c,d,e,f){var g=b.substring(d),k=c.substring(e);b=$s(a,b.substring(0,d),c.substring(0,e),!1,f);a=$s(a,g,k,!1,f);return b.concat(a)},zDd=function(a,b){function c(g){for(var k="",l=0,r=-1,w=d.length;r<g.length-1;){r=g.indexOf("\n",l);r==-1&&(r=g.length-1);var x=g.substring(l,r+1);(e.hasOwnProperty?e.hasOwnProperty(x):e[x]!==void 0)?k+=String.fromCharCode(e[x]):(w==
f&&(x=g.substring(l),r=g.length),k+=String.fromCharCode(w),e[x]=w,d[w++]=x);l=r+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},uDd=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},vDd=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},BDd=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++}},yDd=function(a,b){function c(k,l,r){for(var w=k.substring(r,r+Math.floor(k.length/4)),x=-1,C="",
H,J,O,R;(x=l.indexOf(w,x+1))!=-1;){var V=uDd(k.substring(r),l.substring(x)),ca=vDd(k.substring(0,r),l.substring(0,x));C.length<ca+V&&(C=l.substring(x-ca,x)+l.substring(x,x+V),H=k.substring(0,r-ca),J=k.substring(r+V),O=l.substring(0,x-ca),R=l.substring(x+V))}return C.length*2>=k.length?[H,J,O,R,C]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(d.length<4||e.length*2<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var g;if(f||d)d?g=f?f[4].length>d[4].length?
f:d:d:g=f;else return null;a.length>b.length?(a=g[0],b=g[1],f=g[2],d=g[3]):(f=g[0],d=g[1],a=g[2],b=g[3]);return[a,b,f,d,g[4]]},kpb=function(a,b){for(var c=!1,d=[],e=0,f=null,g=0,k=0,l=0,r=0,w=0;g<b.length;)b[g][0]==0?(d[e++]=g,k=r,l=w,w=r=0,f=b[g][1]):(b[g][0]==1?r+=b[g][1].length:w+=b[g][1].length,f&&f.length<=Math.max(k,l)&&f.length<=Math.max(r,w)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,g=e>0?d[e-1]:-1,w=r=l=k=0,f=null,c=!0)),g++;c&&xDd(a,b);CDd(b);for(g=1;g<b.length;){if(b[g-1][0]==
-1&&b[g][0]==1){a=b[g-1][1];c=b[g][1];d=BDd(a,c);e=BDd(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(g,0,[0,c.substring(0,d)]),b[g-1][1]=a.substring(0,a.length-d),b[g+1][1]=c.substring(d),g++}else if(e>=a.length/2||e>=c.length/2)b.splice(g,0,[0,a.substring(0,e)]),b[g-1][0]=1,b[g-1][1]=c.substring(0,c.length-e),b[g+1][0]=-1,b[g+1][1]=a.substring(e),g++;g++}g++}},CDd=function(a){function b(x,C){if(!x||!C)return 6;var H=x.charAt(x.length-1),J=C.charAt(0),O=H.match(DDd),R=J.match(DDd),V=O&&H.match(EDd),
ca=R&&J.match(EDd);H=V&&H.match(FDd);J=ca&&J.match(FDd);x=H&&x.match(GDd);C=J&&C.match(HDd);return x||C?5:H||J?4:O&&!V&&ca?3:V||ca?2:O||R?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==0&&a[c+1][0]==0){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=vDd(d,e);if(g){var k=e.substring(e.length-g);d=d.substring(0,d.length-g);e=k+e.substring(0,e.length-g);f=k+f}g=d;k=e;for(var l=f,r=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var w=b(d,e)+b(e,f);w>=r&&(r=
w,g=d,k=e,l=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-1,1),c--),a[c][1]=k,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}},DDd=/[^a-zA-Z0-9]/,EDd=/\s/,FDd=/[\r\n]/,GDd=/\n\r?\n$/,HDd=/^\r?\n\r?\n/,xDd=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",g="",k;c<b.length;)switch(b[c][0]){case 1:e++;g+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:d+e>1?(d!==0&&e!==0&&(k=uDd(g,f),k!==0&&(c-d-e>0&&b[c-d-e-1][0]==0?b[c-d-e-1][1]+=g.substring(0,k):(b.splice(0,0,[0,g.substring(0,k)]),c++),g=g.substring(k),
f=f.substring(k)),k=vDd(g,f),k!==0&&(b[c][1]=g.substring(g.length-k)+b[c][1],g=g.substring(0,g.length-k),f=f.substring(0,f.length-k))),d===0?b.splice(c-e,d+e,[1,g]):e===0?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,g]),c=c-d-e+(d?1:0)+(e?1:0)+1):c!==0&&b[c-1][0]==0?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,g=f=""}b[b.length-1][1]===""&&b.pop();d=!1;for(c=1;c<b.length-1;)b[c-1][0]==0&&b[c+1][0]==0&&(b[c][1].substring(b[c][1].length-b[c-1][1].length)==b[c-1][1]?(b[c][1]=b[c-1][1]+b[c][1].substring(0,
b[c][1].length-b[c-1][1].length),b[c+1][1]=b[c-1][1]+b[c+1][1],b.splice(c-1,1),d=!0):b[c][1].substring(0,b[c+1][1].length)==b[c+1][1]&&(b[c-1][1]+=b[c+1][1],b[c][1]=b[c][1].substring(b[c+1][1].length)+b[c+1][1],b.splice(c+1,1),d=!0)),c++;d&&xDd(a,b)};var TY=function(){this.analytics=p(aQ);this.issueComments=p(nS);this.dialogManager=p(QA)};TY.prototype.show=function(a,b,c){var d=this,e;return y(function(f){if(d.dialog&&d.dialog.getState()!==2)return f.return();d.analytics.trackEvent("commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:IDd(d,a,b,c)};d.dialog=d.dialogManager.open(SY,{data:e,width:"50vw"});return f.return(ie(OA(d.dialog)))})};
var IDd=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=e.length>0?e[0].unlinkifiedComment:"",g=e.length>0?e[0].formattingMode:"",k=!1,l=[];e=m(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var w=mpb(r);w||k?(f=JDd(r.unlinkifiedComment),g=JDd(r.formattingMode)):(f=lpb(f,r.unlinkifiedComment),k=r.formattingMode,g=g===k?JDd(k):Dh([JDd(g,"diff-removed"),JDd(k,"diff-added")]));k=r.unlinkifiedComment===void 0?"":r.unlinkifiedComment;var x=r.version,C=r.commentContentVerdict;
l.push({unlinkifiedComment:k,lastEditorUser:r.lastEditorUser,version:x,formattingMode:r.formattingMode,formattingModeDiff:g,lastModified:Number(r.lastModified)/1E3,open:x<25,preview:k.length<=48?k:k.substring(0,45)+"...",diff:f,restricted:C&&C.piiVerdict&&C.piiVerdict.severity!=="NONE_DETECTED"||!1,deleted:mpb(r)});f=r.unlinkifiedComment;g=r.formattingMode;k=w}d>-1?l[d].open=!0:l[0].open=!0;return l})},JDd=function(a,b){return Eh("span",b?{"class":b}:void 0,a)};
TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275prov=Fc({token:TY,factory:TY.\u0275fac,providedIn:"root"});var UY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,UY.messageId)};Y(UY,W);UY.prototype.getUrl=function(){return vi(this,1,void 0,jb)};UY.prototype.setUrl=function(a){return pj(this,1,a,jb)};UY.prototype.hasUrl=function(){return im(this,1,jb)};UY.messageId="b.AttachmentUrlResponse";var VY=function(){this.executor=p(dO)};VY.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject(Error("uf"));var e={};d&&(e["X-Restricted-Content-Limit"]=String(TYa(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:UY}).then(function(f){return f.getUrl()})};VY.\u0275fac=function(a){return new (a||VY)};VY.\u0275prov=Fc({token:VY,factory:VY.\u0275fac,providedIn:"root"});var WY=function(){this.templateRef=p(eg);this.viewContainer=p(fg);this.activeSession=p(qu);this.isInternal=this.activeSession.isInternalSession()};WY.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};WY.\u0275fac=function(a){return new (a||WY)};WY.\u0275dir=df({type:WY,selectors:[["","internalOnly",""]],standalone:!1});var XY=function(){this.dialogRef=p(NA);this.data=p(PA);this.userAccess=p(yP);this.attachmentsUrl=p(VY);this.butterBar=p(QN);this.domSafe=p(iR);this.documentationLinks=p(YR);this.changeDetectorRef=p(YP,{self:!0});this.attachment=this.data.attachment;this.issueId=this.data.issueId;this.isLoading=!0;this.hasViewAccess=!1;this.download=this.data.download};XY.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
XY.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;opb(this)?(this.hasViewAccess=!1,zP(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)};XY.prototype.getRestrictionSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var opb=function(a){return(a=a.getRestrictionSeverity())?a!=="NONE_DETECTED":!1},KDd=function(a){var b=a.download&&yRa(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getRestrictionSeverity()).then(function(c){b?Skd(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};XY.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
XY.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};XY.\u0275fac=function(a){return new (a||XY)};
XY.\u0275cmp=D({type:XY,selectors:[["b-attachment-download-dialog"]],standalone:!1,features:[Gg([YP])],decls:20,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"gmat-body-2"],[1,"gmat-body-1"],[1,"download-attachment-icon"],["svgIcon","file-present","size","icon-l"],[1,"download-attachment-filename"],[4,"internalOnly"],["diameter","60",1,"centered-spinner"],["mat-dialog-actions",""],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",1,"dialog-primary-action",
3,"click","disabled"],["target","_blank","aria-label","Learn more about restricted access in Buganizer.",3,"href"],[1,"no-access-warning"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Access Attachment"),L(),K(2,"div",1)(3,"div",2),Q(4," Are you sure you would like to access the following attachment? "),L(),M(5,"br"),K(6,"div",3)(7,"div",4),M(8,"mat-icon",5),L(),K(9,"div",6),Q(10),L()(),M(11,"br"),E(12,ppb,2,1,"ng-container",7),F(13,qpb,3,0,"div",2),L(),F(14,rpb,1,0,"mat-spinner",8),K(15,"div",
9)(16,"button",10),N("click",function(){return b.close()}),Q(17," Cancel "),L(),K(18,"button",11),N("click",function(){return KDd(b)}),Q(19," Continue "),L()());a&2&&(B(10),S(" ",b.attachment.filename," "),B(3),G(b.isLoading||b.hasViewAccess?-1:13),B(),G(b.isLoading?14:-1),B(4),I("disabled",!b.hasViewAccess))},dependencies:[Dy,gB,cB,TA,VA,UA,jK,rI,WY],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 LDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LDd,W);h=LDd.prototype;h.getIssueId=function(){return pn(this,1)};h.getIssueId_asString=function(){return un(this,1)};h.setIssueId=function(a){return Ko(this,1,a)};h.getAttachmentId_asString=function(){return un(this,2)};h.setAttachmentId=function(a){return Ko(this,2,a)};h.getRestrictedRetention=function(){return xi(this,3)};h.setRestrictedRetention=function(a){return Im(this,3,a)};var MDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(MDd,W);MDd.prototype.getIt=function(){return X(this,LDd,4)};MDd.prototype.setIt=function(a){return Ni(this,LDd,4,a)};var YY=function(){this.executor=p(ZN)};YY.prototype.updateRetention=function(a,b,c){c=(new MDd).setIt((new LDd).setIssueId(a).setAttachmentId(Number(b)).setRestrictedRetention(xWa(c)));return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:c,responseConstructor:gS}).pipe(A(E7a))};YY.\u0275fac=function(a){return new (a||YY)};YY.\u0275prov=Fc({token:YY,factory:YY.\u0275fac,providedIn:"root"});var NDd;var ODd=Symbol("vf"),PDd=Symbol("wf"),QDd=Symbol("xf"),RDd=/^[a-z0-9-_]{6,30}$/,SDd="productID must match the expression: "+RDd;var at=Object.assign({},{REPORTING_ENABLED:!0,REPORTING_URL_PREFIX:"https://csp.withgoogle.com/csp/lcreport/",SCF_REPORTING_PRODUCTION_ID:"scf-rendered-content",SCF_REPORTING_TEST_ID:"scf-rendered-content-test",PRODUCT_IDS_ALLOWLIST:["looker-studio","careerscms","translate-web"],TEST_PRODUCT_IDS:["scf-demo","test-product"],CRASH_SAMPLE_RATE:1,HEARTBEAT_SAMPLE_RATE:.01,ENABLE_COLLECTING_NETWORK_INFO:!1}),tpb={};rw(ct,wpb);for(var TDd=[],UDd=0;UDd<63;UDd++)TDd[UDd]=0;var VDd=[].concat(128,TDd);ct.prototype.reset=function(){this.total_=this.inChunk_=0;this.hash_=ra.Int32Array?new Int32Array(this.initHashBlocks_):Ma(this.initHashBlocks_)};
var WDd=function(a){for(var b=a.chunk_,c=a.w_,d=0,e=0;e<b.length;)c[d++]=b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3],e=d*4;for(b=16;b<64;b++)d=c[b-15]|0,e=c[b-2]|0,c[b]=((c[b-16]|0)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.hash_[0]|0;d=a.hash_[1]|0;e=a.hash_[2]|0;for(var f=a.hash_[3]|0,g=a.hash_[4]|0,k=a.hash_[5]|0,l=a.hash_[6]|0,r=a.hash_[7]|0,w=0;w<64;w++){var x=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,C=(r+((g>>>6|g<<26)^
(g>>>11|g<<21)^(g>>>25|g<<7))|0)+(((g&k^~g&l)+(xpb[w]|0)|0)+(c[w]|0)|0)|0;r=l;l=k;k=g;g=f+C|0;f=e;e=d;d=b;b=C+x|0}a.hash_[0]=a.hash_[0]+b|0;a.hash_[1]=a.hash_[1]+d|0;a.hash_[2]=a.hash_[2]+e|0;a.hash_[3]=a.hash_[3]+f|0;a.hash_[4]=a.hash_[4]+g|0;a.hash_[5]=a.hash_[5]+k|0;a.hash_[6]=a.hash_[6]+l|0;a.hash_[7]=a.hash_[7]+r|0};
ct.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&&(WDd(this),d=0);else if(Na(a))for(;c<b;){var e=a[c++];if(!("number"==typeof e&&0<=e&&255>=e&&e==(e|0)))throw Error("Af");this.chunk_[d++]=e;d==this.blockSize&&(WDd(this),d=0)}else throw Error("Bf");this.inChunk_=d;this.total_+=b};
ct.prototype.digest=function(){var a=[],b=this.total_*8;this.inChunk_<56?this.update(VDd,56-this.inChunk_):this.update(VDd,this.blockSize-(this.inChunk_-56));for(var c=63;c>=56;c--)this.chunk_[c]=b&255,b/=256;WDd(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 ypb=[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],xpb;rw(Apb,ct);var zpb=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var Cpb=new TextEncoder,Dpb=Cpb.encode("$@#|").buffer;var XDd=["allow-same-origin","allow-scripts","allow-forms","allow-popups"],YDd=new TextEncoder,ZDd={},$Dd=function(){var a=this;this.productID="buganizer";this.shimOptions=void 0;this.renderCalled=!1;this.shimIframe=document.createElement("iframe");if(!RDd.test("buganizer"))throw Error(SDd);if(!Kpb())throw Error("Ef");ZDd.shimBlobUrlFactory!==void 0&&(this.shimBlobUrlFactory=ZDd.shimBlobUrlFactory);this.attachedPromise=new Promise(function(b){a.shimIframe.addEventListener("load",function(){b()},{once:!0});
a.shimIframe.addEventListener("error",function(){b()},{once:!0})})},aEd=function(a,b,c){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Ff");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);}})},cEd=function(a,b,c,d){y(function(e){return e.return(bEd(a,b,c,d))})},bEd=function(a,b,c,d,e){var f,
g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa,$a,pb,Xb,lc,ec,pc,sb,Ob,ib,Yb,rc;return y(function(Gc){switch(Gc.nextAddress){case 1:g=!((f=e)==null||!f.withoutSandbox);l=!((k=e)==null||!k.ignoreUrlFragment);if(a.renderCalled)throw Error("Gf");if(!g&&((r=a.shimOptions)==null?void 0:(w=r.pdfViewer)==null?void 0:w[QDd])!==void 0&&c.toLowerCase()==="application/pdf"&&b instanceof ArrayBuffer)return Gc.return(dEd(a,b,d,a.shimOptions.pdfViewer[QDd]));a.renderCalled=!0;H=(C=(x=a.shimOptions)==null?void 0:
x.sandbox)!=null?C:XDd;c.toLowerCase()==="application/pdf"||g||(a.shimIframe.sandbox.add.apply(a.shimIframe.sandbox,q(H)),a.shimIframe.sandbox.add("allow-scripts"),a.shimIframe.sandbox.add("allow-same-origin"));O=(J=a.shimOptions)==null?void 0:J.useSubtleCrypto;ca=(V=a.shimOptions)==null?void 0:V.enableBrowserCaching;ua=l?void 0:(oa=a.shimOptions)==null?void 0:oa.urlFragment;if(!ca){R=Gpb().buffer;Gc.jumpTo(2);break}if(ca===!0)return z(Gc,Fpb({useSubtleCrypto:O,parts:[b,location.pathname]}),7);if(typeof ca!==
"object"||!ca[PDd])throw Error("Hf");return z(Gc,Bpb(YDd.encode(ca[PDd]).buffer,O),6);case 6:R=Gc.yieldResult;Gc.jumpTo(2);break;case 7:R=Gc.yieldResult;case 2:return ka=window.origin,z(Gc,Ipb({product:a.productID,salt:R,useSubtleCrypto:O,trustedOrigin:ka,version:Number("827969114")}),8);case 8:Ga=Gc.yieldResult;ja=Jpb({trustedOrigin:ka,fileHash:Ga,version:"827969114",product:a.productID,cache:!!ca});ta=(new URL(ja)).origin;a.shimBlobUrlFactory!==void 0?(xa=a.shimBlobUrlFactory(ja),Sa=URL.createObjectURL(xa),
a.shimIframe.src=Sa,ta=(new URL(Sa)).origin):a.shimIframe.src=ja;(($a=a.shimOptions)==null?void 0:$a.useShadowDom)===ODd?(pb=document.createElement("safe-content-frame"),Xb=pb.attachShadow({mode:"open"}),a.shimIframe.part.add("shim-iframe"),Xb.appendChild(a.shimIframe),d.appendChild(pb)):d.appendChild(a.shimIframe);if(!spb(a.productID))return z(Gc,a.attachedPromise,10);lc=new Promise(function(Rb,Cc){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?Cc(Error("zf")):Cc(Error("Ff"))},
15E3)});Yd(Gc,11);return z(Gc,Promise.race([a.attachedPromise,lc]),13);case 13:bt(Gc,10);break;case 11:return ec=be(Gc),z(Gc,vpb(ec,a.productID,ta,"attachedPromise"),14);case 14:throw ec;case 10:pc=!1;Ob=new Promise(function(Rb){a.shimIframe.addEventListener("load",function(){pc=!0;Rb(sb)},{once:!0})});sb={sendMessage:function(Rb,Cc){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Ff");a.shimIframe.contentWindow.postMessage(Rb,ta,Cc)},origin:ta,fullyLoadedPromise:Ob,fullyLoadedPromiseWithTimeout:Lpb(Ob,
function(){return pc})};ib=aEd(a,{body:b,mimeType:c,salt:R,urlFragment:ua},ta);if(!spb(a.productID))return z(Gc,ib,17);Yb=new Promise(function(Rb,Cc){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?Cc(Error("zf")):Cc(Error("Ff"))},7E3)});Yd(Gc,18);return z(Gc,Promise.race([ib,Yb]),20);case 20:upb(a.productID,"heartbeat",ta);bt(Gc,17);break;case 18:return rc=be(Gc),z(Gc,vpb(rc,a.productID,ta,"sendShimMessagePromise"),21);case 21:throw rc;case 17:return Gc.return(sb)}})},dEd=
function(a,b,c,d){var e,f,g,k,l,r,w,x;return y(function(C){if(C.nextAddress==1)return f=(e=a.shimOptions)==null?void 0:e.urlFragment,g='<!DOCTYPE html><html><head><meta charset="utf-8">\n    <script>'+$Ea(NDd||(NDd=VZc('[null,null,null,null,null,"(function(){\'use strict\';let h\\u003d!1;function k(a){if(!a||typeof a!\\u003d\\u003d\\"object\\"\\u0026\\u0026typeof a!\\u003d\\u003d\\"function\\")throw Error(\\"Invalid PDF viewer message\\");const f\\u003da.action,d\\u003da.file,e\\u003da.filename;a\\u003da.urlFragment;if(typeof f!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(a!\\u003d\\u003dvoid 0\\u0026\\u0026typeof a!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(typeof e!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(!(d instanceof ArrayBuffer))throw Error(\\"Invalid PDF viewer message\\");return{action:f,file:d,filename:e,urlFragment:a}}\\nfunction m(a){const {action:f,file:d,filename:e,urlFragment:l}\\u003dk(a.data);if(a.source!\\u003d\\u003dwindow.parent)throw Error(\\"Only messages from parent are allowed\\");const g\\u003da.ports[0];if(f\\u003d\\u003d\\u003d\\"renderPdf\\"\\u0026\\u0026!h){if(d\\u003d\\u003d\\u003dvoid 0)throw Error(\\"Invalid PDF viewer message\\");a\\u003dURL.createObjectURL(new Blob([d],{type:\\"application/pdf\\"}));var b\\u003de\\u003d\\u003d\\u003d\\"__SCF_TEST_NO_PDF_SUPPORT__\\";if(b||navigator.pdfViewerEnabled\\u003d\\u003d\\u003d!1){const c\\u003ddocument.createElement(\\"a\\");c.href\\u003da;c.download\\u003db?\\"test.pdf\\":e.replace(/[^a-zA-Z0-9._-]/g,\\"_\\");c.textContent\\u003d\\n`Download ${c.download}`;c.style.cssText\\u003d\\"background-color: #1a73e8; color: white; text-decoration: none; padding: 10px 24px; border-radius: 4px;\\";document.body.style.cssText\\u003d\\"display: flex; justify-content: center; align-items: center; height: 100vh; font-family: sans-serif; margin: 0;\\";document.body.replaceChildren(c);g\\u0026\\u0026g.postMessage(\\"Native PDF viewer not supported\\")}else b\\u003ddocument.createElement(\\"iframe\\"),a\\u003dnew URL(a),l\\u0026\\u0026(a.hash\\u003dl),b.src\\u003da.href,b.style.cssText\\u003d\\"position:absolute; top:0; left:0; bottom:0; right:0; width:100vw; height:100vh; border:none; margin:0; padding:0; z-index:999999;\\",\\nb.onload\\u003d()\\u003d\\u003e{g\\u0026\\u0026g.postMessage(\\"Iframe with the PDF loaded\\")},document.body.replaceChildren(b);h\\u003d!0;window.removeEventListener(\\"message\\",m)}}window.addEventListener(\\"message\\",m);}).call(this);\\n"]')))+
"\x3c/script></head><body></body></html>",z(C,bEd(a,g,"text/html; charset=utf-8",c,{withoutSandbox:!0,ignoreUrlFragment:!0}),2);if(C.nextAddress!=3)return k=C.yieldResult,z(C,k.fullyLoadedPromiseWithTimeout(3E4),3);l=!1;r=new MessageChannel;x=new Promise(function(H){r.port1.onmessage=function(J){if(J.data==="Iframe with the PDF loaded"||J.data==="Native PDF viewer not supported")l=!0,H(w)}});w={sendMessage:k.sendMessage,origin:k.origin,fullyLoadedPromise:x,fullyLoadedPromiseWithTimeout:Lpb(x,function(){return l})};
k.sendMessage({action:"renderPdf",file:b,filename:d,urlFragment:f},[r.port2]);return C.return(w)})};var eEd=["attachmentContent"],ZY=function(){Z.apply(this,arguments);this.attachmentsApi=p(iS)};Y(ZY,Z);ZY.\u0275dir=Z.\u0275dir;ZY.prototype.ngOnInit=function(){fEd(this)};var fEd=function(a){a.subscriptions.add(mnd(a.attachmentsApi,a.issueId,a.attachmentId).subscribe(function(b){b&&cEd(new $Dd,b,a.mimeType,a.container.nativeElement)}))};ZY.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(ZY)))(b||ZY)}}();
ZY.\u0275cmp=D({type:ZY,selectors:[["attachment-preview"]],viewQuery:function(a,b){a&1&&hg(eEd,5);if(a&2){var c;lg(c=mg())&&(b.container=c.first)}},inputs:{issueId:"issueId",attachmentId:"attachmentId",mimeType:"mimeType"},standalone:!1,features:[Gf],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 $Y=function(){this.inlinedAttachmentSet=new Set};$Y.prototype.getCount=function(){return this.inlinedAttachmentSet.size};$Y.\u0275fac=function(a){return new (a||$Y)};$Y.\u0275prov=Fc({token:$Y,factory:$Y.\u0275fac,providedIn:"root"});var gEd=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new XP};gEd.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};gEd.\u0275fac=function(a){return new (a||gEd)};
gEd.\u0275cmp=D({type:gEd,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,Mpb,2,3,"span",0),F(1,Npb,2,3,"a",1));a&2&&(G(b.isGreyedOut||!b.linkEnabled?
0:-1),B(),G(!b.isGreyedOut&&b.linkEnabled?1:-1))},encapsulation:2,changeDetection:0});var aZ=function(){this.tooltipRegistry={}};aZ.prototype.showTooltip=function(a){return this.tooltipRegistry[a]?!1:this.tooltipRegistry[a]=!0};aZ.\u0275fac=function(a){return new (a||aZ)};aZ.\u0275prov=Fc({token:aZ,factory:aZ.\u0275fac,providedIn:"root"});var bZ=function(){Kz.apply(this,arguments)};Y(bZ,Kz);bZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(bZ)))(b||bZ)}}();bZ.\u0275dir=df({type:bZ,selectors:[["","expandable-tab-content",""]],standalone:!1,features:[Gf]});var cZ=function(){Kz.apply(this,arguments)};Y(cZ,Kz);cZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(cZ)))(b||cZ)}}();cZ.\u0275dir=df({type:cZ,selectors:[["","expandable-tab-header",""]],standalone:!1,features:[Gf]});
var dZ=function(){Kz.apply(this,arguments)};Y(dZ,Kz);dZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(dZ)))(b||dZ)}}();dZ.\u0275dir=df({type:dZ,selectors:[["","expandable-tab-icon",""]],standalone:!1,features:[Gf]});var eZ=function(){};eZ.prototype.ngOnInit=function(){};eZ.\u0275fac=function(a){return new (a||eZ)};
eZ.\u0275cmp=D({type:eZ,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(ig(c,cZ,5,eg),ig(c,bZ,5,eg),ig(c,dZ,5,eg));if(a&2){var d;lg(d=mg())&&(b.tabHeaderTemplate=d.first);lg(d=mg())&&(b.tabContentTemplate=d.first);lg(d=mg())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var Qpb=function(a){return{tab:a}},Zpb=function(a){return{allTabsExpanded:a}},lqb=function(){return[]},hEd=function(a,b){return b.key},fZ=function(){Z.apply(this,arguments);this.internalTabKeys$=new Nj([]);this.ariaLabel="";this.openTabCallback=function(){return y(function(a){return a.return(!0)})};this.openAllTabsCallback=function(){return y(function(a){return a.return(!0)})};this.expandableTabsTitle="";this.internalExpandedTabs=new XQ;this.showIcons=this.showMultiple=!0;this.visibleExpandedTabs$=
le([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(a){var b=m(a);a=b.next().value;var c=b.next().value;return a.filter(function(d){return c.has(d)})}));this.expandedTabsChanged=new XP;this.contentShownChanged=new XP;this.showAllClicked=new XP;this.tabs$=new Nj([]);this.allTabsExpanded$=le([this.tabs$,this.internalExpandedTabs.value$]).pipe(A(function(a){var b=m(a);a=b.next().value;var c=b.next().value;return a.every(function(d){return c.has(d.key)})}))};Y(fZ,Z);
fZ.\u0275dir=Z.\u0275dir;
fZ.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(zf(void 0),A(function(){return a.internalTabs.toArray()}),A(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),Af(function(b){return le([ee(b),a.internalTabKeys$])}),A(function(b){b=m(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(le([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return iRa(new Set(b),new Set(c))}),pf(mm)).subscribe(function(b){a.contentShownChanged.emit(b)}))};fZ.prototype.ngOnInit=function(){};
var Wpb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return(c=a.internalExpandedTabs.has(b))?(a.internalExpandedTabs.delete(b),d.jumpTo(2)):z(d,a.openTabCallback(b),3);if(d.nextAddress!=2){if(!d.yieldResult)return d.return();a.showMultiple||a.internalExpandedTabs.clear();a.internalExpandedTabs.add(b)}a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ce(d)})};
fZ.prototype.showAll=function(){var a=this;return y(function(b){if(b.nextAddress==1)return z(b,a.openAllTabsCallback(a.tabKeys),2);if(!b.yieldResult)return b.return();a.internalExpandedTabs.add.apply(a.internalExpandedTabs,q(a.tabs$.value.map(function(c){return c.key})));a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ce(b)})};fZ.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
fZ.prototype.toggleAll=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.allTabsExpanded$),2);if(c.nextAddress!=4)return(b=c.yieldResult)?(a.hideAll(),c.jumpTo(0)):z(c,a.showAll(),4);a.showAllClicked.emit(void 0);ce(c)})};
da.Object.defineProperties(fZ.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(q(a)))},get:function(){return this.internalTabKeys$.value}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){if(!this.showMultiple&&a.length>1)throw Error("If");this.internalExpandedTabs.reset(a)},get:function(){return[].concat(q(this.internalExpandedTabs))}}});fZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(fZ)))(b||fZ)}}();
fZ.\u0275cmp=D({type:fZ,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&ig(c,eZ,5);if(a&2){var d;lg(d=mg())&&(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:[Gf],decls:15,vars:7,consts:[["headerText",""],["spacer",""],[1,"tabs-row","flex-kids-x"],[1,"expandable-tabs-title"],["role","tablist","aria-multiselectable","true",1,"expandable-tabs","flex-kids-x"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"has-icon","expanded"],[1,"margin-left-auto","shrink-0"],[1,"expandable-tabs-contents"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"click"],["svgIcon",
"done",1,"icon-s"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"small",3,"expandable-tabs-hide-all","expandable-tabs-show-all"],["type","button","mat-button","",1,"small",3,"click"],["type","button","mat-button","",1,"small","expandable-tabs-hide-all"],["type","button","mat-button","",1,"small","expandable-tabs-show-all",3,"click"],["iconPositionEnd","","svgIcon","arrow_outward_24px",1,"icon-s"],["type","button","mat-button","",1,"small",
"expandable-tabs-hide-all",3,"click"],["role","tabpanel",3,"class","id"],["role","tabpanel",3,"id"],[1,"spacer"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,Opb,2,2,"span",3),K(2,"div",4),Of(3,Xpb,9,21,"button",5,hEd),T(5,"async"),L(),K(6,"div",6),F(7,$pb,2,5)(8,bqb,5,4),L()(),K(9,"div",7),Of(10,nqb,2,3,null,null,hEd),T(12,"async"),L(),E(13,sqb,2,1,"ng-template",null,0,Mg));a&2&&(B(),G(b.expandableTabsTitle?1:-1),B(),Kf("aria-label",b.ariaLabel),B(),Pf(U(5,3,b.tabs$)),B(4),G(b.showMultiple?7:8),
B(3),Pf(U(12,5,b.tabs$)))},dependencies:[Kx,Dy,gB,cB,Lx],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:4px 12px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.has-icon[_ngcontent-%COMP%]{padding-left:8px}.expandable-tab.expanded[_ngcontent-%COMP%]{color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);border-color:transparent}.expandable-tab[_ngcontent-%COMP%]:hover{-webkit-filter:brightness(95%);filter:brightness(95%)}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button{line-height:unset;height:auto}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button .mat-icon{margin-right:4px}.expandable-tabs.flex-kids-x[_ngcontent-%COMP%]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.expandable-tabs-title[_ngcontent-%COMP%]{margin-right:8px}.expandable-tab-content[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.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 iEd={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 gZ=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new Ui;this.action=new Ui;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=iEd;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)};gZ.prototype.ngAfterContentInit=function(){Ny(this.focusTrap);this.setPreviouslyFocusedElement();JCc(this.focusTrap)};
gZ.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
gZ.prototype.dismissTooltip=function(){this.dismiss.next();this.previouslyFocusedElement&&"focus"in this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0});this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement)};da.Object.defineProperties(gZ.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+a*64}}});
gZ.\u0275fac=function(a){return new (a||gZ)(Ye(Sh),Ye(ez),Ye(Jd))};
gZ.\u0275cmp=D({type:gZ,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&wg("pointer-top-left",b.pointerPosition===b.Position.TOP_LEFT)("pointer-top-right",b.pointerPosition===b.Position.TOP_RIGHT)("pointer-bottom-left",b.pointerPosition===b.Position.BOTTOM_LEFT)("pointer-bottom-right",b.pointerPosition===b.Position.BOTTOM_RIGHT)("pointer-left-top",b.pointerPosition===b.Position.LEFT_TOP)("pointer-left-bottom",b.pointerPosition===b.Position.LEFT_BOTTOM)("pointer-right-top",
b.pointerPosition===b.Position.RIGHT_TOP)("pointer-right-bottom",b.pointerPosition===b.Position.RIGHT_BOTTOM)},inputs:{pointerPosition:"pointerPosition",widthOffset:"widthOffset",color:"color",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",action:"action"},standalone:!1,features:[Gg([{provide:SCc,useValue:{preventFocus:function(){},allowFocus:function(){}}},ez])],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&&(cg(),K(0,"div",0)(1,"div",1),M(2,"div",2),L(),dg(3),K(4,
"div",3),E(5,uqb,4,2,"button",4),K(6,"button",5),N("click",function(){return b.dismissTooltip()}),Q(7," Got it "),L()()());a&2&&(vg("width",b.width,"px"),I("ngClass",b.color),B(5),I("ngIf",b.actionBtnText),B(),I("color",b.color==="white"?"primary":""))},dependencies:[Qy,Dx,Fx,zI,Dy],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 hZ=function(){};hZ.\u0275fac=function(a){return new (a||hZ)};hZ.\u0275mod=cf({type:hZ});hZ.\u0275inj=Hc({});var iZ=function(){this.anchorMap=new Map},jEd=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new wf(1),destroyed$:new sf,dismissTooltip$:new sf};a.anchorMap.set(b,c);return c},kEd=function(a,b,c){jEd(a,b).created$.next(c)},lEd=function(a,b){jEd(a,b).destroyed$.next();jEd(a,b).created$.next(void 0)};iZ.prototype.dismissTooltip=function(){jEd(this).dismissTooltip$.next()};iZ.\u0275fac=function(a){return new (a||iZ)};iZ.\u0275prov=Fc({token:iZ,factory:iZ.\u0275fac,providedIn:hZ});var jZ={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}}},mEd=[jZ.TOP_CENTER_RIGHT,jZ.TOP_CENTER_LEFT,jZ.BOTTOM_CENTER_RIGHT,jZ.BOTTOM_CENTER_LEFT],nEd=[jZ.TOP_LEFT,jZ.TOP_RIGHT,jZ.BOTTOM_LEFT,jZ.BOTTOM_RIGHT],oEd=[jZ.LEFT_CENTER_BOTTOM,jZ.LEFT_CENTER_TOP,jZ.RIGHT_CENTER_BOTTOM,jZ.RIGHT_CENTER_TOP],pEd=[jZ.LEFT_TOP,jZ.LEFT_BOTTOM,jZ.RIGHT_TOP,jZ.RIGHT_BOTTOM];var kZ=function(){};kZ.\u0275fac=function(a){return new (a||kZ)};kZ.\u0275mod=cf({type:kZ});kZ.\u0275inj=Hc({});var qEd=function(){},sEd=function(a,b){return rEd(a,b).map(function(c){return c.connectedPosition})},tEd=function(a,b,c){a=rEd(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("Jf`"+JSON.stringify(c));return a.pointerPosition},rEd=function(a,b){b=uEd(b).filter(function(c){return!a.includes(c)});return a.concat(b)},uEd=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?mEd:nEd).concat(a!==void 0&&a<60?oEd:pEd)};qEd.\u0275fac=function(a){return new (a||qEd)};qEd.\u0275prov=Fc({token:qEd,factory:qEd.\u0275fac,providedIn:kZ});var vEd=["template"],lZ=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 sf;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new Ui;this.beforeShown=new Ui;this.action=new Ui;this.pointerPosition=0;this.destroyed$=new wf;this.init$=new wf;this.savedAnchorStyles={zIndex:"",position:""};this.hideFeatureTooltip=function(){f.overlayRef&&
f.hasBackdrop&&f.anchor&&(f.anchor.nativeElement.style.position=f.savedAnchorStyles.position,f.anchor.nativeElement.style.zIndex=f.savedAnchorStyles.zIndex);var g;(g=f.overlayRef)==null||g.dispose();f.overlayRef=void 0}};lZ.prototype.ngOnChanges=function(a){if(a.customPositions){var b;(b=this.overlayRef)==null||tDc(b,wEd(this))}};
lZ.prototype.ngOnInit=function(){var a=jEd(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;xEd(this,a.created$);b.pipe(Bf(this.destroyed$)).subscribe(this.hideFeatureTooltip);yEd(this,c)};lZ.prototype.ngAfterViewInit=function(){this.init$.next()};lZ.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var xEd=function(a,b){a.open$.pipe(Bla(a.init$),Cf(function(){a.beforeShown.emit()}),Af(function(){return b.pipe(Bf(a.dismiss))}),Bf(a.destroyed$),we(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.showFeatureTooltip(c)})},yEd=function(a,b){b.pipe(Bf(a.destroyed$),we(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};
lZ.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:wEd(this),scrollStrategy:this.getScrollStrategy(),minWidth:"fit-content",hasBackdrop:this.hasBackdrop});var d;(d=this.overlayRef)==null||d.attach(new Iz(this.templateRef,this.containerRef))};
lZ.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};lZ.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("Kf");return zz(Fz(this.overlay.position(),this.anchor),sEd(this.customPositions,this.anchor))};
var wEd=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=tEd(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};lZ.prototype.isVisible=function(){return!!this.overlayRef};lZ.\u0275fac=function(a){return new (a||lZ)(Ye(iZ),Ye(Nz),Ye(fg),Ye(Rg),Ye(ux),Ye(qEd))};
lZ.\u0275cmp=D({type:lZ,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&hg(vEd,5);if(a&2){var c;lg(c=mg())&&(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:[bx],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"action","dismiss","actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset"]],template:function(a){a&1&&(cg(),E(0,vqb,2,5,"ng-template",null,0,Mg))},dependencies:[gZ],encapsulation:2,changeDetection:0});var mZ=function(){};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275mod=cf({type:mZ});mZ.\u0275inj=Hc({});var nZ=function(){this.observedValues=new Map};nZ.prototype.getValue=function(a){a=window.localStorage.getItem(a);return ee(a?JSON.parse(a):null)};nZ.prototype.getValues=function(a){return ee(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))};nZ.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));var c;(c=this.observedValues.get(a))==null||c.set(b);return ee(void 0)};
nZ.\u0275fac=function(a){return new (a||nZ)};nZ.\u0275prov=Fc({token:nZ,factory:nZ.\u0275fac,providedIn:"root"});var zEd=new fd("Feature Tooltip Controller Config"),oZ=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(KK):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"},AEd=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(A(function(b){return b===
null?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};oZ.prototype.hideTooltip=function(a){var b;(b=this.clientStreamzService)==null||y9c(b,this.config.hiddenMetricName,!0);qe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(BEd(this,a),"HIDDEN")]).pipe(mf())};
var CEd=function(a,b){a.keyValueStore.getValue(BEd(a,b)).pipe(we(function(c){return c!=="SHOWING"})).subscribe(function(){a.keyValueStore.setValue(BEd(a,b),"HIDDEN")})},EEd=function(a,b,c){var d=c.map(function(e){return BEd(a,e)});return a.keyValueStore.getValues(d).pipe(A(function(e){return DEd(a,b,c,e)}))};
oZ.prototype.showTooltip=function(a){var b;(b=this.clientStreamzService)==null||y9c(b,this.config.shownMetricName,!0);return qe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(BEd(this,a),"SHOWING")]).pipe(mf())};var DEd=function(a,b,c,d){return c.filter(function(e){e=d.get(BEd(a,e));return e===b||b==="UNSEEN"&&e===null})},BEd=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
oZ.\u0275fac=function(a){return new (a||oZ)($c(zEd),$c(nZ),$c(Ae))};oZ.\u0275prov=Fc({token:oZ,factory:oZ.\u0275fac,providedIn:mZ});var pZ=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=ee(void 0);this.destroyed$=new wf;this.getCurrentlyShowingTooltips=function(){return EEd(b.featureTooltipService,"SHOWING",FEd(b))}};
pZ.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(Af(this.getCurrentlyShowingTooltips),Af(function(c){return c.length>0?ee(c[0]):ee(void 0).pipe(GEd(a),HEd(a))}),A(function(c){return IEd(a,c)}),we(function(c){return!!c}),A(function(c){return c}),xf({bufferSize:1,refCount:!0}));JEd(this,b);b.pipe(Bf(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};pZ.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var GEd=function(a){return Ud(Af(function(){return AEd(a.featureTooltipService)}),we(Td))},HEd=function(a){return Ud(Af(function(){return EEd(a.featureTooltipService,"UNSEEN",FEd(a))}),we(function(b){return b.length>0}),A(function(b){return b[0]}))},JEd=function(a,b){b.pipe(Af(function(c){return c.dismiss.pipe(mf(c.tooltipId))}),Bf(a.destroyed$)).subscribe(function(c){a.featureTooltipService.hideTooltip(c)})},FEd=function(a){return a.tooltips.map(function(b){return b.tooltipId})},IEd=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===
b})};pZ.\u0275fac=function(a){return new (a||pZ)(Ye(oZ))};pZ.\u0275cmp=D({type:pZ,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&ig(c,lZ,4);if(a&2){var d;lg(d=mg())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var qZ=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};qZ.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){m(b).next().value.isIntersecting?kEd(a.anchorService,a.tooltipId,a.element):lEd(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):kEd(this.anchorService,this.tooltipId,this.element)};
qZ.prototype.ngOnDestroy=function(){lEd(this.anchorService,this.tooltipId);var a;(a=this.intersectionObserver)==null||a.disconnect()};qZ.\u0275fac=function(a){return new (a||qZ)(Ye(iZ),Ye(Jd))};qZ.\u0275dir=df({type:qZ,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:[0,"onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"},standalone:!1});var rZ=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){CEd(d.featureTooltipService,d.tooltipId)}};rZ.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};rZ.prototype.ngOnDestroy=function(){var a;(a=this.unsubscribeFromEvent)==null||a.call(this)};
da.Object.defineProperties(rZ.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)}}});rZ.\u0275fac=function(a){return new (a||rZ)(Ye(oZ),Ye(di),Ye(Jd))};
rZ.\u0275dir=df({type:rZ,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:[0,"onedevTooltipPreventer","tooltipId"],event:[0,"onedevPreventTooltipOn","event"]},standalone:!1});var KEd=new fd("TooltipAnchor"),LEd=new fd("TooltipPeventer"),sZ=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)};sZ.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
sZ.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};da.Object.defineProperties(sZ.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}}});
sZ.\u0275fac=function(a){return new (a||sZ)(Ye(oZ),Ye(iZ),Ye(Jd),Ye(di),Ye(KEd),Ye(LEd))};sZ.\u0275dir=df({type:sZ,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:[0,"onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:[0,"onedevPreventTooltipOn","event"]},standalone:!1,features:[Gg([{provide:KEd,useValue:qZ},{provide:LEd,useValue:rZ}])]});var MEd=function(){this.className="gmat-subtitle-1 tooltip-title"};MEd.\u0275fac=function(a){return new (a||MEd)};MEd.\u0275dir=df({type:MEd,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.className)},standalone:!1});var wqb=function(a,b){return[a,b]},tZ=function(){Z.apply(this,arguments);this.analytics=p(aQ);this.enrichmentApi=p(uO);this.enrichmentCategoryFridge=p(rP);this.attachmentEnrichmentFridge=p(vO);this.issueUserEventsService=p(fW);this.confirmationDialogService=p(ZR);this.destroyRef=p(Ee);this.issuePermissionService=p(WQ);this.documentationLinks=p(YR);this.canDeleteEnrichments$=new Nj(!1);this.enrichmentCategoryToContent=new Map;this.enrichmentCategoryToLoading=new Map;this.restrictedDialogContentHtml=
Bh("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=Eh("a",{href:yh(this.documentationLinks.getRestrictedAccessHelpLink()),target:"_blank"},"Learn More");this.restrictedDialogHtml=Ch([this.restrictedDialogContentHtml,this.requiredDialogLearnMoreHtml]);this.openTabs=new Set;this.categoryToRestriction=new Map;this.cdr=
p(YP);this.featureTooltipRegistry=p(aZ);this.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID="attachmentEnrichmentsFeatureTooltip";this.TOOLTIP_POSITIONS=jZ;this.showFeatureTooltip=this.featureTooltipRegistry.showTooltip("attachmentEnrichmentsFeatureTooltip");this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new HK,{position:[O8c]});this.someEnrichmentsRestricted=!1;this.categoryToActionMenuItems=new Map;this.hasReactedToEnrichment={};this.thumbsUpClickedForEnrichment={};this.thumbsDownClickedForEnrichment=
{}};Y(tZ,Z);tZ.\u0275dir=Z.\u0275dir;h=tZ.prototype;
h.ngOnInit=function(){var a=this;this.enrichmentCategoryToContent.clear();this.attachmentEnrichments.forEach(function(b){var c,d,e;a.categoryToRestriction.set(b.category,(e=(c=b.contentVerdict)==null?void 0:(d=c.piiVerdict)==null?void 0:d.severity)!=null?e:"NONE_DETECTED");var f,g;((f=b.contentVerdict)==null?void 0:(g=f.piiVerdict)==null?void 0:g.severity)!=="NONE_DETECTED"?a.someEnrichmentsRestricted=!0:a.enrichmentCategoryToContent.set(b.category,{content:b.content,formattedContent:b.formattedContent})});
this.issuePermissionService.hasAclToAdmin$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.canDeleteEnrichments$.next(b);a.initializeMenuItems()})};h.initializeMenuItems=function(){var a=this;this.attachmentEnrichments.forEach(function(b){var c=[];a.canDeleteEnrichments$.value&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(b.category)},label:"Delete enrichment..."});a.categoryToActionMenuItems.set(b.category,c)})};
h.showDeleteAttachmentDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete Enrichment",content:Bh("You are about to delete enrichment "+a+" on attachment "+this.attachmentId+". This action cannot be undone."),onConfirm:function(){Eed(b.enrichmentApi,b.issueId,b.attachmentId,a).pipe(Uj(b.destroyRef)).subscribe(function(){b.logIssueUserEvent(b.issueId,"EVENT_TYPE_DELETE",b.attachmentId,a,"DELETE");b.attachmentEnrichmentFridge.poke(b.issueId)})}})};
h.openAllTabsCallback=function(a){var b=this,c;return y(function(d){if(!b.someEnrichmentsRestricted||a.every(function(e){return b.enrichmentCategoryToContent.has(e)}))return d.return(!0);c=ro();b.confirmationDialogService.open({title:"Access Enrichment",content:b.restrictedDialogHtml,onConfirm:function(){a.forEach(function(e){b.categoryToRestriction.get(e)!=="NONE_DETECTED"&&NEd(b,e)});c.resolve(!0)},onDismiss:function(){c.resolve(!1)}});return d.return(c.promise)})};
h.openTabCallback=function(a){var b=this;return y(function(c){return b.categoryToRestriction.get(a)==="NONE_DETECTED"?c.return(!0):c.return(b.openAllTabsCallback([a]))})};
var NEd=function(a,b){a.enrichmentCategoryToLoading.set(b,!0);Ced(a.enrichmentApi,a.issueId,a.attachmentId,b,a.categoryToRestriction.get(b)).pipe(Uj(a.destroyRef)).subscribe(function(c){a.enrichmentCategoryToContent.set(b,{content:c.content,formattedContent:c.formattedContent});a.enrichmentCategoryToLoading.set(b,!1);a.cdr.detectChanges()})},OEd=function(a,b){[].concat(q(b)).filter(function(c){return!a.openTabs.has(c)}).forEach(function(c){a.openTabs.add(c);a.trackEvent("open",a.issueId+"_"+a.attachmentId+
"_"+c);a.logIssueUserEvent(a.issueId,"EVENT_TYPE_OPEN",a.attachmentId,c,"OPEN")});[].concat(q(a.openTabs)).filter(function(c){return!b.has(c)}).forEach(function(c){a.openTabs.delete(c);a.trackEvent("close",a.issueId+"_"+a.attachmentId+"_"+c);a.logIssueUserEvent(a.issueId,"EVENT_TYPE_CLOSE",a.attachmentId,c,"CLOSE")})};h=tZ.prototype;h.isLoading=function(a){var b;return(b=this.enrichmentCategoryToLoading.get(a))!=null?b:!1};
h.copyContent=function(a){var b,c=(b=this.enrichmentCategoryToContent.get(a.category))==null?void 0:b.content;c&&(navigator.clipboard.writeText(c),this.trackEvent("copy",Jqb(a)),this.logIssueUserEvent(a.issueId,"EVENT_TYPE_COPY",a.attachmentId,a.category,"COPY"))};h.hasReacted=function(a){return this.hasReactedToEnrichment[a.category]?this.hasReactedToEnrichment[a.category]:!1};
h.thumbsUpClicked=function(a){return this.thumbsUpClickedForEnrichment[a.category]?this.thumbsUpClickedForEnrichment[a.category]:!1};h.thumbsDownClicked=function(a){return this.thumbsDownClickedForEnrichment[a.category]?this.thumbsDownClickedForEnrichment[a.category]:!1};
h.trackThumbsUp=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsUpClickedForEnrichment[a.category]=!0;this.trackEvent("accept",Jqb(a));this.logIssueUserEvent(a.issueId,"EVENT_TYPE_THUMBS_UP",a.attachmentId,a.category,"THUMBS_UP")};h.trackThumbsDown=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsDownClickedForEnrichment[a.category]=!0;this.trackEvent("reject",Jqb(a));this.logIssueUserEvent(a.issueId,"EVENT_TYPE_THUMBS_DOWN",a.attachmentId,a.category,"THUMBS_DOWN")};
h.logIssueUserEvent=function(a,b,c,d,e){e={issueId:a,attachmentId:c,category:d,feedbackType:e};var f=this.issueUserEventsService,g=new eW;c=(new bvd).setAttachmentId(c).setCategory(d);c=Yo(g,4,fvd,c);f.logIssueUserEvent(a,"FEATURE_ATTACHMENT_ANALYSIS",b,c).pipe(Uj(this.destroyRef)).subscribe();this.enrichmentApi.submitEnrichmentFeedback(e).pipe(Uj(this.destroyRef)).subscribe()};h.trackEvent=function(a,b){this.analytics.trackEvent("attachmentEnrichment",a,b)};
var PEd=function(a){return a.attachmentEnrichments.map(function(b){return b.category})},yqb=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d;return(d=c==null?void 0:c.displayName)!=null?d:b}),zf(b))},Gqb=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d;return(d=c==null?void 0:c.description)!=null?d:""}),zf(""))};tZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(tZ)))(b||tZ)}}();
tZ.\u0275cmp=D({type:tZ,selectors:[["b-attachment-enrichments"]],inputs:{issueId:"issueId",attachmentId:"attachmentId",attachmentEnrichments:"attachmentEnrichments"},standalone:!1,features:[Gg([YP]),Gf],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,xqb,5,5,"onedev-feature-tooltip-controller"),K(1,"div",1)(2,"expandable-tabs",2),N("expandedTabsChanged",function(c){return OEd(b,c)}),Of(3,Iqb,3,2,"expandable-tab",3,Nf),L()());a&2&&(G(b.showFeatureTooltip?0:-1),B(),I("onedevFeatureTooltip",
b.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",!0),B(),I("tabKeys",PEd(b))("ariaLabel","Attachment enrichments for attachment id "+b.attachmentId)("openTabCallback",b.openTabCallback.bind(b))("openAllTabsCallback",b.openAllTabsCallback.bind(b)),B(),Pf(b.attachmentEnrichments))},dependencies:[Dy,QY,gR,jT,kT,sV,eZ,bZ,cZ,fZ,gB,eB,oK,iA,DK,LK,lZ,pZ,sZ,MEd,$U,$T,Lx],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 uZ=function(){this.documentationLinks=p(YR);this.dateFormatter=p(qS);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=kcd;this.label="Restricted";this.contentType="item"};uZ.prototype.getIcon=function(){return QEd(this)?"delete-alert":"delete-clock"};uZ.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?eUa(Math.floor(this.retentionState.retentionPeriod.seconds*1E3/864E5)):""};
var Lqb=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date(ao(a.retentionState.scheduledDeletionTime)||b):b},QEd=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?ao(a.retentionState.scheduledDeletionTime)-Date.now()<12096E5:!1};uZ.\u0275fac=function(a){return new (a||uZ)};
uZ.\u0275cmp=D({type:uZ,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();
K(0,"xap-bubble",2,0)(2,"div",3);N("focus",function(){u(c);var d=qg(1);return v(d.toggle(!0))})("blur",function(){u(c);var d=qg(1);return v(d.toggle(!1))});M(3,"mat-icon",4);Q(4);L();E(5,Sqb,8,4,"ng-template",null,1,Mg);L()}a&2&&(a=qg(6),I("panelTemplate",a),B(2),wg("warning",QEd(b)),B(),I("svgIcon",b.getIcon()),B(),S(" ",b.label," "))},dependencies:[Dy,RV,Ox],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 Uqb=uh(""),REd=function(){this.port=this.iframe=null;this.deferredMessages=[]};REd.prototype.load=function(){var a=this,b=SEd();this.iframe=Vqb(b);TEd().then(function(){a.iframe&&document.body.appendChild(a.iframe)});return Tqb(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)})};
REd.prototype.exec=function(a,b){var c=this;return new Promise(function(d,e){var f=new MessageChannel;f.port1.onmessage=function(x){f.port1.onmessage=null;x=x.data;x.error!=null?e(new EvalError(x.error)):d(x.result)};for(var g=[],k=[],l=[],r=m(b!=null?b:[]),w=r.next();!w.done;w=r.next())w=w.value,g.push(w.name),k.push(w.value),w.transfer&&l.push(w.value);g={code:a,paramNames:g,values:k};c.port?c.port.postMessage(g,[f.port2].concat(q(l))):c.deferredMessages.push({data:g,transferables:[f.port2].concat(q(l))})})};
REd.prototype.dispose=function(){this.iframe!=null&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)};var SEd=function(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")},TEd=function(){return new Promise(function(a){document.readyState!="loading"?a():FB(document,"DOMContentLoaded",function(){a()})})};var UEd={useFilePicker:!1},VEd,vZ=function(a){this.options=a=a===void 0?UEd:a;WEd(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new REd)};vZ.download=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?UEd:d;return y(function(e){if(e.nextAddress==1)return z(e,XEd(a,b,c,d),2);if(e.yieldResult)return e.return();VEd||(VEd=new vZ,VEd.init());return z(e,YEd(VEd,a,b,c),0)})};
vZ.prototype.init=function(){var a=this;return y(function(b){return a.sandbox==null?b.return():z(b,a.sandbox.load(),0)})};vZ.prototype.download=function(a,b,c){c=c===void 0?"":c;var d=this;return y(function(e){return e.nextAddress==1?z(e,XEd(a,b,c,d.options),2):e.yieldResult?e.return():z(e,YEd(d,a,b,c),0)})};
var YEd=function(a,b,c,d){d=d===void 0?"":d;var e,f;return y(function(g){switch(g.nextAddress){case 1:e=b instanceof Blob?b:new Blob([b],{type:d});if(typeof navigator.msSaveOrOpenBlob!=="function"){g.jumpTo(2);break}navigator.msSaveOrOpenBlob(e,c);return z(g,Wqb(),3);case 3:return g.return();case 2:if(!Fa()||$aa(pba(),16)>=0||!fba()&&(!Da("iPad")&&!Da("iPhone")||gba()||fba()||(Ea()?0:Da("Coast"))||eba()||!Da("AppleWebKit"))){g.jumpTo(4);break}f=new FileReader;f.onload=function(){var k=Ws(document,
"A"),l=yh(String(f.result));$ra(k,l);k.download=c;k.click()};f.readAsDataURL(e);return z(g,Wqb(),5);case 5:return g.return();case 4:return a.sandbox==null&&(a.sandbox=new REd,a.sandbox.load()),z(g,a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',
[{name:"blob",value:e,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return z(g,Wqb(),0)}})},XEd=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?UEd:d;var e;return y(function(f){switch(f.nextAddress){case 1:if(!WEd(d))return f.return(!1);Yd(f,2);return z(f,ZEd(a,b,c),4);case 4:bt(f,3);break;case 2:e=be(f);if(e instanceof DOMException&&e.name==="SecurityError")return f.return(!1);throw e;case 3:return f.return(!0)}})},WEd=function(a){a=a===void 0?UEd:a;return a.useFilePicker&&!!window.showSaveFilePicker},
ZEd=function(a,b,c){c=c===void 0?"":c;var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var l={suggestedName:b},r;(r=b.match(/\..+$/))?(r=r[0],r=r.length>16?null:r):r=null;if(r){var w={},x=c;x=x.replace(/;[^]*/,"");l.types=[{description:"*"+r,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(x)?x:"*/*"]=[r],w)}]}d=l;Yd(k,2);return z(k,window.showSaveFilePicker(d),4);case 4:e=k.yieldResult;bt(k,3);break;case 2:f=be(k);if(f instanceof DOMException&&f.name==="AbortError")return k.return();
throw f;case 3:return z(k,e.createWritable(),5);case 5:return g=k.yieldResult,$d(k,6),z(k,g.write(a),6);case 6:return Zd(k),z(k,g.close(),9);case 9:ae(k,7);break;case 7:return k.return()}})};vZ.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};qw("SafeDownloader",vZ);var wZ=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(qu);this.documentationLinks=p(YR);this.domSafe=p(iR);this.matDialogService=p(QA);this.attachmentService=p(YY);this.cdr=p(YP,{self:!0});this.differs=p(yx);this.paths=p(mW);this.userAccess=p(yP);this.butterBar=p(QN);this.errorHandler=p(kO);this.analytics=p(aQ);this.clipboard=p(kR);this.issueCommentDialogsService=p(yY);this.issuePermissionService=p(WQ);this.editIssueService=p(DS);this.snackBar=p(nB);this.trackerHelpers=p(fS);this.attachmentCountService=
p($Y);this.attachmentsApi=p(iS);this.attachmentEnrichmentFridge=p(vO);this.routeParams=p(rS);this.attachmentEnrichments$=pe(function(){return a.activeSession.isInternalSession()?a.attachmentEnrichmentFridge.watch(a.issueId):ee(void 0)}).pipe(A(function(b){return(b==null?void 0:b.enrichments.filter(function(c){var d,e;return c.attachmentId===((d=a.attachment)==null?void 0:(e=d.attachmentId)==null?void 0:e.toString())}))||[]}));this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1;this.enableInactiveUserContent=this.activeSession.getFlag("enableInactiveUserContent");this.enableInlineImageAttachments=this.activeSession.getFlag("enableInlineImageAttachments");this.canDeleteAttachment$=new Nj(!1);this.canUndeleteAttachment$=new Nj(!1)};Y(wZ,Z);wZ.\u0275dir=Z.\u0275dir;h=wZ.prototype;
h.ngOnInit=function(){var a=this;this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var b;this.attachmentRetentionOverride=(b=this.attachment)==null?void 0:b.piiRetention;this.initializeMenuItems();$Ed(this);this.issuePermissionService.canDeleteAttachment$(this.attachment,this.attachmentUploader).pipe(Bf(this.destroyed$)).subscribe(function(c){a.canDeleteAttachment$.next(c);a.initializeMenuItems()});this.issuePermissionService.canUndeleteAttachment$(this.attachment,
this.attachmentUploader).pipe(Bf(this.destroyed$)).subscribe(function(c){a.canUndeleteAttachment$.next(c);a.initializeMenuItems()});this.destroyed$.subscribe(function(){var c;((c=a.attachment)==null?0:c.attachmentId)&&a.attachmentCountService.inlinedAttachmentSet.delete(a.attachment.attachmentId)})};h.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&this.initializeMenuItems()};
h.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
h.initializeMenuItems=function(){var a=this;this.actionMenuItems=[];var b;if((b=this.attachment)==null?0:b.attachmentId)this.canDeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."}),this.canUndeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){sod(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});this.actionMenuItems.push({type:"action",action:function(){nCd(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";mCd(a.issueCommentDialogsService,"attachment",d).then(function(e){e&&aFd(a,d)})},label:c?"Match issue retention...":"Revert to component retention..."})}this.cdr.markForCheck()};
h.setHasViewAccess=function(){var a=this;this.isRestricted()?this.attachment==null?this.hasViewAccess=!1:(this.hasViewAccess=!1,zP(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};h.getFilename=function(){var a;return((a=this.attachment)==null?void 0:a.filename)||""};h.getSize=function(){var a;return((a=this.attachment)==null?void 0:a.length)||0};
var $qb=function(a,b){b=b===void 0?!0:b;var c;if((c=a.attachment)==null||!c.attachmentId)throw Error("Mf");if(a.enableInactiveUserContent){if(b)return lnd(a.attachmentsApi)+"/download/attachment/"+a.issueId+"/"+a.attachment.attachmentId+"?download=true";var d;return ps.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 BHc(a,
"download",b)};wZ.prototype.isActive=function(){var a;if((a=this.attachment)==null||!a.attachmentId||this.attachment.attachmentId==="0")return!1;var b;return((b=this.attachment.entityStatus)==null?void 0:b.status)==="ACTIVE"};wZ.prototype.viewAttachment=function(){this.isRestricted()?bFd(this,!1):this.domSafe.openInNewTab($qb(this,!1))};
var brb=function(a){var b,c=(b=a.attachment)==null?void 0:b.attachmentId,d,e=(d=a.attachment)==null?void 0:d.filename,f,g=(f=a.attachment)==null?void 0:f.contentType;a.isRestricted()?bFd(a,!0):a.enableInactiveUserContent?a.subscriptions.add(mnd(a.attachmentsApi,a.issueId,c.toString()).subscribe(function(k){k&&vZ.download(k,e,g)})):a.domSafe.openInNewTab($qb(a,!0))};wZ.prototype.isRestricted=function(){return this.getRestrictionSeverity()!=="NONE_DETECTED"};
wZ.prototype.getRestrictionSeverity=function(){var a;return Tp((a=this.attachment)==null?void 0:a.contentVerdict)};wZ.prototype.getRestrictedLabel=function(){return UYa(this.getRestrictionSeverity())};var Zqb=function(a){return(a=a.getRestrictionSeverity())?"bv2-restricted-content-limit-"+TYa(a):""},bFd=function(a,b){a.analytics.trackEvent("restrictedContent","viewRestrictedContent","attachment");a.matDialogService.open(XY,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})};
wZ.prototype.showDeleteAttachmentDialog=function(){var a;(a=this.attachment)!=null&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var aFd=function(a,b){var c;(c=a.attachment)!=null&&c.attachmentId?(a.analytics.trackEvent("restrictedContent","updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId,b).pipe(Bf(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=d.piiRetention,a.attachment.piiRetentionState=d.piiRetentionState);Pr(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride=b==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";a.initializeMenuItems();a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;lO(a.errorHandler,"Attachment retention update failed")}})):lO(a.errorHandler,"Attachment id is missing")},$Ed=function(a){var b,c,d;y(function(e){(b=a.routeParams.downloadAttachment)&&b===((c=a.attachment)==null?void 0:c.attachmentId)&&(d=a.routeParams.download==="true",bFd(a,d));ce(e)})};
wZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(wZ)))(b||wZ)}}();
wZ.\u0275cmp=D({type:wZ,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:19,vars:12,consts:[["restrictedAccessHelp",""],[1,"bv2-issue-attachment-image"],["name","file-present","size","large",1,"bv2-issue-attachment-icon"],[1,"flex-kids-y"],[1,"bv2-issue-attachment-filename"],[1,"bv2-issue-event-attachment-info","flex-kids-x","align-items-center"],[3,"label","retentionState",
"contentType"],[1,"bv2-issue-attachment-overflow-menu"],[1,"flex-kids-x","align-items-center"],[3,"class"],[3,"panelTemplate"],[1,"bv2-restricted-access-help-icon","help-icon"],[2,"display","none",3,"issueId","attachmentId","mimeType"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"customHandler","isGreyedOut","displayName","linkUrl","linkEnabled","useCustomHandler"],[1,"bv2-issue-attachment-link","icon-button-container"],["type","button","aria-label","Copy link to attachment",
"color","primary","mat-icon-button","","matTooltip","Copy link to attachment","matTooltipPosition","above",1,"bv2-issue-copy-attachment-link",3,"click"],["name","link","size","small"],["aria-label","Restricted Access Help","mat-icon-button","","target","_blank",1,"help","small",3,"href","disableRipple"],[3,"svgIcon"],[1,"implicit-access-help-bubble"],["target","_blank",3,"href"],[3,"issueId","attachmentId","attachmentEnrichments"]],template:function(a,b){a&1&&(K(0,"div",1),M(1,"b-icon",2),L(),K(2,
"div",3)(3,"div",4),Q(4),K(5,"span",5),F(6,Xqb,1,3,"b-restricted-chip",6),F(7,Yqb,2,3,"span",7),L()(),K(8,"div",8),Q(9),F(10,arb,2,8,"span",9),F(11,crb,5,8),K(12,"xap-bubble",10),F(13,drb,3,3,"span",11),E(14,erb,4,1,"ng-template",null,0,Mg),L(),F(16,frb,1,3,"attachment-preview",12),L(),F(17,hrb,1,1),T(18,"async"),L());if(a&2){var c;a=qg(15);B(4);S(" ",b.getFilename()," ");B(2);G(b.isRestricted()?6:-1);B();G(b.actionMenuItems.length>0?7:-1);B(2);S(" ",Bab(b.getSize())," ");B();var d;var e=b.isActive()&&
yRa((d=b.attachment)==null?void 0:d.contentType);G(e?10:-1);B();G(b.isActive()?11:-1);B();I("panelTemplate",a);B();G(b.isRestricted()&&!b.hasViewAccess?13:-1);B(3);var f,g,k;if(d=!(!(b.enableInlineImageAttachments&&b.hasViewAccess&&b.isActive()&&((f=b.attachment)==null?0:f.contentType)&&((g=b.attachment)==null?0:g.contentType.startsWith("image/")))||((k=b.attachment)==null?0:k.contentType.startsWith("image/svg")))){var l;((l=b.attachment)==null?0:l.attachmentId)?(f=b.attachmentCountService,g=b.attachment.attachmentId,
f.inlinedAttachmentSet.has(g)?f=!0:f.getCount()<12?(f.inlinedAttachmentSet.add(g),f=!0):f=!1):f=!1;d=f}G(d?16:-1);B();G((c=U(18,10,b.attachmentEnrichments$))?17:-1,c)}},dependencies:[tZ,ZY,Dy,QY,gEd,pT,gB,eB,oK,iA,uZ,RV,Lx],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 cFd="monitoring.corp.google.com irm.corp.google.com rollouts.corp.google.com nexus.corp.google.com sherlog analog nexus rpcstudio".split(" ").map(function(a){return a.toLowerCase()}),xZ=function(){var a=this;this.activeSession=p(qu);this.contextSensitiveRegistry=p(TQ);this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(pf());this.issue$=this.issueId$.pipe(Af(function(b){return b?a.issueFullFridge.watch(b):ee(void 0)}));this.issueDescription$=
this.issueId$.pipe(Af(function(b){return b?a.eventsForIssueFridge.watch(b):ee(void 0)}),A(function(b){var c;return(b==null?0:(c=b.events)==null?0:c.length)&&b.events.length>0&&b.events[0].commentNumber&&b.events[0].commentNumber>-1?b.events[0]:void 0}));this.doesDescriptionContainKeyword$=this.issueDescription$.pipe(A(function(b){var c;if(c=!(b==null||!b.unlinkifiedComment))a:{if(b=b.unlinkifiedComment){b=b.toLowerCase();c=m(cFd);for(var d=c.next();!d.done;d=c.next())if(b.includes(d.value)){c=!0;
break a}}c=!1}return c}));this.isIssueComponentInGppLlmChatComponentAllowlist$=this.issue$.pipe(A(function(b){var c;if(!(b==null?0:(c=b.snapshot[0])==null?0:c.componentId))return!1;b=b.snapshot[0].componentId;return a.activeSession.getGppLlmChatComponentAllowlist().has(String(b))}));this.isGppLlmChatEnabled$=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableGppLlmChat")?le([this.isIssueComponentInGppLlmChatComponentAllowlist$,this.doesDescriptionContainKeyword$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return b&&c})):ee(!1);this.isDuckieChatEnabled$=ee(this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableDuckieLlmChat"));this.isLlmChatEnabled$=le([this.isGppLlmChatEnabled$,this.isDuckieChatEnabled$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}));this.contextValuesForDuckieRag$=this.issueId$.pipe(A(function(b){var c=[(new tA).setName("application_name").setStringValue("Buganizer"),(new tA).setName("application_description").setStringValue("Buganizer is an internal tool for tracking issues.")];
b&&c.push((new tA).setName("page_specific_context").setStringValue("The user is viewing Buganizer issue "+b+". Use tools to obtain information about the issue."));b=new sA;var d=b.setValuesList,e=(new tA).setName("page_detail").setDescription("Information about the webpage the user is calling the agent from.\nThis is relevant because we can make different assumptions about the user's implied intents and topics based on the application they're in.");c=(new sA).setValuesList(c);c=Yo(e,3,uA,c);return d.call(b,
[c])}))};xZ.\u0275fac=function(a){return new (a||xZ)};xZ.\u0275prov=Fc({token:xZ,factory:xZ.\u0275fac,providedIn:"root"});var dFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,dFd.messageId)};Y(dFd,W);h=dFd.prototype;h.getIssueIdsList=function(){return Jw(this,1,1,jb)};h.getIssueIdsList_asString=function(){return Sm(this,1,jb)};h.setIssueIdsList=function(a){return ur(this,1,a,jb)};h.addIssueIds=function(a){return Tw(this,1,a,void 0,jb)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,jb,1)};dFd.messageId="tailwind.BatchGetIssueRunStatusRequest";var jt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,jt.messageId)};Y(jt,W);jt.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};jt.prototype.getIssueId_asString=function(){return un(this,1,void 0,jb)};jt.prototype.setIssueId=function(a){return wn(this,1,a,void 0,jb)};jt.prototype.getRunId=function(){return vi(this,2,void 0,jb)};jt.messageId="tailwind.IssueRunStatus";var eFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,eFd.messageId)};Y(eFd,W);eFd.messageId="tailwind.BatchGetIssueRunStatusResponse";var yZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,yZ.messageId)};Y(yZ,W);yZ.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};yZ.prototype.getIssueId_asString=function(){return un(this,1,void 0,jb)};yZ.prototype.setIssueId=function(a){return wn(this,1,a,void 0,jb)};yZ.messageId="tailwind.CreateRunRequest";var et=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,et.messageId)};Y(et,W);et.prototype.getRunId=function(){return vi(this,1,void 0,jb)};et.prototype.getIssueId=function(){return pn(this,2,void 0,jb)};et.prototype.getIssueId_asString=function(){return un(this,2,void 0,jb)};et.prototype.setIssueId=function(a){return wn(this,2,a,void 0,jb)};et.messageId="tailwind.RunMetadata";var fFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,fFd.messageId)};Y(fFd,W);fFd.messageId="tailwind.GetIssueEligibilityResponse";var zZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,zZ.messageId)};Y(zZ,W);zZ.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};zZ.prototype.getIssueId_asString=function(){return un(this,1,void 0,jb)};zZ.prototype.setIssueId=function(a){return wn(this,1,a,void 0,jb)};zZ.messageId="tailwind.RetryRunRequest";var nrb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,nrb.messageId)};Y(nrb,W);nrb.messageId="tailwind.RunResultsValidation";var ft=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ft.messageId)};Y(ft,W);ft.prototype.getEntriesList=function(){return Dm(this,1,Di(),jb)};ft.prototype.getEntries=function(a){return Nw(this,1,a,jb)};ft.messageId="tailwind.RunSummarySection";var gFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,gFd.messageId)};Y(gFd,W);gFd.messageId="tailwind.RunSummary";var it=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,it.messageId)};Y(it,W);it.prototype.getName=function(){return vi(this,1,void 0,jb)};it.prototype.setName=function(a){return pj(this,1,a,jb)};it.prototype.hasName=function(){return im(this,1,jb)};it.prototype.getNameOrUndefined=function(){return Lw(this,1,jb)};it.messageId="tailwind.RunTrajectoryStepFunctionCall";var ht=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,ht.messageId)};Y(ht,W);ht.prototype.getText=function(){return vi(this,1,void 0,jb)};ht.prototype.setText=function(a){return pj(this,1,a,jb)};ht.prototype.hasText=function(){return im(this,1,jb)};ht.messageId="tailwind.RunTrajectoryStep";var gt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,gt.messageId)};Y(gt,W);gt.prototype.getPrompt=function(){return vi(this,1,void 0,jb)};gt.messageId="tailwind.RunTrajectory";var AZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,AZ.messageId)};Y(AZ,W);AZ.prototype.getSummary=function(){return X(this,gFd,1,jb)};AZ.prototype.hasSummary=function(){return yi(this,gFd,1,jb)};AZ.messageId="tailwind.RunResults";var hFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,hFd.messageId)};Y(hFd,W);h=hFd.prototype;h.getMetadata=function(){return X(this,et,1,jb)};h.getMutableMetadata=function(){return Ji(this,et,1,void 0,jb)};h.setMetadata=function(a){Ni(this,et,1,a,jb)};h.hasMetadata=function(){return yi(this,et,1,jb)};h.getResults=function(){return X(this,AZ,3,jb)};h.hasResults=function(){return yi(this,AZ,3,jb)};hFd.messageId="tailwind.Run";var BZ=function(){this.executor=p(ZN)};BZ.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/tailwind/eligibility/"+a,responseConstructor:fFd}).pipe(A(krb))};BZ.prototype.createRun=function(a){return this.executor.post({url:"action/tailwind/create_run",body:(new yZ).setIssueId(a),responseConstructor:et}).pipe(A(jrb))};
BZ.prototype.retryRun=function(a){var b=this.executor,c=b.post;var d=(new zZ).setIssueId(a.issueId);d=pj(d,2,a.userInstructions,jb);a=pj(d,3,a.previousRunId,jb);return c.call(b,{url:"action/tailwind/retry_run",body:a,responseConstructor:et}).pipe(A(jrb))};
var iFd=function(a,b){return a.executor.get({url:"action/tailwind/get_run/"+encodeURIComponent(b),responseConstructor:hFd}).pipe(A(orb))},jFd=function(a,b){b=(new dFd).setIssueIdsList(b);return a.executor.post({url:"action/tailwind/batch_get_run_statuses",body:b,responseConstructor:eFd}).pipe(A(rrb))};BZ.\u0275fac=function(a){return new (a||BZ)};BZ.\u0275prov=Fc({token:BZ,factory:BZ.\u0275fac,providedIn:"root"});var kFd=function(a){this.maxEntries=a;this.dataStore=new Map};kFd.prototype.getKeys=function(){return Array.from(this.dataStore.keys())};
var lFd=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)},mFd=function(a){return Array.from(a.dataStore.keys()).join(",")},nFd=function(a,b){var c;b=(c=b==null?void 0:b.split(","))!=null?c:[];a.dataStore.clear();c=m(b);for(b=c.next();!b.done;b=c.next())a.dataStore.set(b.value,void 0)};kFd.prototype.hasKey=function(a){return this.dataStore.has(a)};var oFd={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"},CZ={},pFd=(CZ[0]={message:"Use AI to fix this issue"},CZ[1]={message:"Generating suggestion. It could take a while. Please check back later and refresh your page."},CZ[2]={message:"Loading AI suggested fix status."},
CZ[3]={message:"Fix ready for review."},CZ[4]={message:"AI was unable to fix this issue. You can try again on another issue."},CZ[5]={message:"A previously generated fix exists. This issue is not eligible for regenerating."},CZ[6]={message:"A previously failed generation exists. This issue is not eligible for regenerating."},CZ[7]={message:"Not eligible for AI fix."},CZ),DZ=function(){var a=this;this.activeSession=p(qu);this.tailwindApi=p(BZ);this.contextSensitiveRegistry=p(TQ);this.ignoredIssuesCache=
new kFd(100);this.pollingObservable=null;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(Om),pf(),xf({bufferSize:1,refCount:!0}));this.runForCurrentIssue$=new Nj(void 0);this.isEnabledForCurrentIssue$=this.issueId$.pipe(Af(function(c){return c&&a.activeSession.getFlag("enableTailwind")&&a.activeSession.isInternalSession()&&!a.ignoredIssuesCache.hasKey(c)?a.tailwindApi.getIssueEligibility(c).pipe(A(function(d){return d.eligibilityState==="ELIGIBLE_NOT_STARTED"||d.eligibilityState===
"EXISTING"||d.eligibilityState==="INELIGIBLE_EXISTING"}),jf(function(){return ee(!1)})):ee(!1)}),xf({bufferSize:1,refCount:!0}));var b=AVa("llm_suggested_bug_fix_ignored_issues")();nFd(this.ignoredIssuesCache,b!=null?b:void 0)},rFd=function(a,b){if(a.pollingObservable)return a.pollingObservable;a.pollingObservable=pe(function(){return iFd(a.tailwindApi,b)}).pipe(Cf(function(c){c.metadata!==void 0&&a.runForCurrentIssue$.next(c)}),A(function(c){if(c.metadata===void 0)throw Error("Nf");return qFd(c)?
3:4}),vrb(),jf(function(c){return c.message==="Not completed"?ee(1):ee(4)}),qf(function(){a.pollingObservable=null}));return a.pollingObservable},sFd=function(a,b){return a.tailwindApi.getIssueEligibility(b).pipe(Af(function(c){switch(c.eligibilityState){case "INELIGIBLE":return ee(7);case "ELIGIBLE_NOT_STARTED":return ee(0);case "EXISTING":case "INELIGIBLE_EXISTING":return iFd(a.tailwindApi,c.runMetadata.runId).pipe(Cf(function(d){d.metadata!==void 0&&a.runForCurrentIssue$.next(d)}),A(function(d){return d.metadata!==
void 0?qFd(d)?c.eligibilityState==="EXISTING"?3:5:c.eligibilityState==="EXISTING"?4:6:1}),jf(function(){return ee(4)}),zf(2));default:return ee(0)}}),nf(2),jf(function(){return ee(4)}))};DZ.prototype.createRun=function(a){return this.tailwindApi.createRun(a)};DZ.prototype.retryRun=function(a,b,c){return this.tailwindApi.retryRun({issueId:a,userInstructions:b,previousRunId:c})};var qFd=function(a){var b;a=Number((b=a.results)==null?void 0:b.oclNumber);return!Number.isNaN(a)&&a>0};
DZ.\u0275fac=function(a){return new (a||DZ)};DZ.\u0275prov=Fc({token:DZ,factory:DZ.\u0275fac,providedIn:"root"});var tFd=function(){this.llmChatService=p(xZ);this.appEvents=p(PO);this.llmSuggestedBugFixService=p(DZ);this.buttonText$=le([this.llmChatService.isGppLlmChatEnabled$,this.llmChatService.isDuckieChatEnabled$]).pipe(A(function(a){var b=m(a);a=b.next().value;b=b.next().value;return a?"Ask Production Agent":b?"Ask Duckie":""}));this.showButton$=le([this.llmChatService.isLlmChatEnabled$,this.llmSuggestedBugFixService.isEnabledForCurrentIssue$]).pipe(A(function(a){var b=m(a);a=b.next().value;b=b.next().value;
return a&&!b}))};tFd.prototype.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};tFd.\u0275fac=function(a){return new (a||tFd)};
tFd.\u0275cmp=D({type:tFd,selectors:[["llm-chat-open-button"]],standalone:!1,decls:2,vars:3,consts:["mat-stroked-button;;aria-label;Open chat sidebar;matTooltip;Open chat sidebar".split(";"),["mat-stroked-button","","aria-label","Open chat sidebar","matTooltip","Open chat sidebar",3,"click"],["svgIcon","chat_spark_24px","color","primary",1,"icon-s"]],template:function(a,b){a&1&&(F(0,wrb,4,3,"button",0),T(1,"async"));a&2&&G(U(1,1,b.showButton$)?0:-1)},dependencies:[Dy,gB,cB,iA,Lx],encapsulation:2,
changeDetection:0});var uFd=function(){this.dialogRef=p(NA);this.documentationLinks=p(YR);this.data=p(PA);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};uFd.prototype.onNoClick=function(){this.dialogRef.close(!1)};uFd.\u0275fac=function(a){return new (a||uFd)};
uFd.\u0275cmp=D({type:uFd,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&&(K(0,"h1",0),Q(1),L(),K(2,"div",1)(3,"p"),Q(4),K(5,"a",2),Q(6," Learn More "),L()()(),K(7,"div",3)(8,"button",4),N("click",function(){return b.onNoClick()}),Q(9," Cancel "),L(),K(10,"button",5),Q(11," Confirm "),L()());a&2&&(B(),yg(b.data.title),B(3),S(" ",b.data.content," "),B(),I("rel",b.EXTERNAL_LINK_REL),Kf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Pe),B(5),I("mat-dialog-close",!0))},dependencies:[gB,cB,RA,TA,VA,UA],encapsulation:2});var EZ=function(){this.dialog=p(QA);this.documentationLinks=p(YR);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new XP};
EZ.prototype.openDialog=function(){var a=this;OA(this.dialog.open(uFd,{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()})};EZ.\u0275fac=function(a){return new (a||EZ)};
EZ.\u0275cmp=D({type:EZ,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&&(K(0,"span")(1,"button",0),N("click",function(){return b.openDialog()}),Q(2," Show Restricted Content "),L(),
K(3,"a",1),Q(4," Learn More "),L()());a&2&&(B(),I("disabled",b.disabled),B(2),I("rel",b.EXTERNAL_LINK_REL),Kf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Pe))},dependencies:[gB,cB],styles:[".mat-mdc-outlined-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=cf({type:FZ});FZ.\u0275inj=Hc({imports:[PJ,RO,iB,pK]});var vFd=["commentActionsMenu"],wFd=["editDescription"],Trb=function(){return[]},GZ=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=p(IP);this.userPreferencesManager=p(dR);this.issueFullFridge=p(cQ);this.issueReferenceResolver=p(HR);this.activeSession=p(qu);this.commentService=p(mS);this.errorHandler=p(kO);this.analytics=p(aQ);this.butterBar=p(QN);this.userAccess=p(yP);this.issueCommentDialogsService=p(yY);this.issuePermissionService=p(WQ);this.commentHistoryDialogService=p(TY);this.dateFormatter=
p(qS);this.domSafe=p(iR);this.FormattingMode=Um;this.emailToUser=ym;this.id$=new wf(1);this.issue$=this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}),xf({bufferSize:1,refCount:!0}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.firstEventOverride$=new Nj(void 0);this.firstEvent$=this.firstEventOverride$.pipe(Af(function(b){return b?ee(b):a.issue$.pipe(we(Qm),A(function(c){if(c.description)var d=o1a(c.description,
c);else{var e,f;d={attachments:[],preDiffs:[],postDiffs:[],modifiedDate:lSa(en((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(xf({bufferSize:1,refCount:!0}));this.firstNote$=this.firstEvent$.pipe(A(function(b){return b}));this.hasDescription$=this.firstEvent$.pipe(A(function(b){return!!b&&tUa(b)}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.formattingModeOverride$=new Nj(void 0);this.formattingMode$=
this.formattingModeOverride$.pipe(Af(function(b){return b?ee(b):a.firstEvent$.pipe(we(Qm),A(function(c){var d;return(d=c.formattingMode)!=null?d:"PLAIN"}),pf())}));this.isRedacted$=this.firstEvent$.pipe(A(function(b){var c;return(c=b==null?void 0:b.commentRedacted)!=null?c:!1}));this.isDeleted$=this.firstEvent$.pipe(A(function(b){return(b==null?void 0:b.commentDeletionStatus)==="DELETED"}));this.shouldShowRestrictedPlaceholder$=le([this.isRedacted$,this.isDeleted$]).pipe(A(function(b){var c=m(b);
b=c.next().value;c=c.next().value;return!(!b||c)}));this.isRestricted$=this.firstEvent$.pipe(A(function(b){return Tp(b==null?void 0:b.commentContentVerdict)}),A(function(b){if(b==null)return!1;switch(b){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:wb(b)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(A(function(b){return b==null?void 0:b.commentRetention}));this.commentHistoryEnabled=this.activeSession.getFlag("enableCommentHistoryUi");
this.isShowCommentHistoryActionInMenu$=le([this.firstEvent$,this.isRedacted$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!(a.activeSession.getFlag("enableCommentHistoryUi")&&((b==null?void 0:b.commentVersion)||0)>0)||c)}));this.canEditComment$=this.firstEvent$.pipe(Af(function(b){return b?a.issuePermissionService.canEditComment$(b):ee(!1)}),xf({refCount:!0,bufferSize:1}));this.mayReadPii$=this.isRestricted$.pipe(Af(function(b){return b?xFd(a):ee(void 0)}));this.reporterUser$=
this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.currentReporterEmail$=this.reporterUser$.pipe(A(function(b){return xm(b)||""}));this.allEvents$=this.id$.pipe(Af(function(b){return a.eventsForIssue.watch(b)}));this.attachments$=this.allEvents$.pipe(A(function(b){var c,d;return(d=b==null?void 0:(c=b.events[0])==null?void 0:c.attachments)!=null?d:[]}));this.initialReporterEmail$=this.allEvents$.pipe(A(function(b){return b==null?void 0:
b.events[0]}),A(function(b){b=m((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$=le([this.initialReporterEmail$,this.currentReporterEmail$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}));this.originalAuthor$=this.allEvents$.pipe(A(function(b){return b==null?void 0:b.events[0]}),A(function(b){return b==null?void 0:b.userPerformingActionUser}));this.originalAuthorEmail$=
this.originalAuthor$.pipe(A(xm));this.isAuthorNotReporter$=le([this.originalAuthorEmail$,this.onBehalfOfEmail$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!==c}));this.lastNonCreatorCommentEditorUser$=le([this.firstEvent$.pipe(we(Qm)),this.onBehalfOfEmail$]).pipe(A(function(b){var c=m(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(we(Qm),Af(function(b){var c="Last edited";b.lastCommentEditorUser&&(c+=" by "+um(b.lastCommentEditorUser));return b.commentLastModifiedAtDate?Fnd(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).pipe(A(function(d){return c+" on "+d})):ee(c)}));this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){var c={};return c.PLAIN={type:"select",action:function(){a.formattingModeOverride$.next("PLAIN")},label:"Classic",selected:b==="PLAIN"},c.MARKDOWN={type:"select",
action:function(){a.formattingModeOverride$.next("MARKDOWN")},label:"Markdown",selected:b==="MARKDOWN"},c.LITERAL={type:"select",action:function(){a.formattingModeOverride$.next("LITERAL")},label:"Source",selected:b==="LITERAL"},c}));this.commentActionMenuItems$=le({isDisplayCommentFormatLiteral:this.isDisplayCommentFormatLiteral$,formattingModeMenuItems:this.formattingModeMenuItems$,event:this.firstEvent$,canEditComment:this.canEditComment$,isRedacted:this.isRedacted$,isRestricted:this.isRestricted$,
isDeleted:this.isDeleted$,accessLevel:this.accessLevel$,isShowCommentHistoryActionInMenu:this.isShowCommentHistoryActionInMenu$,canDeleteComment:this.firstEvent$.pipe(Af(function(b){return a.issuePermissionService.canDeleteComment(b)})),canUndeleteComment:this.firstEvent$.pipe(Af(function(b){return a.issuePermissionService.canUndeleteComment(b)})),canSeeRestrictionSettings:this.issuePermissionService.hasAclToView$,canChangeCommentRetention:this.issuePermissionService.canChangeCommentRetention$,commentRetentionOverride:this.commentRetentionOverride$}).pipe(A(function(b){var c=
b.isDisplayCommentFormatLiteral;var d=b.formattingModeMenuItems;var e=b.event;var f=b.canEditComment;var g=b.isRedacted;var k=b.isRestricted;var l=b.isDeleted;var r=b.accessLevel;var w=b.isShowCommentHistoryActionInMenu;var x=b.canDeleteComment;var C=b.canUndeleteComment;var H=b.canSeeRestrictionSettings;var J=b.canChangeCommentRetention;b=b.commentRetentionOverride;var O=[];c||O.push(Object.assign({},rDd,{items:[d.PLAIN,d.MARKDOWN,d.LITERAL]}));f&&e&&O.push({type:"action",action:function(){Qtb(a.issueCommentDialogsService,
a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:g});w&&e&&O.push(Object.assign({},tDd,{action:function(){e.commentNumber&&a.showCommentHistoryDialog(e.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));e&&x&&O.push({type:"action",action:function(){e.commentEtag&&kCd(a.issueCommentDialogsService,a.id,1,e.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});
e&&C&&O.push({type:"action",action:function(){hCd(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});e&&H&&O.push(Object.assign({},sDd,{action:function(){lCd(a.issueCommentDialogsService,a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));if(k&&J&&!l&&a.activeSession.isInternalSession()){var R=b==="COMPONENT_DEFAULT";O.push({type:"action",action:function(){var V=R?"INDEFINITE":"COMPONENT_DEFAULT";
mCd(a.issueCommentDialogsService,"comment",V).then(function(ca){a.commentActionsMenu.actionsMenuIconButton.focus();ca&&a.updateCommentRetention(V)})},label:R?"Match issue retention...":"Revert to component retention..."})}xob({userIsExternal:!a.activeSession.isInternalSession(),issueIsExternal:r!=="INTERNAL"})&&O.push(Object.assign({},qDd,{action:function(){var V=yob({bugId:a.id,comment:1});a.domSafe.openInNewTab(V)}}));return O}))};Y(GZ,Z);GZ.\u0275dir=Z.\u0275dir;
var xFd=function(a){return a.id$.pipe(Af(function(b){return pe(function(){return zP(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Xm("error: ",c);return!1})})}))};
GZ.prototype.updateCommentRetention=function(a){var b=this,c,d;y(function(e){if(e.nextAddress==1)return z(e,ie(b.firstEvent$),2);if(e.nextAddress!=3)return c=e.yieldResult,z(e,ie(b.id$),3);d=e.yieldResult;c&&!c.commentNumber&&lO(b.errorHandler,"Comment number is missing");b.analytics.trackEvent("restrictedContent","updateRetention","comment");d&&c&&b.commentService.updateRetention(d,c.commentNumber||0,a).pipe(Bf(b.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);Pr(b.butterBar,"Comment retention updated",
4E3)},error:function(){lO(b.errorHandler,"Comment retention update failed")}});ce(e)})};
GZ.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var d=b.commentNumber||0,e=Tp(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(nf(1),Bf(this.destroyed$)).subscribe(function(f){f=vUa(b,f);c.firstEventOverride$.next(f)},function(f){var g;c.butterBar.showWarning("Error showing comment "+d+": "+((g=f.error)==null?void 0:g.message))})};
GZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};var xrb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.firstEvent$),2);if(c.nextAddress!=3)return(b=c.yieldResult)?z(c,Qtb(a.issueCommentDialogsService,a.id,b),3):c.return();a.editDescriptionButton.focus();ce(c)})};da.Object.defineProperties(GZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return zr(this.id$)}}});
GZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(GZ)))(b||GZ)}}();
GZ.\u0275cmp=D({type:GZ,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(hg(vFd,5),hg(wFd,5));if(a&2){var c;lg(c=mg())&&(b.commentActionsMenu=c.first);lg(c=mg())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},standalone:!1,features:[Gf],decls:3,vars:3,consts:[["commentActionsMenu",""],["editDescription",""],["card",""],["lastEditorCard",""],["id","comment1",1,"flex-kids-x","comment1"],["svgIcon","description_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-1-hemmed"],
[1,"b-description-heading","flex-kids-x"],[1,"flex-1"],[1,"uppercase","inline-block","margin-xs-right"],["type","button","mat-stroked-button","","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right"],[1,"keep-focus-ring","first-comment",3,"routerLinkObj"],[1,"muted",3,"matTooltip"],["mode","datetime",1,"margin-s-right",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"display-block","margin-s-top"],[1,"description-deleted"],["type","button",
"mat-stroked-button","","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right",3,"click"],[3,"onedevHovercardTrigger","model"],[3,"email"],[3,"user","showEmail"],[1,"keep-focus-ring","first-comment",3,"click","routerLinkObj"],[1,"critical-feature",3,"disabled"],[1,"critical-feature",3,"onConfirm","disabled"],[1,"muted","critical-feature"],[1,"critical-feature",3,"issueId","issueAccessLevel","note","formattingMode","canEditComment"],[1,"margin-s-y","border-top",
"bv2-issue-event-attachments"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(F(0,Urb,28,27,"div",4),T(1,"async"),Lf(2,Vrb,1,0,"b-spinner"));if(a&2){var c;G((c=U(1,1,b.firstEvent$))?0:2,c)}},dependencies:[QY,wZ,eU,Dy,QO,sV,DK,LK,eT,tFd,gB,cB,oK,iA,EZ,$T,ZU,$U,fV,Lx],styles:["[_nghost-%COMP%]{display:block}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.first-comment[_ngcontent-%COMP%]:hover{text-decoration:underline}"],
changeDetection:0});var yFd=function(){this.reactionState$=new wf(1);this.issueId="";this.emails$=this.reactionState$.pipe(we(Qm),A(function(a){return a.recentResponders.map(xm).filter(function(b){return b!==""}).slice(0,5)}))};da.Object.defineProperties(yFd.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});yFd.\u0275fac=function(a){return new (a||yFd)};
yFd.\u0275cmp=D({type:yFd,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&&(K(0,"div",0)(1,"div",1),Of(2,Yrb,5,2,"div",null,Nf),T(4,"async"),L()());a&2&&(B(2),Pf(U(4,0,b.emails$)))},dependencies:[Lx],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var zFd=function(){};zFd.\u0275fac=function(a){return new (a||zFd)};zFd.\u0275cmp=D({type:zFd,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,$rb,6,2);a&2&&G(b.event.commentLastModifiedAtDate?0:-1)},dependencies:[sV],encapsulation:2,changeDetection:0});var AFd=function(){this.texts=[]};AFd.prototype.getIssueId=function(a){return a.text};AFd.\u0275fac=function(a){return new (a||AFd)};AFd.\u0275cmp=D({type:AFd,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&&Of(0,dsb,3,1,null,null,Mf);a&2&&Pf(b.texts)},dependencies:[IR,Ssd],encapsulation:2,changeDetection:0});var BFd=function(){this.hotlists=p(gP);this.ROUTES=ps};BFd.\u0275fac=function(a){return new (a||BFd)};BFd.\u0275cmp=D({type:BFd,selectors:[["hotlist-link"]],inputs:{id:"id"},standalone:!1,decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(K(0,"a",0),Q(1),T(2,"async"),L());if(a&2){var c;I("href",b.ROUTES.viewHotlist.makeHref(b.id),Pe);B();yg(((c=U(2,2,b.hotlists.watch(b.id)))==null?null:c.name)||b.id)}},dependencies:[Lx],encapsulation:2,changeDetection:0});var CFd=function(){var a=this;this.componentFridge=p(MO);this.id$=new wf(1);this.name$=this.id$.pipe(pf(),Af(function(b){return a.componentFridge.watch(b).pipe(A(function(c){var d=c?(c=(d=c.componentPathInfo)==null?void 0:d.componentPathName)?c.join(" > "):b:b;return d}))}))};CFd.prototype.ngOnChanges=function(){this.id$.next(this.id)};CFd.\u0275fac=function(a){return new (a||CFd)};
CFd.\u0275cmp=D({type:CFd,selectors:[["plain-component-path"]],inputs:{id:"id"},standalone:!1,features:[bx],decls:6,vars:4,consts:[["thisHovercard","onedevHovercard"],["cardBody",""],[3,"onedevHovercardTrigger"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(K(0,"span",2),Q(1),T(2,"async"),L(),K(3,"onedev-hovercard",null,0),E(5,gsb,3,2,"ng-container",3),L());a&2&&(a=qg(4),I("onedevHovercardTrigger",a),B(),yg(U(2,2,b.name$)||b.id))},dependencies:[DK,
EK,LK,FK,TV,Lx],encapsulation:2,changeDetection:0});var Ysb=function(a,b,c){return{diff:a,change:b,isLast:c}},HZ=function(){Z.apply(this,arguments);this.activeSession=p(qu);this.preferences=p(dR);this.customFieldHelper=p(uS);this.emailToUser=ym;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=qm;this.isLinkedItemArray=g2a;this.isIssueDiff=d2a;this.isHotlistDiff=e2a;this.DiffType=Gcd};Y(HZ,Z);HZ.\u0275dir=Z.\u0275dir;
var DFd=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)},EFd=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)};HZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(we(Qm),Bf(this.destroyed$)).subscribe(function(b){a.internalDiffs.length<2||(b&&DFd(a)||!b&&EFd(a))&&a.internalDiffs.reverse()})};
var jtb=function(a,b,c){return Tta(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="DATE"?!0:!1},ktb=function(a,b,c){return Tta(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="REPEATED_DATE"?!0:!1};HZ.prototype.asNumber=function(a){return Number(a)};
HZ.prototype.customFieldName=function(a){if(a.customFieldId){var b;return((b=this.customFieldMap[a.customFieldId])==null?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};da.Object.defineProperties(HZ.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(q(a))}}});HZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(HZ)))(b||HZ)}}();
HZ.\u0275cmp=D({type:HZ,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},standalone:!1,features:[Gf],decls:5,vars:0,consts:[["changeCollection",""],[1,"bv2-event-details"],[1,"bv2-diff-row"],["mode","time",1,"float-right",3,"timestamp"],[1,"bv2-diff-detail"],[3,"id"],[1,"bv2-diff-arrow"],[3,"user","showEmail"],["mode","date",3,"timestamp"],[3,"bv2-diff-newvalue-nextline"],[4,"ngTemplateOutlet",
"ngTemplateOutletContext"],["title","For more detail, click on the three-dot menu near status update"],[1,"muted","inline-block","margin-none","unhandled-diff-type"],[3,"href","issueId"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(K(0,"div",1),Of(1,Btb,2,1,"div",2,Mf),L(),E(3,Htb,1,1,"ng-template",null,0,Mg));a&2&&(B(),Pf(b.internalDiffs))},dependencies:[Kx,sV,ZU,IR,BFd,CFd,Px,fV],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var IZ=function(){var a=p(dR);Z.call(this);var b=this;a.commentDisplayOverride$.pipe(Bf(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Y(IZ,Z);IZ.\u0275dir=Z.\u0275dir;IZ.prototype.ngOnInit=function(){};
IZ.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.summaryType==="CRITIQUE"?FFd(this):this.summaryType==="GERRIT"&&GFd(this);this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var FFd=function(a){if(a.rawComment.split("\n").slice(0,3).filter(Boolean).length<2)a.rawComment=U7a(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=HFd(a,b)}},GFd=function(a){var b=a.rawComment.split("\n");if(b.length>9){var c=b.slice(0,8).filter(Boolean).map(function(g){return g.trim()}),d=c[0],e=c[1],f=c[3];c=c[5];b=b.at(-2);a.rawComment=HFd(a,[d,e,f,"Gerrit change: "+b,"",c])}},HFd=
function(a,b){return a.formattingMode==="MARKDOWN"||a.formattingModeOverride==="MARKDOWN"?b.join("\n\n"):b.join("\n")};IZ.\u0275fac=function(a){return new (a||IZ)};
IZ.\u0275cmp=D({type:IZ,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",summaryType:"summaryType",issueAccessLevel:"issueAccessLevel"},standalone:!1,features:[Gf,bx],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:[nT],styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var IFd=["commentActionsMenu"],JFd=["commentReactionButton"],Ttb=function(){return[]},Ztb=function(){return{unlinkifiedComment:""}},KFd=[{label:"Classic",mode:"PLAIN"},{label:"Markdown",mode:"MARKDOWN"},{label:"Source",mode:"LITERAL"}],JZ=function(){Z.apply(this,arguments);var a=this;this.documentationLinks=p(YR);this.activeSession=p(qu);this.issueReferenceResolver=p(HR);this.commentService=p(mS);this.el=p(Jd);this.userAccess=p(yP);this.butterBar=p(QN);this.errorHandler=p(kO);this.analytics=p(aQ);
this.userPreferencesManager=p(dR);this.issueDetailsBrain=p(UQ);this.editIssueService=p(DS);this.issuePermissionService=p(WQ);this.commentHistoryDialogService=p(TY);this.issueCommentDialogsService=p(yY);this.dateFormatter=p(qS);this.paths=p(mW);this.domSafe=p(iR);this.eventsForIssueFridge=p(IP);this.isSummarized=!1;this.userToLossyEmail=xm;this.issueId$=new wf(1);this.distinctIssueId$=this.issueId$.pipe(pf());this.event$=new wf(1);this.deobfuscatedEvent$=new Nj(void 0);this.isCommentEvent=ho;this.isNonObfuscatedEmail=
$n;this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingModeOverride$=new Nj(void 0);this.formattingMode$=le({event:this.event$,formattingModeOverride:this.formattingModeOverride$}).pipe(A(function(b){var c=b.event;return(b=b.formattingModeOverride)?b:c.formattingMode&&c.formattingMode!=="UNSPECIFIED_FORMATTING_MODE"?c.formattingMode:"PLAIN"}));this.commentRetentionOverride$=new Nj(null);this.wasSummarized$=
new Nj(!1);this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){return KFd.map(function(c){return{type:"select",action:function(){a.formattingModeOverride$.next(c.mode)},label:c.label,selected:b===c.mode}})}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.canonicalIssueId$=this.issueDetailsBrain.canonicalIssueId$;this.canEditComment$=this.event$.pipe(Af(function(b){return a.issuePermissionService.canEditComment$(b)}),xf({refCount:!0,
bufferSize:1}));this.commentHistoryEnabled=this.activeSession.getFlag("enableCommentHistoryUi");this.commentReactionsEnabled=this.activeSession.isInternalSession();this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(Af(function(b){return a.editIssueService.editableIssue$(b)}));this.modifiedDateDisplay$=this.event$.pipe(A(function(b){return new Date(b.modifiedDate)}),
Af(function(b){return Fnd(a.dateFormatter,b)}));this.ariaLabelHeading$=le([this.event$,this.modifiedDateDisplay$]).pipe(A(function(b){var c=m(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(um(b.userPerformingActionUser));d.push("Modified: "+c);b=d.join(", ")}return b}));this.ReactionType=ecd;this.upvoteReactionCount$=this.event$.pipe(A(function(b){var c,d,e;return(e=(c=b.commentReactions)==
null?void 0:(d=c.get("UPVOTE"))==null?void 0:d.count)!=null?e:0}));this.upvoteReactionCountDisplayString$=this.upvoteReactionCount$.pipe(A(function(b){return b&&b!==0?b>999?"999+":String(b):null}));this.noUpvoteReactions$=this.upvoteReactionCount$.pipe(A(function(b){return b===0}));this.commentReactionsHovercardConfig=Object.assign({},new HK,{position:[O8c]});this.commentReactionIsSaving=!1;this.FormattingMode=Um;this.commentActionMenuItems$=le({event:this.event$,isDisplayCommentFormatLiteral:this.isDisplayCommentFormatLiteral$,
formattingModeMenuItems:this.formattingModeMenuItems$,canEditComment:this.canEditComment$,canDeleteComment:this.event$.pipe(Af(function(b){return a.issuePermissionService.canDeleteComment(b)})),canUndeleteComment:this.event$.pipe(Af(function(b){return a.issuePermissionService.canUndeleteComment(b)})),canonicalIssueId:this.canonicalIssueId$,deobfuscatedEvent:this.deobfuscatedEvent$,canSeeRestrictionSettings:this.issuePermissionService.hasAclToView$,canChangeCommentRetention:this.issuePermissionService.canChangeCommentRetention$,
commentRetentionOverride:this.commentRetentionOverride$}).pipe(A(function(b){var c=b.event;var d=b.isDisplayCommentFormatLiteral;var e=b.formattingModeMenuItems;var f=b.canEditComment;var g=b.canDeleteComment;var k=b.canUndeleteComment;var l=b.canonicalIssueId;var r=b.deobfuscatedEvent;var w=b.canSeeRestrictionSettings;var x=b.canChangeCommentRetention;b=b.commentRetentionOverride;var C=[];if(!a.isCommentEvent(c))return C;d||e&&C.push(Object.assign({},rDd,{items:e}));f&&C.push({type:"action",action:function(){Qtb(a.issueCommentDialogsService,
String(a.issueId),r||c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment",disabled:a.isRedacted()});a.isShowCommentHistoryActionInMenu()&&C.push(Object.assign({},tDd,{action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));!l||a.isDeleted()||a.activeSession.isAnonymous()||C.push({type:"action",action:function(){var J=rs(l,{template_issue:a.issueId,template_comment:c.commentNumber,
do_attribution:!0});a.domSafe.openInNewTab(J);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:a.isRedacted()});a.isDeleted()||a.activeSession.isAnonymous()||C.push({type:"action",action:function(){fCd(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to",disabled:a.isRedacted()});g&&C.push({type:"action",action:function(){kCd(a.issueCommentDialogsService,
String(a.issueId),c.commentNumber,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"});k&&C.push({type:"action",action:function(){hCd(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore comment"});w&&C.push(Object.assign({},sDd,{action:function(){lCd(a.issueCommentDialogsService,String(a.issueId),c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));
if(a.isRestricted(c)&&x&&!a.isDeleted()){var H=b==="COMPONENT_DEFAULT";C.push({type:"action",action:function(){var J=H?"INDEFINITE":"COMPONENT_DEFAULT";mCd(a.issueCommentDialogsService,"comment",J).then(function(O){a.commentActionsMenu.actionsMenuIconButton.focus();O&&a.updateCommentRetention(J)})},label:H?"Match issue retention":"Revert to component retention"})}xob({userIsExternal:!a.isInternalSession,issueIsExternal:a.issueAccessLevel!=="INTERNAL"})&&C.push(Object.assign({},qDd,{action:function(){c.commentNumber==
null&&Xm("unable to buildLegalReportingUrl() correctly without an event.commentNumber");var J,O=yob({bugId:c.issueId,comment:(J=c.commentNumber)!=null?J:0});a.domSafe.openInNewTab(O)}}));return C}));this.eventAsNote$=le([this.deobfuscatedEvent$,this.event$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;b=b||c;var d;return{commentNumber:b.commentNumber,unlinkifiedComment:(d=b.unlinkifiedComment)!=null?d:"",formattedComment:b.formattedComment}}));this.mayReadPii$=this.event$.pipe(Af(function(b){return ho(b)&&
a.isRestricted(b)?pe(function(){var c=zP(a.userAccess,"reader","issues/"+a.issueId+"/comments/"+b.commentNumber);c.catch(function(d){Xm("error: ",d);return!1});return c}):ee(void 0)}));this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(A(function(b){var c;return(c=b.commentFilter)!=null?c:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(A(function(b){return b===
"FULL_HISTORY"}));this.preEventDiffs$=le([this.event$,this.showRecentEventsFirst$]).pipe(A(function(b){var c=m(b);b=c.next().value;return c.next().value?b.postDiffs:b.preDiffs}));this.postEventDiffs$=le([this.event$,this.showRecentEventsFirst$]).pipe(A(function(b){var c=m(b);b=c.next().value;return c.next().value?b.preDiffs:b.postDiffs}));this.hasAclToUpvoteReact$=le([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(A(function(b){var c=m(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$=le([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&c>0&&c<=5}));this.isShowingCommentTimestamp$=this.isFullHistoryPreference$.pipe(A(function(b){return b&&qub(a)&&(a.event.preDiffs.length>0||a.event.postDiffs.length>0)}));this.getCommentNumberLink=function(b){return B5a(a.issueId,
{comment:b})}};Y(JZ,Z);JZ.\u0275dir=Z.\u0275dir;h=JZ.prototype;h.ngOnInit=function(){this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);var a;this.commentRetentionOverride$.next((a=this.event.commentRetention)!=null?a:null)};
h.updateCommentRetention=function(a){var b=this;this.event.commentNumber||lO(this.errorHandler,"Comment number is missing");this.analytics.trackEvent("restrictedContent","updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(Bf(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:c.piiRetention,commentRetentionState:c.piiRetentionState});Pr(b.butterBar,"Comment retention updated",4E3);b.commentRetentionOverride$.next(a===
"INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT")},error:function(){lO(b.errorHandler,"Comment retention update failed")}})};h.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent$.value)b=a.previousValue,a=a.currentValue,b=(b==null?void 0:b.commentVersion)!==(a==null?void 0:a.commentVersion)||(b==null?void 0:b.commentContentVerdict)!==(a==null?void 0:a.commentContentVerdict);b&&this.deobfuscatedEvent$.next(void 0)};
h.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};h.getRestrictedLabel=function(){return UYa(Tp(this.event.commentContentVerdict))};h.isRestricted=function(a){a=Tp(a.commentContentVerdict);switch(a){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:wb(a)}};h.isDeleted=function(){return this.event.commentDeletionStatus==="DELETED"};
h.isRedacted=function(){var a;return((a=this.event)==null?void 0:a.commentRedacted)&&!this.deobfuscatedEvent$.value};
h.loadRestrictedComment=function(){var a=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var b=this.event.commentNumber||0;this.commentService.get(String(this.issueId),b,Tp(this.event.commentContentVerdict)).pipe(nf(1)).subscribe(function(c){a.deobfuscatedEvent$.next(vUa(a.event,c))},function(c){var d;a.butterBar.showWarning("Error showing comment "+b+": "+((d=c.error)==null?void 0:d.message))})};
h.isShowCommentHistoryActionInMenu=function(){return!(!(this.commentHistoryEnabled&&(this.event.commentVersion||0)>0)||this.isRedacted())};var qub=function(a){return ho(a.event)&&a.event.isCommentEvent};JZ.prototype.getSummaryType=function(){return no(this.event)?"GERRIT":"CRITIQUE"};JZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
var hub=function(a){var b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.hasAclToUpvoteReact$),2);if(g.nextAddress!=3){b=g.yieldResult;if(!b)return g.return();a.commentReactionIsSaving=!0;c=jub(a,"UPVOTE");return z(g,a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:(d=a.event.commentNumber)!=null?d:2,reactionType:"UPVOTE",hasReacted:!c}),3)}e=g.yieldResult;a.commentReactionIsSaving=!1;if(!e)return g.return();f=a.event;f.commentReactions=e;a.event$.next(f);
a.eventsForIssueFridge.manualUpdate(a.issueId,function(k){var l;k.events=wUa(k.events,(l=a.event.commentNumber)!=null?l:2,{commentReactions:e})});a.analytics.trackEvent("editIssue","click",c?"removeUpvoteReaction":"addUpvoteReaction");ce(g)})},jub=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},iub=function(a,b){var c;a=(c=a.event.commentReactions)==null?void 0:c.get(b);if(!a)return"Comment reaction button";b=b==="UPVOTE"?
"Thumbs up":"";a.count===1?b+=", "+a.count+" reaction":a.count>1&&(b+=", "+a.count+" reactions");a.hasReacted&&(b+=", reacted");return b};da.Object.defineProperties(JZ.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});JZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(JZ)))(b||JZ)}}();
JZ.\u0275cmp=D({type:JZ,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(hg(IFd,5),hg(JFd,5));if(a&2){var c;lg(c=mg())&&(b.commentActionsMenu=c.first);lg(c=mg())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},standalone:!1,features:[Gf,bx],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,rub,43,32),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[QY,wZ,eU,Kx,Dy,QO,sV,DK,LK,HZ,eT,uZ,EZ,bV,$U,hV,oK,iA,IZ,gB,cB,yFd,zFd,AFd,Lx],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0;margin-bottom:12px}.bv2-event-user[_ngcontent-%COMP%]   b-user-membership-chip[_ngcontent-%COMP%]{margin-left:-8px}.bv2-event-user   .d-cozy[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:10px}.bv2-event-user   .d-compact[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:8px}.summarized-note-button[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-top:8px;margin-left:-22px}.summarized-note-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:8px}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px;margin-right:6px}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   mat-icon[_ngcontent-%COMP%]{margin-right:4px;margin-left:0}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix):focus:enabled:not(.comment-reaction-button[aria-disabled=true]), .gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix):hover:enabled:not(.comment-reaction-button[aria-disabled=true]){box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}[_nghost-%COMP%]   .gmat-mdc-button.mat-mdc-outlined-button.comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]{cursor:default;color:#bdc1c6;color:var(--text-disabled);--private-gmat-button-outlined-stateful-color:var(--text-disabled);--mat-button-outlined-hover-state-layer-opacity:0;--mat-button-outlined-focus-state-layer-opacity:0;--mat-button-outlined-pressed-state-layer-opacity:0}[_nghost-%COMP%]   .gmat-mdc-button.mat-mdc-outlined-button.comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:rgba(26,115,232,.4);color:var(--hover-btn)}.gmat-mdc-button.no-upvote-reactions.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){border:0;margin-right:2px}.gmat-mdc-button.no-upvote-reactions.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   mat-icon[_ngcontent-%COMP%]{margin-right:0;--mat-button-outlined-icon-offset:0}.comment-timestamp[_ngcontent-%COMP%]{-webkit-box-flex:0.92;-webkit-flex:0.92;-moz-box-flex:0.92;-ms-flex:0.92;flex:0.92}.comment-timestamp.hasCommentTimestamp[_ngcontent-%COMP%]{margin-top:14px}.comment-number[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});var KZ=function(){};KZ.prototype.watch=function(a,b){b=b===void 0?document.documentElement:b;return oe(pe(function(){return ee(document.getElementById(a))}),vZa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(A(function(){return document.getElementById(a)}))).pipe(we(Qm),nf(1))};KZ.\u0275fac=function(a){return new (a||KZ)};KZ.\u0275prov=Fc({token:KZ,factory:KZ.\u0275fac,providedIn:"root"});var LZ=function(){this.idWatch=p(KZ)},LFd=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(nf(1),A(function(g){g.scrollIntoView();if(g=document.getElementById(e))g.scrollTop-=f}))};LZ.\u0275fac=function(a){return new (a||LZ)};LZ.\u0275prov=Fc({token:LZ,factory:LZ.\u0275fac,providedIn:"root"});var MFd={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},NFd=RegExp("(comment|attachment)([0-9]+)"),MZ=function(){Z.apply(this,arguments);var a=this;this.formattedCommentsForIssueFridge=p(KP);this.preferences=p(dR);this.eventsForIssue=p(IP);this.dynamicScrollIntoView=p(LZ);this.bLocation=p(ZT);this.elementRef=p(Jd);this.routerEvents=p($P);this.analytics=p(aQ);this.teamFridge=p(PQ);this.issueFullFridge=p(cQ);this.activeSession=p(qu);this.issueId$=new wf(1);this.internalIssueId=
"";this.eventDisplayModes=MFd;this.internalEvents=[];this.showRecentEventsFirst=null;this.currentFilterLevel="FULL_HISTORY";this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.events$=new wf(1);this.commentsToFormat$=new wf(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.authoritativeEmails=new Set;this.authoritativeEmails$=this.preferences.commentFilterPreferences$.pipe(Af(function(b){var c=new Set;return b.commentFilter!==
"TEAM_AND_ASSIGNEE"?ee(c):a.issue$.pipe(Af(function(d){var e;if((d==null?void 0:(e=d.snapshot[0].assigneeUser)==null?void 0:e.emailAddress)!==void 0){var f;c.add(d==null?void 0:(f=d.snapshot[0].assigneeUser)==null?void 0:f.emailAddress)}var g;if((d==null?void 0:(g=d.snapshot[0].verifierUser)==null?void 0:g.emailAddress)!==void 0){var k;c.add(d==null?void 0:(k=d.snapshot[0].verifierUser)==null?void 0:k.emailAddress)}var l;if((d==null?void 0:(l=d.aggregatedData)==null?void 0:l.teamId)===void 0)return ee(c);
var r;return OFd(a,String(d==null?void 0:(r=d.aggregatedData)==null?void 0:r.teamId)).pipe(Af(function(w){w=m(w);for(var x=w.next();!x.done;x=w.next())c.add(x.value);return ee(c)}))}))}));this.isLoading$=le([this.formattedCommentsForIssueFridge.thinking$,this.eventsForIssue.thinking$]).pipe(of(0),A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b||c}));this.sendAnalytics=MB(function(){var b=[].concat(q(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=MB(function(){var b=a.bLocation.hash();if(b&&a.lastHashScrolled!==b&&a.internalEvents){var c,d=m((c=b.match(NFd))!=null?c:[]);d.next();c=d.next().value;var e=d.next().value;d=c;var f=e;if(b==="lastcomment"){d=AUa(a.internalEvents);if(d===-1)return;f=String(d);d="comment"}if(d&&f){c=a.internalEvents.findIndex(function(k){return k.commentNumber===Number(f)});e=c>-1;var g=a.internalEvents.flatMap(function(k){return k.attachments}).some(function(k){return k.attachmentId===
f});if(e||g)e&&a.eventDisplayMode.get(c)==="folded"&&(a.eventDisplayMode.set(c,"full"),PFd(a,c)),g&&(c=a.internalEvents.findIndex(function(k){return k.attachments.findIndex(function(l){return l.attachmentId===f})>-1}),a.eventDisplayMode.get(c)||(a.eventDisplayMode.set(c,"full"),PFd(a,c))),LFd(a.dynamicScrollIntoView,{elementId:d+f,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Cf(function(){a.lastHashScrolled=b}),Bf(a.destroyed$)).subscribe()}else LFd(a.dynamicScrollIntoView,
{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Cf(function(){a.lastHashScrolled=b}),Bf(a.destroyed$)).subscribe()}},200)};Y(MZ,Z);MZ.\u0275dir=Z.\u0275dir;
MZ.prototype.ngOnInit=function(){var a=this;this.authoritativeEmails$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.authoritativeEmails=b});this.preferences.showRecentEventsFirst$.pipe(we(Qm),pf(),Bf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,QFd(a))});le([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).pipe(Bf(this.destroyed$)).subscribe(function(b){b=m(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,RFd(a,c,d.commentFilter,e),SFd(a),c=m(a.commentNumbersDisplayed.values()),d=c.next();!d.done;d=c.next())b.push(a.internalIssueId+"-"+d.value);else for(c=m(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(we(Qm),Af(function(b){return a.formattedCommentsForIssueFridge.watchSet(b)}),Bf(this.destroyed$)).subscribe(function(b){TFd(a,
b)});this.routerEvents.navigationEnd$.pipe(Bf(this.destroyed$)).subscribe(function(){a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()})};
var TFd=function(a,b){for(var c={i$jscomp$991:0};c.i$jscomp$991<a.internalEvents.length;c={i$jscomp$991:c.i$jscomp$991},c.i$jscomp$991++)if(xub(a.eventDisplayMode.get(c.i$jscomp$991))&&ho(a.internalEvents[c.i$jscomp$991])){var d=b.find(function(e){return function(f){return f.id.commentId===a.internalEvents[e.i$jscomp$991].commentNumber}}(c));d&&(a.internalEvents[c.i$jscomp$991]=Object.assign({},a.internalEvents[c.i$jscomp$991],{formattedComment:d.formattedComment.formattedComment,formattingMode:d.formattedComment.formattingMode}))}QFd(a)},
RFd=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=UFd(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");ho(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=VFd(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),ho(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=
b[c].commentNumber)!=null?e:0));break;case "HUMAN_ONLY":WFd(a,b,function(f){var g;return(g=aUa(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;case "TEAM_AND_ASSIGNEE":WFd(a,b,function(f){var g;return(g=d.has(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),ho(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}a.sendAnalytics()},SFd=function(a){if(a.currentFilterLevel!==
"FULL_HISTORY")for(var b=0;b<a.internalEvents.length;b++){var c=a.internalEvents[b];ho(c)&&(mo(c)||c!=null&&c.formattingMode&&c.formattingMode!=="MARKDOWN"&&no(c))&&(a.activeSession.getFlag("enableCLsInHumanFilterView")||a.currentFilterLevel!=="HUMAN_ONLY"&&a.currentFilterLevel!=="TEAM_AND_ASSIGNEE")&&(a.eventDisplayMode.set(b,"summarized"),PFd(a,b))}},WFd=function(a,b,c){for(var d=0,e=0,f=0,g=0;g<b.length;g++){var k=c(b[g]);a.eventDisplayMode.set(g,k?"full":"folded");if(k){if(d>0||e>0)a.foldedCommentsCounts.has(f)||
a.foldedCommentsCounts.set(f,{commentFoldedCount:d,eventFoldedCount:e});e=d=0;ho(b[g])&&b[g].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add((k=b[g].commentNumber)!=null?k:0))}else{if(ho(b[g])&&b[g].commentNumber||uUa(b[g]))d++,f=g;e++}}if(d>0||e>0)b=AUa(a.internalEvents)===1?a.showRecentEventsFirst?0:a.internalEvents.length:XFd(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},XFd=function(a){return rba(a.internalEvents,function(b){var c;return(c=b.isMajorEvent)!=
null?c:!1})},UFd=function(a){return ho(a)&&a.isCommentEvent||uUa(a)||a.preDiffs.length>0||a.postDiffs.length>0},VFd=function(a){var b;return((b=a.isMajorEvent)!=null?b:!1)&&(ho(a)&&a.isCommentEvent||uUa(a)||a.preDiffs.length>0||a.postDiffs.length>0)},QFd=function(a){if(!(a.internalEvents.length<2)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=YFd(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=YFd(a,a.internalEvents).modifiedDate){a.internalEvents.reverse();
var b;RFd(a,a.internalEvents,(b=a.currentFilterLevel)!=null?b:"FULL_HISTORY",a.authoritativeEmails);SFd(a)}a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()}},YFd=function(a,b){var c;return(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))!=null?c:b[1]};MZ.prototype.trackEventByVersion=function(a,b){return b.version};
var PFd=function(a,b){if(a.foldedCommentsCounts.has(b)){var c,d,e=(d=(c=a.foldedCommentsCounts.get(b))==null?void 0:c.commentFoldedCount)!=null?d:0,f,g;c=(g=(f=a.foldedCommentsCounts.get(b))==null?void 0:f.eventFoldedCount)!=null?g:0;e>1&&a.foldedCommentsCounts.set(b-1,{commentFoldedCount:e-1,eventFoldedCount:c-1});a.foldedCommentsCounts.delete(b)}else for(e=new Map([].concat(q(a.foldedCommentsCounts.entries())).sort(function(k,l){return k[0]-l[0]})),e=m(e.entries()),f=e.next();!f.done;f=e.next())if(g=
m(f.value),f=g.next().value,g=g.next().value,f>b){if(g.commentFoldedCount-(f-b)===0)a.foldedCommentsCounts.set(f,{commentFoldedCount:g.commentFoldedCount-1,eventFoldedCount:g.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(ho(a.internalEvents[c])||uUa(a.internalEvents[c]))&&e++;a.foldedCommentsCounts.set(f,{commentFoldedCount:e,eventFoldedCount:f-b});a.foldedCommentsCounts.set(b-1,{commentFoldedCount:g.commentFoldedCount-e-1,eventFoldedCount:g.eventFoldedCount-(f-b)-1});a.foldedCommentsCounts.delete(b)}break}},
xub=function(a){return a==="summarized"||a==="full"},OFd=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(A(function(d){if(d!==void 0){d=m(d.members.map(function(f){return f.user.emailAddress}).filter(Qm));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
da.Object.defineProperties(MZ.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(q(b));b=Object.assign({},b[0],{attachments:[],commentNumber:void 0,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!z_a(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
MZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(MZ)))(b||MZ)}}();
MZ.\u0275cmp=D({type:MZ,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},standalone:!1,features:[Gf],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,
sub,2,0,"aside",0),T(1,"async"),K(2,"div",1),Of(3,yub,2,2,null,null,b.trackEventByVersion,!0),L(),F(5,zub,2,0,"aside",0),T(6,"async"));a&2&&(G(b.showRecentEventsFirst&&U(1,2,b.isLoading$)?0:-1),B(3),Pf(b.internalEvents),B(2),G(!b.showRecentEventsFirst&&U(6,4,b.isLoading$)?5:-1))},dependencies:[JZ,gB,cB,$T,Lx],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 NZ=function(){Z.apply(this,arguments);this.preferences=p(dR);this.activeSession=p(qu);this.clearcut=p(UP);this.analytics=p(aQ);this.selectedFilter=null;var a=this.activeSession.isInternalSession();Cub.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=ZFd;this.showRecentEventsFirst=!1};Y(NZ,Z);NZ.\u0275dir=Z.\u0275dir;
NZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(we(Qm),Bf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=Fub(b.commentFilter):(a.selectedFilter=eR(a.preferences).showFullHistory?Bub:Cub,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(Bf(a.destroyed$)).subscribe())})};
NZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(NZ)))(b||NZ)}}();
NZ.\u0275cmp=D({type:NZ,selectors:[["b-event-stream-header"]],standalone:!1,features:[Gf],decls:13,vars:4,consts:[[1,"flex-kids-x","flex-spread"],[1,"uppercase"],[1,"flex-kids-x"],["appearance","outline","subscriptSizing","dynamic",1,"filter-select"],[3,"valueChange","selectionChange","value"],[1,"filter-option",3,"value"],["type","button","mat-stroked-button","","color","primary",1,"sort-order-button",3,"click"],["matButtonIcon","",1,"sort-order-arrow","icon-xs",3,"svgIcon"],[1,"filter-option-name"],
[1,"filter-option-description"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h4",1),Q(2,"Comments"),L(),K(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4),Cg("valueChange",function(c){Bg(b.selectedFilter,c)||(b.selectedFilter=c);return c}),N("selectionChange",function(c){c=c.value;b.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(Bf(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click",c.commentFilterType)}),K(6,"mat-select-trigger"),Q(7),L(),
Of(8,Aub,5,3,"mat-option",5,Nf),L()(),K(10,"button",6),N("click",function(){var c=!b.showRecentEventsFirst;hhd(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(Bf(b.destroyed$)).subscribe()}),M(11,"mat-icon",7),Q(12),L()()());a&2&&(B(5),Ag("value",b.selectedFilter),B(2),yg(b.selectedFilter==null?null:b.selectedFilter.displayName),B(),Pf(b.filters),B(3),I("svgIcon",b.showRecentEventsFirst?"arrow-upward":"arrow-downward"),B(),S(" ",b.showRecentEventsFirst?"Newest first":
"Oldest first"," "))},dependencies:[Dy,gB,cB,BD,MD,vU,MH,NH,cA],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 Bub={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},Cub={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},Dub={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},Eub={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},ZFd=[Bub,Cub,Dub,Eub];var OZ=function(){this.admins=[]};OZ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=vm(this.hotlist.adminUsers)};OZ.\u0275fac=function(a){return new (a||OZ)};
OZ.\u0275cmp=D({type:OZ,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&&(K(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),L()(),K(6,"ul")(7,"li"),Q(8),L(),K(9,"li"),Q(10),L()(),K(11,"div")(12,"p"),Q(13),L()()()()());a&2&&(B(4),I("href",b.url,Pe),B(),yg(b.hotlist.name),B(3),S("ID: ",b.hotlist.hotlistId),B(2),
zg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),yg(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 PZ=function(){this.ROUTES=ps;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new XP};PZ.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};PZ.\u0275fac=function(a){return new (a||PZ)};
PZ.\u0275cmp=D({type:PZ,selectors:[["b-hotlist-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("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,Hub,8,9);a&2&&G(b.hotlist?0:-1)},dependencies:[Dy,DK,LK,OZ,gB,eB],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 QZ=function(){var a=this;this.hotlists=p(gP);this.userAccess=p(yP);this.id$=new wf(1);this.removeHotlist=new XP;this.removable=!0;this.removable$=this.id$.pipe(Af(function(b){return a.removable!=="check-acl"?ee(a.removable):zP(a.userAccess,"appender","hotlists/"+b)}));this.hotlist$=this.id$.pipe(Af(function(b){return a.hotlists.watch(b)}));this.isDisabled$=le([this.id$,this.id$.pipe(Af(this.hotlists.isSaving$))]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b==null?!1:
c?!0:!1}))};da.Object.defineProperties(QZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});QZ.\u0275fac=function(a){return new (a||QZ)};
QZ.\u0275cmp=D({type:QZ,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&&(K(0,"b-hotlist-chip",0),T(1,"async"),T(2,"async"),T(3,"async"),N("removeHotlist",function(){b.idInternal==null?Xm("Missing id"):b.removeHotlist.emit()}),L());if(a&2){var c;I("hotlist",U(1,3,b.hotlist$))("disabled",U(2,5,b.isDisabled$)===!0)("removable",
(c=U(3,7,b.removable$))!=null?c:!1)}},dependencies:[PZ,Lx],encapsulation:2,changeDetection:0});var $Fd=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],aGd=new fd("MAT_CARD_CONFIG"),bGd=function(){var a;this.appearance=((a=p(aGd,{optional:!0}))==null?void 0:a.appearance)||"raised"};bGd.\u0275fac=function(a){return new (a||bGd)};
bGd.\u0275cmp=D({type:bGd,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,b){a&2&&wg("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&&(cg(),dg(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 cGd=function(){};cGd.\u0275fac=function(a){return new (a||cGd)};cGd.\u0275dir=df({type:cGd,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});var dGd=function(){this.align="start"};dGd.\u0275fac=function(a){return new (a||dGd)};
dGd.\u0275dir=df({type:dGd,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-mdc-card-actions-align-end",b.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]});var eGd=function(){};eGd.\u0275fac=function(a){return new (a||eGd)};
eGd.\u0275cmp=D({type:eGd,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&&(cg($Fd),dg(0),Rf(1,"div",0),dg(2,1),Sf(),dg(3,2))},encapsulation:2,changeDetection:0});var RZ=function(){Z.apply(this,arguments);this.onAccept=new XP;this.onDismiss=new XP};Y(RZ,Z);RZ.\u0275dir=Z.\u0275dir;RZ.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId};RZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(RZ)))(b||RZ)}}();
RZ.\u0275cmp=D({type:RZ,selectors:[["b-hotlist-recommendation-card"]],inputs:{hotlist:"hotlist"},outputs:{onAccept:"onAccept",onDismiss:"onDismiss"},standalone:!1,features:[Gf],decls:16,vars:3,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","hotlist-recommendation-card"],[1,"title"],[1,"name"],["target","_blank",3,"href"],[1,"description"],[1,"actions"],["type","button","mat-button","","color","primary",1,"medium","accept-button",3,"click"],["type","button","mat-button","","color",
"basic",1,"medium","dismiss-button",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"mat-card-header",2),Q(3," Suggested hotlist"),L(),K(4,"mat-card-content")(5,"h3",3)(6,"a",4),Q(7),L()(),K(8,"div",5)(9,"p"),Q(10),L()()(),K(11,"mat-card-actions",6)(12,"button",7),N("click",function(){return b.onAccept.emit(b.hotlist.hotlistId)}),Q(13,"Accept"),L(),K(14,"button",8),N("click",function(){return b.onDismiss.emit()}),Q(15,"Dismiss"),L()()()());a&2&&(B(6),I("href",b.url,Pe),B(),yg(b.hotlist.name),
B(3),yg(b.hotlist.description))},dependencies:[gB,cB,dGd,cGd,eGd],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 SZ=function(){this.issueFullFridge=p(cQ);this.recommendationsApi=p(hO);this.issueUserEventsService=p(fW);this.analytics=p(aQ);this.issueRecommendationFridge=p(eQ);this.ROUTES=ps;this.updateHotlistsInstantly=this.showHovercard=!0;this.onAccept=new XP;this.hovercardConfig={showDelay:250,hideDelay:250,position:[M8c],triggerKey:[]}};SZ.prototype.getAriaLabel=function(a){return"suggested hotlist: "+a.name};
SZ.prototype.addHotlist=function(a){var b=this;return y(function(c){return c.nextAddress==1?b.issueId==null?c.return():b.updateHotlistsInstantly?z(c,b.issueFullFridge.updateHotlists(b.issueId,[a.toString()],[]),2):c.jumpTo(2):c.nextAddress!=4?(b.onAccept.emit(),b.analytics.trackEvent("hotlistRecommendation","accept",b.analyticsLabel),z(c,b.recommendationsApi.createUserEngagements([{parent:b.recommendationId,userEngagement:{type:"ACCEPTED"}}]),4)):z(c,ie(b.issueUserEventsService.logIssueUserEventForRecommendation(b.issueId,
"FEATURE_HOTLIST","EVENT_TYPE_ACCEPT",b.recommendationId)),0)})};
var Iub=function(a){return y(function(b){if(b.nextAddress==1){if(a.issueId==null)return b.return();a.analytics.trackEvent("hotlistRecommendation","dismiss",a.analyticsLabel);return z(b,a.recommendationsApi.createUserEngagements([{parent:a.recommendationId,userEngagement:{type:"REJECTED"}}]),2)}return b.nextAddress!=3?z(b,ie(a.issueUserEventsService.logIssueUserEventForRecommendation(a.issueId,"FEATURE_HOTLIST","EVENT_TYPE_REJECT",a.recommendationId)),3):z(b,a.issueRecommendationFridge.poke(a.issueId+
"-HOTLIST"),0)})};SZ.\u0275fac=function(a){return new (a||SZ)};
SZ.\u0275cmp=D({type:SZ,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,Jub,11,10);a&2&&G(b.hotlist?0:-1)},dependencies:[Dy,gB,eB,DK,LK,RZ],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 fGd=[[["","before",""]]],Nub=function(a,b){return b.name},TZ=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(qu);this.issueFullFridge=p(cQ);this.issueInteractionsTracking=p(zS);this.errorHandler=p(kO);this.eventsForIssueFridge=p(IP);this.liveAnnouncer=p(Yy);this.hotlistPickerService=p(IY);this.issueRecommendationFridge=p(eQ);this.analytics=p(aQ);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=Vr;this.issueId$=new wf(1);this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));
this.hotlistIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.recommendations$=this.issueId$.pipe(Af(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),A(function(b){return((b==null?void 0:b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Qm).slice(0,2)}));this.textOfHotlistBtn$=this.hotlistIds$.pipe(A(function(b){return b.length}),A(function(b){return b<=5?"Add Hotlist":""}))};Y(TZ,Z);
TZ.\u0275dir=Z.\u0275dir;TZ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.hotlistIds$.subscribe(function(){if(a.isInternalSession){var b=zr(a.issueId$);a.issueRecommendationFridge.poke(b+"-HOTLIST")}}));this.subscriptions.add(this.recommendations$.subscribe(function(b){b.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","IDP")}))};TZ.prototype.openHotlistModal=function(){var a=this;return y(function(b){return z(b,FCd(a.hotlistPickerService,a.issue$),0)})};
var Kub=function(a,b){var c,d;return y(function(e){switch(e.nextAddress){case 1:return z(e,ie(a.issueId$),2);case 2:return c=e.yieldResult,Rr(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1}),Yd(e,3,4),z(e,a.issueFullFridge.removeHotlists(c,[String(b)]),6);case 6:return z(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Zd(e);a.eventsForIssueFridge.poke(c);ae(e,0);break;case 3:d=be(e),mO(a.errorHandler,d),e.jumpTo(4)}})};
da.Object.defineProperties(TZ.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});TZ.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(TZ)))(b||TZ)}}();
TZ.\u0275cmp=D({type:TZ,selectors:[["b-issue-hotlists"]],inputs:{issueId:"issueId"},standalone:!1,features:[Gf],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&&(cg(fGd),F(0,Qub,11,11,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.hotlistIds$))?0:-1,c)}},dependencies:[Dy,QZ,SZ,mU,gB,cB,Lx],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 gGd=["issueTitleEl"],hGd=["issueTitleInputEl"],UZ=function(){this.issuePermissionService=p(WQ);this.issueFullFridge=p(cQ);this.bannedWordsChecker=p(SW);this.disabled=!1;this.titleChanged=new XP;this.isSaving=this.isEditMode=!1},Rub=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
UZ.prototype.saveTitle=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return(c=(b=a.issueTitleInputEl)==null?void 0:b.nativeElement.value)&&a.isModified(c)?z(e,a.bannedWordsChecker.check(c,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",a.componentId),3):e.jumpTo(2);if(e.nextAddress!=2){d=e.yieldResult;if(!d)return a.issueTitleInputEl.nativeElement.focus(),e.return();iGd(a,c.trim());a.bannedWordsChecker.reset()}a.isEditMode=!1;ce(e)})};
var iGd=function(a,b){y(function(c){a.isSaving=!0;return z(c,ie(Dhd(a.issueFullFridge,a.issueId,b)).finally(function(){a.isSaving=!1;a.titleChanged.next(b)}),0)})};UZ.prototype.isModified=function(a){return a!==this.titlePlain};UZ.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||this.saveTitle()};
da.Object.defineProperties(UZ.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=a!=null?a:void 0;this.titleTruncated=U7a(a,300);this.isLongTitle=a==null?!1:a.length>=300}}});UZ.\u0275fac=function(a){return new (a||UZ)};
UZ.\u0275cmp=D({type:UZ,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(hg(gGd,5),hg(hGd,5));if(a&2){var c;lg(c=mg())&&(b.issueTitleEl=c.first);lg(c=mg())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",issueId:"issueId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{titleChanged:"titleChanged"},standalone:!1,features:[Gg([SW])],decls:6,vars:7,consts:[["issueTitleInputEl",""],["issueTitleEl",""],[1,"issue-title-container","flex-kids-x"],["subscriptSizing",
"dynamic",1,"full-width",3,"banned-words-warning"],[1,"heading-m"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small","align-self-center",3,"disabled"],[1,"banned-words-warning","break-word"],["subscriptSizing","dynamic",1,"full-width"],["matInput","","aria-label","Enter a new title",1,"heading-m","full-width",3,"keydown","blur","value"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",
1,"small","align-self-center",3,"click","disabled"],["svgIcon","edit-outline",1,"icon-xxs"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,Sub,4,5,"mat-form-field",3)(2,Tub,3,2,"h3",4),F(3,Uub,2,1,"button",5),L(),F(4,Vub,4,1,"p",6),T(5,"async"));a&2&&(wg("full-width",b.isEditMode),B(),G(b.isEditMode?1:2),B(2),G(b.hasAclToEdit?3:-1),B(),G(U(5,5,
b.bannedWordsChecker.showWarning$)?4:-1))},dependencies:[Dy,gB,eB,oK,iA,BD,MD,PD,zE,Lx],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}[_nghost-%COMP%]     mat-form-field{min-width:200px;max-width:100%;padding-bottom:8px}[_nghost-%COMP%]     mat-form-field .mat-mdc-text-field-wrapper{padding-left:0}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix{min-height:initial;padding:0;height:22px}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix .mat-mdc-form-field-input-control{font-size:1.125rem}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled){background-color:rgba(0,0,0,0)}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--text-high-contrast)}.issue-title-container[_ngcontent-%COMP%]{display:inline-flex}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}"],
changeDetection:0});var jGd={FOCUS_SYNC:"FOCUS_SYNC",REMAIN_ACTIVE:"REMAIN_ACTIVE"},kGd={DISABLED:"DISABLED",INTERNAL_SORT:"INTERNAL_SORT",EXTERNAL_SORT:"EXTERNAL_SORT"},lGd={ALL:"ALL",NONE:"NONE"},mGd=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"]]),nGd=[{type:"TITLE"},{type:"TYPE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],oGd=[{type:"TITLE"},{type:"TYPE"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],pGd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],
qGd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"PROGRESS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],rGd=[{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"}],sGd={modes:{assignee:"avatar-if-open",modifiedTime:"relativepast"},rowLimit:15},tGd={showActiveIndicator:!0,enableDragging:!0,showMenu:!0,modes:{assignee:"avatar-if-open"},hideColumnHeaders:!0};var VZ=function(){this.liveAnnouncer=p(Yy);this.originalItems=[];this.allowRemoval=!1;this.itemsOutput=new XP;this.hasChanges=new XP(!1);this.items=[];this.grabbed=!1};VZ.prototype.ngOnInit=function(){this.originalItems.forEach(function(a){a.enabled===void 0&&(a.enabled=!0);return a});this.items=pm(this.originalItems)};var uGd=function(a){a.items.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};
VZ.prototype.drop=function(a){as(this.items,a.previousIndex,a.currentIndex);this.detectChanges()};var Xub=function(a,b){return b>0?(as(a.items,b,b-1),a.detectChanges(),!0):!1},Yub=function(a,b){return b<a.items.length-1?(as(a.items,b,b+1),a.detectChanges(),!0):!1};VZ.prototype.trackByFn=function(){return-1};VZ.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.")};
VZ.prototype.onKeyDown=function(a,b){if(!(a.target instanceof HTMLInputElement&&a.target.type==="checkbox"))switch(a.key){case " ":a.preventDefault();vGd(this,b);break;case "Tab":this.grabbed&&vGd(this,b);break;case "ArrowUp":wGd(this,a);break;case "ArrowDown":wGd(this,a)}};
var vGd=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."))},wGd=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&a.grabbedIndex!==void 0){if(b.key==="ArrowUp"){if(Xub(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else Yub(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."))}}};VZ.prototype.detectChanges=function(){var a=!mm(this.items,this.originalItems);this.itemsOutput.emit(this.items);this.hasChanges.emit(a)};VZ.\u0275fac=function(a){return new (a||VZ)};
VZ.\u0275cmp=D({type:VZ,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&&(K(0,"ol",0),N("cdkDropListDropped",function(c){return b.drop(c)}),Of(1,Zub,10,8,"li",1,b.trackByFn,!0),L());a&2&&(B(),Pf(b.items))},dependencies:[Dy,NV,MV,KV,gB,eB,aI],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 xGd=function(){this.data=p(PA);this.dialogRef=p(NA);this.originalColumns=this.data.columnItems;this.columns=[].concat(q(this.originalColumns));this.hasChanges=!1};xGd.prototype.onClose=function(){this.dialogRef.close(this.columns)};xGd.\u0275fac=function(a){return new (a||xGd)};
xGd.\u0275cmp=D({type:xGd,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();K(0,"div",1)(1,"div",2)(2,"h1",3);Q(3," Customize columns for triage view ");L()()();K(4,"div",4)(5,"b-reorder-items",5,0);N("items",function(d){u(c);return v(b.columns=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=d)});L()();K(7,"div",6)(8,"button",7);N("click",function(){u(c);return v(b.dialogRef.close())});Q(9," Cancel ");L();K(10,"button",8);N("click",function(){u(c);return v(b.onClose())});Q(11," Save ");L()()}a&2&&(B(5),
I("originalItems",b.originalColumns)("allowRemoval",!0),B(5),I("disabled",!b.hasChanges))},dependencies:[VZ,gB,cB,TA,VA,UA],encapsulation:2,changeDetection:0});var WZ=function(){this.JOINING_ARROW="\u2192";this.showIcon=!0};da.Object.defineProperties(WZ.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(a!=null){var b=WUa(1049928)(a);this.startDate=co(b==null?void 0:b.dateValue);a=WUa(1049953)(a);this.endDate=co(a==null?void 0:a.dateValue);this.startDateShortStr=iUa(this.startDate);this.endDateShortStr=iUa(this.endDate)}}}});WZ.\u0275fac=function(a){return new (a||WZ)};
WZ.\u0275cmp=D({type:WZ,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,dvb,5,3,"div",0);a&2&&G(b.startDate||b.endDate?0:-1)},dependencies:[Dy,Ox],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],
changeDetection:0});var XZ=function(){this.makePie=fvb;this.total=this.closed=0;this.useXofYLabel=!1};da.Object.defineProperties(XZ.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.total=a.descendantCount,this.closed=this.total-a.openDescendantCount)}}});XZ.\u0275fac=function(a){return new (a||XZ)};
XZ.\u0275cmp=D({type:XZ,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,ovb,7,14,"div",0);a&2&&G(b.total>0?0:-1)},dependencies:[Rx],encapsulation:2,changeDetection:0});var yGd=Xn().user.email,ot={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===yGd&&ko(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===yGd:!1},queryFragment:"assignee:me",
tooltip:"Issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return ko(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:EUa,queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return DUa(a,"ASSIGNED")||DUa(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)&&ko(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&&ko(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(RUa(a))&&ko(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 $Ua(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 zGd=function(){this.changes=new sf};zGd.\u0275fac=function(a){return new (a||zGd)};zGd.\u0275prov=Fc({token:zGd,factory:zGd.\u0275fac,providedIn:"root"});var AGd=new fd("MAT_SORT_DEFAULT_OPTIONS"),YZ=function(a){this._defaultOptions=a;this._initializedStream=new wf(1);this.sortables=new Map;this._stateChanges=new sf;this.start="asc";this._direction="";this.disabled=!1;this.sortChange=new Ui;this.initialized=this._initializedStream};h=YZ.prototype;h.register=function(a){this.sortables.set(a.id,a)};h.deregister=function(a){this.sortables.delete(a.id)};
h.sort=function(a){if(this.active!=a.id)this.active=a.id,this.direction=a.start?a.start:this.start;else{if(a){var b,c,d,e=(d=(c=a==null?void 0:a.disableClear)!=null?c:this.disableClear)!=null?d:!((b=this._defaultOptions)==null||!b.disableClear);b=["asc","desc"];(a.start||this.start)=="desc"&&b.reverse();e||b.push("");a=b.indexOf(this.direction)+1;a>=b.length&&(a=0);a=b[a]}else a="";this.direction=a}this.sortChange.emit({active:this.active,direction:this.direction})};h.ngOnInit=function(){this._initializedStream.next()};
h.ngOnChanges=function(){this._stateChanges.next()};h.ngOnDestroy=function(){this._stateChanges.complete();this._initializedStream.complete()};da.Object.defineProperties(YZ.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}}});YZ.\u0275fac=function(a){return new (a||YZ)(Ye(AGd,8))};
YZ.\u0275dir=df({type:YZ,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",$g],disabled:[2,"matSortDisabled","disabled",$g]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[bx]});var BGd=["*",[["","matSortHeaderIcon",""]]],ZZ=function(){this._intl=p(zGd);this._sort=p(YZ,{optional:!0});this._columnDef=p("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});this._changeDetectorRef=p(ux);this._focusMonitor=p(Hy);this._elementRef=p(Jd);this._ariaDescriber=p($y,{optional:!0});this._animationsDisabled=ni();this._recentlyCleared=ng.apply(null,[null].concat(q([])));this.arrowPosition="after";this.disabled=!1;this._sortActionDescription="Sort";p($h).load(Yz);var a=p(AGd,{optional:!0});if(a==
null?0:a.arrowPosition)this.arrowPosition=a==null?void 0:a.arrowPosition};h=ZZ.prototype;h.ngOnInit=function(){var a=this;!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._sort.register(this);this._renderChanges=ve(this._sort._stateChanges,this._sort.sortChange).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
h.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(){Promise.resolve().then(function(){return a._recentlyCleared.set(null)})})};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);var a;(a=this._renderChanges)==null||a.unsubscribe();if(this._sortButton){var b;(b=this._ariaDescriber)==null||bz(b,this._sortButton,this._sortActionDescription)}};
h._toggleOnInteraction=function(){if(!this._isDisabled()){var a=this._isSorted(),b=this._sort.direction;this._sort.sort(this);this._recentlyCleared.set(a&&!this._isSorted()?b:null)}};h._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)a.preventDefault(),this._toggleOnInteraction()};h._isSorted=function(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")};h._isDisabled=function(){return this._sort.disabled||this.disabled};
h._getAriaSortAttribute=function(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"};h._renderArrow=function(){return!this._isDisabled()||this._isSorted()};h._updateSortActionDescription=function(a){if(this._sortButton){var b;(b=this._ariaDescriber)==null||bz(b,this._sortButton,this._sortActionDescription);var c;(c=this._ariaDescriber)==null||az(c,this._sortButton,a)}this._sortActionDescription=a};
da.Object.defineProperties(ZZ.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}}});ZZ.\u0275fac=function(a){return new (a||ZZ)};
ZZ.\u0275cmp=D({type:ZZ,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&&(Kf("aria-sort",b._getAriaSortAttribute()),wg("mat-sort-header-disabled",b._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled",
"disabled",$g],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",$g]},exportAs:["matSortHeader"],attrs:["mat-sort-header",""],ngContentSelectors:["*","[matSortHeaderIcon]"],decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],"viewBox;0 -960 960 960;focusable;false;aria-hidden;true".split(";"),["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(a,
b){a&1&&(cg(BGd),Rf(0,"div",0)(1,"div",1),dg(2),Sf(),F(3,svb,3,0,"div",2),Sf());a&2&&(wg("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before",b.arrowPosition==="before")("mat-sort-header-descending",b._sort.direction==="desc")("mat-sort-header-ascending",b._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",b._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",b._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",b._animationsDisabled),
Kf("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),G(b._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow>svg,.mat-sort-header-arrow [matSortHeaderIcon]{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}\n"],
encapsulation:2,changeDetection:0});var CGd={showActiveIndicator:!0,showMenu:!0,menu:{includeGoToIssueItem:!0},sortMode:"INTERNAL_SORT",activeRowMode:"FOCUS_SYNC"},$Z=function(){Z.call(this);var a=this;this.issueFridge=p(TP);this.router=p(YE);this.domSafe=p(iR);this.llmService=p(OY);this.matDialog=p(QA);this.cdr=p(YP,{self:!0});this.isOpen=function(b){return ko(b)};this.isSingleIssue=function(b,c){return c.issueIds.length===1};this.isMultiIssue=function(b,c){return c.issueIds.length>1};this.isClosed=CUa;this.isUnread=GUa;this.getAssigneeString=
function(b){var c,d;b=xm(b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.assigneeUser);return $n(b)?b:void 0};this.userToLossyEmail=xm;this.toMatSortDirection=nSa;this.idsToString=lxb;this.ClickTargetsForNavigation=lGd;this.SortMode=kGd;this.ActiveRowMode=jGd;this.IssueFieldType=Ybd;this.selection=new rz(!0,[]);this.issueIds$=new Nj([]);this.menuItemFactory=function(){return[]};this.showReadStatus=!1;this.alerts=[];this.enrichmentCategoriesFunction=function(){return[]};this.optionsInternal=
CGd;this.activeIssueChange=new XP;this.rowClick=new XP;this.sortChange=new XP;this.columnsChange=new XP;this.selectedIssuesChange=new XP;this.issueNavigated=new XP;this.rowLimit$=new Nj(this.options.rowLimit);this.DEFAULT_DATETIME_MODE="datetime";this.DEFAULT_MENU_OPTIONS={buttonIcon:"more-settings-vertical",buttonLabel:"More options"};this.internalFilters=new XQ;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 Nj(void 0);this.allRows$=this.issueIds$.pipe(Ar(),A(function(b){return b.map(function(c){return{issueIds:c,issue$:c.length===1?ve(a.issueFridge.watch(c[0]),a.issueFridge.watchOneError(c[0]).pipe(A(function(){}))):ee(void 0),summaryTitle$:pe(function(){return YCd(a.llmService,c)})}})}),xf({refCount:!0,bufferSize:1}));this.allIssues$=
this.allRows$.pipe(Af(function(b){return le(b.map(function(c){return c.issue$}))}),A(function(b){return b.filter(Qm)}),pf(),xf({bufferSize:1,refCount:!0}));this.allIssuesAreLoaded$=this.allRows$.pipe(Af(function(b){return le(b.map(function(c){return c.issue$.pipe(zf(null))}))}),A(function(b){return b.every(function(c){return c!==null})}),pf(),xf({bufferSize:1,refCount:!0}));this.unarchivedRows$=this.allRows$.pipe(kf(this.allIssuesAreLoaded$),A(function(b){var c=m(b);b=c.next().value;return c.next().value?
b.filter(function(d){var e;return!((e=lo(d))==null?0:e.isArchived)}):b}));this.unarchivedRows$.pipe(A(function(b){return b.length}));this.sortRows=Ud(kf(this.activeSort$,this.allIssuesAreLoaded$),A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;return c.next().value&&a.options.sortMode==="INTERNAL_SORT"?mxb(b,d):b}));this.filterRows=Ud(kf(this.internalFilters.value$),Af(function(b){b=m(b);var c=b.next().value;var d=b.next().value;return d.size===0?ee(c):le(c.map(function(e){return e.issue$})).pipe(A(function(e){return c.filter(function(f,
g){return e[g]?pvb(d,g,e):!0})}))}));this.limitRows=Ud(kf(this.rowLimit$),A(function(b){var c=m(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(kf(this.allIssuesAreLoaded$),A(function(b){b=m(b);var c=b.next().value;if(b.next().value){b=c.map(lo).map(function(g){return g==null?void 0:g.userActivityStats});b={views24h:b.map(function(g){var k;return(k=g==null?void 0:g.oneDayViewCount)!=
null?k:0}),views7d:b.map(function(g){var k;return(k=g==null?void 0:g.sevenDayViewCount)!=null?k:0}),views30d:b.map(function(g){var k;return(k=g==null?void 0:g.thirtyDayViewCount)!=null?k:0})};var d={};c=m(c.entries());for(var e=c.next();!e.done;e=c.next()){var f=m(e.value);e=f.next().value;f=f.next().value.issueIds;(e=nxb(b,e))&&(d[f[0]]=e)}return d}}));this.rows$=this.filteredRows$.pipe(this.limitRows,this.sortRows);this.rowCountAfterFilters$=this.unarchivedRows$.pipe(this.filterRows,A(function(b){return b.length}));
this.hiddenRowCount$=le([this.unarchivedRows$,this.rows$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b.length-c.length}),pf());this.trackBy=function(b,c){return lxb(c.issueIds)};this.correctedDisplayedRows=new gg;this.correctedRows$=pe(function(){return le([a.rows$,a.displayedRows.changes.pipe(zf(void 0))])}).pipe(lf(0),A(function(b){b=m(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[lxb(d.row.issueIds),d]}));return b.map(function(d){return c.get(lxb(d.issueIds))}).filter(Qm)}));
this.dataColumns=[].concat(q(nGd));this.tableColumns=this.getRenderableColumns(this.dataColumns);this.columnItems=DGd(this,this.dataColumns)};Y($Z,Z);$Z.\u0275dir=Z.\u0275dir;$Z.prototype.getMenuItems=function(a){var b=[],c;((c=this.options.menu)==null?0:c.includeGoToIssueItem)&&b.push(this.goToIssueItemFactory(a));b.push.apply(b,q(this.menuItemFactory(a)));return b};
var FGd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type==="CUSTOM_FIELD"});a.customFieldIds=uq(c.map(function(f){return f.customFieldId}),function(f){return f});d=a.customFieldIds.filter(function(f){return!a.customFieldNames.has(f)||a.customFieldNames.get(f)===""+f});return d.length?z(e,EGd(a,d),0):e.jumpTo(0)})},EGd=function(a,b){var c,d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return z(w,ie(a.allIssues$),2);c=w.yieldResult;d=m(b);e=d.next();for(f={};!e.done;f=
{id$jscomp$511:void 0},e=d.next()){f.id$jscomp$511=e.value;g=m(c);for(k=g.next();!k.done;k=g.next())if(l=k.value,r=l.customFields.find(function(x){return function(C){return C.customFieldId===x.id$jscomp$511}}(f))){a.customFieldNames.set(f.id$jscomp$511,r.name);break}a.customFieldNames.has(f.id$jscomp$511)||a.customFieldNames.set(f.id$jscomp$511,""+f.id$jscomp$511)}ce(w)})};
$Z.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,q(a));this.options.showMenu&&b.push("menu");return b};
var DGd=function(a,b){var c=function(g,k){if(g.type==="CUSTOM_FIELD"){var l;var r=(l=a.customFieldNames.get(g.customFieldId))!=null?l:""+g.customFieldId}else{var w;r=(w=mGd.get(g.type))!=null?w:g.type}return{name:r,data:g,enabled:k}};b=b.map(function(g){return c(g,!0)});var d,e,f=(e=(d=a.options.optionalColumns)==null?void 0:d.map(function(g){return c(g,!1)}))!=null?e:[];d=[].concat(q(b),q(f));return uq(d,function(g){return g.name})};$Z.prototype.ngOnInit=function(){this.initialSort&&this.activeSort$.next(this.initialSort)};
$Z.prototype.ngAfterViewInit=function(){var a=this;this.correctedRows$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.correctedDisplayedRows.reset(b);kg(a.correctedDisplayedRows);var c;((c=a.focusManager)==null?0:c.activeItem)&&kz(a.focusManager,a.focusManager.activeItem)});this.focusManager=jz(new Mxd(this.correctedDisplayedRows,kxb));this.focusManager.change.pipe(Bf(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 Zwb=function(a,b,c){var d;(d=a.focusManager)==null||d.setActiveItem(c);var e;a.rowClick.emit((e=c.row)==null?void 0:e.issueIds);var f;d=(f=a.options.navigationOptions)==null?void 0:f.clickTargets;switch(d){case void 0:case "ALL":var g;a.navigateToIssue(b,(g=c.row)==null?void 0:g.issueIds[0]);break;case "NONE":break;default:wb(d)}};h=$Z.prototype;h.getDisplayName=function(a){var b;return(b=mGd.get(a))!=null?b:a};
h.navigateToIssue=function(a,b){if(b&&!a.defaultPrevented&&!(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)&&(this.issueNavigated.emit(b),a.target.tagName!=="A")){b=this.getIssueUrl(b);var c;((c=this.options.navigationOptions)==null?0:c.alwaysOpenNewTab)||dq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Cr(this.domSafe,b):Ct(this.router,b)}};h.onRowKeydown=function(a,b){var c;(c=this.focusManager)==null||c.onKeydown(b)};
h.onSortChange=function(a){var b=a.direction;b=b!==""?b==="asc"?"ASCENDING":"DESCENDING":void 0;a=b&&a.active?{column:a.active,direction:b}:void 0;this.activeSort$.next(a);this.sortChange.emit(a)};h.toggleAllRows=function(a){if(Bvb(this,a))this.selection.clear();else{a=m(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 bxb=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})},Bvb=function(a,b){b=b.filter(function(c){return a.isSingleIssue(0,c)}).length;return a.selection.selected.length===b};$Z.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):ps.viewIssue.makeHref(a)};
var vvb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.matDialog.open(xGd,{width:"500px",autoFocus:!1,data:{columnItems:a.columnItems}}),z(d,ie(OA(b)),2);if(d.nextAddress!=3){c=d.yieldResult;if(!c)return d.return();a.columnItems=c;a.dataColumns=a.columnItems.filter(function(e){return e.enabled}).map(function(e){return e.data});return z(d,FGd(a,a.dataColumns),3)}a.tableColumns=a.getRenderableColumns(a.dataColumns);a.columnsChange.emit(a.dataColumns);ce(d)})};
$Z.prototype.getCustomFieldName=function(a){var b;return(b=this.customFieldNames.get(a))!=null?b:String(a)};$Z.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}))?V1a(a):"--"};
da.Object.defineProperties($Z.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({},CGd,a);this.rowLimit$.next(a.rowLimit);var c;FGd(this,[].concat(q(this.dataColumns),q((c=this.options.optionalColumns)!=null?c:[]))).then(function(){b.tableColumns=b.getRenderableColumns(b.dataColumns);b.columnItems=DGd(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;FGd(this,this.dataColumns).then(function(){b.tableColumns=b.getRenderableColumns(a);b.columnItems=DGd(b,a);b.cdr.detectChanges()})}}});$Z.\u0275fac=function(a){return new (a||$Z)};
$Z.\u0275cmp=D({type:$Z,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&hg(VW,5);if(a&2){var c;lg(c=mg())&&(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:[Gg([YP]),Gf],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,cxb,89,36,"table",1),T(1,"async"),F(2,jxb,3,3,"div",2));if(a&2){var c;G((c=U(1,2,b.rows$))?0:-1,c);B(2);G(b.options.rowLimit?2:-1)}},dependencies:[QY,Dy,sV,gB,cB,fL,aI,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,oK,iA,yW,$xd,aX,$W,lyd,sW,xW,myd,zW,iX,TW,jX,kX,YZ,ZZ,XZ,WZ,tU,ZW,VW,bV,Lx],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 a_=function(){Z.call(this);var a=this;this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.snackBar=p(PN);this.analytics=p(aQ);this.hostElement=p(Jd);this.appEvents=p(PO);this.issueUserEventsService=p(fW);this.scrolledOnScreenService=p(sU);this.destroyRef=p(Ee);this.similarIssueIds$=new wf(1);this.similarIssuesEnrichments$=new wf(1);this.limit=3;this.issueIds$=le([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;
return[].concat(q(c.map(function(d){var e,f;return(f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]}).flat()),q(b))}),A(function(b){return b.slice(0,a.limit)}),Cf(function(b){a.mostRecentIssueIds=b}));this.mostRecentIssueIds=[];this.tableColumns$=this.similarIssuesEnrichments$.pipe(A(function(b){var c=[{type:"TITLE"},{type:"DUPLICATE_COUNT"},{type:"VOTE_COUNT"},{type:"CREATED_TIME"}];b.some(function(d){var e,f;return(e=d.similarIssues)==null?void 0:(f=e.issueIds)==null?void 0:f.length})&&
c.push({type:"ENRICHMENT_CATEGORIES"});return c}));this.issueIdToCategories$=le([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){b=m(b);var c=b.next().value;var d=b.next().value;b=new Map;d=m(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,k=m((g=(f=e.similarIssues)==null?void 0:f.issueIds)!=null?g:[]);for(f=k.next();!f.done;f=k.next()){f=f.value;g=void 0;var l=(g=b.get(f))!=null?g:[];l.push(e.category);b.set(f,l)}}c=m(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$=le([this.issueIds$,this.issueIdToCategories$,this.tableColumns$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{issueIds:b,tableColumns:c,categoriesFunction:function(e){var f;return(f=d.get(e))!=null?f:[]}}}));this.EventType=Obd;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(){GGd(a,b)}}]};this.gotErr=function(b){a.snackBar.open({message:Sp(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");oxb(a,"EVENT_TYPE_ISSUE_HOVERCARD",b)}}))};Y(a_,Z);
a_.\u0275dir=Z.\u0275dir;
a_.prototype.ngOnInit=function(){var a=this;this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);le([this.similarIssueIds$,this.similarIssuesEnrichments$,qsd(this.scrolledOnScreenService,this.hostElement.nativeElement,{durationOnScreenMs:3E3})]).pipe(nf(1)).subscribe(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c.next();b.length>0&&a.logIssueUserEvent("EVENT_TYPE_VIEW","Buganizer");b=m(d);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c=void 0;(e=(c=
d.similarIssues)==null?void 0:c.issueIds.length)!=null&&e&&a.logIssueUserEvent("EVENT_TYPE_VIEW",d.category)}})};a_.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var GGd=function(a,b){var c=String(a.issueIdInternal);c&&Fhd(a.issueFullFridge,b,c).then(function(){return y(function(d){HGd(a,b);HGd(a,c);a.snackBar.open({message:"Issue closed as duplicate",actionLabel:"Undo"}).afterDismissed().subscribe(function(e){e.dismissedByAction&&IGd(a,b,c)});a.analytics.trackEvent("similar-issues-idp","closeAsDuplicate","fromSummaryWidget");oxb(a,"EVENT_TYPE_CLOSE_AS_DUPLICATE",b);ce(d)})}).catch(a.gotErr)},IGd=function(a,b,c){a.issueFullFridge.removeDuplicate(b,c).then(function(){HGd(a,
b);HGd(a,c);a.snackBar.open({message:"Un-marked issue as duplicate"})}).catch(a.gotErr);a.analytics.trackEvent("similar-issues-idp","undoCloseAsDuplicate","fromSummaryWidget")},HGd=function(a,b){a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b)};a_.prototype.captureAnyClick=function(){var a;(a=this.analytics)==null||a.trackEvent("similar-issues-idp","any-click")};
var oxb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return z(r,ie(a.issueIdToCategories$),2);d=r.yieldResult;f=(e=d.get(c))!=null?e:[];g=m(f);for(k=g.next();!k.done;k=g.next())l=k.value,a.logIssueUserEvent(b,l);ce(r)})};
a_.prototype.logIssueUserEvent=function(a,b){var c=String(this.issueIdInternal);b==="Buganizer"?this.issueUserEventsService.logIssueUserEvent(c,"FEATURE_SIMILAR_ISSUES",a).pipe(Uj(this.destroyRef)).subscribe():this.issueUserEventsService.logIssueUserEventForIssueEnrichment(c,"FEATURE_SIMILAR_ISSUES",a,b).pipe(Uj(this.destroyRef)).subscribe()};
da.Object.defineProperties(a_.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("Of");}},similarIssuesEnrichments:{configurable:!0,enumerable:!0,set:function(a){this.similarIssuesEnrichments$.next(a)},get:function(){throw Error("Pf");}}});a_.\u0275fac=function(a){return new (a||a_)};
a_.\u0275cmp=D({type:a_,selectors:[["suggested-similar-issues"]],inputs:{issueId:"issueId",similarIssueIds:"similarIssueIds",similarIssuesEnrichments:"similarIssuesEnrichments",limit:"limit"},standalone:!1,features:[Gf],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,pxb,1,5,"b-issues-table",0),T(1,
"async"),Lf(2,qxb,2,0,"div"));if(a&2){var c;G((c=U(1,1,b.issueTableData$))?0:2,c)}},dependencies:[$Z,$T,Lx],encapsulation:2});var JGd=function(){this.editIssueService=p(DS);this.issueCommentDialogsService=p(yY);this.editIssueComponentService=p(lW);this.issueFridge=p(TP);this.issueFullFridge=p(cQ);this.issueApi=p(HP);this.butterBar=p(QN);this.contextSensitiveRegistry=p(TQ)},KGd=function(a,b){var c,d;return y(function(e){if(!b.length)return e.return();c={issueIds:b.map(function(f){return f.issueId}),actions:[{fieldName:"duplicateOfIssueId",value:b[0].value,actionType:"ADD"}]};d={bulkEditOps:[c]};Pr(a.butterBar,"Marking "+
b.length+" issues as duplicates...");return z(e,a.issueApi.issueBulkEdit(d).then(function(f){f.errors&&f.errors.length?(f=dVa(f.errors),a.butterBar.showWarning("Failed to mark issue(s) as duplicates: "+f+".")):Pr(a.butterBar,"Marked "+b.length+" issue(s) as duplicates.");ie(a.contextSensitiveRegistry.getIssueId()).then(function(g){g&&a.issueFridge.poke(g)})}),0)})},MGd=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa;return y(function($a){switch($a.nextAddress){case 1:if(!b.length)return $a.return();
if(c.type!=="ISSUE_DEDUPLICATION_BATCH"){$a.jumpTo(2);break}return z($a,KGd(a,b),3);case 3:return $a.return();case 2:return d=vq(b.map(function(pb){return pb.issueId})),z($a,Promise.all(d.map(function(pb){return ie(a.issueFridge.watch(pb))})),4);case 4:e=$a.yieldResult.filter(Qm);if(e.length!==d.length)throw Error("Qf");f=new Map;g=m(e);for(k=g.next();!k.done;k=g.next())l=k.value,r=a.editIssueService.editableIssue(l.issueId),r.setData(l),f.set(l.issueId,r);w=b.filter(function(pb){return pb.fieldName!==
"componentId"&&pb.fieldName!=="comment"&&pb.fieldName!=="hotlists"});x=m(w);for(C=x.next();!C.done;C=x.next())H=C.value,J=f.get(H.issueId),vmd(J,H);return z($a,Promise.all(Array.from(f.values(),function(pb){return ES(a.editIssueService,pb)})),5);case 5:O=b.filter(function(pb){return pb.fieldName==="comment"}),R=m(O),V=R.next();case 6:if(V.done){Ga=b.filter(function(pb){return pb.fieldName==="hotlists"});if(!(Ga.length>0)){$a.jumpTo(10);break}return z($a,LGd(a,f.get(Ga[0].issueId),Ga),10)}ca=V.value;
if(!ca.value){$a.jumpTo(7);break}oa=a.editIssueService.issueCommentDraft(ca.issueId).comment();oa.value=ca.value;ua=void 0;oa.formattingMode=(ua=ca.formattingMode)!=null?ua:"PLAIN";ka=f.get(ca.issueId);return z($a,a.issueCommentDialogsService.submitCommentBox(String(ka.componentId),ka.issueId,oa),7);case 7:V=R.next();$a.jumpTo(6);break;case 10:ja=b.filter(function(pb){return pb.fieldName==="componentId"}),ta=m(ja),xa=ta.next();case 12:if(xa.done){$a.jumpTo(0);break}Sa=xa.value;return z($a,a.editIssueComponentService.updateComponent(Sa.issueId,
Sa.value||null),13);case 13:xa=ta.next(),$a.jumpTo(12)}})},LGd=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J,O;return y(function(R){f=new Set((e=(d=b.hotlistId)==null?void 0:d.map(String))!=null?e:[]);g=c.filter(function(V){return V.actionType==="ADD"}).flatMap(function(V){var ca,oa;return(oa=(ca=V.value)==null?void 0:ca.split(","))!=null?oa:[]}).filter(Boolean);k=c.filter(function(V){return V.actionType==="REMOVE"}).flatMap(function(V){var ca,oa;return(oa=(ca=V.value)==null?void 0:ca.split(","))!=
null?oa:[]}).filter(Boolean);l=new Set;r=new Set;w=m(g);for(x=w.next();!x.done;x=w.next())C=x.value,f.has(C)||l.add(C);H=m(k);for(J=H.next();!J.done;J=H.next())O=J.value,f.has(O)&&r.add(O);return l.size>0||r.size>0?z(R,a.issueFullFridge.updateHotlists(b.issueId,[].concat(q(l)),[].concat(q(r))),0):R.jumpTo(0)})};JGd.\u0275fac=function(a){return new (a||JGd)};JGd.\u0275prov=Fc({token:JGd,factory:JGd.\u0275fac,providedIn:"root"});var NGd=function(a,b){return b.issueId},OGd=new Set(["duplicateOfIssueId"]),b_=function(){var a=this;this.clipboard=p(kR);this.eventsForIssueFridge=p(IP);this.issueFridge=p(TP);this.paths=p(mW);this.snackBar=p(nB);this.excludedActions=new Set;this.canonicalIssueId$=new Nj("");this.issue$=function(b){return a.issueFridge.watch(b)};this.hiddenActionCount=0;this.showExpansionOption=!1;this.draftActions=[];this.actionsToAccept=new XP;this.canonicalIssue$=this.canonicalIssueId$.pipe(Af(function(b){return a.issue$(b)}));
this.canonicalEvents$=this.canonicalIssue$.pipe(Af(function(b){return(b==null?0:b.issueId)?a.eventsForIssueFridge.watch(b.issueId):ee(void 0)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.canonicalComments$=this.canonicalEvents$.pipe(A(function(b){return b.filter(ho)}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}))};
b_.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("Issue ID copied","",{duration:2E3})};b_.prototype.getIssueLink=function(a){return rs(a)};
var Cxb=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)}),PGd(a),a.updateActionsToAccept(),QGd(a))}},Bxb=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.canonicalIssueId$),2);c=g.yieldResult;if(!c)return g.return();d=m(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();ce(g)})},PGd=function(a){a=m(a.draftActions);for(var b=a.next();!b.done;b=a.next())b.value.isDirty=!0},RGd=function(a,b,c){b=fo(b,function(g){return g.actionKey});var d=[];c=c.filter(function(g){return!a.excludedActions.has(g.actionKey)});c=m(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 pm(d)};
b_.prototype.updateActionsToAccept=function(){var a=this;this.actionsToAccept.emit(this.draftActions.filter(function(b){return!a.excludedActions.has(b.actionKey)}))};var QGd=function(a){a.draftActions.length<=6?a.showExpansionOption=!1:a.hiddenActionCount=a.draftActions.length-5};
da.Object.defineProperties(b_.prototype,{actions:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this.draftActions.length===0;this.draftActions=RGd(this,this.draftActions,a).filter(function(f){return OGd.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()}}});b_.\u0275fac=function(a){return new (a||b_)};
b_.\u0275cmp=D({type:b_,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,"pos-rel"],[1,"icon-container"],[1,"connector"],["svgIcon","tab_close_24px",1,"icon-s","shrink-0"],["target","_blank",1,"hover-link","overflow-ellipsis",3,"href"],["role","button",3,"onedevHovercardTrigger"],[1,
"actions","shrink-0","margin-left-auto"],["type","button","mat-icon-button","","matTooltip","Make this issue the canonical issue",1,"small","include",3,"click"],["svgIcon","vertical_align_top_24px",1,"icon-xs"],["type","button","mat-icon-button","","matTooltip","Remove this issue",1,"small","include",3,"click","disabled"],["svgIcon","close",1,"icon-xs"],[1,"curved-arrow"],["mat-button","","color","primary",1,"more-issues",3,"click"]],template:function(a,b){a&1&&(K(0,"div",4),F(1,wxb,2,3),T(2,"async"),
Of(3,Exb,2,3,null,null,NGd),F(5,Fxb,4,2,"div"),L());if(a&2){var c;B();G((c=U(2,2,b.canonicalIssueId$))?1:-1,c);B(2);a=b.draftActions;Pf(b.showExpansionOption?a.slice(0,5):a);B(2);G(b.showExpansionOption?5:-1)}},dependencies:[Dy,gB,cB,eB,oK,iA,DK,EK,LK,FK,PW,xW,Lx],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 c_=function(){};var SGd=["popOverContent"],d_=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.width=this.maxWidth=this.minWidth=null;this.saveDisabled=Og.apply(null,[!1].concat(q([])));this.closedWithAction=new Ui;this.isOpen=!1;this.destroyed$=new wf(1);this.backdropClickSubscription=Rd.EMPTY};d_.prototype.ngOnInit=function(){};d_.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
d_.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(Bf(this.destroyed$)).subscribe(function(){Ixb(a)}))};d_.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var Hxb=function(a){a.closedWithAction.emit(0);a.close()},Ixb=function(a){a.closedWithAction.emit(1);a.close()};h=d_.prototype;h.processKeydown=function(a){switch(a.key){case "Escape":Ixb(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)Hxb(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(Hxb(this),a.stopPropagation(),a.preventDefault())}};
h.createOverlay=function(){var a,b=this.width||8+Math.max((a=this.minWidth)!=null?a:0,this.anchor.offsetWidth);a=this.getPositionStrategy();var c=this.getScrollStrategy();b=this.overlay.create({positionStrategy:a,scrollStrategy:c,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:this.maxWidth?Math.min(b,this.maxWidth):b});b.overlayElement.setAttribute("role","dialog");b.overlayElement.setAttribute("aria-label","Pop over edit panel");
return b};h.attach=function(){var a=new Iz(this.contentTemplateRef,this.viewContainerRef),b;(b=this.overlayRef)==null||b.attach(a);var c;(c=this.overlayRef)==null||c.updatePosition()};h.getPositionStrategy=function(){var a=zDc(Bz(Fz(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return zz(a,TGd)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
d_.\u0275fac=function(a){return new (a||d_)(Ye(Nz),Ye(fg))};
d_.\u0275cmp=D({type:d_,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&hg(SGd,7);if(a&2){var c;lg(c=mg())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop",fitToViewport:"fitToViewport",minWidth:"minWidth",maxWidth:"maxWidth",width:"width",saveDisabled:[1,"saveDisabled"]},outputs:{closedWithAction:"closedWithAction"},exportAs:["onedevPopOverEditPanel"],
standalone:!1,decls:2,vars:0,consts:[["popOverContent",""],["cdkTrapFocus","",1,"pop-over-edit-panel-content","content","gmat-elevation-z2",3,"keydown","cdkTrapFocusAutoCapture"],[1,"edit-field"],[4,"ngTemplateOutlet"],[1,"actions"],["mat-button","","type","button","color","primary",1,"save",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&E(0,Jxb,8,3,"ng-template",null,0,Mg)},dependencies:[Kx,Qy,zI],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 TGd=[{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 UGd=["popOver"],VGd=["inputBox"],e_=function(a){this.defaultAutocompleteConfig=a;this.displayUnder=!1;this.initialInputValue="";this.required=this.openPopOverOnInit=!1;this.minWidth=null;this.closed=new Ui;this.inputValue=new fE("",{nonNullable:!0});this.sessionOptions=WGd;this.mergedAutocompleteConfig=Object.assign({},XGd,this.defaultAutocompleteConfig)};h=e_.prototype;h.ngOnInit=function(){this.inputValue._assignValidators(this.required?[wj]:[])};
h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};h.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},XGd,this.defaultAutocompleteConfig,this.autocompleteConfig))};h.selectAutocomplete=function(a){a.length>0&&this.inputValue.setValue(a[0].result().getPrimaryTarget().getValue())};
h.openPopOver=function(a){var b=this;this.inputValue.setValue(a);this.popOver.open();setTimeout(function(){var c;(c=b.inputBox)==null||c.nativeElement.select()})};h.onPopOverClose=function(a){this.inputValue.valid&&a===0?this.closed.emit(this.inputValue.value):this.closed.emit(void 0);this.inputValue.setValue("")};e_.\u0275fac=function(a){return new (a||e_)(Ye(YGd,8))};
e_.\u0275cmp=D({type:e_,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(hg(UGd,7),hg(VGd,5));if(a&2){var c;lg(c=mg())&&(b.popOver=c.first);lg(c=mg())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit",required:"required",minWidth:"minWidth"},outputs:{closed:"closed"},standalone:!1,features:[bx],attrs:["anchor",""],decls:4,vars:5,
consts:[["popOver","onedevPopOverEditPanel"],["autocompleteTemplate",""],["inputBox",""],[3,"closedWithAction","anchor","displayUnder","editorTemplate","saveDisabled","minWidth"],["peoplekitAutocomplete","",3,"peoplekitAutocompleteSelectionChange","required","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-pop-over-edit-panel",3,0);N("closedWithAction",function(d){u(c);return v(b.onPopOverClose(d))});L();E(2,Kxb,2,4,
"ng-template",null,1,Mg)}a&2&&(a=qg(3),I("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",a)("saveDisabled",b.inputValue.invalid)("minWidth",b.minWidth))},dependencies:[yj,$D,sE,d_,uX,mE],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 YGd=new fd("user-picker-autocomplete-config"),XGd={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},WGd=(new $u).setFilter(mhb(ihb(1),new Twd(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 Nxb=function(a){return{$implicit:a}},ZGd=0,f_=function(){this.val="";this.required=this.disabled=!1;this.minWidth=null;this.emailChange=new Ui;this.displayUnder=!1;this.displayValueOverride="";this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+ZGd;this.onChange=function(){};this.onTouched=function(){};ZGd++};Y(f_,c_);h=f_.prototype;h.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
h.onPopOverClose=function(a){a!=null&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};h.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};h.writeValue=function(a){a!=null&&(this.val=a)};h.isActive=function(){return this.active||this.popOverOpen};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};
da.Object.defineProperties(f_.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});f_.\u0275fac=function(a){return new (a||f_)};
f_.\u0275cmp=D({type:f_,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&hg(e_,7);if(a&2){var c;lg(c=mg())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",required:"required",minWidth:"minWidth",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig",anchor:"anchor",displayUnder:"displayUnder",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],standalone:!1,
features:[Gg([{provide:c_,useExisting:Yc(function(){return f_}),multi:!0},{provide:VD,useExisting:Yc(function(){return f_}),multi:!0}]),Gf],decls:7,vars:12,consts:[["button",""],["type","button",1,"unstyled-button",3,"focus","blur","click"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closed","displayUnder","anchor","autocompleteConfig","required","minWidth"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox",
"0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"]],template:function(a,b){if(a&1){var c=t();K(0,"button",1,0);N("focus",function(){u(c);return v(b.active=!0)})("blur",function(){u(c);return v(b.active=!1)})("click",function(){u(c);return v(b.openPopOver())});F(2,Lxb,1,1)(3,Oxb,1,4,"ng-container")(4,Pxb,1,1);E(5,Qxb,2,0,"svg",2);
L();K(6,"onedev-user-picker-panel",3);N("closed",function(d){u(c);return v(b.onPopOverClose(d))});L()}a&2&&(a=qg(1),wg("active",b.isActive()),Kf("tabindex",b.disabled?-1:null)("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy()),B(2),G(b.displayValueOverride?2:b.selectedUserTemplate?3:4),B(3),I("ngIf",!b.disabled),B(),I("displayUnder",b.displayUnder)("anchor",b.anchor||a)("autocompleteConfig",b.autocompleteConfig)("required",b.required)("minWidth",b.minWidth))},dependencies:[Fx,Kx,e_],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 $Gd=["picker"],g_=function(){this.autocompleteConfigService=p(HW);this.disabled=!1;this.emailChange=new XP;this.displayValueOverride="";this.minWidth=180;this.userEmail=""};Y(g_,c_);g_.prototype.openPopOver=function(){this.picker.openPopOver()};g_.prototype.isActive=function(){return this.picker.isActive()};da.Object.defineProperties(g_.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userJs=a;this.userEmail=xm(a)||""},get:function(){return this.userJs}}});
g_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(g_)))(b||g_)}}();
g_.\u0275cmp=D({type:g_,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&hg($Gd,7);if(a&2){var c;lg(c=mg())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById",anchor:"anchor",displayValueOverride:"displayValueOverride",minWidth:"minWidth"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],standalone:!1,features:[Gg([{provide:c_,useExisting:Yc(function(){return g_}),multi:!0}]),Gf],decls:4,vars:9,consts:[["picker","onedevUserPicker"],
["userChip",""],[3,"emailChange","anchor","displayUnder","email","disabled","labelledById","selectedUserTemplate","autocompleteConfig","displayValueOverride","minWidth"],[3,"user","email","teamId","enableSmallChip"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-user-picker",2,0);N("emailChange",function(d){u(c);b.userJs=ym(d);b.userEmail=d;b.emailChange.emit(d);return v()});L();E(2,Sxb,1,1,"ng-template",null,1,Mg)}a&2&&(a=qg(3),I("anchor",b.anchor)("displayUnder",!0)("email",b.userEmail)("disabled",
b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",a)("autocompleteConfig",uhb(b.autocompleteConfigService))("displayValueOverride",b.displayValueOverride)("minWidth",b.minWidth))},dependencies:[hV,f_],styles:["[_nghost-%COMP%]     .user-chip-small, [_nghost-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}/*# sourceMappingURL=user_picker.css.map */"]});var Yxb=function(a){return{group:a,fieldName:"Assignee"}},cyb=function(a){return{group:a,fieldName:"Priority"}},gyb=function(a){return{group:a,fieldName:"Comment"}},lyb=function(a){return{group:a,fieldName:"Component"}},tyb=function(a){return{group:a,fieldName:"Hotlist"}},Cyb=function(a){return{group:a,fieldName:"CCs"}},Fyb=function(a){return{group:a,fieldName:"Status"}},vyb=function(a,b){return b.actionKey},aHd=new Set("assignee comment componentId hotlists priority ccs status".split(" ")),h_=function(){var a=
this;this.issueFridge=p(TP);this.constants=p(bS);this.editCommentDialogService=p(wY);this.issuePermissionService=p(WQ);this.hotlistFridge=p(gP);this.hotlistPickerService=p(IY);this.includeCommentByDefault=!0;this.draftActions=[];this.issue$=function(b){return a.issueFridge.watch(b)};this.hotlist$=function(b){return a.hotlistFridge.watch(b)};this.formattingAudience$=this.issuePermissionService.audience$;this.actionsToAccept=new XP;this.groupTrackBy=function(b){return b.map(function(c){return c.actionKey}).join(",")};
this.split=function(b){var c;return(c=b==null?void 0:b.split(","))!=null?c:[]};this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b}});this.statusChoices=Rcd;this.dirtyCommentActions=new Set;this.excludedActions=new Set;this.IssueFieldName=Hcd;this.IssuePriority=dcd;this.IssueStatus=tcd;this.FormattingMode=Um;this.ActionType=Gbd;this.FieldType=qV;this.emailToUser=ym;this.userToLossyEmail=xm;this.getTeamId=N5a;this.getComponentId=O5a;this.getReporter=M5a;this.getAssignee=
L5a;this.getPriority=K5a;this.getStatus=J5a};h_.prototype.ngOnChanges=function(){this.draftActions=Nyb(this.draftActions,this.actions).filter(function(a){return aHd.has(a.fieldName)});this.updateActionsToAccept()};var bHd=function(a){return C_a(a,function(b){return b.fieldName})},$xb=function(a,b,c){cHd(a,b,function(d){d.value=String(c)})};h_.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 zyb=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},cHd=function(a,b,c){b&&(a.draftActions=a.draftActions.map(function(d){if(d.actionKey!==b.actionKey)return d;d=pm(d);c(d);d.isDirty=!0;return d}),a.updateActionsToAccept())},fyb=function(a,b,c){var d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return e=(d=a.issuePermissionService.audience())!=null?d:"EXTERNAL",k=(g=(f=c)==null?void 0:f.snapshot[0].componentId)!=
null?g:void 0,z(w,a.editCommentDialogService.show({issueId:b.issueId,audience:e,componentId:k,text:b.value,formattingMode:(l=b.formattingMode)!=null?l:"PLAIN",showPiiWarning:!1,dialogTitle:"Edit draft comment"}),2);(r=w.yieldResult)&&cHd(a,b,function(x){x.value=r.text;x.formattingMode=r.formattingMode});ce(w)})};
h_.prototype.openHotlistPicker=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta,xa,Sa,$a,pb;return y(function(Xb){if(Xb.nextAddress==1)return c=a[0].issueId,z(Xb,ie(b.issue$(c)),2);if(Xb.nextAddress!=3)return d=Xb.yieldResult,k=(g=(e=d)==null?void 0:(f=e.snapshot[0].hotlistId)==null?void 0:f.map(String))!=null?g:[],l=a.find(function(lc){return lc.actionType==="ADD"}),r=a.find(function(lc){return lc.actionType==="REMOVE"}),H=new Set((C=(w=l)==null?void 0:(x=w.value)==null?
void 0:x.split(","))!=null?C:[]),V=new Set((R=(J=r)==null?void 0:(O=J.value)==null?void 0:O.split(","))!=null?R:[]),ca=[].concat(q(k),q(H)).filter(function(lc){return!V.has(lc)}),z(Xb,ECd(b.hotlistPickerService,a[0].issueId,ca.map(Number),!1),3);oa=Xb.yieldResult;if(!oa)return Xb.return();ua=oa;ka=ua.addedIds;Ga=ua.removedIds;ja=m(Ga);for(ta=ja.next();!ta.done;ta=ja.next())xa=ta.value,H.delete(xa),V.add(xa);Sa=m(ka);for($a=Sa.next();!$a.done;$a=Sa.next())pb=$a.value,H.add(pb),V.delete(pb);cHd(b,l,
function(lc){lc.value=[].concat(q(H)).join(",")});cHd(b,r,function(lc){lc.value=[].concat(q(V)).join(",")});ce(Xb)})};h_.prototype.updateActionsToAccept=function(){var a=this,b=this.draftActions.filter(function(c){return!a.excludedActions.has(c.actionKey)}).filter(C$a);this.includeCommentByDefault||(b=b.filter(function(c){return c.fieldName!=="comment"||a.dirtyCommentActions.has(c.actionKey)}));this.actionsToAccept.emit(b)};h_.\u0275fac=function(a){return new (a||h_)};
h_.\u0275cmp=D({type:h_,selectors:[["b-issue-actions-component"]],inputs:{actions:"actions",includeCommentByDefault:"includeCommentByDefault"},outputs:{actionsToAccept:"actionsToAccept"},standalone:!1,features:[bx],decls:5,vars:0,consts:[["excludeButton",""],["assigneePicker",""],["priorityPicker",""],["componentPicker",""],["statusPicker",""],[1,"flex-kids-y","gap-s"],[1,"row","flex-kids-x","gap-xs","align-items-center",3,"excluded","hide-comment"],[1,"row","flex-kids-x","gap-xs","align-items-center"],
[1,"field-name"],[1,"field-value","gap-xs","flex-kids-x","align-items-center","flex-wrap"],[3,"emailChange","user","displayValueOverride","teamId","disabled"],[1,"note"],[1,"buttons","margin-left-auto"],[3,"user","teamId","disabled"],[1,"muted"],["svgIcon","arrow-forward","color","primary",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Edit assignee","aria-label","Edit assignee",1,"small",3,"click","disabled"],["svgIcon","edit-outline",1,"icon-xxs"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],
[1,"field-value","gap-xs","flex-kids-x","align-items-center"],[3,"valueChange","type","value","choices","readonly"],[3,"type","value","choices","readonly"],["type","button","mat-icon-button","","matTooltip","Edit priority","aria-label","Edit priority",1,"small",3,"click","disabled"],[3,"comment","issueId","audience","formattingMode"],["type","button","mat-icon-button","","matTooltip","Edit comment","aria-label","Edit comment",1,"small","edit-comment",3,"click","disabled"],[3,"componentChanged","issueId",
"componentId","compactMode","handleSave","showPickerOverlayAbove","readOnly"],[3,"issueId","componentId","compactMode","readOnly"],["type","button","mat-icon-button","","matTooltip","Edit component","aria-label","Edit component",1,"small",3,"click","disabled"],[1,"flex-kids-x","align-items-center"],["matTooltip","Adding hotlist","svgIcon","add",1,"good","icon-xs"],[3,"hotlist","removable"],["matTooltip","Removing hotlist","svgIcon","remove_24px",1,"bad","icon-xs"],["type","button","mat-icon-button",
"","matTooltip","Edit hotlists","aria-label","Edit hotlists",1,"small",3,"click","disabled"],["matTooltip","Adding CC","svgIcon","add",1,"good","icon-xs"],["matTooltip","Removing CC","svgIcon","remove_24px",1,"bad","icon-xs"],["type","button","mat-icon-button","",1,"small","include",3,"matTooltip"],["type","button","mat-icon-button","",1,"small","exclude",3,"matTooltip"],["type","button","mat-icon-button","",1,"small","include",3,"click","matTooltip"],["svgIcon","done",1,"icon-xxs"],["type","button",
"mat-icon-button","",1,"small","exclude",3,"click","matTooltip"],["svgIcon","close",1,"icon-xxs"]],template:function(a,b){a&1&&(K(0,"div",5),Of(1,Iyb,5,9,"div",6,Txb,!0),L(),E(3,Myb,2,2,"ng-template",null,0,Mg));a&2&&(B(),Pf(bHd(b.draftActions)))},dependencies:[Kx,Dy,nT,AY,pV,gB,eB,oK,iA,PZ,g_,Lx,fV],styles:["[_nghost-%COMP%]     onedev-user-picker>button{width:unset;padding:0;min-height:unset}[_nghost-%COMP%]     div.md-preview{background-color:unset;margin:unset;padding:0}[_nghost-%COMP%]     b-edit-field .bv2-edit-button, [_nghost-%COMP%]     b-user-picker .edit-icon{display:none}[_nghost-%COMP%]     b-hotlist-chip .chip{padding:0;padding-left:2px;background-color:unset}b-user-picker[_ngcontent-%COMP%]{width:unset;margin-right:-6px}.field-name[_ngcontent-%COMP%]{min-width:100px;min-height:24px;line-height:24px;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.buttons[_ngcontent-%COMP%]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;visibility:hidden}[_nghost-%COMP%]:focus-within   .buttons[_ngcontent-%COMP%], [_nghost-%COMP%]:hover   .buttons[_ngcontent-%COMP%]{visibility:visible}.row[_ngcontent-%COMP%]{min-height:24px}.row.hide-comment[_ngcontent-%COMP%]{min-height:unset}.good[_ngcontent-%COMP%]{color:#188038;color:var(--text-good)}.bad[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}[_nghost-%COMP%]     .excluded .field-name, [_nghost-%COMP%]     .excluded .field-value *{color:#bdc1c6;color:var(--text-disabled);text-decoration:line-through}.note[_ngcontent-%COMP%]{border-radius:4px;color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;text-transform:uppercase;padding:2px 4px;font-weight:500;letter-spacing:.05rem}"],
changeDetection:0});var Pyb=function(){return[]},dHd=new Map(["componentId","hotlists","priority","assignee","comment"].map(function(a,b){return[a,b]})),eHd=gn(function(a){var b;return(b=dHd.get(a.fieldName))!=null?b:Infinity},hn,"ASCENDING"),i_=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(qu);this.recommendationsService=p(hW);this.issueActionService=p(JGd);this.editIssueService=p(DS);this.documentationLinks=p(YR);this.domSafe=p(iR);this.checkBeforeExit=p(uY);this.issueFridge=p(TP);this.scrolledOnScreenService=
p(sU);this.cdr=p(ux);this.elementRef=p(Jd);this.butterBar=p(QN);this.recommendationTriggerService=p(ZQ);this.includeComment=this.activeSession.getFlag("enableTriageRecommendationComments");this.RecommendationType=ycd;this.recommendation$=new wf(1);this.disableLogging=this.showTitle=!1;this.issueId$=this.recommendation$.pipe(A(function(b){return Wr(b==null?void 0:b.resource)}));this.currentIssue$=this.issueId$.pipe(Af(function(b){return b?a.issueFridge.watch(b):ee(void 0)}));this.actions=[];this.actions$=
le([this.recommendation$,this.currentIssue$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;d&&b.type==="ISSUE_DEDUPLICATION_BATCH"&&(b=pm(b),b.content.issueDeduplicationBatch.recommendedCanonicalIssue||(b.content.issueDeduplicationBatch.recommendedCanonicalIssue=d));b=pm(b);if(d){var e=fHd[b.type];if(e){var f,g,k;c=new Set((k=(f=b.content)==null?void 0:(g=f.issueModification)==null?void 0:g.addMask)!=null?k:[]);var l,r,w;f=new Set((w=(l=b.content)==null?void 0:(r=l.issueModification)==
null?void 0:r.removeMask)!=null?w:[]);l=new Set([].concat(q(c),q(f)));var x,C;if((x=b.content)==null?0:(C=x.issueModification)==null?0:C.addState)b.content.issueModification.addState=Object.assign({},d.snapshot[0],b.content.issueModification.addState);var H,J;if((H=b.content)==null?0:(J=H.issueModification)==null?0:J.addMask)for(x=m(e),C=x.next();!C.done;C=x.next())C=C.value,l.has(C)||b.content.issueModification.addMask.push(C);var O;e.has("comment")&&((O=b.content)==null?0:O.issueModification)&&
!b.content.issueModification.comment&&(b.content.issueModification.comment={issueId:d.issueId,commentNumber:0,formattedComment:void 0,lastEditorUser:void 0,lastModified:0,version:0,unlinkifiedComment:"",formattingMode:"PLAIN",entityStatus:void 0,piiRetentionState:void 0,piiRetention:void 0,redacted:!1,etag:void 0,commentReactions:new Map});O=m(l);for(d=O.next();!d.done;d=O.next())d=d.value,G$a.has(d)&&(c.has(d)||(C=x=void 0,(x=b.content)==null||(C=x.issueModification)==null||C.addMask.push(d)),f.has(d)||
(C=x=void 0,(x=b.content)==null||(C=x.issueModification)==null||C.removeMask.push(d)))}}return A$a(b)}),A(function(b){return eHd(b,"ASCENDING")}));this.actionsToAccept=[];this.isSaving$=new Nj(!1)};Y(i_,Z);i_.\u0275dir=Z.\u0275dir;
i_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()&&a.recommendation.type!=="ISSUE_DEDUPLICATION_BATCH"&&a.recommendation.type!=="ISSUE_DEDUPLICATION"},!0));this.disableLogging||(ovd(this.recommendationsService,this.recommendation),this.subscriptions.add(le([qsd(this.scrolledOnScreenService,this.elementRef.nativeElement,{durationOnScreenMs:3E3})]).pipe(nf(1)).subscribe(function(){pvd(a.recommendationsService,a.recommendation)})));
this.subscriptions.add(this.actions$.subscribe(function(b){a.actions=b}))};i_.prototype.updateActionsToAccept=function(a){this.actionsToAccept=a;this.cdr.detectChanges()};
i_.prototype.accept=function(a){var b=this,c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return b.isSaving$.next(!0),c=b.actions.filter(C$a),d=b.actionsToAccept.filter(C$a),e=vq(d.map(function(w){return w.issueId})),Yd(r,2,3),z(r,MGd(b.issueActionService,d,a),5);case 5:if(b.disableLogging){r.jumpTo(6);break}return z(r,Zud(b.recommendationsService,a,c,d),6);case 6:b.recommendationTriggerService.hiddenRecommendationIds.add(a.name);case 3:Zd(r);if(a.type!=="ISSUE_DEDUPLICATION_BATCH")for(f=
m(e),g=f.next();!g.done;g=f.next())k=g.value,b.editIssueService.clear(k);b.isSaving$.next(!1);ae(r,0);break;case 2:l=be(r),b.butterBar.showWarning("Failed to apply recommendation."),console.error("Failed to apply recommendation",l),r.jumpTo(3)}})};i_.prototype.reject=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),z(c,nvd(b.recommendationsService,a),2);b.isSaving$.next(!1);ce(c)})};
var gHd=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"}},hHd=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"}};i_.prototype.openLink=function(a){this.domSafe.openInNewTab(a)};i_.prototype.getRecommendationText=function(){return I$a(this.recommendation,!0)};i_.prototype.hasUnsavedChanges=function(){return this.actionsToAccept.some(function(a){return a.isDirty})};
da.Object.defineProperties(i_.prototype,{recommendation:{configurable:!0,enumerable:!0,set:function(a){this.recommendation$.next(a)},get:function(){return zr(this.recommendation$)}}});i_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(i_)))(b||i_)}}();
i_.\u0275cmp=D({type:i_,selectors:[["b-recommendation"]],inputs:{recommendation:"recommendation",showTitle:"showTitle",disableLogging:"disableLogging"},standalone:!1,features:[Gf],decls:19,vars:17,consts:[[1,"flex-kids-y","gap-s","rounded","container"],[1,"heading-xs"],[3,"actions","includeCommentByDefault"],[1,"flex-kids-x","space-between","full-width"],[1,"actions","flex-kids-x","gap-s","align-items-center","padded-s-bottom","full-width"],["type","button","mat-flat-button","","color","primary",
1,"accept","keep-focus-ring",3,"click","disabled"],["svgIcon","done",1,"icon-s"],["type","button","mat-button","","mainSegment","","color","primary",1,"reject","small",3,"click","disabled"],["svgIcon","close",1,"icon-s"],[1,"margin-left-auto"],[1,"flex-kids-x"],[3,"currentIssue","actions"],[3,"actionsToAccept","currentIssue","actions"],[3,"actionsToAccept","actions","includeCommentByDefault"],[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();K(0,"div",0);F(1,Oyb,2,1,"div",1);F(2,Ryb,2,3)(3,Syb,2,5,"b-issue-actions-component",2);F(4,Vyb,6,1);K(5,"div",3)(6,"div",4)(7,"button",5);T(8,"async");N("click",function(){u(c);return v(b.accept(b.recommendation))});M(9,"mat-icon",6);Q(10);L();K(11,"button",7);T(12,"async");N("click",function(){u(c);return v(b.reject(b.recommendation))});M(13,"mat-icon",8);Q(14," Reject ");
L();F(15,Wyb,1,0,"b-spinner",9);T(16,"async");L();$f(17);F(18,Xyb,3,0,"div",10);L()()}if(a&2){B();G(b.showTitle?1:-1);B();G(b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION_BATCH||b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION?2:3);B(2);G(b.recommendation.rationale?4:-1);B(3);I("disabled",U(8,10,b.isSaving$)||b.actionsToAccept.length===0);Kf("aria-label",gHd(b,b.recommendation));B(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"}S(" ",a," ");B();I("disabled",U(12,12,b.isSaving$));Kf("aria-label",hHd(b.recommendation));B(4);G(U(16,14,b.isSaving$)?15:-1);B(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=ag(a);B();G(a?18:-1)}},dependencies:[Dy,mT,gB,cB,eB,aK,$T,b_,h_,Lx],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 iHd={},fHd=(iHd.COMPONENT_ROUTING=new Set(["componentId","hotlists","priority","assignee"]),iHd.NEEDS_INFO=new Set(["comment"]),iHd);var jHd=function(){this.isReady=!1};jHd.\u0275fac=function(a){return new (a||jHd)};jHd.\u0275cmp=D({type:jHd,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&&(cg(),E(0,Yyb,1,0,"div",0)(1,Zyb,2,0,"ng-container",1));a&2&&(I("ngIf",!b.isReady),B(),I("ngIf",b.isReady))},dependencies:[Fx],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 kHd=function(){this.warning=""};kHd.\u0275fac=function(a){return new (a||kHd)};
kHd.\u0275cmp=D({type:kHd,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("is-present",b.warning)},inputs:{warning:"warning"},standalone:!1,decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip"],["d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"]],template:function(a,b){a&1&&E(0,$yb,2,
1,"svg",0);a&2&&I("ngIf",b.warning)},dependencies:[Fx,FX],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 lHd=["*",[["","actions",""]]],mHd=[[["onedev-field-label"]],[["onedev-field-value"]]],nHd=0,j_=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+nHd;nHd++};j_.\u0275fac=function(a){return new (a||j_)};
j_.\u0275cmp=D({type:j_,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&Kf("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&&(cg(),K(0,"onedev-async-data-placeholder",0)(1,"span",1),dg(2),L(),M(3,"onedev-warning-icon",2),L());a&2&&(I("isReady",!b.thinking),B(),I("matTooltip",b.labelTooltip),
B(2),I("warning",b.warning))},dependencies:[jHd,FX,kHd],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var oHd=function(){this.thinking=!1};oHd.\u0275fac=function(a){return new (a||oHd)};
oHd.\u0275cmp=D({type:oHd,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},standalone:!1,ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(cg(lHd),K(0,"onedev-async-data-placeholder",0),dg(1),dg(2,1),L());a&2&&I("isReady",!b.thinking)},dependencies:[jHd],encapsulation:2});var k_=function(){this.labelPosition="left"};
k_.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};k_.\u0275fac=function(a){return new (a||k_)};
k_.\u0275cmp=D({type:k_,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(ig(c,c_,5),ig(c,j_,7));if(a&2){var d;lg(d=mg())&&(b.field=d.first);lg(d=mg())&&(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&&(cg(mHd),K(0,"div",0),dg(1),dg(2,1),L());a&2&&wg("active",b.field==null?null:b.field.isActive())("top-label",b.labelPosition===
"top")},styles:[".wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:2px}.wrapper.top-label[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%]     onedev-field-label{margin-right:5px}[_nghost-%COMP%]     onedev-field-value{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;min-height:29px}[_nghost-%COMP%]     onedev-field-value>*{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;width:100%}[_nghost-%COMP%]     onedev-field-value onedev-async-data-placeholder{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start}[_nghost-%COMP%]     onedev-field-value [actions]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     onedev-field-value:not(.content-overflow){overflow:hidden;text-overflow:ellipsis}.active[_ngcontent-%COMP%]     onedev-field-label{color:var(--primary-default,#1a73e8)}"]});var pHd=["traditionalEditorField"],qHd=["peopleKitUserPicker"],l_=function(){this.activeSession=p(qu);this.issuePermissionService=p(WQ);this.issueDetailsBrain=p(UQ);this.elementRef=p(Jd);this.cdr=p(ux);this.title=this.name="";this.value=null;this.valueChange=new XP;this.emailChange=new XP;this.displayValueOverride="";this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.teamId$=this.issueDetailsBrain.teamId$;this.FieldType=
qV};l_.prototype.emailToUser=function(a){return Pm(ym(a))};l_.prototype.emitValueChange=function(){this.valueChange.emit({editField:void 0,newEmail:void 0});this.cdr.markForCheck()};l_.prototype.openEditor=function(){var a;(a=this.peopleKitUserPicker)==null||a.openPopOver()};l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=D({type:l_,selectors:[["b-single-user-control"]],viewQuery:function(a,b){a&1&&(hg(pHd,5),hg(qHd,5));if(a&2){var c;lg(c=mg())&&(b.traditionalEditorField=c.first);lg(c=mg())&&(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:10,vars:14,consts:[["peopleKitUserPicker",""],[3,"thinking"],
[3,"emailChange","anchor","user","teamId","disabled","displayValueOverride"],[3,"user"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-edit-field")(1,"onedev-field-label");Q(2);L();K(3,"onedev-field-value",1)(4,"b-user-picker",2,0);T(6,"emailToUser");T(7,"async");T(8,"async");N("emailChange",function(g){u(c);b.emailChange.emit(g);b.cdr.markForCheck();return v()});L();F(9,azb,1,1,"b-availability-chip",3);L()()}if(a&2){B(2);yg(b.title);B();I("thinking",!!b.isSaving);B();var d,e,f;I("anchor",
(d=b.anchor)!=null?d:b.elementRef.nativeElement)("user",(e=b.user)!=null?e:U(6,8,b.value||""))("teamId",(f=U(7,10,b.teamId$))!=null?f:"")("disabled",!U(8,12,b.hasAclToEdit$))("displayValueOverride",b.displayValueOverride);B(5);G(b.user?9:-1)}},dependencies:[SU,j_,oHd,k_,g_,fV,Lx],encapsulation:2});var rHd=[[["","expansion-panel-header",""]],"*"],m_=function(){this.instance=m_.instanceCounter;this.expanded=!1};m_.prototype.ngOnInit=function(){m_.instanceCounter++};m_.prototype.toggle=function(){this.expanded=!this.expanded};m_.instanceCounter=0;m_.\u0275fac=function(a){return new (a||m_)};
m_.\u0275cmp=D({type:m_,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&&(cg(rHd),K(0,"div",0)(1,"div",1),N("click",function(){return b.toggle()})("keydown.enter",function(){return b.toggle()})("keydown.space",function(c){return c.preventDefault()})("keyup.space",function(){return b.toggle()}),dg(2),K(3,"button",2),N("click",function(c){b.toggle();return c.stopPropagation()}),M(4,"mat-icon",3),L()(),F(5,bzb,2,3,"div",4),L());a&2&&(wg("expanded",b.expanded),B(),I("id",
Eg("expansion-panel-header-",b.instance)),Kf("aria-controls","expansion-panel-content-"+b.instance)("aria-expanded",b.expanded),B(4),G(b.expanded?5:-1))},dependencies:[Dy,gB,eB],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 qzb=function(){return[]},wzb=function(a,b){return b.key},n_=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(TP);this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.paramsService=p(SQ);this.issueExperimentalFieldsFridge=p(PP);this.issuePermissionService=p(WQ);this.triageService=p(TR);this.activeSession=p(qu);this.errorHandler=p(kO);this.preferences=p(dR);this.similarIssuesApi=p(pW);this.issueMarkAsDuplicateDialogService=p(zY);this.analytics=p(aQ);this.recommendationTriggerService=
p(ZQ);this.refreshMonitor=p(QP);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.issueId$=this.triageService.currentIssueId$.pipe(we(Qm),pf());this.PHASE_TO_ACTIONS=mmd;this.TriagePhase=vcd;this.MAX_SIMILAR_ISSUES=10;this.displaySecondaryFooter=!1;this.refreshTable=new XP;this.teamId$=gkd(this.paramsService,"teamId").pipe(pf(),we(Qm));this.triageViewId=this.paramsService.params.triageId;this.phaseUrlSlug=this.paramsService.params.phase;this.data$=this.teamId$.pipe(A(function(b){return a.triageService.triageDataFactory.get(b,
a.triageViewId)}));this.triageScope$=this.data$.pipe(Af(function(b){return b.triageScope$}));this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFridge.watch(b)}));this.canonicalIssueId$=this.issue$.pipe(A(function(b){var c,d;return(d=b==null?void 0:(c=b.snapshot[0])==null?void 0:c.duplicateOfIssueId)!=null?d:void 0}));this.experimentalFields$=this.issueId$.pipe(Af(function(b){return a.issueExperimentalFieldsFridge.watch(b)}));this.reporterUser$=this.issue$.pipe(A(function(b){var c;return b==
null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.reporterEmail$=this.reporterUser$.pipe(A(function(b){return xm(b)||""}));this.triagerEmail$=this.experimentalFields$.pipe(A(function(b){var c;return b==null?void 0:(c=b.triage)==null?void 0:c.triagerEmail}));this.triager$=this.triagerEmail$.pipe(A(function(b){return ym(b)}));this.issuePhase$=this.issue$.pipe(A(Er));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&Zs.get(b))!=null?c:""}));this.issueSubphase$=
this.issue$.pipe(A(Fr));this.issueSubphaseDisplay$=this.issueSubphase$.pipe(A(function(b){var c;return(c=b&&yld[b])!=null?c:""}));this.events$=this.issueId$.pipe(Af(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){return(b==null?void 0:b.events)||[]}));this.comments$=this.events$.pipe(A(function(b){return b.filter(ho).slice(1)}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(A(Boolean),zf(!0));this.similarIssueIds$=le([this.issueId$,this.triageScope$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return Xvd(a.similarIssuesApi,{issueId:Number(b),scope:c+" status:open",embeddingType:2})}),A(function(b){return b.similarIssues}),A(function(b){return b.map(function(c){return c.issueId})}),A(function(b){return b.slice(0,10)}),xf({bufferSize:1,refCount:!0}));this.needsInfoAutomaticChanges$=
this.reporterEmail$.pipe(A(function(b){return[{field:"ASSIGNEE",value:b},{field:"COMMENT",value:"Hi @"+b+", "}]}));this.teamId$.pipe(Af(function(b){return qmd(a.triageService.triageDataFactory.get(b,a.triageViewId),"NEW")}),A(function(b){var c=[].concat(q(jmd.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(Af(function(b){return kkd(a.recommendationTriggerService,b)}),
xf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(Af(function(b){return lkd(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=le([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),xf({bufferSize:1,refCount:!0}));this.triageRecommendation$=this.issueId$.pipe(Af(function(b){return okd(a.recommendationTriggerService,b)}),
xf({bufferSize:1,refCount:!0}))};Y(n_,Z);n_.\u0275dir=Z.\u0275dir;h=n_.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Ef(this.issueId$)).subscribe(function(b){b=m(b);b.next();b=b.next().value;a.eventsForIssueFridge.poke(b)}))};h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.subphase="NEEDS_INFO"}),2):c.return(c.yieldResult)})};
h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="PENDING_OWNER"}),2):c.return(c.yieldResult)})};
h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="EXPECTED"}),2):c.return(c.yieldResult)})};
h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="PLANNED"}),2):c.return(c.yieldResult)})};h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="COMMITTED"}),2):c.return(c.yieldResult)})};
h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="FIXED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="WONT_FIX";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.openSecondaryActionFooter=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,qCd(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);ce(d)})};
h.finalizeSecondaryAction=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:if(!b.selectedTriageAction)return f.return();c=b.selectedTriageAction;d=a[0];switch(c){case "SET_NEEDS_INFO":return f.jumpTo(2);case "SET_CONFIRMED":return f.jumpTo(3);case "SET_PENDING_OWNER":return f.jumpTo(4);case "SET_NEW":return f.jumpTo(5);case "SET_IN_PROGRESS":return f.jumpTo(6);case "SET_EXPECTED":return f.jumpTo(7);case "SET_PLANNED":return f.jumpTo(8);case "SET_COMMITTED":return f.jumpTo(9);
case "SET_FIXED":return f.jumpTo(10);case "CHANGE_COMPONENT":return f.jumpTo(11);case "SET_WONT_FIX":return f.jumpTo(12);case "MARK_AS_DUPLICATE":throw Error("of");default:wb(c)}f.jumpTo(13);break;case 2:return z(f,b.setNeedsInfo(d),14);case 14:e=f.yieldResult;f.jumpTo(13);break;case 3:return z(f,b.setConfirmed(d),15);case 15:e=f.yieldResult;f.jumpTo(13);break;case 4:return z(f,b.setPendingOwner(d),16);case 16:e=f.yieldResult;f.jumpTo(13);break;case 5:return z(f,b.setNew(d),17);case 17:e=f.yieldResult;
f.jumpTo(13);break;case 6:return z(f,b.setInProgress(d),18);case 18:e=f.yieldResult;f.jumpTo(13);break;case 7:return z(f,b.setExpected(d),19);case 19:e=f.yieldResult;f.jumpTo(13);break;case 8:return z(f,b.setPlanned(d),20);case 20:e=f.yieldResult;f.jumpTo(13);break;case 9:return z(f,b.setCommitted(d),21);case 21:e=f.yieldResult;f.jumpTo(13);break;case 10:return z(f,b.setFixed(d),22);case 22:e=f.yieldResult;f.jumpTo(13);break;case 11:return z(f,b.setNew(d),23);case 23:e=f.yieldResult;f.jumpTo(13);
break;case 12:return z(f,b.setWontFix(d),24);case 24:e=f.yieldResult;f.jumpTo(13);break;case 13:b.displaySecondaryFooter=!1,b.announceUpdate(e,d),b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+c),ce(f)}})};h.announceUpdate=function(a,b){a&&(this.issueFullFridge.poke(b),this.refreshTable.emit())};h.cancelAction=function(){this.selectedTriageAction=void 0;this.displaySecondaryFooter=!1};
var gzb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return b&&b.length>0&&((c=b)==null||!c.endsWith("@google.com"))?(lO(a.errorHandler,"Only Googlers can be triagers."),e.return()):z(e,ie(a.issueId$),2);d=e.yieldResult;return z(e,a.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.triagerEmail=b}),0)})};n_.prototype.claim=function(){gzb(this,this.activeSession.getUserEmail());this.analytics.trackEvent("triageIssue","claim")};
n_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(n_)))(b||n_)}}();
n_.\u0275cmp=D({type:n_,selectors:[["issue-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Gf],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,Azb,19,19,"div",6),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issueId$))?0:-1,c)}},dependencies:[Dy,NZ,MZ,m_,gB,cB,eB,oK,iA,DK,EK,LK,FK,PW,GZ,TZ,wW,eT,yW,UZ,aK,i_,l_,a_,KY,bV,$U,LU,cV,Lx],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 sHd=function(){var a=this;this.activeSession=p(qu);this.issueExperimentalFieldsFridge=p(PP);this.triageService=p(TR);this.currentUserEmail=this.activeSession.getUserEmail();this.issueIds$=this.triageService.currentIssueIds$;this.onToggleClaim$=new Nj(void 0);this.hasUserClaimedIssues$=le([this.issueIds$,this.onToggleClaim$]).pipe(A(function(b){var c=m(b);b=c.next().value;c.next();return b}),Af(function(b){return a.issueExperimentalFieldsFridge.watchSet(b)}),A(function(b){return b.every(function(c){var d;
return((d=c.triage)==null?void 0:d.triagerEmail)===a.currentUserEmail})}));this.buttonText$=le([this.hasUserClaimedIssues$]).pipe(A(function(b){return m(b).next().value?"Unclaim":"Claim"}));this.isSaving=!1},Bzb=function(a,b,c){var d,e,f;return y(function(g){switch(g.nextAddress){case 1:a.isSaving=!0,d=m(b),e=d.next();case 2:if(e.done){g.jumpTo(4);break}f=e.value;return z(g,a.issueExperimentalFieldsFridge.updateOrInsert(f,function(k){k.triage.triagerEmail=c?void 0:a.currentUserEmail}),3);case 3:e=
d.next();g.jumpTo(2);break;case 4:a.isSaving=!1,a.onToggleClaim$.next(),ce(g)}})};sHd.\u0275fac=function(a){return new (a||sHd)};
sHd.\u0275cmp=D({type:sHd,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,Czb,6,8,"button",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issueIds$))?0:-1,c)}},dependencies:[gB,cB,Lx],encapsulation:2,changeDetection:0});var Kzb=function(a,b){return b.key},o_=function(){Z.apply(this,arguments);var a=this;this.triageService=p(TR);this.analytics=p(aQ);this.butterBar=p(QN);this.errorHandler=p(kO);this.issueApi=p(HP);this.issueFridge=p(TP);this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.issuePicker=p(XX);this.paramsService=p(SQ);this.triagePhaseService=p(LY);this.phaseUrlSlug=this.paramsService.params.phase;this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.PHASE_TO_ACTIONS=mmd;this.TriagePhase=vcd;this.displaySecondaryFooter=!1;this.issue$=this.issueIds$.pipe(Af(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Er));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&Zs.get(b))!=null?c:""}));this.issues$=this.issueIds$.pipe(Af(function(b){return a.issueFridge.watchSet(b)}));this.issueSubphases$=this.issues$.pipe(A(function(b){return b.map(function(c){return Fr(c)}).filter(function(c){return c!==
void 0})}));this.issueSubphasesDisplay$=this.issueSubphases$.pipe(A(function(b){b=b.map(function(c){var d;return(d=yld[c])!=null?d:""});return vq(b)}));this.refreshTable=new XP};Y(o_,Z);o_.\u0275dir=Z.\u0275dir;h=o_.prototype;
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:return z(l,ie(a.issueIds$),2);case 2:b=l.yieldResult;if(!b||!b.length)return l.return();c=cVa;return z(l,ie(a.issueFridge.watchSet(b)),3);case 3:return d=c(l.yieldResult),e=m,z(l,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),4);case 4:return f=e(l.yieldResult),(k=g=f.next().value)?z(l,a.markAsDuplicate(k,
b),0):l.return()}})};h.openSecondaryActionFooter=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?c.jumpTo(2):z(c,b.openDupeDialog(),3);if(c.nextAddress!=2)return b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+a),c.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;ce(c)})};h.cancelAction=function(){this.displaySecondaryFooter=!1};h.closeSidebar=function(){this.triageService.closeSidebar();this.triageService.setMode(0)};
h.finalizeSecondaryAction=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){if(!b.selectedTriageAction)return e.return();c=b.selectedTriageAction;return z(e,PCd(b.triagePhaseService,a,c),2)}d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ce(e)})};
h.markAsDuplicate=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=b.filter(function(k){return k!==a});if(!d.length)return g.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Yd(g,2);Pr(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),4)}if(g.nextAddress!=2)return Pr(c.butterBar,"Marked "+b.length+" issues as duplicate."),c.announceUpdate(b),c.closeSidebar(),bt(g,0);f=be(g);mO(c.errorHandler,f);return z(g,Promise.all([].concat(q(b.map(function(k){return c.issueFridge.poke(k)})),
[c.issueFridge.poke(a)])),0)})};h.announceUpdate=function(a,b){if(b&&b.length)for(a=m(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};o_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(o_)))(b||o_)}}();
o_.\u0275cmp=D({type:o_,selectors:[["selection-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Gf],decls:15,vars:12,consts:[[1,"container","bg-secondary","flex-kids-y"],[1,"border-bottom","bg-main","align-items-center","flex-kids-x"],[1,"margin-s-left","margin-s-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label","Close sidebar",1,"gmat-button","margin-left-auto",3,"click"],["svgIcon","close"],[1,"content","flex-kids-y"],[1,"heading-m",
"margin-s"],[1,"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[1,"muted"],[1,"chippy"],[1,"chippy","margin-s-right"],[1,"full-width",3,"selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","",1,"gmat-button",3,"disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,Dzb,5,1,"div",2),T(3,"async"),F(4,
Gzb,1,1),T(5,"async"),K(6,"button",3),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",4),L()(),K(8,"div",5)(9,"h3",6),Q(10),T(11,"async"),L(),K(12,"div",7),F(13,Nzb,2,3),T(14,"async"),L()()());if(a&2){var c,d,e,f;B(2);G((c=U(3,4,b.issuePhaseDisplay$))?2:-1,c);B(2);G((d=U(5,6,b.issueSubphasesDisplay$))?4:-1,d);B(6);S("",(e=U(11,8,b.issueIds$))==null?null:e.length," issues");B(3);G((f=U(14,10,b.issueIds$))?13:-1,f)}},dependencies:[Dy,gB,cB,eB,oK,iA,sHd,KY,LU,Lx],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 p_=function(){var a=this;this.editIssueService=p(DS);this.issueFridge=p(TP);this.IssueFieldKey=KCd;this.issueId$=new wf(1);this.automaticChange$=new wf(1);this.editableIssue$=this.issueId$.pipe(Af(function(b){return a.editIssueService.editableIssue$(b)}),xf({refCount:!0,bufferSize:1}));this.undone=!1;this.text$=le([this.editableIssue$,this.automaticChange$]).pipe(A(function(b){var c=m(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:wb(d)}b=void 0}return b}))};p_.prototype.ngOnInit=function(){};
p_.prototype.undo=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return b=a.automaticChange.field,z(e,ie(a.editableIssue$),2);if(e.nextAddress!=3)return c=e.yieldResult,z(e,ie(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(um(d.snapshot[0].assigneeUser));break;case "COMMENT":throw Error("Rf");default:wb(b)}a.undone=!0;ce(e)})};
da.Object.defineProperties(p_.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return zr(this.issueId$)}},automaticChange:{configurable:!0,enumerable:!0,set:function(a){this.automaticChange$.next(a)},get:function(){return zr(this.automaticChange$)}}});p_.\u0275fac=function(a){return new (a||p_)};
p_.\u0275cmp=D({type:p_,selectors:[["automatic-change-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&vg("display",b.automaticChange.field===b.IssueFieldKey.COMMENT||b.undone?"none":"block")},inputs:{issueId:"issueId",automaticChange:"automaticChange"},standalone:!1,decls:7,vars:3,consts:[[1,"b-chip","blue","flex-kids-x","align-items-center","gap-xs"],["matTooltip","System suggestion","svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right","color-text"],[1,"color-text"],["type","button","mat-button",
"",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"mat-icon",1),K(2,"span",2),Q(3),T(4,"async"),L(),K(5,"button",3),N("click",function(){return b.undo()}),Q(6,"Undo"),L()());a&2&&(B(3),yg(U(4,1,b.text$)))},dependencies:[Dy,gB,cB,oK,iA,Lx],encapsulation:2,changeDetection:0});var tHd=["pickerToggle"],q_=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new XP};q_.\u0275fac=function(a){return new (a||q_)};
q_.\u0275cmp=D({type:q_,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&hg(tHd,7);if(a&2){var c;lg(c=mg())&&(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();K(0,"button",1,0);N("bDateTimePickerToggleSelectedChange",function(d){u(c);b.value=d;b.valueChange.emit(d);return v()});F(2,Ozb,1,1,"b-formatted-date-time",2)(3,Pzb,2,0,"ng-container");L()}a&2&&(I("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),Kf("aria-labelledby",b.customAriaLabelledBy),B(2),G(b.value?2:3))},dependencies:[lV,sV,gB,cB],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});var uHd=["filterInput"],r_=function(){Z.apply(this,arguments);this.dateFormatter=p(cS);this.enumChoices=[];this.onSave=new XP;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};Y(r_,Z);r_.\u0275dir=Z.\u0275dir;h=r_.prototype;h.ngOnInit=function(){this.initValues()};h.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};h.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(Af(function(){return te(0)}),Bf(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
h.showMenu=function(){this.trigger.openMenu()};h.closeMenu=function(){this.trigger.closeMenu()};h.focusFilterBox=function(){var a;(a=this.filterElement)==null||a.nativeElement.focus()};var vHd=function(a){return a.filterValue&&a.type!=="REPEATED_DATE"?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};h=r_.prototype;
h.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),this.sortValues(),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};h.changeSelection=function(a){this.focusFilterBox();var b=this.valueMap.get(a);b?this.valueMap.set(a,!1):b===!1?(b=this.originalValueMap.get(a)===null,this.valueMap.set(a,b?null:!0)):this.valueMap.set(a,!0);this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()})};
h.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||b!==void 0?c!==b:!1})};h.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=m(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);this.sortValues()};
h.sortValues=function(){var a=this;this.sortedValues=Array.from(this.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:c===!1?-1:0)-(b?1:b===!1?-1:0)})};var Rzb=function(a){return!!a.filterValue&&a.type!=="REPEATED_ENUM"&&a.type!=="REPEATED_DATE"};r_.prototype.getDisplayString=function(a){return this.type==="REPEATED_DATE"?this.dateFormatter.formatUserCalendar(wRa(a)):a};r_.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
r_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(r_)))(b||r_)}}();
r_.\u0275cmp=D({type:r_,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(hg(aH,5),hg(uHd,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},standalone:!1,features:[Gf,bx],decls:14,vars:6,consts:[["customFieldMenu","matMenu"],["filterInput",""],["mat-button","","type","button",1,"medium","primary",3,"matMenuTriggerFor"],["name",
"arrow-dropdown","size","small"],["role","option",1,"multi-edit-menuitem",3,"title"],[1,"filter"],["mat-input","","step","any",3,"type","ngModel","placeholder"],["mat-menu-item",""],[3,"change","click","checked","indeterminate"],["mat-input","","step","any",3,"keydown","click","ngModelChange","type","ngModel","placeholder"],["mat-menu-item","",3,"click"],[3,"valueChange","value"],["mat-menu-item","","aria-label","Add a date value","tabindex","0","aria-haspopup","true",3,"click"]],template:function(a,
b){a&1&&(K(0,"button",2)(1,"span"),Q(2),L(),M(3,"b-icon",3),L(),K(4,"mat-menu",null,0),Of(6,Qzb,3,4,"div",4,Nf),M(8,"mat-divider"),K(9,"div",5),F(10,Szb,2,3,"input",6),L(),F(11,Tzb,1,0,"mat-divider"),F(12,Uzb,2,0,"div",7),F(13,Vzb,4,1,"div"),L());a&2&&(a=qg(5),I("matMenuTriggerFor",a),B(2),yg(b.getLabel()),B(4),Pf(vHd(b)),B(4),G(b.type!=="REPEATED_DATE"?10:-1),B(),G(Rzb(b)?11:-1),B(),G(Rzb(b)?12:-1),B(),G(b.type==="REPEATED_DATE"?13:-1))},dependencies:[OJ,YG,WG,aH,aK,pT,gB,cB,fL,aI,yj,$D,gE,q_],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var wHd=0,s_=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+wHd;wHd+=1};s_.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};s_.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};s_.\u0275fac=function(a){return new (a||s_)(Ye(ux))};
s_.\u0275dir=df({type:s_,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Qf("id",b.id),wg("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"],standalone:!1});var xHd=function(){};xHd.\u0275fac=function(a){return new (a||xHd)};xHd.\u0275mod=cf({type:xHd});xHd.\u0275inj=Hc({});var Yzb=function(a){return{$implicit:a}},t_=function(a){var b=this;this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.options$=new Nj([]);this.filterText$=new Nj("");this.filteredOptions$=le([this.options$,this.filterText$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;return b.filterFunction!==void 0&&b.filterFunction!==null?c.filter(function(f){return b.filterFunction(e,f)}):c}));this.valueChange=new Ui;this.selected=new Ui;this.destroyed$=
new wf(1);a&&this.handleKeydown(a.keydown$)};h=t_.prototype;h.ngOnInit=function(){};h.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};h.ngAfterViewInit=function(){this.keyManager=hz(gz(new lz(this.viewOptions)))};h.ngOnChanges=function(a){a.value&&yHd(this);a.options&&this.options$.next(this.options)};h.isSelected=function(a){return this.value===a};h.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};
var yHd=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),zHd(a))}};t_.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
t_.prototype.handleKeydown=function(a){var b=this;a.pipe(Bf(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;d==="ArrowUp"||d==="ArrowDown"?(c.preventDefault(),b.keyManager.onKeydown(c),zHd(b)):d==="Home"||d==="End"?(c.preventDefault(),d==="Home"?b.keyManager._setActiveItemByIndex(0,1):YCc(b.keyManager),zHd(b)):d!=="Enter"&&d!=="Space"||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var zHd=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"})}};t_.\u0275fac=function(a){return new (a||t_)(Ye(tW,8))};
t_.\u0275cmp=D({type:t_,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&hg(s_,5);if(a&2){var c;lg(c=mg())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&N("focus",function(){return yHd(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,Kf("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:[bx],decls:3,vars:4,consts:[["filterEl",""],["optionDisplay",""],["customOptionDisplay",""],["emptyOption",""],["class","filter-bar","onedevListOption","",4,"ngIf"],[4,"ngIf"],["onedevListOption","",1,"filter-bar"],["xmlns",
"http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"],["placeholder","Type to filter","spellcheck","false",3,"input"],["role","option","onedevListOption","",3,"option","click",4,"ngIf"],[4,"ngFor","ngForOf"],["role","option","onedevListOption","",3,"click","option"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["aria-label","empty"]],template:function(a,b){a&1&&(E(0,Wzb,5,0,"div",4)(1,iAb,5,2,"ng-container",5),T(2,"async"));
a&2&&(I("ngIf",b.showFilterBar),B(),I("ngIf",U(2,2,b.filteredOptions$)))},dependencies:[Ex,Fx,Kx,s_,Lx],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 AHd=["trigger"],kAb=function(a){return{$implicit:a}},BHd=0,u_=function(){this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.popupMaxHeight=300;this.label="";this.valueChange=new Ui;this.closed=new Ui;this.displayArrowIcon=!0;this.openPopupOnInit=!1;this.required=Og.apply(null,[!1].concat(q([])));this.focused=!1;this.contentId="onedev-single-select-"+BHd;this.onChange=function(){};this.onTouched=function(){};BHd++};Y(u_,c_);h=u_.prototype;
h.ngOnInit=function(){};h.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};h.writeValue=function(a){this.val=a};h.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};h.isActive=function(){return this.popupTrigger.isOpen||this.focused};h.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};h.registerOnChange=function(a){this.onChange=a};
h.registerOnTouched=function(a){this.onTouched=a};var CHd=function(a){var b="";a.label&&(b+=a.label+", ");a.required()&&(b+="required, ");return b};u_.prototype.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(u_.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});u_.\u0275fac=function(a){return new (a||u_)};
u_.\u0275cmp=D({type:u_,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&hg(AHd,7);if(a&2){var c;lg(c=mg())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",showFilterBar:"showFilterBar",filterFunction:"filterFunction",popupMaxHeight:"popupMaxHeight",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",
openPopupOnInit:"openPopupOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",closed:"closed"},standalone:!1,features:[Gg([{provide:VD,useExisting:Yc(function(){return u_}),multi:!0},{provide:c_,useExisting:Yc(function(){return u_}),multi:!0}]),Gf],decls:13,vars:22,consts:[["trigger","onedevPopupPanelTrigger"],["optionTemplateOrTextLabel",""],["textLabel",""],["panel","onedevPopupPanel"],["emptyValue",""],["type","button","onedevPopupPanelTrigger","",3,"focus","blur","click","closed",
"onedevPopupPanelTriggerDisabled","disabled","onedevPopupPanelTriggerFor"],[1,"cdk-visually-hidden"],[4,"ngIf","ngIfElse"],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],["tabindex","0",1,"single-select-panel",3,"valueChange","selected","value","includeEmptyOption","emptyOptionValue","options","optionTemplate","label","showFilterBar","filterFunction"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label",
"empty"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"arrow-icon"],["d","M7 10l5 5 5-5H7z"]],template:function(a,b){if(a&1){var c=t();K(0,"button",5,0);N("focus",function(){u(c);return v(b.focused=!0)})("blur",function(){u(c);return v(b.focused=!1)})("click",function(){u(c);var e=qg(1);return v(e.open())})("closed",function(){u(c);b.closed.emit();b.onTouched();return v()});K(2,"span",6);Q(3);L();E(4,lAb,2,4,"ng-container",7)(5,oAb,1,2,"ng-template",null,1,Mg)(7,rAb,3,2,"ng-template",
null,2,Mg)(9,sAb,2,0,"svg",8);L();K(10,"onedev-popup-panel",9,3)(12,"onedev-selectable-list",10);N("valueChange",function(e){u(c);return v(b.onSelectionChange(e))})("selected",function(){u(c);var e=qg(1);return v(e.close())});L()()}if(a&2){a=qg(6);var d=qg(11);wg("active",b.isActive());I("onedevPopupPanelTriggerDisabled",b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",d);Kf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);yg(CHd(b));B();I("ngIf",b.valueTemplate)("ngIfElse",
a);B(5);I("ngIf",b.displayArrowIcon);B();I("relayOnly",!0);B(2);vg("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:[Fx,Kx,tW,t_,uW,vW],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 AAb=function(){return[]},v_=function(){this.data=p(PA);this.dialogRef=p(NA);this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=this.data;this.bulkEditOps=[]};h=v_.prototype;
h.ngOnInit=function(){for(var a=new Map,b=null,c=m(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=m(Object.keys(d)),g=f.next();!g.done;g=f.next())g=g.value,b.set(sm(g),e[g]||void 0)}f=m(b);for(g=f.next();!g.done;g=f.next()){var k=m(g.value);g=k.next().value;k=k.next().value;var l=d[g],r=e[g],w=void 0,x=(w=l)==null?void 0:w.type;if(l)if(x==="REPEATED_DATE"||x==="REPEATED_ENUM"||x==="REPEATED_NUMERIC"||x==="REPEATED_TEXT"){k=
this.repeatedCustomFieldsMap.get(g)||new Map;l=k.size===0;r=DHd(r);w=Array.from(k.keys()).concat(r);w=m(w);for(x=w.next();!x.done;x=w.next())x=x.value,r.includes(x)?k.has(x)||k.set(x,l||null):k.set(x,null);this.repeatedCustomFieldsMap.set(g,k)}else(!r&&k!==void 0||r&&!mm(r,k))&&b.set(g,null);else b.delete(g)}d=m(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=m(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),pm(f))}this.customFields=Array.from(b.keys(),function(C){return a.get(C)}).filter(function(C){return C});
this.customFields=this.customFields.map(function(C){var H=b.get(C.customFieldId);C.hasMultipleValues=H===null;H?C=Object.assign(H,C):C.hasMultipleValues||C.type!=="ENUM"||(C.enumValue="");return C});c=m(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,pm(d))};
h.clearCustomFieldValue=function(a){a.hasMultipleValues=!1;switch(a.type){case "TEXT":a.textValue="";break;case "DATE":a.dateValue=null;break;case "ENUM":a.enumValue="";break;case "NUMERIC":a.numericValue=null}};h.getCustomFieldName=function(a){return a.name};h.isCustomFieldRequired=function(a){return a.required};h.getCustomFieldAllowedValues=function(a){return a.allowedValue};h.getCustomFieldType=function(a){return a.type};
var vAb=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},DHd=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()}):[]},yAb=function(a){return a?Tq(a):null},CAb=function(a,b,c){for(var d=m(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(w){return w.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(w){return w.actions.length});if(c.valueChanged){d=m(a.issues);var f=d.next();for(e={};!f.done;e={issueValues$jscomp$1:void 0,action$jscomp$220:void 0},f=d.next()){f=f.value;var g=Ota(f.customFieldValueMap,function(w){return w.customFieldId===b});e.issueValues$jscomp$1=DHd(g);c.valueMap.forEach(function(w){return function(x,C){x&&!w.issueValues$jscomp$1.includes(C)?w.issueValues$jscomp$1.push(C):x===!1&&(w.issueValues$jscomp$1=w.issueValues$jscomp$1.filter(function(H){return H!==
C}))}}(e));g=a.originalCustomFields.get(b).type;var k=[],l=[];g=="REPEATED_DATE"?k=e.issueValues$jscomp$1.map(function(w){return O1a(wRa(w))}):g=="REPEATED_NUMERIC"&&(l=e.issueValues$jscomp$1.map(function(w){return Number(w)}));var r={customFieldId:b};switch(g){case "REPEATED_TEXT":r.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":r.repeatedDateValue={values:k};break;case "REPEATED_ENUM":r.repeatedEnumValue={values:e.issueValues$jscomp$1};break;case "REPEATED_NUMERIC":r.repeatedNumericValue=
{values:l}}e.action$jscomp$220={fieldName:"customField",customFieldValue:r,actionType:Vq(r)?"REMOVE":"ADD"};g=a.bulkEditOps.findIndex(function(w){return function(x){return x.actions.some(function(C){return mm(w.action$jscomp$220,C)})}}(e));g!==-1?a.bulkEditOps[g].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$220],issueIds:[f.issueId]})}}},EHd=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&!mm(k,a.originalCustomFields.get(k.customFieldId))}),
c=[];b=m(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=Vq(d))d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var g=a.issues.map(function(k){return k.issueId});b=a.bulkEditOps.findIndex(function(k){return Gba(g,
k.issueIds)});b!==-1?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:g})}};v_.\u0275fac=function(a){return new (a||v_)};
v_.\u0275cmp=D({type:v_,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&&(K(0,"h2",0),Q(1,"Update custom fields"),L(),K(2,"mat-dialog-content"),F(3,tAb,2,0,"div"),Of(4,GAb,7,5,"div",1,Nf),L(),K(6,"mat-dialog-actions")(7,"button",2),N("class",function(){return b.dialogRef.close()}),Q(8,"Cancel"),L(),K(9,"button",3),N("click",function(){EHd(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),Q(10," Save "),L()());a&2&&(B(3),G(b.customFields.length===0?3:-1),B(),Pf(b.customFields))},dependencies:[RA,TA,VA,UA,u_,r_,yj,iE,$D,gE,q_,gB,cB,oK,
iA],encapsulation:2});var KAb=function(){return[]},w_=function(){this.disabled=this.readonly=!1;this.save=new XP},FHd=function(a){return a.issue.customFieldMap[a.field.customFieldId]};w_.prototype.getDisplayValue=function(){var a,b,c=(b=(a=FHd(this).displayValues)==null?void 0:a[0])!=null?b:null;c==="0.0"&&(c="0");return c};w_.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 JAb=function(a){return(a=Uq(FHd(a)))&&a.values===void 0?a:null},HAb=function(a){return(a=Uq(FHd(a)))&&a.values!==void 0?a.values:null};da.Object.defineProperties(w_.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});w_.\u0275fac=function(a){return new (a||w_)};
w_.\u0275cmp=D({type:w_,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&hg(pV,5);if(a&2){var c;lg(c=mg())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&wg("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},standalone:!1,decls:1,vars:1,consts:[[3,"readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],
[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"],[3,"valuesChange","readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],[3,"valueChange","readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"]],template:function(a,b){a&1&&F(0,MAb,2,1);if(a&
2){var c;G((c=FHd(b))?0:-1,c)}},dependencies:[PV,pV],encapsulation:2});var x_=function(){};x_.\u0275fac=function(a){return new (a||x_)};x_.\u0275mod=cf({type:x_});x_.\u0275inj=Hc({imports:[RO,QV,rV]});var NAb=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 y_=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(MO);this.editIssueService=p(DS);this.issueFridge=p(TP);this.matDialog=p(QA);this.paramsService=p(SQ);this.triageService=p(TR);this.hasMultipleIssues=!1;this.subphase=this.phase=void 0;this.onCustomFieldBulkEdit=new XP;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(Af(function(b){return a.issueFridge.watchSet(b)}));this.components$=this.issues$.pipe(Af(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 Nj([]);this.issueRows$=le([this.issues$,this.components$]).pipe(A(function(b){b=m(b);var c=b.next().value;b=b.next().value;var d=[];c=m(c);for(var e=c.next(),f={};!e.done;f={issue$jscomp$230:void 0},e=c.next())f.issue$jscomp$230=
e.value,e=b.find(function(g){return function(k){return k.componentId===g.issue$jscomp$230.snapshot[0].componentId}}(f)),d.push(PAb(f.issue$jscomp$230,e));return d}));this.updatedIssueRows$=le([this.issueRows$,this.bulkEditUpdate$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return c.length?GHd(b,c):b}));this.customFieldConfigs$=pmd(this.triageService.triageDataFactory.get(this.teamId,this.triageViewId),this.phase,this.subphase);this.visibleCustomFields$=this.issueId$.pipe(Af(function(b){return b?
a.editIssueService.issueFields(b).visibleCustomFields$:ee(void 0)}));this.customFields$=le([this.visibleCustomFields$,this.customFieldConfigs$]).pipe(A(function(b){var c=m(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}),xf({refCount:!0,bufferSize:1}))};Y(y_,Z);y_.\u0275dir=Z.\u0275dir;
y_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.customFieldConfigs$.subscribe(function(b){if(b){b=m(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 QAb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.matDialog.open(v_,{data:b,width:"500px"}),z(e,ie(OA(c)),2);d=e.yieldResult;if(!d)return e.return();a.onCustomFieldBulkEdit.emit(d);a.bulkEditUpdate$.next(d);ce(e)})};y_.prototype.updateCustomField=function(a,b){this.editableIssue.setCustomField(a,b)};
var GHd=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issueIds;d=m(d.actions);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.fieldName==="customField"&&(e=e.customFieldValue))for(var f=e.customFieldId,g=m(c),k=g.next(),l={};!k.done;l={issueId$jscomp$345:void 0},k=g.next())l.issueId$jscomp$345=k.value,(k=a.find(function(r){return function(w){return w.issueId===r.issueId$jscomp$345}}(l)))&&(k.customFieldValueMap[f]=e)}return a};
y_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(y_)))(b||y_)}}();
y_.\u0275cmp=D({type:y_,selectors:[["triage-custom-fields-editor"]],inputs:{editableIssue:"editableIssue",hasMultipleIssues:"hasMultipleIssues",phase:"phase",subphase:"subphase"},outputs:{onCustomFieldBulkEdit:"onCustomFieldBulkEdit"},standalone:!1,features:[Gf],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,SAb,2,3)(1,UAb,3,2);a&2&&G(b.hasMultipleIssues?0:1)},dependencies:[w_,gB,cB,Lx],encapsulation:2,changeDetection:0});var HHd=["input"],z_=function(){this.internalValue="";this.autocompleteConfigService=p(HW);this.destroyRef=p(Ee);this.darkmodeService=p(GW);this.refresh$=ve(this.darkmodeService.clientDarkmode$).pipe(A(function(){}));this.wordInfo={wordStart:0,wordEnd:0,word:""};this.placeholder=this.ariaLabel="";this.candidateDenylist=[];this.sessionOptions=(new $u).setFilter(Vwd);this.valueChange=new XP};h=z_.prototype;
h.handleSelectionChange=function(a){var b,c=(b=this.inputRef)==null?void 0:b.nativeElement;c&&(this.findWordAroundCursor(),a=Wwd(a).join(", "),IHd.test(c.value.substring(this.wordInfo.wordEnd))||(a+=", "),c.setRangeText(a,this.wordInfo.wordStart,this.wordInfo.wordEnd),c.selectionStart=this.wordInfo.wordStart+a.length,c.selectionEnd=this.wordInfo.wordStart+a.length,this.emitValueChange())};h.emitValueChange=function(){var a,b=(a=this.inputRef)==null?void 0:a.nativeElement;b&&this.valueChange.emit(b.value)};
h.focus=function(){var a;(a=this.inputRef)==null||a.nativeElement.focus()};h.cancel=function(){this.manualAutocomplete.cancel()};h.findWordAroundCursor=function(){var a,b=(a=this.inputRef)==null?void 0:a.nativeElement.selectionStart;a=this.wordInfo;var c,d;this.wordInfo=Tkb((d=(c=this.inputRef)==null?void 0:c.nativeElement.value)!=null?d:"",b!=null?b:0);return a.word!==this.wordInfo.word||a.wordStart!==this.wordInfo.wordStart||a.wordEnd!==this.wordInfo.wordEnd};
da.Object.defineProperties(z_.prototype,{value:{configurable:!0,enumerable:!0,set:function(a){this.internalValue=a}}});z_.\u0275fac=function(a){return new (a||z_)};
z_.\u0275cmp=D({type:z_,selectors:[["b-peoplekit-multi"]],viewQuery:function(a,b){a&1&&(hg(HHd,5),hg(vX,5));if(a&2){var c;lg(c=mg())&&(b.inputRef=c.first);lg(c=mg())&&(b.manualAutocomplete=c.first)}},hostBindings:function(a,b){a&1&&N("selectionchange",function(){b.inputRef&&document.activeElement===b.inputRef.nativeElement&&b.findWordAroundCursor()&&b.manualAutocomplete.cancel()},Sga)},inputs:{ariaLabel:"ariaLabel",placeholder:"placeholder",candidateDenylist:"candidateDenylist",value:"value"},outputs:{valueChange:"valueChange"},
standalone:!1,decls:1,vars:1,consts:[["input",""],[3,"refreshable"],["type","text","autocomplete","off","spellcheck","off","aria-expanded","true","peoplekitManualAutocomplete","",3,"input","blur","peoplekitAutocompleteSelectionChange","placeholder","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"]],template:function(a,b){a&1&&E(0,VAb,2,5,"ng-template",1);a&2&&I("refreshable",b.refresh$)},dependencies:[yj,$D,gE,qU,vX],styles:["input[_ngcontent-%COMP%] {width: 100%}"],changeDetection:0});
var IHd=/^\s*,/u;var JHd=["peoplekitMulti"],A_=function(){this.cdr=p(ux);this.activeSession=p(qu);this.destroyRef=p(Ee);this.autocompleteConfigService=p(HW);this.actionName="Addition";this.inputValidator=null;this.title="";this.onAddItems=new XP;this.onCancel=new XP;this.newlySelectedUsersString=this.invalidMessage=""};
A_.prototype.textPopupSubmit=function(a){var b=this,c,d;return y(function(e){c=b.newlySelectedUsersString;d=pe(function(){return b.inputValidator?b.inputValidator(c):ee("")});d.pipe(nf(1),Uj(b.destroyRef)).subscribe(function(f){b.invalidMessage=f;if(a.valid&&!b.invalidMessage){a==null||a.reset();var g;(g=b.peoplekitMulti)==null||g.focus();b.onAddItems.emit(c);b.newlySelectedUsersString=""}b.cdr.markForCheck()});ce(e)})};A_.\u0275fac=function(a){return new (a||A_)};
A_.\u0275cmp=D({type:A_,selectors:[["b-person-lookup-form"]],viewQuery:function(a,b){a&1&&hg(JHd,5,z_);if(a&2){var c;lg(c=mg())&&(b.peoplekitMulti=c.first)}},inputs:{actionName:"actionName",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",title:"title"},outputs:{onAddItems:"onAddItems",onCancel:"onCancel"},standalone:!1,decls:11,vars:11,consts:[["textPopupForm","ngForm","formEl",""],["peoplekitMulti",""],[3,"ngSubmit"],["aria-expanded","true",3,"valueChange"],
[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"]],template:function(a,b){if(a&1){var c=t();K(0,"form",2,0);N("ngSubmit",function(){u(c);var d=qg(1),e=qg(2);return v(b.textPopupSubmit(d,e))});K(3,"b-peoplekit-multi",3,1);N("valueChange",function(d){u(c);return v(b.newlySelectedUsersString=d)});L();
K(5,"div",4)(6,"button",5);M(7,"mat-icon",6);L();K(8,"button",7);N("click",function(){u(c);return v(b.onCancel.emit())});M(9,"mat-icon",8);L()();F(10,WAb,2,4,"mat-error");L()}a&2&&(a=qg(1),B(3),Kf("aria-label",Fg("",b.actionName," to ",b.title)),B(3),Kf("aria-label",Fg("Apply ",b.actionName," to ",b.title)),I("disabled",!a.valid||!b.isAllowedToEditCollection),B(2),Kf("aria-label",Fg("Discard ",b.actionName," to ",b.title)),B(2),G(b.invalidMessage?10:-1))},dependencies:[Dy,hE,aE,eE,gB,cB,CD,z_],encapsulation:2,
changeDetection:0});var KHd=["addButton"],LHd=["removeButton"],B_=function(){this.inputValidator=null;this.title=this.subtitle="";this.addCurrentUser=new XP;this.removeCurrentUser=new XP;this.onAddUsers=new XP;this.onRemoveUsers=new XP};B_.prototype.closeAddPopup=function(){var a,b=m((a=this.popupTriggers)!=null?a:[]);for(a=b.next();!a.done;a=b.next())this.closeInlineDialog(a.value)};var ZAb=function(a){var b,c=m((b=a.popupTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())a.closeInlineDialog(b.value)};
B_.prototype.handleAddItems=function(a){YAb(a,this.onAddUsers);this.closeAddPopup()};B_.prototype.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};var YAb=function(a,b){a&&(a=a.split(/[,; ]/).filter(function(c){return!!c}),a.length&&b.emit(a))};B_.\u0275fac=function(a){return new (a||B_)};
B_.\u0275cmp=D({type:B_,selectors:[["triage-edit-user-buttons"]],viewQuery:function(a,b){a&1&&(hg(KHd,5),hg(LHd,5),hg(aB,5));if(a&2){var c;lg(c=mg())&&(b.addButtonEl=c.first);lg(c=mg())&&(b.removeButtonEl=c.first);lg(c=mg())&&(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();K(0,"div",4)(1,"div",5)(2,"div",6)(3,"label");Q(4);L()();K(5,"div",7);Q(6);L();K(7,"div",8)(8,"button",9,0);Q(10," Add ");L();K(11,"button",9,1);Q(13," Remove ");L();K(14,"button",10);N("click",function(){u(c);return v(b.addCurrentUser.emit())});Q(15," Add me ");L();K(16,"button",10);N("click",function(){u(c);return v(b.removeCurrentUser.emit())});Q(17," Remove me ");L()()()();E(18,XAb,3,4,"ng-template",
null,2,Mg)(20,$Ab,3,4,"ng-template",null,3,Mg)}if(a&2){a=qg(19);var d=qg(21);B(4);S(" ",b.title," ");B(2);yg(b.subtitle);B(2);I("dialogLabel",Eg("Add users to ",b.title))("xapInlineDialogClick",a);B(3);I("dialogLabel",Eg("Remove users from ",b.title))("xapInlineDialogClick",d);B(3);I("disabled",!b.isAllowedToEditCollection);Kf("aria-label","Add me to "+b.title);B(2);I("disabled",!b.isAllowedToEditCollection);Kf("aria-label","Remove me from "+b.title)}},dependencies:[gB,cB,A_,YA,XA,aB],styles:[".subtitle[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]:hover{cursor:default}\n/*# sourceMappingURL=edit_user_buttons.css.map */"],
changeDetection:0});var gBb=function(a,b){return b.name},C_=function(){Z.apply(this,arguments);var a=this;this.hotlistPickerService=p(IY);this.issueFullFridge=p(cQ);this.paramsService=p(SQ);this.triageService=p(TR);this.issueRecommendationFridge=p(eQ);this.analytics=p(aQ);this.hotlistIdsChange=new XP;this.hotlistIdsMapChange=new XP;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(we(Qm),pf());this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.issueIds$=this.triageService.currentIssueIds$.pipe(we(Qm),pf());this.issues$=this.issueIds$.pipe(Af(function(b){return a.issueFullFridge.watchSet(b)}));this.recommendations$=this.issueId$.pipe(Af(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),A(function(b){return((b==null?void 0:
b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Qm).slice(0,2)}))};Y(C_,Z);C_.\u0275dir=Z.\u0275dir;
C_.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g,k,l,r,w,x,C,H,J,O;return y(function(R){if(R.nextAddress==1)return z(R,ie(a.issue$),2);if(R.nextAddress!=3)return b=R.yieldResult,z(R,ie(a.issues$),3);d=(c=R.yieldResult)!=null?c:[];a.hasMultipleIssues=d.length>1;l=(k=(e=b)==null?void 0:(f=e.snapshot[0])==null?void 0:(g=f.hotlistId)==null?void 0:g.map(String))!=null?k:[];a.hotlistIdSet=new Set(l);a.hotlistIdsChange.emit([].concat(q(a.hotlistIdSet)));r=m(d);for(w=r.next();!w.done;w=r.next())x=
w.value,J=H=C=void 0,O=(J=(C=x)==null?void 0:(H=C.snapshot[0])==null?void 0:H.hotlistId)!=null?J:[],a.selectedHotlistIdsMap.set(x.issueId.toString(),new Set(O.map(String)));a.areAllHotlistsEqual=MHd(a);a.subscriptions.add(qmd(a.triageService.triageDataFactory.get(a.teamId,a.triageViewId),a.phase,a.subphase).subscribe(function(V){var ca=[],oa=[];V=m(V);for(var ua=V.next();!ua.done;ua=V.next())ua=ua.value,ua.operation==="ADD"&&ca.push.apply(ca,q(ua.hotlistIds)),ua.operation==="REMOVE"&&oa.push.apply(oa,
q(ua.hotlistIds));ca.length&&a.addHotlists(ca);oa.length&&a.removeHotlists(oa)}));a.subscriptions.add(a.recommendations$.pipe(nf(1)).subscribe(function(V){V.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","Triage")}));ce(R)})};C_.prototype.openHotlistModal=function(){this.hasMultipleIssues?iBb(this):NHd(this)};
var NHd=function(a){var b,c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,ie(a.issueId$),2);if(g.nextAddress!=3)return b=g.yieldResult,z(g,ECd(a.hotlistPickerService,b,[].concat(q(a.hotlistIdSet)).map(Number),!1),3);c=g.yieldResult;if(!c)return g.return();d=c;e=d.addedIds;f=d.removedIds;e.length>0&&a.addHotlists(e);f.length>0&&a.removeHotlists(f);ce(g)})},iBb=function(a){var b,c,d,e,f,g,k,l,r,w,x,C,H;return y(function(J){if(J.nextAddress==1)return z(J,ie(a.issueIds$),2);if(J.nextAddress!=3){b=
J.yieldResult;c=new Map;d=m(a.selectedHotlistIdsMap.entries());for(e=d.next();!e.done;e=d.next())f=e.value,g=m(f),k=g.next().value,l=g.next().value,r=k,w=l,c.set(r,new Set([].concat(q(w)).map(Number)));return z(J,JCd(a.hotlistPickerService,c),3)}x=J.yieldResult;if(!x)return J.return();OHd(a,x);a.areAllHotlistsEqual=MHd(a);a.areAllHotlistsEqual&&((C=a.selectedHotlistIdsMap.get(b[0]))?(H=[].concat(q(C)).map(String),a.hotlistIdSet=new Set(H)):a.hotlistIdSet.clear());ce(J)})};
C_.prototype.addHotlists=function(a){for(var b=m(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.add(c.value);this.updateSelectedHotlists(function(d){for(var e=m(a),f=e.next();!f.done;f=e.next())d.add(f.value)});this.hotlistIdsChange.emit([].concat(q(this.hotlistIdSet)))};C_.prototype.removeHotlists=function(a){for(var b=m(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.delete(c.value);this.updateSelectedHotlists(function(d){for(var e=m(a),f=e.next();!f.done;f=e.next())d.delete(f.value)});this.hotlistIdsChange.emit([].concat(q(this.hotlistIdSet)))};
var dBb=function(a,b){var c,d,e,f=b==null?void 0:(c=b.content)==null?void 0:(d=c.recommendedHotlist)==null?void 0:(e=d.hotlistId)==null?void 0:e.toString();f&&!a.hotlistIdSet.has(f)&&a.hotlistIdSet.add(f);a.updateSelectedHotlists(function(g){f&&g.add(f)});a.hotlistIdsChange.emit([].concat(q(a.hotlistIdSet)))},MHd=function(a){if(a.selectedHotlistIdsMap.size<2)return!0;var b=[].concat(q(a.selectedHotlistIdsMap.values()));a=b[0];b=m(b);for(var c=b.next();!c.done;c=b.next())if(!fRa(a,c.value))return!1;
return!0},OHd=function(a,b){b=b.issueMapDiffs;for(var c=m(b.values()),d=c.next(),e={};!d.done;e={added$jscomp$13:void 0,removed$jscomp$8:void 0},d=c.next())d=d.value,e.added$jscomp$13=d.added,e.removed$jscomp$8=d.removed,a.updateSelectedHotlists(function(f){return function(g){for(var k=m(f.added$jscomp$13),l=k.next();!l.done;l=k.next())g.add(l.value.toString());k=m(f.removed$jscomp$8);for(l=k.next();!l.done;l=k.next())g.delete(l.value.toString())}}(e));a.hotlistIdsMapChange.emit(b)};
C_.prototype.updateSelectedHotlists=function(a){var b=[].concat(q(this.selectedHotlistIdsMap.values()));b=m(b);for(var c=b.next();!c.done;c=b.next())a(c.value)};C_.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(C_)))(b||C_)}}();
C_.\u0275cmp=D({type:C_,selectors:[["triage-hotlists-editor"]],inputs:{phase:"phase",subphase:"subphase"},outputs:{hotlistIdsChange:"hotlistIdsChange",hotlistIdsMapChange:"hotlistIdsMapChange"},standalone:!1,features:[Gf],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,jBb,12,4,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[Dy,gB,cB,oK,iA,QZ,SZ,Lx],styles:["button.add-hotlists-btn[_ngcontent-%COMP%]{margin-right:8px}"]});var D_=function(){var a=this;this.elementRef=p(Jd);this.eventType="click";this.clickOutside=new XP;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))}};D_.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
D_.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};D_.\u0275fac=function(a){return new (a||D_)};D_.\u0275dir=df({type:D_,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var E_=function(){};E_.\u0275fac=function(a){return new (a||E_)};E_.\u0275mod=cf({type:E_});E_.\u0275inj=Hc({});var F_=function(){};F_.\u0275fac=function(a){return new (a||F_)};F_.\u0275mod=cf({type:F_});F_.\u0275inj=Hc({imports:[gL,RO,xE,Qz,E_,uU,wU,yL,iB,pK,DU,wX]});var PHd=function(){};PHd.\u0275fac=function(a){return new (a||PHd)};PHd.\u0275mod=cf({type:PHd});PHd.\u0275inj=Hc({imports:[RO,iB,pX]});var G_=function(){};G_.\u0275fac=function(a){return new (a||G_)};G_.\u0275mod=cf({type:G_});G_.\u0275inj=Hc({imports:[KX,RO,iB,NX,MK,pK,PHd]});var H_=function(){};H_.\u0275fac=function(a){return new (a||H_)};H_.\u0275mod=cf({type:H_});H_.\u0275inj=Hc({imports:[Ey]});var QHd=function(){};QHd.\u0275fac=function(a){return new (a||QHd)};QHd.\u0275mod=cf({type:QHd});QHd.\u0275inj=Hc({imports:[RO,iB,H_]});var I_=function(){};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275mod=cf({type:I_});I_.\u0275inj=Hc({imports:[RO,iB,MK,QHd]});var J_=function(){};J_.\u0275fac=function(a){return new (a||J_)};J_.\u0275mod=cf({type:J_});J_.\u0275inj=Hc({imports:[RO]});var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=cf({type:K_});K_.\u0275inj=Hc({imports:[RO,MK,J_,I_,iB]});var L_=function(){};L_.\u0275fac=function(a){return new (a||L_)};L_.\u0275mod=cf({type:L_});L_.\u0275inj=Hc({imports:[Yx,Zy,Qz,Mz,LI]});var RHd=function(){};RHd.\u0275fac=function(a){return new (a||RHd)};RHd.\u0275mod=cf({type:RHd});RHd.\u0275inj=Hc({imports:[Yx,xE,L_,wX,yE]});var M_=function(){};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275mod=cf({type:M_});M_.\u0275inj=Hc({imports:[RO,iV,RHd]});var N_=function(){this.elementRef=p(Jd);this.autocompleteConfigService=p(HW);this.destroyRef=p(Ee);this.darkmodeService=p(GW);this.refresh$=ve(this.darkmodeService.clientDarkmode$).pipe(A(function(){}));this.name=this.email=this.ariaLabel="";this.cdkFocusInitial=this.disabled=this.required=this.asMatInput=!1;this.emailChange=new XP;this.sessionOptions=(new $u).setFilter(Vwd);this.id="peoplekit-single-"+N_.nextId++;this.stateChanges=new sf;this.placeholderInternal="";this.ngControl=null;this.errorState=
this.focused=!1;this.controlType="peoplekit-single";this.describedByIds=[]};N_.prototype.getConfig=function(){return uhb(this.autocompleteConfigService)};var kBb=function(a,b){b.length>0&&a.emailChange.emit(b[0].result().getPrimaryTarget().getValue())};N_.prototype.onFocusIn=function(){this.focused||(this.focused=!0,this.stateChanges.next())};var lBb=function(a,b){a.elementRef.nativeElement.contains(b.relatedTarget)||(a.focused=!1,a.stateChanges.next())};
N_.prototype.setDescribedByIds=function(a){this.describedByIds=a;this.stateChanges.next()};N_.prototype.onContainerClick=function(){};
da.Object.defineProperties(N_.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}}});
N_.nextId=0;N_.\u0275fac=function(a){return new (a||N_)};
N_.\u0275cmp=D({type:N_,selectors:[["b-peoplekit-single"]],hostVars:1,hostBindings:function(a,b){a&2&&Qf("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:[Gg([{provide:HD,useExisting:N_}])],decls:1,vars:1,consts:[[3,"refreshable"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete",
"",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange",
"focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange","focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"]],template:function(a,b){a&1&&
E(0,oBb,2,1,"ng-template",0);a&2&&I("refreshable",b.refresh$)},dependencies:[yj,$D,sE,gE,qU,uX,PD,zE],styles:["input[_ngcontent-%COMP%] { width: 100%; }"],changeDetection:0});var O_=function(){};O_.\u0275fac=function(a){return new (a||O_)};O_.\u0275mod=cf({type:O_});O_.\u0275inj=Hc({imports:[RO,xE,uU,wX,BE]});var SHd=new fd("SearchBarClientConfig");var THd=function(a){var b=new fxd;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.apiKey&&b.setApiKey(a.apiKey);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new Xwd(b.getPeopleApiEnv(),new Ywd(""))};THd.\u0275fac=function(a){return new (a||THd)($c(SHd))};THd.\u0275prov=Fc({token:THd,factory:THd.\u0275fac});var P_=function(){};P_.\u0275fac=function(a){return new (a||P_)};P_.\u0275mod=cf({type:P_});P_.\u0275inj=Hc({imports:[Yx]});var Q_=function(){};Q_.\u0275fac=function(a){return new (a||Q_)};Q_.\u0275mod=cf({type:Q_});Q_.\u0275inj=Hc({imports:[RO,xE,iB,OD,DU,P_,M_,O_]});var UHd=function(a){this.uploadUrl_=a};var VHd=function(){kj.call(this)};rw(VHd,kj);var R_=function(a){CB.call(this,a)};rw(R_,CB);var S_=function(a){CB.call(this,a)};rw(S_,CB);var WHd=function(a,b){this.name_=a;this.inputElement_=b};WHd.prototype.getName=function(){return this.name_};var XHd=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!0};var T_=function(){kj.call(this);this.name_="closure_frame"+YHd++;this.iframesForDisposal_=[];ZHd[this.name_]=this},U_;rw(T_,kj);var ZHd={},YHd=0,$Hd=function(a,b){var c=lj(a);bIc(b,function(d,e){Array.isArray(d)||(d=[d]);Ja(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};h=T_.prototype;h.form_=null;h.iframe_=null;h.iframeName_=null;h.nextIframeId_=0;h.active_=!1;h.complete_=!1;h.success_=!1;h.lastUri_=null;h.lastContent_=null;h.lastErrorCode_=0;
h.iframeDisposalTimer_=null;
h.send=function(a,b,c,d){if(this.active_)throw Error("Sf");this.lastUri_=a=new Ns(a);b=b?b.toUpperCase():"GET";c&&kIc(a);U_||(U_=SJc("FORM"),U_.acceptCharset="utf-8",c=U_.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(U_));this.form_=U_;b=="GET"&&$Hd(this.form_,a.queryData_);d&&$Hd(this.form_,d);c=a.toString();d=this.form_;c=Ah(new wh(c===null?"null":c===void 0?"undefined":c));c!==void 0&&(d.action=c);this.form_.method=
b;aId(this);bId(this)};h.abort=function(a){if(this.active_){var b=cId(this);if(b)if(EB(b))b.removeAllListeners();else if(b=cHc(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)HB(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");dId(this)}};
h.disposeInternal=function(){this.active_&&this.abort();T_.superClass_.disposeInternal.call(this);this.iframe_&&eId(this);bId(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete ZHd[this.name_]};h.isComplete=function(){return this.complete_};h.isSuccess=function(){return this.success_};h.isActive=function(){return this.active_};h.getResponseText=function(){return this.lastContent_};h.getResponseJson=function(){return iHc(this.lastContent_)};
h.getLastUri=function(){return this.lastUri_};h.getLastErrorCode=function(){return this.lastErrorCode_};h.getLastError=function(){return hHc(this.lastErrorCode_)};
var aId=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=lj(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";fj?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");lj(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=WJc(a.iframe_);if(document.baseURI){var d=Ht(b);
d=Xta('<head><base href="'+Ht(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=Ht(b),d=ph('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(rh(d));mj(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=sC("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var g=d[e].value,k=[];aKc(d[e],k,!1);k.join("")!=g&&(XJc(d[e],g),d[e].value=g)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=sC("SELECT",a.form_);f=sC("SELECT",
d);g=0;for(k=e.length;g<k;g++)for(var l=sC("OPTION",e[g]),r=sC("OPTION",f[g]),w=0,x=l.length;w<x;w++)r[w].selected=l[w].selected;e=sC("INPUT",a.form_);f=sC("INPUT",d);g=0;for(k=e.length;g<k;g++)if(e[g].type=="file"&&e[g].value!=f[g].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),gj&&setTimeout(a.testForFirefoxSilentError_.bind(a),250)}catch(C){GB(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
T_.prototype.onIframeLoaded_=function(){GB(cId(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?WJc(cId(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"),dId(this))}catch(e){this.handleError_(1)}};
T_.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),dId(this),this.errorHandled_=!0)};
var dId=function(a){eId(a);bId(a);a.form_=null;a.dispatchEvent("ready")},eId=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);gj?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
T_.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();wC(a)}};var bId=function(a){a.form_&&a.form_==U_&&vC(a.form_)},cId=function(a){return a.iframe_?WJc(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
T_.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?WJc(cId(this)):null;a&&!Soc(a,"documentUri")?(GB(cId(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};var fId=function(a,b,c,d,e){kj.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 Ns(a);yt(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new T_;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new vu(this);ut(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};Y(fId,VHd);h=fId.prototype;h.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("Sf");var c=new Ns(this.url_||b.action);a.lastUri_=c;a.form_=b;b=a.form_;c=Ah(c.toString());c!==void 0&&(b.action=c);aId(a)};h.getBytesTransferred=function(){return null};
h.getResponseCode=function(){return null};h.getErrorType=function(){return null};h.getResponseHeaders=function(){return null};h.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};h.getErrorDescription=function(){return this.errorDescription_};h.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new R_("i"))};h.pause=function(){};h.unpause=function(){};h.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new R_("f"))};
h.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new R_("h"))};var iId=function(a,b){a.name!==void 0?(this.name=a.name,this.code=gId[a.name]):(this.code=a=a.code,this.name=hId(a));pa.call(this,qHc("%s %s",this.name,b))};rw(iId,pa);
var hId=function(a){var b=Nta(gId,function(c){return a==c});if(b===void 0)throw Error("Tf`"+a);return b},V_={},gId=(V_.AbortError=3,V_.EncodingError=5,V_.InvalidModificationError=9,V_.InvalidStateError=7,V_.NotFoundError=1,V_.NotReadableError=4,V_.NoModificationAllowedError=6,V_.PathExistsError=12,V_.QuotaExceededError=10,V_.SecurityError=2,V_.SyntaxError=8,V_.TypeMismatchError=11,V_);var jId=function(a,b){CB.call(this,a.type,b);this.event_=a};rw(jId,CB);var kId=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};jj(function(){if(!ra.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return b.size!=100?!1:!0});var lId=jj(function(){if(!ra.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return kId(b,0,1)===null?!1:!0});var mId=function(){kj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=nj(this.dispatchProgressEvent_,this);this.reader_.onprogress=nj(this.dispatchProgressEvent_,this);this.reader_.onload=nj(this.dispatchProgressEvent_,this);this.reader_.onabort=nj(this.dispatchProgressEvent_,this);this.reader_.onerror=nj(this.dispatchProgressEvent_,this);this.reader_.onloadend=nj(this.dispatchProgressEvent_,this)};rw(mId,kj);h=mId.prototype;
h.abort=function(){try{this.reader_.abort()}catch(a){throw new iId(a,"aborting read");}};h.getReadyState=function(){return this.reader_.readyState};h.getError=function(){return this.reader_.error&&new iId(this.reader_.error,"reading file")};h.dispatchProgressEvent_=function(a){this.dispatchEvent(new jId(a,this))};h.disposeInternal=function(){mId.superClass_.disposeInternal.call(this);delete this.reader_};h.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
h.readAsText=function(a,b){this.reader_.readAsText(a,b)};var nId=function(a){var b=new OS;a.listen("loadend",pw(function(c,d){var e=d.reader_.result,f=d.getError();e==null||f?c.errback(f):c.callback(e);d.dispose()},b,a));return b};var W_=function(){Fs.call(this)};Y(W_,Fs);W_.prototype.createXhr=function(){var a=Fs.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=nj(this.onProgress_,this));return a};W_.prototype.onProgress_=function(a){this.dispatchEvent(a)};var oId=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},qId=function(a,b){var c=a.attempt_+1;if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Gs(function(){a.delayCallId_=null;b()},pId(a),a);a.attempt_=c;return!0};oId.prototype.reset=function(){this.delayCallId_&&ra.clearTimeout(this.delayCallId_);this.attempt_=-1};var pId=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var qBb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var rId=function(a){kj.call(this);a=a||new XHd;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new oId;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorType_=this.errorDescription_=null;this.eventHandler_=new vu(this);ut(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};rw(rId,VHd);h=rId.prototype;h.run=function(){X_(this)};h.getBytesTransferred=function(){return this.bytesTransferred_};h.getResponseCode=function(){return this.responseCode_};
h.getResponseHeaders=function(){return this.responseHeaders_};h.getResponseText=function(){return this.responseText_};h.getErrorDescription=function(){return this.errorDescription_};h.getErrorType=function(){return this.errorType_};
h.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new W_,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new R_("i"))}};
h.pause=function(){this.pauseRequested_=!0};h.unpause=function(){this.pauseRequested_=!1;this.state_==="Paused"&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,sId(this))};
var X_=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):qId(a.retryIterator_,function(){return sId(a)})||Y_(a,1,"Transfer encountered too many consecutive failures.")},sId=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(lId()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=kId(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new W_;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=nj(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new S_("k"));e=Object.assign({},a.headers_||{},{"X-Goog-Upload-Command":"upload"+(e?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.request_.send(b,"POST",c,e);break;case "Query":a.query_();break;default:throw Error("Uf");}},Y_=function(a,
b,c){a.state_="Error";a.errorDescription_=c;a.errorType_=b;a.dispatchEvent(new R_("h"))};h=rId.prototype;
h.start_=function(){this.request_=new W_;var a=cj(this.headers_);this.blob_.size!=null&&(a["Content-Length"]=this.blob_.size);a=rBb(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 S_("k"))};
h.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new S_("l"));tId(b)?uId(this,b):vId(b)?(b=pt(a.target.getAllResponseHeaders()),this.dispatchEvent(new R_("g")),a=qt(b,"X-Goog-Upload-URL"),b=(b=qt(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,a===void 0||isNaN(b)||b<=0?Y_(this,2,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new UHd(a),this.dispatchEvent(new R_("j")),this.state_=
"Upload",this.retryIterator_.reset(),X_(this))):X_(this)};h.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new R_("e"))};
h.onUploadComplete_=function(a,b,c){var d=this,e,f;return y(function(g){switch(g.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new S_("l"));if(d.retryOnHttpClientErrorEnabled_?wId(e)||e.getStatus()==404:tId(e))return d.bytesTransferred_=a,uId(d,e),g.return();if(vId(e)){g.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){g.jumpTo(3);break}return z(g,xId(d),4);case 4:f=g.yieldResult;case 3:if(f)return Y_(d,3,"Blob has been modified or corrupted."),g.return();
d.requireUploadRequestModification_=e.getStatus()==400;d.state_="Query";X_(d);return g.return();case 2:if(b)return Y_(d,4,"Got a non-final success response after issuing a finalize command."),g.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();X_(d);return g.return()}})};
h.query_=function(){this.request_=new W_;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 S_("k"))};
h.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new S_("l"));tId(b)?(b.getStatus()===200&&(this.bytesTransferred_=this.blob_.size),uId(this,b)):vId(b)?(a=pt(a.target.getAllResponseHeaders()),a=parseInt(qt(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?Y_(this,5,"Server did not respond with current offset."):a<this.offset_?Y_(this,6,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?Y_(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",X_(this))):X_(this)};
var uId=function(a,b){a.responseCode_=b.getStatus();var c=pt(b.getAllResponseHeaders());a.responseHeaders_=sBb(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new R_("f"))},vId=function(a){var b=a.getStatus();a=pt(a.getAllResponseHeaders());a=qt(a,"X-Goog-Upload-Status");return b===200&&a==="active"},wId=function(a){a=pt(a.getAllResponseHeaders());return qt(a,"X-Goog-Upload-Status")==="final"},tId=function(a){if(wId(a))return!0;a=a.getStatus();return a>=400&&a<
500},xId=function(a){var b;return y(function(c){if(c.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);Yd(c,2);if(b=kId(a.blob_,0,1)){var d=new mId,e=nId(d);d.readAsBinaryString(b);c=z(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);be(c);return c.return(!0)})};var yId=function(a,b,c,d,e,f){kj.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 rm;this.boundary_="uploader-"+RBb()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new vu(this);ut(this,this.eventHandler_)};Y(yId,VHd);h=yId.prototype;
h.run=function(){var a=cj(this.headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=rBb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new W_;this.eventHandler_.removeAll();this.eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_);var b=this.transferRequest_,
c=b.send,d=this.url_,e=this.method_,f="--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n";this.metadataOverhead_=f.length-this.payload_.length;c.call(b,d,e,f,a)};h.getBytesTransferred=function(){return this.bytesTransferred_};h.getResponseCode=function(){return this.responseCode_};
h.getResponseHeaders=function(){return this.responseHeaders_};h.getResponseText=function(){return this.responseText_};h.getErrorDescription=function(){return this.errorDescription_};h.getErrorType=function(){return null};h.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new R_("i")))};h.pause=function(){};h.unpause=function(){};
h.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new R_("e"))};h.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new R_("h"))):(this.responseCode_=b,a=a.target,b=pt(a.getAllResponseHeaders()),this.responseHeaders_=sBb(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new R_("f")))};var zId=function(){},AId=function(a,b,c,d,e){e=e===void 0?!1:e;if(c instanceof WHd)return new fId(a,"POST",b,c.inputElement_,d);if(typeof c==="string"||c instanceof String)return new yId(a,"POST",b,c,d);var f=new rId(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 BId=new fd("ScottyUploaderConfigFactory"),CId=new fd("ScottyUploader",{factory:function(){return new zId}}),Z_=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new sf;this.transferStatus=this.internalTransferStatus.asObservable()};
Z_.prototype.upload=function(a,b){var c=this;b=b===void 0?this.configFactory.create(a):b;a=AId(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=ve(re(a,"g"),re(a,"e"),re(a,"j"),re(a,"h"),re(a,"f"),re(a,"i")).pipe(Bf(re(a,"f").pipe(of(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});a.run()};Z_.\u0275fac=function(a){return new (a||Z_)($c(CId),$c(BId))};
Z_.\u0275prov=Fc({token:Z_,factory:Z_.\u0275fac});var DId=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};DId.prototype.getDirectory=function(a){return this.directoryMap_[a]};DId.prototype.getName=function(){return this.name_};var dtc={},a0=function(a,b){var c=Cu(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},vt=function(a,b){return a0(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Ioc=function(a){return vt(a,"position")},Eu=function(a,b,c){if(b instanceof Au){var d=b.x;b=b.y}else d=b,b=c;a.style.left=EId(d,!1);a.style.top=EId(b,!1)},Toc=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,
right:0,bottom:0}}},Cpc=function(a){var b=Cu(a),c=vt(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=vt(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},Qoc=function(a){for(var b=new oj(0,Infinity,Infinity,0),c=lj(a),d=c.document_.body,e=c.document_.documentElement,f=QJc(c.document_);a=
Cpc(a);)if((!fj||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&vt(a,"overflow")!="visible"){var g=yu(a),k=new Au(a.clientLeft,a.clientTop);g.x+=k.x;g.y+=k.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>
b.top&&b.right>b.left?b:null},Dpc=function(a,b){b=b||QJc(document);var c=b||QJc(document);var d=yu(a),e=yu(c),f=a0(c,"borderLeftWidth");var g=a0(c,"borderRightWidth");var k=a0(c,"borderTopWidth"),l=a0(c,"borderBottomWidth");g=new oj(parseFloat(k),parseFloat(g),parseFloat(l),parseFloat(f));c==QJc(document)?(f=d.x-c.scrollLeft,d=d.y-c.scrollTop):(f=d.x-e.x-g.left,d=d.y-e.y-g.top);a=FId(a);e=c.clientHeight-a.height;g=c.scrollLeft;k=c.scrollTop;g+=Math.min(f,Math.max(f-(c.clientWidth-a.width),0));k+=
Math.min(d,Math.max(d-e,0));c=new Au(g,k);b.scrollLeft=c.x;b.scrollTop=c.y},yu=function(a){var b=Cu(a),c=new Au(0,0);if(a==(b?Cu(b):document).documentElement)return c;a=Toc(a);b=fKc(lj(b));c.x=a.left+b.x;c.y=a.top+b.y;return c},GId=function(a,b,c){if(b instanceof qC)c=b.height,b=b.width;else if(c==void 0)throw Error("Vf");a.style.width=EId(b,!0);a.style.height=EId(c,!0)},EId=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a},HId=function(a){return Voc(a)},Voc=function(a){var b=
FId;if(vt(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},FId=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=fj&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Toc(a),new qC(a.right-a.left,a.bottom-a.top)):new qC(b,c)},Poc=function(a){var b=yu(a);a=Voc(a);return new Du(b.x,b.y,a.width,a.height)},IId=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+")")},zt=function(a,b){a.style.display=b?"":"none"},zu=function(a){return"rtl"==vt(a,"direction")},JId=function(a){var b=a0(a,"marginLeft"),c=a0(a,"marginRight"),d=a0(a,"marginTop");a=a0(a,"marginBottom");return new oj(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var LId=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;kj.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:Ws(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=KId(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};Y(LId,kj);
var KId=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");mj(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),Eu(e,new Au(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};LId.prototype.click=function(){this.overlay_.click()};
LId.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(r){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(fj||wxc||gj)){c=new DId("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),f=c,g=0;g<e.length;g++){var k=e[g];if(g==e.length-1){k!="."&&f.files_.push(d);break}var l=f.getDirectory(k);l==void 0&&(k=l=
new DId(k),f.directoryMap_[k.getName()]=k,f.directories_.push(k));f=l}c=c.directories_}this.dispatchEvent(new MId(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new MId([],[],new WHd(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=KId(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var NId={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},MId=function(a,b){CB.call(this,"q");this.files=a;this.directories=b};Y(MId,CB);var b0=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new wf(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Ui;this.maxFileSize=null;this.fileSizeRejected=new Ui;this.fileSelected=new Ui;this.fileNameLengthRejected=new Ui};
b0.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(Af(function(b){return ve(re(b,"m"),re(b,"q"))}),Bf(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=m(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=m(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=m(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){re(b,"o").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){re(b,"p").subscribe(function(){a.ngZone.run(function(){})})})};
b0.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};b0.\u0275fac=function(a){return new (a||b0)(Ye(Jd),Ye(Rg))};b0.\u0275dir=df({type:b0,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var c0=function(a,b){b0.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};Y(c0,b0);
c0.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return ve(re(a.elementRef.nativeElement,"mouseover"),re(a.elementRef.nativeElement,"focus")).pipe(rf(),Bf(a.destroyed),A(function(){a.fileSelectorOverlay=new LId(a.elementRef.nativeElement,a.selectorType,OId(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),xf(1))}));return this.overlay};c0.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};
var OId=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};c0.\u0275fac=function(a){return new (a||c0)(Ye(Jd),Ye(Rg))};c0.\u0275dir=df({type:c0,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Gf]});var d0=function(a,b,c){c0.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};Y(d0,c0);
d0.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(Bf(this.destroyed),we(function(){return!a.disableAutoUpload})).subscribe(function(b){b=m(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(d=a.uploader)==null||d.upload(c)}})};da.Object.defineProperties(d0.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Mh(a)}}});
d0.\u0275fac=function(a){return new (a||d0)(Ye(Jd),Ye(Rg),Ye(Z_,8))};d0.\u0275dir=df({type:d0,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Gf]});var PId=function(){this.SelectorType=NId;this.includeTextLabel=this.disabled=!1;this.onSelect=new XP},tBb=function(a,b){if(b=b.files){b=m(b);for(var c=b.next();!c.done;c=b.next())a.onSelect.emit(c.value)}};PId.\u0275fac=function(a){return new (a||PId)};
PId.\u0275cmp=D({type:PId,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&&(K(0,"div",0),F(1,uBb,2,3,"button",1)(2,vBb,3,3,"button",2),L());a&2&&(B(),G(b.includeTextLabel?2:1))},dependencies:[Dy,gB,cB,eB,oK,iA,d0],encapsulation:2});var QId=function(a,b){znd.call(this,a.size,a.name);var c=this;this.destroyed$=new sf;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "e":case "g":case "j":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "h":c.handleError(e);break;case "f":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&d!=200?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();break;
case "i":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(Bf(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};Y(QId,znd);
QId.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){Xm("Unable to extract error message",b,d);var c;this.errorMessage=(c=a.getErrorDescription())!=null?c:""}this.errorMessage||(this.errorMessage="Error while uploading.")};QId.prototype.cancel=function(){var a,b;(a=this.transfer)==null||(b=a.cancel)==null||b.call(a);this.unsubscribe()};
QId.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var e0=function(){this.activeSession=p(qu)};e0.prototype.create=function(a){var b=Uxc(bxc(a.name));a=W7a(a.name)?a.name:b;return{url:yt(lIc().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,"X-Goog-Upload-File-Name":a},withCredentials:!0}};e0.\u0275fac=function(a){return new (a||e0)};e0.\u0275prov=Fc({token:e0,factory:e0.\u0275fac,providedIn:"root"});var f0=function(){this.uploader=p(CId);this.uploaderConfigFactory=p(e0)};
f0.prototype.create=function(){return new Z_(this.uploader,this.uploaderConfigFactory)};f0.\u0275fac=function(a){return new (a||f0)};f0.\u0275prov=Fc({token:f0,factory:f0.\u0275fac,providedIn:"root"});var g0=function(){Z.apply(this,arguments);this.scottyUploaderFactory=p(f0);this.uploads=[];this.onUploadCancel=new XP;this.onUploadComplete=new XP;this.uploadStates=And};Y(g0,Z);g0.\u0275dir=Z.\u0275dir;g0.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);for(var a=m(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
g0.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new QId(a,c.transferStatus);c.transferStatus.pipe(Bf(this.destroyed$)).subscribe(function(d){d.type==="f"&&b.onUploadComplete.emit()});return a};g0.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};g0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(g0)))(b||g0)}}();
g0.\u0275cmp=D({type:g0,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel",onUploadComplete:"onUploadComplete"},standalone:!1,features:[Gf],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,ABb,3,0,"div",0);a&2&&G(b.uploads.length>0?0:-1)},dependencies:[Dy,oK,iA,Osd],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 RId=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 SId=function(a){znd.call(this,a.size,a.name);this.attachment=a};Y(SId,znd);var TId=function(a,b){a.state=1;knd(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=Rp(c)?Sp(c):"Error while uploading."})};var rt=function(a){this.id_=a;this.opts={}};h=rt.prototype;h.setLabel=function(a){this.label_=a||void 0;return this};h.setOptions=function(a){this.opts=a;return this};h.setQuery=function(a){this.opts.query=a;return this};h.setParent=function(a){this.opts.parent=a;return this};h.toArray=function(){var a=bj(this.opts,function(c){return c!==null});a=Pta(a)?null:a;a=[this.id_,this.label_,a];var b=rba(a,UHc);return a=a.slice(0,b+1)};
h.toString=function(){var a=this.toArray();return"("+sxc(a,function(b){return JSON.stringify(b)}).join(",")+")"};h.getId=function(){return this.id_};h.getLabel=function(){return this.label_};h.getOptions=function(){return cj(this.opts)};h.getQuery=function(){return this.opts.query};rw(st,rt);var UId=["dr","fileIds","parent"],VId=function(){var a=(new st("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};h=st.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setOwnedByMe=function(a){a!==void 0?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};h.setLabel=function(a){st.superClass_.setLabel.call(this,a);return this};h.setQuery=function(a){st.superClass_.setQuery.call(this,a);return this};
h.setParent=function(a){for(var b=m(UId),c=b.next();!c.done;c=b.next())c=c.value,this.opts[c]&&delete this.opts[c];st.superClass_.setParent.call(this,a);return this};h.setItems=function(a){this.opts.items=a};var WId=function(){rt.call(this,"image-search")};Y(WId,rt);h=WId.prototype;h.setType=function(a){this.opts.type=a;return this};h.setSize=function(a){this.opts.imgsz=a;return this};h.setColor=function(a){this.opts.imgcolor=a;return this};h.setLabel=function(a){rt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){rt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){rt.prototype.setParent.call(this,a);return this};var XId=function(){rt.call(this,"maps")};Y(XId,rt);h=XId.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setZoom=function(a){this.opts.zoom=a;return this};h.setLabel=function(a){rt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){rt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){rt.prototype.setParent.call(this,a);return this};var YId=function(){rt.call(this,"photos")};Y(YId,rt);h=YId.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setType=function(a){this.opts.type=a;return this};h.setLabel=function(a){rt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){rt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){rt.prototype.setParent.call(this,a);return this};h.removeDuplicates=function(){this.opts.rdv=!0;return this};var ZId=function(){rt.call(this,"url")};Y(ZId,rt);ZId.prototype.setType=function(a){this.opts.type=a;return this};ZId.prototype.setLabel=function(a){rt.prototype.setLabel.call(this,a);return this};ZId.prototype.setQuery=function(a){rt.prototype.setQuery.call(this,a);return this};ZId.prototype.setParent=function(a){rt.prototype.setParent.call(this,a);return this};var $Id=function(){rt.call(this,"video-search")};Y($Id,rt);$Id.prototype.setLabel=function(a){rt.prototype.setLabel.call(this,a);return this};$Id.prototype.setQuery=function(a){rt.prototype.setQuery.call(this,a);return this};$Id.prototype.setParent=function(a){rt.prototype.setParent.call(this,a);return this};var aJd=function(){rt.call(this,"web")};Y(aJd,rt);aJd.prototype.setLabel=function(a){rt.prototype.setLabel.call(this,a);return this};aJd.prototype.setQuery=function(a){rt.prototype.setQuery.call(this,a);return this};aJd.prototype.setParent=function(a){rt.prototype.setParent.call(this,a);return this};var h0=function(){this.root_=void 0;this.items_=[];this.opts={}},bJd=function(a){switch(a){case "image-search":return new WId;case "maps":return new XId;case "photos":return new YId;case "url":return new ZId;case "video-search":return new $Id;case "web":return new aJd}return new rt(a)};h0.prototype.addView=function(a){this.items_.push(typeof a==="string"?bJd(a):a);return this};
var cJd=function(a){return"("+sxc(a.items_,function(b){return b.toString()}).join(",")+")"},dJd=function(a){a=bj(a.opts,function(b){return b!==null});return(a=Pta(a)?null:a)?JSON.stringify(Jta(a,function(b){return b.toString()})):""};h0.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",cJd(this)],b=dJd(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return cJd(this)};
h0.prototype.getViews=function(a,b){b=b===void 0?[]:b;for(var c=this.items_,d=0;d<c.length;d++){var e=c[d];e instanceof h0?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};h0.prototype.getOptions=function(){return cj(this.opts)};h0.prototype.setCollapsible=function(a){this.opts.collapsible=a};var BBb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new h0};h=BBb.prototype;h.nav_=null;h.domHelper_=null;h.addView=function(a){this.nav_.addView(a);return this};h.getAppId=function(){return this.appId_};h.getBaseUrl=function(){return this.basePickerUrl_};h.getDomHelper=function(){return this.domHelper_};h.getViews=function(a){return this.nav_.getViews(a)};h.setAppId=function(a){this.appId_=a};h.setCallback=function(a){this.callback_=a;return this};rw(CBb,BBb);var eJd=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},fJd=function(a){return a.classList?a.classList:eJd(a).match(/\S+/g)||[]},gJd=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},hJd=function(a,b){return a.classList?a.classList.contains(b):Ka(fJd(a),b)},iJd=function(a,b){if(a.classList)a.classList.add(b);else if(!hJd(a,b)){var c=eJd(a);gJd(a,c+(c.length>0?" "+b:b))}},jJd=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){iJd(a,e)});else{var c={};Array.prototype.forEach.call(fJd(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;gJd(a,b)}},kJd=function(a,b){a.classList?a.classList.remove(b):hJd(a,b)&&gJd(a,Array.prototype.filter.call(fJd(a),function(c){return c!=b}).join(" "))},lJd=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){kJd(a,c)}):gJd(a,Array.prototype.filter.call(fJd(a),function(c){return!Ka(b,c)}).join(" "))};var Moc=function(){if(yxc){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Ba()))?a[1]:"0"}return cv?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(Ba()))?a[0].replace(/_/g,"."):"10"):Axc?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Ba()))?a[1]:""):Bxc||Cxc||Dxc?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Ba()))?a[1].replace(/_/g,"."):""):""}();var mJd=function(a){return(a=a.exec(Ba()))?a[1]:""},Koc=function(){if(Kxc)return mJd(/Firefox\/([0-9.]+)/);if(Ku||wxc||vxc)return Jxc;if(Noc){if(Fa()||Ha()){var a=mJd(/CriOS\/([0-9.]+)/);if(a)return a}return mJd(/Chrome\/([0-9.]+)/)}if(Joc&&!Fa())return mJd(/Version\/([0-9.]+)/);if(Lxc||Mxc){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ba()))return a[1]+"."+a[2]}else if(Nxc)return(a=mJd(/Android\s+([0-9.]+)/))?a:mJd(/Version\/([0-9.]+)/);return""}();var Uoc=function(a,b){return(b&8&&zu(a)?b^4:b)&-9};var Lu=function(){};Lu.instance_=void 0;Lu.getInstance=function(){return Lu.instance_?Lu.instance_:Lu.instance_=new Lu};Lu.prototype.nextId_=0;Lu.prototype.idPrefix_="";Lu.prototype.setIdPrefix=function(a){this.idPrefix_=a};var uu=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var i0=function(a){kj.call(this);this.dom_=a||lj();this.rightToLeft_=nJd;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null;this.wasDecorated_=!1};rw(i0,kj);i0.prototype.idGenerator_=Lu.getInstance();var nJd=!1;h=i0.prototype;h.getId=function(){return this.id_||(this.id_=uu(this.idGenerator_))};
h.setId=function(a){this.parent_&&this.parent_.childIndex_&&(Rta(this.parent_.childIndex_,this.id_),Sta(this.parent_.childIndex_,a,this));this.id_=a};h.getElement=function(){return this.element_};h.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new vu(this));return this.googUiComponentHandler_};
h.setParent=function(a){if(this==a)throw Error("Wf");var b;if(b=a&&this.parent_&&this.id_){b=this.parent_;var c=this.id_;b=b.childIndex_&&c?Tta(b.childIndex_,c)||null:null}if(b&&this.parent_!=a)throw Error("Wf");this.parent_=a;i0.superClass_.setParentEventTarget.call(this,a)};h.getParent=function(){return this.parent_};h.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Xf");i0.superClass_.setParentEventTarget.call(this,a)};h.getDomHelper=function(){return this.dom_};
h.createDom=function(){this.element_=this.dom_.createElement("DIV")};h.render=function(a){oJd(this,a)};h.renderBefore=function(a){oJd(this,a.parentNode,a)};var oJd=function(a,b,c){if(a.inDocument_)throw Error("Yf");a.element_||a.createDom();b?b.insertBefore(a.element_,c||null):a.dom_.document_.body.appendChild(a.element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};h=i0.prototype;
h.decorate=function(a){if(this.inDocument_)throw Error("Yf");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=Cu(a);this.dom_&&this.dom_.document_==b||(this.dom_=lj(a));this.decorateInternal(a);this.enterDocument()}else throw Error("Zf");};h.canDecorate=function(){return!0};h.decorateInternal=function(a){this.element_=a};h.enterDocument=function(){this.inDocument_=!0;pJd(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
h.exitDocument=function(){pJd(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};h.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);pJd(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&wC(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;i0.superClass_.disposeInternal.call(this)};
h.setModel=function(){};
h.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("Yf");if(a<0||a>(this.children_?this.children_.length:0))throw Error("$f");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if((void 0).getParent()==this){var b=this.childIndex_,c=(void 0).getId();b[c]=void 0;La(this.children_)}else Sta(this.childIndex_,(void 0).getId());(void 0).setParent(this);zba(this.children_,a,0,void 0);(void 0).inDocument_&&this.inDocument_&&
(void 0).getParent()==this?(b=this.getContentElement(),(b.childNodes[a]||null)!=(void 0).getElement()&&((void 0).getElement().parentElement==b&&b.removeChild((void 0).getElement()),a=b.childNodes[a]||null,b.insertBefore((void 0).getElement(),a))):this.inDocument_&&!(void 0).inDocument_&&(void 0).element_&&(void 0).element_.parentNode&&(void 0).element_.parentNode.nodeType==1&&(void 0).enterDocument()};h.getContentElement=function(){return this.element_};
h.isRightToLeft=function(){this.rightToLeft_==null&&(this.rightToLeft_=zu(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};h.hasChildren=function(){return!!this.children_&&this.children_.length!=0};var pJd=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
i0.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.childIndex_&&c?Tta(this.childIndex_,c)||null:null;c&&a&&(Rta(this.childIndex_,c),La(this.children_,a),b&&(a.exitDocument(),a.element_&&wC(a.element_)),a.setParent(null))}if(!a)throw Error("ag");return a};rw(EBb,DBb);rw(FBb,DBb);var qJd=kw(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),rJd=kw(["//apis.google.com/js/rpc.js"]),UBb=Fh(qJd),TBb=Fh(rJd),HBb=null;var sJd=function(a){kj.call(this);this.element_=a;this.listenKeyIn_=mj(this.element_,"focus",this,!0);this.listenKeyOut_=mj(this.element_,"blur",this,!0)};rw(sJd,kj);sJd.prototype.handleEvent=function(a){var b=new DB(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};sJd.prototype.disposeInternal=function(){sJd.superClass_.disposeInternal.call(this);HB(this.listenKeyIn_);HB(this.listenKeyOut_);delete this.element_};var tJd=new Map;tJd.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");tJd.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");tJd.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var uJd=new Set;uJd.add("application/vnd.google-apps.kix");uJd.add("application/vnd.google-apps.ritz");uJd.add("application/vnd.google-apps.punch");var GJd=function(a,b,c){var d=c&&vi(c,1);c=vJd(c);switch(a[0].getId().getSourceId()){case 13:return wJd(a,b,d,c);case 3:return xJd(a,b,d,c);case 10:return yJd(a,b,d,c);case 27:return yJd(a,b,d,c);case 12:return zJd(a,b);case 2:return AJd(a,b,d,c);case 5:return BJd(a,b,d,c);case 9:return CJd(a,b,d,c);case 6:return DJd(a,b,d,c);case 25:return EJd(a,b,d,c);case 1:return yi(a[0],cbd,26)?FJd(a,b,d,c):yJd(a,b,d,c);default:return{}}},DJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:j0(e),lastEditedUtc:X(e,Ti,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:vi(e,13),thumbnails:k0(CM(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},AJd=function(a,b,c,d){var e=a.map(function(f){var g=f.getId().getId(),k=f.getMimeType(),l=f.getName(),r=j0(f),w=f.getLastModifiedTimestamp().toDate().getTime(),x=f.getUrl(),
C=Number(Byc(f)),H=f.getDescription(),J=f.getIconUrl(),O=k0(CM(f)),R=X(f,DM,21).getShared(),V=X(f,DM,21).getDownloadUrl(),ca=vi(f,13);var oa=X(f,DM,21);oa=Gi(oa,9);var ua=X(f,DM,21);ua=vi(ua,11);g={id:g,serviceId:"docs",mimeType:k,name:l,type:r,lastEditedUtc:w,url:x,sizeBytes:C,description:H,iconUrl:J,thumbnails:O,isShared:R,downloadUrl:V,embedUrl:ca,copyable:oa,resourceKey:ua};k=X(f,DM,21);Gi(k,12)&&(g.uploadState="success",g.isNew=!0);X(f,DM,21).hasVideoMetadata()&&(f=X(f,DM,21).getVideoMetadata(),
f.hasDuration()&&(k=Ym(X(f,dn,2).getSeconds())+X(f,dn,2).getNanos()/1E9,g.duration=k),g.aspectRatio=em(f,1));return g});return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:HJd(a),v2Translated:!0}},BJd=function(a,b,c,d){a=a.map(function(e){var f=X(e,lbd,15);f=X(f,bbd,1);Pp(e,10,bbd,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:j0(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:k0(CM(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},CJd=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",name:CM(e)[0].getUrl().split("/").pop(),type:j0(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k0(CM(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},FJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:j0(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k0(CM(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},yJd=function(a,b,c,d){return{action:b,docs:a.map(IJd),viewToken:d,view:JJd(c||"upload",a),extraUserInputs:HJd(a),v2Translated:!0}},JJd=function(a,b){return b.some(function(c){var d;return((d=X(c,zM,30))==null?void 0:d.getAgentId())===9})?a+"/gmailphotos":
a},xJd=function(a,b,c,d){var e=a.map(function(f){var g={id:f.getId().getId(),serviceId:"picasa",mimeType:f.getMimeType(),name:f.getName(),type:j0(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),url:f.getUrl(),sizeBytes:Number(Byc(f)),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k0(CM(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k,l=(k=X(f,fbd,18))==null?void 0:X(k,ebd,3);l&&(g.latitude=em(l,1),
g.longitude=em(l,2));var r;(f=Zm((r=X(f,fbd,18))==null?void 0:pn(r,6)))&&(g.version=f);return g});return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:HJd(a),v2Translated:!0}},wJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:CM(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k0(CM(e),"etjpg")}});return{action:b,docs:a,viewToken:d,
view:c||"et",v2Translated:!0}},EJd=function(a,b,c,d){a=a.map(function(e){var f=e.getId().getId(),g=d["2"];return{id:f,serviceId:g.type!=="gmail_themes"&&g.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:e.getMimeType(),type:j0(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:k0(CM(e))}});return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},
zJd=function(a,b){a=a.map(function(c){var d=X(c,dbd,27).getEmailList()[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:c.getMimeType(),name:c.getName(),description:c.getDescription(),url:"mailto:"+d,thumbnail:[{url:c.getIconUrl()}],email:d}});return{action:b,docs:a,view:"contacts",v2Translated:!0}},vJd=function(a){if(!a)return{};var b=vi(a,3);b=b&&JSON.parse(b)||{};return{0:vi(a,1),1:a.getLabel(),2:b}},k0=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}})},HJd=function(a){return{isAttachment:a.some(function(b){return Gi(b,31)})}},IJd=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),serviceId:KJd(a),mimeType:a.getMimeType(),name:a.getName(),type:j0(a),sizeBytes:Number(Byc(a)),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:k0(CM(a)),isNew:!0};if(b=X(a,zM,30)){c.dataUrl=
vi(b,1)||null;a:{var d=X(a,zM,30);switch(d.getAgentId()){case 9:d=$l(d,jbd,2,AM);d={remoteRefs:d&&vi(d,1)};break a;case 10:case 15:d=$l(d,ibd,4,AM);var e=CM(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=vi(b,9)||null;c.uploadState=LJd(b)||null}(d=b&&$l(b,ibd,4,AM))&&(c.id=d.getPhotoId());(d=b&&$l(b,kbd,5,AM))&&(c.contentId=
vi(d,1));(d=b&&$l(b,gbd,7,AM))&&(c.contentId=vi(d,1));(d=b&&$l(b,hbd,6,AM))&&(c.contentId=vi(d,1));(b==null?void 0:b.getAgentId())===1&&(c.mediaKey=a.getId().getId());return c},KJd=function(a){var b;switch(((b=X(a,zM,30))==null?void 0:b.getAgentId())||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},j0=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"}},LJd=function(a){switch(a==null?void 0:xi(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 MJd=function(a){this.obj_=a};h=MJd.prototype;h.value=function(){return this.obj_};h.setWidth=function(a){this.obj_.width=a;return this};h.getWidth=function(){return this.obj_.width};h.setHeight=function(a){this.obj_.height=a;return this};h.getHeight=function(){return this.obj_.height};h.setStyle=function(a){this.obj_.style=a;return this};h.getStyle=function(){return this.obj_.style};var NJd=function(a){this.obj_=a||{}};h=NJd.prototype;h.value=function(){return this.obj_};h.setUrl=function(a){this.obj_.url=a;return this};h.getUrl=function(){return this.obj_.url};h.setStyle=function(a){this.obj_.style=a;return this};h.getStyle=function(){return this.obj_.style};h.setId=function(a){this.obj_.id=a;return this};h.getId=function(){return this.obj_.id};h.getContext=function(){return this.obj_.context};var OJd=function(a){a.obj_.attributes=a.obj_.attributes||{};return new MJd(a.obj_.attributes)};var PJd=function(){NJd.apply(this,arguments)};Y(PJd,NJd);var QJd=kw(["https://apis.google.com/js/api.js"]),RJd=Fh(QJd),VJd=function(a,b,c){c=c===void 0?{}:c;var d=!1,e=SJd(a,b,c).then(function(g){d=!0;return g}),f=wLc().then(function(){return d?SJd(a,b,c):TJd(b,c).then(function(g){return UJd(g,a)})});return uKc([e,f])},SJd=function(a,b,c){c=c===void 0?{}:c;return WJd(b,c).then(function(d){return UJd(d,a)})},UJd=function(a,b){var c=b.lastIndexOf("gapi.",0)==0?b.slice(5):b;return a[c]?pKc(a[c]):new zC(function(d,e){var f=Gs(function(){e(Error("bg"))},3E4);
a.load(b,{callback:function(){ra.clearTimeout(f);d(a[c])},onerror:function(g){ra.clearTimeout(f);e(g)}})})},WJd=function(a,b){b=b===void 0?{}:b;return a.gapi&&a.gapi.load?pKc(a.gapi):TJd(a,b)},TJd=function(a,b){b=b===void 0?{}:b;return v8a(RJd,{document:a.document,attributes:b}).then(function(){return a.gapi})},XJd=function(){};
XJd.prototype.load=function(a,b,c){b=b===void 0?window:b;c=c===void 0?{}:c;var d=Date.now();return VJd(a,b,c).then(function(e){var f=Date.now();return{library:e,loadStartMs:d,loadEndMs:f}},function(e){throw e instanceof Error?e:Error(String(e));})};var QBb=function(){BB.call(this);this.gapiLoader_=new XJd;this.origin_=null;this.gapiPickerIframeResolver_=wKc();this.gapiIframesResolver_=wKc();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};Y(QBb,BB);
var YJd=function(a,b){var c=c===void 0?{}:c;var d=Ou("gapi.iframes",b);return d?(a=Date.now(),pKc({library:d,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b,c)},ZJd=function(a,b,c,d,e,f){var g=!1;g=g===void 0?!1:g;YJd(a,Bu(b.ownerDocument)).then(function(k){var l=k.library;a.gapiIframesResolver_.resolve(l);k=a.gapiPickerIframeResolver_;var r=k.resolve,w=g;w=w===void 0?!1:w;var x={};x["host-message-handler"]=c;a.hostMessageHandlerInternal_=x;var C=wt(d);C=wt(C);C=RB(QB(PB(new Ns,C.scheme_),
C.getDomain()),C.port_).toString();a.origin_=C;C=(new PJd).setUrl(d);C.obj_.where=b;C.obj_.allowPost=w;C.obj_.messageHandlers=x;w=Ou("makeWhiteListIframesFilter",l)([a.origin_]);C.obj_.messageHandlersFilter=w;e!=null&&C.setId(e);f!=null&&(C.obj_.rpctoken=f);OJd(C).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");OJd(C).value().allow="camera 'src' "+a.origin_;l=l.getContext().openChild(C.value());r.call(k,l)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});
return a.gapiPickerIframeResolver_.promise},$Jd=function(a,b){return tKc([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=m(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Ou("makeWhiteListIframesFilter",c)([a.origin_])):qKc(Error("cg"))})};QBb.prototype.disposeInternal=function(){aKd(this);BB.prototype.disposeInternal.call(this)};
var aKd=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var bKd=function(){this.nextId=0};bKd.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var dKd=function(a,b){switch(a.action){case "select-contacts":a=cKd(a.contacts);break;case "visibility":a=a.visible;a=(new obd).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?$Jd(b,a):pKc()},cKd=function(a){if(!a||a.length==0)return null;var b=new obd;b.setCommand(11);var c=new bKd;a.forEach(function(d){if(d.email){var e=(new BM).setName(d.name?d.name:d.email);d=(new dbd).addEmail(d.email);e=Ni(e,dbd,27,d).setId((new xM).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var fKd=function(a,b,c){kj.call(this);this.target=a;this.handle=b||a;this.limits=c||new Du(NaN,NaN,NaN,NaN);this.document_=Cu(a);this.eventHandler_=new vu(this);ut(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;mj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=eKd};rw(fKd,kj);
var eKd=ra.document&&ra.document.documentElement&&!!ra.document.documentElement.setCapture&&!!ra.document.releaseCapture;h=fKd.prototype;h.getHandler=function(){return this.eventHandler_};h.setEnabled=function(a){this.enabled_=a};h.disposeInternal=function(){fKd.superClass_.disposeInternal.call(this);GB(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
h.startDrag=function(a){var b=a.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(a.event_.button!=0||cv&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new gKd("start",this,a.clientX,a.clientY,a))){this.dragging_=!0;b&&a.preventDefault();b=this.document_;var c=b.documentElement,d=!this.useSetCapture_;this.eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,{capture:d,passive:!1});this.eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?
(c.setCapture(!1),this.eventHandler_.listen(c,"losecapture",this.endDrag)):this.eventHandler_.listen(Bu(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=fKc(lj(this.document_))}};
h.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new gKd("end",this,a.clientX,a.clientY,a,hKd(this,this.deltaX),iKd(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
h.handleMove_=function(a){if(this.enabled_){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(d*d+e*e>0)if(this.dispatchEvent(new gKd("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=jKd(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new gKd("beforedrag",this,
a.clientX,a.clientY,a,b,c))&&(kKd(this,a,b,c),a.preventDefault())}};var jKd=function(a,b,c){var d=fKc(lj(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 Au(hKd(a,a.deltaX),iKd(a,a.deltaY))};fKd.prototype.onScroll_=function(a){var b=jKd(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;kKd(this,a,b.x,b.y)};
var kKd=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new gKd("drag",a,b.clientX,b.clientY,b,c,d))},hKd=function(a,b){var c=a.limits;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))},iKd=function(a,b){var c=a.limits;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))};fKd.prototype.isDragging=function(){return this.dragging_};
var gKd=function(a,b,c,d,e,f,g){CB.call(this,a);this.clientX=c;this.clientY=d;this.left=f!==void 0?f:b.deltaX;this.top=g!==void 0?g:b.deltaY};rw(gKd,CB);var l0=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("fb");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};h=l0.prototype;h.getCount=function(){return this.map_.size};h.getValues=function(){return Array.from(this.map_.values())};h.getKeys=function(){return Array.from(this.map_.keys())};h.containsKey=function(a){return this.map_.has(a)};
h.equals=function(a,b){var c=this;b=b===void 0?function(d,e){return d===e}:b;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.map_.get(d),a.get(d))})};h.isEmpty=function(){return this.map_.size==0};h.clear=function(){this.map_.clear()};h.remove=function(a){return this.map_.delete(a)};h.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};h.set=function(a,b){this.map_.set(a,b);return this};
h.addAll=function(a){if(a instanceof l0){a=m(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=m(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=m(Object.entries(a)),b=a.next();!b.done;b=a.next())c=m(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};h.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};h.clone=function(){return new l0(this)};var lKd=kw(["about:blank"]),mKd=kw(["javascript:undefined"]),nKd=Fh(lKd);vh(nKd);var oKd=Fh(mKd);vh(oKd);var pKd=function(a,b){this.element_=a;this.dom_=b};var m0=function(a,b){i0.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=Z2c({mutate:this.resizeBackground_},this);Z2c({mutate:this.updateModalAndBackground_},this)};rw(m0,i0);h=m0.prototype;h.focusHandler_=null;h.visible_=!1;h.bgEl_=null;h.bgIframeEl_=null;h.tabCatcherElement_=null;h.backwardTabWrapInProgress_=!1;h.getCssClass=function(){return"goog-modalpopup"};h.getBackgroundElement=function(){return this.bgEl_};
h.createDom=function(){m0.superClass_.createDom.call(this);var a=this.getElement();jJd(a,Aa(this.getCssClass()).split(" "));a.tabIndex=0;zt(a,!1);qKd(this);rKd(this)};
var qKd=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});asa(b,nKd);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";zt(a.bgIframeEl_,!1);IId(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.getDomHelper().createDom("DIV",a.getCssClass()+"-bg"),zt(a.bgEl_,!1))},rKd=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.getDomHelper().createElement("SPAN"),zt(a.tabCatcherElement_,!1),a.tabCatcherElement_.tabIndex=
0,a.tabCatcherElement_.style.position="absolute")};h=m0.prototype;h.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};h.canDecorate=function(a){return!!a&&a.tagName=="DIV"};h.decorateInternal=function(a){m0.superClass_.decorateInternal.call(this,a);a=Aa(this.getCssClass()).split(" ");jJd(this.getElement(),a);qKd(this);rKd(this);this.getElement().tabIndex=0;zt(this.getElement(),!1)};
h.enterDocument=function(){if(this.bgIframeEl_){var a=this.bgIframeEl_,b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b)}a=this.bgEl_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b);m0.superClass_.enterDocument.call(this);a=this.tabCatcherElement_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.focusHandler_=new sJd(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);sKd(this,!1)};
h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);$i(this.focusHandler_);m0.superClass_.exitDocument.call(this);wC(this.bgIframeEl_);wC(this.bgEl_);wC(this.tabCatcherElement_)};
h.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&sKd(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_);tKd(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)FB(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_)FB(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 sKd=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new pKd(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_||csd(d,"hidden")||(iU(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}};
m0.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var tKd=function(a,b){a.bgIframeEl_&&zt(a.bgIframeEl_,b);a.bgEl_&&zt(a.bgEl_,b);zt(a.getElement(),b);zt(a.tabCatcherElement_,b)};h=m0.prototype;h.onShow=function(){this.dispatchEvent("show")};h.onHide=function(){tKd(this,!1);this.dispatchEvent("hide")};h.isVisible=function(){return this.visible_};h.focus=function(){this.focusElement_()};
h.resizeBackground_=function(){this.bgIframeEl_&&zt(this.bgIframeEl_,!1);this.bgEl_&&zt(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=uKd(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_&&(zt(this.bgIframeEl_,!0),GId(this.bgIframeEl_,c,a));this.bgEl_&&(zt(this.bgEl_,!0),GId(this.bgEl_,c,a))};
h.reposition=function(){var a;if(Ioc(this.getElement())=="fixed")var b=a=0;else b=fKc(this.getDomHelper()),a=b.x,b=b.y;var c=HId(this.getElement());var d=uKd(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);Eu(this.getElement(),a,b);Eu(this.tabCatcherElement_,a,b)};h.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Gs(this.focusElement_,0,this)};h.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
var uKd=function(a){a=a.getDomHelper().document_;return uC(Bu(a)||window)};m0.prototype.disposeInternal=function(){$i(this.popupShowTransition_);this.popupShowTransition_=null;$i(this.popupHideTransition_);this.popupHideTransition_=null;$i(this.bgShowTransition_);this.bgShowTransition_=null;$i(this.bgHideTransition_);this.bgHideTransition_=null;m0.superClass_.disposeInternal.call(this)};var tt=function(a,b,c){m0.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=n0(n0(new o0,vKd,!0),wKd,!1,!0)};rw(tt,m0);h=tt.prototype;h.escapeToCancel_=!0;h.hasTitleCloseButton_=!0;h.modal_=!0;h.backgroundElementOpacity_=.5;h.title_="";h.dragger_=null;h.disposeOnHide_=!1;h.titleEl_=null;h.titleTextEl_=null;h.titleTextId_=null;h.titleCloseEl_=null;h.contentEl_=null;h.buttonEl_=null;h.getCssClass=function(){return this.class_};
h.setTitle=function(a){this.title_=a;this.titleTextEl_&&XJc(this.titleTextEl_,a)};h.getTitle=function(){return this.title_};h.getContent=function(){return""};h.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var xKd=function(a){a.getElement()||a.render();return a.getElement()};tt.prototype.getBackgroundElement=function(){this.getElement()||this.render();return tt.superClass_.getBackgroundElement.call(this)};
var yKd=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&IId(b,a.backgroundElementOpacity_)};tt.prototype.handleDrag=function(){};
var zKd=function(a,b){var c=Aa(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?jJd(a.titleEl_,c):lJd(a.titleEl_,c));b&&!a.dragger_?(b=new fKd(a.getElement(),a.titleEl_),a.dragger_=b,jJd(a.titleEl_,c),mj(a.dragger_,"start",a.setDraggerLimits_,!1,a),mj(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};h=tt.prototype;
h.createDom=function(){tt.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"));UJc(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));bsd(this.titleTextEl_,"heading");bsd(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;dsd(this.titleCloseEl_,"Close");bsd(a,"dialog");iU(a,"labelledby",this.titleTextId_||"");zt(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());zt(this.buttonEl_,!!this.buttons_);yKd(this,this.backgroundElementOpacity_)};
h.decorateInternal=function(a){tt.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.class_+"-content";this.contentEl_=tC(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_=tC(document,null,b,a)[0])?(this.titleTextEl_=tC(document,null,c,this.titleEl_)[0],this.titleCloseEl_=tC(document,null,d,this.titleEl_)[0]):
(this.titleEl_=this.getDomHelper().createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=bKc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=SJc("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;iU(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));
zt(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=tC(document,null,b,a)[0])?(this.buttons_=new o0(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()),zt(this.buttonEl_,!!this.buttons_));yKd(this,this.backgroundElementOpacity_)};
h.enterDocument=function(){tt.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_);zKd(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();bsd(a,"dialog");this.titleTextEl_.id!==""&&iU(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()&&sKd(this,!1)}};h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);zKd(this,!1);tt.superClass_.exitDocument.call(this)};h.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),tt.superClass_.setVisible.call(this,a))};h.onShow=function(){tt.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
h.onHide=function(){tt.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};h.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=uC(Bu(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=HId(this.getElement());Ioc(this.getElement())=="fixed"?this.dragger_.limits=new Du(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new Du(0,0,c-d.width,a-d.height)};
h.onTitleCloseClick_=function(){AKd(this)};var AKd=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new BKd(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},CKd=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&zt(a.titleCloseEl_,a.hasTitleCloseButton_)};tt.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};tt.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;tt.superClass_.disposeInternal.call(this)};
tt.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 BKd(a,b))&&this.setVisible(!1)}};
tt.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 BKd(f,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(l){}Gs(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)AKd(this);else if(d){var g=d.defaultButton_,k=g&&d.getButton(g);e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!k||k.disabled||e||(f=g)}f&&d&&(c=!0,b=this.dispatchEvent(new BKd(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||AKd(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};var BKd=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};rw(BKd,CB);
var o0=function(a){l0.call(this);this.dom_=a||lj();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};rw(o0,l0);o0.prototype.clear=function(){l0.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};o0.prototype.set=function(a,b,c,d){l0.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};var n0=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};h=o0.prototype;
h.render=function(){if(this.element_){esa(this.element_,tj);var a=lj(this.element_);this.forEach(function(b,c){b=a.createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className=this.class_+"-default");this.element_.appendChild(b)},this)}};h.decorate=function(a){if(a&&a.nodeType==1){this.element_=a;a=sC("BUTTON",this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=bKc(b)||b.value,c){var f=e==0;this.set(c,d,f,b.name=="cancel");f&&iJd(b,this.class_+"-default")}}};h.getElement=function(){return this.element_};
h.getDomHelper=function(){return this.dom_};h.getButton=function(a){for(var b=sC("BUTTON",this.element_),c,d=0;c=b[d];d++)if(c.name==a||c.id==a)return c;return null};var vKd={key:"ok",caption:"OK"},wKd={key:"cancel",caption:"Cancel"},DKd={key:"yes",caption:"Yes"},EKd={key:"no",caption:"No"},FKd={key:"save",caption:"Save"},GKd={key:"continue",caption:"Continue"};
typeof document!="undefined"&&(n0(new o0,vKd,!0,!0),n0(n0(new o0,vKd,!0),wKd,!1,!0),n0(n0(new o0,DKd,!0),EKd,!1,!0),n0(n0(n0(new o0,DKd),EKd,!0),wKd,!1,!0),n0(n0(n0(new o0,GKd),FKd),wKd,!0,!0));rw(JBb,tt);var KBb=function(a,b){kj.call(this);this.element_=a;a=VJc(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&zu(a);this.listenKey_=mj(this.element_,gj?"DOMMouseScroll":"mousewheel",this,b)};rw(KBb,kj);
KBb.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=HKd(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=HKd(-d.wheelDeltaX),c=HKd(-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 IKd(a,d,b,c);this.dispatchEvent(b)};
var HKd=function(a){return fj&&(cv||zxc)&&a%40!=0?a:a/40};KBb.prototype.disposeInternal=function(){KBb.superClass_.disposeInternal.call(this);HB(this.listenKey_);this.listenKey_=null};var IKd=function(a,b,c,d){DB.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};rw(IKd,DB);var SBb;var JKd=kw(["https://about:blank"]),KKd=kw(['javascript:""']),LKd=kw(["about:blank"]);rw(At,JBb);h=At.prototype;h.url_="";h.iframe_=null;h.iframeLoaded_=!1;h.loadedFired_=!1;h.callback_=function(){};h.enterDocument=function(){At.superClass_.enterDocument.call(this);MBb(this.getBackgroundElement(),this.getHandler())};
h.render=function(a){var b=this;At.superClass_.render.call(this,a);this.useGapi_?YJd(this.iframeManager_,window).then(function(){return MKd(b)}).then(null,function(c){return void b.handleError_(c)}):NKd(this)};
var MKd=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);zt(b,!1);a.getContentElement().appendChild(b);return ZJd(a.iframeManager_,b,function(c){var d=qbd(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=X(d,nbd,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList(Km);d=f.length===0?{action:e}:GJd(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:CKd(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();f=X(d,nbd,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=f.getItemList(Km);if(d.length===0)d={action:e};else{var g=f.getInternalOnlyV1ViewInfo();f=g&&vi(g,1);g=vJd(g);d=yJd(d,e,f,g)}}c.call(a,d)}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();OKd(a);zt(a.iframe_.parentElement,!0);iJd(a.getElement(),"picker-dialog");PKd(a);return c})},
NKd=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});asa(a.iframe_,QKd(a));iJd(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void OKd(a)});a.iframe_.src=a.url_;PKd(a)},SKd=function(a){RKd(a,nj(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},PKd=function(a){var b=xt(wt(a.url_),"title");b&&a.setTitle(b)},QKd=function(a){return jba()>=
7&&a.url_.lastIndexOf("https",0)==0?Fh(JKd):Ku?Fh(KKd):Fh(LKd)},OKd=function(a){SKd(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};At.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var RKd=function(a,b){var c=a.gadgetsDomHelper_;IBb(function(){b(c.getWindow().gadgets.rpc)},c)};
At.prototype.setUrl=function(a){a=yt(new Ns(a),"rpcService",this.targetId_);yt(a,"rpctoken",this.rpcToken_);dIc(a,"rpctoken="+this.rpcToken_);PB(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};At.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&TKd(this)};At.prototype.setCallback=function(a){this.callback_=a;RKd(this,nj(function(b){b.register(this.targetId_,nj(this.handlePickerAction_,this))},this))};
At.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,this.sendCommand(new FBb(this.isVisible())),TKd(this),CKd(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 TKd=function(a){a.appId_&&a.sendCommand(new EBb(a.appId_,window.location.protocol+"//"+window.location.host))};h=At.prototype;
h.setRelayUrl=function(a){RKd(this,nj(function(b){b.setRelayUrl(this.targetId_,a)},this))};h.sendCommand=function(a){var b=this;this.useGapi_&&dKd(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});RKd(this,nj(function(c){c.call(this.targetId_,"picker",null,a)},this))};
h.resizePicker_=function(){var a=this.getDomHelper().document_;a=Bu(a)||window;if(xt(wt(this.url_),"ignoreLimits")=="true")a=new qC(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(xt(wt(this.url_),"shadeDialog")=="true"){var b=xKd(this);b=JId(b);var c=uC(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 qC(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,Math.min(1051,b)),(c=this.preferredDialogHeight_)||
(c=uC(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=uC(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=uC(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new qC(b,c);GId(this.getContentElement(),a);this.reposition()};
h.reposition=function(){if(xt(wt(this.url_),"shadeDialog")=="true"){var a=HId(this.getElement()),b=uC(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);b=xKd(this);if(b=JId(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=fKc(this.getDomHelper()).y;Eu(this.getElement(),a,b)}else At.superClass_.reposition.call(this)};
h.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_))}At.superClass_.setVisible.call(this,a);this.sendCommand(new FBb(a))};
h.focus=function(){At.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};h.handleError_=function(){this.callback_({action:"error"})};var UKd=function(a,b){b=b===void 0?At:b;BBb.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(UKd,CBb);UKd.prototype.disposeOnHide_=!1;
UKd.prototype.build=function(){this.getAppId()&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.getAppId());this.urlParamMap_.get("parent")||this.setRelayUrl(dIc(cIc(wt(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("eg");var a=new this.pickerConstructor(VKd(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 WKd=function(a,b){a.urlParamMap_.set(b,"true");return a};h=UKd.prototype;h.getHeight=function(){return this.dialogHeight_};h.getLocale=function(){return this.urlParamMap_.get("hl")};h.getTitle=function(){return this.urlParamMap_.get("title")};h.getWidth=function(){return this.dialogWidth_};h.setDisposeOnHide=function(a){this.disposeOnHide_=a};h.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};
var XKd=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};h=UKd.prototype;h.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};h.setLocale=function(a){this.urlParamMap_.set("hl",a)};h.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};h.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};h.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var VKd=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",cJd(a.nav_));var b=new Ns(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){yt(b,d,c)});return b};var YKd=function(){this.activeSession=p(qu);this.attachmentsApi=p(iS);this.onePickUrl=this.activeSession.getOnePickUrl();this.disabled=!1;this.onPickDoc=new XP;this.onCloneBlob=new XP};
YKd.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=XKd(WKd(WKd(WKd(WKd((new UKd(this.onePickUrl)).addView(VId().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&c.action==="picked")for(var d=m(c.docs),e=d.next();!e.done;e=d.next())e=new RId(e.value),c.extraUserInputs.isAttachment?(e=new SId(e),TId(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};YKd.\u0275fac=function(a){return new (a||YKd)};
YKd.\u0275cmp=D({type:YKd,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&&(K(0,"div",0)(1,"button",1),N("click",function(){return b.showDialog()}),M(2,"mat-icon",
2),L()());a&2&&(B(),I("disabled",b.disabled))},dependencies:[Dy,gB,eB,oK,iA],encapsulation:2});var p0=function(){Z.apply(this,arguments);this.issueDetailsBrain=p(UQ);this.userResources=p(eP);this.analytics=p(aQ);this.isPlusOneText=!1;this.onSubmitComment=new XP};Y(p0,Z);p0.\u0275dir=Z.\u0275dir;p0.prototype.ngOnChanges=function(a){a.isPlusOneText&&this.isPlusOneText&&this.analytics.trackEvent("editIssue","view","commentAndVoteBanner")};
p0.prototype.onClick=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return z(e,ie(b.issueDetailsBrain.id$),2);c=e.yieldResult;b.onSubmitComment.emit(a);if(c==null)return e.return();d={voted:!0,starred:null,notificationSubscription:null};Dfd(b.userResources,c,d).pipe(Bf(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click","commentAndVote");ce(e)})};p0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(p0)))(b||p0)}}();
p0.\u0275cmp=D({type:p0,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},standalone:!1,features:[Gf,bx],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,VBb,7,1,"div",0);a&2&&G(b.isPlusOneText?0:-1)},dependencies:[Dy,gB,cB,oK,iA],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 ZKd=["commentBoxContainer"],$Kd=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],aLd=function(a,b){return[a,b]},q0=function(){this.analytics=p(aQ);this.hotkeys=p(kU);this.activeSession=p(qu);this.appEvents=p(PO);this.MARKDOWN="MARKDOWN";this.commentChange=new XP;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 XP;this.onChange=new XP;this.onFocusEvent=new XP;this.onSubmit=new XP;this.onRestrict=new XP;this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.focused=!1;this.commentRebound$=new wf(1);this.destroyed$=new wf(1);this.currentTracker=this.activeSession.getTracker()};h=q0.prototype;h.ngOnDestroy=function(){var a;(a=this.comment)==null||Bnd(a);this.destroyed$.next()};
h.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(Bf(this.destroyed$)).subscribe(function(b){Imb(a,b)});this.appEvents.scrollToCommentBox.pipe(Bf(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};h.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};h.getRestrictedLabel=function(){var a,b,c=(b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED";return UYa(c)};
h.isRestricted=function(){var a,b;return((b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED")!=="NONE_DETECTED"};var Imb=function(a,b){(b=b===void 0?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();setTimeout(function(){var c;(c=a.commentDraftComponent)==null||aCd(c)})};h=q0.prototype;h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.comment&&this.comment.uploads.push(a)};
h.removeUpload=function(a){this.comment&&La(this.comment.uploads,a)};h.scrollIntoView=function(){var a;(a=this.commentBoxContainer)==null||a.nativeElement.scrollIntoView({behavior:"smooth"})};h.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};h.onBlur=function(){this.focused=!1};h.onKeydown=function(a){this.hotkeys.isEnabled()&&(a.key!=="Enter"||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a))};
h.handlePaste=function(a){if(a&&a.clipboardData!=null){var b=a.clipboardData;for(var c=!1,d=!1,e=0,f=0;f<b.items.length;f++)b.items[f].kind==="string"&&b.items[f].type==="text/plain"?c=!0:b.items[f].kind==="file"&&(d=!0,e=f);d&&b.items&&b.files?(d=b.files[0],e=b.items[e].type.replace(/^.*[/]/,""),c?(b=b.getData("text/plain"),b=b.replace(/^.*[\\\/]/,"")):b=(new Date).toString()+"."+e,b={file:d,filename:b}):b=void 0;b&&(a.preventDefault(),a=new File([b.file],b.filename,{type:b.file.type}),this.uploadFile(a))}};
q0.\u0275fac=function(a){return new (a||q0)};
q0.\u0275cmp=D({type:q0,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(hg(sY,5),hg(ZKd,5),hg(g0,5));if(a&2){var c;lg(c=mg())&&(b.commentDraftComponent=c.first);lg(c=mg())&&(b.commentBoxContainer=c.first);lg(c=mg())&&(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:[bx],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();cg($Kd);K(0,"div",1,0)(2,"div",2)(3,"b-comment-draft",3);N("contentChange",function(d){u(c);if(b.comment){var e=b.comment.value;b.comment.value=d;d!==e&&
(b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit()),b.onPlusOneTextEntered&&b.onPlusOneTextEntered.emit(d.trim()==="+1"))}return v()})("focus",function(){u(c);return v(b.onFocus())})("blur",function(){u(c);return v(b.onBlur())})("keydown",function(d){u(c);return v(b.onKeydown(d))})("paste",function(d){u(c);return v(b.handlePaste(d))});L();F(4,WBb,1,1,"b-plus-one-comment-callout",4);L();dg(5);K(6,"b-attachment-uploader",5);N("onUploadCancel",function(d){u(c);b.removeUpload(d);return v(b.onChange.emit())})("onUploadComplete",
function(){u(c);return v(b.onChange.emit())});L();dg(7,1);F(8,aCb,5,3,"div",6);L();F(9,bCb,2,4,"div")}a&2&&(wg("focused",b.focused),B(3),I("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",Jg(16,aLd,b.disabled?"bv2-disabled":"",b.warn?"banned-words-warning":""))("audience",b.audience)("idForAriaLabel",b.idForAriaLabel)("issueId",b.issueId)("canEditIssuesInComponent",b.canEditIssuesInComponent)("enableMentionsAutocomplete",!0)("isLiteralModeSupported",b.isLiteralModeSupported),
B(),G(b.isPlusOneCalloutEnabled?4:-1),B(2),I("uploads",b.comment.uploads),B(2),G(b.showToolbar?8:-1),B(),G(b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN?9:-1))},dependencies:[Dy,sY,oK,iA,nT,YKd,PId,g0,gB,cB,eB,p0],encapsulation:2});var r0=function(){this.documentationLinks=p(YR);this.issueLimits=p(DY);this.accessPolicyApi=p(FO);this.implicitAccessEnabled=!1};r0.prototype.ngOnInit=function(){var a=this;this.componentId&&this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(b){return a.implicitAccessEnabled=b})};r0.prototype.toggleAccessLimits=function(){var a=this;return y(function(b){if(!a.componentId)return b.return();a.issueLimits.open({componentId:a.componentId,issueId:a.issueId});ce(b)})};
r0.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};r0.prototype.getAccessLimitLevelDisplay=function(a){return a==="LIMIT_APPEND"?"Commenting":a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"?"Visibility":""};
var bLd=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===rCd.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=m(Clb),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?Dlb.descriptionWithExpandedAccess:Dlb.descriptionNoExpandedAccess}else b="";return b};r0.\u0275fac=function(a){return new (a||r0)};
r0.\u0275cmp=D({type:r0,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();K(0,"button",1);N("click",function(){u(c);return v(b.toggleAccessLimits())})("keydown.enter",function(d){u(c);return v(b.toggleAccessLimitsWithKeystroke(d))})("keydown.space",function(d){u(c);return v(b.toggleAccessLimitsWithKeystroke(d))});M(1,"mat-icon",2);K(2,"span",3);Q(3);L()();K(4,"onedev-hovercard",
null,0)(6,"div",4)(7,"div",5)(8,"span",6);Q(9);K(10,"a",7);Q(11," Learn more");L()()()()()}a&2&&(a=qg(5),I("onedevHovercardTrigger",a),B(3),yg(b.getAccessLimitLevelDisplay(b.accessLimitLevel)),B(6),S(" Issue access is limited. ",bLd(b,b.accessLimitLevel)," "),B(),I("href",b.documentationLinks.getIssueAccessLimit(),Pe))},dependencies:[Dy,oK,iA,DK,LK],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 cLd=[[["","additionalToolbarItems",""]]],s0=function(){var a=this;this.issuePermissionService=p(WQ);this.userPreferencesManager=p(dR);this.editIssueService=p(DS);this.analytics=p(aQ);this.draftStore=p(WR);this.activeSession=p(qu);this.issueDetailsBrain=p(UQ);this.issueCommentDialogsService=p(yY);this.appEvents=p(PO);this.bannedWordsChecker=p(SW);this.componentFridge=p(MO);this.butterBar=p(QN);this.destroyRef=p(Ee);this.issueId$=new wf(1);this.distinctIssueId$=this.issueId$.pipe(pf());this.issue$=
this.distinctIssueId$.pipe(Af(function(b){return a.editIssueService.editableIssue$(b)}));this.wasFocused=!1;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse$=new Nj("");this.showActionsAfterPreview=!1;this.showCommentButton=!0;this.commentSubmitted=new XP;this.placeholderText$=new Nj("Add a comment.");this.issueComponent$=this.issue$.pipe(Af(function(b){return(b==null?0:b.componentId)?a.componentFridge.watch(b==null?void 0:b.componentId):ee(void 0)}));this.issueAccessLimitLevel$=
this.issuePermissionService.accessLimitLevel$.pipe(A(function(b){return b!=null?b:"LIMIT_NONE"}));this.isAccessLimited$=this.issueAccessLimitLevel$.pipe(A(function(b){return b==="LIMIT_VIEW"||b==="LIMIT_APPEND"||b==="LIMIT_VIEW_TRUSTED"}));this.HOTKEYS=Vr;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.accessLevel$=this.issuePermissionService.accessLevel$;
this.audience$=this.issuePermissionService.audience$;this.autoCcOnComment$=this.userPreferencesManager.preferences$.pipe(A(function(b){return b.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(A(function(b){return a.editIssueService.issueCommentDraft(b)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(Af(function(b){return b.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(Af(function(b){return b.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;
this.savingState$=this.issueId$.pipe(A(function(b){return a.editIssueService.savingState(b)}));this.isSaving$=this.savingState$.pipe(Af(function(b){return bod(b,"comment")}));this.commentLimitReached$=this.events$.pipe(A(function(b){var c=a.activeSession.getCommentNumberLimit();return AUa(b)>=c}));this.commentPlaceholderText$=le([this.commentLimitReached$,this.hasAclToComment$,this.placeholderText$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b?"The comment limit has been reached and no additional comments are permitted.":
a.activeSession.isAnonymous()?"Sign in to use full features.":d?c:"You do not have access to comment on this issue."}));this.commentBoxEnabled$=le([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&!d&&!c}));this.showRecaptcha$=le([this.hasAclToComment$,this.commentLimitReached$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&!c&&a.enableRecaptcha}));this.isPlusOneCalloutEnabled$=
this.issueDetailsBrain.voted$.pipe(A(function(b){return a.activeSession.isInternalSession()&&!b}));this.isPlusOneText$=new Nj(!1);this.commentButtonStyle$=le([this.isPlusOneCalloutEnabled$,this.isPlusOneText$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&c?"hairline":"fill"}));this.commentDraftUpdated$=new Nj(!0);this.commentButtonEnabled$=le([this.hasAclToComment$,this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(A(function(b){var c=
m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&Dnd(d)&&!e&&(!a.enableRecaptcha||c!=="")}));this.empty$=le([this.comment$,this.commentDraftUpdated$]).pipe(A(function(b){var c,d;return(d=(c=m(b).next().value)==null?void 0:c.value)!=null?d:""}),A(function(b){return b.length===0}));this.doAutoRestrictComment$=le([this.issueComponent$,this.comment$,this.commentDraftUpdated$,this.judgementForNewContent$]).pipe(A(function(b){b=m(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 lt(c)&&e&&!qs(a.activeSession)&&d&&b}))};s0.prototype.setJudgementForNewContent=function(a,b){this.editIssueService.issueCommentDraft(a).setJudgementForNewContent(b)};
s0.prototype.autoRestrictComment=function(a){var b=this,c;return y(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),Pr(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."));ce(d)})};
s0.prototype.ngOnInit=function(){this.doAutoRestrictComment$.pipe(Uj(this.destroyRef)).subscribe(this.autoRestrictComment.bind(this))};var gCb=function(a){var b;return y(function(c){b=!eR(a.userPreferencesManager).autoCcOnComment;a.analytics.trackEvent("editIssue","toggleAutoCcOnComment",String(b));return z(c,ie(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
s0.prototype.saveCommentDraft=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.bannedWordsChecker.reset(),z(c,ie(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(Jr(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);ce(c)})};
s0.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return(c=a)==null||c.stopPropagation(),d=b.enableRecaptcha?b.recaptchaResponse$.getValue():void 0,e=b.editIssueService.issueCommentDraft(b.internalIssueId).comment(),f=b.editIssueService.editableIssue(b.internalIssueId),z(r,b.bannedWordsChecker.check(e.value,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",f.componentId),2);if(r.nextAddress!=3)return g=r.yieldResult,g?z(r,b.issueCommentDialogsService.submitCommentBox(String(f.componentId),
b.internalIssueId,e,d),3):((k=a)==null||k.preventDefault(),(l=b.commentBox)==null||Imb(l),r.return());b.commentSubmitted.emit();b.bannedWordsChecker.reset();b.appEvents.recaptchaSubmitted.next();ce(r)})};s0.prototype.showNewContentJudgementDialog=function(){var a=this;return y(function(b){return z(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};
da.Object.defineProperties(s0.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}},placeholderText:{configurable:!0,enumerable:!0,set:function(a){a&&this.placeholderText$.next(a)}},componentIdString:{configurable:!0,enumerable:!0,get:function(){return String(this.editIssueService.editableIssue(this.internalIssueId).componentId)}}});s0.\u0275fac=function(a){return new (a||s0)};
s0.\u0275cmp=D({type:s0,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&hg(q0,5);if(a&2){var c;lg(c=mg())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId",showActionsAfterPreview:"showActionsAfterPreview",showCommentButton:"showCommentButton",placeholderText:"placeholderText"},outputs:{commentSubmitted:"commentSubmitted"},standalone:!1,features:[Gg([SW])],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&&(cg(cLd),F(0,qCb,1,1),T(1,"async"),E(2,sCb,1,1,"ng-template",null,0,Mg));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[MU,q0,cU,Kx,mU,fL,aI,tY,r0,NW,Lx],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 dLd=function(){};dLd.\u0275fac=function(a){return new (a||dLd)};dLd.\u0275mod=cf({type:dLd});dLd.\u0275inj=Hc({providers:[{provide:CId,useFactory:function(){return new zId}}]});var eLd=function(){};eLd.\u0275fac=function(a){return new (a||eLd)};eLd.\u0275mod=cf({type:eLd});eLd.\u0275inj=Hc({imports:[Yx,dLd]});var t0=function(){};t0.\u0275fac=function(a){return new (a||t0)};t0.\u0275mod=cf({type:t0});t0.\u0275inj=Hc({providers:[{provide:BId,useFactory:e0}],imports:[RO,iB,pK,eLd,gV]});var fLd=function(){};fLd.\u0275fac=function(a){return new (a||fLd)};fLd.\u0275mod=cf({type:fLd});fLd.\u0275inj=Hc({imports:[RO,iB,pK]});var u0=function(){};u0.\u0275fac=function(a){return new (a||u0)};u0.\u0275mod=cf({type:u0});u0.\u0275inj=Hc({imports:[RO,F_,DU,pK,NU,zU,t0,iB,fLd]});var v0=function(){};v0.\u0275fac=function(a){return new (a||v0)};v0.\u0275mod=cf({type:v0});v0.\u0275inj=Hc({imports:[RO,iB,PJ,pK,DU]});var w0=function(){};w0.\u0275fac=function(a){return new (a||w0)};w0.\u0275mod=cf({type:w0});w0.\u0275inj=Hc({imports:[v0,RO,G_,DU,iB,MJ,PJ,pK,xX,gL]});var x0=function(){};x0.\u0275fac=function(a){return new (a||x0)};x0.\u0275mod=cf({type:x0});x0.\u0275inj=Hc({imports:[RO,nX,pK,MK,w0]});var y0=function(){};y0.\u0275fac=function(a){return new (a||y0)};y0.\u0275mod=cf({type:y0});y0.\u0275inj=Hc({});var z0=function(){};z0.\u0275fac=function(a){return new (a||z0)};z0.\u0275mod=cf({type:z0});z0.\u0275inj=Hc({imports:[NU,u0,zU,RO,pX,xE,nU,iB,gL,y0,x0,yX]});var gLd=["addLink"],hLd=["peopleKitDiv"],iLd=[Object.assign({},HCb("start","bottom"),ICb("start","top"),{offsetY:8}),Object.assign({},HCb("center","bottom"),ICb("center","top"),{offsetY:8}),Object.assign({},HCb("end","bottom"),ICb("end","top"),{offsetY:8}),Object.assign({},HCb("start","top"),ICb("start","bottom"),{offsetY:-8}),Object.assign({},HCb("end","top"),ICb("end","bottom"),{offsetY:-8})],A0=function(){var a=this;this.activeSession=p(qu);this.principalTypesFridge=p(CQ);this.issuePermissionService=
p(WQ);this.issueDetailsBrain=p(UQ);this.autocompleteConfigService=p(HW);this.title=this.name="";this.values=null;this.iconName=this.collectionHovercardDescription=this.removeSelfActionLongDescription=this.removeSelfActionDescription=this.includeSelfActionLongDescription=this.includeSelfActionDescription="";this.inputValidator=null;this.checkAccessLimits=!1;this.overlayPosition=iLd;this.valueChange=new XP;this.userInclusionToggle=new XP;this.toggleAccessLimits=new XP;this.teamId$=this.issueDetailsBrain.teamId$;
this.ListFieldType=xud;this.providedValues$=new wf(1);this.groups$=this.providedValues$.pipe(Af(function(b){return a.extractGroups(b)}),zf(new Set));this.OVERLAY_POSITION_LIST=iLd;this.newlySelectedUsersString="";this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new HK,{position:[N8c]});this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.enableTeamAnnotations=this.activeSession.isInternalSession()};h=A0.prototype;
h.extractGroups=function(a){var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(A(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};h.removeItem=function(a){if(this.values){var b=[].concat(q(this.values));b.splice(a,1);this.valueChange.emit({editField:null,newUsers:b})}};h.getUser=function(a){if(!this.users||!this.values)return{emailAddress:""};a=this.values.indexOf(a);return a===-1?{emailAddress:""}:this.users[a]};
h.closeAddPopup=function(a){var b,c=m((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=m((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};h.handleAddItems=function(a){this.closeAddPopup(!0);this.addItems(a)};
h.addItems=function(a){if(a){var b=[];this.values=this.values||[];a=m(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(q(this.values),q(b)),this.valueChange.emit({editField:null,newUsers:this.values}))}};A0.\u0275fac=function(a){return new (a||A0)};
A0.\u0275cmp=D({type:A0,selectors:[["b-multi-user-control"]],viewQuery:function(a,b){a&1&&(hg(gLd,5),hg(aH,5),hg(aB,5),hg(hLd,5));if(a&2){var c;lg(c=mg())&&(b.addLinkEl=c.first);lg(c=mg())&&(b.menuTriggers=c);lg(c=mg())&&(b.popupTriggers=c);lg(c=mg())&&(b.peopleKitDiv=c)}},inputs:{name:"name",title:"title",values:"values",users:"users",includeSelfActionDescription:"includeSelfActionDescription",includeSelfActionLongDescription:"includeSelfActionLongDescription",removeSelfActionDescription:"removeSelfActionDescription",
removeSelfActionLongDescription:"removeSelfActionLongDescription",collectionHovercardDescription:"collectionHovercardDescription",isSaving:"isSaving",iconName:"iconName",isCurrentUserInCollection:"isCurrentUserInCollection",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",overlayPosition:"overlayPosition"},outputs:{valueChange:"valueChange",userInclusionToggle:"userInclusionToggle",toggleAccessLimits:"toggleAccessLimits"},
standalone:!1,decls:25,vars:17,consts:[["listActions",""],["textPopup",""],["addLink",""],["hovercard","onedevHovercard"],["removeButton",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-issue-metadata-field-inner"],[1,"bv2-editable-title"],[1,"list-field-content"],[3,"isExpanded","iconName","hasCompactTitleBar","ariaLabel","title"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,
"bv2-field-user-action-footer"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],[4,"ngTemplateOutlet"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","href","https://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank",1,"primary"],[1,"value-action"],["tabindex",
"0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[3,"onAddItems","onCancel","actionName","inputValidator","isAllowedToEditCollection","title"],[1,"bv2-issue-metadata-list-item","list-field-user-container"],[3,"user","email","teamId","enableSmallChip","enableGroupIcon"],["type","button","aria-label","Open issue access dialog.",1,"unstyled",
"keep-focus-ring",3,"disabled"],["name","group_24px","size","small",1,"group-icon"],[3,"email"],["type","button","aria-label","Open issue access dialog.",1,"unstyled","keep-focus-ring",3,"click","disabled"],["size","small","name","edit_24px",1,"issue-metadata-field-edit-icon"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"matTooltip"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","matTooltip"]],template:function(a,b){a&1&&(E(0,wCb,
2,1,"ng-template",null,0,Mg)(2,xCb,3,4,"ng-template",null,1,Mg),K(4,"div",5)(5,"div",6)(6,"div",7)(7,"label"),Q(8),L()(),K(9,"div",8)(10,"collapsible-panel",9),Of(11,ECb,7,4,"div",10,Mf),L(),K(13,"div",11,2),F(15,FCb,2,8,"button",12),E(16,GCb,1,0,"ng-container",13),L()()()(),K(17,"onedev-hovercard",null,3)(19,"div",14)(20,"div",15)(21,"span",16),Q(22),K(23,"a",17),Q(24,"Learn more."),L()()()()());if(a&2){a=qg(1);var c=qg(18);B(4);I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",
b.USER_FIELD_HOVERCARD_CONFIG);B(4);S(" ",b.title," ");B(2);I("ariaLabel",poa("",b.title,", ",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("title",Fg("",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("isExpanded",!0)("iconName",b.iconName)("hasCompactTitleBar",!0);B();Pf(b.values);B(4);G(b.isAllowedToEditCollection?15:-1);B();I("ngTemplateOutlet",a);B(6);S(" ",b.collectionHovercardDescription,
" ")}},dependencies:[Kx,DK,LK,dT,oK,iA,gB,cB,FV,hV,pT,aB,YA,XA,A_,Lx],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 jLd=function(){};jLd.\u0275fac=function(a){return new (a||jLd)};jLd.\u0275mod=cf({type:jLd});jLd.\u0275inj=Hc({imports:[Yx]});var kLd=function(){};kLd.\u0275fac=function(a){return new (a||kLd)};kLd.\u0275mod=cf({type:kLd});kLd.\u0275inj=Hc({imports:[Yx,GX]});var B0=function(){};B0.\u0275fac=function(a){return new (a||B0)};B0.\u0275mod=cf({type:B0});B0.\u0275inj=Hc({imports:[jLd,Yx,GX,kLd]});var lLd=function(){};lLd.\u0275fac=function(a){return new (a||lLd)};lLd.\u0275mod=cf({type:lLd});lLd.\u0275inj=Hc({});var mLd=function(){};mLd.\u0275fac=function(a){return new (a||mLd)};mLd.\u0275mod=cf({type:mLd});mLd.\u0275inj=Hc({imports:[Yx,LI,GX,OV,Zy,lLd]});var C0=function(){};C0.\u0275fac=function(a){return new (a||C0)};C0.\u0275mod=cf({type:C0});C0.\u0275inj=Hc({imports:[TU,RO,QV,B0,MK,fU,gV,pK,iB,GV,mLd,iV,DU,IV,HV,Q_]});var D0=function(){};D0.\u0275fac=function(a){return new (a||D0)};D0.\u0275mod=cf({type:D0});D0.\u0275inj=Hc({imports:[TU,gV,RO,rV,B0,nU,fU,gV,iV,M_]});var nLd=function(){};nLd.\u0275fac=function(a){return new (a||nLd)};nLd.\u0275mod=cf({type:nLd});nLd.\u0275inj=Hc({imports:[RO,F_,G_,x_,rV,xE,iB,gL,PJ,wU,pK,nU,K_,I_,MK,gU,BX,QV,EU,C0,Q_,z0,D0,bU,iV,YA]});Doa(JY,[Dy,AY,pV,gB,cB,oK,iA,mU,PV,A0,s0,l_,p_,y_,C_,B_],[Lx]);var oLd=function(){};oLd.\u0275fac=function(a){return new (a||oLd)};oLd.\u0275mod=cf({type:oLd});oLd.\u0275inj=Hc({});var pLd=function(){};pLd.\u0275fac=function(a){return new (a||pLd)};pLd.\u0275mod=cf({type:pLd});pLd.\u0275inj=Hc({imports:[RO]});var E0=function(){};E0.\u0275fac=function(a){return new (a||E0)};E0.\u0275mod=cf({type:E0});E0.\u0275inj=Hc({imports:[RO,iB,Mz]});var F0=function(){};F0.\u0275fac=function(a){return new (a||F0)};F0.\u0275mod=cf({type:F0});F0.\u0275inj=Hc({imports:[Zy,hZ,Yx,mZ,LI,Fy,Qz,kZ]});var qLd=function(){};qLd.\u0275fac=function(a){return new (a||qLd)};qLd.\u0275mod=cf({type:qLd});qLd.\u0275inj=Hc({imports:[RO,FZ,zU,xV,E0,DU,iB,MJ,pK,MK,F0,iV,bU,oX]});var G0=function(){};G0.\u0275fac=function(a){return new (a||G0)};G0.\u0275mod=cf({type:G0});G0.\u0275inj=Hc({imports:[RO,PJ,iB,MJ,bK,OD,iK,pK,OX,EU,gL,xE,oX]});var H0=function(){};H0.\u0275fac=function(a){return new (a||H0)};H0.\u0275mod=cf({type:H0});H0.\u0275inj=Hc({imports:[qLd,oLd,RO,FZ,pLd,DU,iB,pK,G0,oX]});var rLd=Promise;var sLd=function(a){this.channelPromise=a};sLd.prototype.send=function(a,b,c){this.channelPromise.then(function(d){d.send(a,b,c)})};var tLd=function(a,b){this.data=a;this.channel=b};var uLd=function(a){this.port_=a};uLd.prototype.send=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;vLd(d.port1,b);this.port_.postMessage(a,[d.port2].concat(c))};var wLd=function(a,b){vLd(a,b);return new uLd(a)},vLd=function(a,b){b&&(a.onmessage=function(c){b(new tLd(c.data,wLd(c.ports[0])))})};var xLd=function(a){this.verifier_=a};xLd.prototype.verify=function(a){return this.verifier_(a)};var yLd=function(a){var b=Object.create(null);(typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("fg");b[c]=!0});return function(c){return b[c]===!0}};var ALd=function(a){var b=a.destination;var c=a.iframe;var d=a.origin;var e=a.channelName===void 0?"ZNWN1d":a.channelName;var f=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return zLd({destination:b,getSource:function(){return c.contentWindow},originVerifier:d instanceof xLd?d:typeof d==="function"?new xLd(d):new xLd(yLd(d)),channelName:e,onMessage:f,onEstablished:a})},zLd=function(a){var b=a.destination;var c=a.getSource;var d=a.originVerifier;var e=a.token===
void 0?void 0:a.token;var f=a.channelName;var g=a.onMessage===void 0?void 0:a.onMessage;var k=a.onEstablished===void 0?void 0:a.onEstablished;return new sLd(new rLd(function(l,r){var w=function(x){x.source&&x.source===c()&&d.verify(x.origin)&&(x.data.n||x.data)===f&&(b.removeEventListener("message",w,!1),e&&x.data.t!==e?r(Error("gg`"+f+"`"+e+"`"+x.data.t)):(l(wLd(x.ports[0],g)),k&&k(x)))};b.addEventListener("message",w,!1)}))};var BLd=kw(["https://duckie.corp.google.com"]),CLd=["duckieIframe"],DLd=Fh(BLd),I0=function(){Z.apply(this,arguments);this.duckieUrl=DLd;this.llmChatService=p(xZ);this.darkModeService=p(GW);this.origin=window.location.origin};Y(I0,Z);I0.\u0275dir=Z.\u0275dir;
I0.prototype.ngAfterViewInit=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return csa(a.iframe.nativeElement,cra(a.duckieUrl,new Map([["origin",a.origin]]))),a.channel=ALd({channelName:"duckie-web-iframe",destination:window,iframe:a.iframe.nativeElement,origin:a.duckieUrl.toString()}),b=a,c=b.sendAppProvidedContext,z(d,ie(a.llmChatService.contextValuesForDuckieRag$),2);c.call(b,d.yieldResult);a.darkModeService.clientDarkmode$.pipe(Bf(a.destroyed$)).subscribe(function(e){var f,
g={};(f=a.channel)==null||f.send((g.IsDarkMode=e,g))});ce(d)})};I0.prototype.sendAppProvidedContext=function(a){var b,c={};(b=this.channel)==null||b.send((c.AppProvidedContext=WEc(a),c))};I0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(I0)))(b||I0)}}();
I0.\u0275cmp=D({type:I0,selectors:[["b-duckie-chat"]],viewQuery:function(a,b){a&1&&hg(CLd,5);if(a&2){var c;lg(c=mg())&&(b.iframe=c.first)}},standalone:!1,features:[Gf],decls:2,vars:0,consts:[["duckieIframe",""],["allow","clipboard-write","frameborder","0",1,"duckie-iframe-element"]],template:function(a){a&1&&M(0,"iframe",1,0)},styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.duckie-iframe-element[_ngcontent-%COMP%]{height:100%;width:100%}"],changeDetection:0});var ELd=function(){};ELd.\u0275fac=function(a){return new (a||ELd)};ELd.\u0275mod=cf({type:ELd});ELd.\u0275inj=Hc({imports:[RO]});var FLd=function(){var a=this;this.useExperimentalOrcasAgent=!1;this.isDarkMode=ng.apply(null,[!1].concat(q([])));this.query=ng.apply(null,[""].concat(q([])));this.isLoading=ng.apply(null,[!0].concat(q([])));this.destroyRef=p(Ee);this.darkModeService=p(GW);this.llmChatService=p(xZ);this.contextValues$=this.llmChatService.contextValuesForDuckieRag$;p(Cy).setDefaultFontSetClass("material-icons");this.darkModeService.clientDarkmode$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.isDarkMode.set(b)})};
FLd.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.isLoading.set(!1)},250)};FLd.\u0275fac=function(a){return new (a||FLd)};
FLd.\u0275cmp=D({type:FLd,selectors:[["gpp-chat"]],standalone:!1,decls:1,vars:1,consts:[[3,"useExperimentalOrcasAgent","isDarkMode","query","contextValues"]],template:function(a,b){a&1&&F(0,JCb,2,6,"gpp-agent-chat",0);a&2&&G(b.isLoading()?-1:0)},dependencies:[vM,Lx],styles:['@import url(https://fonts.googleapis.com/icon?family=Material+Icons);@import url(https://fonts.googleapis.com/css2?family=Google+Symbols);[_nghost-%COMP%]     .full-width{width:100%}[_nghost-%COMP%]     .full-height{height:100%}[_nghost-%COMP%]     body .bg-page-bg{background-color:var(--page-bg)}[_nghost-%COMP%]     body .bg-surface-default{background-color:var(--surface-default)}[_nghost-%COMP%]     body .bg-surface-container{background-color:var(--surface-container)}[_nghost-%COMP%]     body .bg-primary-container{background-color:var(--primary-container)}[_nghost-%COMP%]     .bordered{border:1px solid var(--hairline)}[_nghost-%COMP%]     .border-bottom{border-bottom:1px solid var(--hairline)}[_nghost-%COMP%]     .border-top{border-top:1px solid var(--hairline)}[_nghost-%COMP%]     body .text-secondary{color:var(--text-secondary)}[_nghost-%COMP%]     body .text-high-contrast{color:var(--text-high-contrast)}[_nghost-%COMP%]     .italic{font-style:italic}[_nghost-%COMP%]     .bold{font-weight:700}[_nghost-%COMP%]     .medium{font-weight:500}[_nghost-%COMP%]     .font-google-sans{font-family:Google Sans,sans-serif}[_nghost-%COMP%]     .font-roboto{font-family:Roboto,sans-serif}[_nghost-%COMP%]     .type-s{font-size:calc(var(--base-px, 1rem)*13)}[_nghost-%COMP%]     .type-xs{font-size:calc(var(--base-px, 1rem)*12)}[_nghost-%COMP%]     .text-center{text-align:center}[_nghost-%COMP%]     .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}[_nghost-%COMP%]     .font-google-symbols{font-family:Google Symbols}[_nghost-%COMP%]     .rounded{border-radius:16px}[_nghost-%COMP%]     .rounded-full{border-radius:10000px}[_nghost-%COMP%]     .rounded-s{border-radius:8px}[_nghost-%COMP%]     .rounded-xs{border-radius:4px}[_nghost-%COMP%]     .flex-column{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%]     .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}[_nghost-%COMP%]     .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}[_nghost-%COMP%]     .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%]     .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}[_nghost-%COMP%]     .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}[_nghost-%COMP%]     .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]     .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[_nghost-%COMP%]     .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%]     .gap{gap:16px}[_nghost-%COMP%]     .gap-s{gap:8px}[_nghost-%COMP%]     .gap-xs{gap:4px}[_nghost-%COMP%]     .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%]     .margin{margin:16px}[_nghost-%COMP%]     .margin-top{margin-top:16px}[_nghost-%COMP%]     .margin-s-top{margin-top:8px}[_nghost-%COMP%]     .margin-xs-top{margin-top:4px}[_nghost-%COMP%]     .margin-bottom{margin-bottom:16px}[_nghost-%COMP%]     .margin-s-bottom{margin-bottom:8px}[_nghost-%COMP%]     .margin-xs-bottom{margin-bottom:4px}[_nghost-%COMP%]     .margin-left{margin-left:16px}[_nghost-%COMP%]     .margin-s-left{margin-left:8px}[_nghost-%COMP%]     .margin-xs-left{margin-left:4px}[_nghost-%COMP%]     .margin-right{margin-right:16px}[_nghost-%COMP%]     .margin-s-right{margin-right:8px}[_nghost-%COMP%]     .margin-xs-right{margin-right:4px}[_nghost-%COMP%]     .margin-y{margin-top:16px;margin-bottom:16px}[_nghost-%COMP%]     .margin-s-y{margin-top:8px;margin-bottom:8px}[_nghost-%COMP%]     .margin-xs-y{margin-top:4px;margin-bottom:4px}[_nghost-%COMP%]     .margin-x{margin-left:16px;margin-right:16px}[_nghost-%COMP%]     .margin-s-x{margin-left:8px;margin-right:8px}[_nghost-%COMP%]     .margin-auto-y{margin-top:auto;margin-bottom:auto}[_nghost-%COMP%]     .margin-auto-x{margin-left:auto;margin-right:auto}[_nghost-%COMP%]     .padded{padding:16px}[_nghost-%COMP%]     .padded-s{padding:8px}[_nghost-%COMP%]     .padded-xs{padding:4px}[_nghost-%COMP%]     .padded-xxs{padding:2px}[_nghost-%COMP%]     .padded-top{padding-top:16px}[_nghost-%COMP%]     .padded-s-top{padding-top:8px}[_nghost-%COMP%]     .padded-xs-top{padding-top:4px}[_nghost-%COMP%]     .padded-s-y{padding-bottom:8px;padding-top:8px}[_nghost-%COMP%]     .padded-xs-x{padding-left:4px;padding-right:4px}[_nghost-%COMP%]     .padded-s-x{padding-left:8px;padding-right:8px}[_nghost-%COMP%]     .padded-m-left{padding-left:24px}[_nghost-%COMP%]     .padded-left{padding-left:16px}[_nghost-%COMP%]     .padded-s-left{padding-left:8px}[_nghost-%COMP%]     .padded-xs-left{padding-left:4px}[_nghost-%COMP%]     .padded-right{padding-right:16px}[_nghost-%COMP%]     .padded-s-right{padding-right:8px}[_nghost-%COMP%]     .padded-xs-bottom{padding-bottom:4px}[_nghost-%COMP%]     .padded-s-bottom{padding-bottom:8px}[_nghost-%COMP%]     .width-almost-full{width:90%}[_nghost-%COMP%]     body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}[_nghost-%COMP%]     body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}[_nghost-%COMP%]     body .mat-icon-button.small{width:24px;height:24px;line-height:24px}[_nghost-%COMP%]     body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}[_nghost-%COMP%]     body .icon-s, [_nghost-%COMP%]     body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}[_nghost-%COMP%]     body .icon-m, [_nghost-%COMP%]     body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}[_nghost-%COMP%]     .citation-chip{height:18px;margin-left:6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[_nghost-%COMP%]     .citation-chip span{font-family:Google Sans;font-size:calc(var(--base-px, 1rem)*11);font-weight:500;margin-right:10px}[_nghost-%COMP%]     .citation-chip mat-icon{font-size:15px;height:15px;width:15px}[_nghost-%COMP%]     .dark-mode, [_nghost-%COMP%]     .light-mode, [_nghost-%COMP%]     :root{--gm3-border-radius:16px;--mat-app-elevation-shadow-level-8:0 5px 5px -3px var(--elevation),0 8px 10px 1px var(--elevation),0 3px 14px 2px var(--elevation);--mat-fab-extended-container-shape:var(--gm3-border-radius);--mat-button-filled-container-shape:var(--gm3-border-radius);--mat-button-outlined-container-shape:var(--gm3-border-radius);--mat-button-protected-container-shape:var(--gm3-border-radius);--mat-button-text-container-shape:var(--gm3-border-radius);--mat-fab-extended-container-height:56px;--mat-fab-disabled-state-container-color:var(--button-disabled-bg);--mat-fab-disabled-state-foreground-color:var(--button-disabled-text);--mat-form-field-outlined-label-text-color:var(--text-default);--mat-form-field-outlined-input-text-color:var(--text-default);--mat-form-field-outlined-outline-color:var(--hairline);--mat-form-field-outlined-focus-outline-color:var(--primary-default);--mat-form-field-outlined-focus-label-text-color:var(--primary-default);--mat-form-field-outlined-hover-outline-color:var(--text-high-contrast);--mat-form-field-outlined-hover-label-text-color:var(--text-high-contrast)}[_nghost-%COMP%]     .dark-mode .gmat-mdc-list, [_nghost-%COMP%]     .light-mode .gmat-mdc-list, [_nghost-%COMP%]     :root .gmat-mdc-list{--mat-list-list-item-disabled-label-text-color:var(--text-secondary);--mat-list-list-item-label-text-font:Google Sans,Roboto;--mat-list-list-item-label-text-weight:500}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab{background-color:var(--primary-container);color:var(--on-primary-container);box-shadow:none}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab:focus, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab:hover, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill:focus, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill:hover{box-shadow:0 0 8px 0 var(--elevation)}[_nghost-%COMP%]     .cdk-overlay-container .mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-below{pointer-events:none}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base{white-space:nowrap}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base .mat-mdc-button-touch-target{width:100%;height:100%}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base.mat-mdc-icon-button{padding:0}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base.mat-mdc-icon-button .mat-icon{vertical-align:middle}[_nghost-%COMP%]     .google-material-icons{font-family:Google Symbols}[_nghost-%COMP%]     .mat-icon{height:24rem;width:24rem}[_nghost-%COMP%]     .material-icons{font-size:24rem}[_nghost-%COMP%]     .mat-tooltip:not(false){line-height:120%;font-size:10rem}[_nghost-%COMP%]     .mat-button-toggle.mat-button-toggle{--mat-button-toggle-legacy-label-text-size:16rem}[_nghost-%COMP%]     .mat-slide-toggle .mat-slide-toggle-bar{background-color:var(--slider-off);box-shadow:inset 0 0 3px var(--elevation)}[_nghost-%COMP%]     .mat-slide-toggle.mat-accent.mat-checked .mat-slide-toggle-bar, [_nghost-%COMP%]     .mat-slide-toggle.mat-checked .mat-slide-toggle-bar, [_nghost-%COMP%]     .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:var(--slider-toggle-track)}[_nghost-%COMP%]     .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:var(--slider-toggle-track-warn)}[_nghost-%COMP%]     .mat-form-field-appearance-fill .mat-form-field-flex{background-color:var(--input-field-bg)}[_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-icon, [_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-icon-button{color:var(--text-disabled)}[_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{color:var(--text-disabled);background-color:var(--input-field-disabled-bg)}[_nghost-%COMP%]     .mat-icon-button:not([color]){color:var(--icon)}[_nghost-%COMP%]     .mat-icon-button[disabled=true]{color:var(--button-disabled-text)}[_nghost-%COMP%]     .mat-icon-button:not([disabled]):hover .mat-button-focus-overlay{opacity:.08}[_nghost-%COMP%]     .gmat-button .mat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not(boost-specificity), [_nghost-%COMP%]     .mat-button:not(boost-specificity), [_nghost-%COMP%]     .mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .mat-stroked-button:not(boost-specificity){padding:0 16px;line-height:28px}[_nghost-%COMP%]     .gmat-button .mat-flat-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-raised-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-flat-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-raised-button:not([disabled]):not(false){color:var(--text-inverse)}[_nghost-%COMP%]     .gmat-button .mat-stroked-button.mat-warn:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button.mat-warn:not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button.mat-warn:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button.mat-warn:not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not(false){border-color:var(--hairline)}[_nghost-%COMP%]     .gmat-button .mat-flat-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button .mat-raised-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button.mat-flat-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button.mat-raised-button.mat-warn:not([disabled]){color:var(--text-inverse)}[_nghost-%COMP%]     .mat-slider-horizontal .mat-slider-ticks{background-image:-webkit-repeating-linear-gradient(left,var(--base-fg),var(--base-fg) 2px,transparent 0,transparent);background-image:repeating-linear-gradient(to right,var(--base-fg),var(--base-fg) 2px,transparent 0,transparent)}[_nghost-%COMP%]     .mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled .mat-tab-label-content{opacity:.4}[_nghost-%COMP%]     .gmat-tabs.mat-primary .mat-tab-label.mat-tab-label-active, [_nghost-%COMP%]     .gmat-tabs.mat-primary .mat-tab-link.mat-tab-label-active{color:var(--primary-default)}[_nghost-%COMP%]     .mat-button-toggle-group{--mat-button-toggle-legacy-text-color:var(--text-default);--mat-button-toggle-legacy-disabled-state-text-color:var(--button-disabled-text);--mat-button-toggle-legacy-disabled-state-background-color:transparent;--mat-button-toggle-legacy-disabled-selected-state-background-color:var(--hover);--mat-button-toggle-legacy-selected-state-background-color:var(--button-selected);--mat-button-toggle-legacy-selected-state-text-color:var(--text-default);--mat-button-toggle-legacy-state-layer-color:var(--button-focused-bg);--mat-button-toggle-text-color:var(--text-default);--mat-button-toggle-background-color:var(--surface-default);--mat-button-toggle-disabled-state-text-color:var(--button-disabled-text);--mat-button-toggle-disabled-state-background-color:transparent;--mat-button-toggle-disabled-selected-state-background-color:var(--hover);--mat-button-toggle-disabled-selected-state-text-color:var(--button-disabled-text);--mat-button-toggle-selected-state-background-color:var(--button-selected);--mat-button-toggle-selected-state-text-color:var(--text-default);--mat-button-toggle-state-layer-color:var(--button-focused-bg);--mat-button-toggle-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:none}[_nghost-%COMP%]     .mat-button-toggle-group-appearance-standard{--elevation:transparent}[_nghost-%COMP%]     .mat-button-toggle-group.mat-button-toggle-group:not([class*=mat-elevation-z]), [_nghost-%COMP%]     .mat-button-toggle-standalone.mat-button-toggle-standalone:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px var(--elevation),0 2px 2px 0 var(--elevation),0 1px 5px 0 var(--elevation)}[_nghost-%COMP%]     .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), [_nghost-%COMP%]     .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), [_nghost-%COMP%]     .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--button-selected)}[_nghost-%COMP%]     .mat-snack-bar-container{background:var(--snackbar-background);color:var(--snackbar-text)}[_nghost-%COMP%]     .mat-simple-snackbar-action{color:var(--snackbar-action-text)}[_nghost-%COMP%]     .mat-tooltip:not(boost-specificity){background:var(--tooltip-bg);color:var(--text-inverse)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-background{fill:var(--primary-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-buffer{background-color:var(--page-bg)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-buffer:after{content:"";display:block;height:8em;background:var(--primary-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-background{fill:var(--warn-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-buffer{background-color:var(--page-bg)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-buffer:after{content:"";display:block;height:8em;background:var(--warn-default);opacity:.4}[_nghost-%COMP%]     a, [_nghost-%COMP%]     a:visited{color:var(--primary-default);text-decoration:none}[_nghost-%COMP%]     .gmat-elevation-z0, [_nghost-%COMP%]     .mat-elevation-z0{border:1px solid var(--hairline);box-shadow:0 0 0 0 var(--elevation),0 0 0 0 var(--elevation);--mat-app-elevation-shadow-level-0:0px 0px 0px 0px var(--elevation),0px 0px 0px 0px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z1, [_nghost-%COMP%]     .mat-elevation-z1{box-shadow:0 1px 2px 0 var(--elevation),0 1px 3px 1px var(--elevation);--mat-app-elevation-shadow-level-1:0px 1px 2px 0px var(--elevation),0px 1px 3px 1px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z2, [_nghost-%COMP%]     .mat-elevation-z2{box-shadow:0 1px 2px 0 var(--elevation),0 2px 6px 2px var(--elevation);--mat-app-elevation-shadow-level-2:0px 1px 2px 0px var(--elevation),0px 2px 6px 2px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z3, [_nghost-%COMP%]     .mat-elevation-z3{box-shadow:0 1px 3px 0 var(--elevation),0 4px 8px 3px var(--elevation);--mat-app-elevation-shadow-level-3:0px 1px 3px 0px var(--elevation),0px 4px 8px 3px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z4, [_nghost-%COMP%]     .mat-elevation-z4{box-shadow:0 2px 3px 0 var(--elevation),0 6px 10px 4px var(--elevation);--mat-app-elevation-shadow-level-4:0px 2px 3px 0px var(--elevation),0px 6px 10px 4px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z5, [_nghost-%COMP%]     .mat-elevation-z5{box-shadow:0 4px 4px 0 var(--elevation),0 8px 12px 6px var(--elevation);--mat-app-elevation-shadow-level-5:0px 4px 4px 0px var(--elevation),0px 8px 12px 6px var(--elevation)}[_nghost-%COMP%]     .cdk-overlay-backdrop.cdk-overlay-dark-backdrop{background:var(--overlay-backdrop)}[_nghost-%COMP%]     .mat-stepper-horizontal, [_nghost-%COMP%]     .mat-stepper-vertical{--mat-stepper-header-icon-foreground-color:var(--text-inverse);--mat-stepper-header-selected-state-icon-background-color:var(--primary-default);--mat-stepper-header-selected-state-icon-foreground-color:var(--text-inverse);--mat-stepper-header-done-state-icon-background-color:var(--primary-default);--mat-stepper-header-done-state-icon-foreground-color:var(--text-inverse);--mat-stepper-header-edit-state-icon-background-color:var(--primary-default);--mat-stepper-header-edit-state-icon-foreground-color:var(--text-inverse);--mat-stepper-container-color:var(--surface-default);--mat-stepper-line-color:var(--hairline);--mat-stepper-header-hover-state-layer-color:var(--hover);--mat-stepper-header-focus-state-layer-color:var(--hover);--mat-stepper-header-label-text-color:var(--text-secondary);--mat-stepper-header-optional-label-text-color:var(--text-secondary);--mat-stepper-header-selected-state-label-text-color:var(--text-default);--mat-stepper-header-error-state-label-text-color:var(--warn-default);--mat-stepper-header-icon-background-color:var(--text-secondary);--mat-stepper-header-error-state-icon-foreground-color:var(--warn-default);--mat-stepper-header-error-state-icon-background-color:transparent}[_nghost-%COMP%]     .mat-expansion-panel{--mat-expansion-container-background-color:var(--surface-default);--mat-expansion-container-text-color:var(--text-default);--mat-expansion-header-text-color:var(--text-default);--mat-expansion-header-description-color:var(--text-secondary);--mat-expansion-header-indicator-color:var(--text-secondary)}[_nghost-%COMP%]     .mat-expansion-panel.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px var(--elevation),0 2px 2px 0 var(--elevation),0 1px 5px 0 var(--elevation)}[_nghost-%COMP%]     .mat-drawer-container{--mat-sidenav-content-background-color:var(--page-bg);--mat-sidenav-content-text-color:var(--text-default);--mat-sidenav-container-background-color:var(--surface-default);--mat-sidenav-container-text-color:var(--text-default);--mat-sidenav-container-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-drawer-container .mat-drawer-backdrop.mat-drawer-shown{background-color:var(--surface-default);opacity:.6}[_nghost-%COMP%]     .mat-bottom-sheet-container{--mat-bottom-sheet-container-background-color:var(--surface-default);--mat-bottom-sheet-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-bottom-sheet-container.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px var(--elevation),0 16px 24px 2px var(--elevation),0 6px 30px 5px var(--elevation)}[_nghost-%COMP%]     .mat-toolbar{--mat-toolbar-container-background-color:var(--app-bar-bg);--mat-toolbar-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-badge-content{--mat-badge-background-color:var(--primary-default);--mat-badge-text-color:var(--text-inverse)}[_nghost-%COMP%]     .mat-badge-warn .mat-badge-content{--mat-badge-background-color:var(--warn-default)}[_nghost-%COMP%]     .mat-divider{--mat-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-date-range-input{--mat-datepicker-range-input-separator-color:var(--text-default);--mat-datepicker-range-input-disabled-state-separator-color:var(--text-disabled);--mat-datepicker-range-input-disabled-state-text-color:var(--text-disabled)}[_nghost-%COMP%]     .mat-calendar{--mat-datepicker-calendar-date-text-color:var(--text-default);--mat-datepicker-calendar-period-button-text-color:var(--text-default);--mat-datepicker-calendar-period-button-icon-color:var(--icon);--mat-datepicker-calendar-navigation-button-icon-color:var(--icon);--mat-datepicker-calendar-header-text-color:var(--text-secondary);--mat-datepicker-calendar-body-label-text-color:var(--text-secondary);--mat-datepicker-calendar-date-today-outline-color:var(--hint-text);--mat-datepicker-calendar-date-today-disabled-state-outline-color:var(--text-disabled);--mat-datepicker-calendar-date-selected-state-background-color:var(--primary-default);--mat-datepicker-calendar-date-selected-state-text-color:var(--text-inverse);--mat-datepicker-calendar-date-today-selected-state-outline-color:var(--text-inverse);--mat-datepicker-calendar-date-focus-state-background-color:var(--button-selected);--mat-datepicker-calendar-date-hover-state-background-color:var(--button-selected);--mat-datepicker-calendar-header-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-datepicker-content{--mat-datepicker-calendar-container-background-color:var(--surface-default);--mat-datepicker-calendar-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-datepicker-popup .mat-datepicker-content{box-shadow:0 2px 4px -1px var(--elevation),0 4px 5px 0 var(--elevation),0 1px 10px 0 var(--elevation)}[_nghost-%COMP%]     .mat-datepicker-toggle{--mat-datepicker-toggle-icon-color:var(--icon);--mat-datepicker-toggle-active-state-icon-color:var(--primary-default)}[_nghost-%COMP%]     .mat-tree{--mat-tree-container-background-color:var(--surface-default);--mat-tree-node-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-pseudo-checkbox{--mat-pseudo-checkbox-full-selected-icon-color:var(--primary-default);--mat-pseudo-checkbox-full-selected-checkmark-color:var(--page-bg);--mat-pseudo-checkbox-full-unselected-icon-color:var(--text-secondary);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color:var(--page-bg);--mat-pseudo-checkbox-minimal-selected-checkmark-color:var(--primary-default)}[_nghost-%COMP%]     html{--base-px:1px}[_nghost-%COMP%]     .mat-icon{height:24px;width:24px}[_nghost-%COMP%]     .material-icons{font-size:24px}[_nghost-%COMP%]     .gpp-agent-container .container{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%]     .gpp-agent-container .container .gpp-agent-container .chat-container .container .reminder-blurb{padding:12px}[_nghost-%COMP%]     .gpp-agent-container .container>.onboarding, [_nghost-%COMP%]     .gpp-agent-container .container>.thread{box-shadow:none;margin:0;border:0 none}[_nghost-%COMP%]     .gpp-agent-container .container>.onboarding .onboarding-section, [_nghost-%COMP%]     .gpp-agent-container .container>.onboarding .thread-heading, [_nghost-%COMP%]     .gpp-agent-container .container>.thread .onboarding-section, [_nghost-%COMP%]     .gpp-agent-container .container>.thread .thread-heading{padding-left:0;padding-right:0}[_nghost-%COMP%]     .gpp-agent-container .container .use-compact-view.is-user{padding:8px 12px}[_nghost-%COMP%]     .gpp-agent-container .container .message-text.raw-text-only{-webkit-padding-after:0;padding-block-end:0}[_nghost-%COMP%]     .gpp-agent-container .container .message-actions{margin:0}[_nghost-%COMP%]{display:block;height:100%}gpp-agent-chat[_ngcontent-%COMP%]{display:block;height:100%}'],changeDetection:0});var J0=function(){xA.apply(this,arguments)};Y(J0,xA);
J0.prototype.navigate=function(a,b){var c=YEc(a),d=Object.assign({},this.state$.value.params),e=Object.assign({},this.state$.value.queryParams),f=this.state$.value.activeView;if(a.length>0){var g=a[0];if(typeof g==="string")if(g.includes("thread")&&a.length>1&&typeof a[1]==="string")d.id=a[1],f=2;else{if(g.includes("new")){if(this.state$.value.activeView===1)return Promise.resolve(!1);d={}}else g.includes("thread")&&a.length===1&&(d={});f=1}}if(b==null?0:b.queryParams){e=b.queryParamsHandling==="merge"?
Object.assign({},e,b.queryParams):Object.assign({},b.queryParams);for(var k in e)e[k]==null&&delete e[k]}this.events$.next(new hr(this.state$.value.params.id||0,c));this.state$.next({params:d,queryParams:e,activeView:f});this.events$.next(new Qj(this.state$.value.params.id||0,c,c));return Promise.resolve(!0)};var RMa=function(a,b,c){return a.navigate(["/thread",b],c)},XIc=function(a){return a.navigate(["/new"],void 0)};J0.prototype.getPrefix=function(){return""};
da.Object.defineProperties(J0.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.state$.pipe(A(function(a){return a.params}))}},queryParams:{configurable:!0,enumerable:!0,get:function(){return this.state$.pipe(A(function(a){return a.queryParams}))}},snapshot:{configurable:!0,enumerable:!0,get:function(){var a=this.state$.value;return{params:a.params,queryParams:a.queryParams}}},events:{configurable:!0,enumerable:!0,get:function(){return this.events$.asObservable()}}});
J0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(J0)))(b||J0)}}();J0.\u0275prov=Fc({token:J0,factory:J0.\u0275fac,providedIn:"root"});var K0=function(){};Y(K0,HJ);K0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(K0)))(b||K0)}}();K0.\u0275prov=Fc({token:K0,factory:K0.\u0275fac,providedIn:"root"});var L0=function(){cC.apply(this,arguments);this.lastDuckieResponse$=new Nj(void 0);this.currentThread$=new Nj(void 0);this.newThread$=new Nj(!1)};Y(L0,cC);L0.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};var fPc=function(a,b){return y(function(c){a.lastDuckieResponse$.next(b);ce(c)})},LOc=function(a,b){y(function(c){a.currentThread$.next(b);ce(c)})};L0.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(L0)))(b||L0)}}();
L0.\u0275prov=Fc({token:L0,factory:L0.\u0275fac,providedIn:"root"});var GLd=new fd("@ngrx/effects Internal Root Guard"),HLd=new fd("@ngrx/effects User Provided Effects"),TCb=new fd("@ngrx/effects Internal Root Effects"),ILd=new fd("@ngrx/effects Internal Root Effects Instances");new fd("@ngrx/effects Internal Feature Effects");new fd("@ngrx/effects Internal Feature Effects Instance Groups");var JLd=new fd("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:function(){return PCb}});var M0=function(a,b){sf.call(this);this.errorHandler=a;this.effectsErrorHandler=b};Y(M0,sf);M0.create=sf.create;M0.prototype.addEffects=function(a){this.next(a)};
var KLd=function(a){return a.pipe(pla(function(b){return b.constructor&&b.constructor.name!=="Object"&&b.constructor.name!=="Function"?Object.getPrototypeOf(b):b}),me(function(b){return b.pipe(pla(QCb))}),me(function(b){var c=b.pipe(mla(function(d){return RCb(a.errorHandler,a.effectsErrorHandler)(d)}),A(function(d){if(d.notification.kind==="N"){var e=d.notification.value;if(typeof e==="function"||!e||!e.type||typeof e.type!=="string"){var f=d.propertyName;var g=d.sourceInstance;var k=d.sourceName;
g=typeof g[f]==="function";f=k?'"'+k+"."+String(f)+(g?"()":"")+'"':'"'+String(f)+'()"';try{var l=JSON.stringify(e)}catch(r){l=e}a.errorHandler.handleError(Error("hg`"+f+"`"+l))}}return d.notification}),we(function(d){return d.kind==="N"&&d.value!=null}),ila());b=b.pipe(nf(1),we(OCb),A(function(d){return d.ngrxOnInitEffects()}));return ve(c,b)}))};M0.\u0275fac=function(a){return new (a||M0)($c(mx),$c(JLd))};M0.\u0275prov=Fc({token:M0,factory:M0.\u0275fac,providedIn:"root"});Vj("@ngrx/effects/init");var Bt=function(a,b){this.effectSources=a;this.store=b;this.effectsSubscription=null};Bt.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=KLd(this.effectSources).subscribe(this.store))};Bt.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)};Bt.\u0275fac=function(a){return new (a||Bt)($c(M0),$c(sF))};Bt.\u0275prov=Fc({token:Bt,factory:Bt.\u0275fac,providedIn:"root"});var N0=function(a,b,c,d){this.sources=a;b.start();b=m(d);for(d=b.next();!d.done;d=b.next())a.addEffects(d.value);c.dispatch({type:"@ngrx/effects/init"})};N0.prototype.addEffects=function(a){this.sources.addEffects(a)};N0.\u0275fac=function(a){return new (a||N0)($c(M0),$c(Bt),$c(sF),$c(ILd),$c(tF,8),$c(uF,8),$c(GLd,8))};N0.\u0275mod=cf({type:N0});N0.\u0275inj=Hc({});var LLd=function(){};LLd.\u0275fac=function(a){return new (a||LLd)};LLd.\u0275mod=cf({type:LLd});var MLd,NLd=[],OLd=NLd.concat,PLd,QLd={},O0=void 0;QLd=QLd===void 0?{}:QLd;O0=O0===void 0?{}:O0;
PLd=[{provide:rSc,useFactory:function(){p(sF,{optional:!0,skipSelf:!0});return"guarded"}},{provide:sSc,useValue:O0.initialState},{provide:tSc,useFactory:yza,deps:[sSc]},{provide:xSc,useValue:QLd},{provide:zSc,useExisting:QLd instanceof fd?QLd:xSc},{provide:wSc,deps:[xSc,[new $yc(zSc)]],useFactory:function(a){return a instanceof fd?p(a):a}},{provide:FSc,useValue:O0.metaReducers?O0.metaReducers:[]},{provide:HSc,deps:[GSc,FSc],useFactory:function(a,b){return a.concat(b)}},{provide:vSc,useValue:O0.reducerFactory?
O0.reducerFactory:hza},{provide:uSc,deps:[vSc,HSc],useFactory:kza},qSc,QSc,RSc,TSc,VSc,[{provide:JSc,useValue:O0.runtimeChecks},{provide:ISc,useFactory:function(a){return a},deps:[JSc]},{provide:uza,deps:[ISc],useFactory:function(){return{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}},{provide:GSc,multi:!0,deps:[uza],useFactory:function(a){var b=a.strictActionImmutability;
var c=a.strictStateImmutability;return function(d){return b||c?nza(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:GSc,multi:!0,deps:[uza],useFactory:function(a){var b=a.strictActionSerializability;var c=a.strictStateSerializability;return function(d){return b||c?sza(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:GSc,multi:!0,deps:[uza],useFactory:function(a){var b=a.strictActionWithinNgZone;
return function(c){return b?pza(c,{action:function(d){return b&&!d.type.startsWith("@ngrx")}}):c}}}],wza()];MLd={ngModule:tF,providers:OLd.call(NLd,q(PLd))};
LLd.\u0275inj=Hc({providers:[{provide:dFc,useValue:14},{provide:lA,useExisting:wM},{provide:cC,useExisting:L0},{provide:xA,useExisting:J0},{provide:HJ,useExisting:K0}],imports:[RO,vM,MLd,function(){var a=bd.apply(0,arguments).flat(),b=a.filter(LCb);return{ngModule:N0,providers:[b,{provide:TCb,useValue:[a]},{provide:GLd,useFactory:UCb},{provide:HLd,multi:!0,useValue:[]},{provide:ILd,useFactory:SCb,deps:[TCb,HLd]}]}}([])]});var RLd=function(){this.appEvents=p(PO);this.llmChatService=p(xZ);this.containerScrolled=!1;this.chatAgentName$=this.llmChatService.isGppLlmChatEnabled$.pipe(A(function(a){return a?"Production Agent":""}))};RLd.prototype.closeSidebar=function(){this.appEvents.closeIssueDetailsPageSidebar.next()};RLd.\u0275fac=function(a){return new (a||RLd)};
RLd.\u0275cmp=D({type:RLd,selectors:[["llm-chat"]],standalone:!1,decls:12,vars:8,consts:[[1,"flex-kids-x","space-between","padded-s-x","padded-s-top"],[1,"flex-kids-x","align-items-center"],[1,"heading-m"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip","Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[1,"gpp-chat-container"],[1,"duckie-chat-container"]],template:function(a,b){a&1&&(K(0,"header",0)(1,"div",1)(2,"span",2),Q(3),
T(4,"async"),L()(),K(5,"div",3)(6,"button",4),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",5),L()()(),F(8,VCb,2,0,"div",6),T(9,"async"),T(10,"async"),Lf(11,WCb,2,0,"div",7));a&2&&(B(3),yg(U(4,2,b.chatAgentName$)),B(5),G(U(9,4,b.llmChatService.isGppLlmChatEnabled$)?8:U(10,6,b.llmChatService.isDuckieChatEnabled$)?11:-1))},dependencies:[Dy,gB,eB,iA,FLd,I0,Lx],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;width:500px;padding:0 8px}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.duckie-chat-container[_ngcontent-%COMP%], .gpp-chat-container[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.gpp-chat-container[_ngcontent-%COMP%]{overflow:auto}.duckie-chat-container[_ngcontent-%COMP%]{overflow:hidden}"],
changeDetection:0});var P0=function(){};P0.\u0275fac=function(a){return new (a||P0)};P0.\u0275mod=cf({type:P0});P0.\u0275inj=Hc({imports:[RO,iB,jA,LLd,ELd]});var Q0=function(){};Q0.\u0275fac=function(a){return new (a||Q0)};Q0.\u0275mod=cf({type:Q0});Q0.\u0275inj=Hc({imports:[FZ,H0,gV,zU,RO,xV,MK,gU,P0,iB,pK,G0,bU,iV]});var SLd=function(){};SLd.\u0275fac=function(a){return new (a||SLd)};SLd.\u0275mod=cf({type:SLd});SLd.\u0275inj=Hc({imports:[RO]});var R0=function(){};R0.\u0275fac=function(a){return new (a||R0)};R0.\u0275mod=cf({type:R0});R0.\u0275inj=Hc({imports:[RO,pX]});var S0=function(){};S0.\u0275fac=function(a){return new (a||S0)};S0.\u0275mod=cf({type:S0});S0.\u0275inj=Hc({imports:[RO,MK,AX,xV,iV,R0,zU,gV]});var TLd=function(){};TLd.\u0275fac=function(a){return new (a||TLd)};TLd.\u0275mod=cf({type:TLd});TLd.\u0275inj=Hc({imports:[RO,zU]});var ULd=function(){};ULd.\u0275fac=function(a){return new (a||ULd)};ULd.\u0275mod=cf({type:ULd});ULd.\u0275inj=Hc({imports:[FZ,H0,zU,RO,xV,MK,S0,gU,G0,iV,pK,TLd,iB,SLd]});var T0=function(){};T0.\u0275fac=function(a){return new (a||T0)};T0.\u0275mod=cf({type:T0});T0.\u0275inj=Hc({imports:[RO,ULd,S0,iB,bU]});var U0=function(){};U0.\u0275fac=function(a){return new (a||U0)};U0.\u0275mod=cf({type:U0});U0.\u0275inj=Hc({imports:[RO,iB,OD,wU]});var V0=function(){};V0.\u0275fac=function(a){return new (a||V0)};V0.\u0275mod=cf({type:V0});V0.\u0275inj=Hc({imports:[RO,K_,I_,nU,iB]});var W0=function(){};W0.\u0275fac=function(a){return new (a||W0)};W0.\u0275mod=cf({type:W0});W0.\u0275inj=Hc({imports:[RO,iB,pK,OD,BE]});var VLd=function(){this.LIMIT_INCREMENT=32;this.limit=8;this.emails=[]};VLd.\u0275fac=function(a){return new (a||VLd)};
VLd.\u0275cmp=D({type:VLd,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&&(Of(0,XCb,1,1,"b-user-image",0,Nf),T(2,"slice"),F(3,ZCb,1,1));a&2&&(Pf(Coa(2,1,b.emails,b.limit)),B(3),G(b.emails.length-b.limit>0?3:-1))},dependencies:[bV,Xx],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 $Cb=function(){return[]},WLd=function(){this.makeCritiqueUrl=evb;this.submitted=[];this.pending=[]};WLd.\u0275fac=function(a){return new (a||WLd)};
WLd.\u0275cmp=D({type:WLd,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,bDb,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 XLd=function(){this.changes=[]};XLd.\u0275fac=function(a){return new (a||XLd)};XLd.\u0275cmp=D({type:XLd,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&&(K(0,"div",0),M(1,"mat-icon",1),Q(2," \u00a0 "),K(3,"p"),Q(4),L()());a&2&&(B(4),zg("",b.changes.length," ",b.changes.length>1?"Gerrit changes":"Gerrit change"))},dependencies:[Dy],styles:["a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good);\n    }"]});var YLd=function(){this.imageUrls=p(YV);this.LOGO_LIGHT=this.imageUrls.LOGO_LIGHT};da.Object.defineProperties(YLd.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=a?kvb(a):void 0}}});YLd.\u0275fac=function(a){return new (a||YLd)};
YLd.\u0275cmp=D({type:YLd,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&&(K(0,"div",0),M(1,"img",1),Q(2," \u00a0 "),F(3,dDb,1,1)(4,eDb,1,1),L());a&2&&(B(),I("src",b.LOGO_LIGHT,Pe),B(2),G(b.searchPageUrl?3:4))},dependencies:[$E],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 X0=function(){};X0.\u0275fac=function(a){return new (a||X0)};X0.\u0275mod=cf({type:X0});X0.\u0275inj=Hc({imports:[RO,yL,Fy,iB,iV]});var Y0=function(){};Y0.\u0275fac=function(a){return new (a||Y0)};Y0.\u0275mod=cf({type:Y0});Y0.\u0275inj=Hc({imports:[Ey]});var Z0=function(){};Z0.\u0275fac=function(a){return new (a||Z0)};Z0.\u0275mod=cf({type:Z0});Z0.\u0275inj=Hc({imports:[Zy,FZ,KX,nI,By,RO,xV,xE,iB,gL,OX,yL,pK,BX,LX,Y0,yE,X0,uU,ZW,bU,WW,iV]});var a1=function(){};a1.\u0275fac=function(a){return new (a||a1)};a1.\u0275mod=cf({type:a1});a1.\u0275inj=Hc({imports:[RO,Z0,bU]});var b1=function(){};b1.\u0275fac=function(a){return new (a||b1)};b1.\u0275mod=cf({type:b1});b1.\u0275inj=Hc({imports:[RO,gV,zU,G_,rV,iB,pK,K_,MK,AX,IX,LX,bK,Fy,bU,M_]});var ZLd=function(){};ZLd.\u0275fac=function(a){return new (a||ZLd)};ZLd.\u0275mod=cf({type:ZLd});ZLd.\u0275inj=Hc({imports:[RO,iB]});var $Ld=function(){};$Ld.\u0275fac=function(a){return new (a||$Ld)};$Ld.\u0275mod=cf({type:$Ld});$Ld.\u0275inj=Hc({imports:[FZ,gV,RO,zU,xV,U0,T0,ZLd,iB,gL,PJ,OX,pK,K_,MK,AX,Q0,V0,IX,gU,BX,LX,W0,bK,b1,ZW,D0,a1,nLd,iV]});var c1=function(){this.matDialog=p(QA)};c1.prototype.show=function(a){this.dialog=this.matDialog.open(aMd,{width:"500px",data:a});return ie(OA(this.dialog))};c1.\u0275fac=function(a){return new (a||c1)};c1.\u0275prov=Fc({token:c1,factory:c1.\u0275fac,providedIn:"root"});
var aMd=function(){this.butterBar=p(QN);this.data=p(PA);this.dialogRef=p(NA);this.teamsService=p(KQ);this.dialogTitle="Create Triage View";this.triageForm=new dE({displayName:new fE("",wj),scope:new fE("",wj),showComponentColumn:new fE(!1)});this.data.triage?(this.triage=pm(this.data.triage),this.triage.displayName=Gr(this.data.teamName,this.triage)):this.triage={id:Math.max.apply(Math,q(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"};
aMd.prototype.save=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return a.triage.displayName=a.triageForm.value.displayName,a.triage.scope=a.triageForm.value.scope,a.triage.showComponentColumn=a.triageForm.value.showComponentColumn,a.data.triage?(b=a.data.teamExperiments.triage.findIndex(function(e){return e.id===a.triage.id}),a.data.teamExperiments.triage.splice(b,1,a.triage)):a.data.teamExperiments.triage.push(a.triage),Pr(a.butterBar,"Saving changes...",0),Yd(d,2),z(d,ie(Xjd(a.teamsService,
a.data.teamExperiments)),4);if(d.nextAddress!=2)return Pr(a.butterBar,"Save complete."),a.dialogRef.close(a.triage),bt(d,0);c=be(d);a.butterBar.showWarning("Failed to save changes.");console.error(c);ce(d)})};aMd.\u0275fac=function(a){return new (a||aMd)};
aMd.\u0275cmp=D({type:aMd,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&&(K(0,"h1",0),Q(1),L(),K(2,"mat-dialog-content",1)(3,"form",2)(4,"div",3)(5,"div",4)(6,"label",5),Q(7,"Title"),L()(),M(8,"input",6),L(),K(9,"div",3)(10,"div",4)(11,"label",7),Q(12,
"Search Scope"),L()(),M(13,"textarea",8),L(),K(14,"div",3)(15,"mat-checkbox",9),Q(16," Show component name column in triage view "),L()()()(),K(17,"footer",10)(18,"button",11),Q(19,"Cancel"),L(),K(20,"button",12),N("click",function(){return b.save()}),Q(21,"Save"),L()());a&2&&(B(),yg(b.dialogTitle),B(2),I("formGroup",b.triageForm),B(17),I("disabled",!b.triageForm.valid))},dependencies:[hE,yj,$D,aE,sE,gB,cB,fL,aI,RA,TA,VA,UA,oE,nE],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 bMd=function(){};bMd.\u0275fac=function(a){return new (a||bMd)};bMd.\u0275mod=cf({type:bMd});bMd.\u0275inj=Hc({imports:[xE,iB,gL,MJ,BE,yE]});var d1=function(){Z.apply(this,arguments);var a=this;this.llmService=p(OY);this.imageUrls=p(YV);this.clusters$=new Nj([]);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({},sGd,{showActiveIndicator:!1,showMenu:!1,rowLimit:20});this.titles$=this.clusters$.pipe(Af(function(b){return $Cd(a.llmService,b,a.teamName)}))};
Y(d1,Z);d1.\u0275dir=Z.\u0275dir;da.Object.defineProperties(d1.prototype,{clusters:{configurable:!0,enumerable:!0,set:function(a){a&&this.clusters$.next(a)}}});d1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(d1)))(b||d1)}}();
d1.\u0275cmp=D({type:d1,selectors:[["b-issue-themes"]],inputs:{clusters:"clusters",teamName:"teamName"},standalone:!1,features:[Gf],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,kDb,2,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.clusters$))?0:-1,c)}},dependencies:[$Z,DL,EL,FL,
H$c,Lx],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px}\n/*# sourceMappingURL=issue_themes.css.map */"],changeDetection:0});var cMd=new fd("GM2_SLIDER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var dMd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};dMd.\u0275fac=function(a){return new (a||dMd)(Ye(cMd))};dMd.\u0275dir=df({type:dMd,selectors:[["mat-slider"]],hostAttrs:[1,"gmat-mdc-slider"],standalone:!1});var eMd=new fd("_MatSlider"),fMd=new fd("_MatSliderThumb"),gMd=new fd("_MatSliderRangeThumb"),hMd=new fd("_MatSliderVisualThumb");var iMd={provide:VD,useExisting:Yc(function(){return e1}),multi:!0},e1=function(){var a=this;this._ngZone=p(Rg);this._elementRef=p(Jd);this._cdr=p(ux);this._slider=p(eMd);this._platform=p(Wh);this.valueChange=new Ui;this.dragStart=new Ui;this.dragEnd=new Ui;this.thumbPosition=2;this._hostElement=this._elementRef.nativeElement;this._valuetext=ng.apply(null,[""].concat(q([])));this._knobRadius=8;this._tickMarkOffset=3;this._hasSetInitialValue=this._isFocused=this._isActive=!1;this._destroyed=new sf;
this._skipUIUpdate=!1;this._onTouchedFn=function(){};this._isControlInitialized=!1;var b=p(di);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))]})};e1.prototype._setValue=function(a){this._hostElement.value=a;this._updateThumbUIByValue();this._slider._onValueChange(this);this._cdr.detectChanges();this._slider._cdr.markForCheck()};
e1.prototype._setIsFocused=function(a){this._isFocused=a};e1.prototype.ngOnDestroy=function(){this._listenerCleanups.forEach(function(a){return a()});this._destroyed.next();this._destroyed.complete();this.dragStart.complete();this.dragEnd.complete()};var jMd=function(a){a._updateWidthInactive();a.disabled!==a._slider.disabled&&(a._slider.disabled=!0);a.step=a._slider.step;a.min=a._slider.min;a.max=a._slider.max;a._initValue()};h=e1.prototype;
h._initValue=function(){this._hasSetInitialValue=!0;this._initialValue===void 0?this.value=this.min:(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())};h._getDefaultValue=function(){return this.min};h._onBlur=function(){this._setIsFocused(!1);this._onTouchedFn()};h._onFocus=function(){this._slider._setTransition(!1);this._slider._updateTrackUI(this);this._setIsFocused(!0)};
h._onChange=function(){this.valueChange.emit(this.value);this._isActive&&this._updateThumbUIByValue({withAnimation:!0})};h._onInput=function(){var a;(a=this._onChangeFn)==null||a.call(this,this.value);!this._slider.step&&this._isActive||this._updateThumbUIByValue({withAnimation:!0});this._slider._onValueChange(this)};h._onNgControlValueChange=function(){this._isActive&&this._isFocused||(this._slider._onValueChange(this),this._updateThumbUIByValue());this._slider.disabled=this._formControl.disabled};
h._onPointerDown=function(a){this.disabled||a.button!==0||(this._platform.IOS?(this._isActive=this._slider._isCursorOnSliderThumb(a,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect()),this._slider._updateDimensions()):(this._isActive=!0,this._setIsFocused(!0),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(a,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(a),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))))};
h._handleValueCorrection=function(a){var b=this;this._skipUIUpdate=!0;setTimeout(function(){b._skipUIUpdate=!1;b._fixValue(a)},0)};
h._fixValue=function(a){var b=a.clientX-this._slider._cachedLeft,c=this._slider._cachedWidth,d=this._slider.step===0?1:this._slider.step,e=Math.floor((this._slider.max-this._slider.min)/d);b=Math.round((Math.round((this._slider._isRtl?1-b/c:b/c)*e)/e*(this._slider.max-this._slider.min)+this._slider.min)/d)*d;if(b!==this.value){this.value=b;this.valueChange.emit(this.value);var f;(f=this._onChangeFn)==null||f.call(this,this.value)}this._slider._onValueChange(this);this._slider.step>0?this._updateThumbUIByValue():
this._updateThumbUIByPointerEvent(a,{withAnimation:this._slider._hasAnimation})};h._onPointerMove=function(a){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(a)};h._onPointerUp=function(){var a=this;this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(function(){return a._updateWidthInactive()},this._platform.IOS?10:0))};
h._clamp=function(a){return Math.max(Math.min(a,this._slider._cachedWidth-this._tickMarkOffset),this._tickMarkOffset)};h._calcTranslateXByValue=function(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset};h._calcTranslateXByPointerEvent=function(a){return a.clientX-this._slider._cachedLeft};h._updateWidthActive=function(){};
h._updateWidthInactive=function(){this._hostElement.style.padding="0 "+this._slider._inputPadding+"px";this._hostElement.style.width="calc(100% + "+(this._slider._inputPadding-this._tickMarkOffset*2)+"px)";this._hostElement.style.left="-"+(this._slider._rippleRadius-this._tickMarkOffset)+"px"};h._updateThumbUIByValue=function(a){this.translateX=this._clamp(this._calcTranslateXByValue());this._updateThumbUI(a)};
h._updateThumbUIByPointerEvent=function(a,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(a));this._updateThumbUI(b)};h._updateThumbUI=function(a){this._slider._setTransition(!(a==null||!a.withAnimation));this._slider._onTranslateXChange(this)};h.writeValue=function(a){if(this._isControlInitialized||a!==null)this.value=a};h.registerOnChange=function(a){this._onChangeFn=a;this._isControlInitialized=!0};h.registerOnTouched=function(a){this._onTouchedFn=a};
h.setDisabledState=function(a){this.disabled=a};h.focus=function(){this._hostElement.focus()};h.blur=function(){this._hostElement.blur()};
da.Object.defineProperties(e1.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return ah(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 ah(this._hostElement.min,0)},set:function(a){this._hostElement.min=a+"";this._cdr.detectChanges()}},max:{configurable:!0,enumerable:!0,get:function(){return ah(this._hostElement.max,0)},set:function(a){this._hostElement.max=a+"";this._cdr.detectChanges()}},step:{configurable:!0,enumerable:!0,get:function(){return ah(this._hostElement.step,0)},set:function(a){this._hostElement.step=a+"";this._cdr.detectChanges()}},
disabled:{configurable:!0,enumerable:!0,get:function(){return $g(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}}});e1.\u0275fac=function(a){return new (a||e1)};
e1.\u0275dir=df({type:e1,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&&Kf("aria-valuetext",b._valuetext())},inputs:{value:[2,"value","value",ah]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],
features:[Gg([iMd,{provide:fMd,useExisting:e1}])]});var kMd=["knob"],lMd=["valueIndicatorContainer"],f1=function(){var a=this;this._cdr=p(ux);this._ngZone=p(Rg);this._slider=p(eMd);this._renderer=p(di);this._isValueIndicatorVisible=this._isActive=this._isHovered=!1;this._hostElement=p(Jd).nativeElement;this._platform=p(Wh);this._onPointerMove=function(b){if(!a._sliderInput._isFocused){var c=a._hostElement.getBoundingClientRect();b=a._slider._isCursorOnSliderThumb(b,c);(a._isHovered=b)?a._showHoverRipple():a._hideRipple(a._hoverRippleRef)}};this._onMouseLeave=
function(){a._isHovered=!1;a._hideRipple(a._hoverRippleRef)};this._onFocus=function(){a._hideRipple(a._hoverRippleRef);a._showFocusRipple();a._hostElement.classList.add("mdc-slider__thumb--focused")};this._onBlur=function(){a._isActive||a._hideRipple(a._focusRippleRef);a._isHovered&&a._showHoverRipple();a._hostElement.classList.remove("mdc-slider__thumb--focused")};this._onDragStart=function(b){b.button===0&&(a._isActive=!0,a._showActiveRipple())};this._onDragEnd=function(){a._isActive=!1;a._hideRipple(a._activeRippleRef);
a._sliderInput._isFocused||a._hideRipple(a._focusRippleRef);a._platform.SAFARI&&a._showHoverRipple()}};h=f1.prototype;
h.ngAfterViewInit=function(){var a=this,b=this._slider._getInput(this.thumbPosition);b&&(this._ripple.radius=24,this._sliderInput=b,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(function(){var c=a._sliderInputEl,d=a._renderer;a._listenerCleanups=[d.listen(c,"pointermove",a._onPointerMove),d.listen(c,"pointerdown",a._onDragStart),d.listen(c,"pointerup",a._onDragEnd),d.listen(c,"pointerleave",a._onMouseLeave),d.listen(c,"focus",a._onFocus),d.listen(c,"blur",a._onBlur)]}))};
h.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};h._showHoverRipple=function(){if(!this._isShowingRipple(this._hoverRippleRef)){this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0});var a;(a=this._hoverRippleRef)==null||a.element.classList.add("mat-mdc-slider-hover-ripple")}};
h._showFocusRipple=function(){if(!this._isShowingRipple(this._focusRippleRef)){this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0);var a;(a=this._focusRippleRef)==null||a.element.classList.add("mat-mdc-slider-focus-ripple")}};h._showActiveRipple=function(){if(!this._isShowingRipple(this._activeRippleRef)){this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400});var a;(a=this._activeRippleRef)==null||a.element.classList.add("mat-mdc-slider-active-ripple")}};
h._isShowingRipple=function(a){return(a==null?void 0:a.state)===0||(a==null?void 0:a.state)===1};h._showRipple=function(a,b){if(!this._slider.disabled){this._showValueIndicator();this._slider._isRange&&this._slider._getThumb(this.thumbPosition===1?2:1)._showValueIndicator();var c;if((c=this._slider._globalRippleOptions)==null||!c.disabled||b)return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:a,centered:!0,persistent:!0})}};
h._hideRipple=function(a){a!=null&&ZDc(a._renderer,a);this._isShowingAnyRipple()||(this._slider._isRange||this._hideValueIndicator(),a=this._getSibling(),a._isShowingAnyRipple()||(this._hideValueIndicator(),a._hideValueIndicator()))};h._showValueIndicator=function(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")};h._hideValueIndicator=function(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")};
h._getSibling=function(){return this._slider._getThumb(this.thumbPosition===1?2:1)};h._getValueIndicatorContainer=function(){var a;return(a=this._valueIndicatorContainer)==null?void 0:a.nativeElement};h._getKnob=function(){return this._knob.nativeElement};h._isShowingAnyRipple=function(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)};f1.\u0275fac=function(a){return new (a||f1)};
f1.\u0275cmp=D({type:f1,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(a,b){a&1&&(hg(aA,5),hg(kMd,5),hg(lMd,5));if(a&2){var c;lg(c=mg())&&(b._ripple=c.first);lg(c=mg())&&(b._knob=c.first);lg(c=mg())&&(b._valueIndicatorContainer=c.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Gg([{provide:hMd,useExisting:f1}])],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,lDb,5,1,"div",2),M(1,"div",3,0)(3,"div",4));a&2&&(G(b.discrete?0:-1),B(3),I("matRippleDisabled",!0))},dependencies:[aA],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 mMd=["trackActive"],g1=function(){var a=this;this._ngZone=p(Rg);this._cdr=p(ux);this._elementRef=p(Jd);this._dir=p(ci,{optional:!0});this._globalRippleOptions=p($z,{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=ni();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=p(Wh);this._knobRadius=8;this._thumbsOverlap=!1;p($h).load(Yz);this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){return a._onDirChange()}),this._isRtl=this._dir.value==="rtl")};h=g1.prototype;h._updateMin=function(a){var b=this._min;this._min=a;this._isRange?this._updateMinRange({old:b,new:a}):this._updateMinNonRange(a);this._onMinMaxOrStepChange()};
h._updateMinRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;c.min=a.new;b.min=Math.max(a.new,c.value);c.max=Math.min(b.max,b.value);c._updateWidthInactive();b._updateWidthInactive();a.new<a.old?this._onTranslateXChangeBySideEffect(b,c):this._onTranslateXChangeBySideEffect(c,b);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
h._updateMinNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.min=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};h._updateMax=function(a){var b=this._max;this._max=a;this._isRange?this._updateMaxRange({old:b,new:a}):this._updateMaxNonRange(a);this._onMinMaxOrStepChange()};
h._updateMaxRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;b.max=a.new;c.max=Math.min(a.new,b.value);b.min=c.value;b._updateWidthInactive();c._updateWidthInactive();a.new>a.old?this._onTranslateXChangeBySideEffect(c,b):this._onTranslateXChangeBySideEffect(b,c);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
h._updateMaxNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.max=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};h._updateStep=function(a){this._step=a;this._isRange?this._updateStepRange():this._updateStepNonRange();this._onMinMaxOrStepChange()};
h._updateStepRange=function(){var a=this._getInput(2),b=this._getInput(1),c=a.value,d=b.value,e=b.value;a.min=this._min;b.max=this._max;a.step=this._step;b.step=this._step;this._platform.SAFARI&&(a.value=a.value,b.value=b.value);a.min=Math.max(this._min,b.value);b.max=Math.min(this._max,a.value);b._updateWidthInactive();a._updateWidthInactive();a.value<e?this._onTranslateXChangeBySideEffect(b,a):this._onTranslateXChangeBySideEffect(a,b);c!==a.value&&this._onValueChange(a);d!==b.value&&this._onValueChange(b)};
h._updateStepNonRange=function(){var a=this._getInput(2);if(a){var b=a.value;a.step=this._step;this._platform.SAFARI&&(a.value=a.value);a._updateThumbUIByValue();b!==a.value&&this._onValueChange(a)}};
h.ngAfterViewInit=function(){this._platform.isBrowser&&this._updateDimensions();var a=this._getInput(2),b=this._getInput(1);this._isRange=!!a&&!!b;this._cdr.detectChanges();this._rippleRadius=this._getThumb(2)._ripple.radius;this._inputPadding=this._rippleRadius-this._knobRadius;this._isRange?this._initUIRange(a,b):this._initUINonRange(a);this._updateTrackUI(a);this._updateTickMarkUI();this._updateTickMarkTrackUI();this._observeHostResize();this._cdr.detectChanges()};
h._initUINonRange=function(a){jMd(a);a._updateThumbUIByValue();this._updateValueIndicatorUI(a);this._hasViewInitialized=!0;a._updateThumbUIByValue()};h._initUIRange=function(a,b){jMd(a);a._updateThumbUIByValue();jMd(b);b._updateThumbUIByValue();a._updateMinMax();b._updateMinMax();a._updateStaticStyles();b._updateStaticStyles();this._updateValueIndicatorUIs();this._hasViewInitialized=!0;a._updateThumbUIByValue();b._updateThumbUIByValue()};
h.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();var a;(a=this._resizeObserver)==null||a.disconnect();this._resizeObserver=null};h._onDirChange=function(){var a;this._isRtl=((a=this._dir)==null?void 0:a.value)==="rtl";this._isRange?this._onDirChangeRange():this._onDirChangeNonRange();this._updateTickMarkUI()};
h._onDirChangeRange=function(){var a=this._getInput(2),b=this._getInput(1);a._setIsLeftThumb();b._setIsLeftThumb();a.translateX=a._calcTranslateXByValue();b.translateX=b._calcTranslateXByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateWidthInactive();b._updateWidthInactive();a._updateThumbUIByValue();b._updateThumbUIByValue()};h._onDirChangeNonRange=function(){this._getInput(2)._updateThumbUIByValue()};
h._observeHostResize=function(){var a=this;typeof ResizeObserver!=="undefined"&&ResizeObserver&&this._ngZone.runOutsideAngular(function(){a._resizeObserver=new ResizeObserver(function(){a._isActive()||a._onResize()});a._resizeObserver.observe(a._elementRef.nativeElement)})};h._isActive=function(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive};h._getValue=function(a){return(a=this._getInput(a===void 0?2:a))?a.value:this.min};
h._skipUpdate=function(){var a,b;return!!(((a=this._getInput(1))==null?0:a._skipUIUpdate)||((b=this._getInput(2))==null?0:b._skipUIUpdate))};h._updateDimensions=function(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth;this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left};h._setTrackActiveStyles=function(a){var b=this._trackActive.nativeElement.style;b.left=a.left;b.right=a.right;b.transformOrigin=a.transformOrigin;b.transform=a.transform};
h._calcTickMarkTransform=function(a){a*=this._tickMarkTrackWidth/(this._tickMarks.length-1);return"translateX("+(this._isRtl?this._cachedWidth-6-a:a)+"px"};h._onTranslateXChange=function(a){this._hasViewInitialized&&(this._updateThumbUI(a),this._updateTrackUI(a),this._updateOverlappingThumbUI(a))};h._onTranslateXChangeBySideEffect=function(a,b){this._hasViewInitialized&&(a._updateThumbUIByValue(),b._updateThumbUIByValue())};
h._onValueChange=function(a){this._hasViewInitialized&&(this._updateValueIndicatorUI(a),this._updateTickMarkUI(),this._cdr.detectChanges())};h._onMinMaxOrStepChange=function(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())};
h._onResize=function(){if(this._hasViewInitialized){this._updateDimensions();if(this._isRange){var a=this._getInput(2),b=this._getInput(1);a._updateThumbUIByValue();b._updateThumbUIByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateMinMax();b._updateMinMax();a._updateWidthInactive();b._updateWidthInactive()}else(a=this._getInput(2))&&a._updateThumbUIByValue();this._updateTickMarkUI();this._updateTickMarkTrackUI();this._cdr.detectChanges()}};
h._areThumbsOverlapping=function(){var a=this._getInput(1),b=this._getInput(2);return a&&b?b.translateX-a.translateX<20:!1};h._updateOverlappingThumbClassNames=function(a){var b=a.getSibling();a=this._getThumb(a.thumbPosition);this._getThumb(b.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top");a._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)};
h._updateOverlappingThumbUI=function(a){this._isRange&&!this._skipUpdate()&&this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(a))};h._updateThumbUI=function(a){this._skipUpdate()||(this._getThumb(a.thumbPosition===2?2:1)._hostElement.style.transform="translateX("+a.translateX+"px)")};
h._updateValueIndicatorUI=function(a){if(!this._skipUpdate()){var b=this.displayWith(a.value);this._hasViewInitialized?a._valuetext.set(b):a._hostElement.setAttribute("aria-valuetext",b);this.discrete&&(a.thumbPosition===1?this.startValueIndicatorText=b:this.endValueIndicatorText=b,a=this._getThumb(a.thumbPosition),b.length<3?a._hostElement.classList.add("mdc-slider__thumb--short-value"):a._hostElement.classList.remove("mdc-slider__thumb--short-value"))}};
h._updateValueIndicatorUIs=function(){var a=this._getInput(2),b=this._getInput(1);a&&this._updateValueIndicatorUI(a);b&&this._updateValueIndicatorUI(b)};h._updateTickMarkTrackUI=function(){if(this.showTickMarks&&!this._skipUpdate()){var a=this._step&&this._step>0?this._step:1;this._tickMarkTrackWidth=(Math.floor(this.max/a)*a-this.min)/(this.max-this.min)*(this._cachedWidth-6)}};h._updateTrackUI=function(a){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(a):this._updateTrackUINonRange(a))};
h._updateTrackUIRange=function(a){var b=a.getSibling();if(b&&this._cachedWidth){var c=Math.abs(b.translateX-a.translateX)/this._cachedWidth;a._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:this._cachedWidth-b.translateX+"px",transformOrigin:"right",transform:"scaleX("+c+")"}):this._setTrackActiveStyles({left:b.translateX+"px",right:"auto",transformOrigin:"left",transform:"scaleX("+c+")"})}};
h._updateTrackUINonRange=function(a){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:"scaleX("+(1-a.fillPercentage)+")"}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:"scaleX("+a.fillPercentage+")"})};h._updateTickMarkUI=function(){if(this.showTickMarks&&this.step!==void 0&&this.min!==void 0&&this.max!==void 0){var a=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(a):this._updateTickMarkUINonRange(a)}};
h._updateTickMarkUINonRange=function(a){var b=this._getValue(),c=Math.max(Math.round((b-this.min)/a),0)+1;a=Math.max(Math.round((this.max-b)/a),0)-1;this._isRtl?c++:a++;this._tickMarks=Array(c).fill(0).concat(Array(a).fill(1))};h._updateTickMarkUIRange=function(a){var b=this._getValue(),c=this._getValue(1),d=Math.max(Math.round((b-c)/a)+1,0);b=Math.max(Math.round((this.max-b)/a),0);this._tickMarks=Array(Math.max(Math.round((c-this.min)/a),0)).fill(1).concat(Array(d).fill(0),Array(b).fill(1))};
h._getInput=function(a){if(a===2&&this._input)return this._input;var b;if((b=this._inputs)==null?0:b.length)return a===1?this._inputs.first:this._inputs.last};h._getThumb=function(a){var b,c;return a===2?(b=this._thumbs)==null?void 0:b.last:(c=this._thumbs)==null?void 0:c.first};h._setTransition=function(a){this._hasAnimation=!this._platform.IOS&&a&&!this._noopAnimations;this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)};
h._isCursorOnSliderThumb=function(a,b){var c=b.width/2;return Math.pow(a.clientX-(b.x+c),2)+Math.pow(a.clientY-(b.y+c),2)<Math.pow(c,2)};
da.Object.defineProperties(g1.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)}}});g1.\u0275fac=function(a){return new (a||g1)};
g1.\u0275cmp=D({type:g1,selectors:[["mat-slider"]],contentQueries:function(a,b,c){a&1&&(ig(c,fMd,5),ig(c,gMd,4));if(a&2){var d;lg(d=mg())&&(b._input=d.first);lg(d=mg())&&(b._inputs=d)}},viewQuery:function(a,b){a&1&&(hg(mMd,5),hg(hMd,5));if(a&2){var c;lg(c=mg())&&(b._trackActive=c.first);lg(c=mg())&&(b._thumbs=c)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(a,b){a&2&&(xg("mat-"+(b.color||"primary")),wg("mdc-slider--range",b._isRange)("mdc-slider--disabled",b.disabled)("mdc-slider--discrete",
b.discrete)("mdc-slider--tick-marks",b.showTickMarks)("_mat-animation-noopable",b._noopAnimations))},inputs:{disabled:[2,"disabled","disabled",$g],discrete:[2,"discrete","discrete",$g],showTickMarks:[2,"showTickMarks","showTickMarks",$g],min:[2,"min","min",ah],color:"color",disableRipple:[2,"disableRipple","disableRipple",$g],max:[2,"max","max",ah],step:[2,"step","step",ah],displayWith:"displayWith"},exportAs:["matSlider"],features:[Gg([{provide:eMd,useExisting:g1}])],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&&(cg(),dg(0),K(1,"div",2),M(2,"div",3),K(3,"div",4),M(4,"div",5,0),L(),F(6,oDb,3,1,"div",6),L(),F(7,pDb,1,3,"mat-slider-visual-thumb",7),M(8,"mat-slider-visual-thumb",7));a&2&&(B(6),
G(b.showTickMarks?6:-1),B(),G(b._isRange?7:-1),B(),I("discrete",b.discrete)("thumbPosition",2)("valueIndicatorText",b.endValueIndicatorText))},dependencies:[f1],styles:['.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mat-slider-inactive-track-height, 4px)}.mdc-slider__track--active,.mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider__track--active{overflow:hidden;border-radius:var(--mat-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mat-slider-active-track-height, 4px);top:calc((var(--mat-slider-inactive-track-height, 4px) - var(--mat-slider-active-track-height, 4px))/2)}.mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;transform-origin:left;transition:transform 80ms ease;border-color:var(--mat-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mat-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mat-slider-disabled-active-track-color, var(--mat-sys-on-surface))}[dir=rtl] .mdc-slider__track--active_fill{-webkit-transform-origin:right;transform-origin:right}.mdc-slider__track--inactive{left:0;top:0;opacity:.24;background-color:var(--mat-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mat-slider-inactive-track-height, 4px);border-radius:var(--mat-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mat-slider-disabled-inactive-track-color, var(--mat-sys-on-surface));opacity:.24}.mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider__value-indicator-container{bottom:44px;left:50%;pointer-events:none;position:absolute;transform:var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg))}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider__value-indicator{display:flex;align-items:center;transform:scale(0);transform-origin:var(--mat-slider-value-indicator-transform-origin, 0 28px);transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mat-slider-label-container-color, var(--mat-sys-primary));color:var(--mat-slider-label-label-text-color, var(--mat-sys-on-primary));width:var(--mat-slider-value-indicator-width, 28px);height:var(--mat-slider-value-indicator-height, 28px);padding:var(--mat-slider-value-indicator-padding, 0);opacity:var(--mat-slider-value-indicator-opacity, 1);border-radius:var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0)}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}.mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;display:var(--mat-slider-value-indicator-caret-display, none);border-top-color:var(--mat-slider-label-container-color, var(--mat-sys-primary))}.mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider__value-indicator-text{text-align:center;width:var(--mat-slider-value-indicator-width, 28px);transform:var(--mat-slider-value-indicator-text-transform, rotate(45deg));font-family:var(--mat-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mat-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mat-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mat-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mat-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking))}.mdc-slider__thumb{-webkit-user-select:none;user-select:none;display:flex;left:-24px;outline:none;position:absolute;height:48px;width:48px;pointer-events:none}.mdc-slider--discrete .mdc-slider__thumb{transition:transform 80ms ease}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__thumb--top{z-index:1}.mdc-slider__thumb-knob{position:absolute;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%, -50%);border-style:solid;width:var(--mat-slider-handle-width, 20px);height:var(--mat-slider-handle-height, 20px);border-width:calc(var(--mat-slider-handle-height, 20px)/2) calc(var(--mat-slider-handle-width, 20px)/2);box-shadow:var(--mat-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mat-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface))}.mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border:solid 1px #fff;box-sizing:content-box;border-color:var(--mat-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mat-slider-with-overlap-handle-outline-width, 1px)}.mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider__tick-mark--active,.mdc-slider__tick-mark--inactive{width:var(--mat-slider-with-tick-marks-container-size, 2px);height:var(--mat-slider-with-tick-marks-container-size, 2px);border-radius:var(--mat-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mat-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary))}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;position:absolute;top:2px;width:44px;box-sizing:content-box}.mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;cursor:pointer;height:48px;margin:0 8px;position:relative;touch-action:pan-y;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider.mdc-slider--disabled{cursor:auto;opacity:.38}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__input{cursor:auto}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color, var(--mat-sys-primary))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent))}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var nMd=function(a,b){return b.componentId},oMd=function(a,b){return b.displayAs},h1=function(){Z.apply(this,arguments);var a=this;this.activatedRoute=p(Mj);this.teamFridge=p(PQ);this.issueFridge=p(TP);this.componentActions=p(WV);this.teamId=this.activatedRoute.snapshot.params.teamId;this.components=[];this.openFilter=RR;this.selectedOpenFilter$=new XQ;this.selectComponents$=new XQ;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 Nj(this.dateRangeFilters[0]);this.clusterGranularity$=new Nj(1);this.query$=le([this.selectedOpenFilter$.value$,this.selectComponents$.value$,this.selectedDateRangeFilter$]).pipe(lf(0,Br),A(function(b){var c=m(b);b=
c.next().value;var d=c.next().value;c=c.next().value;return pMd(a)?Ir.apply(null,[Hr("teamid",a.teamId)].concat(q(Array.from(b,function(e){return e.queryAtom})),[c.queryAtom])):Ir.apply(null,[].concat(q(Array.from(b,function(e){return e.queryAtom})),[Hr("componentId",[].concat(q(d)).map(function(e){return e.componentId}),!1),c.queryAtom]))}));this.issues$=this.query$.pipe(Af(function(b){return a.issueFridge.watchMany({filter:b,pageSize:500})}),A(function(b){return b.results.filter(function(c){var d;
return(d=c.experimentalFields)==null?void 0:d.clusterIds.length})}));this.clusters$=le([this.issues$,this.clusterGranularity$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return qMd(b,c)}))};Y(h1,Z);h1.\u0275dir=Z.\u0275dir;
h1.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$,q(a.components))});this.teamId&&ie(this.teamFridge.watch(this.teamId)).then(function(b){a.teamName=b==null?void 0:b.name})};h1.prototype.openFilterChanged=function(a){a?this.selectedOpenFilter$.add(RR):this.selectedOpenFilter$.delete(RR)};
var pMd=function(a){return a.selectComponents$.size===a.components.length};h1.prototype.onCheckboxChange=function(a){this.selectComponents$.has(a)?this.selectComponents$.delete(a):this.selectComponents$.add(a)};
var qMd=function(a,b){var c=new Map;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.experimentalFields.clusterIds[b],f=void 0,g=(f=c.get(e))!=null?f:new Set;g.add(d.issueId);c.set(e,g)}b=[].concat(q(c.values())).map(function(k){return[].concat(q(k))});return uq(b,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,l){return l.length-k.length}).slice(0,10).map(function(k){return[].concat(q(k))})};
h1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(h1)))(b||h1)}}();
h1.\u0275cmp=D({type:h1,selectors:[["b-issue-themes-dashboard"]],standalone:!1,features:[Gf],decls:46,vars:16,consts:[["componentMenuTrigger","matMenuTrigger"],["ComponentMultiSelect","matMenu"],["dateMenuTrigger","matMenuTrigger"],["DateRangeMenu","matMenu"],["slider",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"medium"],["color","primary","svgIcon",
"refresh",1,"icon-m"],[1,"margin-none","nowrap"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"overflow","overflow-on-print-media"],[1,"flex-kids-x","align-items-center","margin-s","gap-s"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select component search scope","color","primary","role","button",3,"keydown.enter","keyup.space",
"matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["mat-menu-item","",3,"click"],[3,"change","checked"],["mat-menu-item",""],["aria-label","Select date range",3,"selectable"],["appearance","hairline-filter","aria-label","Select date range","color","primary","role","button",3,"keydown.enter","keyup.space","matMenuTriggerFor"],"max;3;min;1;step;1;showTickMarks;;matTooltip;Move slider to the right to see more general clusters.".split(";"),["aria-label","cluster granularity",
"matSliderThumb","",3,"valueChange"],[3,"clusters","teamName"],[3,"checked"]],template:function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"header",6)(2,"button",7);M(3,"mat-icon",8);L();K(4,"h2",9);Q(5);L();M(6,"mat-icon",10);K(7,"h2",9);Q(8,"Explore issue themes");L()();K(9,"div",11)(10,"div",12)(11,"mat-chip-listbox",13);N("change",function(e){u(c);return v(b.openFilterChanged(e.value))});K(12,"mat-chip-option",14)(13,"span",15);Q(14);L()()();K(15,"mat-chip-listbox",16)(16,"mat-chip-option",17,0);N("keydown.enter",
function(){u(c);var e=qg(17);return v(e.openMenu())})("keyup.space",function(){u(c);var e=qg(17);return v(e.openMenu())});F(18,qDb,2,0,"span")(19,rDb,2,0,"span");M(20,"mat-icon",18);L()();K(21,"mat-menu",null,1)(23,"button",19);N("click",function(e){u(c);return v(e.stopPropagation())});K(24,"mat-checkbox",20);N("change",function(){u(c);pMd(b)?b.selectComponents$.clear():b.selectComponents$.add.apply(b.selectComponents$,q(b.components));return v()});Q(25," Select all ");L()();M(26,"mat-divider");Of(27,
sDb,3,2,"button",21,nMd);L();K(29,"mat-chip-listbox",22)(30,"mat-chip-option",23,2);N("keydown.enter",function(){u(c);var e=qg(31);return v(e.openMenu())})("keyup.space",function(){u(c);var e=qg(31);return v(e.openMenu())});K(32,"span");Q(33);L();M(34,"mat-icon",18);L()();K(35,"mat-menu",null,3);Of(37,tDb,2,1,"button",21,oMd);L();K(39,"span");Q(40," Granularity");L();K(41,"mat-slider",24)(42,"input",25,4);N("valueChange",function(e){u(c);b.clusterGranularity$.next(e);return v()});L()()();M(44,"b-issue-themes",
26);T(45,"async");L()()}if(a&2){a=qg(22);var d=qg(36);B(5);yg(b.teamName);B(7);I("value",b.openFilter)("selected",b.selectedOpenFilter$.has(b.openFilter));B();I("matTooltip",b.openFilter.tooltip||"");B();S(" ",b.openFilter.displayAs," ");B();I("selectable",!1);B();I("matMenuTriggerFor",a);B(2);G(pMd(b)?18:19);B(6);I("checked",pMd(b));B(3);Pf(b.components);B(2);I("selectable",!1);B();I("matMenuTriggerFor",d);B(3);yg(b.selectedDateRangeFilter$.value.displayAs);B(4);Pf(b.dateRangeFilters);B(7);I("clusters",
U(45,14,b.clusters$))("teamName",b.teamName)}},dependencies:[Dy,gB,eB,OJ,YG,WG,aH,NK,VK,UK,TK,oK,iA,fL,aI,aK,dMd,g1,e1,d1,Lx],styles:["/*# sourceMappingURL=issue_themes_dashboard.css.map */"],changeDetection:0});var rMd=function(){};rMd.\u0275fac=function(a){return new (a||rMd)};rMd.\u0275mod=cf({type:rMd});rMd.\u0275inj=Hc({imports:[dA,Ey]});var sMd=function(){};sMd.\u0275fac=function(a){return new (a||sMd)};sMd.\u0275mod=cf({type:sMd});sMd.\u0275inj=Hc({imports:[rMd]});var tMd=function(){};tMd.\u0275fac=function(a){return new (a||tMd)};tMd.\u0275mod=cf({type:tMd});tMd.\u0275inj=Hc({imports:[RO,Z0,HL,iB,PJ,wU,YK,pK,gL,bK,sMd]});var BDb=Date.now(),uMd=function(){var a=this;this.issueFridge=p(TP);this.router=p(YE);this.ROUTES=ps;this.phaseToUrlSlug=Dt;this.FETCH_SIZE=500;this.teamId$=new wf(1);this.triageId$=new wf(1);this.phase$=new Nj("NEW");this.heading$=this.phase$.pipe(A(function(b){return Zs.get(b)}));this.searchFilter$=le([this.teamId$,this.phase$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return"teamid:"+b+"+ "+Dld[c]}));this.issues$=this.searchFilter$.pipe(Af(function(b){return a.issueFridge.watchMany({filter:b,
pageSize:500})}),A(function(b){return b.results}));this.daysOld$=this.issues$.pipe(A(function(b){return b.map(function(c){var d,e;return(e=(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0})}),A(function(b){return b.map(CDb)}));this.avgAge$=this.daysOld$.pipe(A(qUa),A(function(b){return Math.round(b*10)/10}));this.countsByDaysOld$=this.daysOld$.pipe(A(function(b){var c=b.map(function(e){return Math.floor(e)});b=[];c=m(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b[d]=~~b[d]+
1;return Array.from(b,function(e){return e!=null?e:0}).reverse()}));this.ratioDaysOld$=this.countsByDaysOld$.pipe(A(function(b){var c=Math.max.apply(Math,q(b));return b.map(function(d){return d/c})}))};da.Object.defineProperties(uMd.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)}}});
uMd.\u0275fac=function(a){return new (a||uMd)};
uMd.\u0275cmp=D({type:uMd,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,vDb,2,3),T(1,"async"),K(2,"div",0)(3,"div",1)(4,"p",2),Q(5,"Total Issues"),L(),K(6,"p",3),F(7,wDb,1,2),T(8,"async"),Lf(9,xDb,1,0),L()(),K(10,"div",4)(11,"p",2),Q(12,"Avg Last Modified"),L(),K(13,"p",3),Q(14),T(15,"async"),L()()(),K(16,"div",5),F(17,ADb,2,3),T(18,"async"),L());if(a&2){var c,d,e;G((c=U(1,4,b.teamId$))?0:-1,c);B(7);G((d=U(8,6,b.issues$))?7:9,d);B(7);S(" ",U(15,8,b.avgAge$),
" days ");B(3);G((e=U(18,10,b.countsByDaysOld$))?17:-1,e)}},dependencies:[Dy,gB,cB,Lx],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 vMd=function(){var a=this;this.activatedRoute=p(Mj);this.appSearchState=p(oT);this.teamFridge=p(PQ);this.ROUTES=ps;this.TriagePhase=vcd;this.activatedRoute.params.pipe(A(function(b){return{teamId:b.teamId,triageId:b.triageId}}));this.id$=this.activatedRoute.params.pipe(A(function(b){return b.teamId}));this.triageId$=this.activatedRoute.params.pipe(A(function(b){return b.triageId}));le([this.id$,this.triageId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!b||!c&&c!==
"0")}));this.team$=this.id$.pipe(Af(function(b){return a.teamFridge.watch(b)}));this.query$=this.id$.pipe(A(function(b){return"teamid:"+b+"+"}))};vMd.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};vMd.\u0275fac=function(a){return new (a||vMd)};
vMd.\u0275cmp=D({type:vMd,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&&(K(0,"div",0)(1,"header",1)(2,"div",2)(3,"a",3),T(4,"async"),T(5,"async"),M(6,"mat-icon",4),L(),K(7,"h2"),Q(8," Dashboard: "),F(9,DDb,2,2,"span",5),T(10,"async"),Lf(11,EDb,3,3,"code",6),L()()(),F(12,GDb,2,3),T(13,"async"),L());if(a&2){var c,d;B(3);I("href",b.ROUTES.viewTriage.makeHref(U(4,3,b.id$),U(5,5,b.triageId$)),Pe);B(6);G((c=U(10,7,b.team$))?9:11,c);B(3);G((d=U(13,9,b.id$))?12:-1,d)}},dependencies:[Dy,gB,eB,uMd,Lx],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 wMd="comment priority status assignee self-assign self-unassign unassign".split(" "),xMd=["create"],i1=function(){this.paths=p(mW);this.activeSession=p(qu);this.issueFullFridge=p(cQ);this.toIssuePriority=cRa;this.getResponsibleEmailAddress=MDb;this.getChangelistNumber=IDb;this.getLink=JDb;this.getPreviousDiffValue=NDb;this.getNewDiffValue=LDb;this.shorthandAllDiffs=KDb;this.getClMetadata=HDb;this.isCritiqueComment=mo;this.isFullGerritComment=no;this.STATUS_CODE_FROM_DISPLAY_STRING=Mcd;this.type=
"default"};i1.prototype.ngOnInit=function(){this.type=ODb(this.event)};i1.prototype.getComment=function(){return this.event.unlinkifiedComment?this.event.unlinkifiedComment:this.event.formattedComment?YTa(this.event.formattedComment):""};i1.\u0275fac=function(a){return new (a||i1)};
i1.\u0275cmp=D({type:i1,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,PDb,4,4)(2,TDb,5,4)(3,UDb,4,4)(4,
VDb,6,5)(5,XDb,4,5)(6,ZDb,5,5)(7,$Db,6,6)(8,aEb,4,4)(9,bEb,4,4)(10,cEb,6,6)(11,dEb,5,4)(12,eEb,5,5),F(13,gEb,1,1),F(14,iEb,1,1));if(a&2){var c;I("ldapOnly",!0)("email",b.getResponsibleEmailAddress(b.event));B();G((c=b.type)==="create"?1:c==="changelist"?2:c==="comment"?3:c==="priority"?4:c==="status"?5:c==="statusUpdate"?6:c==="assignee"?7:c==="self-assign"?8:c==="self-unassign"?9:c==="unassign"?10:c==="component"?11:12);B(12);G(wMd.includes(b.type)?13:-1);B();G(xMd.includes(b.type)?14:-1)}},dependencies:[Ssd,
sV,IR,yW,ytd],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 j1=function(){Z.apply(this,arguments);var a=this;this.recentEventsForIssuesFridge=p(DQ);this.activeSession=p(qu);this.quickFilter=new fE("");this.printStats=wEb;this.defaultNumEvents=6;this.numDisplayed$=new Nj(this.defaultNumEvents);this.query$=new wf(1);this.renderDelay$=ee(!0).pipe(of(1E3));this.allEvents$=this.query$.pipe(we(Qm),Bf(this.destroyed$),A(function(b){return[b,100].join("___")}),Af(function(b){return a.recentEventsForIssuesFridge.watch(b)}),A(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.events$=le([this.allEvents$,this.quickFilter.valueChanges.pipe(zf(""))]).pipe(A(function(b){var c=m(b);b=c.next().value;b=b===void 0?[]:b;c=c.next().value;return b.filter(vEb(c))}));this.bucketedEvents$=le([this.events$,this.numDisplayed$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b.slice(0,c)}),A(xEb));this.allBucketedEvents$=this.events$.pipe(A(xEb));this.bucketedEventStats$=this.allBucketedEvents$.pipe(A(function(b){return{"<24h":yEb("<24h",
b),"24h-7d":yEb("24h-7d",b),"7d-30d":yEb("7d-30d",b),">30d":yEb(">30d",b)}}))};Y(j1,Z);j1.\u0275dir=Z.\u0275dir;da.Object.defineProperties(j1.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)}}});j1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(j1)))(b||j1)}}();
j1.\u0275cmp=D({type:j1,selectors:[["recent-events"]],inputs:{numEvents:"numEvents",query:"query"},standalone:!1,features:[Gf],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,uEb,5,4),T(1,"async"));a&2&&G(U(1,1,b.renderDelay$)?0:-1)},dependencies:[yj,$D,mE,i1,Lx],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 k1=function(){};k1.\u0275fac=function(a){return new (a||k1)};k1.\u0275mod=cf({type:k1});k1.\u0275inj=Hc({imports:[yE,xE,RO,iV,xV,zU,BX,yV]});var CEb=function(a,b){return b.searchId},l1=function(){Z.apply(this,arguments);this.dialogRef=p(NA);this.currentUserBookmarksFridge=p(lP);this.selectedIds=new Set;this.savedSearches$=Ifd(this.currentUserBookmarksFridge)};Y(l1,Z);l1.\u0275dir=Z.\u0275dir;var BEb=function(a,b){b.options.forEach(function(c){c.selected?a.selectedIds.add(c.value):a.selectedIds.delete(c.value)})};l1.prototype.onSave=function(){this.dialogRef.close([].concat(q(this.selectedIds)))};l1.prototype.onCancel=function(){this.dialogRef.close()};
l1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(l1)))(b||l1)}}();
l1.\u0275cmp=D({type:l1,selectors:[["saved-search-picker-dialog"]],standalone:!1,features:[Gf],decls:10,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["aria-label","Add a Saved Search"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary","data-test","save",1,"medium",3,"click","disabled"],["aria-label","Add a Saved Search",3,"selectionChange"],["checkboxPosition","before",3,"selected",
"value","height"],["checkboxPosition","before",3,"selected","value"],[1,"savedsearch-name","type-m","flex-kids-x","align-items-center"],[1,"overflow-ellipsis"],[1,"line-clamp-2","muted","type-s"]],template:function(a,b){a&1&&(K(0,"header",0),Q(1," Add a Saved Search "),L(),K(2,"div",1),F(3,DEb,3,0,"mat-selection-list",2),T(4,"async"),L(),K(5,"div",3)(6,"button",4),N("click",function(){return b.onCancel()}),Q(7," Cancel "),L(),K(8,"button",5),N("click",function(){return b.onSave()}),Q(9),L()());if(a&
2){var c;B(3);G((c=U(4,3,b.savedSearches$))?3:-1,c);B(5);I("disabled",b.selectedIds.size===0);B();S(" Save ",b.selectedIds.size>1?"("+b.selectedIds.size+")":""," ")}},dependencies:[gB,cB,TA,VA,UA,SJ,gK,cK,Lx],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 yMd=function(){};yMd.\u0275fac=function(a){return new (a||yMd)};yMd.\u0275mod=cf({type:yMd});yMd.\u0275inj=Hc({imports:[RO,iB,MJ,pK,gL,iK,xE,yE,gV,iB,VX,AX,MK]});var m1=function(){this.dialog=p(QA)};m1.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){OA(b.dialog.open(l1,c)).subscribe(function(e){e=e===void 0?[]:e;a==null||a(e);d(e)})})};m1.\u0275fac=function(a){return new (a||m1)};m1.\u0275prov=Fc({token:m1,factory:m1.\u0275fac,providedIn:"root"});var zMd=function(){return[]},n1=function(){Z.apply(this,arguments);var a=this;this.issueFridge=p(TP);this.changelistFridge=p(BO);this.activeSession=p(qu);this.query$=new wf(1);this.issues$=this.query$.pipe(Af(function(b){return a.issueFridge.watchMany(b).pipe(A(function(c){if(nt(a.ref)==="issue")return c.results;var d;return ind(c.results,(d=a.activeSession.getTracker())==null?void 0:d.trackerId)}))}));this.emails$=this.issues$.pipe(A(function(b){return b.map(xUa).filter(Qm)}),A(E_a));this.submittedClLinks$=
this.issues$.pipe(A(function(b){return b.flatMap(function(c){var d,e,f;return(f=(d=c.snapshot)==null?void 0:(e=d[0])==null?void 0:e.changelist)!=null?f:[]})}));this.pendingCls$=this.issues$.pipe(A(function(b){return b.map(function(c){return c.issueId})}),Af(function(b){return a.changelistFridge.watchMany({pendingForIssues:b})}),A(function(b){return b.results}))};Y(n1,Z);n1.\u0275dir=Z.\u0275dir;n1.prototype.getHotlistId=function(){if(nt(this.ref)==="hotlist")return mt(this.ref)};
da.Object.defineProperties(n1.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});n1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(n1)))(b||n1)}}();
n1.\u0275cmp=D({type:n1,selectors:[["rollups-list"]],inputs:{ref:"ref",query:"query"},standalone:!1,features:[Gf],decls:11,vars:16,consts:[[1,"flex-kids-x","align-items-center"],[1,"flex-kids-x","align-items-center","dividers-between"],[3,"ref","count"],[3,"submitted","pending"],[3,"emails"],[1,"shrink-0","margin-left-auto"],["mat-stroked-button","","target","_blank",1,"small","pop-out-link",3,"href"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"section",0)(1,"div",1),M(2,
"issue-count",2),T(3,"async"),M(4,"cl-counts",3),T(5,"async"),T(6,"async"),F(7,EEb,1,1,"avatar-bunch",4),T(8,"async"),L(),K(9,"div",5),F(10,FEb,3,1,"a",6),L()());if(a&2){var c,d,e;B(2);I("ref",b.ref)("count",(c=U(3,6,b.issues$))==null?null:c.length);B(2);var f,g;I("submitted",(f=U(5,8,b.submittedClLinks$))!=null?f:Hg(14,zMd))("pending",(g=U(6,10,b.pendingCls$))!=null?g:Hg(15,zMd));B(3);G((d=U(8,12,b.emails$))?7:-1,d);B(3);a:{if(ws(b.activeSession)&&(a=b.getHotlistId(),a!=null)){a="https://taskflow.corp.google.com/hotlists/"+
a;break a}a=void 0}G((e=a)?10:-1,e)}},dependencies:[Dy,gB,cB,VLd,WLd,YLd,Lx],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 HEb=function(){return[]},o1=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=p(iQ);this.metadataFridge=p(qO);this.issueFullFridge=p(cQ);this.changelistFridge=p(BO);this.id$=new wf(1);this.issue$=this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.metadata$=this.id$.pipe(Af(function(b){return a.metadataFridge.watch(b)}));this.closedAndTotal$=this.metadata$.pipe(A(O2a));this.metadata$.pipe(A(Q2a));this.gerritChanges$=this.metadata$.pipe(A(R2a));this.emails$=this.metadata$.pipe(A(S2a));
this.pendingCls$=le([this.id$,this.metadata$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;c=(d=c==null?void 0:c.issueIds)!=null?d:[];d=[b].concat(q(c));return a.changelistFridge.watchMany({pendingForIssues:d})}),A(function(b){return b.results}));this.subscriptions.add(ve(this.issueRelationshipsFridge.memoryWasSet$,this.issueRelationshipsFridge.collectiveMemoryWasSet$,this.issueFullFridge.memoryWasSet$,this.issueFullFridge.collectiveMemoryWasSet$).pipe(kf(this.id$),lf(2E3)).subscribe(function(b){return void a.metadataFridge.poke(b[1])}))};
Y(o1,Z);o1.\u0275dir=Z.\u0275dir;da.Object.defineProperties(o1.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});o1.\u0275fac=function(a){return new (a||o1)};
o1.\u0275cmp=D({type:o1,selectors:[["rollups-project"]],inputs:{id:"id"},standalone:!1,features:[Gf],decls:11,vars:15,consts:[[1,"flex-kids-x","align-items-center","dividers-between"],[3,"closed","total"],[3,"issue"],[3,"submitted","pending"],[3,"changes"],[3,"emails"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,GEb,1,2,"progress-pie",1),T(2,"async"),M(3,"issue-timeframe",2),T(4,"async"),F(5,IEb,2,5,"cl-counts",3),T(6,"async"),F(7,KEb,1,1),T(8,"async"),F(9,MEb,1,1),T(10,"async"),L());if(a&
2){var c,d,e,f;B();G((c=U(2,5,b.closedAndTotal$))?1:-1,c);B(2);I("issue",U(4,7,b.issue$));B(2);G((d=U(6,9,b.metadata$))?5:-1,d);B(2);G((e=U(8,11,b.gerritChanges$))?7:-1,e);B(2);G((f=U(10,13,b.emails$))?9:-1,f)}},dependencies:[VLd,WLd,XZ,WZ,XLd,Lx],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 p1=function(){this.activeSession=p(qu)};p1.\u0275fac=function(a){return new (a||p1)};p1.\u0275prov=Fc({token:p1,factory:p1.\u0275fac,providedIn:"root"});var AMd=(new Rsd).transform,q1=function(){var a=this;this.kansasPrefsManager=p(dR);this.activeSession=p(qu);this.filteredSignalsSource=p(p1);this.destroyRef=p(Ee);this.filteredSignalsOptions=pm(this.filteredSignalsSource.activeSession.isInternalSession()?rjd:sjd);this.needsAttentionSourceFilters=this.activeSession.isInternalSession()?njd:ojd;this.prefs$=this.kansasPrefsManager.preferences$.pipe(A(function(b){var c;return(c=b==null?void 0:b.missionControlPreferences)!=null?c:{}}));this.prefs={};this.myTasksSources$=
this.prefs$.pipe(A(function(b){var c,d=(c=b==null?void 0:b.myTasksSources)!=null?c:[];b=b==null?void 0:b.isMyTasksSourcesConfigured;return d.length!==0||b?d.map(OEb):[].concat(q(pjd))}));this.needsAttentionSources$=this.prefs$.pipe(A(function(b){var c,d=(c=b==null?void 0:b.needsAttentionSources)!=null?c:[];b=b==null?void 0:b.isNeedsAttentionSourcesConfigured;c=a.needsAttentionSourceFilters;return d.length!==0||b?d.map(OEb):[].concat(q(c))}));this.needsAttentionTimeBoundary$=this.prefs$.pipe(A(function(b){var c;
return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.needsAttentionFilteredSignals$=this.prefs$.pipe(A(function(b){return{buganizerSignals:QEb(b==null?void 0:b.needsAttentionBuganizerFilteredSignals,a.filteredSignalsOptions),driveSignals:UEb(b==null?void 0:b.needsAttentionDriveFilteredSignals,a.filteredSignalsOptions),gerritSignals:WEb(b==null?void 0:b.needsAttentionGerritFilteredSignals,a.filteredSignalsOptions),changelistSignals:SEb(b==null?void 0:b.needsAttentionChangelistFilteredSignals,
a.filteredSignalsOptions),googleTasksSignals:XEb(b==null?void 0:b.needsAttentionGoogleTasksFilteredSignals,a.filteredSignalsOptions),irmSignals:YEb(b==null?void 0:b.needsAttentionIrmFilteredSignals,a.filteredSignalsOptions)}}),xf({bufferSize:1,refCount:!0}));this.prefs$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.prefs=b})},Gt=function(a,b){a.kansasPrefsManager.save({missionControlPreferences:Object.assign({},a.prefs,b)}).subscribe()},DHb=function(a,b,c){switch(b){case "mc-my-tasks":a.prefs.myTasksTab=
c;Gt(a,{myTasksTab:c});break;case "work-areas-wrapper-card":a.prefs.workAreaTab=c;Gt(a,{workAreaTab:c});break;default:console.error("unhandled tab key, cannot save preference")}};q1.prototype.toggleCollapsed=function(a){var b;this.prefs.collapsed=(b=this.prefs.collapsed)!=null?b:{};this.prefs.collapsed[a]=!this.prefs.collapsed[a];Gt(this,{collapsed:this.prefs.collapsed})};q1.prototype.isCollapsed=function(a){var b;return!((b=this.prefs.collapsed)==null||!b[a])};
var BMd=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")}};q1.prototype.getMyTasksSources=function(){var a,b=(a=this.prefs.myTasksSources)!=null?a:[];a=this.prefs.isMyTasksSourcesConfigured;return b.length!==0||a?b.map(OEb):[].concat(q(pjd))};var CMd=function(a,b){var c;return(a=(c=a.prefs.workAreaQuickFilters)==null?void 0:c[b])?[a]:[]};
q1.prototype.addHotlist=function(a){DMd(this,gvb(a))};q1.prototype.hasHotlist=function(a){return a==null?!1:EMd(this,gvb(a))};q1.prototype.hasSavedSearch=function(a){return a==null?!1:EMd(this,hvb(a))};
var EMd=function(a,b){var c;return((c=a.prefs.workAreaUrls)!=null?c:[]).includes(b)},DMd=function(a,b){typeof b==="string"&&(b=[b]);if(b!=null&&b.length!==0){var c,d=(c=a.prefs.workAreaUrls)!=null?c:[];d=A_a(b,d);Gt(a,{workAreaUrls:d})}},zHb=function(a,b,c){var d,e=((d=a.prefs.workAreaUrls)!=null?d:[]).slice();AMd(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,Gt(a,{workAreaUrls:e}))};q1.\u0275fac=function(a){return new (a||q1)};
q1.\u0275prov=Fc({token:q1,factory:q1.\u0275fac,providedIn:"root"});var FMd=function(){this.issueFridge=p(TP);this.candidateIssues$=this.issueFridge.watchMany(tjd);this.suggestions$=this.candidateIssues$.pipe(A(nvb))};FMd.\u0275fac=function(a){return new (a||FMd)};FMd.\u0275prov=Fc({token:FMd,factory:FMd.\u0275fac,providedIn:"root"});var r1=function(){var a=this;this.prefsService=p(q1);this.isNumeric=u9a;this.isActive=function(){return GMd(a,a.prefsService.prefs,a.filter.key)};this.active$=this.prefsService.prefs$.pipe(A(function(b){var c;return GMd(a,b,(c=a.filter)==null?void 0:c.key)}))};
r1.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];Gt(b,{workAreaQuickFilters:b.prefs.workAreaQuickFilters})}};r1.prototype.isDisabled=function(){return String(this.countDisplay)==="0"&&!this.isActive()};
var GMd=function(a,b,c){if(b==null||a.prefKey==null)return!1;var d;return((d=b.workAreaQuickFilters)==null?void 0:d[a.prefKey])===c};
da.Object.defineProperties(r1.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=m(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=jo.get(c.status))==null?0:e.open)b+=d.length}}this.countDisplay=b}else if(this.filter.key==="BROAD_IN_PROGRESS")b=P2a(a,"ASSIGNED"),a=P2a(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("jg`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=ot[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(a==null)this.countDisplay="-";else{var b,c,d=(c=ot[(b=this.filter)==null?void 0:b.key])==null?void 0:c.check;this.countDisplay=a.filter(d).length}}}});r1.\u0275fac=function(a){return new (a||r1)};
r1.\u0275cmp=D({type:r1,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&&(K(0,"button",0),T(1,"async"),K(2,"label"),Q(3),L(),F(4,aFb,2,3,"div",1),L());if(a&2){var c;I("title",(c=b.filter.tooltip)!=
null?c:"");Kf("aria-pressed",U(1,5,b.active$))("disabled",b.isDisabled()?"true":null);B(3);yg(b.filter.displayAs);B();G(b.metadata||b.countDisplay!==void 0?4:-1)}},dependencies:[Lx],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 HMd=function(){};HMd.\u0275fac=function(a){return new (a||HMd)};HMd.\u0275mod=cf({type:HMd});HMd.\u0275inj=Hc({imports:[RO,yL,Fy,iB]});var IMd=function(){var a=this;this.issueFridge=p(TP);this.activeSession=p(qu);this.QuickFilterKey=Jcd;this.query$=new wf(1);this.issues$=this.query$.pipe(Af(function(b){return a.issueFridge.watchMany(b)}),A(function(b){if(a.entityType==="issue")return b.results;var c;return ind(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}))};da.Object.defineProperties(IMd.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});
IMd.\u0275fac=function(a){return new (a||IMd)};
IMd.\u0275cmp=D({type:IMd,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&&(K(0,"div",0),M(1,"qif-stat",1),T(2,"async"),M(3,"qif-stat",1),T(4,"async"),M(5,"qif-stat",1),T(6,"async"),M(7,"qif-stat",1),T(8,"async"),M(9,"qif-stat",1),T(10,"async"),M(11,"qif-stat",1),T(12,"async"),M(13,"qif-stat",1),T(14,"async"),M(15,"qif-stat",
1),T(16,"async"),L());a&2&&(B(),I("key",b.QuickFilterKey.OPEN)("prefKey",b.prefKey)("computeCountFor",U(2,24,b.issues$)),B(2),I("key",b.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",b.prefKey)("computeCountFor",U(4,26,b.issues$)),B(2),I("key",b.QuickFilterKey.ASSIGNED_TO_ME_AND_OPEN)("prefKey",b.prefKey)("computeCountFor",U(6,28,b.issues$)),B(2),I("key",b.QuickFilterKey.NEWLY_FILED)("prefKey",b.prefKey)("computeCountFor",U(8,30,b.issues$)),B(2),I("key",b.QuickFilterKey.RECENTLY_ACTIVE)("prefKey",b.prefKey)("computeCountFor",
U(10,32,b.issues$)),B(2),I("key",b.QuickFilterKey.HIGH_PRIORITY)("prefKey",b.prefKey)("computeCountFor",U(12,34,b.issues$)),B(2),I("key",b.QuickFilterKey.TRENDING)("prefKey",b.prefKey)("computeCountFor",U(14,36,b.issues$)),B(2),I("key",b.QuickFilterKey.PROGRESS)("prefKey",b.prefKey)("computeCountFor",U(16,38,b.issues$)))},dependencies:[r1,Lx],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],changeDetection:0});var JMd=function(){var a=this;this.metadataFridge=p(qO);this.QuickFilterKey=Jcd;this.id$=new wf(1);this.metadata$=this.id$.pipe(Af(function(b){return a.metadataFridge.watch(b)}));this.hasDescendants$=this.metadata$.pipe(A(function(b){var c;return((c=b==null?void 0:b.descendantCount)!=null?c:0)>0}))};da.Object.defineProperties(JMd.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});
JMd.\u0275fac=function(a){return new (a||JMd)};JMd.\u0275cmp=D({type:JMd,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,bFb,5,10,"div",0),T(1,"async"));a&2&&G(U(1,1,b.hasDescendants$)?0:-1)},dependencies:[r1,Lx],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_project.css.map */"],changeDetection:0});var s1=function(){};s1.\u0275fac=function(a){return new (a||s1)};s1.\u0275mod=cf({type:s1});s1.\u0275inj=Hc({imports:[RO,yL,Fy,iB,X0,HMd]});var KMd={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},LMd=function(){this.data=p(PA);this.paths=p(mW);this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=KMd};LMd.\u0275fac=function(a){return new (a||LMd)};
LMd.\u0275cmp=D({type:LMd,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&&(K(0,"h1",0),Q(1,"Archive with all descendant issues?"),
L(),K(2,"div",1),Q(3),M(4,"br")(5,"br"),K(6,"a",2),Q(7,"View all descendant issues"),L(),M(8,"br"),K(9,"a",3),Q(10,"Learn more"),L()(),K(11,"div",4)(12,"button",5),Q(13,"Cancel"),L(),K(14,"button",5),Q(15," Just this one "),L(),K(16,"button",6),Q(17," Archive all "),L()());a&2&&(B(3),S(" This issue has ",b.numberOfDescendants," descendant issues. Archiving only this issue may make it difficult to find them later. Do you want to archive this issue with all descendant issues? "),B(3),I("href",Dg(b.descendantIssuesUrl),
Pe),B(6),I("matDialogClose",b.ActionType.CANCEL),B(2),I("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),I("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[gB,cB,RA,TA,VA,UA],encapsulation:2});var t1=function(){this.issueApi=p(HP);this.dialog=p(QA);this.confirmationDialogService=p(ZR);this.issueRelationshipsFridge=p(iQ);this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.paths=p(mW);this.butterBar=p(QN);this.editIssueService=p(DS)};
t1.prototype.submitArchivalState=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return b?z(d,c.archive(a),5):z(d,c.editIssueService.unarchive(a),0);c.issueFullFridge.poke(a);c.eventsForIssueFridge.poke(a);ce(d)})};
t1.prototype.archive=function(a){var b=this,c,d,e,f,g,k,l,r,w,x;return y(function(C){if(C.nextAddress==1)return z(C,Promise.all([b.getDescendants(a),ie(b.issueFullFridge.watch(a))]),2);c=C.yieldResult;d=m(c);e=d.next().value;f=d.next().value;g=e;k=f;l=g;r=l.childToParents;w=l.completeResult;x=[].concat(q(r.keys()));r.set(a,k.parentIssueIds||[]);return x.length===0?C.return(MMd(b,a,r)):w?C.return(NMd(b,a,x,r)):C.return(OMd(b,a,r))})};
var NMd=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},z(k,ie(OA(a.dialog.open(LMd,f))),2);g=k.yieldResult;switch(g){case "ARCHIVE_ALL":return k.return(PMd(a,[b].concat(q(c)),d));case "ARCHIVE_ONE":return k.return(MMd(a,b,d));case "CANCEL":return k.return();default:return k.return(wb(g))}})},PMd=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];QMd(a,c);Pr(a.butterBar,
"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){Pr(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);RMd(a,c)})},MMd=function(a,b,c){QMd(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){Pr(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);RMd(a,c)})},OMd=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:Dh([Bh("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."),Eh("br",{}),Eh("br",{}),Eh("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Eh("br",{}),Eh("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){MMd(a,b,c).then(d)},onDismiss:d})})},QMd=function(a,b){b=m(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;d=m(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},RMd=function(a,b){b=[].concat(q(b.values())).flat();b=m(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
t1.prototype.getDescendants=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H;return y(function(J){if(J.nextAddress==1)return z(J,ie(fid(b.issueRelationshipsFridge,a)),2);c=J.yieldResult;d=c.results;e=!0;f=new Map;g=m(d);for(k=g.next();!k.done;k=g.next()){l=k.value;r=m(l.relatedChildren);for(w=r.next();!w.done;w=r.next())x=w.value,C=void 0,H=(C=f.get(x.targetIssueId))!=null?C:[],H.push(l.issueId),f.set(x.targetIssueId,H);l.totalChildCount===l.relatedChildren.length||(e=!1)}return J.return({childToParents:f,
completeResult:e})})};t1.\u0275fac=function(a){return new (a||t1)};t1.\u0275prov=Fc({token:t1,factory:t1.\u0275fac,providedIn:"root"});var u1=function(a){this.pathToAncestor=a},Et=function(a){return new u1(a.split(">"))},SMd=function(a,b){return new u1([].concat(q(a.pathToAncestor),[b]))};u1.prototype.hash=function(){return this.pathToAncestor.join(">")};u1.prototype.equals=function(a){return!!a&&mm(this.pathToAncestor,a.pathToAncestor)};var TMd=function(a,b){a=m(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=m(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
u1.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};u1.prototype.some=function(a){return this.pathToAncestor.some(a)};u1.prototype.toString=function(){return this.hash()};
da.Object.defineProperties(u1.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 u1(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});var UMd=function(){var a=this;this.draftRows=new Map;this.changed$=new sf;this.counter=0;this.createId=function(){return String(a.counter++)}};UMd.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:SMd(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};
UMd.prototype.get=function(a){var b;return(b=this.draftRows.get(a.hash()))!=null?b:[]};UMd.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=m(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 VMd=function(a,b){return y(function(c){return c.return(ie(a.changed$.pipe(zf(a.draftRows),A(function(d){return![].concat(q(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),we(Boolean),A(function(){}))))})};UMd.prototype.isSaving=function(){return[].concat(q(this.draftRows.values())).flat().some(function(a){return a.saving})};UMd.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(q(c),[b]));this.changed$.next(this.draftRows)};var WMd={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},XMd=function(a){var b=void 0;b=b===void 0?WMd:b;a=a===void 0?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new wf(1)},YMd=function(a,b){b=b.hash();return a.expansionState[b]},ZMd=function(a,b,c){b=b.hash();c===void 0?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},$Md=function(a,b,c){var d=!1;c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=SMd(b,
e.nodeId);e.size<=a.config.defaultExpansionLevel&&YMd(a,e)===void 0&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var g=m(Object.entries(a.expansionState)),k=g.next();!k.done;k=g.next()){k=m(k.value);var l=k.next().value;k=k.next().value;l=Et(l);l.contains(e)&&(d=l.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new u1(d),delete a.expansionState[l.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!YMd(a,b)){var r;a.expansionState[b.hash()]=
(r=a.config.defaultExpandedChildren)!=null?r:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};var v1=function(){this.issueApi=p(HP);this.activeSession=p(qu);this.issueFullFridge=p(cQ);this.componentFridge=p(MO);this.componentTemplatesFridge=p(SO);this.currentUser=ym(this.activeSession.getUserEmail())},bNd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,aNd(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(T2a(d,e))})},dNd=function(a,b){return cNd(a,b).pipe(A(function(c){return{snapshot:[c],issueId:"",version:0,userData:void 0,aggregatedData:void 0,
accessLimit:void 0,customFields:[],visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[],descendantCount:0,openDescendantCount:0}}))},eNd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ie(cNd(a,b)),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
v1.prototype.create=function(a){var b=this,c,d;return y(function(e){return e.nextAddress==1?z(e,b.issueApi.createIssue({snapshot:a}),2):e.nextAddress!=3?(c=e.yieldResult,d=c.issueId,z(e,b.issueFullFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var cNd=function(a,b){return a.issueFullFridge.watch(b).pipe(we(Qm),Af(function(c){var d,e;return y(function(f){if(f.nextAddress==1)return z(f,aNd(a,String(c.snapshot[0].componentId)),2);d=f.yieldResult;if(c){var g={};c.snapshot[0].priority&&(g.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(g.severity=c.snapshot[0].severity);c.snapshot[0].type&&(g.type=bid[c.snapshot[0].type])}else g={};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]},g,fNd(d.defaultTemplate),gNd(d.component,d.defaultTemplate));e.assigneeUser&&(e.status="ASSIGNED");return f.return(e)})}))},fNd=function(a){if(!a)return{};a=bj(a.snapshot,function(b){return b==null||typeof b==="string"&&ya(b)?!1:!0});delete a.componentId;return a},gNd=function(a,b){var c=[],d,e;a=m((e=(d=a.componentPathInfo)==null?void 0:d.allCustomField)!=null?e:[]);e=a.next();for(d={};!e.done;d=
{customField$jscomp$20:void 0},e=a.next())if(d.customField$jscomp$20=e.value,d.customField$jscomp$20.required){var f=void 0;e=(f=d.customField$jscomp$20.typedDefaultValue)!=null?f:{customFieldId:d.customField$jscomp$20.customFieldId};var g=f=void 0,k=void 0,l=(k=(f=b)==null?void 0:(g=f.snapshot.customField)==null?void 0:g.find(function(r){return function(w){return w.customFieldId===r.customField$jscomp$20.customFieldId}}(d)))!=null?k:e;l&&c.push(Object.assign({},l))}return c.length===0?{}:{customField:c}},
aNd=function(a,b){var c,d,e,f,g,k;return y(function(l){if(l.nextAddress==1)return z(l,Promise.all([ie(a.componentTemplatesFridge.defaultTemplate$(b)),ie(a.componentFridge.watch(b).pipe(we(Qm)))]),2);c=l.yieldResult;d=m(c);e=d.next().value;f=d.next().value;g=e;k=f;return l.return({component:k,defaultTemplate:g})})};v1.\u0275fac=function(a){return new (a||v1)};v1.\u0275prov=Fc({token:v1,factory:v1.\u0275fac,providedIn:"root"});var w1=function(a,b,c,d,e,f,g,k,l,r,w,x,C,H,J){c=c===void 0?1:c;Z.call(this);var O=this;this.rootIssueId=a;this.quickFilters=b;this.defaultExpansionLevel=c;this.saveExpansionAtKey=d;this.analytics=e;this.butterBar=f;this.issueFullFridge=g;this.issuePicker=k;this.issueRelationshipsFridge=l;this.paths=r;this.router=w;this.issueCreationService=x;this.clearcut=C;this.refreshMonitor=H;this.permissionsFridge=J;this.defaultExpandedChildren=10;this.isOneLineCreationSupported=function(){return O.supportsOneLineCreation};
this.defaultApiRequestDepth=this.defaultExpansionLevel+2;a=this.saveExpansionAtKey?vo(this.saveExpansionAtKey):function(){};this.expansion=new XMd(hNd(this));this.draftRows=new UMd;this.refetchingAll$=new Nj(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Ef(pe(function(){return O.rows$})),Af(function(R){R=m(R);R.next();var V=R.next().value;O.refetchingAll$.next(!0);R=[];if(!V)return Promise.resolve();R.push(gid(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth));
V=m(V);for(var ca=V.next();!ca.done;ca=V.next())ca=ca.value,ca.type==="data"&&R.push(O.issueFullFridge.poke(ca.id)),ca.level>O.defaultExpansionLevel&&R.push(O.issueRelationshipsFridge.poke(ca.id));return Promise.all(R).then(function(){O.refetchingAll$.next(!1)})}));this.rows$=ve(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,sha(ee({}),Br)).pipe(Af(function(){return fid(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth)}),Af(function(){for(var R=new Map,
V=m(Object.entries(O.expansion.expansionState)),ca=V.next();!ca.done;ca=V.next()){ca=m(ca.value);var oa=ca.next().value;ca=ca.next().value;oa=Et(oa).nodeId;var ua=void 0;ca=Math.max(ca,(ua=R.get(oa))!=null?ua:0);R.set(oa,ca)}return iNd(O,R)}),kf(this.quickFilters.value$),Af(function(R){R=m(R);var V=R.next().value;var ca=R.next().value;return ca.size===0?(O.hiddenRowCount$.next(0),ee(V)):O.getAllIssues(V).pipe(A(function(oa){return jNd(O,V,ca,oa)}))}),A(function(R){return kNd(O,R)}),xf({refCount:!0,
bufferSize:1}));this.hiddenRowCount$=new Nj(0);this.rootIssue$=this.issueFullFridge.watch(this.rootIssueId).pipe(we(Qm));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new u1([this.rootIssueId]),expandedCount:500,issue$:jx,hasChildren$:jx,isEditMode:!1,issuePermissions$:jx};this.supportsOneLineCreation=ie(this.rootIssue$).then(function(R){return Eab(R.snapshot[0].componentId)}).then(function(R){return bNd(O.issueCreationService,R)});this.saveExpansionAtKey&&this.subscriptions.add(this.expansion.changed$.pipe(lf(100)).subscribe(a))};
Y(w1,Z);w1.\u0275dir=Z.\u0275dir;w1.\u0275fac=Z.\u0275fac;
var hNd=function(a){a=a.saveExpansionAtKey;if(a!=null){a=uo(a)();a:if(typeof a!=="object"||Object.getPrototypeOf(a)!==Object.prototype)var b=!1;else{b=m(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}},lNd=function(a,b,c){b=b===void 0?a.ROOT_ROW.ancestorChain:b;var d,e,f,g,k,l,r;y(function(w){switch(w.nextAddress){case 1:return d=b.nodeId,z(w,ie(a.issueFullFridge.watch(d)),2);case 2:return(e=w.yieldResult)?
z(w,a.supportsOneLineCreation,3):w.return();case 3:if(f=w.yieldResult)return g=dNd(a.issueCreationService,d),w.return(a.draftRows.create(b,g,c));k=e.snapshot[0].componentId;r={};return z(w,Ct(a.router,a.paths.createIssue((r.component=k||void 0,r.parentIssueId=e.issueId,r.redirectUrl=ps.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=(l=c)==null?void 0:l.afterIssueId,r))),4);case 4:return w.return()}})};
w1.prototype.addExistingChild=function(a){var b=this,c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,ie((d=(c=a)==null?void 0:c.issue$)!=null?d:b.rootIssue$),2);e=g.yieldResult;if(!e)return g.return();f=String(e.issueId);return z(g,b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return y(function(l){if(l.nextAddress==1){if(k.length===0)return l.return();b.assignParentToIssues(f,k);b.analytics.trackEvent("editIssue","add","existing-child-issue");
return z(l,ns(0),2)}a&&ZMd(b.expansion,a.ancestorChain,500);ce(l)})}),0)})};w1.prototype.saveDraft=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){if(a.saving||!a.title)return d.return();a.saving=!0;return z(d,mNd(b,a),2)}return(c=d.yieldResult)?d.return(nNd(b,a,c)):d.return()})};
var mNd=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Yd(g,2),z(g,eNd(a.issueCreationService,c,b.title),4);case 4:e=g.yieldResult;d=e.issueId;bt(g,3);break;case 2:return f=be(g),a.butterBar.showWarning("Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),g.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(k>0){var l=Math.min(k,108E5);yhd("createIssue",l,"from-tree");a.analytics.trackEvent("createIssue",
"createIssue","time-to-create-from-tree",l);VP(a.clearcut,k,"createIssue-fromTree")}ZMd(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;l=d;b.issueId=l;for(var r=m(k.draftRows.values()),w=r.next();!w.done;w=r.next()){w=m(w.value);for(var x=w.next();!x.done;x=w.next())x=x.value,x.afterDraftId===b.id&&(x.afterIssueId=l)}k.changed$.next(k.draftRows);return g.return(d)}})},nNd=function(a,b,c){var d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return d=b.ancestorChain.parentNodeId,f=(e=
b.afterIssueId)!=null?e:b.afterDraftId,f===void 0||f==="-1"?r.jumpTo(2):z(r,VMd(a.draftRows,f),2);if(r.nextAddress!=4)return z(r,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);g=r.yieldResult;k=g.errors;((l=k)==null?0:l.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);ce(r)})},iNd=function(a,b,c){c=c===void 0?0:c;return le([a.rootIssueId].concat(q(b.keys())).map(function(d){return a.refetchingAll$.pipe(we(function(e){return!e}),
Af(function(){return eid(a.issueRelationshipsFridge,d)}))})).pipe(Af(function(d){var e=new Map;d=m(d);for(var f=d.next();!f.done;f=d.next())(f=f.value)&&e.set(f.issueId,f);if(c===a.defaultExpansionLevel)return ee(e);d=oNd(a,e,c);d=new Map(d.map(function(g){return[g,a.defaultExpandedChildren]}));return iNd(a,d,c+1).pipe(A(function(g){var k=new Map(e);g=m(g.entries());for(var l=g.next();!l.done;l=g.next()){var r=m(l.value);l=r.next().value;r=r.next().value;k.set(l,r)}return k}))}))},oNd=function(a,
b,c){var d=[];a=[{id:a.rootIssueId,level:-1}];for(var e={};a.length>0;e={current$jscomp$53:void 0})if(e.current$jscomp$53=a.pop(),e.current$jscomp$53.level===c&&d.push(e.current$jscomp$53.id),!(e.current$jscomp$53.level>c)){var f=void 0,g=void 0,k=(g=(f=b.get(e.current$jscomp$53.id))==null?void 0:f.relatedChildren)!=null?g:[];a.push.apply(a,q(k.map(function(l){return function(r){return{id:r.targetIssueId,level:l.current$jscomp$53.level+1}}}(e))))}return d},kNd=function(a,b){for(var c=[],d=[a.ROOT_ROW],
e={};d.length>0;e={parentRow$jscomp$1:void 0,childrenLevel:void 0})if(e.parentRow$jscomp$1=d.pop(),e.parentRow$jscomp$1.type==="load-more-children"||e.parentRow$jscomp$1.type==="draft-issue")c.push(e.parentRow$jscomp$1);else{e.parentRow$jscomp$1.id!==a.rootIssueId&&c.push(e.parentRow$jscomp$1);var f=void 0,g=void 0,k=(g=(f=b.get(e.parentRow$jscomp$1.id))==null?void 0:f.relatedChildren)!=null?g:[];f=k.slice(0,e.parentRow$jscomp$1.expandedCount);e.childrenLevel=e.parentRow$jscomp$1.level+1;e.parentRow$jscomp$1.expandedCount&&
f.length<k.length&&(g=SMd(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:g.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:g,truncatedSiblingCount:k.length-f.length}));k=f.map(function(l){return function(r){var w=SMd(l.parentRow$jscomp$1.ancestorChain,r.targetIssueId);return{type:"data",id:r.targetIssueId,level:l.childrenLevel,hasChildren$:a.issueRelationshipsFridge.watch(r.targetIssueId).pipe(A(T3a)),ancestorChain:w,
expandedCount:pNd(a,w,l.childrenLevel,b),issue$:a.issueFullFridge.watch(r.targetIssueId),isEditMode:!1,issuePermissions$:a.permissionsFridge.watch(eq(r.targetIssueId)).pipe(A(function(x){return x!=null?x:hkd}),zf(hkd))}}}(e));d.push.apply(d,q(qNd(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},qNd=function(a,b,c){var d=[].concat(q(b));a=a.draftRows.get(c);a=m(a);var e=a.next();for(c={};!e.done;c={draft$jscomp$8:void 0},e=a.next())c.draft$jscomp$8=e.value,b.some(function(f){return function(g){return g.id===
f.draft$jscomp$8.issueId}}(c))||(e=d.findIndex(function(f){return function(g){return g.id===f.draft$jscomp$8.afterDraftId||g.id===f.draft$jscomp$8.afterIssueId}}(c)),d.splice(e===-1?d.length:e+1,0,c.draft$jscomp$8));return d},pNd=function(a,b,c,d){var e=b.nodeId;b=YMd(a.expansion,b);if(b!==void 0)return b;if(c<a.defaultExpansionLevel){var f,g;return Math.min(a.defaultExpandedChildren,(g=(f=d.get(e))==null?void 0:f.relatedChildren.length)!=null?g:0)}return 0};
w1.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1)return b.length===0?k.return():z(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(l){return{issueId:l,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return c.butterBar.showWarning("Could not add "+e+" as child of b/"+a+". "+((g=f)==null?void 0:g.map(function(l){return Sp(l)}))),k.return();ce(k)})};
w1.prototype.getAllIssues=function(a){for(var b=this,c=new Set,d=m(a.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);a=m(a.values());for(d=a.next();!d.done;d=a.next())for(d=d.value.relatedChildren.map(function(f){return f.targetIssueId}),d=m(d),e=d.next();!e.done;e=d.next())c.add(e.value);return le([].concat(q(c)).map(function(f){return b.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(Qm)}))};
var jNd=function(a,b,c,d){function e(l){if(!l)return!1;var r=f.get(l),w=g.get(l);if(!r||r.relatedChildren.length===0)return w;var x=r.relatedChildren.filter(function(C){return e(C.targetIssueId)});k+=r.relatedChildren.length-x.length;f.set(l,Object.assign({},r,{relatedChildren:x}));return x.length!==0||w}var f=new Map(b.entries()),g=new Map(d.map(function(l,r,w){return[l.issueId,pvb(c,r,w)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},x1=function(){this.analytics=p(aQ);this.butterBar=
p(QN);this.issueFullFridge=p(cQ);this.issuePicker=p(XX);this.issueRelationshipsFridge=p(iQ);this.paths=p(mW);this.router=p(YE);this.issueCreationService=p(v1);this.clearcut=p(UP);this.refreshMonitor=p(QP);this.permissionsFridge=p(yQ)};x1.prototype.create=function(a,b,c,d){b=b===void 0?new XQ:b;return new w1(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)};
x1.\u0275fac=function(a){return new (a||x1)};x1.\u0275prov=Fc({token:x1,factory:x1.\u0275fac,providedIn:"root"});var uNd=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new sf;this.onRowsMoved$=new sf;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=VHc(function(f,g){if(e.activeDrag){var k=f||0,l=g.getBoundingClientRect();f=l.height;k-=l.top;f=fFb(k<=f*
.25?"top":k>=f*.75?"bottom":"middle",g);g=f.position;f=f.rowElement;switch(g){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var r=(k=(r=f.querySelector(".title-location"))==null?void 0:r.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;r=f.offsetLeft+r;k=g==="after"?f.offsetTop+f.offsetHeight:
f.offsetTop;l=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=r+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=l-r+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:g};rNd(e,f,g)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var g,k=(g=f.target)==null?void 0:g.closest("tr");
if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var l;if(((l=e.currentReorderingGuide)==null?void 0:l.position)==="none")return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){sNd(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,tNd(e.rowSelectionModel),"mouse",4);sNd(e)})})};
uNd.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(gFb(c));vNd(this.rowSelectionModel);wNd(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=m(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var xNd=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)},yNd=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=m(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)}};
uNd.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)}};
uNd.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"?xNd(this,a):(b=c&&b.row.level<eFb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
uNd.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=(b=a.target)==null?void 0:b.closest("tr");if(c){var d=gFb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":xNd(this,b);break;case "ArrowRight":yNd(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
uNd.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=gFb(a.rowElement),g=void 0,k=f;switch(a.position){case "current":k=f;g={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,g={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&g&&e.onRowsMoved$.next({movedRows:b,insertAt:g,parentAncestorChain:k,origin:c,actionMessage:dFb(d)})})}};
var sNd=function(a){for(var b=m(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=m(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},rNd=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 gFb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},wNd=function(a){var b;
(b=a.updatingNoDropRows)==null||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(zf(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=m(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 y1=function(){Z.call(this);var a=this;this.analytics=p(aQ);this.dragStarted$=new sf;this.onRowsMoved$=new sf;ve(this.dragStarted$,this.onRowsMoved$).pipe(w6a(),Bf(this.destroyed$)).subscribe(function(b){var c=b[b.length-1].timestamp-b[0].timestamp;b=vq(b.map(function(d){return d.event.origin}));b=b.length===1?b[0]:"mixed";a.analytics.trackEvent("editIssue","reorderChildren",b);yhd("reorderChildren",c,b)})};Y(y1,Z);y1.\u0275dir=Z.\u0275dir;y1.\u0275fac=function(a){return new (a||y1)};
y1.\u0275prov=Fc({token:y1,factory:y1.\u0275fac,providedIn:"root"});var zNd=function(){this.changed$=new sf;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};zNd.prototype.init=function(a){this.visibleRows=a};zNd.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var WFb=function(a,b){var c=b.hash(),d,e=(d=a.isSelectedObservableMap.get(c))!=null?d:a.changed$.pipe(zf(a.selectedRowHashes),A(function(f){return f.has(b.hash())}),pf(),xf({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
zNd.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};zNd.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var vNd=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=m(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=Et(e.value);for(var f=m(b),g=f.next();!g.done;g=f.next())g=g.value,TMd(e,g)&&(a.selectedRowHashes.add(g.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},tNd=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(q(a.selectedRowHashes.values())).map(function(f){return Et(f)}).map(function(f){return f.nodeId})),d=[];a=m(a.selectedRowHashes.values());for(var e=a.next();!e.done;e=a.next())(e=b.get(e.value))&&(e.ancestorChain.parentChain.some(function(f){return c.has(f)})||d.push(e.ancestorChain));return d};
da.Object.defineProperties(zNd.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(q(this.selectedRowHashes)).map(function(a){return Et(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var ANd=function(){return["active-indicator","load-more-children"]},HFb=function(){return[]},BNd=ps.listIssues.makeHref,CNd={type:"data",id:"",issue$:jx,hasChildren$:jx,ancestorChain:new u1([]),level:0,expandedCount:0,isEditMode:!1,issuePermissions$:jx},z1=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=p(iQ);this.router=p(YE);this.butterBar=p(QN);this.analytics=p(aQ);this.issueArchiveService=p(t1);this.ngZone=p(Rg);this.elementRef=p(Jd);this.domSafe=p(iR);this.reorderingSessionTracker=
p(y1);this.cdr=p(YP);this.relationsTableModelFactory=p(x1);this.liveAnnouncer=p(Yy);this.clearcut=p(UP);this.paths=p(mW);this.checkBeforeExit=p(uY);this.IssueFieldType=Ybd;this.defaultExpansionLevel=1;this.internalFilters=new XQ;this.isClosed=CUa;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 zNd;this.hasLogged=!1;this.correctedDisplayedRows=new gg;this.TITLE_FIXED_OFFSET_PX=42;this.EDITABLE_TITLE_OFFSET_PX=8;this.rowDirectiveMap=new Map;this.getRowIndex=function(b){var c;return((c=yr(a.rows$))!=null?c:[]).findIndex(function(d){return cFb(d,b)})};this.showError=function(b){return function(c){a.butterBar.showWarning(b+". "+(Rp(c)?Sp(c):c))}};this.dataColumns=[].concat(q(oGd));
this.tableColumns=this.getRenderableColumns(this.dataColumns)};Y(z1,Z);z1.\u0275dir=Z.\u0275dir;
z1.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(vY(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$=sha([this.tableModel.rows$,ee([CNd])],se).pipe(ne(1),xf({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(Af(function(c){return le(c.filter(function(d){return d.type===
"data"}).map(function(d){return d.issue$}))}),lf(0,Br));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();DNd(a,c)}));this.rowReorderingModel=new uNd(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"?PFb(a,d):d.type==="data"&&(c=a.tableModel.expansion,d=d.ancestorChain,YMd(c,d)||ZMd(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;
return y(function(e){if(e.nextAddress==1)return kid(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")),$Md(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),z(e,ie(a.correctedDisplayedRows.changes.pipe(A(function(f){return f.find(function(g){return g.row.type==="data"&&g.row.ancestorChain.nodeId===
c.movedRows[0].nodeId&&g.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),we(Boolean),xe(6E4))),2);d=e.yieldResult;d.focus();ce(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
z1.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,q(a));this.options.showMenu&&b.push("menu");return b};
var DNd=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;hhd(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",hhd(a.clearcut,"view-relations-"+c),a.analytics.trackEvent("editIssue","view-relations","ratio-estimated",b),a.analytics.trackEvent("editIssue","view-relations",c))}};
z1.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);le([this.rows$,this.displayedRows.changes]).pipe(Bf(this.destroyed$)).subscribe(function(b){b=m(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);kg(a.correctedDisplayedRows)});this.focusManager=jz(new Mxd(this.correctedDisplayedRows,
cFb))};z1.prototype.toggleExpansion=function(a){ZMd(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};z1.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=ps.viewIssue.makeHref(b.id),dq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Cr(this.domSafe,b):Ct(this.router,b))};
var PFb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=a.getRowIndex(b),ZMd(a.tableModel.expansion,b.ancestorChain.parentChain,500),z(d,ns(0),2);a.focusManager.setActiveItem(c);ce(d)})},KFb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return ENd(a,c,b)},title:"Continue on the create issue page",icon:"arrow-forward"}]};
z1.prototype.getMenuItems=function(a){var b=this,c={type:"action",label:"Rename title",action:function(){a.isEditMode=!0;b.analytics.trackEvent("editIssue","three_dots_menu","rename_issue_title");b.cdr.detectChanges()},title:"Rename title",icon:"edit"};return a.issuePermissions$.pipe(A(function(d){return[{type:"action",label:"Go to issue",action:function(e){b.navigateToIssue(e,a)},title:"Go to issue",icon:"arrow-forward"}].concat(q(d.writer?[c]:[]),[{type:"action",label:"View Children",disabled:!yr(a.hasChildren$),
action:function(){var e=BNd({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(){iHb(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(){FNd(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(){yNd(b.rowReorderingModel,
b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){xNd(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(){GNd(b,a)},title:"Archive issue",
icon:"archive_24px"}])}))};z1.prototype.saveDraft=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){if(!a.title)return e.return();b.tableModel.saveDraft(a);b.focusManager.setActiveItem(b.getRowIndex(a));return z(e,ie(b.displayedRows.changes.pipe(A(function(f){return f.find(function(g){return g.row.type==="data"&&g.row.id===a.issueId})}),we(Boolean),xe(6E4))),2)}c=e.yieldResult;cFb((d=b.focusManager.activeItem)==null?void 0:d.row,a)&&b.focusManager.setActiveItem(c);ce(e)})};
var SFb=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;cFb((c=a.focusManager.activeItem)==null?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},iHb=function(a,b){lNd(a.tableModel,b==null?void 0:b.ancestorChain,{afterIssueId:"-1"})},FNd=function(a,b){b.type==="data"?lNd(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):lNd(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};z1.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var HNd=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"editable-title":b==="menu"?"save":b==="ISSUE_ID"?"empty-id":b})};z1.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
z1.prototype.onRowKeydown=function(a,b){var c=this,d;return y(function(e){switch(e.nextAddress){case 1:switch(b.keyCode){case 39:case 37:if(b.ctrlKey)break;a.type==="data"&&(c.toggleExpansion(a),b.preventDefault());a.type==="load-more-children"&&(PFb(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}e.jumpTo(3);break;case 2:return b.target.tagName!=="BUTTON"||b.shiftKey||b.metaKey?z(e,c.tableModel.isOneLineCreationSupported(),4):e.return();case 4:d=e.yieldResult;if(!d)return e.return();a.type===
"data"&&(b.shiftKey?iHb(c,a):FNd(c,a));a.type==="draft-issue"&&a.saving&&FNd(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);ce(e)}})};
var ENd=function(a,b,c){var d,e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1)return b.defaultPrevented||b.type==="mouseup"&&b instanceof MouseEvent&&b.button!==1?x.return():z(x,ie(c.issue$),2);d=x.yieldResult;r={};w=a.paths.createIssue((r.component=String((e=d)==null?void 0:e.snapshot[0].componentId),r.parentIssueId=c.ancestorChain.parentChain.nodeId,r.redirectUrl=ps.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=c.afterIssueId,r.title=c.title,r.priority=(k=(f=d)==null?void 0:f.snapshot[0].priority)!=
null?k:void 0,r.type=(l=(g=d)==null?void 0:g.snapshot[0].type)!=null?l:void 0,r));if(dq(b))return SFb(a,c),a.domSafe.openInNewTab(w),x.return();if(b&&b.shiftKey)return SFb(a,c),Cr(a.domSafe,w),x.return();Ct(a.router,w);ce(x)})},GNd=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return a.analytics.trackEvent("editIssue","update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),z(e,ie(a.rows$.pipe(A(function(f){return!f.find(function(g){return g.type==="data"&&
g.id===b.id})}),we(Boolean),xe(6E4))),2);cFb((d=a.focusManager.activeItem)==null?void 0:d.row,b)&&a.focusManager.setActiveItem(c);ce(e)})};
z1.prototype.unlinkFromParent=function(a){var b=this,c,d;return y(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;b.analytics.trackEvent("editIssue","update","unlink-child-issue");return z(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){Pr(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};z1.prototype.isOpen=function(a){return ko(a)};
z1.prototype.getAssigneeString=function(a){var b,c;return Dab(xm(a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.assigneeUser)||void 0)};
da.Object.defineProperties(z1.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(q(a));this.tableColumns=this.getRenderableColumns(this.dataColumns)}}});z1.\u0275fac=function(a){return new (a||z1)};
z1.\u0275cmp=D({type:z1,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&hg(VW,5);if(a&2){var c;lg(c=mg())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],options:"options"},standalone:!1,features:[Gg([YP]),Gf],decls:46,vars:16,consts:[["focusIndicator",""],["dragHandle",""],["saving",""],["mat-table","","multiTemplateDataRows",
"",1,"full-width",3,"dataSource","trackBy"],["matColumnDef","active-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","drag-handle"],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart",4,"matCellDef"],[3,"matColumnDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","empty-id"],["matColumnDef","menu"],["matColumnDef","save"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","load-more-children"],
["mat-cell","",3,"padding-left",4,"matCellDef"],["matColumnDef","editable-title"],["mat-header-row",""],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","selected","closed","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",3,"row","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","class","draft","cdkTrapFocus","",3,"row","keydown","keydown.escape","keydown.backspace","focusin",4,"matRowDef",
"matRowDefColumns","matRowDefWhen"],[1,"drag-preview"],[1,"placeholder"],[1,"insertion-bar"],["mat-header-cell",""],["tabindex","-1","mat-cell","",3,"click"],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart"],["svgIcon","drag-indicator",1,"icon-s"],["mat-cell",""],[3,"id"],[3,"expansionChange","onSaveOutput","onCancelOutput","isEditMode","issue","expandable","expanded","level"],[3,"issue"],["size","medium",3,"email"],[3,"issue","showPendingFix"],["buttonLabel","More options",
3,"click","menuItems"],["mat-cell","",1,"text-center"],["buttonLabel","More options",3,"menuItems"],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],[1,"flex-kids-x","align-items-center","gap-s"],["placeholder","Start typing the title...",1,"grow-1",3,"valueChange","commit","value","readonly"],["color","primary","format","fill","size","small","title","Create issue","matTooltip","(Shortcut: Enter)",3,"onAction","disabled"],["format","flat","size","small","title","Cancel","matTooltip",
"(Shortcut: Esc)",3,"onAction","disabled"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","",1,"clickable",3,"click","mouseup","focusin","keydown","row"],["mat-row","",3,"focusin","keydown","row"],["mat-row","","cdkTrapFocus","",1,"draft",3,"keydown","keydown.escape","keydown.backspace","focusin","row"]],template:function(a,b){a&1&&(K(0,"table",3),Uf(1,4),E(2,hFb,1,0,"th",5)(3,iFb,2,0,"td",6),Vf(),Uf(4,7),E(5,jFb,1,0,"th",5)(6,kFb,3,0,"td",8),Vf(),Uf(7,9),E(8,lFb,
2,0,"th",5)(9,mFb,2,1,"td",10),Vf(),Uf(10,11),E(11,nFb,2,0,"th",5)(12,oFb,2,0,"td",10),Vf(),Uf(13,9),E(14,pFb,2,0,"th",5)(15,qFb,4,9,"td",10),Vf(),Uf(16,9),E(17,rFb,2,0,"th",5)(18,sFb,3,3,"td",10),Vf(),Uf(19,9),E(20,vFb,3,1,"th",5)(21,BFb,3,1,"td",10),Vf(),Uf(22,9),E(23,CFb,2,0,"th",5)(24,DFb,3,4,"td",10),Vf(),Uf(25,9),E(26,EFb,2,0,"th",5)(27,FFb,3,3,"td",10),Vf(),Uf(28,12),E(29,GFb,1,0,"th",5)(30,IFb,3,4,"td",10),Vf(),Uf(31,13),E(32,JFb,1,0,"th",5)(33,OFb,5,1,"td",14),Vf(),Uf(34,15),E(35,QFb,6,7,
"td",16),Vf(),Uf(36,17),E(37,RFb,2,0,"th",5)(38,TFb,7,6,"td",16),Vf(),F(39,VFb,1,1,"tr",18),E(40,XFb,3,12,"tr",19)(41,YFb,1,4,"tr",20)(42,ZFb,1,2,"tr",21),L(),M(43,"div",22)(44,"div",23)(45,"div",24));a&2&&(I("dataSource",b.rows$)("trackBy",b.trackBy),B(7),I("matColumnDef",b.IssueFieldType.ISSUE_ID),B(6),I("matColumnDef",b.IssueFieldType.TITLE),B(3),I("matColumnDef",b.IssueFieldType.TYPE),B(3),I("matColumnDef",b.IssueFieldType.ASSIGNEE),B(3),I("matColumnDef",b.IssueFieldType.STATUS),B(3),I("matColumnDef",
b.IssueFieldType.TEAM),B(14),G(b.options.hideColumnHeaders?-1:39),B(),I("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(),I("matRowDefColumns",Hg(15,ANd))("matRowDefWhen",b.isLoadMoreRow),B(),I("matRowDefColumns",HNd(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Qy,Dy,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,oK,iA,QY,rW,MU,ayd,aX,xW,zW,iX,kX,oyd,tU,$T,VW,bV,Lx],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 bGb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(bGb,W);h=bGb.prototype;h.getFilename=function(){return vi(this,1)};h.setFilename=function(a){return pj(this,1,a)};h.getLineNumber=function(a){return Mw(this,2,a)};h.getChangeNumber=function(){return pn(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Ep(this,3)};h.setChangeNumber=function(a){return wn(this,3,a)};var dGb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dGb,W);var INd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,INd.messageId)};Y(INd,W);INd.messageId="b.MentionSearchResult";var JNd=function(){this.executor=p(dO)};JNd.\u0275fac=function(a){return new (a||JNd)};JNd.\u0275prov=Fc({token:JNd,factory:JNd.\u0275fac,providedIn:"root"});var A1=function(){this.mentionsApi=p(JNd);this.refreshMonitor=p(QP);this.analytics=p(aQ)},KNd=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=Zgd(a.refreshMonitor,pe(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:INd}).then(eGb).then(function(d){return{mentions:d,link:c}}).catch(function(){return{link:c}})}).pipe(zf({link:c}))).pipe(xf({refCount:!0,bufferSize:1})));return a.cachedEntry};
A1.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"};A1.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};A1.prototype.trackSqueegeeClick=function(){this.analytics.trackEvent("codeMentions","clickSqueegeeLink")};A1.\u0275fac=function(a){return new (a||A1)};A1.\u0275prov=Fc({token:A1,factory:A1.\u0275fac,providedIn:"root"});var LNd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LNd,W);var MNd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,MNd.messageId)};Y(MNd,W);h=MNd.prototype;h.getIssueId=function(){return pn(this,1,void 0,jb)};h.getIssueId_asString=function(){return un(this,1,void 0,jb)};h.setIssueId=function(a){return wn(this,1,a,void 0,jb)};h.getResponseId=function(){return vi(this,2,void 0,jb)};h.setResponseId=function(a){return pj(this,2,a,jb)};MNd.messageId="hmf.SendFeedbackRequest";var B1=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,B1.messageId)};Y(B1,W);B1.prototype.getIssueCategory=function(){return xi(this,1,void 0,jb)};B1.prototype.getIssueId=function(){return pn(this,2,void 0,jb)};B1.prototype.getIssueId_asString=function(){return un(this,2,void 0,jb)};B1.prototype.setIssueId=function(a){return wn(this,2,a,void 0,jb)};B1.messageId="hmf.GetIssueEligibilityResponse";var NNd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,NNd.messageId)};Y(NNd,W);h=NNd.prototype;h.getResponse=function(){return vi(this,1,void 0,jb)};h.hasResponse=function(){return im(this,1,jb)};h.getIssueCategory=function(){return xi(this,2,void 0,jb)};h.getResponseId=function(){return vi(this,3,void 0,jb)};h.setResponseId=function(a){return pj(this,3,a,jb)};h.getIssueId=function(){return pn(this,4,void 0,jb)};
h.getIssueId_asString=function(){return un(this,4,void 0,jb)};h.setIssueId=function(a){return wn(this,4,a,void 0,jb)};NNd.messageId="hmf.GetIssueHelpResponse";var C1=function(){this.executor=p(ZN)},ONd=function(a,b){return a.executor.get({url:"action/helpmefix/"+b,responseConstructor:NNd}).pipe(A(gGb),jf(function(){return ee({issueId:b,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};C1.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/helpmefix/"+a+"/eligibility",responseConstructor:B1}).pipe(A(hGb),jf(function(){return ee({issueId:a,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};
C1.prototype.sendFeedback=function(a,b){var c=this.executor,d=c.post;var e=(new MNd).setIssueId(b.issueId).setResponseId(b.responseId);var f=new LNd;b=Hn(f,1,pcd[b.userFeedback.sentiment]);e=Ni(e,LNd,3,b,jb);return d.call(c,{url:"action/helpmefix/"+a+"/feedback",body:e,responseConstructor:null})};C1.\u0275fac=function(a){return new (a||C1)};C1.\u0275prov=Fc({token:C1,factory:C1.\u0275fac,providedIn:"root"});var D1=function(){pO.call(this);this.api=p(C1);this.recordType="issueHelpMeFixEligibility";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.issueId===b.issueId}};Y(D1,pO);D1.prototype.fetchOne=function(a){return this.api.getIssueEligibility(Number(a))};D1.\u0275fac=function(a){return new (a||D1)};D1.\u0275prov=Fc({token:D1,factory:D1.\u0275fac,providedIn:"root"});var E1=function(){pO.call(this);this.api=p(C1);this.recordType="issueHelpMeFix";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.responseId===b.responseId}};Y(E1,pO);E1.prototype.fetchOne=function(a){return ONd(this.api,Number(a))};E1.\u0275fac=function(a){return new (a||E1)};E1.\u0275prov=Fc({token:E1,factory:E1.\u0275fac,providedIn:"root"});var F1=function(){var a=this;this.analytics=p(aQ);this.activeSession=p(qu);this.contextSensitiveRegistry=p(TQ);this.issueHelpMeFixFridge=p(E1);this.issueHelpMeFixEligibilityFridge=p(D1);this.helpMeFixApi=p(C1);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(Om),pf(),xf({bufferSize:1,refCount:!0}));this.isHelpMeFixEnabled$=ee(this.activeSession.getFlag("enableHelpMeFixSidebar")&&this.activeSession.isInternalSession()).pipe(xf({bufferSize:1,refCount:!0}));this.issueHelpMeFixEligibility$=
this.issueId$.pipe(Af(function(b){return b?a.issueHelpMeFixEligibilityFridge.watch(Number(b),{trustUncertainMemory:!0}):ee(void 0)}),xf({bufferSize:1,refCount:!0}));this.isEnabledForCurrentIssue$=this.isHelpMeFixEnabled$.pipe(Af(function(b){return b?a.issueId$.pipe(Af(function(c){return c?a.issueHelpMeFixEligibility$.pipe(A(function(d){return(d==null?void 0:d.issueCategory)!=="ISSUE_CATEGORY_UNSUPPORTED"})):ee(!1)}),xf({bufferSize:1,refCount:!0})):ee(!1)}));this.issueHelpMeFix$=this.isEnabledForCurrentIssue$.pipe(Af(function(b){return b?
a.issueId$.pipe(nf(1),Af(function(c){return c?a.issueHelpMeFixFridge.watch(Number(c),{trustUncertainMemory:!0}):ee(void 0)}),xf({bufferSize:1,refCount:!0})):ee(void 0)}))};
F1.prototype.trackImpression=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return z(e,ie(a.issueHelpMeFixEligibility$),2);if(e.nextAddress!=3)return b=e.yieldResult,z(e,ie(a.issueId$),3);c=e.yieldResult;a.analytics.trackEvent("helpMeFix","impressionOnIssueIdJson",JSON.stringify({issueCategory:(d=b)==null?void 0:d.issueCategory,issueId:c}));ce(e)})};
var PNd=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return z(e,ie(a.issueHelpMeFixEligibility$),2);if(e.nextAddress!=3)return b=e.yieldResult,z(e,ie(a.issueId$),3);c=e.yieldResult;a.analytics.trackEvent("helpMeFix","openOnIssueIdJson",JSON.stringify({issueCategory:(d=b)==null?void 0:d.issueCategory,issueId:c}));ce(e)})};
F1.prototype.trackThumbsUp=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.issueHelpMeFix$),2);if(g.nextAddress!=3)return b=g.yieldResult,c=Number,z(g,ie(a.issueId$),3);d=c(g.yieldResult);((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_POSITIVE"}}).pipe(nf(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsUpOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==null?void 0:
f.issueCategory,issueId:d}));ce(g)})};
F1.prototype.trackThumbsDown=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.issueHelpMeFix$),2);if(g.nextAddress!=3)return b=g.yieldResult,c=Number,z(g,ie(a.issueId$),3);d=c(g.yieldResult);((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_NEGATIVE"}}).pipe(nf(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsDownOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==null?
void 0:f.issueCategory,issueId:d}));ce(g)})};F1.\u0275fac=function(a){return new (a||F1)};F1.\u0275prov=Fc({token:F1,factory:F1.\u0275fac,providedIn:"root"});var G1=function(){var a=this;this.issueFullFridge=p(cQ);this.issueApi=p(GP);this.prompts=p(QNd);this.contextSensitiveRegistry=p(TQ);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(Qm),pf());this.issue$=this.issueId$.pipe(Af(function(c){return a.issueFullFridge.watch(c)}),we(Qm),pf(function(c,d){return c.issueId===d.issueId&&c.version===d.version}));this.summarizable$=this.issue$.pipe(Af(function(c){return RNd(a.prompts,c.issueId).pipe(A(function(d){return{issue:c,isSummarizable:d}}))}),
xf({refCount:!0,bufferSize:1}));this.pregeneratedSummary$=this.summarizable$.pipe(we(function(c){return c.isSummarizable}),Af(function(c){return a.getIssueSummary(c.issue,"COMMENTS_LONG")}),xf({refCount:!0,bufferSize:1}));this.generateSummaryRequested$=new wf(1);this.generatedSummary$=this.generateSummaryRequested$.pipe(Af(function(c){return SNd(a,c)}),xf({refCount:!0,bufferSize:1}));this.summary$=ve(this.pregeneratedSummary$,this.generatedSummary$).pipe(xf({refCount:!0,bufferSize:1}));this.stage$=
le([this.issueId$.pipe(zf(void 0)),this.issue$.pipe(zf(void 0)),this.pregeneratedSummary$.pipe(zf(void 0)),this.generateSummaryRequested$.pipe(zf(void 0)),this.generatedSummary$.pipe(zf(void 0))]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;d=d.next().value;return c&&e&&f&&f.issueId===c?f.summary?"SUMMARY_VISIBLE":g&&g.issueId===c&&g.version===e.version?!d||d.issueId!==c||d.issueVersion<e.version?"GENERATING":"SUMMARY_VISIBLE":"BUTTON":
"HIDDEN"}),xf({refCount:!0,bufferSize:1}));var b=p(Ee);this.stage$.pipe(Uj(b)).subscribe()},TNd=function(a){a.issue$.pipe(nf(1)).subscribe(function(b){a.generateSummaryRequested$.next(b)})};G1.prototype.getIssueSummary=function(a,b){return this.issueApi.getIssueSummary(a.issueId,b).pipe(jf(function(c){c.status!==404&&Xm("Error to get an issue summary: error: ",c);return ee({issueId:a.issueId,summaryType:b,issueVersion:a.version,summary:""})}))};
var SNd=function(a,b){return Ggd(a.issueApi,b.issueId).pipe(jf(function(c){Xm("Error to generate an issue summary: error: ",c);return ee({issueId:b.issueId,summaryType:"COMMENTS_LONG",issueVersion:b.version,summary:""})}))};G1.\u0275fac=function(a){return new (a||G1)};G1.\u0275prov=Fc({token:G1,factory:G1.\u0275fac,providedIn:"root"});
var QNd=function(){this.eventsForIssueFridge=p(IP)},RNd=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(A(function(c){return jGb(c)}),pf())};QNd.\u0275fac=function(a){return new (a||QNd)};QNd.\u0275prov=Fc({token:QNd,factory:QNd.\u0275fac,providedIn:"root"});var UNd={issueId:"",category:"issue-summary",displayName:"AI Summary",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},VNd={issueId:"",category:"help-me-fix",displayName:"Help me fix",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},WNd=["issue-summary","help-me-fix"],H1={},XNd=(H1.EVENT_TYPE_UNSPECIFIED="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",H1.EVENT_TYPE_THUMBS_UP="THUMBS_UP",H1.EVENT_TYPE_THUMBS_DOWN="THUMBS_DOWN",
H1.EVENT_TYPE_OPEN="OPEN",H1.EVENT_TYPE_CLOSE="CLOSE",H1.EVENT_TYPE_COPY="COPY",H1.EVENT_TYPE_CLOSE_AS_DUPLICATE="CLOSE_AS_DUPLICATE",H1.EVENT_TYPE_ISSUE_HOVERCARD="ISSUE_HOVERCARD",H1.EVENT_TYPE_GO_TO_ISSUE="GO_TO_ISSUE",H1.EVENT_TYPE_DELETE="DELETE",H1.EVENT_TYPE_VIEW="VIEW",H1.EVENT_TYPE_IMPRESSION="IMPRESSION",H1.EVENT_TYPE_COPY_DEEP_LINK="COPY_DEEP_LINK",H1.EVENT_TYPE_ACCEPT="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",H1.EVENT_TYPE_PARTIALLY_ACCEPT="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",H1.EVENT_TYPE_REJECT=
"ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",H1.EVENT_TYPE_FEEDBACK="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",H1.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",H1),I1=function(){var a=this;this.contextSensitiveRegistry=p(TQ);this.issueEnrichmentFridge=p(MP);this.enrichmentCategoryFridge=p(rP);this.activeSession=p(qu);this.llmIssueSummaryService=p(G1);this.helpMeFixService=p(F1);this.commentFormatter=p(bR);this.enrichmentApi=p(uO);this.issueUserEventsService=p(fW);this.issueId$=
this.contextSensitiveRegistry.getIssueId().pipe(we(Qm),pf());this.baseEnrichments$=this.issueId$.pipe(Af(function(b){return a.issueEnrichmentFridge.watch(b)}),A(function(b){var c;return((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){var e;return(e=d.general)==null?void 0:e.content})}));this.categoryDisplayNames$=this.baseEnrichments$.pipe(Af(function(b){b=b.map(function(c){return c.category});return a.enrichmentCategoryFridge.watchSet(b)}),A(function(b){var c=new Map;b=m(b);for(var d=
b.next();!d.done;d=b.next())d=d.value,c.set(d.name,d.displayName);return c}));this.issueSummaryEnrichment$=le([this.llmIssueSummaryService.summarizable$,this.llmIssueSummaryService.stage$]).pipe(Cf(function(b){var c=m(b);b=c.next().value;c=c.next().value;b.isSummarizable&&a.activeSession.isInternalSession()&&c==="BUTTON"&&TNd(a.llmIssueSummaryService)}),Af(function(b){b=m(b);var c=b.next().value;b.next();return c.isSummarizable&&a.activeSession.isInternalSession()?a.llmIssueSummaryService.summary$.pipe(A(function(d){return d.summary?
Object.assign({},UNd,{issueId:c.issue.issueId,general:{content:d.summary,formattedContent:{markdownFormat:d.formattedSummary}}}):Object.assign({},UNd,{issueId:c.issue.issueId})}),zf(Object.assign({},UNd,{issueId:c.issue.issueId}))):ee(void 0)}));this.helpMeFixAsyncContent$=this.helpMeFixService.issueHelpMeFix$.pipe(Af(function(b){if(b==null||!b.response){var c={content:"",formattedContent:{markdownFormat:{content:Bh("HelpMeFix did not return a response")}}};return ee(c)}return a.commentFormatter.format({comment:b.response,
formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"help_me_fix"}).pipe(A(function(d){return{content:b.response,formattedContent:d}}))}));this.helpMeFixEnrichment$=this.helpMeFixService.isEnabledForCurrentIssue$.pipe(Af(function(b){return b&&a.activeSession.isInternalSession()?a.issueId$.pipe(nf(1),Af(function(c){return ee(Object.assign({},VNd,{issueId:c,asyncContent:a.helpMeFixAsyncContent$}))})):ee(void 0)}));this.issueEnrichments$=le([this.baseEnrichments$,this.categoryDisplayNames$,this.issueSummaryEnrichment$,
this.helpMeFixEnrichment$]).pipe(A(function(b){var c=m(b);var d=c.next().value;var e=c.next().value;b=c.next().value;c=c.next().value;d=d.map(function(f){var g;return Object.assign({},f,{displayName:(g=e.get(f.category))!=null?g:f.category})});b&&d.push(b);c&&d.push(c);return d}))};
I1.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c){var d=this;return y(function(e){return e.nextAddress==1?c==="issue-summary"?z(e,YNd(d,b),0):c==="help-me-fix"?z(e,ZNd(d,b),0):z(e,ie(d.issueUserEventsService.logIssueUserEventForIssueEnrichment(a,"FEATURE_INSIGHT",b,c)),6):z(e,d.submitEnrichmentFeedback(a,c,b),0)})};
I1.prototype.submitEnrichmentFeedback=function(a,b,c){var d=this,e;return y(function(f){e=XNd[c];return e==="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED"?f.jumpTo(0):z(f,ie(d.enrichmentApi.submitEnrichmentFeedback({issueId:a,category:b,feedbackType:e})),0)})};
var YNd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.llmIssueSummaryService.summary$),2);if(c=d.yieldResult){var e=a.issueUserEventsService;var f=c.issueId,g=c.summaryType,k=c.modelVersion,l=c.issueVersion;var r=new eW;g=(new evd).setSummaryType(acd[g]).setModelVersion(k).setIssueVersion(l);r=Yo(r,1,fvd,g);e=e.logIssueUserEvent(f,"FEATURE_SUMMARY",b,r);d=z(d,ie(e),0)}else d=d.jumpTo(0);return d})},ZNd=function(a,b){return y(function(c){switch(c.nextAddress){case 1:switch(b){case "EVENT_TYPE_IMPRESSION":return c.jumpTo(2);
case "EVENT_TYPE_THUMBS_UP":return c.jumpTo(3);case "EVENT_TYPE_THUMBS_DOWN":return c.jumpTo(4);case "EVENT_TYPE_VIEW":return c.jumpTo(5)}c.jumpTo(0);break;case 2:return z(c,a.helpMeFixService.trackImpression(),7);case 7:c.jumpTo(0);break;case 3:return z(c,a.helpMeFixService.trackThumbsUp(),8);case 8:c.jumpTo(0);break;case 4:return z(c,a.helpMeFixService.trackThumbsDown(),9);case 9:c.jumpTo(0);break;case 5:return z(c,PNd(a.helpMeFixService),10);case 10:c.jumpTo(0)}})};
I1.\u0275fac=function(a){return new (a||I1)};I1.\u0275prov=Fc({token:I1,factory:I1.\u0275fac,providedIn:"root"});var J1=function(){var a=this;this.paramsService=p(SQ);this.issueRelationshipsFridge=p(iQ);this.issueFullFridge=p(cQ);this.issueFridge=p(TP);this.codeMentions=p(A1);this.eventsForIssue=p(IP);this.activeSession=p(qu);this.issueEnrichmentService=p(I1);this.id$=this.paramsService.issueId$.pipe(we(Qm),of(1E3));this.issue$=this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.issueEvents$=this.id$.pipe(Af(function(b){return a.eventsForIssue.watch(b)}),A(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.blockerIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}),pf(mm));this.blockedIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),pf(mm));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}),pf(mm));this.childrenIds$=this.id$.pipe(Af(function(b){return a.issueRelationshipsFridge.watch(b)}),
A(function(b){var c;return(c=b==null?void 0:b.relatedChildren.map(function(d){return d.targetIssueId}))!=null?c:[]}));this.duplicateIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}),pf(mm));this.blockersDualCount$=le([this.id$,this.blockerIssueIds$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return $Nd(a,b,c,["BLOCKED_BY"])}),xf({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(A(lGb),
xf({bufferSize:1,refCount:!0}));this.blockedDualCount$=le([this.id$,this.blockedIssueIds$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return $Nd(a,b,c,["BLOCKING"])}),xf({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(A(lGb),xf({bufferSize:1,refCount:!0}));this.childrenDualCount$=le([this.id$,this.childrenIds$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return $Nd(a,b,c,["CHILDREN"])}),xf({bufferSize:1,refCount:!0}));
this.countChildrenDisplay$=this.childrenDualCount$.pipe(A(lGb),xf({bufferSize:1,refCount:!0}));this.parentsDualCount$=le([this.id$,this.parentIds$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return $Nd(a,b,c,["PARENT"])}),xf({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(A(lGb),xf({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=le([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(Af(function(b){var c=m(b);b=c.next().value;
var d=c.next().value;c=c.next().value;return $Nd(a,b,[].concat(q(c),q(d)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(A(lGb),xf({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=le([this.id$,this.duplicateIssueIds$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return $Nd(a,b,c,["DUPLICATE"])}),xf({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(A(function(b){return b.total}),A(mGb),xf({bufferSize:1,
refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.relatedLinks)!=null?c:[]}),A(function(b){return a.activeSession.isInternalSession()?b:b.filter(function(c){return!U8a(c)})}),A(function(b){return Ft(b.length)}),A(mGb),xf({bufferSize:1,refCount:!0}));this.countInsightsDisplay$=this.issueEnrichmentService.issueEnrichments$.pipe(A(function(b){return Ft(b.length)}),A(mGb),xf({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(we(Qm),
Af(function(b){return KNd(a.codeMentions,b)}),A(function(b){var c,d;return Ft((d=(c=b.mentions)==null?void 0:c.totalMentions)!=null?d:0)}),A(mGb),xf({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(A(function(b){return Ft(b.filter(ho).length)}),A(mGb),xf({bufferSize:1,refCount:!0}))},$Nd=function(a,b,c,d){d=d===void 0?[]:d;c=vq(c);if(!b||c.length===0)return ee({open:{count:0,exact:!0},total:{count:0,exact:!0}});d=d.map(function(e){return nGb(b,e)}).filter(Qm).map(function(e){return"("+
e+")"}).join(" OR ");return c.length>99&&d?a.issueFridge.watchMany({filter:d,pageSize:100}).pipe(A(function(e){e=e.results.filter(ko).filter(FUa).length;return{open:Ft(e),total:Ft(c.length)}})):le(c.map(function(e){return a.issueFullFridge.watch(e)})).pipe(A(function(e){return{open:Ft(e.filter(Qm).filter(ko).filter(FUa).length),total:Ft(e.filter(function(f){return!f||FUa(f)}).length)}}))};J1.\u0275fac=function(a){return new (a||J1)};J1.\u0275prov=Fc({token:J1,factory:J1.\u0275fac,providedIn:"root"});var K1=function(){Z.call(this);var a=this;this.issueFullFridge=p(cQ);this.butterBar=p(QN);this.analytics=p(aQ);this.refreshMonitor=p(QP);this.contextSensitiveRegistry=p(TQ);this.issuePermissionService=p(WQ);this.issuePicker=p(XX);this.errorHandler=p(kO);this.counts=p(J1);this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(Af(function(b){return b?a.issueFullFridge.watch(b):ee(void 0)}));this.filters=[];this.shouldResetFilters=new XP;this.tableColumns=[].concat(q(nGd));
this.initialSort={column:"STATUS",direction:"ASCENDING"};this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.blockerIds$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0]}),A(function(b){var c,d;return(d=b==null?void 0:(c=b.blockedByIssueId)==null?void 0:c.map(String))!=null?d:[]}));this.blockersCount$=this.blockerIds$.pipe(Af(function(b){return b.length===0?ee(0):a.counts.blockersDualCount$.pipe(A(function(c){return c.total.count}))}));this.showBlockersTable$=this.blockersCount$.pipe(A(function(b){return b>
0}),zf(!0));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Remove blocker",action:function(){aOd(a,b)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Ef(this.blockerIds$)).subscribe(function(b){b=m(b);b.next();b=b.next().value;if(b!=null){b=m(b);for(var c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}}))};Y(K1,Z);K1.\u0275dir=Z.\u0275dir;
var vGb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.issueId$),2);b=c.yieldResult;if(b==null)return c.return();a.analytics.trackEvent("editIssue","update","add-blocker");return z(c,a.issuePicker.open({title:"Add Blockers of "+b,allowMultipleIds:!0,edgeType:"blocker"},function(d){bOd(a,b,d)}),0)})},bOd=function(a,b,c){y(function(d){return c.length===0?d.return():z(d,a.issueFullFridge.addBlockedBy(b,c).catch(function(e){mO(a.errorHandler,e)}),0)})},aOd=function(a,b){var c,
d;y(function(e){switch(e.nextAddress){case 1:return z(e,ie(a.issueId$),2);case 2:c=e.yieldResult;if(c==null)return e.return();a.analytics.trackEvent("editIssue","update","remove-blocker");Yd(e,3);return z(e,a.issueFullFridge.removeBlockedBy(c,[b]),5);case 5:bt(e,0);break;case 3:d=be(e),a.butterBar.showWarning("Could not remove blocker "+b+". "+(Rp(d)?Sp(d):d)),ce(e)}})};K1.\u0275fac=function(a){return new (a||K1)};
K1.\u0275cmp=D({type:K1,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&hg($Z,5);if(a&2){var c;lg(c=mg())&&(b.issuesTable=c.first)}},inputs:{filters:"filters"},outputs:{shouldResetFilters:"shouldResetFilters"},standalone:!1,features:[Gf],decls:15,vars:12,consts:[["addBlocker",""],[1,"table-header","blockers-count","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use blockers for issues that are preventing this issue from being resolved.",
1,"b-chip","nowrap","bad","squared","xs","keep-focus-ring"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[1,"muted"],[4,"ngTemplateOutlet"],[3,"issueIds","tableColumns","menuItemFactory","filters","initialSort","options"],[1,"emoji"],["type","button",1,"subtle-link","unstyled",3,"click"],["size","small","title","Mark an existing issue as blocker",1,"add",3,"onAction","disabled"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"h4",2)(2,"div",3),M(3,"mat-icon",4),L(),Q(4),T(5,"async"),L(),F(6,pGb,1,
1,"ng-container"),T(7,"async"),L(),F(8,rGb,2,3),T(9,"async"),Lf(10,tGb,6,1,"div"),F(11,uGb,4,2,"p",5),T(12,"async"),E(13,wGb,3,3,"ng-template",null,0,Mg));if(a&2){var c;B(4);S(" Blockers ",U(5,4,b.counts.countBlockersDisplay$)," ");B(2);G(U(7,6,b.showBlockersTable$)?6:-1);B(2);G(U(9,8,b.showBlockersTable$)?8:10);B(3);G((c=U(12,10,b.issuesTable==null?null:b.issuesTable.hiddenRowCount$))?11:-1,c)}},dependencies:[Kx,Dy,oK,iA,MU,$Z,Lx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    b-issues-table[_ngcontent-%COMP%] {\n      display: block;\n      overflow-x: auto;\n    }"],
changeDetection:0});var M1=function(){Z.apply(this,arguments);this.routerEvents=p($P);this.documentVisibility=p(L1);this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1};Y(M1,Z);M1.\u0275dir=Z.\u0275dir;
M1.prototype.install=function(){var a=this;$2a()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(function(){cOd(a)})),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){cOd(a);a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(we(function(b){return b!==
"visible"}),nf(1)).subscribe(function(){a.tabWasHidden=!0})))};
var cOd=function(a){a.ignoringNextNav||($gd("appNavStart"),a.mostRecentlyMeasured="")},dOd=function(a,b){$gd(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)&&$2a())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)}}};
M1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(M1)))(b||M1)}}();M1.\u0275prov=Fc({token:M1,factory:M1.\u0275fac,providedIn:"root"});var L1=function(){var a=this;this.window=p(hR);this.visibilityState$=re(this.window.document,"visibilityChange").pipe(zf(void 0),A(function(){return a.currentVisibility}))};da.Object.defineProperties(L1.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});
L1.\u0275fac=function(a){return new (a||L1)};L1.\u0275prov=Fc({token:L1,factory:L1.\u0275fac,providedIn:"root"});var eOd=function(){this.imageUrls=p(YV);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};eOd.\u0275fac=function(a){return new (a||eOd)};
eOd.\u0275cmp=D({type:eOd,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&&(K(0,"h1",0),Q(1,"About Dependencies"),L(),K(2,"div",1)(3,"div",2),M(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),L(),K(8,"article")(9,"p",5),Q(10," Children are used to separate a large work item (like a project) into smaller pieces. Blockers indicate that something prevents work from starting on this issue. "),K(11,"a",6),Q(12,"Learn more"),L()()()(),K(13,
"div",7)(14,"button",8),Q(15,"Ok"),L()());a&2&&(B(4),I("src",b.EMPTY_CHILD_LIGHT,Pe),B(),I("src",b.EMPTY_BLOCKER_LIGHT,Pe),B(),I("src",b.EMPTY_CHILD_DARK,Pe),B(),I("src",b.EMPTY_BLOCKER_DARK,Pe))},dependencies:[gB,cB,RA,TA,VA,UA],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 N1=function(){Z.call(this);var a=this;this.issueFullFridge=p(cQ);this.butterBar=p(QN);this.analytics=p(aQ);this.refreshMonitor=p(QP);this.issueRelationshipsFridge=p(iQ);this.ROUTES=ps;this.parentIssueIds$=new Nj([]);this.filters=[];this.tableColumns=[].concat(q(nGd));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Unlink parent",action:function(){return fOd(a,b)},title:"Unlink parent",icon:"link"}]};this.showError=
function(b){return function(c){a.butterBar.showWarning(b+". "+(Rp(c)?Sp(c):c))}};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var b=m(a.parentIssueIds$.value),c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}))};Y(N1,Z);N1.\u0275dir=Z.\u0275dir;N1.prototype.ngOnInit=function(){};
var fOd=function(a,b){var c;return y(function(d){a.analytics.trackEvent("editIssue","update","remove-parent");c=a.issueId;return z(d,a.issueRelationshipsFridge.unlinkFromParent(c,b).catch(a.showError("Failed to unlink child "+c+" from parent "+b)),0)})};da.Object.defineProperties(N1.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$}}});
N1.\u0275fac=function(a){return new (a||N1)};
N1.\u0275cmp=D({type:N1,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&hg($Z,5);if(a&2){var c;lg(c=mg())&&(b.issuesTable=c.first)}},inputs:{parentIds:"parentIds",filters:"filters",issueId:"issueId"},standalone:!1,features:[Gf],decls:2,vars:3,consts:[[3,"issueIds","tableColumns","options","filters","issueUrlFactory","menuItemFactory"]],template:function(a,b){a&1&&(F(0,xGb,1,6,"b-issues-table",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.parentIssueIds$))?0:-1,c)}},dependencies:[$Z,Lx],
encapsulation:2,changeDetection:0});var O1=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 XP;this.onConfirm=new XP;this.onCancel=new XP;this.internalSelectedOptions=new XQ};O1.prototype.confirm=function(a){this.onConfirm.emit(new Set(this.internalSelectedOptions));a.close()};O1.prototype.cancel=function(a){this.onCancel.emit();a.close()};
da.Object.defineProperties(O1.prototype,{selectedOptions:{configurable:!0,enumerable:!0,set:function(a){this.internalSelectedOptions.reset(a)}}});O1.\u0275fac=function(a){return new (a||O1)};
O1.\u0275cmp=D({type:O1,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();K(0,"button",2,0);T(2,"async");N("click",function(){u(c);var d=qg(1),e;(e=d.isOpen)!=null&&e?d.close():d.open();return v()});M(3,"mat-icon",3);F(4,zGb,2,3);L();K(5,"onedev-popup-panel",4,1)(7,"div",5);F(8,AGb,2,1,"h1",6);Of(9,DGb,7,5,"div",7,Nf);F(11,
EGb,6,2);L()()}a&2&&(a=qg(6),wg("large",b.buttonSize==="large")("small",b.buttonSize==="small"),I("onedevPopupPanelTriggerFor",a)("color",b.showActiveState&&U(2,12,b.internalSelectedOptions.size$)?"primary":null)("matTooltip",b.buttonTooltip),Kf("aria-label",b.buttonAriaLabel),B(3),I("svgIcon",b.buttonSvgIcon),B(),G(b.showActiveState?4:-1),B(4),G(b.overlayTitle?8:-1),B(),Pf(b.options),B(2),G(b.showActionButtons?11:-1))},dependencies:[Dy,gB,cB,eB,fL,aI,aK,oK,iA,uW,vW,Lx],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 gOd=function(){return[]},MGb=function(a){return{filteredCount:a}},P1=function(){Z.call(this);var a=this;this.brain=p(UQ);this.issuePicker=p(XX);this.issueRelationshipsFridge=p(iQ);this.issueFullFridge=p(cQ);this.router=p(YE);this.routePerformance=p(M1);this.element=p(Jd);this.analytics=p(aQ);this.issuePermissionService=p(WQ);this.activeSession=p(qu);this.counts=p(J1);this.matDialog=p(QA);this.butterBar=p(QN);this.makeIlpUrlForParentIssue=lvb;this.recallFilters=uo("deps-filters");this.saveFilters=
vo("deps-filters");this.isThinking$=le([this.issueFullFridge.saving$,this.issueRelationshipsFridge.saving$]).pipe(A(function(b){return b.some(Boolean)}));this.issueId$=this.brain.id$.pipe(we(Qm),A(Eab));this.issue$=this.brain.issueJs$.pipe(we(Qm));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}));this.parentIssues$=this.parentIds$.pipe(Af(function(b){return a.issueFullFridge.watchSet(b)}));this.parentsCount$=this.parentIssues$.pipe(A(function(b){return b.filter(FUa).length}));
this.childrenIds$=this.issueId$.pipe(Af(function(b){return a.issueRelationshipsFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.relatedChildren.map(function(d){return d.targetIssueId}))!=null?c:[]}));this.totalDaysOpen$=this.issue$.pipe(A(function(b){var c,d;return((c=io(b))==null?void 0:(d=c.effort)==null?void 0:d.totalOpen)||0}));this.totalDaysComplete$=this.issue$.pipe(A(function(b){var c,d;return((c=io(b))==null?void 0:(d=c.effort)==null?void 0:d.totalComplete)||0}));this.unarchivedChildIssueCount$=
this.childrenIds$.pipe(A(function(b){return b.length}));this.isNonPublicSession=this.activeSession.isNonPublicSession();this.isInternalSession=this.activeSession.isInternalSession();this.totalDaysCount$=le([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b+c}));this.totalDaysDisplayPercent$=eHb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=le([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(A(function(b){var c=
m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return fHb(Math.round(b*100)/100)+" completed | "+fHb(Math.round(d*100)/100)+" open | "+c+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new sf;this.issueFilters=new XQ;this.ISSUE_FILTER_OPTIONS=[{key:ot.OPEN.key,title:ot.OPEN.displayAs,description:"Hides closed issues"},{key:ot.ASSIGNED_TO_ME.key,title:ot.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];ie(wZa("b-issue-relations-table tr .mat-column-title a",
this.element.nativeElement).pipe(Bf(ve(this.destroyed$,this.rowCreated$)))).then(function(){var b=function(){dOd(a.routePerformance,"issue-details-w-tree")};requestAnimationFrame(b);setTimeout(b)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(qvb))}catch(b){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(b){a.saveFilters([].concat(q(b)))}))};Y(P1,Z);P1.\u0275dir=Z.\u0275dir;
var aHb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return a.analytics.trackEvent("editIssue","update","add-parent"),z(d,ie(a.issue$),2);b=d.yieldResult;c=b.issueId;return z(d,a.issuePicker.open({title:"Add Parent to b/"+c,allowMultipleIds:!1,edgeType:"parent"},function(e){hOd(a,c,e)}),0)})},hOd=function(a,b,c){var d=m(c).next().value;var e,f,g,k;y(function(l){if(l.nextAddress==1)return(e=d)?z(l,a.issueRelationshipsFridge.assignParentToOneIssue(e,b),2):l.return();f=l.yieldResult;
g=f.errors;return((k=g)==null?0:k.length)?(a.butterBar.showWarning("Could not add parent"),l.return()):z(l,a.issueFullFridge.poke(b),0)})};P1.prototype.shouldResetFilters=function(){this.issueFilters.reset([])};P1.prototype.addChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||a.addExistingChild()};P1.prototype.createChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||iHb(a)};
P1.prototype.openLearnMore=function(){this.matDialog.open(eOd,{maxWidth:"1300px",width:"90%"})};P1.\u0275fac=function(a){return new (a||P1)};
P1.\u0275cmp=D({type:P1,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(hg(z1,5),hg(K1,5),hg(N1,5));if(a&2){var c;lg(c=mg())&&(b.relationsTable=c.first);lg(c=mg())&&(b.blockersTable=c.first);lg(c=mg())&&(b.parentsTable=c.first)}},standalone:!1,features:[Gf],decls:15,vars:13,consts:[["filterInfo",""],["addParent",""],["addChildren",""],["progressHovercard","onedevHovercard"],["effortHovercard","onedevHovercard"],[1,"status","flex-kids-x","gap-s","align-items-center","justify-flex-end"],
["buttonSize","small","buttonSvgIcon","filter-alt","buttonTooltip","Filter issues","buttonAriaLabel","Filter issues","overlayTitle","Only show issues that are",3,"onChange","options","selectedOptions","showActionButtons","showActiveState"],["type","button","mat-icon-button","","matTooltip","Learn more","aria-label","Open dialog to learn more about the Dependencies tab",1,"small",3,"click"],["svgIcon","info",1,"icon-s"],[1,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],
[1,"table-header","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status",1,"b-chip","nowrap","squared","xs","keep-focus-ring"],["svgIcon","arrow_upward_24px",1,"icon-xxs"],[3,"issueId","parentIds","filters"],[3,"shouldResetFilters","filters"],[1,"table-header","child-issue-header","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use child issues to break down this issue into smaller units of work.",1,"b-chip",
"nowrap","squared","xs","keep-focus-ring"],["svgIcon","account_tree_24px",1,"icon-xxs"],[1,"progress-header"],[1,"margin-s-bottom",3,"id"],[3,"rootIssueId","filters","saveExpansionAtKey"],[4,"ngTemplateOutlet"],[1,"muted"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-x","align-items-center"],[1,"margin-s-right"],[1,"label"],[1,"progress","margin-s-right",3,"onedevHovercardTrigger"],[1,"completion"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","progress-hover-card"],
["svgIcon","info","aria-hidden","false","aria-label","The progress of child issues takes into consideration all child issues and descendant issues\n                  which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is\n                  not reflected in the progress bar.",1,"icon-s",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-body"],[1,"margin-s-top"],["title","View the search results page for this issue and all descendants",3,"href"],["type","button",
1,"subtle-link","unstyled",3,"click"],["size","small","title","Add a parent of the current issue",1,"add",3,"onAction","disabled"],["size","small","title","Create an issue as a child",1,"add",3,"disabled"],["size","small","title","Add an existing issue as a child",1,"add",3,"onAction","disabled"],["size","small","title","Create an issue as a child",1,"add",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"div",5);F(1,FGb,1,0,"b-spinner");T(2,"async");K(3,"select-menu",6);T(4,
"async");N("onChange",function(f){u(c);return v(b.issueFilters.reset(f))});L();K(5,"button",7);N("click",function(){u(c);return v(b.openLearnMore())});M(6,"mat-icon",8);L()();F(7,YGb,40,47,"div",9);T(8,"async");E(9,$Gb,1,1,"ng-template",null,0,Mg)(11,bHb,3,3,"ng-template",null,1,Mg)(13,dHb,4,4,"ng-template",null,2,Mg)}if(a&2){var d;B();G(U(2,6,b.isThinking$)?1:-1);B(2);var e;I("options",b.ISSUE_FILTER_OPTIONS)("selectedOptions",(e=U(4,8,b.issueFilters.value$))!=null?e:Hg(12,gOd))("showActionButtons",
!1)("showActiveState",!0);B(4);G((d=U(8,10,b.issueId$))?7:-1,d)}},dependencies:[Kx,Dy,DK,LK,gB,eB,oK,iA,MU,O1,$T,o1,K1,z1,N1,Lx,Rx],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 iOd=function(){};iOd.\u0275fac=function(a){return new (a||iOd)};iOd.\u0275mod=cf({type:iOd});iOd.\u0275inj=Hc({imports:[RO,iB,gL,bK,pK,HX]});var Q1=function(){};Q1.\u0275fac=function(a){return new (a||Q1)};Q1.\u0275mod=cf({type:Q1});Q1.\u0275inj=Hc({imports:[Zy,nI,By,RO,xE,MK,iB,MJ,Y0,OX,yL,pK,yE,FZ,KX,NU,AX,Z0,LX,iOd,uU,bU,s1,WW,iV]});var R1=function(){Z.apply(this,arguments);var a=this;this.prefsService=p(q1);this.issueFullFridge=p(cQ);this.savedSearchFridge=p(kP);this.analytics=p(aQ);this.activeSession=p(qu);this.TREE_COLUMNS=[].concat(q(rGd));this.TREE_OPTIONS=Object.assign({},tGd);this.isInternalSession=this.activeSession.isInternalSession();this.refreshWorkArea=new sf;this.hideRecentActivity=!1;this.typeAndId$=new Nj([void 0,void 0]);this.typeAndId$.pipe(Af(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)&&
b==="savedsearch"?a.savedSearchFridge.watch(c):ee(void 0)}));this.issue$=this.typeAndId$.pipe(Af(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)&&b==="issue"?a.issueFullFridge.watch(c):ee(void 0)}));this.issueFilter$=this.typeAndId$.pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b==="issue")return"parentid:"+c+"+ | id:"+c;if(b==="savedsearch")return"savedsearchid:"+c;if(b==="hotlist")return"hotlistid:"+c}),A(function(b){if(b!==void 0){var c;if((c=a.activeSession.getTracker())==
null?0:c.trackerId){var d;b+=" trackerid:"+((d=a.activeSession.getTracker())==null?void 0:d.trackerId)}return b}}))};Y(R1,Z);R1.\u0275dir=Z.\u0275dir;R1.prototype.ngOnInit=function(){var a=this;this.refreshWorkArea.pipe(Bf(this.destroyed$)).subscribe(function(){a.typeAndId$.next([a.entityType,a.referencedId])})};R1.prototype.getFilters=function(){return CMd(this.prefsService,this.entityReference)};R1.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
da.Object.defineProperties(R1.prototype,{reference:{configurable:!0,enumerable:!0,set:function(a){this.entityReference=a;this.referencedId=mt(a);this.entityType=nt(a);this.analytics.trackEvent("missionControl","view","work-area-"+this.entityType);this.typeAndId$.next([this.entityType,this.referencedId])}}});R1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(R1)))(b||R1)}}();
R1.\u0275cmp=D({type:R1,selectors:[["one-work-area"]],viewQuery:function(a,b){a&1&&hg(z1,5);if(a&2){var c;lg(c=mg())&&(b.relationsTable=c.first)}},inputs:{reference:"reference",refreshWorkArea:"refreshWorkArea",hideRecentActivity:"hideRecentActivity",numRecentActivityEvents:"numRecentActivityEvents",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,features:[Gf],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,pHb,4,2);if(a&2){var c;G((c=b.referencedId)?0:-1,c)}},styles:["[_nghost-%COMP%] { display: block; }"]});var jOd=Object.assign({},sGd,{showActiveIndicator:!1,showMenu:!1,showTrending:!0}),kOd={column:"MODIFIED_TIME",direction:"DESCENDING"},S1=function(){var a=this;this.prefsService=p(q1);this.activeSession=p(qu);this.issueFridge=p(TP);this.DEFAULT_COLUMNS=[].concat(q(pGd));this.PROGRESS_COLUMNS=[].concat(q(qGd));this.TABLE_OPTIONS=Object.assign({},jOd);this.INITIAL_SORT=kOd;this.isInternalSession=this.activeSession.isInternalSession();this.searchString$=new Nj(void 0);this.issueQuery$=this.searchString$.pipe(A(qHb));
this.issueIds$=this.issueQuery$.pipe(Af(function(b){return a.issueFridge.watchMany(b)}),A(function(b){if(a.entityType==="issue")return b.results;var c;return ind(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}),A(function(b){return b.map(function(c){return c.issueId})}))};S1.prototype.getFilters=function(){return this.prefKey==null?[]:CMd(this.prefsService,this.prefKey)};S1.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
da.Object.defineProperties(S1.prototype,{searchString:{configurable:!0,enumerable:!0,set:function(a){this.searchString$.next(a!=null?a:void 0)}}});S1.\u0275fac=function(a){return new (a||S1)};
S1.\u0275cmp=D({type:S1,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,rHb,4,9),F(1,tHb,2,3));a&2&&(G(b.isInternalSession?0:-1),B(),G(b.showTable()?
1:-1))},dependencies:[n1,IMd,$Z,Lx],styles:["[_nghost-%COMP%] { display: block; }"]});var EHb=function(a,b){return b.workAreaUrl},T1=function(){Z.call(this);var a=this;this.prefsService=p(q1);this.issueFullFridge=p(cQ);this.hotlistFridge=p(gP);this.savedSearchFridge=p(kP);this.hotlistPicker=p(IY);this.issuePicker=p(XX);this.savedSearchPicker=p(m1);this.analytics=p(aQ);this.clipboard=p(kR);this.butterBar=p(QN);this.parentIssueSuggestions=p(FMd);this.imageUrls=p(YV);this.activeSession=p(qu);this.refreshData=new sf;this.SECTION_SLUG="work-areas-wrapper-card";this.EMPTY_STATE_IMG=this.imageUrls.WORK_AREA_EXAMPLE_ILLUSTRATION;
this.inferEntityType=nt;this.makeBuganizerUrl=kvb;this.makeIlpUrlForParentIssue=lvb;this.getEntityTypeName=jvb;this.extractLastDigits=mt;this.suggestions=[];this.titles={};var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.INITIAL_TAB_INDEX=BMd(this.prefsService,"work-areas-wrapper-card");this.workAreaReferences$=this.prefsService.prefs$.pipe(A(function(d){var e;return(e=d==null?void 0:d.workAreaUrls)!=null?e:[]}));this.issues$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return nt(e)===
"issue"})}),A(function(d){return d.map(mt)}),pf(mm),A(function(d){return d.filter(Qm)}),Af(function(d){return a.issueFullFridge.watchSet(d)}));this.hotlists$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return nt(e)==="hotlist"})}),A(function(d){return d.map(mt)}),pf(mm),A(function(d){return d.filter(Qm)}),Af(function(d){return a.hotlistFridge.watchSet(d)}));this.savedSearches$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return nt(e)==="savedsearch"})}),
A(function(d){return d.map(mt)}),pf(mm),A(function(d){return d.filter(Qm)}),Af(function(d){return a.savedSearchFridge.watchSet(d)}));this.refsForTemplate$=this.workAreaReferences$.pipe(kf(this.issues$),Bf(this.destroyed$),A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;return d.map(function(g){var k=f.find(function(l){return l.issueId===g});return{workAreaUrl:g,trackerId:k==null?void 0:k.trackerId}})}));this.issues$.pipe(Bf(this.destroyed$)).subscribe(this.updateTitlesForIssues.bind(this));
this.hotlists$.pipe(Bf(this.destroyed$)).subscribe(this.updateTitlesForHotlists.bind(this));this.savedSearches$.pipe(Bf(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(","));te(2E3).pipe(Af(function(){return a.parentIssueSuggestions.suggestions$}),
Bf(this.destroyed$),nf(1)).subscribe(function(d){var e=3;e=e===void 0?3:e;if(d.length!==0){var f=d.slice(0,e*2),g=[].concat(q(f));if(!(f.length<=1))for(f=g.length-1;f>0;--f){var k=Math.floor(Math.random()*(f+1)),l=g[f];g[f]=g[k];g[k]=l}e=g.slice(0,e);d=d[0];e.includes(d)||(e.pop(),e.unshift(d));d=e}a.suggestions=d;a.workAreaReferences.length===0&&(d=d.length,a.analytics.trackEvent("missionControl","suggestions-shown",String(d),d))})};Y(T1,Z);T1.\u0275dir=Z.\u0275dir;h=T1.prototype;
h.toggleCollapsed=function(){this.prefsService.toggleCollapsed("work-areas-wrapper-card")};h.ariaLabelForToggleButton=function(){return this.isCollapsed?"Expand work areas section":"Collapse work areas section"};h.updateTitlesForIssues=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.titles[b.issueId]=(c=b.snapshot[0])==null?void 0:c.title}};
h.updateTitlesForHotlists=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[gvb(b.hotlistId)]=b.name};h.updateTitlesForSavedSearches=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[hvb(b.searchId)]=b.name};
var lOd=function(a){var b,c,d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return b=a.workAreaReferences.filter(function(x){return nt(x)==="hotlist"}).map(mt).map(Number),z(w,HCd(a.hotlistPicker,b,ee([])),2);c=w.yieldResult;f=((e=(d=c)==null?void 0:d.hotlistDiff.added)!=null?e:[]).map(gvb);l=((k=(g=c)==null?void 0:g.hotlistDiff.removed)!=null?k:[]).map(gvb);r=a.workAreaReferences.slice();r=x_a(l,r);r=A_a(f,r);Gt(a.prefsService,{workAreaUrls:r});ce(w)})},mOd=function(a){var b;return y(function(c){if(c.nextAddress==
1)return z(c,a.issuePicker.open({title:"Choose a parent issue",allowMultipleIds:!0}),2);b=c.yieldResult;b!=null&&DMd(a.prefsService,b);ce(c)})},HHb=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&&DMd(a.prefsService,b)},nOd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.savedSearchPicker.open(),2);b=f.yieldResult;d=(c=b)!=null?c:[];if(d.length===0)return f.return();
e=d.map(hvb);DMd(a.prefsService,e);ce(f)})};da.Object.defineProperties(T1.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")}}});T1.\u0275fac=function(a){return new (a||T1)};
T1.\u0275cmp=D({type:T1,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("is-empty",b.isEmpty)("collapsed",b.isCollapsed)},inputs:{refreshData:"refreshData"},standalone:!1,features:[Gf],decls:18,vars:3,consts:[["addMenu","matMenu"],["editMenu","matMenu"],["issueHovercard","onedevHovercard"],[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",
"matTooltip","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",1,"info","margin-s-left"],["type","button","mat-icon-button","",1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],["type","button","mat-stroked-button","","title","Add a work area",1,"small","add-work-area","margin-s-left",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"click"],["gmat-tabs","",1,"main-content","margin-s-top",3,"selectedIndex"],
[1,"flex-kids-y","align-items-center","text-align-center","empty-state","main-content"],["svgIcon","add",1,"icon-s"],["gmat-tabs","",1,"main-content","margin-s-top",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["matTabContent",""],[3,"trackerId","compactMode"],["type","button","mat-icon-button","","aria-label","More options","aria-haspopup","true",1,"small","muted","menu-trigger",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical",1,"icon-xs"],["data-test","edit-menu",
1,"foo"],["mat-menu-item","","title","View the work area full screen",3,"routerLink"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click","disabled"],["svgIcon","arrow-backward",1,"icon-s"],["svgIcon","arrow-forward",1,"icon-s"],["type","button","mat-menu-item","",3,"click","title"],["svgIcon","close",1,"icon-s"],["mat-menu-item","","title","View the issue details page",3,"routerLink"],["svgIcon","link",1,"icon-s"],["mat-menu-item","","title","View the search results page for this issue and all descendants",
3,"href"],["svgIcon","copy",1,"icon-s"],[1,"margin-top",3,"reference","refreshWorkArea"],[1,"inline-block","pos-rel"],["aria-hidden","true","alt","",3,"src"],[1,"pos-abs","work-area-suggestions"],[1,"type-l","muted","margin-y","match-image-width"],["type","button","mat-flat-button","","color","primary","title","Add a work area",3,"matMenuTriggerFor"],["svgIcon","add"],[1,"unstyled"],["tabindex","0",1,"elevated","rounded","padded-s","margined-s","slide-in",3,"title"],["tabindex","0",1,"elevated","rounded",
"padded-s","margined-s","slide-in",3,"click","title"],[1,"line-clamp-2"],[1,"muted","type-s",3,"onedevHovercardTrigger"],[3,"issueId"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"header",4)(2,"h3",5);Q(3," Work areas ");L();M(4,"mat-icon",6);K(5,"button",7);N("click",function(){u(c);return v(b.toggleCollapsed())});M(6,"mat-icon",8);L();F(7,uHb,3,1,"button",9);K(8,"mat-menu",null,0)(10,"button",10);N("click",function(){u(c);return v(mOd(b))});Q(11,"Issue (parent/child project)");L();
K(12,"button",10);N("click",function(){u(c);return v(lOd(b))});Q(13,"Hotlist");L();K(14,"button",10);N("click",function(){u(c);return v(nOd(b))});Q(15,"Saved Search");L()()();F(16,FHb,4,3,"mat-tab-group",11)(17,KHb,9,3,"section",12);L()}a&2&&(B(5),Kf("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.workAreaReferences.length>0?7:-1),B(9),G(b.workAreaReferences.length>0?16:17))},dependencies:[Dy,$E,OJ,YG,WG,aH,gB,cB,eB,aK,wL,nL,qL,rL,sL,oK,iA,PW,DK,LK,$V,R1,Lx],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 U1=function(){};U1.\u0275fac=function(a){return new (a||U1)};U1.\u0275mod=cf({type:U1});U1.\u0275inj=Hc({imports:[RO,PJ,Fy,iB,bK,yL,pK,s1,Z0,yMd,Q1,k1,AX,MK,JX]});Doa(R1,[gB,cB,o1,JMd,z1,j1,S1],[Lx]);var oOd=function(){};oOd.\u0275fac=function(a){return new (a||oOd)};oOd.\u0275mod=cf({type:oOd});oOd.\u0275inj=Hc({imports:[RO,xE,yU,yL,pK,iB,uM,yE,k1,bU,U1]});var pOd=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 XP;this.prevPage=new XP;this.pageSizeChange=new XP};pOd.prototype.ngOnInit=function(){};pOd.\u0275fac=function(a){return new (a||pOd)};
pOd.\u0275cmp=D({type:pOd,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,MHb,8,1),K(1,"span",1)(2,"strong"),Q(3),L(),F(4,NHb,4,1,"span"),K(5,"span"),Q(6," of "),K(7,"strong"),Q(8),L()(),K(9,"button",2),N("click",function(){return b.prevPage.emit()}),M(10,"mat-icon",3),L(),K(11,"button",2),N("click",function(){return b.nextPage.emit()}),M(12,"mat-icon",4),L()());a&2&&(G(b.showPageSizeSelector?0:-1),B(3),yg(b.startIndex),B(),G(b.endIndex!=null?4:-1),B(4),yg(b.totalNumber),B(),I("matTooltip",b.previousPageLabel)("disabled",
!b.hasPreviousPage),B(2),I("matTooltip",b.nextPageLabel)("disabled",!b.hasNextPage))},dependencies:[Dy,gB,eB,OJ,YG,WG,aH,oK,iA],styles:["[_nghost-%COMP%] {\n      display: flex;\n      align-items: center;\n    }\n    .page-number[_ngcontent-%COMP%] {\n      white-space: nowrap;\n    }"]});var aIb=function(a,b){return{issueIds:a,teamId:b}},jIb=function(){return[]},kIb=function(){return{}},WHb=function(a,b){return b.key},V1=function(){Z.call(this);var a=this;this.activeSession=p(qu);this.paramsService=p(SQ);this.appSearchState=p(oT);this.userPreferencesManager=p(dR);this.imageUrls=p(YV);this.teamExperimentalFieldsFridge=p(OQ);this.triageService=p(TR);this.punctualService=p(mY);this.issueFridge=p(TP);this.issueFullFridge=p(cQ);this.bLocation=p(ZT);this.refreshMonitor=p(QP);this.issueExperimentalFieldsFridge=
p(PP);this.starredTeamsService=p(QR);this.teamsService=p(KQ);this.ROUTES=ps;this.TriageServiceMode=rmd;this.SUBPHASE_TO_DISPLAY_NAME=yld;this.LAST_30_DAYS=Wld.LAST_30_DAYS;this.EMPTY_STATE_IMG=this.imageUrls.EMPTY_TRIAGE;this.HOTKEYS=Vr;this.RIGHT_SIDEBAR_MIN_WIDTH=650;this.RIGHT_SIDEBAR_MAX_WIDTH=1400;this.selectedFilterKeys=new XQ;this.teamId=this.paramsService.params.teamId;this.triageId=this.paramsService.params.triageId;this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();
this.phase$=gkd(this.paramsService,"phase").pipe(A(function(d){var e;return(e=Bld.get(d))!=null?e:"NEW"}),pf());this.subphase$=gkd(this.paramsService,"subphase").pipe(A(function(d){var e;return(e=Ald.get(d))!=null?e:void 0}),pf());this.pageSize$=this.userPreferencesManager.resultsPerPage$;this.pageNumber$=new Nj(1);this.activeSort$=new Nj(void 0);this.data=this.triageService.triageDataFactory.get(this.teamId,this.triageId);this.phaseData$=this.phase$.pipe(A(function(d){return a.data.phase(d)}));this.allIssuesInPhase$=
this.phaseData$.pipe(Af(function(d){return d.issues$}));this.allIssuesInSubphase$=le([this.allIssuesInPhase$,this.subphase$]).pipe(A(function(d){var e,f=m(d);d=f.next().value;return(e=f.next().value)?d.filter(function(g){return Fr(g)===e}):d}));this.selectedFilters$=this.selectedFilterKeys.value$.pipe(A(function(d){return[].concat(q(d)).map(function(e){return Wld[e]})}));this.alerts$=this.phase$.pipe(A(function(d){return rIb.get(d)}));this.trendingThemes$=this.allIssuesInSubphase$.pipe(A(function(d){return n7a(d)}));
this.filteredIssuesInPhase$=le([this.allIssuesInSubphase$,this.selectedFilters$,this.alerts$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return oIb(d,f,e)}));this.filteredTotalRowCount$=le([this.filteredIssuesInPhase$,this.trendingThemes$]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;return d.length+e.length}),xf({refCount:!0,bufferSize:1}));this.startIndex$=le([this.pageSize$,this.pageNumber$]).pipe(A(function(d){var e=m(d);d=e.next().value;
return(e.next().value-1)*d+1}),xf({refCount:!0,bufferSize:1}));this.endIndex$=le([this.pageSize$,this.startIndex$,this.filteredTotalRowCount$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Math.min(f+d-1,e)}),xf({refCount:!0,bufferSize:1}));this.sortedFilteredIssueIdsInPhase$=le([this.filteredIssuesInPhase$,this.trendingThemes$,this.activeSort$,this.phase$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;var g=e.next().value;e=e.next().value;
return qIb(d,f,g,e)}),xf({refCount:!0,bufferSize:1}));this.issueIdsToRender$=le([this.sortedFilteredIssueIdsInPhase$,this.startIndex$,this.endIndex$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return d.slice(f-1,e)}),pf(mm),xf({refCount:!0,bufferSize:1}));this.availableFiltersInCurrentPhase$=le([this.phase$,this.allIssuesInSubphase$,this.trendingThemes$]).pipe(A(function(d){var e=m(d);d=e.next().value;var f=e.next().value;var g=e.next().value;var k;return((k=
Vld.get(d))!=null?k:[]).map(function(l){var r=f.filter(l.check).length;l.key==="NEEDS_ATTENTION"&&(r+=g.length);return Object.assign({},l,{count:r})})}),A(function(d){return d.filter(function(e){return e.count||a.selectedFilterKeys.has(e.key)})}));this.issueAlertsForCurrentPhase$=this.phase$.pipe(A(function(d){return rIb.get(d)}));this.issues$=this.issueIdsToRender$.pipe(Af(function(d){return a.issueFridge.watchSet(d.flat())}));this.customFieldConfigs$=pmd(this.data).pipe(we(Qm));this.tableOptions$=
le([this.issues$,this.customFieldConfigs$]).pipe(A(function(d){d=m(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:wo(e.customFieldId)}})}}));this.teamExperimentalFields$=this.teamExperimentalFieldsFridge.watch(this.teamId);this.tableColumns$=le([this.teamExperimentalFields$,
this.phase$]).pipe(A(function(d){var e=m(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(q(Fld[e]));var f,g=(f=d==null?void 0:d.displayColumns)!=null?f:[];(g==null?void 0:g.length)>0&&(e=g);return d!=null&&d.showComponentColumn?e:e.filter(function(k){return k.type!=="COMPONENT_PATH"})}));var b;this.sidebarWidthPreference$=new Nj(Math.max(this.RIGHT_SIDEBAR_MIN_WIDTH,(b=ndd("triage-sidebar-width")())!=null?b:0));this.sidebarWidth$=
le([this.triageService.isSidebarOpen$,this.sidebarWidthPreference$]).pipe(A(function(d){var e=m(d);d=e.next().value;e=e.next().value;return d?e:0}));this.subphases$=this.phase$.pipe(A(function(d){return xld[d]}));this.subphaseDisplayName$=this.subphase$.pipe(A(function(d){return d?yld[d]:"All subphases"}));this.subphaseSelectorTooltip$=this.subphase$.pipe(A(function(d){return d?"Showing issues in the "+yld[d].toLowerCase()+" subphase.":"Showing issues in all subphases"}));this.starred$=this.starredTeamsService.starredTriageViews$.pipe(A(function(d){return d.some(function(e){return e.triageId===
a.triageId&&e.teamId===a.teamId})}));this.savingStar=!1;this.selectedIssues=new rz(!0,[]);this.punctualSubscriptions=new Rd;var c=p(aQ);this.subscriptions.add(this.phase$.subscribe(function(){a.selectedFilterKeys.reset([Wld.LAST_30_DAYS.key])}));this.subscriptions.add(this.data.allIssues$.subscribe(function(d){for(var e=m(d.entries()),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;$Ua(f,d)&&Hld.add(g.issueId)}}));this.subscriptions.add(this.issueIdsToRender$.subscribe(function(d){qOd(a,
d)}));this.subscriptions.add(this.phaseData$.pipe(Af(function(d){return d.totalCount$.pipe(A(function(e){return[e,d.phase]}))}),nf(1)).subscribe(function(d){var e=m(d);d=e.next().value;e=e.next().value;c.trackEvent("triageIssue","ISSUE_COUNT_"+e,a.teamId+":"+a.triageId,d)}))};Y(V1,Z);V1.\u0275dir=Z.\u0275dir;
var qOd=function(a,b){a.punctualSubscriptions.unsubscribe();a.punctualSubscriptions=new Rd;b=m(b);for(var c=b.next(),d={};!c.done;d={issueId$jscomp$388:void 0},c=b.next())d.issueId$jscomp$388=c.value,Array.isArray(d.issueId$jscomp$388)||(a.punctualSubscriptions.add(a.punctualService.watch("issue-edit",d.issueId$jscomp$388).subscribe(function(e){return function(){a.issueFullFridge.poke(e.issueId$jscomp$388,{trustMemory:!1})}}(d))),a.punctualSubscriptions.add(a.punctualService.watch("issue-experimental-field-edit",
d.issueId$jscomp$388).subscribe(function(e){return function(){a.issueExperimentalFieldsFridge.poke(e.issueId$jscomp$388,{trustMemory:!1})}}(d))))};V1.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};V1.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.punctualSubscriptions.unsubscribe()};
var iIb=function(a,b){a.triageService.mode!==1&&(a.triageService.setIssueIds(b),a.triageService.openSidebar())},rOd=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,ie(a.userPreferencesManager.saveResultsPerPage(b)),2);a.pageNumber$.next(1);ce(c)})};V1.prototype.onSortChange=function(a){this.activeSort$.next(a)};
V1.prototype.onColumnsChange=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,ie(b.teamExperimentalFields$),2);d=(c=f.yieldResult)!=null?c:{id:b.teamId,triage:[{id:wo(b.triageId)}],playbooks:[]};e=d.triage.findIndex(function(g){return""+g.id===b.triageId});if(e===-1)return f.return();d.triage[e].displayColumns=a;return z(f,ie(Xjd(b.teamsService,d)),0)})};
V1.prototype.toggleStar=function(){var a=this;return y(function(b){if(b.nextAddress==1)return a.savingStar=!0,z(b,$ld(a.starredTeamsService,a.triageId,a.teamId),2);a.savingStar=!1;ce(b)})};V1.prototype.refreshTable=function(){this.refreshMonitor.refreshRequest.next();this.data.reload();this.selectedIssues.clear()};
var RHb=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.phase$),2);c=g.yieldResult;d=Dt[c];e=b&&zld[b];f=ps.viewTriage.makeHref(a.teamId,a.triageId,d,e);return z(g,a.bLocation.setUrl(f,!0),0)})};V1.\u0275fac=function(a){return new (a||V1)};
V1.\u0275cmp=D({type:V1,selectors:[["b-triage-phase"]],standalone:!1,features:[Gf],decls:54,vars:64,consts:[["subphaseMenu","matMenu"],["issuesTable",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"medium",3,"onHotkey","click","hotkey"],["color","primary","svgIcon","refresh",1,"icon-m"],[3,"starClicked","starred","disabled","starMessage","unStarMessage"],
[1,"margin-none","nowrap"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"flex-kids-x","align-items-center","gap-s"],["type","button","mat-stroked-button","","color","neutral",1,"small","gmat-button",3,"matMenuTriggerFor","matTooltip"],[1,"margin-xs-right"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item",""],[1,"margin-left-auto",3,"pageSizeChange","prevPage","nextPage","showPageSizeSelector","startIndex","endIndex","totalNumber",
"hasPreviousPage","hasNextPage","pageSize"],[1,"flex-kids-x"],["href","http://go/b-triage-docs","target","_blank","mat-icon-button","","aria-label","More info about the new triage UI","matTooltip","More info about the new triage UI",1,"medium","gfx-muted","settings-btn"],["svgIcon","info",1,"icon-s"],["mat-icon-button","","aria-label","Configure triage for your team","matTooltip","Configure triage for your team",1,"medium","gfx-muted","settings-btn",3,"href"],["svgIcon","settings",1,"icon-s"],["mode",
"indeterminate"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],[1,"flex-1","pos-rel","overflow","overflow-on-print-media"],["direction","rtl",3,"widthChanged","minWidth","maxWidth","size"],[3,"refreshable"],[1,"type-xs","flex-kids-x","align-items-center"],[1,"b-chip","xs","alert-chip"],["aria-label","Select filter",1,"padded-s-sides",3,"multiple"],["aria-label","Select filter",1,"padded-s-sides",3,"change","multiple"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshTable"],[3,"issueIds","tableColumns","editableColumns","options","teamId","showReadStatus","alerts"],[1,"full-height","flex-kids-y","align-items-center","justify-content-center","gap"],[3,"activeIssueChange","rowClick","selectedIssuesChange","sortChange","columnsChange","issueIds","tableColumns","editableColumns","options","teamId","showReadStatus","alerts"],["aria-hidden","true","alt","","height","232","width","321",3,"src"]],template:function(a,
b){if(a&1){var c=t();K(0,"div",2)(1,"header",3)(2,"button",4);N("onHotkey",function(){u(c);return v(b.refreshTable())})("click",function(){u(c);return v(b.refreshTable())});M(3,"mat-icon",5);L();K(4,"b-star-toggle",6);T(5,"async");N("starClicked",function(){u(c);return v(b.toggleStar())});L();K(6,"h2",7);Q(7);T(8,"async");L();M(9,"mat-icon",8);F(10,QHb,9,7,"div",9);T(11,"async");M(12,"mat-icon",8);K(13,"button",10);T(14,"async");K(15,"span",11);Q(16);T(17,"async");L();M(18,"b-icon",12);L();K(19,"mat-menu",
null,0)(21,"button",13);N("click",function(){u(c);return v(RHb(b))});Q(22,"All subphases");L();M(23,"hr");Of(24,SHb,2,1,"button",14,Nf);T(26,"async");L();K(27,"b-paginator",15);T(28,"async");T(29,"async");T(30,"async");T(31,"async");T(32,"async");T(33,"async");T(34,"async");T(35,"async");N("pageSizeChange",function(C){u(c);return v(rOd(b,C))})("prevPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value-1);return v()})("nextPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value+1);return v()});
L();K(36,"div",16)(37,"a",17);M(38,"mat-icon",18);L();K(39,"a",19);M(40,"mat-icon",20);L()()();F(41,THb,1,0,"mat-progress-bar",21);T(42,"async");K(43,"div",22)(44,"div",23);F(45,ZHb,2,3);T(46,"async");F(47,bIb,1,5,"ng-container");T(48,"async");L();K(49,"b-resizable-sidebar",24);T(50,"async");N("widthChanged",function(C){u(c);C<b.RIGHT_SIDEBAR_MIN_WIDTH||(b.sidebarWidthPreference$.next(C),odd("triage-sidebar-width")(C));return v()});E(51,hIb,2,3,"ng-template",25);L()()();E(52,nIb,2,1,"ng-template",
null,1,Mg)}if(a&2){var d,e,f,g;a=qg(20);B(2);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);B(2);I("starred",U(5,28,b.starred$))("disabled",b.savingStar)("starMessage","Star this team to add it to the Triage section on the left sidebar")("unStarMessage","Unstar this team to remove it from the Triage section on the left sidebar");B(3);S(" ",U(8,30,b.data.triageName$)," ");B(3);G((d=U(11,32,b.phaseData$))?10:-1,d);B(3);I("matTooltip",Dg(U(14,34,b.subphaseSelectorTooltip$)))("matMenuTriggerFor",a);B(3);yg(U(17,
36,b.subphaseDisplayName$));B(8);Pf(U(26,38,b.subphases$));B(3);wg("invisible",!((e=U(28,40,b.issueIdsToRender$))==null?0:e.length));var k,l,r,w;I("showPageSizeSelector",!0)("startIndex",(k=U(29,42,b.startIndex$))!=null?k:1)("endIndex",(l=U(30,44,b.endIndex$))!=null?l:0)("totalNumber",(r=U(31,46,b.filteredTotalRowCount$))!=null?r:0)("hasPreviousPage",U(32,48,b.pageNumber$)>1)("hasNextPage",U(33,50,b.filteredTotalRowCount$)>U(34,52,b.endIndex$))("pageSize",(w=U(35,54,b.pageSize$))!=null?w:0);B(12);
I("href",b.ROUTES.editTeam.makeHref(b.teamId,"triage"),Pe);B(2);G(U(42,56,b.data.isLoading$)?41:-1);B(4);G(((f=U(46,58,b.allIssuesInSubphase$))==null?0:f.length)?45:-1);B(2);G((g=U(48,60,b.issueIdsToRender$))?47:-1,g);B(2);var x;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("maxWidth",b.RIGHT_SIDEBAR_MAX_WIDTH)("size",(x=U(50,62,b.sidebarWidth$))!=null?x:0);B(2);I("refreshable",b.triageService.currentIssueIds$)}},dependencies:[Kx,Dy,gB,cB,eB,NK,VK,UK,OJ,YG,WG,aH,rvd,eJ,oK,iA,mU,pT,$Z,n_,RY,o_,pOd,rU,qU,
FY,Lx],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 W1=function(){};W1.\u0275fac=function(a){return new (a||W1)};W1.\u0275mod=cf({type:W1});W1.\u0275inj=Hc({});var X1=function(){};X1.\u0275fac=function(a){return new (a||X1)};X1.\u0275mod=cf({type:X1});X1.\u0275inj=Hc({imports:[RO,DU,iB,pK,W1]});var sOd=function(){};sOd.\u0275fac=function(a){return new (a||sOd)};sOd.\u0275mod=cf({type:sOd});sOd.\u0275inj=Hc({imports:[RO,iB,PJ,pK]});var tOd=function(){};tOd.\u0275fac=function(a){return new (a||tOd)};tOd.\u0275mod=cf({type:tOd});tOd.\u0275inj=Hc({imports:[RO,xE,iB,YK,PJ,MX,yU,pK,nU,DU,Z0,$Ld,FU,sOd,yE,k1,uU,bU,X1]});var Y1=function(){var a=this;this.teamsService=p(KQ);this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new XP;this.onEmptyQuery=new XP;this.searchQuery$=new sf;this.teamSuggestions$=this.searchQuery$.pipe(lf(300),pf(),Af(function(b){return MQ(a.teamsService,b)}),A(function(b){return b.map(function(c){return new tIb(c.pathIds,c.pathNames,c.description)})}))};Y1.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};
Y1.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};Y1.prototype.displayFn=function(a){return a?a.name:""};Y1.prototype.ngAfterViewInit=function(){};Y1.\u0275fac=function(a){return new (a||Y1)};
Y1.\u0275cmp=D({type:Y1,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&hg(RX,7);if(a&2){var c;lg(c=mg())&&(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();K(0,"div",2)(1,"input",3,0);N("click",function(){u(c);var d=qg(2);return v(b.search(d.value))})("input",function(){u(c);var d=qg(2);return v(b.search(d.value))});L();K(3,"mat-autocomplete",
4,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Of(5,wIb,7,7,"mat-option",5,Nf);T(7,"async");L()()}a&2&&(a=qg(4),B(),I("placeholder",Dg(b.placeholder))("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",a),Kf("aria-disabled",b.disabled),B(2),I("panelWidth",b.panelWidth)("displayWith",b.displayFn),B(2),Pf(U(7,8,b.teamSuggestions$)))},dependencies:[TX,QX,cA,RX,oK,iA,yj,$D,gE,Lx,Xx],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 tIb=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 uOd(a.slice(0,e+1),b.slice(0,e+1))})},uOd=function(a,b){this.pathIds=a;this.pathNames=b;this.name=b.length>0?b[b.length-1]:"";this.pathNameText=b.join(" > ")};var Z1=function(){Z.apply(this,arguments);var a=this;this.teamExperimentalFieldsFridge=p(OQ);this.teamsService=p(KQ);this.starredTeamsService=p(QR);this.teamUserActivity=p(PR);this.selectedTeam$=new Nj(null);this.suggestedTeams$=this.teamUserActivity.mostActiveTeams$;this.starInProgress={};this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.tableColumns=["starred","triageName","teamName","scope"];this.populateEmptyExperiments=Ud(A(function(b){b=m(b);var c=b.next().value;b.next().value.forEach(function(d){c.has(d)||
c.set(d,{id:d,triage:[{id:0}],playbooks:[]})});return c}));this.suggestedTeamIds$=this.suggestedTeams$.pipe(A(function(b){return b.map(function(c){return c.teamId})}));this.starredAndSuggestedTeamIds$=le([this.starredTriageViews$,this.suggestedTeamIds$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;c=new Set(c);b=m(b);for(var d=b.next();!d.done;d=b.next())c.add(d.value.teamId);return[].concat(q(c))}));this.teamIdToTeamExperiments$=this.starredAndSuggestedTeamIds$.pipe(Af(function(b){return a.teamExperimentalFieldsFridge.watchSet([].concat(q(b))).pipe(A(function(c){return new Map(c.map(function(d){return[d.id,
d]}))}))}),kf(this.starredAndSuggestedTeamIds$),this.populateEmptyExperiments);this.teamIds$=this.teamIdToTeamExperiments$.pipe(A(function(b){return[].concat(q(b.keys()))}));this.teamIdToTriageViews$=this.teamIdToTeamExperiments$.pipe(A(function(b){return mUa(b,function(c){return fo(c.triage,function(d){return d.id.toString()})})}));this.teamsIdToTeamName$=this.teamIds$.pipe(Af(function(b){return Vjd(a.teamsService,b).pipe(A(function(c){var d=new Map;c=m(c);for(var e=c.next();!e.done;e=c.next()){var f=
m(e.value);e=f.next().value;f=f.next().value;d.set(e,f.name)}return d}))}));this.starredTeamIdToTriageIds$=this.starredTriageViews$.pipe(A(function(b){var c=new Map;b=m(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.teamId;e=e.triageId;var f=void 0,g=(f=c.get(d))!=null?f:new Set;g.add(e);c.set(d,g)}return c}));this.defaultTriageViewList$=le([this.teamIdToTriageViews$,this.teamsIdToTeamName$,this.starredTeamIdToTriageIds$,this.suggestedTeamIds$]).pipe(A(function(b){var c=m(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=m(d);for(var g=d.next();!g.done;g=d.next()){var k=m(g.value);g=k.next().value;var l=k=k.next().value;k=c.has(g);var r=void 0,w=(r=b.get(g))!=null?r:g;l=m(l);for(r=l.next();!r.done;r=l.next()){var x=m(r.value);r=x.next().value;x=x.next().value;var C=void 0,H=void 0,J=(H=(C=e.get(g))==null?void 0:C.has(r))!=null?H:!1;if(k||J)C=void 0,f.push({teamId:g,teamName:w,triageId:r,triageName:Gr(w,x),scope:(C=x.scope)!=null?C:""})}}return f}));
this.selectedTeamExperiment$=this.selectedTeam$.pipe(Af(function(b){return b===null?ee(void 0):a.teamExperimentalFieldsFridge.watch(b.id)}));this.selectedTeamTriageRows$=le([this.selectedTeam$,this.selectedTeamExperiment$]).pipe(A(function(b){b=m(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:Gr(c.name)}]:b.triage.map(function(d){var e;return{teamId:c.id,teamName:c.name,triageId:d.id.toString(),triageName:Gr(c.name,d),scope:(e=
d.scope)!=null?e:""}})}));this.triageRows$=le([this.defaultTriageViewList$,this.selectedTeamTriageRows$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return c.length?c:b}))};Y(Z1,Z);Z1.\u0275dir=Z.\u0275dir;Z1.prototype.getTriageLink=function(a,b){return ps.viewTriage.makeHref(b,a)};Z1.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a&&d.teamId===b})};Z1.prototype.onTeamSelect=function(a){this.selectedTeam$.next(a)};
Z1.prototype.toggleStar=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return z(e,$ld(c.starredTeamsService,a,b),3)}c.starInProgress[d]=!1;ce(e)})};Z1.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(Z1)))(b||Z1)}}();
Z1.\u0275cmp=D({type:Z1,selectors:[["ng-component"]],standalone:!1,features:[Gf],decls:15,vars:11,consts:[[1,"pos-fill","overflow","overflow-on-print-media"],[1,"border-bottom","padded-sides"],[1,"main-content","padded"],[1,"margin-bottom","team-picker-container"],[3,"onTeamSelect","onEmptyQuery","teamSelected","panelWidth","placeholder"],[1,"margin-bottom"],["mat-table","",1,"full-width",3,"dataSource","fixedLayout"],["matColumnDef","starred"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell",
"",4,"matCellDef"],["matColumnDef","triageName"],["mat-cell","","class","triage-name",4,"matCellDef"],["matColumnDef","teamName"],["mat-cell","","class","team-name-2",4,"matCellDef"],["matColumnDef","scope"],["mat-cell","","class","scope",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","-1",3,"starClicked","disabled","starred","starMessage","unStarMessage"],["mat-cell","",1,
"triage-name"],[1,"hover-link",3,"href"],["mat-cell","",1,"team-name-2"],["mat-cell","",1,"scope"],["mat-header-row",""],["mat-row",""]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1)(2,"h2"),Q(3," Search triage view "),L()(),K(4,"div",2)(5,"div",3)(6,"b-team-picker",4),T(7,"async"),N("onTeamSelect",function(d){return b.onTeamSelect(d)})("onEmptyQuery",function(){b.selectedTeam$.next(null)}),L()(),K(8,"div",5)(9,"h3"),F(10,xIb,1,0),T(11,"async"),Lf(12,yIb,1,0),L(),F(13,LIb,3,3),T(14,"async"),
L()()());if(a&2){var c;B(6);I("teamSelected",U(7,5,b.selectedTeam$))("panelWidth","400px")("placeholder","Search by team name or id");B(4);G(U(11,7,b.selectedTeam$)?10:12);B(3);G((c=U(14,9,b.starredTriageViews$))?13:-1,c)}},dependencies:[XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,$T,FY,Y1,Lx],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 a2=function(){};a2.\u0275fac=function(a){return new (a||a2)};a2.\u0275mod=cf({type:a2});a2.\u0275inj=Hc({imports:[RO,VX,gL,pK,xE]});var vOd=function(){};vOd.\u0275fac=function(a){return new (a||vOd)};vOd.\u0275mod=cf({type:vOd});vOd.\u0275inj=Hc({imports:[RO,iB,OX,pK,bU,X1,WW,a2]});var wOd=function(){};wOd.\u0275fac=function(a){return new (a||wOd)};wOd.\u0275mod=cf({type:wOd});wOd.\u0275inj=Hc({imports:[RO,oOd,tOd,vOd,tMd]});var xOd=function(){this.roundCorners=this.showDividers=!1};xOd.\u0275fac=function(a){return new (a||xOd)};
xOd.\u0275cmp=D({type:xOd,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),dg(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 b2=function(){this.constants=p(bS);this.activeSession=p(qu);this.STATUS_JS_FULL_TEXT=Am;this.STATUSES=Rmd;this.SEVERITIES_VALUES=Wmd;this.PRIORITIES_VALUES=Qmd;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new XP;this.onQuickBulkEdit=new XP;this.onBulkEditIssueRelation=new XP;this.onBulkMarkIssueRead=new XP;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};h=b2.prototype;h.bulkEdit=function(a){this.onBulkEdit.emit(a)};
h.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};h.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:b===void 0?!0:b})};h.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};h.getIssueTypes=function(){return this.constants.editIssueTypeChoices.filter(function(a){return a.value!=="VULNERABILITY"})};b2.\u0275fac=function(a){return new (a||b2)};
b2.\u0275cmp=D({type:b2,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();K(0,"b-button-group");F(1,MIb,4,2,"button",9);K(2,"button",10);N("click",function(){u(c);return v(b.bulkMarkIssueRead())});Q(3);L();F(4,NIb,4,2,"button",9);F(5,OIb,4,2,"button",9);L();K(6,"mat-menu",null,0)(8,"button",11);N("click",function(){u(c);return v(b.bulkEdit("ASSIGNEE"))});Q(9,"Assignee");L();K(10,"button",11);N("click",function(){u(c);return v(b.bulkEdit("COMPONENT"))});Q(11,"Component");L();K(12,"button",12);Q(13,"Priority");L();K(14,"button",12);
Q(15,"Severity");L();K(16,"button",12);Q(17,"Status");L();K(18,"button",12);Q(19,"Type");L();K(20,"button",11);N("click",function(){u(c);return v(b.bulkEdit("VERIFIER"))});Q(21,"Verifier");L();K(22,"button",11);N("click",function(){u(c);return v(b.bulkEdit("REPORTER"))});Q(23,"Reporter");L();K(24,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CHANGELIST"))});Q(25,"Changelist");L();K(26,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CUSTOM_FIELDS"))});Q(27,"Custom Fields");
L();K(28,"button",12);Q(29," Archival state ");L();K(30,"button",11);N("click",function(){u(c);return v(b.bulkEdit("FOUND_IN"))});Q(31,"Found In");L();K(32,"button",11);N("click",function(){u(c);return v(b.bulkEdit("SLO_START_TIME"))});Q(33,"SLO Start Time");L();F(34,PIb,2,0,"button",13);K(35,"button",11);N("click",function(){u(c);return v(b.bulkEdit("VERIFIED_IN"))});Q(36,"Verified In");L();K(37,"button",11);N("click",function(){u(c);return v(b.bulkEdit("TARGETED_TO"))});Q(38,"Targeted To");L();
K(39,"button",12);Q(40,"In Prod");L();M(41,"mat-divider");K(42,"button",11);N("click",function(){u(c);return v(b.bulkEdit("COMMENT"))});Q(43,"Add Comment");L()();K(44,"mat-menu",null,1);Of(46,QIb,2,1,"button",13,Nf);L();K(48,"mat-menu",null,2);Of(50,RIb,2,1,"button",13,Nf);L();K(52,"mat-menu",null,3);Of(54,SIb,2,1,"button",13,Nf);L();K(56,"mat-menu",null,4);$f(58);Of(59,VIb,4,4,null,null,Nf);L();K(61,"mat-menu",null,5)(63,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IS_ARCHIVED",
!0))});Q(64,"Archive");L();K(65,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IS_ARCHIVED",!1))});Q(66,"Unarchive");L()();K(67,"mat-menu",null,6)(69,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IN_PROD",!0))});Q(70,"In Prod");L();K(71,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IN_PROD",!1))});Q(72,"Not in Prod");L()();K(73,"mat-menu",null,7)(75,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!0))});Q(76,
"Mark as Blocked By");L();K(77,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKING",!0))});Q(78,"Mark as Blocking");L();K(79,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("PARENT",!0))});Q(80,"Add Parent");L();K(81,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("DUPLICATE"))});Q(82,"Duplicate");L();K(83,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!1))});Q(84,"Unmark as Blocked By");
L();K(85,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKING",!1))});Q(86,"Unmark as Blocking");L();K(87,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("PARENT",!1))});Q(88,"Remove Parent");L()();K(89,"mat-menu",null,8)(91,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("CC",!0))});Q(92,"CC me");L();K(93,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("CC",!1))});Q(94,"Un-CC me");L();K(95,"button",11);N("click",
function(){u(c);return v(b.bulkEdit("CC"))});Q(96,"Edit CC");L()()}if(a&2){a=qg(45);var d=qg(49),e=qg(53),f=qg(57),g=qg(62),k=qg(68);B();G(b.enableBulkEditUi?1:-1);B();I("disabled",b.isAnonymous);B();S(" ",b.readStatePrompt," ");B();G(b.enableBulkEditUi?4:-1);B();G(b.enableBulkEditUi?5:-1);B(7);I("matMenuTriggerFor",a);B(2);I("matMenuTriggerFor",d);B(2);I("matMenuTriggerFor",e);B(2);I("matMenuTriggerFor",f);B(10);I("matMenuTriggerFor",g);B(6);G(b.enableBulkEstimatedEffortOption?34:-1);B(5);I("matMenuTriggerFor",
k);B(7);Pf(b.PRIORITIES_VALUES);B(4);Pf(b.SEVERITIES_VALUES);B(4);Pf(b.STATUSES);B(4);a=ag(b.getIssueTypes());B();Pf(a)}},dependencies:[OJ,YG,WG,aH,Dy,pT,xOd,gB,cB,aK,oK,iA],encapsulation:2,changeDetection:0});var yOd=function(){this.activeSession=p(qu);this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new XP;this.flagAsSpamClicked=new XP;this.isAnonymous=this.activeSession.isAnonymous()};yOd.\u0275fac=function(a){return new (a||yOd)};
yOd.\u0275cmp=D({type:yOd,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,YIb,8,4);a&2&&G(b.showExportCsv||b.showFlagIssuesAsSpam?0:-1)},dependencies:[OJ,YG,WG,aH,pT,gB,cB],encapsulation:2,changeDetection:0});var c2=function(){};c2.\u0275fac=function(a){return new (a||c2)};c2.\u0275mod=cf({type:c2});c2.\u0275inj=Hc({imports:[RO]});var d2=function(){};d2.\u0275fac=function(a){return new (a||d2)};d2.\u0275mod=cf({type:d2});d2.\u0275inj=Hc({imports:[PJ,RO,DU,c2,iB,bK,pK]});var f2=function(){var a=this;this.activeSession=p(qu);this.connectionChecker=p(zOd);this.ssoInterceptorState=p(e2);this.notifyUserAndWaitForGoodConnection$=new Vd(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$=re(window,"focus").pipe(Af(function(){return a.connectionChecker.ok$}),
we(function(b){return b}),nf(1),A(function(){}),zla())};f2.prototype.intercept=function(a,b){return this.activeSession.getFlag("enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?AOd(this,b,a):b.handle(a)};
var AOd=function(a,b,c){return new Vd(function(d){var e=b.handle(c).subscribe({next:function(g){d.next(g)},complete:function(){d.complete()},error:function(g){BOd(a,b,c,g).pipe(Bf(f)).subscribe(d)}}),f=new wf(1);return function(){f.next();e.unsubscribe()}})},BOd=function(a,b,c,d){return d.status===403||d.status===404||d.status===429?ge(function(){return d}):a.connectionChecker.ok$.pipe(Af(function(e){return e?ge(function(){return d}):a.notifyUserAndWaitForGoodConnection$.pipe(Af(function(){return b.handle(c)}))}))};
f2.\u0275fac=function(a){return new (a||f2)};f2.\u0275prov=Fc({token:f2,factory:f2.\u0275fac,providedIn:"root"});var e2=function(){this.showRefreshSso$=new Nj(!1)};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275prov=Fc({token:e2,factory:e2.\u0275fac,providedIn:"root"});var zOd=function(){var a=this;this.ngZone=p(Rg);this.ok$=new Vd(function(b){var c=cob("action/yes",function(){a.ngZone.run(function(){c.isSuccess()?b.next(c.getResponseText()==="yes"):b.next(!1);b.complete()})});return function(){c.dispose()}})};
zOd.\u0275fac=function(a){return new (a||zOd)};zOd.\u0275prov=Fc({token:zOd,factory:zOd.\u0275fac,providedIn:"root"});var COd={provide:WBc,useExisting:f2,multi:!0};var DOd=function(){this.activeSession=p(qu);this.ssoInterceptorState=p(e2);this.showRefreshSsoMessage$=this.ssoInterceptorState.showRefreshSso$;this.isAnonymous=this.activeSession.isAnonymous()};DOd.\u0275fac=function(a){return new (a||DOd)};
DOd.\u0275cmp=D({type:DOd,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,cJb,6,3,"b-callout",0),T(1,"async"));a&2&&G(U(1,1,b.showRefreshSsoMessage$)?0:-1)},dependencies:[AU,BU,gB,cB,Lx],encapsulation:2,changeDetection:0});var EOd=function(){var a=this;this.session=p(qu);this.principalTypes=p(AQ);this.cdr=p(YP,{self:!0});this.showHiringBanner=!1;this.session.getFlag("weAreHiring")&&BQ(this.principalTypes,this.session.getUserEmail(),!0).then(function(b){a.showHiringBanner=b.detailedUserType==="UNRESTRICTED_GOOGLER";a.cdr.detectChanges()}).catch(function(){})};EOd.\u0275fac=function(a){return new (a||EOd)};
EOd.\u0275cmp=D({type:EOd,selectors:[["b-hiring-banner"]],standalone:!1,features:[Gg([YP])],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,dJb,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 g2=function(){};g2.\u0275fac=function(a){return new (a||g2)};g2.\u0275mod=cf({type:g2});g2.\u0275inj=Hc({imports:[RO]});var h2=function(){this.hotkeys=p(kU)};h2.prototype.ngOnInit=function(){this.hotkeys.pause()};h2.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};h2.\u0275fac=function(a){return new (a||h2)};
h2.\u0275cmp=D({type:h2,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&&(K(0,"h1",0),Q(1,"Keyboard shortcuts"),L(),K(2,"mat-dialog-content")(3,"table"),Of(4,fJb,7,1,"thead",null,Nf),L()(),K(6,"mat-dialog-actions")(7,"button",1),Q(8,"Close"),L()());a&2&&(B(4),Pf(jsd(b.hotkeys)))},
dependencies:[gB,cB,RA,TA,VA,UA],encapsulation:2});var i2=function(){};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275mod=cf({type:i2});i2.\u0275inj=Hc({imports:[RO,iB,MJ]});var It=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};It.prototype.isCustomField=function(){return this.type==="CUSTOM_FIELD"};It.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};It.prototype.toString=function(){return this.toApiUrlParam()};var Lt=function(a,b){this.fieldId=a;this.direction=b};Lt.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+(this.direction==="ASCENDING"?"asc":"desc")};Lt.prototype.toString=function(){return this.toApiUrlParam()};var FOd=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 Nj(this)},GOd=function(a,
b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=PAb(e,null);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new FOd(d,a,b)};FOd.prototype.hasPreviousPage=function(){return this.params.page>1};FOd.prototype.hasNextPage=function(){return!!this.responseMetadata.nextPageToken};
var HOd=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return c!==-1?c+a.startIndex:-1},IOd=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=HOd(a,c.issueId);e!==-1&&(e-=a.startIndex,OAb(a.issues[e],c,d))}a.changed$.next(a)},JOd=function(a,b,c,d){b=HOd(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)};FOd.prototype.clone=function(){var a=new FOd(this.internalIssues,this.params,this.responseMetadata);a.changed$.next(a);return a};da.Object.defineProperties(FOd.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});var j2=function(){this.issueApi=p(HP);this.hotlistApi=p(bP);this.paths=p(mW)};j2.prototype.create=function(a){return new KOd(this.issueApi,this.hotlistApi,this.paths,a)};j2.\u0275fac=function(a){return new (a||j2)};j2.\u0275prov=Fc({token:j2,factory:j2.\u0275fac,providedIn:"root"});
var KOd=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise=this.searchResultsPage=null},k2=function(a){if(a.params.page<1)return Promise.reject(Error("lg"));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=rgb(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=GOd(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})},LOd=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var l2=function(){this.$window=p(hR);this.searchResultsPageFetcherFactory=p(j2);this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},NOd=function(a,b){var c=ro();MOd(b.page)?(a.setSearchParams(b),k2(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},POd=function(a){var b=ro(),c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:
c=OOd(a);c?(a.setSearchParams(c),k2(a.currentResultsFetcher).then(function(d){b.resolve(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},QOd=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},ROd=function(a,b){var c=ro();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=pm(a.currentResultsFetcher.params);e.page=d;a.setSearchParams(e);k2(a.currentResultsFetcher).then(function(f){a:{if(b>=f.startIndex&&b<=f.endIndex){var g=b-f.startIndex;if(g<f.issues.length){f=f.issues[g].issueId;break a}}f=void 0}f?(a.focusedIssueIndex=b,c.resolve(f)):c.reject("No issue available at index "+b)},function(f){c.reject(f)});return c.promise};
l2.prototype.getFocusedIssue=function(){return this.focusedIssueIndex};
var SOd=function(a){a.currentResultsFetcher?k2(a.currentResultsFetcher).then(function(b){a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1}).catch(function(b){Xm("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},OOd=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 Lt(new It(b.fieldId),b.direction)}));return a}return null},
TOd=function(a,b,c){b=pm(b);b.page=c;return a.searchResultsPageFetcherFactory.create(b)},UOd=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=TOd(a,b,b.page),k2(a.currentResultsFetcher).catch(function(c){Xm("unexpected error fetching:",c)}));!a.previousResultsFetcher&&b.page>1&&(a.previousResultsFetcher=TOd(a,b,b.page-1),ns(2E3).then(function(){var c;return(c=a.previousResultsFetcher)==null?void 0:k2(c)}).catch(function(c){Xm("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
LOd(a.currentResultsFetcher)&&(a.nextResultsFetcher=TOd(a,b,b.page+1),ns(2E3).then(function(){var c;return(c=a.nextResultsFetcher)==null?void 0:k2(c)}).catch(function(c){Xm("unexpected error fetching:",c)}))};
l2.prototype.setSearchParams=function(a){a.page=sm(a.page);if(!a.resultsPerPage||isNaN(a.resultsPerPage))throw Error("mg");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&&mm(a.sortColumns,b.sortColumns)&&a.resultsPerPage===b.resultsPerPage&&mm(a.trackerIds,b.trackerIds)?this.currentResultsFetcher.params.returnUrl=a.returnUrl:QOd(this)}UOd(this,a);a=JSON.stringify(this.currentResultsFetcher.params);this.$window.sessionStorage.setItem("buganizer.searchParams",a)};
var MOd=function(a){var b=sm(""+a);return isNaN(b)||b!=Number(a)||b<1||b>2147483647?!1:!0};l2.\u0275fac=function(a){return new (a||l2)};l2.\u0275prov=Fc({token:l2,factory:l2.\u0275fac,providedIn:"root"});var m2=function(){this.$window=p(hR);this.activeSession=p(qu)};m2.prototype.setTitle=function(a){a=Mt(a,this.activeSession.session);this.$window.document.title=a};m2.\u0275fac=function(a){return new (a||m2)};m2.\u0275prov=Fc({token:m2,factory:m2.\u0275fac,providedIn:"root"});var n2=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(SQ);this.issueFullFridge=p(cQ);this.pageTitle=p(m2);this.accessIndicatorService=p(MW);this.newTitle$=this.paramsService.routeParams$.pipe(pf(mm),Af(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.newTitle$.subscribe(function(b){a.pageTitle.setTitle(b)}))};this.initOnce=uVa(this.init)};Y(n2,Z);n2.\u0275dir=Z.\u0275dir;
n2.prototype.onRouteParamsChanged=function(a){return a.issueId?VOd(this,a.issueId):jx};var VOd=function(a,b){return le([a.issueFullFridge.watch(b),Dxd(a.accessIndicatorService,b).pipe(zf(void 0),jf(function(){return ee(void 0)}))]).pipe(zf([void 0,void 0]),A(function(c){c=m(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}))};
n2.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(n2)))(b||n2)}}();n2.\u0275prov=Fc({token:n2,factory:n2.\u0275fac,providedIn:"root"});var ZOd=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(WOd(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(),
XOd(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);WOd(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();XOd(this);YOd(this)};ZOd.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
ZOd.prototype.stop=function(){this.state=2;XOd(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 YOd=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)}};
ZOd.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 XOd=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"},WOd=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};ZOd.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var $Od=function(a){this.element=a;this.bugs=[]};$Od.prototype.start=function(){for(var a=this,b=0;b<3;b++)aPd(this);this.intervalSubscription=Zha(1E4).subscribe(function(){aPd(a);a.bugs.length>=10&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};$Od.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=m(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};var aPd=function(a){var b=new ZOd(a.element);b.start();a.bugs.push(b)};var o2=function(){var a=this;this.ngZone=p(Rg);this.userPreferencesManager=p(dR);this.snackBar=p(nB);this.elementRef=p(Jd);this.bugAnimation=new $Od(this.elementRef.nativeElement);this.destroyed$=new wf(1);this.active$=new Nj(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.active$.pipe(pf(),Bf(this.destroyed$)).subscribe(function(b){b?bPd(a):cPd(a)})};o2.prototype.ngOnInit=function(){document.visibilityState==="visible"&&dPd(this)};o2.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var dPd=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};o2.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),dPd(this))};o2.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var cPd=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){ePd(a)});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},bPd=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})},ePd=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return b=Object,c=b.assign,z(e,ie(a.userPreferencesManager.bugScreensaverPreferences$),2);d=c.call(b,{},e.yieldResult,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:d}).subscribe();
ce(e)})};o2.\u0275fac=function(a){return new (a||o2)};
o2.\u0275cmp=D({type:o2,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onUserEvent()},Ld)("keydown",function(){return b.onUserEvent()},Ld)("mousemove",function(){return b.onUserEvent()},Ld)("wheel",function(){return b.onUserEvent()},Ld)("touchstart",function(){return b.onUserEvent()},Ld)("focus",function(){return b.onUserEvent()},Ld)("visibilitychange",function(){return b.onVisibilityChange()},Sga)},standalone:!1,decls:0,vars:0,template:function(){},
encapsulation:2});var fPd=function(){var a=this;this.userPreferencesManager=p(dR);this.activeSession=p(qu);this.isEnabled$=this.userPreferencesManager.bugScreensaverPreferences$.pipe(A(function(b){return(b.enableBugScreensaver||!1)&&a.activeSession.isInternalSession()}))};fPd.\u0275fac=function(a){return new (a||fPd)};
fPd.\u0275cmp=D({type:fPd,selectors:[["bug-screensaver-manager"]],standalone:!1,decls:2,vars:3,template:function(a,b){a&1&&(F(0,iJb,1,0,"bug-screensaver"),T(1,"async"));a&2&&G(U(1,1,b.isEnabled$)?0:-1)},dependencies:[o2,Lx],encapsulation:2});var p2=function(){};p2.\u0275fac=function(a){return new (a||p2)};p2.\u0275mod=cf({type:p2});p2.\u0275inj=Hc({imports:[RO,yU,NU,CU]});var gPd=function(){this.activeSession=p(qu);this.currentTracker=this.activeSession.getTracker();var a,b;this.trackerName=(b=(a=this.currentTracker)==null?void 0:a.name)!=null?b:"";var c,d,e;this.trackerLogo=(e=(c=this.currentTracker)==null?void 0:(d=c.branding)==null?void 0:d.logoUrl)!=null?e:"";var f,g,k;this.trackerCoc=(k=(f=this.currentTracker)==null?void 0:(g=f.branding)==null?void 0:g.cocUrl)!=null?k:""};gPd.\u0275fac=function(a){return new (a||gPd)};
gPd.\u0275cmp=D({type:gPd,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,lJb,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 hPd=function(){};hPd.\u0275fac=function(a){return new (a||hPd)};hPd.\u0275mod=cf({type:hPd});hPd.\u0275inj=Hc({imports:[RO]});var q2=function(){var a=this;this.paths=p(mW);this.context=p(TQ);this.activeSession=p(qu);this.componentFridge=p(MO);this.createIssuePath=this.paths.createIssue();this.currentTracker=this.activeSession.getTracker();this.component$=this.context.getComponentId().pipe(Af(function(d){return d?a.componentFridge.watch(d):ee(void 0)}),A(function(d){return d&&!d.archived?d:void 0}));this.visibleOptions$=le([this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(of(0),A(function(d){var e=
m(d);d=e.next().value;var f=e.next().value;e=e.next().value;return iPd(a,a.currentTracker,d,f,e)}));this.buttonLabel$=this.visibleOptions$.pipe(A(function(d){return d.length?"Create":"Create Issue"}));var b,c;this.buttonIcon=((b=this.currentTracker)==null?void 0:(c=b.branding)==null?void 0:c.theme)==="OPEN_SOURCE"?"create-open-source-36px":"create-color-36px"};q2.prototype.ngOnInit=function(){};q2.prototype.trackClick=function(a){er("create","click",a)};
var iPd=function(a,b,c,d,e){var f=new Map;b=b&&c&&b.trackerId&&b.trackerId!==c.trackerId;c=(c==null?0:c.componentId)?String(c.componentId):void 0;if(e!==null){var g={};f.set("in_same_hotlist",a.paths.createIssue((g.hotlistIds=String(e),g)))}b||c===void 0||(e={},f.set("in_same_component",a.paths.createIssue((e.component=c,e))));b||d===null||(e={},f.set("similar_to_current_issue",a.paths.createIssue((e.template_issue=d,e))),e={},f.set("blocked_by_current_issue",a.paths.createIssue((e.blockedByIssueIds=
d,e.component=c,e))),e={},f.set("blocking_current_issue",a.paths.createIssue((e.blockingIssueIds=d,e.component=c,e))),e={},f.set("parent_of_current_issue",a.paths.createIssue((e.childrenIssueIds=d,e.component=c,e))),e={},f.set("child_of_current_issue",a.paths.createIssue((e.parentIssueId=d,e.component=c,e))));return[].concat(q(f.entries())).map(function(k){var l=m(k);k=l.next().value;l=l.next().value;return{name:wab(k),path:l}})};q2.\u0275fac=function(a){return new (a||q2)};
q2.\u0275cmp=D({type:q2,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,nJb,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.visibleOptions$))?0:-1,c)}},dependencies:[oU,Lx],encapsulation:2,changeDetection:0});var r2=function(){this.router=p(YE);this.location=p(ZT)},jPd=function(a){var b=a.location.getUrl();Ct(a.router,"/",{skipLocationChange:!0}).then(function(){return Ct(a.router,b,{skipLocationChange:!0})})};r2.\u0275fac=function(a){return new (a||r2)};r2.\u0275prov=Fc({token:r2,factory:r2.\u0275fac,providedIn:"root"});var s2=function(){Z.call(this);var a=this;this.reloadService=p(r2);this.activeSession=p(qu);this.bLocation=p(ZT);this.paths=p(mW);this.issuePagination=p(l2);this.sidebarItemFactory=p(kPd);this.appEvents=p(PO);this.analytics=p(aQ);this.currentUserBookmarksFridge=p(lP);this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];this.subscriptions.add(Hfd(this.currentUserBookmarksFridge).subscribe(function(b){a.sidebarData.hotlists=
lPd(a,b.hotlists);a.sidebarData.bookmarkGroups=mPd(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=lPd(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=mPd(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(Ifd(this.currentUserBookmarksFridge).subscribe(function(b){b=nPd(a,b);a.sidebarData.userSearches=b;uba(a.userSavedSearches);xba(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(mP(this.currentUserBookmarksFridge).subscribe(function(b){oPd(a,
b);a.appEvents.sidebarUpdated.next()}))};Y(s2,Z);s2.\u0275dir=Z.\u0275dir;
var lPd=function(a,b){return b.map(function(c){return pPd(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},mPd=function(a,b){return b.map(function(c){var d=a.sidebarItemFactory;return new qPd(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},nPd=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 rPd(a.sidebarItemFactory,c)})},oPd=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 pPd(a.sidebarItemFactory,c)});uba(a.userHotlists);xba(a.userHotlists,b)};
s2.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||(QOd(this.issuePagination),Fvd(this.paths,a)&&jPd(this.reloadService),this.bLocation.setUrl(a),b.preventDefault(),b.stopPropagation())};s2.\u0275fac=function(a){return new (a||s2)};s2.\u0275prov=Fc({token:s2,factory:s2.\u0275fac,providedIn:"root"});
var t2=function(a,b,c,d,e,f,g,k){this.item=a;this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=g;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.adminUsers=a.adminUsers;this.starred=a.starred;this.userEmail=b.getUserEmail()};t2.prototype.getDisplayName=function(){return this.item.name?this.item.name:"resourceType"in this.item?hj(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};
t2.prototype.isEditable=function(){return sPd(this)};t2.prototype.isSelected=function(){var a=this.paths,b=this.href;b=b.charAt(0)!=="/"?"/"+b:b;return a.bLocation.path()===b};t2.prototype.isUnstarable=function(){return!sPd(this)&&this.starred};
var sPd=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},tPd=function(a,b){var c=eR(a.userPreferencesManager).homepagePreferences;return(c==null?void 0:c.resourceId)===a.id&&c.resourceType===b},uPd=function(a,b){Pr(a.butterBar,"Updating homepage...",0);Jkd(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(nf(1)).subscribe(function(){Pr(a.butterBar,"Homepage updated")})},vPd=function(a,b,c,d,e,f,g,k,l,r,w,x){t2.call(this,a,b,c,d,e,g,k,l);this.hotlistApi=
f;this.errorHandler=r;this.confirmationDialogService=w;this.appEvents=x;this.href=ps.viewHotlist.makeHref(a.id);this.type="HOTLIST"};Y(vPd,t2);h=vPd.prototype;h.isPreferredHomepage=function(){return tPd(this,"HOTLIST")};h.setAsPreferredHomepage=function(){uPd(this,"HOTLIST")};
h.archive=function(){var a=this;Pr(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});Pr(a.butterBar,'Archived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unarchive=function(){var a=this;Pr(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});Pr(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Bh("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar()}})};
h.doUnstar=function(){var a=this;Pr(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:this.id}).then(function(){Pr(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var wPd=function(a,b,c,d,e,f,g,k){t2.call(this,a,b,c,d,e,f,g,k);this.href=g.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};Y(wPd,t2);wPd.prototype.isUnstarable=function(){return!1};
wPd.prototype.unstar=function(){};wPd.prototype.isPreferredHomepage=function(){return tPd(this,"SAVED_SEARCH")};wPd.prototype.setAsPreferredHomepage=function(){uPd(this,"SAVED_SEARCH")};
var qPd=function(a,b,c,d,e,f,g,k,l,r,w,x){t2.call(this,a,b,c,d,e,f,g,k);this.errorHandler=l;this.sidebarItemFactory=r;this.confirmationDialogService=w;this.appEvents=x;this.items=[];a=m(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(pPd(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(rPd(this.sidebarItemFactory,b))}this.items.sort(function(C,H){return C.name.localeCompare(H.name)})};Y(qPd,t2);h=qPd.prototype;
h.isPreferredHomepage=function(){return tPd(this,"BOOKMARK_GROUP")};h.setAsPreferredHomepage=function(){uPd(this,"BOOKMARK_GROUP")};
h.archive=function(){var a=this;Pr(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});Pr(a.butterBar,'Archived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unarchive=function(){var a=this;Pr(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});Pr(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Bh("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar()}})};
h.doUnstar=function(){var a=this;Pr(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){Pr(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var kPd=function(){this.activeSession=p(qu);this.userApi=p(fP);this.bookmarkGroupsApi=p(xO);this.hotlistApi=p(bP);this.errorHandler=p(kO);this.paths=p(mW);this.analytics=p(aQ);this.butterBar=p(QN);this.userPreferencesManager=p(dR);this.confirmationDialogService=p(ZR);this.appEvents=p(PO)},pPd=function(a,b){return new vPd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},rPd=
function(a,b){return new wPd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};kPd.\u0275fac=function(a){return new (a||kPd)};kPd.\u0275prov=Fc({token:kPd,factory:kPd.\u0275fac,providedIn:"root"});var u2=function(){this.prefs=p(dR);this.expanded=!0;this.content=this.header=null;this.onExpand=new XP};u2.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!Lkd(this.prefs,this.prefKey))};u2.prototype.onClick=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(2);c={};return z(d,ie(Kkd(a.prefs,(c[a.prefKey]=!b,c))),2)}a.expanded&&a.onExpand.next();ce(d)})};u2.\u0275fac=function(a){return new (a||u2)};
u2.\u0275cmp=D({type:u2,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&&(K(0,"div",0),N("click",function(){return b.onClick()})("keydown.enter",function(c){b.onClick();return c.stopPropagation()})("keydown.space",function(c){b.onClick();
return c.preventDefault()}),E(1,oJb,1,0,"ng-container",1),L(),F(2,qJb,1,1,"ng-container"));a&2&&(wg("opened",b.expanded)("closed",!b.expanded),Kf("aria-expanded",b.expanded),B(),I("ngTemplateOutlet",b.header),B(),G(b.expanded?2:-1))},dependencies:[Kx],encapsulation:2});var xPd=function(){return[]},v2=function(){var a=this;this.location=p(ii);this.starredTeamsService=p(QR);this.bLocation=p(ZT);this.triageService=p(TR);this.sidebar=p(s2);this.routeParamsService=p(SQ);this.teamExperimentalFieldsFridge=p(OQ);this.teamFridge=p(PQ);this.ROUTES=ps;this.ALL_PHASES=wld;this.phaseToUrlSlug=Dt;this.triageTeamIdFromUrl$=this.routeParamsService.routeParams$.pipe(A(function(b){return b.phase&&b.teamId}));this.triageIdFromUrl$=this.routeParamsService.routeParams$.pipe(A(function(b){return b.phase&&
b.triageId}));this.triageViewFromUrl$=le([this.triageTeamIdFromUrl$,this.triageIdFromUrl$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b&&c)return{teamId:b,triageId:c}}));this.sidebarTriagePreferences$=le([this.starredTeamsService.starredTriageViews$,this.triageViewFromUrl$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return[].concat(q(b),[c]).filter(Qm)}),A(function(b){return uq(b,function(c){return c.teamId+":"+c.triageId})}));this.teamExperiments$=this.sidebarTriagePreferences$.pipe(A(function(b){return b.map(function(c){return c.teamId})}),
A(function(b){return vq(b.filter(Qm))}),Af(function(b){return a.teamExperimentalFieldsFridge.watchSet(b)}),A(function(b){return new Map(b.map(function(c){return[c.id,c]}))}));this.teamIdToTriageViews$=this.teamExperiments$.pipe(A(function(b){return mUa(b,function(c){return fo(c.triage,function(d){return d.id})})}));this.triageSidebarEntries$=le([this.teamIdToTriageViews$,this.sidebarTriagePreferences$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=[];d=m(d);for(var e=d.next();!e.done;e=
d.next()){e=e.value;var f=e.teamId,g=e.triageId,k=void 0,l=(k=b.get(f))==null?void 0:k.get(Number(g));l?(g=a.teamFridge.watch(f),c.push({teamId:f,triageId:e.triageId,displayName$:r7a(g,f,l)})):console.log("triage not found",f,g)}return c}))},AJb=function(a,b,c){return a.routeParamsService.routeParams$.pipe(A(function(d){return!(d.teamId!==b||d.triageId!==c||!d.phase&&!a.location.path().endsWith("issue-themes"))}))};
v2.prototype.isTriageUrlFor=function(a,b,c){return this.location.path().startsWith(ps.viewTriage.makeHref(a,c,Dt[b],""))};v2.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(ps.triageSettings.makeHref())};v2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};v2.\u0275fac=function(a){return new (a||v2)};
v2.\u0275cmp=D({type:v2,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,EJb,2,1),T(1,"async"));if(a&2){var c,d;G((c=(d=U(1,1,b.triageSidebarEntries$))!=null?d:Hg(3,xPd))?0:-1,c)}},dependencies:[Dy,gB,eB,OJ,YG,WG,XG,aH,u2,Lx],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 yPd=function(){this.location=p(ZT);this.analytics=p(aQ);this.paths=p(mW);this.sidebar=p(s2);this.bookmarkGroups=[];this.hotlists=[]};h=yPd.prototype;h.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarArchived","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};h.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarArchived","dashboard");this.location.setUrl(this.paths.dashboard(a))};h.openEditHotlist=function(a){this.location.setUrl(ps.editHotlist.makeHref(a))};
h.openEditBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};h.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};yPd.\u0275fac=function(a){return new (a||yPd)};
yPd.\u0275cmp=D({type:yPd,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,UJb,7,2,"div");a&2&&G(b.hotlists.length||b.bookmarkGroups.length?0:-1)},dependencies:[Dy,gB,eB,OJ,YG,WG,XG,aH,u2],encapsulation:2,changeDetection:0});var zPd=function(){this.admins=[]};zPd.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=vm(this.bookmarkGroup.adminUsers)};zPd.\u0275fac=function(a){return new (a||zPd)};
zPd.\u0275cmp=D({type:zPd,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&&(K(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),L()(),K(6,"ul")(7,"li"),Q(8),L(),K(9,"li"),Q(10),L()(),K(11,"div")(12,"p"),Q(13),L()()()()());a&2&&(B(4),
I("href",b.url,Pe),B(),yg(b.bookmarkGroup.name),B(3),S("ID: ",b.bookmarkGroup.bookmarkGroupId),B(2),zg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),yg(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 APd=["searchBox"],w2=function(){this.cdr=p(YP,{self:!0});this.activeSession=p(qu);this.userApi=p(fP);this.bookmarkGroupsApi=p(xO);this.hotlistApi=p(bP);this.paths=p(mW);this.analytics=p(aQ);this.errorHandler=p(kO);this.appEvents=p(PO);this.currentUserBookmarksFridge=p(lP);this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new XP;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.currentUserEmail=
this.activeSession.getUserEmail();this.query="";this.matches=[]};w2.prototype.ngOnInit=function(){this.allowStarring&&BPd(this)};w2.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 BPd=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();ie(Hfd(a.currentUserBookmarksFridge)).then(function(b){if(a.showGroups)for(var c=m(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=m((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=m(b.hotlists),c=b.next();!c.done;c=b.next())c=c.value,c.starred&&a.favoriteHotlists.add(c.id);
a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h=w2.prototype;h.reset=function(){this.query="";this.matches=[]};h.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};h.onQueryChange=function(){this.matches=[];this.query&&typeof this.query!=="string"&&(this.query="");this.search()};
h.search=function(){var a=this,b=this.nextRequestIndex++;if(this.query){var c=this.showGroups?this.bookmarkGroupsApi.query(this.query):Promise.resolve([]);var d=this.showHotlists?this.hotlistApi.queryHotlists(this.query):Promise.resolve([]);Promise.all([c,d]).then(function(e){var f=m(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var g=m(e),k=g.next();!k.done;k=g.next()){k=k.value;var l=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(l);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(l)}g=
m(f);for(k=g.next();!k.done;k=g.next())k=k.value,l=k.hotlistId,k.href=ps.viewHotlist.makeHref(l),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(l);a.matches=[].concat(q(e),q(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};h.shouldShowStar=function(a){return this.allowStarring&&!vm(a.adminUsers).includes(this.currentUserEmail)};
h.toggleStar=function(a){var b=this;if(a.isGroup){var c=a.bookmarkGroupId;var d="BOOKMARK_GROUP"}else c=a.hotlistId,d="HOTLIST";a.isStarred=!a.isStarred;var e=function(){b.appEvents.hotlistChanged.next();b.appEvents.favoritesModified.next();BPd(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))};
w2.\u0275fac=function(a){return new (a||w2)};
w2.\u0275cmp=D({type:w2,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(hg(APd,5),hg(RX,5));if(a&2){var c;lg(c=mg())&&(b.searchBoxEl=c.first);lg(c=mg())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},standalone:!1,features:[Gg([YP])],decls:14,vars:5,consts:[["searchBox",""],["auto","matAutocomplete"],["itemHovercard",
"onedevHovercard"],[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text","placeholder","Enter query","role","combobox",3,"ngModelChange","keydown.space","ngModel","matAutocomplete"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"bv2-hotlist-search-subtext"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred"],[3,"hotlist"],[3,"bookmarkGroup"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],
[3,"starClicked","starMessage","unStarMessage","starred"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"input",4,0);Cg("ngModelChange",function(d){u(c);Bg(b.query,d)||(b.query=d);return v(d)});N("ngModelChange",function(){u(c);return v(b.onQueryChange())})("keydown.space",function(d){u(c);return v(b.onSpace(d))});L();F(3,VJb,1,0,"b-spinner");K(4,"mat-autocomplete",5,1);N("optionSelected",function(d){u(c);b.itemSelect.emit(d.option.value);return v()});Of(6,ZJb,9,7,"mat-option",6,Nf);L();
K(8,"div",7);Q(9,' e.g., "foo bar admin:user@google.com" ');M(10,"br");Q(11,' or "foo bar admin:group@google.com" ');M(12,"br");Q(13," Only identities directly listed as Admins can be searched. ");L()()}a&2&&(a=qg(5),B(),Ag("ngModel",b.query),I("matAutocomplete",a),Kf("autofocus",b.focusOnInit)("aria-label","Add query for searching "+(b.showGroups?"bookmark groups":"hotlists")),B(2),G(b.isLoading()?3:-1),B(3),Pf(b.matches))},dependencies:[zPd,OZ,DK,LK,$T,FY,yj,$D,gE,TX,QX,cA,RX],encapsulation:2});var CPd=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new XP};CPd.\u0275fac=function(a){return new (a||CPd)};
CPd.\u0275cmp=D({type:CPd,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&hg(aB,5);if(a&2){var c;lg(c=mg())&&(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&&(K(0,"xap-icon-trigger",1),M(1,"mat-icon",2),L(),E(2,$Jb,3,4,"ng-template",null,0,Mg));a&2&&(a=qg(3),I("xapInlineDialogClick",a),Kf("aria-label",b.ariaLabel))},dependencies:[Dy,YA,XA,oK,iA,aB,eL,w2],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var x2=function(){this.location=p(ZT);this.analytics=p(aQ);this.paths=p(mW);this.sidebar=p(s2);this.bookmarkGroups=[]};x2.prototype.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};x2.prototype.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","dashboard");this.location.setUrl(this.paths.dashboard(a))};x2.prototype.editBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};
x2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};x2.\u0275fac=function(a){return new (a||x2)};
x2.\u0275cmp=D({type:x2,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&&(K(0,"div",6),M(1,"hr"),K(2,"sidebar-zippy",7),E(3,aKb,3,1,"ng-template",null,0,Mg)(5,pKb,1,1,"ng-template",null,1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},dependencies:[Dy,CPd,gB,eB,OJ,YG,WG,XG,aH,u2],encapsulation:2,changeDetection:0});var y2=function(){Z.call(this);var a=this;this.location=p(ZT);this.activeSession=p(qu);this.analytics=p(aQ);this.sidebar=p(s2);this.paths=p(mW);this.routerEvents=p($P);this.cdr=p(ux);this.mcPrefs=p(q1);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.userEmail=this.activeSession.getUserEmail();this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};Y(y2,Z);y2.\u0275dir=Z.\u0275dir;y2.prototype.getUserEmail=function(){return this.userEmail};
y2.prototype.openEditHotlist=function(a){this.location.setUrl(ps.editHotlist.makeHref(a))};y2.prototype.addToMissionControl=function(a){this.mcPrefs.addHotlist(a);this.location.setUrl(this.paths.home())};y2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};y2.\u0275fac=function(a){return new (a||y2)};
y2.\u0275cmp=D({type:y2,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Gf],decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["menu",""],[1,"bv2-nav-section"],["prefKey","nav-hotlists",3,"header","content"],["aria-label","Search for hotlists",3,"itemSelect","click","showGroups"],[1,"hotlist-list"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"selected","id","title"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"click",
"href"],[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["matMenuContent",""],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["svgIcon","settings",1,"icon-s"],["svgIcon","home",1,"icon-s"],["svgIcon","save",1,"icon-s"],["svgIcon","star-empty",1,"icon-s"]],template:function(a){a&1&&(K(0,"div",
3),M(1,"hr"),K(2,"sidebar-zippy",4),E(3,qKb,3,1,"ng-template",null,0,Mg)(5,yKb,1,1,"ng-template",null,1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},dependencies:[Dy,CPd,gB,eB,OJ,YG,WG,XG,aH,u2],encapsulation:2,changeDetection:0});var z2=function(){Z.call(this);var a=this;this.cdr=p(YP,{self:!0});this.location=p(ZT);this.savedSearchApi=p(jP);this.paths=p(mW);this.butterBar=p(QN);this.analytics=p(aQ);this.sidebar=p(s2);this.errorHandler=p(kO);this.routerEvents=p($P);this.confirmationDialogService=p(ZR);this.appEvents=p(PO);this.mcPrefs=p(q1);this.activeSession=p(qu);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.searches=[];this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};
Y(z2,Z);z2.\u0275dir=Z.\u0275dir;z2.prototype.openEditSavedSearch=function(a){this.location.setUrl(this.paths.editSavedSearch(a))};z2.prototype.addToMissionControl=function(a){DMd(this.mcPrefs,hvb(a));this.location.setUrl(this.paths.home())};
var CKb=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Bh("Are you sure you want to delete this search?"),isDestructive:!0,onConfirm:function(){DPd(a,b)}})},DPd=function(a,b){var c=b.id;Pr(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});Pr(a.butterBar,'Deleted saved search "'+b.name+'".');a.analytics.trackEvent("sidebarSavedSearches",
"deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,d)})};z2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};z2.\u0275fac=function(a){return new (a||z2)};
z2.\u0275cmp=D({type:z2,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},standalone:!1,features:[Gg([YP]),Gf],decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["menu",""],[1,"bv2-nav-section","bv2-nav-section-savedsearches"],["prefKey","nav-ss",3,"header","content"],[1,"saved-search-list"],[1,"bv2-nav-item",3,"selected","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-item-link",3,"click","href"],[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple",
"true","aria-label","Saved search actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["matMenuContent",""],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["svgIcon","settings",1,"icon-s"],["svgIcon","delete",1,"icon-s"],["svgIcon","home",1,"icon-s"],["svgIcon","save",1,"icon-s"]],template:function(a){a&1&&(K(0,"div",3),M(1,"hr"),K(2,"sidebar-zippy",4),E(3,zKb,2,0,"ng-template",null,0,Mg)(5,GKb,1,1,"ng-template",null,
1,Mg),L()());if(a&2){a=qg(4);var b=qg(6);B(2);I("header",a)("content",b)}},dependencies:[Dy,gB,eB,OJ,YG,WG,XG,aH,u2],encapsulation:2,changeDetection:0});var EPd=function(){};EPd.\u0275fac=function(a){return new (a||EPd)};
EPd.\u0275cmp=D({type:EPd,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 A2=function(){this._ngZone=p(Rg);this._elementRef=p(Jd);this._ariaDescriber=p($y);this._renderer=p(di);this._animationsDisabled=ni();this._idGenerator=p(bi);this._color="primary";this.overlap=!0;this.position="above after";this.size="medium";this._isInitialized=!1;this._interactivityChecker=p(Ky);this._document=p(Sh);var a=p($h);a.load(EPd);a.load(Ly)};h=A2.prototype;
h.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};h.ngOnDestroy=function(){if(this._renderer.destroyNode){this._renderer.destroyNode(this._badgeElement);var a;(a=this._inlineBadgeDescription)==null||a.remove()}bz(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
h._isHostInteractive=function(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})};
h._createBadgeElement=function(){var a=this._renderer.createElement("span");a.setAttribute("id",this._idGenerator.getId("mat-badge-content-"));a.setAttribute("aria-hidden","true");a.classList.add("mat-badge-content");this._animationsDisabled&&a.classList.add("_mat-animation-noopable");this._elementRef.nativeElement.appendChild(a);typeof requestAnimationFrame!=="function"||this._animationsDisabled?a.classList.add("mat-badge-active"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a.classList.add("mat-badge-active")})});
return a};h._updateRenderedContent=function(a){a=(""+(a!=null?a:"")).trim();this._isInitialized&&a&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement());this._badgeElement&&(this._badgeElement.textContent=a);this._content=a};
h._updateDescription=function(a){bz(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?az(this._ariaDescriber,this._elementRef.nativeElement,a):this._updateInlineDescription()};
h._updateInlineDescription=function(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden"));this._inlineBadgeDescription.textContent=this.description;var a;(a=this._badgeElement)==null||a.appendChild(this._inlineBadgeDescription)};h._removeInlineDescription=function(){var a;(a=this._inlineBadgeDescription)==null||a.remove();this._inlineBadgeDescription=void 0};
h._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};h._clearExistingBadges=function(){for(var a=m(Array.from(this._elementRef.nativeElement.querySelectorAll(":scope > .mat-badge-content"))),b=a.next();!b.done;b=a.next())b=b.value,b!==this._badgeElement&&b.remove()};
da.Object.defineProperties(A2.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)}}});A2.\u0275fac=function(a){return new (a||A2)};
A2.\u0275dir=df({type:A2,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&wg("mat-badge-overlap",b.overlap)("mat-badge-above",b.position.indexOf("below")===-1)("mat-badge-below",b.position.indexOf("below")!==-1)("mat-badge-before",b.position.indexOf("before")!==-1)("mat-badge-after",b.position.indexOf("before")===-1)("mat-badge-small",b.size==="small")("mat-badge-medium",b.size==="medium")("mat-badge-large",b.size==="large")("mat-badge-hidden",b.hidden||
!b.content)("mat-badge-disabled",b.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",$g],disabled:[2,"matBadgeDisabled","disabled",$g],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",$g]}});var B2=function(){var a=this;this.cdr=p(YP,{self:!0});this.activeSession=p(qu);this.butterBar=p(QN);this.appSearchState=p(oT);this.paths=p(mW);this.userPreferencesManager=p(dR);this.sidebar=p(s2);this.location=p(ii);this.appEvents=p(PO);this.missionControlPrefs=p(q1);this.needsAttentionTaskFridge=p(xQ);this.bLocation=p(ZT);this.ROUTES=ps;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:Yqd(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:$qd(this.userEmail)});this.reportedPath=this.paths.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=ps.listComponents.makeHref();
this.createBookmarkGroupPath=this.paths.createBookmarkGroup();this.missionControlPath=this.paths.home();this.sidebarData=this.sidebar.sidebarData;this.enableTriageView=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.enableHomepage=!this.activeSession.isAnonymous();this.paths.listIssues({q:"vote:true"});this.homepagePreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){return(d||GN).homepagePreferences}));this.hasPreferredHomepage$=this.homepagePreferences$.pipe(A(function(d){return!(!d||
!d.resourceType)}),pf());this.isHomepageMissionControl$=this.homepagePreferences$.pipe(A(function(d){return d.resourceType==="MISSION_CONTROL"}),pf());this.isHomepageAssignedToMe$=this.homepagePreferences$.pipe(A(function(d){return!a.enableHomepage&&!d.resourceType||d.resourceType==="ASSIGNED_TO_ME"}),pf());this.hideBadgeInNav$=this.userPreferencesManager.preferences$.pipe(A(function(d){var e;return d==null?void 0:(e=d.missionControlPreferences)==null?void 0:e.hideBadgeInNav}),A(Boolean));this.destroyed$=
new XP;var b,c=!!this.location.path().match(/^\/home\b/)&&!((b=this.missionControlPrefs.prefs.collapsed)==null?0:b["needs-attention-wrapper"]);this.activeSession.getFlag("runQueryForSidebarIssueCount")&&setTimeout(function(){a.enableHomepage&&!c&&le([a.missionControlPrefs.needsAttentionTimeBoundary$,a.missionControlPrefs.needsAttentionSources$,a.missionControlPrefs.needsAttentionFilteredSignals$]).pipe(pf(function(d,e){return mm(d,e)}),Af(function(d){var e=m(d);d=e.next().value;var f=e.next().value;
e=e.next().value;f=f.map(function(g){return pr(g)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:d,sources:f,signalFilter:0,filterSignals:e})}),A(function(d){return d.results.length}),Bf(a.destroyed$)).subscribe(function(d){a.appEvents.missionControlTaskCount.next(d)})},1E3)};B2.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(Bf(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};B2.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var KKb=function(a,b){Pr(a.butterBar,"Updating homepage...",0);Jkd(a.userPreferencesManager,{resourceType:b}).subscribe(function(){Pr(a.butterBar,"Homepage updated")})};B2.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};B2.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)};B2.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(ps.triageSettings.makeHref())};
B2.\u0275fac=function(a){return new (a||B2)};
B2.\u0275cmp=D({type:B2,selectors:[["b-sidebar"]],standalone:!1,features:[Gg([YP])],decls:50,vars:31,consts:[["menu",""],["homepageMenu",""],[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["id","mission-control-sidebar-link",1,"bv2-nav-item",3,"selected"],["id","assigned-to-me-sidebar-link",1,"bv2-nav-item"],[3,"click","href"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],["type","button","mat-icon-button",
"","disableRipple","true","aria-label","Assigned issues actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["matMenuContent",""],["svgIcon","star-filled",1,"canned-search-icon"],["svgIcon","person-add-18px",1,"canned-search-icon"],["svgIcon","user-attributes",1,"canned-search-icon"],["svgIcon","issue-status-fixed",1,"canned-search-icon"],[3,"bookmarkGroups"],[3,"searches"],[3,"hotlists"],[3,"hotlists","bookmarkGroups"],[1,"bv2-nav-manage-link"],[3,"href"],["id","mission-control-sidebar-link",
1,"bv2-nav-item"],["svgIcon","home","matBadgeColor","warn","matBadgeSize","small",1,"canned-search-icon",3,"matBadge","matBadgeHidden","matBadgeDescription"],["svgIcon","home",1,"canned-search-icon"],["type","button","mat-icon-button","","disableRipple","true","aria-label","More settings",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"]],template:function(a,b){if(a&1){var c=t();
K(0,"div",2);M(1,"b-create-issue-button");L();K(2,"div",3)(3,"div",4)(4,"ul",5);F(5,MKb,12,11,"li",6);K(6,"li",7)(7,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.assignedPath,d))});M(8,"mat-icon",9);Q(9," Assigned to me ");L();F(10,NKb,2,1,"button",10);T(11,"async");K(12,"mat-menu",null,0);E(14,OKb,2,0,"ng-template",11);L()();K(15,"li")(16,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.starredPath,d))});M(17,"mat-icon",12);Q(18," Starred by me ");L()();K(19,"li")(20,"a",
8);N("click",function(d){u(c);return v(b.onAnchorClick(b.ccdPath,d))});M(21,"mat-icon",13);Q(22," CC'd to me ");L()();K(23,"li")(24,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.collaborateOnPath,d))});M(25,"mat-icon",13);Q(26," Collaborating ");L()();K(27,"li")(28,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.reportedPath,d))});M(29,"mat-icon",14);Q(30," Reported by me ");L()();K(31,"li")(32,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.verifiedPath,d))});
M(33,"mat-icon",15);Q(34," To be verified ");L()()();F(35,PKb,1,0,"nav-sidebar-triage");M(36,"sidebar-bookmark-groups",16)(37,"sidebar-saved-searches",17)(38,"sidebar-hotlists",18)(39,"sidebar-archived",19)(40,"hr");K(41,"div",20)(42,"a",21);Q(43," Create hotlist ");L()();K(44,"div",20)(45,"a",21);Q(46," Create bookmark group ");L()();K(47,"div",20)(48,"a",21);Q(49," Browse components ");L()()()()}a&2&&(B(5),G(b.enableHomepage?5:-1),B(),wg("selected",Zqd(b.appSearchState,b.userEmail)),B(),I("href",
b.assignedPath,Pe),B(3),G(U(11,29,b.isHomepageAssignedToMe$)?-1:10),B(5),wg("selected",b.appSearchState.isStarred()),B(),I("href",b.starredPath,Pe),B(3),wg("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),B(),I("href",b.ccdPath,Pe),B(3),wg("selected",b.appSearchState.currentQuery==="collaborator:"+b.userEmail),B(),I("href",b.collaborateOnPath,Pe),B(3),wg("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),B(),I("href",b.reportedPath,Pe),B(3),wg("selected",b.appSearchState.currentQuery===
$qd(b.userEmail)),B(),I("href",b.verifiedPath,Pe),B(3),G(b.enableTriageView?35:-1),B(),I("bookmarkGroups",b.sidebarData.bookmarkGroups),B(),I("searches",b.sidebarData.userSearches),B(),I("hotlists",b.sidebarData.hotlists),B(),I("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),I("href",b.ROUTES.createHotlist.makeHref(),Pe),B(3),I("href",b.createBookmarkGroupPath,Pe),B(3),I("href",b.componentsPath,Pe))},dependencies:[q2,Dy,gB,eB,OJ,YG,WG,XG,aH,A2,
v2,yPd,x2,y2,z2,Lx],encapsulation:2});var FPd=function(){};FPd.\u0275fac=function(a){return new (a||FPd)};FPd.\u0275mod=cf({type:FPd});FPd.\u0275inj=Hc({imports:[RO]});var C2=function(){};C2.\u0275fac=function(a){return new (a||C2)};C2.\u0275mod=cf({type:C2});C2.\u0275inj=Hc({imports:[RO,FPd,J_,MK,bU,X1,HV,pK,xE,IV,VX]});var D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};D2.\u0275mod=cf({type:D2});D2.\u0275inj=Hc({imports:[RO,pU]});var GPd=function(){};GPd.\u0275fac=function(a){return new (a||GPd)};GPd.\u0275mod=cf({type:GPd});GPd.\u0275inj=Hc({imports:[Zy,Ey]});var E2=function(){};E2.\u0275fac=function(a){return new (a||E2)};E2.\u0275mod=cf({type:E2});E2.\u0275inj=Hc({imports:[D2,RO,C2,iB,PJ,GPd,F0,dF,bK]});var HPd=function(){this.executor=p(ZN)};HPd.\u0275fac=function(a){return new (a||HPd)};HPd.\u0275prov=Fc({token:HPd,factory:HPd.\u0275fac,providedIn:"root"});var F2=function(){Z.apply(this,arguments);this.dialogRef=p(NA);this.tosApi=p(HPd);this.ackChecked=!1};Y(F2,Z);F2.\u0275dir=Z.\u0275dir;F2.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(Bf(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};F2.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(F2)))(b||F2)}}();
F2.\u0275cmp=D({type:F2,selectors:[["b-terms-of-service-dialog"]],standalone:!1,features:[Gf],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"b-tos-content"],[3,"ngModelChange","ngModel"],["href","https://www.google.com/policies/terms/","target","_blank"],["href","/terms","target","_blank"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Google IssueTracker Terms of Service"),L(),K(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),
Cg("ngModelChange",function(c){Bg(b.ackChecked,c)||(b.ackChecked=c);return c}),L(),K(5,"span"),Q(6," I acknowledge and agree to the "),K(7,"a",3),Q(8,"Google Terms of Service"),L(),Q(9," and the "),K(10,"a",4),Q(11,"Google IssueTracker Conduct Policy"),L(),Q(12,". "),L()()(),K(13,"mat-dialog-actions")(14,"button",5),N("click",function(){return b.accept()}),Q(15," OK "),L()());a&2&&(B(4),Ag("ngModel",b.ackChecked),B(10),I("disabled",!b.ackChecked))},dependencies:[$D,gE,gB,cB,fL,aI,TA,VA,UA],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});var G2=function(){Z.apply(this,arguments);this.activeSession=p(qu);this.matDialogService=p(QA)};Y(G2,Z);G2.\u0275dir=Z.\u0275dir;G2.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&OA(this.matDialogService.open(F2,{width:"400px",disableClose:!0})).pipe(Bf(this.destroyed$))};G2.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(G2)))(b||G2)}}();
G2.\u0275cmp=D({type:G2,selectors:[["b-terms-of-service"]],standalone:!1,features:[Gf],decls:0,vars:0,template:function(){},encapsulation:2});var IPd=function(){};IPd.\u0275fac=function(a){return new (a||IPd)};IPd.\u0275mod=cf({type:IPd});IPd.\u0275inj=Hc({imports:[xE,RO,iB,gL,MJ]});var H2=function(){};H2.\u0275fac=function(a){return new (a||H2)};H2.\u0275mod=cf({type:H2});H2.\u0275inj=Hc({imports:[RO,IPd]});var I2=function(){Z.apply(this,arguments);this.routerEvents=p($P);this.bLocation=p(ZT);this.history=[]};Y(I2,Z);I2.\u0275dir=Z.\u0275dir;I2.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()}))};I2.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};I2.prototype.hasPreviousPage=function(){return this.history.length>1};
var J2=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("/")};I2.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(I2)))(b||I2)}}();I2.\u0275prov=Fc({token:I2,factory:I2.\u0275fac,providedIn:"root"});var JPd=function(){this.$window=p(hR);this.activeSession=p(qu);this.faviconUrl=this.defaultFaviconUrl=yh("https://www.gstatic.com/buganizer/img/v4/favicon.png")},KPd=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=b==null?void 0:b.href;a.faviconUrl=c?yh(c):a.defaultFaviconUrl;c=a.activeSession.getTracker();var d;if(c==null?0:(d=c.branding)==null?0:d.logoUrl){var e;a=yh(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 th)b.href=vh(e).toString(),b.rel="icon";else{if(mEc.indexOf("icon")===-1)throw Error("$a`icon");e=Ah(e);e!==void 0&&(b.href=e,b.rel="icon")}};JPd.\u0275fac=function(a){return new (a||JPd)};JPd.\u0275prov=Fc({token:JPd,factory:JPd.\u0275fac,providedIn:"root"});var LPd=pdd("edited-ids"),MPd=AVa("edited-ids"),NPd=pdd("viewed-ids"),OPd=AVa("viewed-ids"),PPd=function(){this.appEvents=p(PO);this.stop$=new sf;this.edited=new kFd(50);this.viewed=new kFd(50)},QPd=function(a){nFd(a.viewed,OPd());nFd(a.edited,MPd());a.appEvents.issueViewed.pipe(Bf(a.stop$)).subscribe(function(b){lFd(a.viewed,b);NPd(mFd(a.viewed))});a.appEvents.issueEdited.pipe(Bf(a.stop$)).subscribe(function(b){lFd(a.edited,b);LPd(mFd(a.edited))})};PPd.\u0275fac=function(a){return new (a||PPd)};
PPd.\u0275prov=Fc({token:PPd,factory:PPd.\u0275fac,providedIn:"root"});var RPd=/^\s*[^:/?#]+:/i,SPd=/^#/i,K2=function(){var a=this;this.bLocation=p(ZT);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"))&&!RPd.test(c))if(SPd.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)}}};K2.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};K2.prototype.uninstall=function(){document.removeEventListener("click",this.linkClickHandler)};K2.\u0275fac=function(a){return new (a||K2)};K2.\u0275prov=Fc({token:K2,factory:K2.\u0275fac,providedIn:"root"});var TPd=[],UPd=!1,VPd=function(){this.destroyRef=p(Ee);this.hatsService=p(WX);this.iconRegistry=p(Cy);this.session=p(qu);this.appHistory=p(I2);this.routePerformance=p(M1);this.linkClickHandler=p(K2);this.issueLru=p(PPd);this.faviconService=p(JPd);this.imageUrls=p(YV);this.ngZone=p(Rg);this.peoplekitService=p(JW)},WPd=function(a){UPd||(a.iconRegistry._addSvgIconSetConfig("",new qCc(a.imageUrls.ICON_URL,null)),UPd=!0);if(a.session.isInternalSession()){Oyd(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(nf(1),
Uj(a.destroyRef)).subscribe();for(var b=m(TPd),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;a.session.getFlag(c.flagName)&&Oyd(a.hatsService,d).pipe(nf(1),Uj(a.destroyRef)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();a.destroyRef.onDestroy(function(){a.linkClickHandler.uninstall()});QPd(a.issueLru);KPd(a.faviconService);a.ngZone.runOutsideAngular(function(){a.peoplekitService.peopleStore.warmUpCache()})};
VPd.\u0275fac=function(a){return new (a||VPd)};VPd.\u0275prov=Fc({token:VPd,factory:VPd.\u0275fac,providedIn:"root"});var SKb=0;var XPd=wVa("blinkers-activated"),YPd=to("blinkers-activated"),ZPd=to("log-xhrs-to-console"),$Pd=wVa("log-xhrs-to-console"),aQd=TKb("debug-dom-mutation","var(--c400)"),bQd=TKb("debug-ng-zone","var(--red-400)"),cQd=TKb("debug-xhr","var(--green-500)",1200),dQd=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;SKb++;var d=156;d+=(SKb-1)*12;return function(e,f){f=f===void 0?b:f;var g,k=(g=document.getElementById(a))!=null?g:QKb(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=
f;k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),L2=function(){var a=this;this.activityMonitor=p(WP);this.userActivity=p(ZP);this.destroyed$=new sf;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=!ZPd(),$Pd(b),b?eQd(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()&&fQd(this)};L2.prototype.ngOnDestroy=function(){gQd(this)};L2.prototype.isEnabled=function(){return YPd()};L2.prototype.enable=function(){this.isEnabled()||(XPd(!0),fQd(this))};L2.prototype.disable=function(){XPd(!1);gQd(this)};
var fQd=function(a){a.activityMonitor.dom$.pipe(Bf(a.destroyed$)).subscribe(function(){return void aQd()});shd(a.activityMonitor);a.activityMonitor.cdr$.pipe(Bf(a.destroyed$)).subscribe(function(){return void bQd()});a.activityMonitor.xhr$.pipe(Bf(a.destroyed$)).subscribe(function(){cQd();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(Bf(a.destroyed$)).subscribe(function(b){return void dQd(b)});
document.addEventListener("click",a.onAnyClick);ZPd()&&eQd(a)},gQd=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},eQd=function(a){clearInterval(a.loggingInterval);a.loggingInterval=setInterval(a.printXhrLog,1E3)};L2.\u0275fac=function(a){return new (a||L2)};L2.\u0275prov=Fc({token:L2,factory:L2.\u0275fac,providedIn:"root"});var M2=function(){this.activeSession=p(qu);this.email=this.activeSession.getUserEmail();this.user=ym(this.activeSession.getUserEmail())};M2.\u0275fac=function(a){return new (a||M2)};M2.\u0275prov=Fc({token:M2,factory:M2.\u0275fac,providedIn:"root"});var N2=function(){var a=this;this.activeSession=p(qu);this.appEvents=p(PO);this.ngZone=p(Rg);this.window=p(hR);this.buganizerBlinkers=p(L2);this.currentUser=p(M2);this.routeParamsService=p(SQ);this.userPreferencesManager=p(dR);this.router=p(YE);this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.starredTeamsService=p(QR);this.teamsService=p(KQ);this.fridges=[p(qO),p(vO),p(yO),p(BO),p(GO),p(MO),p(SO),p(lP),p(qP),p(rP),p(IP),p(KP),p(LP),p(gP),p(PP),p(TP),p(cQ),p(eQ),p(iQ),p(wQ),p(xQ),p(yQ),
p(CQ),p(DQ),p(kP),p(GQ),p(NQ),p(OQ),p(PQ),p(RQ)];this.getCurrentIssueId=function(){var b;return(b=a.routeParamsService.routeParams$.value)==null?void 0:b.issueId};this.getCurrentIssue=function(){return a.issueFullFridge.peek(a.getCurrentIssueId())};this.getCurrentIssueEvents=function(){return a.eventsForIssueFridge.peek(a.getCurrentIssueId())};this.getCurrentIssueAsText=function(){var b=a.getCurrentIssue();if(b==null)return"";var c,d=(c=a.eventsForIssueFridge.peek(b.issueId))==null?void 0:c.events;
return eLb(b,d)}};
N2.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:qhd,activeSession:this.activeSession,teamsService:this.teamsService,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:qdd("debug-logging"),toggleOptOutExperiments:qdd("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,setFlagOverrideForOneDay:EVa,
clearFlagOverride:FVa,clearAllFlagOverrides:BVa,getCurrentIssueAsText:this.getCurrentIssueAsText,printCurrentIssueAsText:function(){var c=a.getCurrentIssueAsText();console.log(c)},get initialSession(){return Xn()},get initialPrefs(){return Xn().userPreferences},get currentPrefs(){return eR(b.userPreferencesManager)},get currentIssue(){return b.getCurrentIssue()},get currentIssueEvents(){return b.getCurrentIssueEvents()},get flags(){return Object.fromEntries(ldd.map(function(c){return[c,b.activeSession.getFlag(c)]}))},
showFridgeGuts:function(){console.log("\ud83e\uddca Fridge: printing the values for each fridge. \nTo see details on cache age look for methods like debug() and debugTable() on each fridge instance.");console.log();b.fridges.forEach(function(c){var d=c.peekAllRecords();d!=null&&d.length!==0&&console.log(c.recordType,d)})},toggleVerboseFridge:function(){return jed=!jed},setTrackerOverride:function(c){hLb(String(c),1)},clearTrackerOverride:function(){hLb("")},resetTriageStars:function(){return a.starredTeamsService.reset()},
getTeamExperiments:function(c){return Wjd(a.teamsService,c)},updateTeamExperiments:function(c){return Xjd(a.teamsService,c)}})}};N2.\u0275fac=function(a){return new (a||N2)};N2.\u0275prov=Fc({token:N2,factory:N2.\u0275fac,providedIn:"root"});var O2=function(){var a=this;this.activatedRoute=p(Mj);this.router=p(YE);this.hideAppChrome=Zg.apply(null,[function(){if(a.router.lastSuccessfulNavigation()!==null){var b,c=(b=a.activatedRoute.snapshot.firstChild)==null?void 0:b.routeConfig;return!(!c||!c.hideAppChrome)}}].concat(q([])))};O2.\u0275fac=function(a){return new (a||O2)};O2.\u0275prov=Fc({token:O2,factory:O2.\u0275fac,providedIn:"root"});var hQd=function(a){this.delegate_=a};hQd.prototype.getDelegate=function(){return this.delegate_};var iQd=function(a){this.delegate_=a;this.target_=null};Y(iQd,hQd);iQd.prototype.getType=function(){return this.getDelegate().xa};var jQd=function(a){this.delegate_=a};Y(jQd,hQd);h=jQd.prototype;h.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ra,new iQd(f,e))},c)};h.listenOnce=function(){throw Error("ng");};h.unlisten=function(){throw Error("ng");};h.unlistenByKey=function(){throw Error("ng");};h.dispatchEvent=function(){throw Error("ng");};h.removeAllListeners=function(){throw Error("ng");};h.getParentEventTarget=function(){throw Error("ng");};
h.fireListeners=function(){throw Error("ng");};h.getListener=function(){throw Error("ng");};h.hasListener=function(){throw Error("ng");};jQd.prototype[SGc]=!0;var kQd=function(a){this.delegate_=a};Y(kQd,jQd);kQd.prototype.getHeight=function(){return this.getDelegate().pa()};kQd.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};kQd.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};var lQd=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};Y(lQd,hQd);lQd.prototype.then=function(a,b,c){var d;a&&(d=mQd(this,a));this.getDelegate().aa(d,b,c)};var mQd=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};var P2=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};Y(P2,hQd);P2.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new lQd(this.getDelegate().bh()));return this.gapiPromise_};P2.getInstance=function(){var a="instance_";P2.instance_&&P2.hasOwnProperty(a)?a=P2.instance_:(a=new P2,P2.instance_=a);return a};
var nQd=function(){return new Promise(function(a){window.gbar||(window.gbar={});if(window.gbar.a)return a(P2.getInstance());(new Promise(function(b){window.gbar.ap=b})).then(function(){return a(P2.getInstance())})})};var Q2=function(){Z.apply(this,arguments);this.router=p(YE);this.window=p(hR)};Y(Q2,Z);Q2.\u0275dir=Z.\u0275dir;Q2.prototype.start=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,nQd(),2);b=c.yieldResult;return c.return((new Promise(function(d,e){b.barPromise_||(b.barPromise_=new lQd(b.getDelegate().bf(),kQd));b.barPromise_.then(d,e)})).then(function(d){oQd(a,d)}))})};var oQd=function(a,b){a.router.events.pipe(we(G3a),Bf(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
Q2.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(Q2)))(b||Q2)}}();Q2.\u0275prov=Fc({token:Q2,factory:Q2.\u0275fac,providedIn:"root"});var R2=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(SQ);this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.handlers$=this.paramsService.routeParams$.pipe(pf(mm),Af(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.handlers$.subscribe(function(){}))};this.initOnce=uVa(this.init)};Y(R2,Z);R2.\u0275dir=Z.\u0275dir;
R2.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return z(e,Promise.all([b.issueFullFridge.poke(d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};R2.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(R2)))(b||R2)}}();R2.\u0275prov=Fc({token:R2,factory:R2.\u0275fac,providedIn:"root"});var S2=function(){var a=p($P);Z.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(Bf(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};Y(S2,Z);S2.\u0275dir=Z.\u0275dir;S2.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)};S2.\u0275fac=function(a){return new (a||S2)};
S2.\u0275prov=Fc({token:S2,factory:S2.\u0275fac,providedIn:"root"});var pQd=["leftSidebar"],qQd=function(){var a=this;this.hideAppChromeHelper=p(O2);this.renderer=p(di);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome;gf(function(){switch(a.hideAppChrome()){case !0:a.renderer.addClass(document.body,"hide-topbar");break;case !1:a.renderer.removeClass(document.body,"hide-topbar")}})};qQd.\u0275fac=function(a){return new (a||qQd)};
qQd.\u0275cmp=D({type:qQd,selectors:[["app-root"]],standalone:!1,decls:3,vars:1,consts:[["role","main",1,"full-width","full-height"]],template:function(a,b){a&1&&F(0,iLb,2,0,"div",0)(1,jLb,2,0,"div",0)(2,kLb,0,0);if(a&2){var c;G((c=b.hideAppChrome())===!0?0:c===!1?1:2)}},dependencies:function(){return[KE,T2]},encapsulation:2});
var T2=function(){Z.call(this);var a=this;this.appInitializer=p(VPd);this.appSearchState=p(oT);this.appEvents=p(PO);this.performanceToClearcut=p(ohd);this.window=p(hR);this.issueComments=p(nS);this.oneGoogleBar=p(Q2);this.scrollTiming=p(S2);this.pageTitleUpdaterService=p(n2);this.pageLoadOptimizerService=p(R2);this.bedbugService=p(N2);this.userActivity=p(ZP);this.bLocation=p(ZT);this.reloadService=p(r2);this.activeSession=p(qu);this.hotkeys=p(kU);this.paths=p(mW);this.userPrefs=p(dR);this.issuePagination=
p(l2);this.userFeedback=p(PY);this.matDialogService=p(QA);this.renderer=p(di);this.densityClass="d-comfort";this.announcement=this.dismissedMessageId=null;this.sidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();WPd(this.appInitializer);this.bedbugService.install();this.userActivity.install();phd(this.performanceToClearcut);this.subscriptions.add(this.appEvents.onClickAppMenuIcon.subscribe(function(){var r;(r=a.leftSidebar)==null||r.toggle()}));this.renderer.addClass(document.body,
this.densityClass);this.userPrefs.themePreferences$.pipe(Bf(this.destroyed$)).subscribe(function(r){r=qLb(r.density);r!==a.densityClass&&(a.renderer.addClass(document.body,r),a.renderer.removeClass(document.body,a.densityClass),a.densityClass=r)});this.subscriptions.add(drd(this.appSearchState,function(r){a.doSearch(r)}));var b=[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var r=document.querySelector(".search-box-container .search-box");r==null||r.focus();r==null||
r.select()}},{keys:[Tr("2"),f$a()],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:[Ur("g","p")],displayAs:"g then p",description:"Go to your preferred homepage",onPress:function(){a.bLocation.setUrl("/")}},{keys:[Ur("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:Yqd(this.activeSession.getUserEmail())}),e=this.paths.listIssues({q:"cc:"+this.activeSession.getUserEmail()}),f=this.paths.listIssues({q:$qd(this.activeSession.getUserEmail())}),g=this.paths.listIssues({q:"reporter:"+this.activeSession.getUserEmail()}),k=this.paths.listIssues({q:this.appSearchState.getStarred()}),l=this.paths.listIssues({q:"vote:true"});b.push({keys:[Ur("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',onPress:function(){a.bLocation.setUrl(d)}},
{keys:[Ur("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.bLocation.setUrl(e)}},{keys:[Ur("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.bLocation.setUrl(g)}},{keys:[Ur("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.bLocation.setUrl(k)}},{keys:[Ur("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.bLocation.setUrl(l)}},{keys:[Ur("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:["?",e$a("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){a.matDialogService.open(h2,{minWidth:512})}});this.subscriptions.add(lU(this.hotkeys,{title:"General",
hotkeys:b}));this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(nf(1),Bf(this.destroyed$)).subscribe(function(r){a.dismissedMessageId=r.bannerMessageId||"";var w;a.sidebarWidth=((w=r.layoutPreferences)==null?void 0:w.leftSidebarWidth)||220});this.oneGoogleBar.start();$2a()&&(ahd!=null&&ahd.disconnect(),ahd=new j3a.PerformanceObserver(o3a),ahd.observe({entryTypes:["measure"]}));setTimeout(gJb,6E4);this.scrollTiming.start();this.pageTitleUpdaterService.initOnce();
this.pageLoadOptimizerService.initOnce();this.window.emergencyBugjugglerWorkaround={session:this.activeSession,issueComments:this.issueComments}};Y(T2,Z);T2.\u0275dir=Z.\u0275dir;var oLb=function(a,b){var c;return y(function(d){if(d.nextAddress==1){if(b===a.sidebarWidth)return d.return();a.sidebarWidth=b;return z(d,ie(a.userPrefs.layoutPreferences$),2)}c=d.yieldResult;return z(d,ie(a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})),0)})};
T2.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=Fvd(this.paths,a);QOd(this.issuePagination);b&&jPd(this.reloadService);this.bLocation.setUrl(a)};var lLb=function(a){a.announcement!==null&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(nf(1),Bf(a.destroyed$)).subscribe())};T2.prototype.startFeedback=function(){this.userFeedback.startFeedback()};T2.\u0275fac=function(a){return new (a||T2)};
T2.\u0275cmp=D({type:T2,selectors:[["app-root-body"]],viewQuery:function(a,b){a&1&&hg(pQd,5);if(a&2){var c;lg(c=mg())&&(b.leftSidebar=c.first)}},standalone:!1,features:[Gf],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,nLb,4,2,"div",1),M(3,"b-sso-expired-callout-outlet"),K(4,"div",2),F(5,pLb,3,1,"b-resizable-sidebar",3),K(6,"div",4),M(7,"router-outlet"),L()(),M(8,"b-footer")(9,"bug-screensaver-manager"));if(a&2){B(2);var c;a=b.announcement;a=a===void 0?b.announcement:a;if((c=a)!=null&&c.message){var d;
c=((d=a.tags)==null?void 0:d.length)>0||!b.activeSession.getFlag("canSeeAnnouncementBanner")?!1:a.dismissible?b.dismissedMessageId==null?!1:a.messageId!==b.dismissedMessageId:!0}else c=!1;G(c?2:-1);B(3);G(b.isAnonymous?-1:5)}},dependencies:function(){return[KE,fPd,gPd,EOd,rU,B2,G2,DOd]},encapsulation:2});var rQd=function(){};rQd.\u0275fac=function(a){return new (a||rQd)};rQd.\u0275mod=cf({type:rQd});rQd.\u0275inj=Hc({imports:[RO,p2,CU,hPd,iB,g2,i2,uU,E2,H2]});var U2=function(){};U2.\u0275fac=function(a){return new (a||U2)};U2.\u0275mod=cf({type:U2});U2.\u0275inj=Hc({imports:[RO]});var sQd=function(){};sQd.\u0275fac=function(a){return new (a||sQd)};sQd.\u0275mod=cf({type:sQd});sQd.\u0275inj=Hc({imports:[RO,iB,MJ,kK,NU,U2]});var V2=function(){};V2.\u0275fac=function(a){return new (a||V2)};V2.\u0275mod=cf({type:V2});V2.\u0275inj=Hc({imports:[oV,xV,iB,RO]});var W2=function(){};W2.\u0275fac=function(a){return new (a||W2)};W2.\u0275mod=cf({type:W2});W2.\u0275inj=Hc({imports:[RO,PJ,bK,iK,DU,iB,BE,gL,xE,V2]});var tQd=function(){};tQd.\u0275fac=function(a){return new (a||tQd)};tQd.\u0275mod=cf({type:tQd});tQd.\u0275inj=Hc({imports:[Yx]});var uQd=function(){};uQd.\u0275fac=function(a){return new (a||uQd)};uQd.\u0275mod=cf({type:uQd});uQd.\u0275inj=Hc({imports:[Yx,LI,xHd]});var X2=function(){};X2.\u0275fac=function(a){return new (a||X2)};X2.\u0275mod=cf({type:X2});X2.\u0275inj=Hc({imports:[Yx,Fy,LI,xE,tQd,uQd,HX]});var vQd=function(){};vQd.\u0275fac=function(a){return new (a||vQd)};vQd.\u0275mod=cf({type:vQd});vQd.\u0275inj=Hc({imports:[RO,MJ,X2,W2,xE,V2,iB,pK]});var wQd=function(){};wQd.\u0275fac=function(a){return new (a||wQd)};wQd.\u0275mod=cf({type:wQd});wQd.\u0275inj=Hc({imports:[RO,xV,gL,iB,MJ,fU,nX,bU,iV]});var xQd=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"]]),yQd=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),tLb=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),uLb=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),zQd=function(){this.$log=p(iO);this.activeSession=p(qu);this.sessionIsInternal=this.activeSession.isInternalSession()};zQd.\u0275fac=function(a){return new (a||zQd)};zQd.\u0275prov=Fc({token:zQd,factory:zQd.\u0275fac,providedIn:"root"});var wLb=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var AQd=new fd("GM2_PAGINATOR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var BQd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};BQd.\u0275fac=function(a){return new (a||BQd)(Ye(AQd))};BQd.\u0275dir=df({type:BQd,selectors:[["mat-paginator"]],hostAttrs:[1,"gmat-mdc-paginator"],standalone:!1});var CQd=function(){this.changes=new sf;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}};CQd.\u0275fac=function(a){return new (a||CQd)};CQd.\u0275prov=Fc({token:CQd,factory:CQd.\u0275fac,providedIn:"root"});var DQd=new fd("MAT_PAGINATOR_DEFAULT_OPTIONS"),Y2=function(){var a=this;this._intl=p(CQd);this._changeDetectorRef=p(ux);this._pageSizeLabelId=p(bi).getId("mat-paginator-page-size-label-");this._isInitialized=!1;this._initializedStream=new wf(1);this._length=this._pageIndex=0;this._pageSizeOptions=[];this.showFirstLastButtons=this.hidePageSize=!1;this.selectConfig={};this.disabled=!1;this.page=new Ui;this.initialized=this._initializedStream;var b=this._intl,c=p(DQd,{optional:!0});this._intlChanges=
b.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()});if(c){var d=c.pageSize,e=c.pageSizeOptions,f=c.hidePageSize,g=c.showFirstLastButtons;d!=null&&(this._pageSize=d);e!=null&&(this._pageSizeOptions=e);f!=null&&(this.hidePageSize=f);g!=null&&(this.showFirstLastButtons=g)}this._formFieldAppearance=(c==null?void 0:c.formFieldAppearance)||"outline"};h=Y2.prototype;h.ngOnInit=function(){this._isInitialized=!0;this._updateDisplayedPageSizeOptions();this._initializedStream.next()};
h.ngOnDestroy=function(){this._initializedStream.complete();this._intlChanges.unsubscribe()};h.nextPage=function(){this.hasNextPage()&&this._navigate(this.pageIndex+1)};h.hasPreviousPage=function(){return this.pageIndex>=1&&this.pageSize!=0};h.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&this.pageSize!=0};h._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};
h._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};h._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
h._updateDisplayedPageSizeOptions=function(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
h._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};h._navigate=function(a){var b=this.pageIndex;a!==b&&(this.pageIndex=a,this._emitPageEvent(b))};h._buttonClicked=function(a,b){b||this._navigate(a)};
da.Object.defineProperties(Y2.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 ah(b,0)});this._updateDisplayedPageSizeOptions()}}});Y2.\u0275fac=function(a){return new (a||Y2)};
Y2.\u0275cmp=D({type:Y2,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ah],length:[2,"length","length",ah],pageSize:[2,"pageSize","pageSize",ah],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",$g],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",$g],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",$g]},outputs:{page:"page"},exportAs:["matPaginator"],
decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button",
"matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],
["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass",
"disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled",
"disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,CLb,5,4,"div",3),K(3,"div",4)(4,"div",5),Q(5),L(),F(6,DLb,3,5,"button",6),K(7,"button",7),N("click",function(){return b._buttonClicked(b.pageIndex-1,b._previousButtonsDisabled())}),Ad(),K(8,"svg",8),M(9,"path",9),L()(),Cd(),K(10,"button",10),N("click",function(){return b._buttonClicked(b.pageIndex+1,b._nextButtonsDisabled())}),Ad(),K(11,"svg",8),M(12,
"path",11),L()(),F(13,ELb,3,5,"button",12),L()()());a&2&&(B(2),G(b.hidePageSize?-1:2),B(3),S(" ",b._intl.getRangeLabel(b.pageIndex,b.pageSize,b.length)," "),B(),G(b.showFirstLastButtons?6:-1),B(),I("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("disabled",b._previousButtonsDisabled())("tabindex",b._previousButtonsDisabled()?-1:null),Kf("aria-label",b._intl.previousPageLabel),B(3),I("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("disabled",
b._nextButtonsDisabled())("tabindex",b._nextButtonsDisabled()?-1:null),Kf("aria-label",b._intl.nextPageLabel),B(3),G(b.showFirstLastButtons?13:-1))},dependencies:[MD,MH,cA,eB,iA],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],
encapsulation:2,changeDetection:0});var EQd=function(){this.paths=p(mW);this.ROUTES=ps;this.children=[];this.onVisit=new XP;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};EQd.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};EQd.\u0275fac=function(a){return new (a||EQd)};
EQd.\u0275cmp=D({type:EQd,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,FLb,1,3,"mat-paginator",1),K(1,"ul",2),Of(2,GLb,6,4,"li",null,Nf),
L());a&2&&(G(b.children.length>b.pageSize?0:-1),B(2),Pf(b.childrenOnPage))},dependencies:[DK,LK,TV,BQd,Y2],encapsulation:2});var FQd=function(){};FQd.\u0275fac=function(a){return new (a||FQd)};FQd.\u0275mod=cf({type:FQd});FQd.\u0275inj=Hc({imports:[fB,OH,jA,Y2]});var GQd=function(){};GQd.\u0275fac=function(a){return new (a||GQd)};GQd.\u0275mod=cf({type:GQd});GQd.\u0275inj=Hc({providers:[tsd],imports:[FQd]});var Z2=function(){};Z2.\u0275fac=function(a){return new (a||Z2)};Z2.\u0275mod=cf({type:Z2});Z2.\u0275inj=Hc({imports:[RO,MK,R0,GQd]});var HQd=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new XP;this.onClickCopyIssueShortLinks=new XP;this.onClickCopyAsIssueSearch=new XP};HQd.\u0275fac=function(a){return new (a||HQd)};
HQd.\u0275cmp=D({type:HQd,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();K(0,"b-button-group")(1,"button",1);N("click",function(){u(c);return v(b.onClickCopyIssueIds.emit())});M(2,"b-icon",2);L();K(3,"button",3);M(4,"b-icon",4);L();K(5,"mat-menu",null,0);F(7,HLb,2,
1,"button",5);K(8,"button",6);N("click",function(){u(c);return v(b.onClickCopyAsIssueSearch.emit())});Q(9," Copy as issue search ");L()()()}a&2&&(a=qg(6),B(3),I("matMenuTriggerFor",a),B(4),G(b.shouldShowCopyIssueShortLinks?7:-1))},dependencies:[OJ,YG,WG,aH,gB,cB,xOd,pT],encapsulation:2,changeDetection:0});xIa(zIa(yIa(function(a){this._elementRef=a})));q(["disabled","disableRipple","color","tabIndex"]);var IQd=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var JQd=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new sf;this._afterOpened=new sf;this._onAction=new sf;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};h=JQd.prototype;h.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
h.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};h._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};h._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
h._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};h.afterDismissed=function(){return this._afterDismissed};h.afterOpened=function(){return this.containerInstance._onEnter};h.onAction=function(){return this._onAction};var KQd=Ata("state",[Yi("void, hidden",Wi({transform:"scale(0.8)",opacity:0})),Yi("visible",Wi({transform:"scale(1)",opacity:1})),Zi("* => visible",Vi("150ms cubic-bezier(0, 0, 0.2, 1)")),Zi("* => void, * => hidden",Vi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wi({opacity:0})))]);var LQd=0,a3=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=p(Sh);this._trackedModals=new Set;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new sf;this._onExit=new sf;this._onEnter=new sf;this._animationState="void";this._liveElementId="mat-snack-bar-container-live-"+LQd++;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(a3,Jz);h=a3.prototype;h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
h.onAnimationEnd=function(a){var b=a.fromState;a=a.toState;(a==="void"&&b!=="void"||a==="hidden")&&this._completeExit();if(a==="visible"){var c=this._onEnter;this._ngZone.run(function(){c.next();c.complete()})}};h.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};
h.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)});return this._onExit};h.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};h._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(nf(1)).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};
h._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals()};
h._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
h._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};h._assertNotAttached=function(){};
h._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var b=a._elementRef.nativeElement.querySelector("[aria-hidden]"),c=a._elementRef.nativeElement.querySelector("[aria-live]");if(b&&c){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&b.contains(document.activeElement)&&(d=document.activeElement);b.removeAttribute("aria-hidden");c.appendChild(b);var e;(e=d)==null||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},a._announceDelay)})};a3.\u0275fac=function(a){return new (a||a3)(Ye(Rg),Ye(Jd),Ye(ux),Ye(Wh),Ye(IQd))};a3.\u0275dir=df({type:a3,viewQuery:function(a,b){a&1&&hg(Lz,7);if(a&2){var c;lg(c=mg())&&(b._portalOutlet=c.first)}},standalone:!1,features:[Gf]});var b3=function(a,b,c,d,e,f){this._overlay=a;this._live=b;this._injector=c;this._breakpointObserver=d;this._parentSnackBar=e;this._defaultConfig=f;this._snackBarRefAtThisLevel=null};h=b3.prototype;h.openFromComponent=function(a,b){return this._attach(a,b)};h.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};
h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};h._attachSnackBarContainer=function(a,b){var c=Yg({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:IQd,useValue:b}]});a=a.attach(new Hz(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new IQd,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new JQd(b,e);if(a instanceof eg)f.instance=b.attachTemplatePortal(new Iz(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new Hz(a,void 0,g));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Bf(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
h._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter();b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
h._createOverlay=function(a){var b=new ei;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"):Dz(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
h._createInjector=function(a,b){return Yg({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:JQd,useValue:b},{provide:jB,useValue:a.data}]})};da.Object.defineProperties(b3.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}}});
b3.\u0275fac=function(a){return new (a||b3)($c(Nz),$c(Yy),$c(Ae),$c(Sy),$c(b3,12),$c(iGc))};b3.\u0275prov=Fc({token:b3,factory:b3.\u0275fac});var c3=function(a,b){this.snackBarRef=a;this.data=b};c3.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(c3.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});c3.\u0275fac=function(a){return new (a||c3)(Ye(JQd),Ye(jB))};
c3.\u0275cmp=D({type:c3,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],hostVars:1,hostBindings:function(a){a&2&&Kf("mat-id-collision",null)},standalone:!1,decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,b){a&1&&(K(0,"span",0),Q(1),L(),E(2,ILb,3,1,"div",1));a&2&&(B(),yg(b.data.message),B(),I("ngIf",b.hasAction))},dependencies:[Fx,zI],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 e3=function(){a3.apply(this,arguments)};Y(e3,a3);e3.\u0275dir=a3.\u0275dir;e3.prototype._afterPortalAttached=function(){a3.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")};e3.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(e3)))(b||e3)}}();
e3.\u0275cmp=D({type:e3,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&Bna("@state.done",function(c){return b.onAnimationEnd(c)});a&2&&(Uma("@state",b._animationState),Kf("mat-id-collision",null))},standalone:!1,features:[Gf],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(K(0,"div",0),E(1,JLb,0,0,"ng-template",1),L(),M(2,"div"));a&2&&(B(2),Kf("aria-live",b._live)("role",b._role)("id",
b._liveElementId))},dependencies:[Lz],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:[KQd]}});var f3=function(){};f3.\u0275fac=function(a){return new (a||f3)};f3.\u0275mod=cf({type:f3});f3.\u0275inj=Hc({imports:[Qz,Mz,Yx,LI,Ey]});var g3=function(a,b,c,d,e,f){b3.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=c3;this.snackBarContainerComponent=e3;this.handsetCssClass="mat-snack-bar-handset"};Y(g3,b3);g3.\u0275fac=function(a){return new (a||g3)($c(Nz),$c(Yy),$c(Ae),$c(Sy),$c(g3,12),$c(iGc))};g3.\u0275prov=Fc({token:g3,factory:g3.\u0275fac,providedIn:f3});var MQd={duration:1E3},NQd=new fd("xap-clipboard-snackbar-options"),OQd=function(a,b,c){this.clipboard=a;this.snackBar=b;this.snackBarConfig=c;this.textJob=""},PQd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1){b=Object.assign({},MQd,a.snackBarConfig);c=a.text;if(!a.clipboard.copy(c))return a.snackBar.open("Failed to copy.",void 0,b),f.jumpTo(0);if(typeof a.textJob==="string"||(d=a.textJob)==null||!d.richText)return f.jumpTo(3);e=a.textJob.richText instanceof Function?a.textJob.richText():
a.textJob.richText;if(typeof ClipboardItem!=="undefined"){var g=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([c],{type:"text/plain"})});g=navigator.clipboard.write([g])}else g=Promise.resolve();return z(f,g,3)}a.snackBar.open("Copied to clipboard.",void 0,b);ce(f)})};
da.Object.defineProperties(OQd.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}}});OQd.\u0275fac=function(a){return new (a||OQd)(Ye(kR),Ye(g3),Ye(NQd,8))};OQd.\u0275dir=df({type:OQd,selectors:[["","xapCopyToClipboard",""]],hostBindings:function(a,b){a&1&&N("click",function(){return PQd(b)})},inputs:{textJob:[0,"xapCopyToClipboard","textJob"]}});var QQd=function(){};QQd.prototype.getAriaLabel=function(){return this.ariaLabel?this.ariaLabel:this.ariaLabelledBy||this.ariaDescribedBy?null:"Copy content to clipboard"};QQd.\u0275fac=function(a){return new (a||QQd)};
QQd.\u0275cmp=D({type:QQd,selectors:[["xap-copy-button"]],hostAttrs:[1,"xap-copy-button"],hostVars:2,hostBindings:function(a,b){a&2&&wg("xap-copy-button-unthemed",!b.color)},inputs:{copyText:"copyText",disabled:"disabled",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledBy:[0,"aria-labelledby","ariaLabelledBy"],ariaDescribedBy:[0,"aria-describedby","ariaDescribedBy"],tabIndex:[0,"tabindex","tabIndex"],color:"color"},decls:3,vars:7,consts:[["mat-icon-button","","type","button",3,"xapCopyToClipboard",
"disabled","color"],[1,"xap-clipboard-icon"]],template:function(a,b){a&1&&(K(0,"button",0)(1,"mat-icon",1),Q(2," content_copy "),L()());a&2&&(I("xapCopyToClipboard",b.copyText)("disabled",b.disabled)("color",b.color),Kf("tabindex",b.tabIndex)("aria-label",b.getAriaLabel())("aria-labelledby",b.ariaLabelledBy)("aria-describedby",b.ariaDescribedBy))},dependencies:[Yx,LI,zI,Fy,Dy,f3,OQd],encapsulation:2,changeDetection:0});var RQd=function(){};RQd.\u0275fac=function(a){return new (a||RQd)};RQd.\u0275mod=cf({type:RQd});RQd.\u0275inj=Hc({imports:[QQd]});var h3=function(){};h3.\u0275fac=function(a){return new (a||h3)};h3.\u0275mod=cf({type:h3});h3.\u0275inj=Hc({imports:[RO,PJ,iB,c2,DU,RQd]});var SQd=function(){this.clipboard=p(kR);this.analytics=p(aQ);this.butterBar=p(QN);this.window=p(hR);this.activeSession=p(qu);this.shortLinkPrefix=ws(this.activeSession)?"b/":"b-qa/"},kNb=function(a,b){a.clipboard.copy(b.join(", "));Pr(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","IDs")},lNb=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));Pr(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent("listIssues",
"copyIssueId","b/ links")},mNb=function(a,b){b=ps.listIssues.makeHref({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+b);Pr(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","Issue search link")};SQd.\u0275fac=function(a){return new (a||SQd)};SQd.\u0275prov=Fc({token:SQd,factory:SQd.\u0275fac,providedIn:"root"});var i3=function(){};i3.\u0275fac=function(a){return new (a||i3)};i3.\u0275mod=cf({type:i3});i3.\u0275inj=Hc({imports:[RO,MK,R0]});var TQd=function(){};TQd.\u0275fac=function(a){return new (a||TQd)};TQd.\u0275mod=cf({type:TQd});TQd.\u0275inj=Hc({imports:[RO,xE,iB,EU,gL,MJ,pX]});var j3=function(){this.componentActions=p(WV);this.errorHandler=p(kO);this.cdr=p(YP)};j3.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 k3=function(a,b){a.selectedId&&UQd(a.selectedId);a.selectedId=b;if(a=VQd(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},WQd=function(a){if(!a.selectedId)return null;var b;return(b=a.components.find(function(c){return c.componentId===a.selectedId}))!=null?b:null},XQd=function(a){return a.selectedId?a.components.findIndex(function(b){return b.componentId===a.selectedId}):-1},UQd=function(a){a&&(a=VQd(a))&&a.setAttribute("aria-selected","false")},VQd=function(a){return a?document.getElementById("component-"+
a):null},YQd=function(a){for(a=a.target;;){if(!a)return!1;if(a.tagName==="A")return!0;a=a.parentNode}};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275cmp=D({type:j3,selectors:[["component-subtree-list-base"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var NLb=function(a){return{q:a}},l3=function(){j3.apply(this,arguments);this.paths=p(mW);this.ROUTES=ps;this.includeArchived=!1;this.childClosed=new XP;this.selectedId=null};Y(l3,j3);l3.prototype.ngOnInit=function(){};l3.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};l3.prototype.ngOnChanges=function(a){a.components&&ZQd(this)};l3.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;k3(this,a);this.rootController.selectionChanged(this,a)};
var ZQd=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){a.selectNext()})};h=l3.prototype;
h.selectNext=function(){if(this.components)if(this.selectedId){var a=XQd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(UQd(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(k3(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else k3(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
h.selectPrevious=function(){var a=XQd(this);a==0?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(k3(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};h.closeSubtree=function(){if(this.selectedId){var a=WQd(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
h.showChildrenForSelectedId=function(){var a=WQd(this);a&&this.showChildren(a)};h.setSelected=function(a,b){YQd(b)||(k3(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};h.toggleChildrenForSelectedId=function(){var a=WQd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};l3.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(l3)))(b||l3)}}();
l3.\u0275cmp=D({type:l3,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:3,vars:0,consts:[[1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id"],["tabindex","-1","role","treeitem","aria-selected","false",3,"click","id"],[1,"component-row"],[1,"selected-indicator"],
[1,"component-tree-toggle"],["matTooltip","Hide child components"],["matTooltip","Show child components"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["mat-raised-button","","color","primary",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],["matTooltip","Show child components",3,"click"],["svgIcon",
"arrow-dropdown",2,"transform","rotate(-90deg)"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived"],[3,"childClosed","components","parentComponent","rootController","includeArchived"]],template:function(a,b){a&1&&(K(0,"ol",0),Of(1,ULb,19,11,"li",1,Nf),L());a&2&&(B(),Pf(b.components))},dependencies:[Dy,oK,iA,gB,cB,$T,SV,$V,l3],encapsulation:2});var YLb=function(a){return{q:a}},m3=function(){j3.call(this);this.paths=p(mW);this.hotkeys=p(kU);this.elementRef=p(Jd);this.ROUTES=ps;this.scrollArea=this.elementRef.nativeElement.parentElement;this.selectedId=null;this.includeArchived=!1;this.init=new XP;this.subscriptions=new Rd;this.destroyed$=new wf(1);this.registerKeys()};Y(m3,j3);
m3.prototype.ngOnInit=function(){var a=this;this.rootController=this;te(0).pipe(Bf(this.destroyed$)).subscribe(function(){$Qd(a)&&!a.selectedId&&k3(a,a.components[0].componentId)});this.init.emit(this)};m3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};m3.prototype.ngOnChanges=function(a){a.components&&aRd(this)};m3.prototype.onSubtreeChildClosed=function(a){var b=this;k3(this,a);this.focusedController=void 0;te(0).pipe(Bf(this.destroyed$)).subscribe(function(){n3(b)})};
var aRd=function(a){te(0).pipe(Bf(a.destroyed$)).subscribe(function(){$Qd(a)&&!a.selectedId&&k3(a,a.components[0].componentId)})};h=m3.prototype;h.selectionChanged=function(a,b){b&&n3(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&UQd(b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};h.setSelected=function(a,b){YQd(b)||(k3(this,a),this.selectionChanged(null),n3(this),b.preventDefault(),b.stopPropagation())};
h.registerKeys=function(){var a=this;this.subscriptions.add(lU(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){a.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){a.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){a.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",
description:"Close the components children",onPress:function(){a.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){a.toggleChildrenForSelectedId()}}]}))};h.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=WQd(this);a&&this.showChildren(a)}};
h.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=WQd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};h.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(WQd(this).showChildren=!1,this.cdr.detectChanges())};
h.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=XQd(this);$Qd(this)&&a>=1&&(k3(this,this.components[a-1].componentId),n3(this))}};
h.selectNext=function(){if($Qd(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=XQd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(UQd(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(k3(this,this.components[a+1].componentId),n3(this))}else k3(this,this.components[0].componentId),n3(this)};
var n3=function(a,b){var c=bRd(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=VQd(b||a.selectedId)){b=bRd(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},bRd=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},$Qd=function(a){return!!(a.components&&a.components.length>0)};m3.\u0275fac=function(a){return new (a||m3)};
m3.\u0275cmp=D({type:m3,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:3,vars:0,consts:[["role","tree",1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id"],["tabindex","-1","role","treeitem","aria-selected","false",3,"click","id"],[1,"component-row"],[1,"selected-indicator"],[1,"component-tree-toggle"],["matTooltip","Hide child components"],
["matTooltip","Show child components"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["mat-raised-button","","color","primary",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],["matTooltip","Show child components",3,"click"],["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],[1,"component-no-children"],
[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived"],[3,"childClosed","components","parentComponent","rootController","includeArchived"]],template:function(a,b){a&1&&(K(0,"ol",0),Of(1,eMb,19,10,"li",1,Nf),L());a&2&&(B(),Pf(b.components))},dependencies:[Dy,oK,iA,gB,cB,$T,SV,$V,l3],encapsulation:2});var o3=function(){};o3.\u0275fac=function(a){return new (a||o3)};o3.\u0275mod=cf({type:o3});o3.\u0275inj=Hc({imports:[RO,pK,iB,bU,pX,JX]});var p3=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new XP;this.filter=function(){return!0}};p3.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};p3.\u0275fac=function(a){return new (a||p3)};
p3.\u0275cmp=D({type:p3,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&&(K(0,"div",0)(1,
"div",1),Q(2," First, select a component that contains the custom field. "),L(),K(3,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.onComponentSelect(c!=null?c:null)}),L(),F(4,jMb,4,3,"div",3),L());a&2&&(B(3),I("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(),G(b.selectedComponent?4:-1))},dependencies:[vU,MD,ED,MH,cA,BD,iW],encapsulation:2});var q3=function(){};q3.\u0275fac=function(a){return new (a||q3)};q3.\u0275mod=cf({type:q3});
q3.\u0275inj=Hc({imports:[RO,wU,NX]});var cRd=function(a){return{value:a}},r3=function(){this.isNonemptyJsonDateValue=P1a};r3.prototype.toDate=function(a){return Tq(a)};r3.\u0275fac=function(a){return new (a||r3)};
r3.\u0275cmp=D({type:r3,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&&(K(0,"span",2),E(1,kMb,1,0,"ng-container",3),L(),E(2,lMb,0,0,"ng-template",null,0,Mg)(4,yMb,8,8,"ng-template",null,1,Mg));a&2&&(a=qg(5),B(),I("ngTemplateOutlet",b.customFieldValue==null?
null:a)("ngTemplateOutletContext",Ig(2,cRd,b.customFieldValue)))},dependencies:[Kx,sV],encapsulation:2});var s3=function(){};s3.\u0275fac=function(a){return new (a||s3)};s3.\u0275mod=cf({type:s3});s3.\u0275inj=Hc({imports:[RO,xV]});var dRd=function(){this.documentationLinks=p(YR);this.userAccess=p(yP);this.errorHandler=p(kO);this.data=p(PA);this.issuesToFlag=this.data.issuesToFlag;this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1};dRd.prototype.ngOnInit=function(){eRd(this,this.issuesToFlag)};
var eRd=function(a,b){b.length<=0?a.permissionsCheckComplete=!0:zP(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);eRd(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};dRd.\u0275fac=function(a){return new (a||dRd)};
dRd.\u0275cmp=D({type:dRd,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&&(K(0,"h1",0),Q(1,"Flag Issues as Spam"),L(),K(2,"div",1)(3,"div",2)(4,"p"),Q(5),K(6,"a",3),Q(7,"see here"),L(),Q(8,". "),L(),K(9,"p"),Q(10," This operation cannot be undone in bulk. "),L()(),K(11,"div",4),F(12,zMb,3,2,"div"),F(13,BMb,6,1,"div"),L()(),K(14,"div",5)(15,"button",6),Q(16," Close "),L(),K(17,"button",7),Q(18," Flag as Spam "),L()());a&2&&(B(5),S(" Flagging these ",b.issuesToFlag.length," issues as spam will cause them to drop out of regular search results, and they will be deleted after 30 days. For more information on remediating spam at scale, "),
B(),I("href",Hmd(b.documentationLinks),Pe),B(6),G(b.permissionsCheckComplete?-1:12),B(),G(b.permissionsCheckComplete&&b.protectedIssues.length>0?13:-1),B(4),I("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[gB,cB,RA,TA,VA,UA],encapsulation:2});var t3=function(){this.cdr=p(YP,{self:!0});this.dialogRef=p(NA);this.component=null};t3.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};t3.prototype.save=function(){this.dialogRef.close(this.component)};t3.prototype.cancel=function(){this.dialogRef.close()};t3.\u0275fac=function(a){return new (a||t3)};
t3.\u0275cmp=D({type:t3,selectors:[["b-bulk-move-dialog"]],standalone:!1,features:[Gg([YP])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"bv2-bulk-move-warning"],[3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Change Component"),L(),K(2,"mat-dialog-content")(3,"p"),Q(4,"Choose new component for these issues."),L(),
K(5,"p",1),Q(6," Warning: If these issues have custom fields, their values will be lost if you move the issues outside the component subtree that defines those custom fields. "),L(),K(7,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.updateComponent(c!=null?c:null)}),L()(),K(8,"mat-dialog-actions")(9,"button",3),N("click",function(){return b.cancel()}),Q(10," Cancel "),L(),K(11,"button",4),N("click",function(){return b.save()}),Q(12," Save "),L()());a&2&&(B(7),I("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),I("disabled",b.component==null))},dependencies:[gB,cB,TA,VA,UA,iW],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}mat-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text)}"]});var u3=function(){this.renderPanel=this.noneButtonEnabled=!0;this.sloEditCommit=new XP;this.closePicker=new XP;this.currentPickerDate=new bo};u3.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=(b=new bo(Cab(this.sloEditTime)))!=null?b:void 0}};u3.prototype.setDate=function(a){this.currentPickerDate=a};u3.\u0275fac=function(a){return new (a||u3)};
u3.\u0275cmp=D({type:u3,selectors:[["slo-edit-date-time-picker"]],inputs:{sloEditTime:"sloEditTime",noneButtonEnabled:"noneButtonEnabled",sloStatus:"sloStatus",renderPanel:"renderPanel"},outputs:{sloEditCommit:"sloEditCommit",closePicker:"closePicker"},standalone:!1,features:[Gg([YP]),bx],decls:2,vars:4,consts:[[3,"clickOutside"],[3,"dateTimeChange","saveClicked","cancelClicked","renderPanel","dateTime","noneButtonEnabled","includeTimePicker"]],template:function(a,b){a&1&&(K(0,"div",0),N("clickOutside",
function(){b.closePicker.emit()}),K(1,"b-date-time-picker-content",1),N("dateTimeChange",function(c){return b.setDate(c)})("saveClicked",function(){var c=(c=b.currentPickerDate)?{seconds:c.getTime()/1E3,nanos:0}:null;b.sloEditCommit.emit({date:c!=null?c:null});b.closePicker.emit()})("cancelClicked",function(){b.closePicker.emit()}),L()());a&2&&(B(),I("renderPanel",b.renderPanel)("dateTime",b.currentPickerDate)("noneButtonEnabled",b.noneButtonEnabled)("includeTimePicker",!0))},dependencies:[D_,kV],
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 fRd=function(){this.data=p(PA);this.dialogRef=p(NA);this.fieldDisplayName=this.data.fieldDisplayName;this.commitEvent=void 0};fRd.prototype.close=function(){this.dialogRef.close(this.commitEvent)};fRd.\u0275fac=function(a){return new (a||fRd)};
fRd.\u0275cmp=D({type:fRd,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&&(K(0,"h1",0),Q(1),L(),K(2,"slo-edit-date-time-picker",1),N("sloEditCommit",function(c){b.commitEvent=c})("closePicker",function(){return b.close()}),L());a&2&&(B(),S("Edit ",b.fieldDisplayName),B(),I("renderPanel",!1))},dependencies:[TA,UA,u3],encapsulation:2});var v3=function(){this.data=p(PA);this.dialogRef=p(NA);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})};
v3.prototype.enableSubmit=function(){return this.isEnumSpec&&this.currentEnumLabel!==""||!this.isEnumSpec};v3.prototype.cancel=function(){this.dialogRef.close(void 0)};v3.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)};v3.\u0275fac=function(a){return new (a||v3)};
v3.\u0275cmp=D({type:v3,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&&(K(0,"h1",0),Q(1),L(),F(2,CMb,4,4,"div",1)(3,DMb,5,2,"mat-dialog-content"),K(4,"mat-dialog-actions")(5,
"button",2),N("click",function(){return b.cancel()}),Q(6," Cancel "),L(),K(7,"button",3),N("click",function(){return b.save()}),Q(8," Save "),L()());a&2&&(B(),S("Edit ",b.fieldDisplayName),B(),G(b.isEnumSpec?2:3),B(5),I("disabled",!b.enableSubmit()))},dependencies:[yj,$D,gE,gB,cB,TA,VA,UA,PD,zE,MD,ED,BD,u_],encapsulation:2});var w3=function(){this.data=p(PA);this.dialogRef=p(NA);this.removeItems=this.addItems="";this.fieldDisplayName=this.data.fieldDisplayName};w3.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};w3.prototype.close=function(){this.dialogRef.close()};w3.\u0275fac=function(a){return new (a||w3)};
w3.\u0275cmp=D({type:w3,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&&(K(0,"h1",0),Q(1),L(),K(2,"mat-dialog-content")(3,"p"),Q(4),L(),K(5,"div",1)(6,"mat-form-field",2)(7,"mat-label"),Q(8),L(),K(9,
"input",3),Cg("ngModelChange",function(c){Bg(b.addItems,c)||(b.addItems=c);return c}),L()(),M(10,"br"),K(11,"mat-form-field",2)(12,"mat-label"),Q(13),L(),K(14,"input",3),Cg("ngModelChange",function(c){Bg(b.removeItems,c)||(b.removeItems=c);return c}),L()()()(),K(15,"mat-dialog-actions")(16,"button",4),N("click",function(){return b.close()}),Q(17," Cancel "),L(),K(18,"button",5),N("click",function(){return b.save()}),Q(19," Save "),L()());a&2&&(B(),S("Edit ",b.fieldDisplayName),B(3),S("Enter ",b.fieldDisplayName,
" to add or remove"),B(4),S(" ",b.fieldDisplayName," to Add "),B(),Ag("ngModel",b.addItems),B(4),S(" ",b.fieldDisplayName," to Remove "),B(),Ag("ngModel",b.removeItems))},dependencies:[yj,$D,gE,gB,cB,PD,zE,MD,ED,BD,TA,VA,UA],styles:["mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var gRd=["hotlistFilterInput"],hRd=["hotlistCreate"],iRd=["hotlistApply"],jRd=["hotlistLoad"],kRd=["menuitem"],x3=function(){Z.apply(this,arguments);this.liveAnnouncer=p(Yy);this.butterBar=p(QN);this.userAccess=p(yP);this.analytics=p(aQ);this.activeSession=p(qu);this.cdr=p(YP,{self:!0});this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new XP;this.onApply=new XP;this.onLoad=new XP;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(x3,Z);x3.\u0275dir=Z.\u0275dir;x3.prototype.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(Bf(this.destroyed$)).subscribe(function(){te(0).pipe(Bf(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;(c=this.trigger)==null||c.menuClosed.pipe(Bf(this.destroyed$)).subscribe(function(){lRd(a)})};
x3.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};x3.prototype.ngOnChanges=function(){mRd(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;nRd(this)};
var mRd=function(a){var b={};Qta(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=m(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=m(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=m(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=m(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=m(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Dba(a.choices,function(g,k){var l=b[g.hotlistId],r=b[k.hotlistId];return l>r?-1:l<r?1:wa(g.name,k.name)})}}};x3.prototype.open=function(){this.trigger.openMenu();this.cdr.detectChanges()};x3.prototype.close=function(){this.trigger.closeMenu()};
x3.prototype.hasAclToEdit=function(a){var b=this;if(Mta(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];zP(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var EMb=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return a===void 0?!0:!a},FMb=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=c===null?!0:!c;MMb(a);a.close()},MMb=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},nRd=function(a){for(var b=a.filterText,c=!1,d=m(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=Yaa(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=u9a(Aa(b))&&!!b&&!!a.onLoad},lRd=function(a){a.trigger.menuOpen||(mRd(a),a.filterText="",nRd(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},oRd=function(a){var b=a.selectedHotlistIds;return b&&b.length===1?"Hotlists ("+qba(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
x3.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",nRd(this),this.onCreate.emit({name:b,successCallback:function(c){FMb(a,c)},errorCallback:function(){a.butterBar.showWarning("Failed to create hotlist "+b)}}))};
x3.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){this.analytics.trackEvent("hotlistPicker","loadHotlist");Pr(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";nRd(this);for(var c=sm(b),d=m(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){FMb(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){FMb(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
x3.prototype.handleSelectionChange=function(){this.focusFilterBox();this.pendingChanges=!mm(this.oldSelectedHotlistMap,this.selectedHotlistMap)};
var GMb=function(a,b){EMb(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.handleSelectionChange())},vRd=function(a,b){b=b===void 0?0:b;var c=pRd(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=tba(pRd(a),b),qRd(a),rRd(a,b)):a.focusedRowIndex<d&&a.canCreate?sRd(a,d):a.focusedRowIndex<d+1&&a.canLoad?tRd(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&
uRd(a,d)},pRd=function(a){return a.menuItems.map(function(b){return b.nativeElement})},wRd=function(a,b){b=b===void 0?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)sRd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)tRd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)sRd(a,a.choices.length);else{var c=pRd(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=tba(pRd(a),b),qRd(a),rRd(a,b)):(a.focusedRowIndex=-1,rRd(a,null))}},rRd=function(a,b){a.filterElement&&jU(a.filterElement.nativeElement,b);a.focusFilterBox()},sRd=function(a,b){a.focusedRowIndex=b;jU(a.filterElement.nativeElement,null);var c;(c=a.createElement)==null||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},tRd=function(a,b){a.focusedRowIndex=b+1;jU(a.filterElement.nativeElement,null);var c;(c=a.loadElement)==
null||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},uRd=function(a,b){a.focusedRowIndex=b+2;jU(a.filterElement.nativeElement,null);var c;(c=a.applyElement)==null||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},qRd=function(a){a.focusedRowIndex===-1||a.focusedRowIndex>=a.choices.length||(a=pRd(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},HMb=function(a){return a==null?"mixed":a.toString()},
IMb=function(a){return a==null?"indeterminate":a?"checked":"unchecked"};x3.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(x3)))(b||x3)}}();
x3.\u0275cmp=D({type:x3,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(hg(aH,5),hg(gRd,5),hg(hRd,5),hg(iRd,5),hg(jRd,5),hg(kRd,5));if(a&2){var c;lg(c=mg())&&(b.trigger=c.first);lg(c=mg())&&(b.filterElement=c.first);lg(c=mg())&&(b.createElement=c.first);lg(c=mg())&&(b.applyElement=c.first);lg(c=mg())&&(b.loadElement=c.first);lg(c=mg())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:13,vars:4,consts:[["hotlistMenu","matMenu"],["hotlistFilterInput",""],["hotlistChoices",""],["hotlistCreate",""],["menuitem",""],["hotlistLoad",""],["hotlistApply",""],["type","button","mat-button","","id","hotlist-picker-button","aria-describedby","hotlist-picker-label-text",1,"medium","primary",3,"matMenuTriggerFor","disabled"],["id","hotlist-picker-label-text"],["name","arrow-dropdown","size","small"],[1,"menu"],[1,"menu-control"],
[1,"hotlist-filter"],["mat-input","","type","text","id","hotlist-filter-input","maxlength","255","role","combobox","aria-autocomplete","list","aria-expanded","true","placeholder","Type to filter hotlists from your sidebar","autocomplete","off",3,"ngModelChange","mousedown","blur","click","keydown","ngModel"],["matMenuContent",""],["role","listbox",1,"multi-edit-scrollarea"],["role","option",1,"multi-edit-menuitem",3,"display","focused","title"],["mat-menu-item","","matTooltip","Type a new name to create a hotlist",
"matTooltipPosition","right","title","Type a new hotlist name above and then click here to create a new hotlist.",1,"hotlist-create",3,"click","keydown.enter","disabled"],["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"focused"],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"focused"],["role","option",1,"multi-edit-menuitem",3,"click","title"],["role","checkbox",3,"click","state","disabled"],["mat-menu-item",
"","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"click","keydown.enter"],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"click","keydown.enter"]],template:function(a,b){if(a&1){var c=t();K(0,"button",7)(1,"span",8);Q(2);L();M(3,"b-icon",9);L();K(4,"mat-menu",null,0)(6,"div",10)(7,"div",11)(8,"div",12)(9,"input",13,1);Cg("ngModelChange",function(d){u(c);Bg(b.filterText,d)||(b.filterText=d);return v(d)});N("ngModelChange",
function(){u(c);return v(nRd(b))})("mousedown",function(d){u(c);return v(d.stopPropagation())})("blur",function(){u(c);return v(lRd(b))})("click",function(d){u(c);return v(d.stopPropagation())})("keydown",function(d){u(c);d.stopImmediatePropagation();d.key==="Escape"?b.close():d.key==="ArrowDown"?(vRd(b),d.preventDefault()):d.key==="ArrowUp"?(wRd(b),d.preventDefault()):d.key==="PageUp"?wRd(b,11):d.key==="PageDown"?vRd(b,11):d.key===" "?b.focusedRowIndex===-1||b.focusedRowIndex>=b.choices.length||
(GMb(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(),MMb(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&FMb(b,b.choices[b.focusedRowIndex]));return v()});L()()();M(11,"mat-divider");E(12,OMb,12,7,"ng-template",14);L()()}a&2&&(a=qg(5),I("matMenuTriggerFor",a)("disabled",b.isAnonymous),
B(2),yg(oRd(b)),B(7),Ag("ngModel",b.filterText))},dependencies:[OJ,YG,WG,XG,aH,gB,cB,yj,$D,tE,gE,bA,oK,iA,aK,pT],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 zRd=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 pS;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";xRd(this,b);yRd(this,b)},xRd=function(a,b){var c=b[0],d=jo.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},ARd=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||$n(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},yRd=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=ARd(c);a.selectedVerifiersStatus=ARd(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])};
zRd.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;BRd(this)};zRd.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var ZMb=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},UMb=function(a,b){(a.origCommonIssueState=b)?(b.status==="NEW"?CRd(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||CRd(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),CRd(a.selectedVerifiersStatus)||a.commonVerifier||b.status!=="VERIFIED"||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},CRd=function(a){return a==="MULTIPLE"||a==="POSSIBLY_MULTIPLE"},BRd=function(a){a.issueState===IRa&&a.commonAssignee?a.origCommonIssueState===IRa?a.issueState=JRa:a.issueState=a.origCommonIssueState:a.commonAssignee||a.issueState&&!Scd.has(a.issueState)||(a.issueState=IRa)},DRd=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},ERd=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);DRd(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 y3=function(){this.externalWarnings=[]};y3.\u0275fac=function(a){return new (a||y3)};
y3.\u0275cmp=D({type:y3,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,TMb,11,0,"div",0);a&2&&G(b.externalWarnings.length>0?0:-1)},dependencies:[SV,NW],styles:[".bv2-external-component-modal-warning[_ngcontent-%COMP%] {\n  padding-top: 10px;\n\n  ul {\n    padding-left: 0;\n  }\n}"],changeDetection:0});
var z3=function(){};z3.\u0275fac=function(a){return new (a||z3)};z3.\u0275mod=cf({type:z3});z3.\u0275inj=Hc({imports:[pX,yX]});var FRd=["dialog"],GRd=["statusForm"],A3=function(){Z.call(this);this.matDialog=p(QA);this.activeSession=p(qu);this.hotkeys=p(kU);this.userPreferencesManager=p(dR);this.comment=new pS;this.save=new XP;this.close=new XP;this.externalWarnings=[];this.issueStates=TRa();this.issueEditBuilder=null;this.FocusableField=HRd;this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");var a;this.comment.formattingMode=Tm((a=eR(this.userPreferencesManager).commentFormattingPreferences)==
null?void 0:a.lastPublishMode)};Y(A3,Z);A3.\u0275dir=Z.\u0275dir;A3.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new zRd(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&UMb(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});OA(this.matDialogRef).pipe(Bf(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};
var gNb=function(a){var b;if(!(b=!a.statusForm||a.statusForm.invalid))a:{if(a.issueEditBuilder!=null){b=ERd(a.issueEditBuilder);var c=b.get("status");if(c==="DUPLICATE"){b=!b.get("duplicateOfIssueId");break a}if(c==="VERIFIED"){b=!ZMb(a.issueEditBuilder)&&!b.get("verifier");break a}}b=!1}return b||a.enableRecaptcha&&a.issueEditBuilder.recaptchaResponse===""?!1:!0},Pt=function(a){if(gNb(a)){var b;(b=a.matDialogRef)==null||b.close(!0)}};
A3.prototype.setAssignee=function(a){this.issueEditBuilder&&(this.issueEditBuilder.commonAssignee=a,BRd(this.issueEditBuilder))};A3.\u0275fac=function(a){return new (a||A3)};
A3.\u0275cmp=D({type:A3,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&(hg(FRd,5),hg(GRd,5));if(a&2){var c;lg(c=mg())&&(b.dialog=c.first);lg(c=mg())&&(b.statusForm=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},standalone:!1,features:[Gf],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["statusMenu",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-modal-form"],[1,"flex-kids-x","justify-flex-end"],["mat-dialog-actions",
""],["type","button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","submit","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close","disabled"],["type","button","mat-button","",1,"medium","primary","status-select",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["mat-menu-item","","type","button",3,"click","disabled"],["mat-menu-item","","type","button",3,"disabled"],[1,"bv2-modal-text-field"],["placeholder","Add a comment (optional)",3,"onSubmit",
"comment","showToolbar","isLiteralModeSupported"],[1,"float-clear"],[3,"externalWarnings"],["for","bv2-state-modal-assignee",1,"bv2-top-field-label"],[1,"bv2-multiple-user-chip"],["for","bv2-state-modal-verifier",1,"bv2-top-field-label"],[1,"bv2-multiple-user-chip",3,"bv2-invalid-multiple-user-chip"],["title","Clear assignees",3,"click"],["name","assignee",3,"emailChange","keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email"],["title","Clear verifiers",3,"click"],["name","verifier",
3,"emailChange","keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email","required"],["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModelChange","keydown.control.enter","keydown.meta.enter","ngModel"],[3,"onUpdate"]],template:function(a){a&1&&E(0,hNb,14,5,"ng-template",null,0,Mg)},dependencies:[RA,TA,VA,UA,hE,yj,$D,aE,gE,eE,gB,cB,pT,OJ,YG,WG,aH,q0,tY,y3,N_],encapsulation:2});
var HRd={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var B3=function(){this.dialogRef=p(NA);this.activeSession=p(qu);this.reporter="";this.autocompleteActive=!1};B3.prototype.enableSubmit=function(){return this.reporter!==""};B3.prototype.cancel=function(){this.dialogRef.close()};B3.prototype.save=function(){this.dialogRef.close(this.reporter)};B3.\u0275fac=function(a){return new (a||B3)};
B3.\u0275cmp=D({type:B3,selectors:[["b-reporter-picker-dialog"]],standalone:!1,decls:13,vars:3,consts:[["mat-dialog-title",""],["appearance","outline","subscriptSizing","dynamic"],[3,"keydown"],[3,"emailChange","asMatInput","email"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Change Reporter"),L(),K(2,"mat-dialog-content")(3,"mat-form-field",1)(4,"mat-label"),Q(5," Reporter "),L(),K(6,"div",
2),N("keydown",function(c){c.key==="Enter"&&!b.autocompleteActive&&b.enableSubmit()&&b.save()}),K(7,"b-peoplekit-single",3),Cg("emailChange",function(c){Bg(b.reporter,c)||(b.reporter=c);return c}),L()()()(),K(8,"mat-dialog-actions")(9,"button",4),N("click",function(){return b.cancel()}),Q(10," Cancel "),L(),K(11,"button",5),N("click",function(){return b.save()}),Q(12," Save "),L()());a&2&&(B(7),I("asMatInput",!0),Ag("email",b.reporter),B(4),I("disabled",!b.enableSubmit()))},dependencies:[gB,cB,TA,
VA,UA,MD,ED,BD,N_],styles:["mat-dialog-content[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var IRd=["addCommentDialog"],C3=function(){Z.apply(this,arguments);var a=this;this.componentFridge=p(MO);this.cdr=p(YP);this.activeSession=p(qu);this.analytics=p(aQ);this.hotkeys=p(kU);this.componentActions=p(WV);this.issueTypeDialog=p($R);this.copyIssueIdService=p(SQd);this.matDialog=p(QA);this.$log=p(iO);this.issuePicker=p(XX);this.userPreferencesManager=p(dR);this.accessIndicatorService=p(MW);this.currentUserEmail=this.activeSession.getUserEmail();this.uniqueComponentIds$=new sf;this.effortSpec$=
this.uniqueComponentIds$.pipe(Af(function(b){return a.componentFridge.watchSet(b)}),A(function(b){return a.getCommonEffortSpec(b)}),xf({bufferSize:1,refCount:!0}));this.enableBulkEstimatedEffortOption$=this.effortSpec$.pipe(A(function(b){return b!==void 0}));this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new XP;this.onCreateHotlist=new XP;this.onLoadHotlist=new XP;this.externalWarnings=[];this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");
this.recaptchaResponse="";this.controllerName="baseControls"};Y(C3,Z);C3.\u0275dir=Z.\u0275dir;var JRd=function(a){var b=new pS,c;b.formattingMode=Tm((c=eR(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:c.lastPublishMode);return b};C3.prototype.hasSelectedIssues=function(){return this.getSelectedIssues().length>0};var KRd=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},iNb=function(a){return KRd(a)?"Mark as read":"Mark as unread"},Qt=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
C3.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=m(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=LRd(a);this.uniqueComponentIds$.next(a)};
var LRd=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.includes(c.componentId)||b.push(c.componentId);return b},MRd=function(a){if(!TN(a.activeSession)){a.externalWarnings=[];var b=le(a.getSelectedIssues().map(function(e){return Dxd(a.accessIndicatorService,e.issueId,e.componentId).pipe(A(function(f){return{issue:e,indicator:f}}))}));ie(b).then(function(e){e=m(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.issue;f.indicator.type!=="no_indicator"&&a.externalWarnings.push({type:"issue",
issueId:g.issueId})}}).then(function(){a.cdr.detectChanges()});b=new Set(a.getSelectedIssues().map(function(e){return e.componentId}));b=m(b);for(var c=b.next(),d={};!c.done;d={id$jscomp$613:void 0},c=b.next())d.id$jscomp$613=c.value,a.componentActions.get(d.id$jscomp$613).then(function(e){if(a.activeSession.isInternalSession()&&kt(e)||SN(a.activeSession)&&lt(e)){var f,g=(f=e.componentPathInfo)==null?void 0:f.componentPathName;a.externalWarnings.push({type:"component",path:g?g.join(" > "):e.componentId,
accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.id$jscomp$613+".")}}(d))}};h=C3.prototype;h.getCommonEffortSpec=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(!b.effortSpec)return;b=b.effortSpec;var c=b.id;if(!d){var d=c;var e=b}else if(d!==c)return}return e};
h.bulkEdit=function(a){switch(a){case "ASSIGNEE":NRd(this,null,0);break;case "COMPONENT":ORd(this);break;case "VERIFIER":NRd(this,null,1);break;case "REPORTER":PRd(this);break;case "CHANGELIST":QRd(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":RRd(this);break;case "FOUND_IN":QRd(this,"foundInVersion","Found In");break;case "VERIFIED_IN":QRd(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":QRd(this,"targetedToVersion","Targeted To");break;case "COMMENT":SRd(this);
break;case "SLO_START_TIME":TRd(this);break;case "ESTIMATED_EFFORT":URd(this);break;case "CC":QRd(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
h.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=a.newValue)&&D3(this,"priority",a);break;case "SEVERITY":(a=a.newValue)&&D3(this,"severity",a);break;case "STATUS":if(a=a.newValue){var b=a==="DUPLICATE"?3:void 0;NRd(this,jo.get(a),b)}break;case "TYPE":(a=a.newValue)&&D3(this,"type",a);break;case "IS_ARCHIVED":D3(this,"isArchived",""+a.newValue);break;case "IN_PROD":D3(this,"inProd",""+a.newValue);break;case "CC":D3(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+
a.field)}};
h.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?VRd(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):VRd(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?VRd(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):VRd(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?VRd(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):VRd(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":NRd(this,NRa,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};
h.bulkMarkIssueRead=function(){var a=KRd(this);D3(this,"readState",a?"true":"")};
var D3=function(a,b,c,d){var e={fieldName:b,value:c};d!==void 0&&(e.actionType=d);var f=Qt(a),g=[e];b==="deletionReason"&&g.push({fieldName:"isDeleted",value:"true"});d=function(){var k={bulkEditOps:[{issueIds:f,actions:g}]};a.enableRecaptcha&&a.recaptchaResponse!==""&&(k.recaptchaToken=a.recaptchaResponse);a.onSave.emit(k)};b!=="type"||c!=="VULNERABILITY"&&c!=="PRIVACY_ISSUE"?d():(c==="VULNERABILITY"&&Lmd(a.issueTypeDialog,"VULNERABILITY",d,function(){}),c==="PRIVACY_ISSUE"&&Lmd(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},NRd=function(a,b,c){a.hasSelectedIssues()&&(MRd(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},WRd=function(a){var b=a.onSave,c=b.emit,d=Qt(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||UMb(e);e=m(ERd(e));for(var g=e.next();!g.done;g=e.next()){var k=m(g.value);g=k.next().value;k=k.next().value;k!==void 0&&f.push({fieldName:g,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},
PRd=function(a){a.hasSelectedIssues()&&(MRd(a),OA(a.matDialog.open(B3,{width:"400px"})).pipe(Bf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&D3(a,"reporter",b)}),a.hotkeys.pause())},QRd=function(a,b,c,d){d=d===void 0?!1:d;a.hasSelectedIssues()&&(OA(a.matDialog.open(w3,{width:"400px",data:{fieldDisplayName:c}})).pipe(Bf(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&XRd(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},TRd=function(a){a.hasSelectedIssues()&&(OA(a.matDialog.open(fRd,
{width:"330px",data:{fieldDisplayName:"SLO Start Time"}})).pipe(Bf(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:Qt(a),actions:c}]})}}),a.hotkeys.pause())},URd=function(a){var b,c;y(function(d){if(d.nextAddress==1)return z(d,ie(a.effortSpec$),2);b=d.yieldResult;if(!a.hasSelectedIssues()||b===void 0)return d.return();c=a.matDialog.open(v3,{width:"400px",data:{fieldDisplayName:"Estimated Effort",
effortSpec:b}});OA(c).pipe(Bf(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(e){var f=[];f.push({fieldName:"effortEstimate",value:e.estimate});a.onSave.emit({bulkEditOps:[{issueIds:Qt(a),actions:f}]})}});a.hotkeys.pause();ce(d)})},XRd=function(a,b,c,d,e){e=e===void 0?!1:e;c=Kt(c);d=Kt(d);var f=[],g=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(l){return CRa(l,g).map(function(r){return r.trim()})};ya(c)||(c=k(c),e&&(c=c.filter(function(l){return!isNaN(l)})),
f.push.apply(f,q(c.map(function(l){return{fieldName:b,value:l,actionType:"ADD"}}))));ya(d)||(d=k(d),f.push.apply(f,q(d.map(function(l){return{fieldName:b,value:l,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:Qt(a),actions:f}]})},ORd=function(a){a.hasSelectedIssues()&&(OA(a.matDialog.open(t3,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Bf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Qt(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,"bulkMove"))}),a.hotkeys.pause())},YRd=function(a){a.hasSelectedIssues()&&(OA(a.matDialog.open(dRd,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(Bf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.analytics.trackEvent(a.controllerName,"bulkFlagAsSpam"),D3(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},SRd=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&
(a.comment||(a.comment=JRd(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),OA(a.addCommentDialogRef).pipe(Bf(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&Dnd(a.comment)&&D3(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),MRd(a))},pNb=function(a){var b;(b=a.addCommentDialogRef)==null||b.close(!0)},RRd=function(a){a.hasSelectedIssues()&&OA(a.matDialog.open(v_,{data:a.getSelectedIssues(),
width:"500px"})).pipe(Bf(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),a.analytics.trackEvent(a.controllerName,"bulkCustomField"))})};C3.prototype.openHotlistPicker=function(){if(this.hasSelectedIssues()){var a;(a=this.hotlistPicker)==null||a.open()}};
C3.prototype.handleHotlistPickerSave=function(a){var b=a.newSelectionMap;var c=a.oldSelectionMap;this.analytics.trackEvent("hotlistPicker","edit","base_controls");var d=[],e=[],f=0;Object.entries(b).forEach(function(g){var k=m(g);g=k.next().value;k=k.next().value;k!==c[g]&&(k?d.push(g):e.push(g),f++)});a=[];d.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:d.join(",")});e.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:e.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:Qt(this),
actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists","numHotlists",f))};var VRd=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:Qt(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};C3.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(C3)))(b||C3)}}();
C3.\u0275cmp=D({type:C3,selectors:[["b-grid-controls-base"]],viewQuery:function(a,b){a&1&&(hg(IRd,5),hg(x3,5),hg(A3,5));if(a&2){var c;lg(c=mg())&&(b.addCommentDialog=c.first);lg(c=mg())&&(b.hotlistPicker=c.first);lg(c=mg())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},standalone:!1,features:[Gf],decls:0,vars:0,template:function(){},encapsulation:2});var E3=function(){};E3.\u0275fac=function(a){return new (a||E3)};E3.\u0275mod=cf({type:E3});E3.\u0275inj=Hc({imports:[RO,PJ,iB,BE,xE,eA,pK,bK,iK,DU]});var F3=function(){};F3.\u0275fac=function(a){return new (a||F3)};F3.\u0275mod=cf({type:F3});F3.\u0275inj=Hc({imports:[RO,MJ,pX,xE,iB,DU,PJ,u0,y0,z3,O_]});var G3=function(){C3.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(G3,C3);G3.\u0275dir=C3.\u0275dir;G3.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
G3.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Bba(a,null,function(b){return b.issueId.toString()});return a};G3.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(G3)))(b||G3)}}();
G3.\u0275cmp=D({type:G3,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},standalone:!1,features:[Gg([YP]),Gf,bx],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,jNb,2,4,"b-app-bar-bulk-edit-menus",1);F(1,nNb,1,2,"b-copy-issue-id-button",2);F(2,oNb,2,2,"div",3);K(3,"b-app-bar-more-menu",4);N("flagAsSpamClicked",function(){u(c);return v(YRd(b))});L();K(4,"b-state-modal",5);N("save",function(){u(c);return v(WRd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();
E(5,sNb,11,6,"ng-template",null,0,Mg)}a&2&&(G(b.hasSelectedIssues()?0:-1),B(),G(b.hasSelectedIssues()?1:-1),B(),G(b.enableBulkEditUi&&b.hasSelectedIssues()?2:-1),B(),I("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),B(),I("externalWarnings",b.externalWarnings))},dependencies:[yOd,b2,q0,HQd,x3,gB,cB,RA,TA,VA,UA,A3,tY,y3,Lx],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var H3=function(){};H3.\u0275fac=function(a){return new (a||H3)};H3.\u0275mod=cf({type:H3});
H3.\u0275inj=Hc({imports:[d2,NU,u0,RO,pX,h3,E3,DU,iB,MJ,F3,y0,z3]});var ZRd=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},$Rd=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)},I3=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=xm(c.assigneeUser)||"";this.verifier=xm(c.verifierUser)||
"";this.collaborators=wm(c.collaboratorsUsers).map(um);this.staffing=c.staffing||null;this.cc=wm(c.ccUsers).map(um);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=m(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=
b;a=m(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=m(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})},bSd=function(a,b){b.name=a.name;b.description=a.description;b.inheritable=a.inheritable;var c=b.snapshot||{};c.componentId=a.componentId;aSd(a.type)?delete c.type:c.type=a.type;aSd(a.priority)?delete c.priority:c.priority=a.priority;aSd(a.severity)?
delete c.severity:c.severity=a.severity;c.assigneeUser=ym(a.assignee);c.verifierUser=ym(a.verifier);c.collaboratorsUsers=a.collaborators.map(function(f){return ym(f)});a.collaboratorGroups.length>0&&(c.collaboratorsUsers=HRa(a.collaboratorGroups).concat(c.collaboratorsUsers||[]));c.staffing=a.staffing;c.ccUsers=a.cc.map(function(f){return ym(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=m(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!Vq(e)&&c.customField.push(e);b.snapshot=c};
I3.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:Xm("Unexpected custom field type: "+c)}}this.dirty=!0};I3.prototype.isDirty=function(){return this.dirty};I3.prototype.setFormattingMode=function(a){this.formattingMode=a;this.dirty=!0};I3.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;this.dirty=!0};
var aSd=function(a){return ya(a)||a==="--"};I3.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroups.length===0?"":this.collaboratorGroups.length>1?this.collaboratorGroups.length+" groups selected":this.collaboratorGroups[0]};I3.prototype.separateCollaboratorGroups=function(a){a=new Set(a);for(var b=[],c=m(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 NOb=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},OOb=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},cSd={value:"--",displayText:"--"};var dSd=new nl("M/d/yyyy"),J3=function(){this.dateFormatter=p(cS);this.boundValueChange=new XP;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};J3.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if(typeof this.boundValue==="string")var a=wRa(this.boundValue);else{var b;a=(b=Tq(this.boundValue))!=null?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
J3.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=dSd.format(a);else{var d;a=(d=R1a(dSd.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):""}};J3.\u0275fac=function(a){return new (a||J3)};
J3.\u0275cmp=D({type:J3,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&&(K(0,"b-date-time-input",0),N("valueChange",function(c){return b.change(c)}),L());a&2&&I("required",b.isRequired)("value",
b.googDate)("customFormId",b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[q_],encapsulation:2});var eSd=["allocationInput"],fSd=["editAllocationBtn"],gSd=function(a,b){return b.columnDef},BNb=function(a,b){return b.value},RNb=function(a,b){return b.displayText},K3=function(){var a=this;this.subscriptions=new Rd;this.userToLossyEmail=xm;this.rows$=new Nj([]);this.trackBy=function(b,c){return c[0].user.user.emailAddress};this.tableColumns$=new Nj(["user","involvement","remove-user"]);this.timeboundQuarterColumns$=new Nj([]);this.Involvement=Xbd;this.involvementOptions=Tmd.map(function(b){return{value:b,
displayText:po[b]}});this.roleOptions$=new Nj([{value:void 0,displayText:"--"}].concat(q(Umd.map(function(b){return{value:b,displayText:EN[b]}}))));this.allocationUnderEdit=null;this.allocationInputChanges$=new Nj("");this.allocations=[];this.staffingEnhancementsEnabled=this.isAllowedToEdit=!1;this.updatedAllocations=new XP;this.removedUser=new XP;this.subscriptions.add(this.allocationInputChanges$.pipe(lf(250),pf()).subscribe(function(){XNb(a);if(a.allocationInputEl){var b;a.allocationInputEl.nativeElement.value=
(b=a.allocationFromInputPlain)!=null?b:""}}))};K3.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};K3.prototype.ngOnChanges=function(a){(a.allocations||a.staffingEnhancementsEnabled)&&hSd(this);a.staffingEnhancementsEnabled&&this.roleOptions$.next([{value:void 0,displayText:"--"}].concat(q((this.staffingEnhancementsEnabled?Vmd:Umd).map(function(b){return{value:b,displayText:EN[b]}}))))};
var hSd=function(a){var b=[];if(a.staffingEnhancementsEnabled){var c=a.allocations.some(function(l){var r;return((r=l.allocation)==null?void 0:r.percentage)!==void 0});b=iSd(a,c);var d=[];d=b.length?b.map(function(l){return l.columnDef}):[c?"allocation":"involvement"];a.tableColumns$.next(["user","role","is-lead"].concat(q(d),["remove-user"]));a.timeboundQuarterColumns$.next(b)}else a.tableColumns$.next(["user","involvement","remove-user"]),a.timeboundQuarterColumns$.next([]);c=new Map;d=m(a.allocations.filter(function(l){var r;
return(r=l.user)==null?void 0:r.user}));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,k=(f=e.user)==null?void 0:(g=f.user)==null?void 0:g.emailAddress;k&&(f=void 0,g=(f=c.get(k))!=null?f:[],g.push(e),c.set(k,g))}c=[].concat(q(c.values()));a.rows$.next(c.map(function(l){var r=[];if(b.length){for(var w=m(b),x=w.next();!x.done;x=w.next()){x=x.value;var C=x.extractPlannedAllocation(l),H=void 0,J=void 0;((H=C.allocation)==null?void 0:H.startDate)===x.startDate&&((J=C.allocation)==
null?void 0:J.endDate)===x.endDate?r.push(C):(J=H=void 0,r.push(Object.assign({},C,{allocation:Object.assign({},C.allocation,{aggregationValue:(J=(H=C.allocation)==null?void 0:H.aggregationValue)!=null?J:0,startDate:gUa(x.startDate),endDate:gUa(x.endDate)})})))}l=r}return l}).sort(function(l,r){var w,x,C,H,J,O;l=(J=(w=l[0].user)==null?void 0:(x=w.user)==null?void 0:x.emailAddress)!=null?J:"";r=(O=(C=r[0].user)==null?void 0:(H=C.user)==null?void 0:H.emailAddress)!=null?O:"";return!l&&r?-1:!r&&l?1:
l.localeCompare(r)}))},iSd=function(a,b){a=jSd(a);var c=a.earliestDate,d=a.latestDate;a=[];if(!c||!d)return a;var e=hUa(c).quarterStartDate;c=hUa(d).quarterStartDate;d=e;for(e={};d<=c;e={quarterStartDate$jscomp$1:void 0,quarterEndDate$jscomp$1:void 0}){var f=hUa(d);e.quarterStartDate$jscomp$1=f.quarterStartDate;e.quarterEndDate$jscomp$1=f.quarterEndDate;f=e.quarterStartDate$jscomp$1.getFullYear();var g=Math.floor(e.quarterStartDate$jscomp$1.getMonth()/3)+1;a.push({columnDef:"q"+g+"-"+f,displayText:"Q"+
g+" "+f,startDate:e.quarterStartDate$jscomp$1,endDate:e.quarterEndDate$jscomp$1,extractPlannedAllocation:function(k){return function(l){a:{var r=k.quarterStartDate$jscomp$1,w=k.quarterEndDate$jscomp$1;if(r||w){for(var x=m(l),C=x.next();!C.done;C=x.next()){C=C.value;var H=void 0,J=void 0,O=((H=C.allocation)==null?0:H.startDate)?co((J=C.allocation)==null?void 0:J.startDate):void 0;J=H=void 0;var R=((H=C.allocation)==null?0:H.endDate)?co((J=C.allocation)==null?void 0:J.endDate):void 0;if(!O&&!R||!O&&
w&&R>=w||!R&&r&&O<=r||O&&R&&r&&w&&O<=r&&R>=w){l=C;break a}}l=Object.assign({},l[0],{allocation:{involvement:"ZERO",aggregationValue:0,startDate:r?gUa(r):void 0,endDate:w?gUa(w):void 0}})}else l=l[0]}return l}}(e),displayInvolvementAsPercentage:b});d=new Date(d.getFullYear(),d.getMonth()+3,1)}return a},jSd=function(a){var b=void 0,c=void 0;a=m(a.allocations);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=void 0,g=((e=d.allocation)==null?0:e.startDate)?co((f=d.allocation)==null?void 0:
f.startDate):void 0;if(g){if(!b||g<b)b=g;if(!c||g>c)c=g}f=e=void 0;if(g=((e=d.allocation)==null?0:e.endDate)?co((f=d.allocation)==null?void 0:f.endDate):void 0){if(!b||g<b)b=g;if(!c||g>c)c=g}}return{earliestDate:b,latestDate:c}},KNb=function(a,b,c,d,e){var f,g,k,l,r,w,x,C,H,J;return y(function(O){f=qo(c);if(!f||!d&&e===void 0||((g=c.allocation)==null?void 0:g.involvement)===d&&((k=c.allocation)==null?void 0:k.percentage)===e)return a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0,O.return();
l=b.filter(function(R){return qo(R)!==f});r=oo(c);w=[].concat(q(a.allocations.filter(function(R){return oo(R)!==r})),q(l));if(d&&d!=="INVOLVEMENT_UNSPECIFIED")x=Object.assign({},c.allocation,{involvement:d,aggregationValue:0,percentage:void 0});else if(e!==void 0||d==="INVOLVEMENT_UNSPECIFIED")e!=null||(e=1),x=Object.assign({},c.allocation,{percentage:e,aggregationValue:0,involvement:void 0});w.push(Object.assign({},c,{allocation:x}));C=a.rows$.value.findIndex(function(R){return oo(R[0])===r});H=
b.findIndex(function(R){return qo(R)===f});J=H*a.rows$.value.length+C;a.updatedAllocations.emit(w);a.allocationUnderEdit=null;a.allocationFromInputPlain=void 0;setTimeout(function(){var R,V;(R=a.editAllocationBtns.get(J))==null||(V=R.nativeElement)==null||V.focus()},0);ce(O)})},NNb=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=po[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)},Rt=function(a,b,c){var d,e=(d=a.allocationInputEl)==null?void 0:d.nativeElement.value.toLowerCase();d=Number(e);var f,g=(f=a.involvementOptions.find(function(r){return r.value.toLowerCase()===e}))==null?void 0:f.value;if(!c||c.key==="Enter")!isNaN(d)&&d>=0&&d<=100?KNb(a,b,a.allocationUnderEdit,void 0,Math.round(d)/100):g&&KNb(a,b,a.allocationUnderEdit,
g),a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0;else if(c.key==="Escape"||c.key==="Esc")if(c.stopPropagation(),b=a.allocations.findIndex(function(r){return qo(r)===qo(a.allocationUnderEdit)}),NNb(a),b>=0){var k,l;(k=a.editAllocationBtns.get(b))==null||(l=k.nativeElement)==null||l.focus()}},XNb=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)))},FNb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){d=oo(b);if(!d)return r.return();e=[].concat(q(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],l=void 0,oo(k)===d&&!((l=k.user)==null||!l.isLead)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{isLead:c})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);ce(r)})},
ANb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){d=oo(b);if(!d)return r.return();e=[].concat(q(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],l=void 0,oo(k)===d&&((l=k.user)==null?void 0:l.role)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{role:c!=="JOB_ROLE_UNSPECIFIED"?c:void 0})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);ce(r)})},eOb=function(a,b){var c,d,e,f,g;return y(function(k){c=oo(b);if(!c)return k.return();d=[].concat(q(a.allocations)).filter(function(l){return oo(l)!==
c});if(d.length===a.allocations.length)return k.return();a.updatedAllocations.emit(d);g=(e=b.user)==null?void 0:(f=e.user)==null?void 0:f.emailAddress;a.removedUser.emit(g);ce(k)})},ONb=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)+"% ("+(po[a.involvement]+
")")}return""},CNb=function(a){var b;return(a=(b=a.user)==null?void 0:b.role)?Zq[a]:""};K3.\u0275fac=function(a){return new (a||K3)};
K3.\u0275cmp=D({type:K3,selectors:[["b-allocated-users-table"]],viewQuery:function(a,b){a&1&&(hg(eSd,5),hg(fSd,5,Jd));if(a&2){var c;lg(c=mg())&&(b.allocationInputEl=c.first);lg(c=mg())&&(b.editAllocationBtns=c)}},inputs:{allocations:"allocations",isAllowedToEdit:"isAllowedToEdit",staffingEnhancementsEnabled:"staffingEnhancementsEnabled"},outputs:{updatedAllocations:"updatedAllocations",removedUser:"removedUser"},features:[bx],decls:31,vars:17,consts:[["editAllocationBtn",""],["allocationInput",""],
["allocationAuto","matAutocomplete"],[1,"allocated-users-table-container"],["mat-table","",3,"dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","user",3,"sticky"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],["matColumnDef","role",3,"sticky"],["matColumnDef","is-lead",3,"sticky"],["matColumnDef","involvement"],["matColumnDef","allocation"],[3,"matColumnDef"],
["matColumnDef","remove-user",3,"stickyEnd"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["tabindex","-1","mat-cell",""],[1,"user-cell"],["size","small",3,"email"],[1,"user-name",3,"user","hovercardFocusEnabled","availabilityChipEnabled"],[1,"role-header"],["name","help-outline","size","small","role","button","tabindex","0",1,"help-icon",3,"matTooltip"],[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&&($f(0),T(1,"async"),K(2,"div",3)(3,"table",4),E(4,tNb,1,0,"tr",5)(5,uNb,1,0,"tr",6),Uf(6,7),E(7,vNb,2,0,"th",8)(8,xNb,2,1,"td",9),Vf(),Uf(9,10),$f(10),E(11,yNb,4,2,"th",8)(12,
DNb,7,5,"td",9),Vf(),Uf(13,11),$f(14),E(15,ENb,4,2,"th",8)(16,GNb,2,4,"td",9),Vf(),Uf(17,12),$f(18),E(19,HNb,4,2,"th",8)(20,LNb,5,3,"td",9),Vf(),Uf(21,13),$f(22),E(23,MNb,4,2,"th",8)(24,TNb,3,1,"td",9),Vf(),Of(25,cOb,4,2,"ng-container",14,gSd),T(27,"async"),Uf(28,15),E(29,dOb,2,0,"th",8)(30,fOb,3,1,"td",9),Vf(),L()());a&2&&(a=U(1,9,b.tableColumns$),B(3),I("dataSource",b.rows$)("trackBy",b.trackBy),B(),I("matHeaderRowDef",a)("matHeaderRowDefSticky",!0),B(),I("matRowDefColumns",a),B(),I("sticky",!0),
B(3),I("sticky",!0),B(),ag("Optionally override the role of the user. If\n      not overridden, the user will be filling the role aligned with their job profile."),B(3),I("sticky",!0),B(),ag("Optionally mark users as lead(s) for this\n      issue."),B(4),ag("Set the involvement level of people\n      allocated to this issue. Zero involvement levels are useful when a person is involved in the\n      work but does not spend a significant portion of their time on it."),B(4),ag("Set the involvement level (or percentage\n      between 0 and 100) of people allocated to this issue. Zero involvement levels are useful when\n      a person is involved in the work but does not spend a significant portion of their time on\n      it."),
B(3),Pf(U(27,15,b.timeboundQuarterColumns$)),B(3),I("stickyEnd",!0))},dependencies:[RO,Dy,xE,yj,$D,gE,iB,gB,cB,eB,gL,fL,aI,OX,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,pK,oK,iA,DU,pT,SX,QX,cA,RX,OH,MH,NH,iV,bV,ZU,Lx],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 kSd=function(){this.isAllowedToEdit=!1;this.editPlaceholder=new XP;this.removePlaceholder=new XP},lSd=function(a){a.isAllowedToEdit&&a.editPlaceholder.emit(a.placeholder)};da.Object.defineProperties(kSd.prototype,{roleString:{configurable:!0,enumerable:!0,get:function(){var a=this.placeholder.role;return a&&a!=="JOB_ROLE_UNSPECIFIED"?EN[a]:"Other"}},placeholderLabel:{configurable:!0,enumerable:!0,get:function(){return"Placeholder: "+this.placeholder.count+" "+this.roleString}}});
kSd.\u0275fac=function(a){return new (a||kSd)};
kSd.\u0275cmp=D({type:kSd,selectors:[["b-placeholder-chip"]],inputs:{placeholder:"placeholder",isAllowedToEdit:"isAllowedToEdit"},outputs:{editPlaceholder:"editPlaceholder",removePlaceholder:"removePlaceholder"},decls:6,vars:7,consts:[[1,"placeholder-chip"],["size","small",3,"email"],["role","button","tabindex","0",1,"placeholder-text",3,"click","keydown.enter","keydown.space","matTooltip"],["type","button","mat-icon-button","",1,"remove-btn","xs",3,"click","disabled"],["svgIcon","close"]],template:function(a,
b){a&1&&(K(0,"span",0),M(1,"b-user-image",1),K(2,"span",2),N("click",function(){return lSd(b)})("keydown.enter",function(){return lSd(b)})("keydown.space",function(){return lSd(b)}),Q(3),L(),K(4,"button",3),N("click",function(){b.removePlaceholder.emit(b.placeholder)}),M(5,"mat-icon",4),L()());a&2&&(B(),I("email",void 0),B(),I("matTooltip",Eg("Click to edit the ",b.roleString," placeholders")),Kf("aria-label","Click to edit the "+b.roleString+" placeholders"),B(),S(" ",b.placeholderLabel," "),B(),
I("disabled",!b.isAllowedToEdit),Kf("aria-label","Remove placeholders for the "+b.roleString+" role"))},dependencies:[RO,Dy,iB,gB,eB,pK,oK,iA,Fy,iV,bV],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 mSd=function(){return[]},L3=function(){this.matDialog=p(QA)};L3.prototype.show=function(a,b){this.dialog=this.matDialog.open(M3,{width:"325px",panelClass:"no-jitter",data:{allocatedPlaceholders:a,initialRole:b}});return ie(OA(this.dialog))};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275prov=Fc({token:L3,factory:L3.\u0275fac,providedIn:"root"});
var M3=function(){var a=this;this.data=p(PA);this.dialogRef=p(NA);this.activeSession=p(qu);this.staffingEnhancementsEnabled=this.activeSession.getFlag("enableStaffingFieldEnhancementsUi");this.role="SWE";this.count=new fE(1,{validators:[wj,Qva(/^\d+$/),Lva(1),Mva(3E5)]});this.roleToCountMap=new Map;this.roleOptions$=new Nj((this.staffingEnhancementsEnabled?Vmd:Umd).map(function(f){return{value:f,displayText:EN[f],disabled:!1}}));for(var b=m(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?Vmd:Umd).map(function(f){return{value:f,displayText:EN[f],disabled:a.roleToCountMap.has(f)}}));this.data.initialRole&&(this.role=this.data.initialRole);nSd(this)},nSd=function(a){var b=a.roleToCountMap.get(a.role);a.count.setValue(b!=null?b:1)};M3.prototype.apply=function(){var a,b={role:this.role,count:(a=this.count.value)!=null?a:1};this.dialogRef.close(b)};
da.Object.defineProperties(M3.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"}}});M3.\u0275fac=function(a){return new (a||M3)};
M3.\u0275cmp=D({type:M3,selectors:[["b-placeholder-dialog"]],decls:21,vars:12,consts:[[1,"placeholder-dialog"],["mat-dialog-title",""],["mat-dialog-content","",1,"content"],["appearance","outline",1,"job-role-field"],["aria-label","Click to select a job role for placeholders",3,"selectionChange","value","disabled"],[3,"matTooltip","matTooltipDisabled"],["appearance","outline",1,"count-field"],["type","number","min","1","max","300000","step","1","matInput","","placeholder","Enter number",3,"formControl",
"required"],["mat-dialog-actions","",1,"actions"],["type","button","mat-button","","mat-dialog-close","","aria-label","Cancel",1,"cancel"],["type","button","mat-flat-button","","color","primary","aria-label","Add allocated placeholder",1,"apply",3,"click","disabled"],[3,"value","disabled"],[1,"role-option"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h1",1),Q(2),L(),K(3,"section",2)(4,"mat-form-field",3)(5,"mat-label"),Q(6,"Role"),L(),K(7,"mat-select",4),N("selectionChange",function(d){b.role=d.value;
nSd(b)}),Of(8,gOb,4,5,"span",5,Nf),T(10,"async"),L()(),K(11,"mat-form-field",6)(12,"mat-label"),Q(13,"Number"),L(),M(14,"input",7),F(15,hOb,2,0,"mat-error"),L()(),K(16,"footer",8)(17,"button",9),Q(18," Cancel "),L(),K(19,"button",10),N("click",function(){return b.apply()}),Q(20),L()()());if(a&2){B(2);yg(b.title);B(5);I("value",b.role)("disabled",b.updatingExistingPlaceholder);B();var c;Pf((c=U(10,9,b.roleOptions$))!=null?c:Hg(11,mSd));B(6);I("formControl",b.count)("required",!0);Kf("aria-label","Enter the "+
(b.updatingExistingPlaceholder?"updated ":"")+"number of placeholders for the "+b.selectedRoleDisplayText+" role");B();G(b.count.invalid?15:-1);B(4);I("disabled",b.count.invalid);B();S(" ",b.buttonText," ")}},dependencies:[RO,iB,gB,cB,MJ,RA,TA,VA,UA,OD,BD,MD,ED,CD,BE,PD,zE,wU,vU,MH,cA,pK,oK,iA,Qz,yE,yj,iE,$D,sE,rE,qE,mE,Lx],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 oSd=function(){return[]},N3=function(){this.matDialog=p(QA)};N3.prototype.show=function(a,b,c){this.dialog=this.matDialog.open(O3,{width:"1000px",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,plannedAllocations:a,isAllowedToEdit:c}});return ie(OA(this.dialog))};N3.\u0275fac=function(a){return new (a||N3)};N3.\u0275prov=Fc({token:N3,factory:N3.\u0275fac,providedIn:"root"});
var O3=function(){Z.call(this);var a=this;this.data=p(PA);this.dialogRef=p(NA);this.editIssueService=p(DS);this.hotkeys=p(kU);this.placeholderDialogService=p(L3);this.checkBeforeExit=p(uY);this.activeSession=p(qu);this.staffingEnhancementsEnabled=this.activeSession.getFlag("enableStaffingFieldEnhancementsUi");this.userValidators={userNotInGoogleDomain:function(f){return f?f.every(function(g){return g.indexOf("@google.com")>0}):!0},isNotUserType:function(f){return f?f.every(function(g){return g.startsWith("USER:")}):
!0},userAlreadySelected:function(f){if(f){f=hs(f).map(function(k){var l,r;return(r=(l=k.user)==null?void 0:l.emailAddress)!=null?r:""}).filter(function(k){return!!k});f=m(f);for(var g=f.next();!g.done;g=f.next())if(a.emailsSet.has(g.value))return!1}return!0}};this.issueId=this.data.issueId;this.plannedAllocations$=new Nj([]);this.emailsSet=new Set;this.placeholderAllocations$=this.plannedAllocations$.pipe(A(function(f){return f.filter(function(g){return!!g.placeholder}).map(function(g){return g.placeholder})}));
this.availableRolesToAllocate$=this.placeholderAllocations$.pipe(A(function(f){var g=new Set(f.map(function(k){return k.role}));return(a.staffingEnhancementsEnabled?Vmd:Umd).filter(function(k){return!g.has(k)})}));var b;this.isAllowedToEdit=(b=this.data.isAllowedToEdit)!=null?b:!1;this.creatingNewIssue=!this.data.issueId;this.title=(this.isAllowedToEdit?"Editing":"Viewing")+" staffing";var c;this.isSaving$=bod(this.editIssueService.savingState((c=this.issueId)!=null?c:""),"staffing");var d;this.plannedAllocations$.next((d=
this.data.plannedAllocations)!=null?d:[]);b=m(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(O3,Z);O3.\u0275dir=Z.\u0275dir;
O3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.hasChanges()},!1));this.dialogRef.keydownEvents().pipe(Bf(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Bf(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
var jOb=function(a,b,c){var d,e,f,g,k,l;return y(function(r){if(r.nextAddress==1)return z(r,ie(a.placeholderAllocations$),2);if(r.nextAddress!=3)return d=r.yieldResult,c||(c=b.length>0?b[0]:"SWE"),z(r,a.placeholderDialogService.show(d,c),3);e=r.yieldResult;if(!e)return r.return();f={placeholder:e};g=oo(f);if(!g)return r.return();k=[].concat(q(a.plannedAllocations$.value));l=k.findIndex(function(w){return oo(w)===g});l<0?k.push(f):k[l]=f;a.plannedAllocations$.next(k);ce(r)})};
O3.prototype.removePlaceholder=function(a){var b=this,c,d,e,f;return y(function(g){c={placeholder:a};d=oo(c);if(!d)return g.return();e=[].concat(q(b.plannedAllocations$.value));f=e.findIndex(function(k){return oo(k)===d});if(f<0)return g.return();e.splice(f,1);b.plannedAllocations$.next(e);ce(g)})};O3.prototype.removeEmail=function(a){this.emailsSet.delete(a)};
var pSd=function(a,b){var c,d,e,f,g,k;return y(function(l){if(b.length<1)return l.return();c=hs(b);f=(d=c[0])==null?void 0:(e=d.user)==null?void 0:e.emailAddress;if(!f||a.emailsSet.has(f))return l.return();g={user:{user:{emailAddress:f}},allocation:{involvement:"HIGH",aggregationValue:0}};k=[].concat(q(a.plannedAllocations$.value),[g]);a.plannedAllocations$.next(k);a.emailsSet.add(f);a.usersInput.removeItem(0);ce(l)})};h=O3.prototype;
h.hasChanges=function(){return!mm(this.plannedAllocations$.value,this.data.plannedAllocations)};h.closeIfUnmodified=function(){this.hasChanges()||this.dialogRef.close()};h.close=function(){this.dialogRef.close()};h.save=function(){var a=this;return y(function(b){if(b.nextAddress==1)return a.creatingNewIssue?(a.dialogRef.close(a.plannedAllocations$.value),b.return()):z(b,qod(a.editIssueService,a.issueId,{plannedAllocations:a.plannedAllocations$.value}),2);a.dialogRef.close();ce(b)})};
h.onKeydown=function(a,b){this.hotkeys.isEnabled()&&a.key==="Enter"&&(a.ctrlKey||a.metaKey)&&this.isAllowedToEdit&&this.hasChanges()&&!b&&(a.preventDefault(),a.stopPropagation(),this.save())};O3.\u0275fac=function(a){return new (a||O3)};
O3.\u0275cmp=D({type:O3,selectors:[["b-staffing-dialog"]],viewQuery:function(a,b){a&1&&hg(KW,5);if(a&2){var c;lg(c=mg())&&(b.usersInput=c.first)}},features:[Gf],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();K(0,"h1",0);Q(1);L();$f(2);T(3,"async");K(4,"section",1);N("keydown",function(k){u(c);var l=bg(2);return v(b.onKeydown(k,l!=null?l:!1))});F(5,iOb,3,0,"b-callout",2);$f(6);T(7,"async");K(8,"div",3)(9,"div",4);Of(10,kOb,1,2,"b-placeholder-chip",5,Nf);T(12,"async");L();K(13,"div",6)(14,"span",7)(15,"button",
8);N("click",function(){u(c);var k=bg(6);return v(jOb(b,k))});Q(16,"Add placeholder");L()();M(17,"b-icon",9);L()();K(18,"b-multi-user-input",10);N("usersChange",function(k){u(c);return v(pSd(b,k))});L();K(19,"b-allocated-users-table",11);T(20,"async");N("updatedAllocations",function(k){u(c);b.plannedAllocations$.next(k);return v()})("removedUser",function(k){u(c);return v(b.removeEmail(k))});L()();K(21,"footer",12)(22,"button",13);N("click",function(){u(c);return v(b.close())});Q(23," Cancel ");L();
K(24,"button",14);N("click",function(){u(c);return v(b.save())});Q(25," Save ");L()()}if(a&2){B();yg(b.title);B();a=ag(U(3,17,b.isSaving$));B(3);G(b.isAllowedToEdit?-1:5);B();var d,e=ag((d=U(7,20,b.availableRolesToAllocate$))!=null?d:Hg(27,oSd));B(4);var f;Pf((f=U(12,23,b.placeholderAllocations$))!=null?f:Hg(28,oSd));B(4);I("matTooltip","All supported roles have already been allocated.")("matTooltipDisabled",e.length>0);B();I("disabled",!b.isAllowedToEdit||!e.length||a);B(2);I("matTooltip","Allocate placeholder roles when\n      planning how many people are needed to complete this issue but the exact contributors are\n      not yet known.");
Kf("aria-label","Allocate placeholder roles when\n      planning how many people are needed to complete this issue but the exact contributors are\n      not yet known.");B();I("maxUserAllowed",1)("removeContainerDivTabIndex",!0)("placeholderText","Search for a user to allocate")("customValidators",b.userValidators);Kf("disabled",b.isAllowedToEdit&&!a?null:!0);B();var g;I("allocations",(g=U(20,25,b.plannedAllocations$))!=null?g:Hg(29,oSd))("isAllowedToEdit",b.isAllowedToEdit&&!a)("staffingEnhancementsEnabled",
b.staffingEnhancementsEnabled);B(3);I("disabled",a);B(2);I("disabled",!b.hasChanges()||a)}},dependencies:[K3,RO,CU,AU,BU,iB,gB,cB,MJ,RA,TA,VA,UA,pK,oK,iA,DU,pT,xX,KW,Qz,kSd,Lx],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 P3=function(){this.confirmationDialogService=p(ZR)},qSd=function(a,b,c){return y(function(d){return d.return(Kmd(a.confirmationDialogService,{title:b,content:Bh(c)}))})},rSd=function(a,b){return y(function(c){if(b.canEditIssuesInComponent){var d;if(d=b.issueAccessLimitLevel==="LIMIT_VIEW"){d=!!b.assigneeUser;var e=!!b.verifierUser,f,g=!((f=b.collaboratorsUsers)==null||!f.length),k;f=!((k=b.ccUsers)==null||!k.length);d=!d&&!e&&!g&&!f}c=d?c.return(qSd(a,b.confirmationDialogText.noListedUsers.title,
b.confirmationDialogText.noListedUsers.content)):b.issueAccessLimitLevel==="LIMIT_VIEW"&&lOb(b)?c.return(qSd(a,b.confirmationDialogText.loseAccess.title,b.confirmationDialogText.loseAccess.content)):c.return(!0)}else c=c.return(!0);return c})};P3.\u0275fac=function(a){return new (a||P3)};P3.\u0275prov=Fc({token:P3,factory:P3.\u0275fac,providedIn:"root"});var sSd=["saveBeforeClosingDialog"],tSd=["deleteDialog"],HOb=function(){return[]},uSd={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?"}},
Q3=function(){Z.call(this);var a=this;this.matDialogService=p(QA);this.cdr=p(YP,{self:!0});this.templatesApi=p(OO);this.hotlistApi=p(bP);this.constants=p(bS);this.paths=p(mW);this.butterBar=p(QN);this.analytics=p(aQ);this.issueTypeDialog=p($R);this.componentActions=p(WV);this.documentationLinks=p(YR);this.appEvents=p(PO);this.accessPolicyApi=p(FO);this.trackerFridge=p(RQ);this.componentFridge=p(MO);this.currentUserBookmarksFridge=p(lP);this.autocompleteConfigService=p(HW);this.confirmIssueAccessLimitSettingsService=
p(P3);this.activeSession=p(qu);this.sessionIsInternal=this.activeSession.isInternalSession();this.staffingDialogService=p(N3);this.customFieldHelper=p(uS);this.defaultIndex=-1;this.componentId="";this.supportCustomFields=!1;this.templates=[];this.fieldConfigsV2=[];this.allCustomFields=[];this.customFieldRows=[];this.currentTemplateRow=this.currentTemplate=null;this.currentIndex=-1;this.templateRows=[];this.afterSaveCheckFunc=null;this.hotlists=[];this.selectedHotlists=[];this.hotlistMap={};this.selectedHotlistIds=
[[]];this.templateHotlistIds=[];this.componentIdsToPaths={};this.hotlistPickerIndex=0;this.implicitAccessEnabled=!1;this.issueTypeChoices=vSd(this);this.priorityChoices=wSd(this);this.severityChoices=xSd(this);this.FieldType=qV;this.componentId$=new wf(0);this.component$=this.componentId$.pipe(Af(function(b){return a.componentFridge.watch(b)}));this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(Af(function(b){return b?a.trackerFridge.watch(b):
ee(void 0)}));this.ROUTES=ps;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";this.trackerCollaboratorGroups=[];this.subscriptions.add(this.tracker$.subscribe(function(b){b&&(a.trackerCollaboratorGroups=vm(b.collaboratorGroups));a.currentTemplate&&a.currentTemplate.separateCollaboratorGroups(a.trackerCollaboratorGroups)}))};Y(Q3,Z);
Q3.\u0275dir=Z.\u0275dir;h=Q3.prototype;
h.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(c){return a.implicitAccessEnabled=c});this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(b));Promise.all([this.loadCustomFields(),this.loadTemplates()]).finally(function(){R3(a);
a.cdr.detectChanges()})};h.ngAfterViewInit=function(){this.componentId$.next(this.componentId)};h.updateSelectedHotlists=function(){var a=this,b=this.templateHotlistIds[this.hotlistPickerIndex];this.selectedHotlistIds=b?[b]:[[]];this.selectedHotlists=this.hotlists.filter(function(c){return a.selectedHotlistIds[0].includes(c.hotlistId)});Dba(this.selectedHotlists,function(c,d){return wa(c.name,d.name)})};
h.removeHotlist=function(a){La(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent("editTemplate","createHotlist");Pr(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){Pr(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
h.handleHotlistPickerSave=function(a){var b=this;var c=a.oldSelectionMap;aj(a.newSelectionMap,function(d,e){e=sm(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],Ka(d,e)||d.push(e)):!d&&f&&La(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};h.fetchUserHotlists=function(){var a=this;ie(mP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var vSd=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:ROb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[cSd].concat(b)},ROb=function(a){return a===cSd.value?a:zm(a)};Q3.prototype.getDateValue=function(a){return a};Q3.prototype.getListFieldType=function(a){return a};
var KOb=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},yOb=function(a){a.currentTemplateRow.issueType==="VULNERABILITY"||a.currentTemplateRow.issueType==="PRIVACY_ISSUE"?Lmd(a.issueTypeDialog,a.currentTemplateRow.issueType==="VULNERABILITY"?"VULNERABILITY":"PRIVACY_ISSUE",function(){a.currentTemplate.type=a.currentTemplateRow.issueType;
a.currentTemplate.dirty=!0},function(){a.currentTemplateRow.issueType=a.currentTemplate.type}):(a.currentTemplate.type=a.currentTemplateRow.issueType,a.currentTemplate.dirty=!0);ySd(a);a.cdr.detectChanges()},wSd=function(a){return[cSd].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},xSd=function(a){return[cSd].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))},zSd=function(a){return a.templateRows.filter(function(b){return!b.inherited})},
ASd=function(a){return a.templateRows.filter(function(b){return b.inherited})};Q3.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,c!==null?c:void 0)};var QOb=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;R3(a)};Q3.prototype.toggleRow=function(a){var b=this,c=this.currentIndex;BSd(this,function(){a.index===c?QOb(b):b.openEditor(a.index)})};
var CSd=function(a){a.templateHotlistIds.push([]);BSd(a,function(){a.openEditor()})},qOb=function(a,b){return b.index>=0&&b.index===a.currentIndex},sOb=function(a,b){var c;return b.index>=0&&!((c=a.templates[b.index])==null?0:c.default)},POb=function(a){var b,c,d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){if(O.nextAddress==1){if(!a.currentTemplate)return O.return();c=(b=a.currentTemplate.collaborators)!=null?b:[];e=(d=a.currentTemplate.collaboratorGroups)!=null?d:[];return z(O,rSd(a.confirmIssueAccessLimitSettingsService,
{assigneeUser:a.currentTemplate.assignee,verifierUser:a.currentTemplate.verifier,ccUsers:a.currentTemplate.cc,collaboratorsUsers:[].concat(q(c),q(e)),issueAccessLimitLevel:a.currentTemplate.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:!0,confirmationDialogText:uSd}),2)}f=O.yieldResult;if(!f)return O.return();a.currentIndex<0?(k="creating",l={componentId:a.componentId,default:!1},g=function(R){Pr(a.butterBar,R.name?'Template "'+R.name+'" created.':
"Template created.");a.analytics.trackEvent("template","create");DSd(a,"create",R.snapshot);ESd(a,"create",R.templateId);FSd(a,"create",R.templateId);a.templates.push(R);a.openEditor(a.templates.length-1)}):(k="updating",r=a.currentIndex,l=a.templates[r],g=function(R){Pr(a.butterBar,R.name?'Template "'+R.name+'" updated.':"Template updated.");a.analytics.trackEvent("template","update");DSd(a,"update",R.snapshot);ESd(a,"update",R.templateId);FSd(a,"update",R.templateId);a.templates[r]=R;QOb(a)});a.currentTemplate.hotlistId=
a.templateHotlistIds[a.hotlistPickerIndex];bSd(a.currentTemplate,l);Pr(a.butterBar,"Saving template...");x=w=l;C=x.componentId;J=(H=x.templateId)&&String(H)!=="0"?a.templatesApi.update(C,H,w):a.templatesApi.create(C,w);return O.return(J.then(function(R){a.appEvents.templateModified.next(String(a.componentId));g(R);a.cdr.detectChanges()}).catch(function(R){R=Sp(R);a.butterBar.showWarning(R?"Error "+k+" template: "+R:"There was an error "+k+" the template.",0)}))})},pOb=function(a,b){OA(a.matDialogService.open(a.deleteDialog,
{data:b})).pipe(Bf(a.destroyed$)).subscribe(function(c){c&&GSd(a,b)})},GSd=function(a,b){var c=b.index;var d;y(function(e){switch(e.nextAddress){case 1:d=a.templates[c];if(c<0||d.default)return e.return(Promise.resolve());vba(a.templateHotlistIds,c);vba(a.templates,c);a.defaultIndex=a.templates.findIndex(function(f){return f.default});R3(a);a.cdr.detectChanges();Pr(a.butterBar,"Deleting...");Yd(e,2,3);return z(e,a.templatesApi.delete(d.componentId,d.templateId),5);case 5:a.appEvents.templateModified.next(String(a.componentId)),
Pr(a.butterBar,"Deleted template"),a.analytics.trackEvent("template","delete"),a.currentIndex===c&&QOb(a);case 3:return Zd(e),z(e,a.loadTemplates(),6);case 6:R3(a);a.cdr.detectChanges();ae(e,0);break;case 2:be(e),a.butterBar.showWarning("Error while deleting template"),e.jumpTo(3)}})},ISd=function(a,b){b?POb(a).then(function(){HSd(a);a.cdr.detectChanges()}):HSd(a)},rOb=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};
Q3.prototype.openEditor=function(a){var b=this;this.currentIndex=a===void 0?-1:a;if(this.currentIndex<0){this.currentTemplate=JSd(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();R3(this);ySd(this);this.cdr.detectChanges();var c;(c=document.getElementById("template-name"))==null||c.focus()}else KSd(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=JSd(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
R3(b);ySd(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;(e=document.getElementById("template-name"))==null||e.focus()})};
var KSd=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},BSd=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,LSd(a)):b()},DSd=function(a,b,c){c&&c.issueAccessLimitLevel&&c.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits",b,"template:"+c.issueAccessLimitLevel)},ESd=function(a,b,c){a.currentTemplate&&a.currentTemplate.collaboratorGroups.length>0&&a.analytics.trackEvent("quickAddCollaborators",b,"template:"+c)},
FSd=function(a,b,c){var d;((d=a.currentTemplate)==null?0:d.inheritable)&&a.analytics.trackEvent("templateInheritance",b,"component:"+a.componentId+" template:"+c)},LSd=function(a){OA(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(Bf(a.destroyed$)).subscribe(function(b){b!==void 0&&ISd(a,b)})},HSd=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},JSd=function(a,b){var c={};a=m(a.allCustomFields);for(var d=a.next();!d.done;d=a.next())d=d.value,
c[d.customFieldId.toString()]=d;return new I3(c,b)};
Q3.prototype.loadCustomFields=function(){var a=this,b,c,d,e,f,g,k,l,r,w;return y(function(x){if(x.nextAddress==1){if(!a.supportCustomFields)return x.return();Yd(x,2);return z(x,a.componentActions.get(a.componentId),4)}if(x.nextAddress!=2){b=x.yieldResult;a.componentIdsToPaths={};c=[];e=((d=b.componentPathInfo)==null?void 0:d.componentPathId)||[];for(f=0;f<e.length;f++)g=b.componentPathInfo.componentPathId[f],k=b.componentPathInfo.componentPathName[f],c.push(k),a.componentIdsToPaths[g]=c.join(" > ");
w=(r=(l=b.componentPathInfo)==null?void 0:l.fieldConfigsV2Map)!=null?r:new Map;a.fieldConfigsV2=[].concat(q(e)).reverse().flatMap(function(C){var H;return(H=w.get(C))!=null?H:[]});a.allCustomFields=vS(a.customFieldHelper,b);a.cdr.detectChanges();return bt(x,0)}be(x);a.butterBar.showWarning("Unable to load custom fields");ce(x)})};
var ySd=function(a){var b;a.customFieldRows=MSd(a,(b=a.currentTemplate)==null?void 0:b.type).map(function(c){return new $Rd(c,c.type==="TEXT"?"1":"2")})},MSd=function(a,b){return NSd(a,a.allCustomFields,b)},NSd=function(a,b,c){var d=c&&a.fieldConfigsV2.find(function(e){return e.issueTypes.has(c)})||a.fieldConfigsV2.find(function(e){return!e.issueTypes.size});return d?b.filter(function(e){var f,g;return((g=(f=d.customFieldConfigs)==null?void 0:f.get(e.customFieldId))!=null?g:!0)||e.required&&e.typedDefaultValue===
void 0}):b};Q3.prototype.loadTemplates=function(){var a=this;this.templates=[];return this.templatesApi.query(this.componentId).then(function(b){a.templates=b;b=m(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 R3=function(a){if(a.currentIndex<0)a.templateRows=a.templates.map(function(e,f){return new ZRd(f,e,e.componentId!==a.componentId&&e.inheritable)}),a.currentTemplate&&(a.currentTemplateRow=new ZRd(-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 ZRd(f,e,e.componentId!==a.componentId&&e.inheritable)}));a.currentTemplate&&(a.currentTemplateRow=
new ZRd(b,a.currentTemplate,!1),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new ZRd(b+f+1,e,e.componentId!==a.componentId&&e.inheritable)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},oOb=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:if(b<0||a.defaultIndex===b)return g.return();c=a.templates[b];if(c.default)return g.return();d=c.name;ya(Kt(d))&&(d="(unnamed template)");a.defaultIndex=b;Pr(a.butterBar,"Changing default template...");
a.analytics.trackEvent("template","changeDefault");Yd(g,2,3);return z(g,OSd(a,c.templateId),5);case 5:Pr(a.butterBar,"Changed default template to "+d);case 3:return Zd(g),z(g,a.loadTemplates(),6);case 6:R3(a);a.cdr.detectChanges();ae(g,0);break;case 2:e=be(g),f="Error while changing default message"+(Rp(e)?": "+Sp(e):"."),a.butterBar.showWarning(f),g.jumpTo(3)}})},OSd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,ie(a.component$),2);if(e.nextAddress!=3){c=e.yieldResult;
if(!c||c.defaultTemplateId===b)return e.return();c.defaultTemplateId=b;return z(e,a.componentActions.update(c),3)}d=e.yieldResult;a.componentFridge.announce(d);a.appEvents.templateModified.next(String(d.componentId));ce(e)})};
Q3.prototype.editStaffing=function(){var a=this,b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.staffingDialogService.show((c=(b=a.currentTemplate.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,!0),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.currentTemplate.staffing=e;a.currentTemplate.dirty=!0;ce(f)})};
Q3.prototype.handleAutocompleteSelection=function(a,b,c){b&&b.editableTemplate&&(c==="verifier"?b.editableTemplate.verifier=a:c==="assignee"&&(b.editableTemplate.assignee=a),b.editableTemplate.dirty=!0,this.cdr.detectChanges())};Q3.\u0275fac=function(a){return new (a||Q3)};
Q3.\u0275cmp=D({type:Q3,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(hg(sSd,5),hg(tSd,5));if(a&2){var c;lg(c=mg())&&(b.saveBeforeClosingDialog=c.first);lg(c=mg())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},standalone:!1,features:[Gg([YP]),Gf],decls:23,vars:2,consts:[["deleteDialog",""],["saveBeforeClosingDialog",""],["typeMenu",""],["priorityMenu",""],["severityMenu",""],["peopleKitDiv",""],["ccsPeopleKitDiv",""],["card",
"onedevHovercard"],["cardBody",""],[1,"component-banner","template-help-banner"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"templates-list"],[1,"template-column-tool"],[1,"edit-button-row"],["format","fill","bAriaLabel","Create New template in this component",3,"onAction"],["colspan","4"],["tabindex","-1",1,"template-row-name"],[1,"template-row-new-issue-link"],["tabindex","0",1,"keep-focus-ring",3,"href"],[3,"change","id","checked","aria-label","value"],["format","hairline",
3,"onAction","bAriaLabel"],["format","hairline",3,"onAction","bAriaLabel","disabled"],[1,"template-edit-pane","template-editor-within-table"],[1,"form-header"],[1,"cell-1"],[1,"template-label"],["for","template-name"],["id","template-name","type","text",1,"template-field",3,"ngModelChange","ngModel"],["id","template-inheritable","aria-label","template inheritable by child components",3,"modelChange","model"],["for","template-inheritable"],["matTooltip","If activated, all child components will inherit this template. Make sure this template meets your organizational needs as sub-components will not be able to hide this template",
"svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["for","template-description"],["id","template-description","type","text",1,"template-field",3,"ngModelChange","ngModel"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),[1,"cell-1","access-limit-row"],[1,"access-limit-field"],["for","template-issue-access-limits-dropdown"],["id","template-issue-access-limits-dropdown",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],
[1,"collaborator-group-field"],["for","template-title"],["id","template-title","type","text",1,"template-field",3,"ngModelChange","ngModel"],[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["type","button","mat-menu-item","",3,"disabled","matTooltip"],["for","template-default-priority"],["id","template-default-priority","type","button",
"mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"disabled"],["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],[1,"cell-1","bv2-edit-template-hotlists"],["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[1,"bv2-hotlist-chips"],[1,"float-clear"],[1,"cell-2"],
["for","template-assignee"],["id","template-assignee","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["for","template-verifier"],["id","template-verifier","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["for","template-collaborators-peoplekit"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","svgIcon","help-outline","tabindex","0",1,"icon-xs",
"valign-middle","margin-xs-left"],["id","template-collaborators-peoplekit","aria-expanded","true",1,"template-field",3,"valueChange","ariaLabel","value"],["for","template-cc-peoplekit"],["id","template-cc-peoplekit","aria-expanded","true",1,"template-field",3,"valueChange","ariaLabel","value"],["for","template-comment"],["id","template-comment",1,"template-field",3,"ngModelChange","ngModel"],[3,"change","initialValue"],["for","template-in-prod"],["id","template-in-prod","aria-label","issue in prod",
3,"modelChange","model"],[1,"cell-1","staffing-row"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class"],[1,"buttons-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction"],["for","template-collaborator-groups-dropdown"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-xs","valign-middle","margin-xs-left",3,"matTooltip"],["appearance","outline",1,"static-label"],["multiple","","aria-label","Collaborator groups",3,"ngModelChange",
"ngModel"],[3,"value"],["type","button","mat-menu-item","",3,"click","disabled","matTooltip"],["type","button","mat-menu-item","",3,"click","disabled"],[3,"removeHotlist","hotlist"],["for","template-staffing"],["matTooltip","The Staffing field represents planned contributors on this issue.","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],[1,"bv2-edit-button"],[3,"for"],["type",
"text",1,"template-field",3,"ngModel"],["type","number","step","any",1,"template-field",3,"ngModel"],[3,"type","name","clearable","value","choices"],[3,"boundValue"],[3,"defaultLineCount","type","values","enumChoices","truncate"],["type","text",1,"template-field",3,"ngModelChange","ngModel"],["type","number","step","any",1,"template-field",3,"ngModelChange","ngModel"],[3,"valueChange","type","name","clearable","value","choices"],[3,"boundValueChange","boundValue"],[3,"valuesChange","defaultLineCount",
"type","values","enumChoices","truncate"],["role","heading","aria-level","3",1,"template-row-name"],["colspan","2"],[1,"template-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"],["type",
"button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","button","cdkFocusInitial","","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",9);Q(2," A template is a set of default values for new issues created in this component. ");K(3,"a",10);Q(4,"Learn more");L()();K(5,"table",11)(6,"tr")(7,"th");Q(8,"TEMPLATE");L();K(9,"th",12);Q(10,"DEFAULT");L();M(11,"th",12)(12,"th",12);L();Of(13,TOb,3,1,"tr",
null,Nf);F(15,XOb,3,1);L();K(16,"div",13)(17,"b-button",14);N("onAction",function(){u(c);return v(CSd(b))});Q(18," Create New Template ");L()();E(19,YOb,7,3,"ng-template",null,0,Mg)(21,ZOb,9,4,"ng-template",null,1,Mg);L()}if(a&2){var d;B(3);I("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Pe);B(10);Pf(zSd(b));B(2);G((d=ASd(b))?15:-1,d)}},dependencies:[MU,Dy,cU,TV,pV,yj,iE,$D,gE,PZ,x3,DK,EK,LK,FK,J3,PV,gB,cB,RA,VA,UA,rT,QU,vU,MD,MH,NH,cA,BD,oK,iA,pT,OJ,
YG,WG,aH,z_,N_,BY,mX],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 S3=function(){};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275mod=cf({type:S3});S3.\u0275inj=Hc({imports:[RO,V2]});var T3=function(){};T3.\u0275fac=function(a){return new (a||T3)};T3.\u0275mod=cf({type:T3});T3.\u0275inj=Hc({imports:[NU,RO,zU,R0,rV,xE,K_,E3,MK,S3,QV,iB,gL,MJ,EU,RU,gV,wU,fA,pK,DU,PJ,O_,v0,nX,P_,O_]});var U3=function(){this.activeSession=p(qu);this.appSearchState=p(oT);this.analytics=p(aQ);this.domSafe=p(iR);this.enableEstado=this.activeSession.getFlag("enableEstado")};U3.prototype.openInEstado=function(){this.analytics.trackEvent("listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};U3.\u0275fac=function(a){return new (a||U3)};
U3.\u0275prov=Fc({token:U3,factory:U3.\u0275fac,providedIn:"root"});var V3=function(){this.sloStatusHelpersService=p(wS);this.dateFormatter=p(qS);this.timeDisplayText="--";this.rawObjectiveDisplayText=this.objectiveDisplayText=null;this.cardActionText="--";this.sloEndTimeDisplayText=ee("--");this.SloRuleDayType=Jbd;this.iconName="slo-status-no-data"};V3.prototype.getIconName=function(a){return PSd.has(a)?PSd.get(a):"slo-status-no-data"};
var QSd=function(a,b,c){a.iconName=a.getIconName(b);c=c!==null?J7a(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:Xm("unknown status type: "+b)}};
V3.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&xS(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=J7a(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=J7a(c*1E3);this.sloEndTimeDisplayText=Fnd(this.dateFormatter,new Date(b*1E3));d=this.sloBounds;xS(d)&&
d.endTime&&d.endTime.seconds!==0&&d.endTime.seconds<=Date.now()/1E3?(b=this.sloBounds.endTime.seconds,this.sloEndTimeDisplayText=Fnd(this.dateFormatter,new Date(b*1E3)),QSd(this,"COMPLETED",a-b)):b<a?QSd(this,"OUT_OF_SLO",a-b):(d=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),a=b-a,QSd(this,a>259200?d?"SNOOZED_HEALTHY":"HEALTHY":d?"SNOOZED_NEAR":"NEAR",a))}else QSd(this,"NO_DATA",null),this.rawObjectiveDisplayText=this.objectiveDisplayText=null};
V3.\u0275fac=function(a){return new (a||V3)};
V3.\u0275cmp=D({type:V3,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},standalone:!1,features:[bx],decls:15,vars:13,consts:[["card",""],[3,"svgIcon"],[1,"slo-time-indicator-text",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"slo-status-text"],["role","dialog","aria-label","More slo information",
1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"margin-s-bottom","padded-s-bottom","border-bottom"]],template:function(a,b){a&1&&(M(0,"mat-icon",1),K(1,"span",2)(2,"span",3),Q(3),L()(),K(4,"onedev-hovercard",null,0)(6,"div",4)(7,"div",5)(8,"div"),Q(9),L(),K(10,"div",6),Q(11),T(12,"async"),L(),F(13,$Ob,4,2)(14,aPb,2,1,"div"),L()()());a&2&&(a=qg(5),xg(b.iconName),I("svgIcon",b.iconName),Kf("aria-label",b.timeDisplayText==="--"?"No SLO data":""),B(),I("onedevHovercardTrigger",a)("onedevHovercardActive",
!(!b.includeObjective||!b.rawObjectiveDisplayText)),B(2),yg(b.timeDisplayText),B(6),yg(b.timeDisplayText),B(2),zg(" ",b.cardActionText," ",U(12,11,b.sloEndTimeDisplayText)," "),B(2),G((b.sloBounds==null?null:b.sloBounds.dayType)===b.SloRuleDayType.BUSINESS?13:14))},dependencies:[Dy,DK,LK,Lx],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 PSd=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 W3=function(){this.sloStatusHelpersService=p(wS);this.includeNoSlo=!1};W3.prototype.ngOnInit=function(){RSd(this);this.hasSlo=!!this.sloStatus&&Lnd(this.sloStatus)};W3.prototype.ngOnChanges=function(){RSd(this)};var RSd=function(a){a.sloStatus&&(a.assignmentSlo=SSd(Pm(a.sloStatus.assignmentBounds)),a.responseSlo=SSd(Pm(a.sloStatus.responseBounds)),a.closureSlo=SSd(Pm(a.sloStatus.closureBounds)))};W3.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var SSd=function(a){if(xS(a))return a};W3.\u0275fac=function(a){return new (a||W3)};
W3.\u0275cmp=D({type:W3,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},standalone:!1,features:[bx],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,bPb,2,4,"div"),F(1,cPb,2,4,"div"),F(2,dPb,2,4,"div"));a&2&&(G(!b.includeNoSlo&&!b.assignmentSlo||b.onlyShowMetric&&b.onlyShowMetric!="ASSIGNMENT"?-1:0),B(),G(!b.includeNoSlo&&!b.responseSlo||b.onlyShowMetric&&b.onlyShowMetric!="RESPONSE"?-1:1),B(),G(!b.includeNoSlo&&!b.closureSlo||b.onlyShowMetric&&b.onlyShowMetric!="CLOSURE"?-1:2))},dependencies:[V3],encapsulation:2,changeDetection:0});var X3=function(){this.sloStatusHelpersService=p(wS);this.analytics=p(aQ);this.sloApi=p(FQ)};X3.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&Mnd(this.sloStatus,this.onlyShowMetric);this.sloId!=="0"?(this.editSloLink=ps.editSlo.makeHref(this.sloId),TSd(this)):this.editSloLink=null};X3.prototype.trackOpenSlo=function(){this.analytics.trackEvent("editSlo","open","fromSloStatusCard")};
var TSd=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.name}).catch(function(){a.sloName=null})};X3.\u0275fac=function(a){return new (a||X3)};
X3.\u0275cmp=D({type:X3,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&&(cg(),K(0,"span",1),dg(1),L(),K(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"div",4),F(7,ePb,2,3,"div",5)(8,hPb,3,1,"div",6),F(9,kPb,4,1,"span"),L()()()());a&2&&(a=qg(3),I("onedevHovercardTrigger",a),B(7),G(b.hasSlo?7:8),B(2),G(b.editSloLink?9:-1))},dependencies:[DK,LK,W3],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 USd=function(){var a=this;this.data=p(PA);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}};USd.\u0275fac=function(a){return new (a||USd)};
USd.\u0275cmp=D({type:USd,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&&(K(0,"h1",0),Q(1),L(),K(2,"mat-dialog-content")(3,"b-custom-field-picker",1),N("fieldSelected",function(c){return b.selectedCustomField=
c}),L()(),K(4,"mat-dialog-actions")(5,"button",2),Q(6," Cancel "),L(),K(7,"button",3),Q(8," Add "),L()());a&2&&(B(),S("Insert custom field column next to ",b.column.fullLabel),B(2),I("filter",b.isLegalColumn),B(4),I("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[RA,TA,VA,UA,p3,gB,cB],encapsulation:2});var VSd=function(){};VSd.\u0275fac=function(a){return new (a||VSd)};VSd.\u0275mod=cf({type:VSd});VSd.\u0275inj=Hc({imports:[MJ,RO,q3,iB]});var lPb="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(" "),
WSd="priority type title assignee status sevenDayViewCount issueId modifiedTime".split(" ");var St=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)};St.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var rPb={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 XSd=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};XSd.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var YSd=function(){this.bindings=[]};YSd.prototype.off=function(){for(var a=m(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var ZSd=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.eventBindings=new YSd;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};
ZSd.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(){$Sd(a,"dragstart",a.onDragTargetDragstart);$Sd(a,"dragenter",a.onDragTargetDragenter);$Sd(a,"dragend",a.onDragTargetDragend);$Sd(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new XSd(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new XSd(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new XSd(a.mask,"drop",a.onMaskDrop))})};var $Sd=function(a,b,c){a.eventBindings.bindings.push(new XSd(a.element,b,cq("th.drag-target",c)))};ZSd.prototype.tearDown=function(){this.eventBindings.off()};var aTd=["table"],bTd=["defaultHeaderCellTemplate"],cTd=["defaultViewCellTemplate"],dTd=["dataRows"],uPb=function(a){return{column:a}},xPb=function(a,b,c){return{row:a,column:b,index:c}},zPb=function(a,b){return b.name},BPb=function(a,b){return b.id},Y3=function(){var a=this;this.activeSession=p(qu);this.ngZone=p(Rg);this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new XP;this.rowClick=new XP;this.rowLabelRenderer=function(b,c){return"Row "+c};
this.sortChange=new XP;this.focusedRowIndexChange=new XP;this.afterViewInit=new XP;this.enableDragDropHeader=!0;this.hoveredRowIndex=new XP;this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");this.onDragDropColumn=function(b,c){var d=[].concat(q(a.columns));b=d.splice(b,1)[0];d.splice(c,0,b);a.columns=d;a.columnsChange.emit([].concat(q(a.columns)))};this.onTdClickableClick=cq("td.clickable",function(b,c){if((b.type!=="mouseup"||b.button===1)&&!rsd(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})}})};Y3.prototype.ngOnInit=function(){this.enableDragDropHeader&&eTd(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
var eTd=function(a){a.dragDropHeaderLogic=new ZSd({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()};
Y3.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;b!=null&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(s$a(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};Y3.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
Y3.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 fTd=function(a){return a.columns.map(function(b){b=b.name;return b!=null?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};Y3.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
Y3.prototype.focus=function(){if(this.focusedRowIndex!=null&&this.dataRows!=null){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};Y3.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};Y3.\u0275fac=function(a){return new (a||Y3)};
Y3.\u0275cmp=D({type:Y3,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(hg(aTd,7),hg(bTd,7),hg(cTd,7),hg(dTd,5,Jd));if(a&2){var c;lg(c=mg())&&(b.tableElement=c.first);lg(c=mg())&&(b.defaultHeaderCellTemplate=c.first);lg(c=mg())&&(b.defaultViewCellTemplate=c.first);lg(c=mg())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer",enableDragDropHeader:"enableDragDropHeader"},outputs:{columnsChange:"columnsChange",
rowClick:"rowClick",sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit",hoveredRowIndex:"hoveredRowIndex"},standalone:!1,features:[bx],decls:15,vars:1,consts:[["table",""],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],["dataRows",""],[1,"pop-grid",3,"mousedown"],[3,"class"],[1,"header-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus"],["tabindex","0",3,"click","focus",
"mouseover","mouseleave"],[3,"column"],[3,"row","column"]],template:function(a,b){if(a&1){var c=t();K(0,"table",4,0);N("mousedown",function(e){u(c);e.shiftKey&&window.getSelection().removeAllRanges();return v()});K(2,"colgroup");Of(3,sPb,1,3,"col",5,zPb);L();K(5,"thead")(6,"tr",6);Of(7,vPb,1,4,"ng-container",null,zPb);L()();K(9,"tbody");F(10,CPb,2,0);L()();E(11,DPb,2,1,"ng-template",null,1,Mg)(13,EPb,2,2,"ng-template",null,2,Mg)}if(a&2){var d;B(3);Pf(b.columns);B(4);Pf(b.columns);B(3);G((d=fTd(b))?
10:-1,d)}},encapsulation:2});var gTd=function(){this.templateRef=p(eg);this.popGrid=p(Y3)};gTd.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};gTd.\u0275fac=function(a){return new (a||gTd)};gTd.\u0275dir=df({type:gTd,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"},standalone:!1});var hTd=function(){this.templateRef=p(eg);this.popGrid=p(Y3)};
hTd.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};hTd.\u0275fac=function(a){return new (a||hTd)};hTd.\u0275dir=df({type:hTd,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"},standalone:!1});var iTd=function(){this.templateRef=p(eg);this.popGrid=p(Y3)};iTd.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};iTd.\u0275fac=function(a){return new (a||iTd)};
iTd.\u0275dir=df({type:iTd,selectors:[["","forHeaderCellDefault",""]],standalone:!1});var Z3=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new XP};Z3.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?this.sort.direction==="ASC"?a+", sorted ascending":a+", sorted descending":a};Z3.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
Z3.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a=this.sort.direction==="ASC"?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};Z3.\u0275fac=function(a){return new (a||Z3)};
Z3.\u0275cmp=D({type:Z3,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&&(K(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),Q(2),L());a&2&&(wg("current-sort",b.isActive())("direction-asc",b.isActive()&&b.sort.direction==="ASC")("direction-desc",b.isActive()&&b.sort.direction==="DESC"),Kf("aria-label",b.ariaLabel()),B(2),S(" ",b.columnLabel," "))},encapsulation:2});var a4=function(){this.elementRef=p(Jd);this.grid=p(Y3,{optional:!0})};a4.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}}};
a4.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};a4.\u0275fac=function(a){return new (a||a4)};
a4.\u0275cmp=D({type:a4,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&&(K(0,"div",0),F(1,FPb,1,5,"b-sortable-header",1)(2,HPb,3,3,"div",2),L());a&2&&(B(),
G(b.column.sortable?1:2))},dependencies:[oK,iA,Z3],encapsulation:2});var jTd=function(){return{before:!1}},kTd=function(){return{before:!0}},OPb=function(a,b){return{columns:a,before:b}},b4=function(){Z.call(this);var a=this;this.matDialog=p(QA);this.userPreferencesManager=p(dR);this.butterBar=p(QN);this.analytics=p(aQ);this.hotkeys=p(kU);this.activeSession=p(qu);this.selectedColumnsChange=new XP;this.onAddTeamColumn=new XP;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=GN.listViewPreferences;this.userPreferencesManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.listViewPrefs=
b.listViewPreferences||GN.listViewPreferences})};Y(b4,Z);b4.\u0275dir=Z.\u0275dir;b4.prototype.ngOnChanges=function(a){a.selectedColumns&&lTd(this)};
var mTd=function(a){a.selectedColumnsChange.emit([].concat(q(a.selectedColumns)));lTd(a)},JPb=function(a,b){var c=Object.assign({},a.listViewPrefs),d=KPb(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||Pr(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(nf(1),Bf(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||Pr(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},RPb=function(a,b){a.hotkeys.pause();OA(a.matDialog.open(USd,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Bf(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},lTd=function(a){for(var b={},
c=m(a.selectedColumns),d=c.next();!d.done;d=c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!Mta(b,f.name)});c=[].concat(q(new Set(e.filter(function(f){return f.parentLabel}).map(function(f){return f.parentLabel})))).map(function(f){return{label:f,columns:e.filter(function(g){return g.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(q(d),q(c));a.currentAvailableItems.sort(function(f,g){return wa(f instanceof St?f.fullLabel:
f.label,g instanceof St?g.fullLabel:g.label)});a.isRemovable=nTd(a)};b4.prototype.isIssueGridColumn=function(a){return a instanceof St};b4.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,mTd(this),!0}return!1};
b4.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new St({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(q(this.selectedColumns));this.selectedColumns.splice(b,0,a);mTd(this);return!0};
var nTd=function(a){return a.selectedColumns.filter(function(b){return!b.isMetadata}).length>1};b4.\u0275fac=function(a){return new (a||b4)};
b4.\u0275cmp=D({type:b4,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&hg(aH,5);if(a&2){var c;lg(c=mg())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},standalone:!1,features:[Gf,bx],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();K(0,"div",4)(1,"div",5);M(2,"pop-grid-default-th",6);L();F(3,IPb,2,5,"div",7);K(4,"mat-menu",8,0);Of(6,LPb,4,3,"button",9,Nf);F(8,MPb,1,0,"mat-divider");K(9,"button",10);N("click",function(){u(c);return v(b.remove())});Q(10," Remove column ");L();K(11,"button",11);Q(12," Add column right ");L();K(13,"button",11);Q(14," Add column left ");L()();K(15,"mat-menu",null,1);E(17,SPb,5,0,"ng-template",12);L();K(18,"mat-menu",
null,2);E(20,UPb,2,0,"ng-template",12);L()()}a&2&&(a=qg(16),B(2),I("column",b.column),B(),G(3),B(3),Pf(b.column.moreOptions),B(2),G(b.column.moreOptions.length?8:-1),B(),I("disabled",!b.isRemovable),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Hg(8,jTd)),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Hg(9,kTd)))},dependencies:[OJ,YG,WG,XG,aH,aK,oK,iA,pT,a4],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 qTd=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=cq("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=cq("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){oTd(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=cq("tr",function(){b.draggedRow&&(oTd(b.draggedRow),oTd(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=cq("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=cq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=cq(".row-dropzone",function(c){oTd(b.dragTargetRow);pTd(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=cq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=cq(".row-dropzone",function(c){pTd(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()})};
qTd.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");pTd(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)})};
qTd.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 oTd=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},pTd=function(a){a.dropzone.style.display="none"};var c4=function(){this.userPreferencesManager=p(dR);this.isParentRowActive=!1;this.onClick=new XP;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.themePreferences)==null?void 0:b.density}));this.useSmallIcon$=this.density$.pipe(A(function(a){return a!=="COMFORTABLE"}))};c4.prototype.handleClick=function(){this.onClick.emit()};c4.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};
c4.\u0275fac=function(a){return new (a||c4)};
c4.\u0275cmp=D({type:c4,selectors:[["b-sidebar-toggle"]],inputs:{isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},standalone:!1,decls:3,vars:4,consts:[["type","button","aria-label","Open issue sidebar","mat-icon-button","",1,"right-panel-toggle",3,"click","keydown"],["svgIcon","right_panel_open_24px",1,"icon-s"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("click",function(c){return b.handleClick(c)})("keydown",function(c){return b.handleKeydown(c)}),M(2,"mat-icon",
1),L());a&2&&wg("small",U(1,2,b.useSmallIcon$))},dependencies:[Dy,gB,eB,Lx],encapsulation:2,changeDetection:0});var d4=function(){this.sloStatusHelpersService=p(wS);this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};d4.prototype.ngOnInit=function(){rTd(this)};d4.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&rTd(this)};var rTd=function(a){var b=Nnd(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
d4.\u0275fac=function(a){return new (a||d4)};
d4.\u0275cmp=D({type:d4,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},standalone:!1,features:[bx],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:[V3],encapsulation:2,changeDetection:0});var sTd=function(){};sTd.\u0275fac=function(a){return new (a||sTd)};sTd.\u0275cmp=D({type:sTd,selectors:[["archived-issue-indicator"]],standalone:!1,decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(K(0,"span"),M(1,"mat-icon",0),Q(2,"Archived "),L())},dependencies:[Dy],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 tTd=function(){};tTd.\u0275fac=function(a){return new (a||tTd)};tTd.\u0275mod=cf({type:tTd});tTd.\u0275inj=Hc({imports:[RO]});var uTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(uTd,W);uTd.prototype.getIssueId=function(){return pn(this,1)};uTd.prototype.getIssueId_asString=function(){return un(this,1)};uTd.prototype.setIssueId=function(a){return Ko(this,1,a)};var vTd=function(a){return Im(a,2,2)};var wTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wTd,W);var xTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,xTd.messageId)};Y(xTd,W);xTd.prototype.getIt=function(){return X(this,wTd,2,jb)};xTd.prototype.setIt=function(a){return Ni(this,wTd,2,a,jb)};xTd.messageId="b.ListStatusUpdateHistoryResponse";var e4=function(){this.executor=p(ZN)};e4.prototype.update=function(a){var b=this.executor,c=b.post,d="action/issues/"+a.issueId+"/statusUpdate";a=(new vP).setIt(HXa(a));return c.call(b,{url:d,body:a,responseConstructor:vP}).pipe(A(l1a))};e4.prototype.delete=function(a){return this.executor.delete({url:"action/issues/"+a+"/statusUpdate",responseConstructor:null})};
var yTd=function(a,b){var c=vTd((new uTd).setIssueId(Number(b)));return a.executor.post({url:"action/issues/"+b+"/listStatusUpdates",body:c,responseConstructor:xTd}).pipe(A(function(d){d=d.getIt();return Ci(d,yp,1,Di()).map(GXa)}))};e4.\u0275fac=function(a){return new (a||e4)};e4.\u0275prov=Fc({token:e4,factory:e4.\u0275fac,providedIn:"root"});var zTd=function(a){return[a]},f4=function(){var a=this;this.matDialog=p(QA);this.router=p(YE);this.destroyRef=p(Ee);this.router.events.pipe(we(function(b){return b instanceof Qj}),Uj(this.destroyRef)).subscribe(function(){var b;(b=a.dialog)==null||b.close();a.dialog=void 0})};
f4.prototype.show=function(a,b,c){var d=this,e,f;return y(function(g){if(g.nextAddress==1)return d.dialog&&(d.dialog.close(),d.dialog=void 0),a.formattingMode==="LITERAL"&&(a.formattingMode="PLAIN"),e={width:"60vw",disableClose:!0,closeOnNavigation:!1,panelClass:"no-jitter",data:{componentId:c,formattingAudience:b,statusUpdate:a}},d.dialog=d.matDialog.open(g4,e),z(g,ie(OA(d.dialog)),2);f=g.yieldResult;d.dialog=void 0;return g.return(f)})};f4.\u0275fac=function(a){return new (a||f4)};
f4.\u0275prov=Fc({token:f4,factory:f4.\u0275fac,providedIn:"root"});var h4=function(){this.userPreferencesManager=p(dR)},ATd=function(a,b){var c;return y(function(d){return d.nextAddress==1?(c=b,z(d,ie(a.userPreferencesManager.currentCommentFormattingMode$),2)):d.return({issueId:c,updateText:"",version:-1,formattingMode:d.yieldResult})})};h4.\u0275fac=function(a){return new (a||h4)};h4.\u0275prov=Fc({token:h4,factory:h4.\u0275fac,providedIn:"root"});
var g4=function(){Z.apply(this,arguments);this.activeSession=p(qu);this.checkBeforeExit=p(uY);this.data=p(PA);this.dialogService=p(f4);this.dialogRef=p(NA);this.bannedWordsChecker=p(SW);this.CHAR_LIMIT=2E3;this.FormattingMode=Um;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=pm(this.origStatusUpdate)};Y(g4,Z);g4.\u0275dir=Z.\u0275dir;var BTd=function(a){var b,c;return(c=Y7a((b=a.newStatusUpdate)==null?void 0:b.updateText))!=null?c:""};h=g4.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(Bf(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Bf(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
h.closeIfUnmodified=function(){if(!this.isModified()){var a;(a=this.dialogService.dialog)==null||a.close()}};h.isModified=function(){return!mm(this.newStatusUpdate,this.origStatusUpdate)};h.asNumber=function(a){return Number(a)};
h.closeDialogForSave=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return a.isModified()?z(e,a.bannedWordsChecker.check(a.newStatusUpdate.updateText,a.formattingAudience==="EXTERNAL",a.data.componentId),2):e.return();b=e.yieldResult;if(!b)return(c=a.commentDraft)==null||aCd(c),e.return();(d=a.dialogService.dialog)==null||d.close(a.newStatusUpdate);ce(e)})};g4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(g4)))(b||g4)}}();
g4.\u0275cmp=D({type:g4,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hg(sY,5);if(a&2){var c;lg(c=mg())&&(b.commentDraft=c.first)}},standalone:!1,features:[Gg([SW]),Gf],decls:23,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"contentChange","onSubmit","content","textareaClass","isLiteralModeSupported"],[1,"char-limit-warning"],[1,"banned-words-warning","break-word"],[1,"inline-block",3,
"change","initialValue"],["tabindex","0",1,"clamper","line-clamp-4"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"save-button",3,"click","disabled","color"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[3,"comment","issueId","formattingMode","audience"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"Editing Status Update"),
L(),K(2,"section",1)(3,"p",2),Q(4," Editing the Status Update will not permanently remove old ones from database history. "),M(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),K(7,"a",3),Q(8," file a support request. "),L()(),K(9,"b-comment-draft",4),T(10,"async"),Cg("contentChange",function(c){Bg(b.newStatusUpdate.updateText,c)||(b.newStatusUpdate.updateText=c);return c}),N("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",function(){return b.closeDialogForSave()}),
L(),F(11,VPb,2,1,"p",5),F(12,WPb,4,1,"p",6),T(13,"async"),K(14,"b-markdown-toggle",7),N("change",function(c){return b.newStatusUpdate.formattingMode=c}),L(),F(15,XPb,2,4,"div",8),L(),K(16,"footer",9)(17,"button",10),Q(18," Cancel "),L(),K(19,"button",11),T(20,"async"),N("click",function(){return b.closeDialogForSave()}),Q(21),T(22,"async"),L()());a&2&&(B(7),I("href",b.contentRemovalRequestLink,Pe),B(2),xg(BTd(b)),Ag("content",b.newStatusUpdate.updateText),I("textareaClass",Ig(24,zTd,U(10,16,b.bannedWordsChecker.showWarning$)?
"banned-words-warning":""))("isLiteralModeSupported",!1),B(2),G(b.newStatusUpdate.updateText.length>2E3?11:-1),B(),G(U(13,18,b.bannedWordsChecker.showWarning$)?12:-1),B(2),wg("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN),I("initialValue",b.origStatusUpdate.formattingMode),B(),G(b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN?15:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",b.newStatusUpdate.updateText.length===0||b.newStatusUpdate.updateText.length>
2E3||!b.isModified())("color",U(20,20,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),S(" ",U(22,22,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[RA,TA,VA,UA,gB,cB,cU,nT,sY,Lx],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 i4=function(){this.feedbackState=new Map};i4.prototype.getKey=function(a,b){return a+"-"+b};var fQb=function(a,b,c){var d;return(d=a.feedbackState.get(a.getKey(b,c)))!=null?d:{hasThumbsUpped:!1,hasThumbsDowned:!1}};i4.prototype.hasFeedbackBeenGiven=function(a,b){a=fQb(this,a,b);return a.hasThumbsUpped||a.hasThumbsDowned};i4.\u0275fac=function(a){return new (a||i4)};i4.\u0275prov=Fc({token:i4,factory:i4.\u0275fac,providedIn:"root"});var j4=function(){var a=this;this.confirmationDialogService=p(ZR);this.contextSensitiveRegistry=p(TQ);this.destroyRef=p(Ee);this.issueEnrichmentService=p(I1);this.issueEnrichmentFridge=p(MP);this.issuePermissionService=p(WQ);this.butterBar=p(QN);this.window=p(hR);this.insightsActionsService=p(i4);this.enrichmentCategoryFridge=p(rP);this.enrichmentApi=p(uO);this.enrichmentCategory$=ee(void 0);this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new HK,{position:[O8c]});this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(Qm),
pf());this.actionMenuItems$=this.issuePermissionService.hasAclToAdmin$.pipe(A(function(b){var c=[];b&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(a.enrichment.category)},label:"Delete insight..."});return c}))};j4.prototype.ngOnInit=function(){this.enrichment.category&&!WNd.includes(this.enrichment.category)&&(this.enrichmentCategory$=this.enrichmentCategoryFridge.watch(this.enrichment.category))};
j4.prototype.hasFeedbackBeenGiven=function(a){return this.insightsActionsService.hasFeedbackBeenGiven(a,this.enrichment.category)};
var CTd=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.issueId$),2);if(g.nextAddress!=3)return c=g.yieldResult,d=a.window.location.protocol+"//"+a.window.location.hostname+("/issues/"+c+"/insights#insight-"+b),a.window.navigator.clipboard.writeText(d),Pr(a.butterBar,"Link copied to clipboard",2E3),e=a.issueEnrichmentService,f=e.logIssueUserEventForIssueEnrichment,z(g,ie(a.issueId$),3);f.call(e,g.yieldResult,"EVENT_TYPE_COPY_DEEP_LINK",b);ce(g)})};
j4.prototype.copyContent=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return(c=(b=a.enrichment.general)==null?void 0:b.content)?z(e,ie(a.issueId$),2):e.return();d=e.yieldResult;a.window.navigator.clipboard.writeText(c);Pr(a.butterBar,"Content copied to clipboard",2E3);a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,"EVENT_TYPE_COPY",a.enrichment.category);ce(e)})};
var dQb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.enrichment.category,z(d,ie(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_THUMBS_UP",b);var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!0,hasThumbsDowned:!1});ce(d)})},eQb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.enrichment.category,
z(d,ie(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_THUMBS_DOWN",b);var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!1,hasThumbsDowned:!0});ce(d)})};
j4.prototype.showDeleteAttachmentDialog=function(a){var b=this,c;y(function(d){if(d.nextAddress==1)return z(d,ie(b.issueId$),2);c=d.yieldResult;b.confirmationDialogService.open({title:"Delete Insight",content:Bh("You are about to delete insight '"+a+"' on issue "+c+". This action cannot be undone."),onConfirm:function(){Bed(b.enrichmentApi,c,a).pipe(Uj(b.destroyRef)).subscribe(function(){b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_DELETE",b.enrichment.category);b.issueEnrichmentFridge.poke(c)})}});
ce(d)})};j4.\u0275fac=function(a){return new (a||j4)};
j4.\u0275cmp=D({type:j4,selectors:[["insights-actions"]],inputs:{enrichment:"enrichment"},standalone:!1,decls:13,vars:11,consts:[["categoryInfoCard","onedevHovercard"],["type","button","mat-icon-button","","matTooltip","Copy insight content","aria-label","copy insight content",1,"small","copy-content"],["type","button","mat-icon-button","","matTooltip","Copy link","aria-label","copy link to insight",1,"small","copy-link",3,"click"],["svgIcon","link",1,"icon-s"],"href http://goto.corp.google.com/buganizer-insights-feedback target _blank tabindex -1".split(" "),
["type","button","mat-icon-button","","aria-label","send feedback",1,"small"],["svgIcon","feedback-outline",1,"icon-s"],["buttonLabel","Insights actions","buttonSize","small","matTooltip","Insights actions",3,"menuItems"],["mat-icon-button","","aria-label","info about this insight category",1,"small","info",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],["svgIcon","info",1,"icon-s"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["type","button",
"mat-icon-button","","matTooltip","Copy insight content","aria-label","copy insight content",1,"small","copy-content",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb up",1,"small","thumbs-up",3,"click","disabled"],["svgIcon","thumb_up_filled_24px",1,"icon-s","primary"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb down",1,"small","thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_filled_24px",
1,"icon-s","primary"],["svgIcon","thumb_down_24px",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();F(0,YPb,11,5);T(1,"async");F(2,ZPb,2,0,"button",1);K(3,"button",2);N("click",function(){u(c);return v(CTd(b,b.enrichment.category))});M(4,"mat-icon",3);L();F(5,gQb,6,4);T(6,"async");K(7,"a",4)(8,"button",5);M(9,"mat-icon",6);L()();$f(10);T(11,"async");F(12,hQb,1,1,"b-actions-menu",7)}if(a&2){var d,e;G((d=U(1,4,b.enrichmentCategory$))?0:-1,d);B(2);G((b.enrichment.general==null?0:b.enrichment.general.content)?
2:-1);B(3);G((e=U(6,6,b.issueId$))?5:-1,e);B(5);a=ag(U(11,8,b.actionMenuItems$));B(2);G(a&&a.length>0?12:-1)}},dependencies:[QY,Dy,gB,eB,oK,iA,DK,LK,Lx],styles:[".primary[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"],changeDetection:0});var DTd=["commentPresenter"],vQb=function(){return[]},uQb=function(a,b){return b.category},k4=function(){var a=this;this.activeSession=p(qu);this.activatedRoute=p(Mj);this.analytics=p(aQ);this.cdr=p(YP,{self:!0});this.destroyRef=p(Ee);this.router=p(YE);this.scrolledOnScreenService=p(sU);this.issueEnrichmentService=p(I1);this.contextSensitiveRegistry=p(TQ);this.initiallyCollapsed=!1;this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.shouldTruncate=!1;this.isTruncated=
!0;this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Cf(function(b){a.logImpressions(b)}),xf({bufferSize:1,refCount:!0}));this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(Qm),pf());this.shouldShowInsights$=this.enrichments$.pipe(A(function(b){return a.activeSession.isInternalSession()&&b.length>0}));this.tabKeys$=this.enrichments$.pipe(A(function(b){return b.map(function(c){return c.displayName})}));this.manualSelectedTab$=new Nj(null);this.initialExpandedTab$=this.enrichments$.pipe(A(function(b){if(a.initiallyCollapsed)return[];
var c=AVa("insights-lastExpanded")();if(c==="HIDDEN")return[];var d=b.find(function(e){return e.category===c});return d?[d.displayName]:b.length>0?[b[0].displayName]:[]}),nf(1));this.expandedTab$=le([this.initialExpandedTab$,this.manualSelectedTab$]).pipe(A(function(b){var c=m(b);b=c.next().value;return(c=c.next().value)?c:b}));this.currentEnrichment$=le([this.enrichments$,this.expandedTab$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(c.length!==0){var d=c[0];return b.find(function(e){return e.displayName===
d})}}),xf({bufferSize:1,refCount:!0}))};k4.prototype.ngAfterViewInit=function(){var a=this;this.tabKeys$.pipe(nf(1),Uj(this.destroyRef)).subscribe(function(){kQb(a)});this.destroyRef.onDestroy(function(){var b;(b=a.onScreenSubscription)==null||b.unsubscribe()})};var kQb=function(a){setTimeout(function(){var b;a.shouldTruncate=((b=a.commentPresenter)==null?void 0:b.nativeElement.scrollHeight)>84;a.cdr.markForCheck();a.maybeSetupOnScreenDetection()},0)};
k4.prototype.maybeSetupOnScreenDetection=function(){var a=this,b,c,d,e,f,g,k,l;y(function(r){if(r.nextAddress==1)return(b=a.onScreenSubscription)==null||b.unsubscribe(),a.onScreenSubscription=void 0,d=(c=a.commentPresenter)==null?void 0:c.nativeElement,d?(e=!a.shouldTruncate||a.shouldTruncate&&!a.isTruncated)?z(r,ie(a.expandedTab$),3):r.jumpTo(0):r.return();if(r.nextAddress!=4)return f=r.yieldResult,f.length===0?r.return():z(r,ie(a.currentEnrichment$),4);g=r.yieldResult;if(!g)return r.return();k=
g.category;if(a.loggedViewEnrichments.has(k))return r.return();l=g.issueId;a.onScreenSubscription=qsd(a.scrolledOnScreenService,d,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(nf(1),Uj(a.destroyRef)).subscribe(function(){a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(l,"EVENT_TYPE_VIEW",k);a.loggedViewEnrichments.add(k)});ce(r)})};
var sQb=function(a){var b,c,d,e;y(function(f){if(f.nextAddress==1)return z(f,ie(a.currentEnrichment$),2);b=f.yieldResult;e=(d=(c=b)==null?void 0:c.category)!=null?d:"HIDDEN";pdd("insights-lastExpanded")(e);ce(f)})};
k4.prototype.logImpressions=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.category;this.loggedImpressionEnrichments.has(c)||(this.loggedImpressionEnrichments.add(c),this.issueEnrichmentService.logIssueUserEventForIssueEnrichment(b.issueId,"EVENT_TYPE_IMPRESSION",c))}};
var tQb=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("insightsTab","click"),c=["insights"],d={relativeTo:a.activatedRoute},e=!!a.router.url.match("/issues/[0-9]+"),e||(c=[ps.viewIssue.makeHref(b),"insights"],d={}),z(k,ie(a.expandedTab$),2);case 2:f=k.yieldResult;if(!(f.length>0)){k.jumpTo(3);break}return z(k,ie(a.currentEnrichment$),4);case 4:if(g=k.yieldResult)d.fragment="insight-"+g.category;case 3:return z(k,a.router.navigate(c,d),
0)}})};k4.\u0275fac=function(a){return new (a||k4)};
k4.\u0275cmp=D({type:k4,selectors:[["b-insights-enrichments"]],viewQuery:function(a,b){a&1&&hg(DTd,5,Jd);if(a&2){var c;lg(c=mg())&&(b.commentPresenter=c.first)}},inputs:{initiallyCollapsed:"initiallyCollapsed"},standalone:!1,features:[Gg([YP])],decls:4,vars:3,consts:[["commentPresenter",""],[1,"container","carded","margin-top-none","bg-main","gradient-border-left","padded-s-y"],["svgIcon","info_spark_24px",1,"icon-m","spark"],["ariaLabel","Insights for this issue",1,"grow-1","flex-hemmed",3,"showMultiple",
"showIcons","tabKeys","expandedTabs"],["ariaLabel","Insights for this issue",1,"grow-1","flex-hemmed",3,"expandedTabsChanged","showAllClicked","showMultiple","showIcons","tabKeys","expandedTabs"],[3,"key","ariaLabel"],["expandable-tab-header",""],["expandable-tab-content",""],[3,"formattedComment","truncated"],[1,"flex-kids-x","margin-xs-top"],["type","button","mat-stroked-button","","color","primary",1,"gmat-button","small","show-more"],[1,"margin-left-auto",3,"enrichment"],[3,"formattedComment"],
[3,"contentRendered","formattedComment"],["type","button","mat-stroked-button","","color","primary",1,"gmat-button","small","show-more",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1),M(1,"mat-icon",2),F(2,xQb,2,3),T(3,"async"),L());if(a&2){var c;B(2);G((c=U(3,1,b.enrichments$))?2:-1,c)}},dependencies:[Dy,mT,eZ,bZ,cZ,fZ,gB,cB,j4,$T,Lx],styles:['.truncated[_ngcontent-%COMP%]{max-height:84px;overflow:hidden;mask-image:linear-gradient(to bottom, black 0%, black 70%, transparent 100%)}.show-more[_ngcontent-%COMP%]{max-width:100px}.container[_ngcontent-%COMP%]{display:flex;position:relative}.gradient-border-left[_ngcontent-%COMP%]::before{border-radius:4px 0 0 4px;content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg, var(--insights-purple) 0%, var(--insights-pink) 100%);z-index:1}.mat-icon.spark[_ngcontent-%COMP%]{fill:var(--insights-purple);flex-shrink:0}expandable-tabs[_ngcontent-%COMP%]{margin-left:4px}'],
changeDetection:0});var l4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l4,W);l4.prototype.setContextsList=function(a){return Ww(this,1,a)};l4.prototype.addContexts=function(a){return zc(this,1,Cb,a,void 0,Db)};l4.prototype.getContexts=function(a){return Ow(this,1,a)};var ETd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ETd,W);h=ETd.prototype;h.getIssueIdsList=function(){return Jw(this,1,1)};h.getIssueIdsList_asString=function(){return Sm(this,1)};h.setIssueIdsList=function(a){return ur(this,1,a)};h.addIssueIds=function(a){return Tw(this,1,a)};h.setIssueIds=function(a){zc(this,1,Hb,void 0,a,Nb,void 0,1)};var FTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(FTd,W);FTd.prototype.getWorkspaceId=function(){return pn(this,1)};FTd.prototype.getWorkspaceId_asString=function(){return un(this,1)};FTd.prototype.getType=function(){return xi(this,2)};FTd.prototype.setType=function(a){return Im(this,2,a)};var GTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(GTd,W);GTd.prototype.getTypedWorkspaceIdsList=function(){return Ci(this,FTd,1,Di())};GTd.prototype.getIterationIdsList_asString=function(){return Sm(this,2)};var HTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(HTd,W);h=HTd.prototype;h.getIterationId_asString=function(){return un(this,1)};h.getWorkspaceId=function(){return pn(this,2)};h.getWorkspaceId_asString=function(){return un(this,2)};h.getType=function(){return xi(this,3)};h.setType=function(a){return Im(this,3,a)};h.getName=function(){return vi(this,4)};h.setName=function(a){return Gm(this,4,a)};h.getHotlistId=function(){return pn(this,7)};
h.setHotlistId=function(a){return Ko(this,7,a)};h.getStatus=function(){return xi(this,8)};h.setStatus=function(a){return Im(this,8,a)};h.getTagsList=function(a){return xn(this,9,Di(a))};h.getTags=function(a){return Ow(this,9,a)};h.setVelocity=function(a){return sp(this,11,a)};h.getStartTime=function(){return X(this,Ti,12)};h.setStartTime=function(a){Ni(this,Ti,12,a)};h.getEndTime=function(){return X(this,Ti,13)};h.setEndTime=function(a){Ni(this,Ti,13,a)};
h.hasEndTime=function(){return yi(this,Ti,13)};h.getEtag=function(){return vi(this,18)};h.setEtag=function(a){return Gm(this,18,a)};var ITd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ITd,W);ITd.prototype.getEmail=function(){return vi(this,1)};ITd.prototype.setEmail=function(a){return Gm(this,1,a)};var JTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JTd,W);h=JTd.prototype;h.getWorkspaceId=function(){return pn(this,1)};h.getWorkspaceId_asString=function(){return un(this,1)};h.getName=function(){return vi(this,2)};h.setName=function(a){return Gm(this,2,a)};h.getTimeZone=function(){return X(this,qr,8)};h.setTimeZone=function(a){return Ni(this,qr,8,a)};h.hasTimeZone=function(){return yi(this,qr,8)};h.getMembersList=function(){return Ci(this,ITd,9,Di())};
h.setMembersList=function(a){return Oi(this,9,a)};h.getUpdateTime=function(){return X(this,Ti,12)};h.setUpdateTime=function(a){Ni(this,Ti,12,a)};h.hasUpdateTime=function(){return yi(this,Ti,12)};h.getBookmarkGroupId_asString=function(){return un(this,14)};h.setBookmarkGroupId=function(a){return Ko(this,14,a)};h.getTeamId=function(){return vi(this,20)};h.setTeamId=function(a){return Gm(this,20,a)};var KTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KTd,W);KTd.prototype.getWorkspacesMap=function(){return wc(this,1,JTd,Ub)};KTd.prototype.getIterationsMap=function(){return wc(this,2,HTd,Ub)};var yQb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yQb,W);h=yQb.prototype;h.getContextsMap=function(){return wc(this,1,GTd,Vb)};h.getData=function(){return X(this,KTd,2)};h.setData=function(a){return Ni(this,KTd,2,a)};h.clearData=function(){return Aw(this,2)};h.hasData=function(){return yi(this,KTd,2)};h.getFilter=function(){return X(this,l4,3)};h.setFilter=function(a){return Ni(this,l4,3,a)};var LTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LTd,W);var MTd=new qB("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",ETd,LTd,function(a){return a.serialize()},wi(LTd));var NTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(NTd,W);h=NTd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.setTeamIdsList=function(a){return Hm(this,2,a)};h.setPageSize=function(a){return an(this,3,a)};h.setPageToken=function(a){return Gm(this,4,a)};var OTd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(OTd,W);OTd.prototype.getNextPageToken=function(){return vi(this,2)};var PTd=new qB("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",NTd,OTd,function(a){return a.serialize()},wi(OTd));var QTd=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new yIc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};QTd.prototype.listWorkspaces=function(a){return $B(this.client_,this.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",a,{},PTd)};var RTd={},STd;RTd.Authorization=(STd=mqc([]))!=null?STd:"";RTd["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";RTd["X-Goog-AuthUser"]="0";var n4=function(){this.activeSession=p(qu);this.clientFactory=p(m4);this.client=this.clientFactory.create(this.getServiceEndpoint())};
n4.prototype.listWorkspaces=function(a){var b=this;return this.activeSession.isExternalSession()?ee([]):pe(function(){var c=b.client;var d=(new ETd).addIssueIds(a);var e=(new l4).addContexts(1);d=Ni(d,l4,2,e);return $B(c.client_,c.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",d,RTd||{},MTd)}).pipe(A(zQb(a)),jf(function(){return ee([])}))};
n4.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":case "PROD":return"https://taskflowpartner-pa.clients6.google.com";default:return"https://autopush-taskflowpartner-pa-googleapis.sandbox.google.com"}};n4.\u0275fac=function(a){return new (a||n4)};n4.\u0275prov=Fc({token:n4,factory:n4.\u0275fac,providedIn:"root"});var m4=function(){};m4.prototype.create=function(a){return new QTd(a)};m4.\u0275fac=function(a){return new (a||m4)};
m4.\u0275prov=Fc({token:m4,factory:m4.\u0275fac,providedIn:"root"});var TTd=["popOver"],BQb=function(a){return{$implicit:a}},o4=function(){var a=this;this.destroyRef=p(Ee);this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.overlayMinWidth=null;this.required=Og.apply(null,[!1].concat(q([])));this.valueChange=new Ui;this.closedWithAction=new Ui;this.editing=this.headerFocused=!1;this.editingValue=new fE("",{nonNullable:!0});this.editingValueSignal=ng.apply(null,[""].concat(q([])));this.isInvalid=Zg.apply(null,[function(){return a.required()&&a.editingValueSignal()===
""}].concat(q([])));this.onChange=function(){};this.onTouched=function(){}};Y(o4,c_);h=o4.prototype;h.ngOnInit=function(){var a=this;this.required()&&mwa(this.editingValue,[wj]);this.editingValue.valueChanges.pipe(Uj(this.destroyRef)).subscribe(function(b){a.editingValueSignal.set(b!=null?b:"")})};h.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};h.valueChanged=function(){return GQb(this.editingValue.value)!==this.value};
h.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value!=null?String(this.value):""),this.popOver.open())};h.stopEditing=function(a){this.editing=!1;if((this.required()?this.editingValue.valid:1)&&a===0){this.onChange(this.editingValue.value);var b=GQb(this.editingValue.value);this.value=b;this.valueChange.emit(b);this.closedWithAction.emit(a)}else this.closedWithAction.emit(1)};
h.writeValue=function(a){var b=GQb(a);if(a!=null||this.val!==b)this.val=b,this.editingValue.setValue(a!=null?a:"")};h.isActive=function(){return this.headerFocused||this.editing};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(o4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a!=null?String(a):null)}}});
o4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(o4)))(b||o4)}}();
o4.\u0275cmp=D({type:o4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&hg(TTd,7);if(a&2){var c;lg(c=mg())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:[0,"aria-labelledby","labelledById"],openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",required:[1,"required"]},outputs:{valueChange:"valueChange",closedWithAction:"closedWithAction"},standalone:!1,features:[Gg([{provide:VD,
useExisting:Yc(function(){return o4}),multi:!0},{provide:c_,useExisting:Yc(function(){return o4}),multi:!0}]),Gf],decls:11,vars:8,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["type","button","aria-label","Edit numeric field",3,"click","focus","blur","disabled"],[4,"ngIf","ngIfElse"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closedWithAction","anchor","minWidth","editorTemplate","saveDisabled"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],["type","number",3,"required","formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"button",4,0);N("click",function(){u(c);return v(b.startEditing())})("focus",function(){u(c);
return v(b.headerFocused=!0)})("blur",function(){u(c);return v(b.headerFocused=!1)});K(2,"span");E(3,CQb,2,4,"ng-container",5)(4,DQb,1,1,"ng-template",null,1,Mg);L();E(6,EQb,2,0,"svg",6);L();K(7,"onedev-pop-over-edit-panel",7,2);N("closedWithAction",function(f){u(c);return v(b.stopEditing(f))});L();E(9,FQb,1,3,"ng-template",null,3,Mg)}if(a&2){a=qg(1);var d=qg(5),e=qg(10);I("disabled",b.disabled);B(3);I("ngIf",b.valueTemplate)("ngIfElse",d);B(3);I("ngIf",!b.disabled&&b.displayEditIcon);B();I("anchor",
a)("minWidth",b.overlayMinWidth)("editorTemplate",e)("saveDisabled",b.isInvalid())}},dependencies:[Fx,Kx,yj,iE,$D,sE,d_,mE],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 MQb=function(){return[]},p4=function(){this.disabled=this.thinking=!1;this.effortChange=new XP;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
p4.prototype.ngOnChanges=function(){if(this.getFieldType()==="DROPDOWN"){var a;this.effortSpec&&(a=this.effortSpec.enumSpec)!=null&&a.options&&this.effort&&this.effort.estimate?(a=UTd(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=VTd(this)};p4.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=VTd(this);this.effortChange.emit(this.effort)};p4.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.name||"":this.effort?"Estimate "+this.effort.specId:"Estimate"};
p4.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 VTd=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"&&UTd(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},UTd=function(a){var b;if((b=a.effort)==null?0:b.estimate){var c,d,e,f;return(f=(c=a.effortSpec)==null?void 0:(d=c.enumSpec)==null?void 0:(e=d.options)==null?
void 0:e.find(function(g){var k;return g.label===((k=a.effort)==null?void 0:k.estimate)}))!=null?f:"incompatible"}};p4.\u0275fac=function(a){return new (a||p4)};
p4.\u0275cmp=D({type:p4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},standalone:!1,features:[bx],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,PQb,15,5,"onedev-edit-field"),E(1,SQb,2,1,"ng-template",null,0,Mg));a&2&&G(b.effortSpec?0:-1)},dependencies:[Dy,j_,oHd,k_,u_,o4,DK,LK],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 WTd=function(){this.staffingDialogService=p(N3);this.tooltipText=this.staffingSummary=this.staffingPlaceholderSummary=this.staffingUserSummary=""};
WTd.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 oo(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"?Zq[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 XTd=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)};WTd.\u0275fac=function(a){return new (a||WTd)};
WTd.\u0275cmp=D({type:WTd,selectors:[["b-staffing-row"]],inputs:{staffing:"staffing",issueId:"issueId",isAllowedToEdit:"isAllowedToEdit"},standalone:!1,features:[bx],decls:25,vars:6,consts:[["fieldContent",""],["infoHovercard","onedevHovercard"],[1,"bv2-issue-metadata-field"],["role","button","tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-issue-metadata-field-staffing","keep-focus-ring",3,"keydown.enter","keyup.space","keydown.space"],[1,"bv2-editable-title","bv2-editable-title-staffing",
"flex-kids-x",3,"onedevHovercardTrigger"],[1,"bv2-editable-value",3,"click","matTooltip"],[1,"staffing-summaries"],[1,"issue-metadata-field-edit-icon"],["svgIcon","edit-outline"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["href","http://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank"],[1,"user-summary"],[1,"placeholder-summary"]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",2)(2,"div",3);N("keydown.enter",function(){u(c);
return v(XTd(b))})("keyup.space",function(){u(c);return v(XTd(b))})("keydown.space",function(d){u(c);return v(d.preventDefault())});K(3,"div",4)(4,"label");Q(5," Staffing ");L()();K(6,"div",5,0);N("click",function(){u(c);return v(XTd(b))});K(8,"div",6);F(9,TQb,1,0)(10,UQb,4,2);L();K(11,"div",7);M(12,"mat-icon",8);L()()()();K(13,"onedev-hovercard",null,1)(15,"div",9)(16,"div",10)(17,"div");Q(18," Use the Staffing field to represent planned contributors on this issue. ");L();M(19,"br");K(20,"div");
Q(21," Allocations can be specified by user along with their involvement level on this issue (high, medium, low, or zero). Placeholder allocations can be specified by job role if the user who will be contributing is not yet known. ");L();M(22,"br");K(23,"a",11);Q(24," Learn more ");L()()()()()}a&2&&(a=qg(14),B(2),Kf("aria-label","Staffing: "+b.staffingSummary)("aria-disabled",!1),B(),I("onedevHovercardTrigger",a),B(3),I("matTooltip",Dg(b.tooltipText)),B(3),G(b.staffingUserSummary||b.staffingPlaceholderSummary?
10:9))},dependencies:[Dy,oK,iA,DK,LK],styles:[".staffing-summaries[_ngcontent-%COMP%]{flex-direction:column}/*# sourceMappingURL=staffing_row.css.map */"],changeDetection:0});var q4=function(){Z.apply(this,arguments);var a=this;this.userPreferencesManager=p(dR);this.sloStatusHelpersService=p(wS);this.paths=p(mW);this.sloFridge=p(GQ);this.userToDisplayString=um;this.onSloStartTimeChange=new XP;this.onSloEndTimeChange=new XP;this.showInternalOnlyFieldBadge=!1;this.providedSloId$=new wf(1);this.slo$=this.providedSloId$.pipe(Af(function(b){return a.sloFridge.watch(b)}));this.hasClosureSlo=this.isSloEndEditTimePickerOpen=this.isSloStartEditTimePickerOpen=this.hasSloEndTime=
this.hasSloStartTime=this.isAccordionExpanded=!1};Y(q4,Z);q4.\u0275dir=Z.\u0275dir;q4.prototype.ngOnInit=function(){var a=this;YTd(this);this.userPreferencesManager.layoutPreferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.isAccordionExpanded=!!b.expandIssueSlo})};q4.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);YTd(this)};
var YTd=function(a){a.hasSlo=!!a.sloStatus&&Lnd(a.sloStatus);a.hasClosureSlo=a.hasSlo&&Mnd(a.sloStatus,"CLOSURE");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=xS(Pm(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=ps.editSlo.makeHref(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=ps.editComponent.makeHref(a.componentId):
a.componentSloLink=void 0},ZTd=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;Hkd(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(Bf(a.destroyed$)).subscribe();er("issueSlo","toggle",a.isAccordionExpanded?"open":"close")};q4.prototype.updateSloStartTime=function(a){this.onSloStartTimeChange.next(a)};q4.prototype.updateSloEndTime=function(a){this.onSloEndTimeChange.next(a)};q4.prototype.trackOpenSlo=function(){er("editSlo","open","fromIssueSloBox")};
q4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(q4)))(b||q4)}}();
q4.\u0275cmp=D({type:q4,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:[Gf,bx],decls:31,vars:23,consts:[["canonicalHovercard",
"onedevHovercard"],["trigger","cdkOverlayOrigin"],[1,"slo-container"],[1,"issue-slo-box-title",3,"click"],["svgIcon","shield_person_24px","matTooltip","Visible to internal only","aria-label","Visible to internal only",1,"icon-xs","internal-only-badge"],[1,"slo-body"],[1,"slo-status"],[3,"hidden"],[3,"sloStatus","sloStartTime","sloEndTime","includeSloMetric","includeObjective"],[3,"sloStatus","sloStartTime","sloEndTime","includeNoSlo"],["type","button","mat-icon-button","","aria-label","Toggle the detailed SLO status",
"matTooltip","Toggle the detailed SLO status",1,"expand-button","small",3,"click"],["svgIcon","arrow-up",1,"icon-s"],["svgIcon","arrow-down",1,"icon-s"],[1,"slo-actions",3,"hidden"],["id","start-time-row",1,"slo-action"],["id","end-time-row",1,"slo-action"],["id","escalation-owner-row",1,"slo-action"],["id","escalation-owner-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["href","https://goto.google.com/b-slo-attribution","target","_blank"],[1,"slo-edit"],[3,"user","email","enableSmallChip"],
[1,"slo-action"],["href","http://go/buganizer/guides/defer-slos","target","_blank","aria-label","View help page on deferring slos","matTooltip","View help page on deferring slos",1,"clear-link"],["role","button","tabindex","0","aria-label","Modify the slo start date value","matTooltip","Modify the slo start date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"keydown.enter","keydown.space","click"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["mode","datetime",
3,"timestamp"],[3,"closePicker","sloEditCommit","sloStatus","sloEditTime","noneButtonEnabled"],["role","button","tabindex","0","aria-label","Modify the slo end date value","matTooltip","Modify the slo end date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space"],["aria-label","Navigate to the applied slo page","matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition"],["aria-label","Navigate to the applied slo page",
"matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition",3,"click"],["aria-label","Open page to select an slo","matTooltip","Open page to select an slo",1,"bv2-metadata-link","bv2-metadata-tool","slo-definition",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"span",3);N("click",function(){u(c);return v(ZTd(b))});K(2,"label");Q(3,"SLO Status");L();F(4,VQb,1,0,"mat-icon",4);L();K(5,"div",5)(6,"div",6)(7,"div",7);M(8,"b-aggregated-slo-status-indicator",
8);L();K(9,"div",7);M(10,"b-slo-status-summary",9);L();K(11,"button",10);N("click",function(){u(c);return v(ZTd(b))});F(12,WQb,1,0,"mat-icon",11)(13,XQb,1,0,"mat-icon",12);L()();K(14,"div",13);F(15,aRb,9,3,"div",14);F(16,fRb,10,5,"div",15);K(17,"div",16)(18,"span",17);Q(19," Owner: ");L();K(20,"onedev-hovercard",null,0)(22,"div",18);Q(23," Escalation owner for SLO accounting and other purposes. ");K(24,"a",19);Q(25,"Learn more.");L()()();K(26,"div",20);F(27,gRb,1,3,"b-user-membership-chip",21)(28,
hRb,1,0);L()();F(29,jRb,4,3,"div",22);F(30,kRb,3,1,"div",22);L()()()}a&2&&(a=qg(21),wg("internal-only",b.showInternalOnlyFieldBadge),B(4),G(b.showInternalOnlyFieldBadge?4:-1),B(3),I("hidden",b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),B(),I("hidden",!b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),B(),Kf("aria-expanded",
b.isAccordionExpanded),B(),G(b.isAccordionExpanded?12:13),B(2),I("hidden",!b.isAccordionExpanded),B(),G(b.isEditable?15:-1),B(),G(b.isEditable?16:-1),B(2),I("onedevHovercardTrigger",a),B(9),G(b.escalationOwner?27:28),B(2),G(b.editSloLink?29:-1),B(),G(!b.editSloLink&&b.componentSloLink?30:-1))},dependencies:[Dy,oK,iA,gB,eB,DK,LK,d4,sV,W3,u3,Pz,Oz,hV,Lx],styles:["[_nghost-%COMP%]{align-items:baseline}[_nghost-%COMP%]:focus{outline:0}.slo-container[_ngcontent-%COMP%]{padding-bottom:8px}.internal-only[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:4px;margin:0 5px;background-color:#f4f5f6;background-color:var(--tonal-fill-grey)}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]{margin:0 14px}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{display:inline-block;color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}.internal-only[_ngcontent-%COMP%]   .slo-body[_ngcontent-%COMP%]{margin:5 14px}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #d2e3fc;box-shadow:0 0 0 1px var(--primary-c100);border-radius:4px}.internal-only[_ngcontent-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary);border-radius:4px}[_nghost-%COMP%]:focus   .issue-slo-box-title[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .issue-slo-box-title[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.internal-only[_ngcontent-%COMP%]:focus   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}.issue-slo-box-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-weight:500;margin:0 16px;flex:0 0 23%;min-width:80px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.slo-body[_ngcontent-%COMP%]{display:inline-block;margin:0 14px;padding:8px 0 8px 4px;width:-webkit-fill-available}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-action[_ngcontent-%COMP%]{vertical-align:baseline;min-height:24px}.slo-action[_ngcontent-%COMP%]   .slo-edit[_ngcontent-%COMP%]{display:inline-block}.slo-action[_ngcontent-%COMP%]   .slo-definition[_ngcontent-%COMP%]{min-height:24px}.clear-link[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.expand-button[_ngcontent-%COMP%]{margin-left:auto}.expand-button[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:block}.onedev-hovercard-content[_ngcontent-%COMP%]{padding:16px}.d-cozy[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:4px 14px 4px 19px}.d-compact[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:2px 14px 2px 19px}"]});var $Td={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var r4=function(){Z.call(this);var a=this;this.data=p(PA);this.dialogRef=p(NA);this.teamsService=p(KQ);this.componentActions=p(WV);this.userPreferencesManager=p(dR);this.snackBar=p(nB);this.analytics=p(aQ);this.errorHandler=p(kO);this.componentFridge=p(MO);this.warningType=this.data.warningType;this.componentId=this.data.componentId;this.parentComponentId=this.data.parentComponentId;this.teamSuggestionIds=this.data.teamSuggestionIds;this.header="";this.suggestedTeams$=Vjd(this.teamsService,this.teamSuggestionIds).pipe(A(function(b){for(var c=
[],d=m(a.teamSuggestionIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=b.get(e);f&&c.push(new aUd(e,f.collapsedPathNames))}return c}),zf([]));this.myTeams$=MQ(this.teamsService,"").pipe(A(function(b){return b.map(function(c){return new aUd(c.teamId,c.pathNames)})}));this.teamOptions=[];this.selectedTeam=new aUd(this.teamSuggestionIds[0]||"0",[]);this.teamAction="CHANGE";this.componentSetting=ps.editComponent.makeHref(this.componentId);this.WarningType=$Td;le([this.suggestedTeams$,this.myTeams$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return[].concat(q(b),q(c))}),A(v_a(function(b){return b.teamId})),Bf(this.destroyed$)).subscribe(function(b){a.teamOptions=b;a.selectedTeam=b[0]})};Y(r4,Z);r4.\u0275dir=Z.\u0275dir;r4.prototype.ngOnInit=function(){this.warningType==="MISSING"?this.header="Add team to the component":this.warningType==="DELETED"&&(this.header="Change team mapping for this component")};
r4.prototype.confirm=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1){if(a.teamAction==="CHANGE")return a.parentComponentId?z(g,a.componentActions.get(a.parentComponentId),6):(bUd(a,"0",a.selectedTeam.teamId),g.jumpTo(0));b=pm;return z(g,ie(a.userPreferencesManager.teamWarningPreferences$),4)}if(g.nextAddress!=6)return c=b(g.yieldResult),d=new Date,c.componentTeamWarnings.push({componentId:a.componentId,dismissMillis:d.getTime()}),Nkd(a.userPreferencesManager,c).pipe(Bf(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("teamWarning",
"dismiss","componentId",Number(a.componentId));var k;(k=a.dialogRef)==null||k.close()},function(){}),g.jumpTo(0);e=g.yieldResult;bUd(a,((f=e.team)==null?void 0:f.id)||"0",a.selectedTeam.teamId);ce(g)})};
var bUd=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)})};r4.prototype.selectOption=function(a){this.selectedTeam=a};
r4.prototype.trackClick=function(a){this.analytics.trackEvent("teamWarning","click",a)};r4.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};r4.\u0275fac=function(a){return new (a||r4)};
r4.\u0275cmp=D({type:r4,selectors:[["b-team-warning-dialog"]],standalone:!1,features:[Gf],decls:11,vars:3,consts:[["suggestedTeamOption",""],["optionTemplate",""],["mat-dialog-title",""],["mat-dialog-content",""],["type","button","mat-button","","mat-dialog-close","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click"],["target","_blank",3,"click","href"],["aria-label","Quick team actions",3,"ngModelChange","ngModel"],["value","NONE"],["value","CHANGE"],[4,"ngTemplateOutlet"],
["target","_blank",3,"href"],[1,"suggested-teams"],[3,"valueChange","disabled","value","options","includeEmptyOption","optionTemplate"],["mat-icon-button","","target","_blank","matTooltip","Go to Moma Team page.",1,"small",3,"click"],["svgIcon","pop-out",1,"icon-s"],[1,"suggested-team-option"]],template:function(a,b){if(a&1){var c=t();K(0,"h1",2);Q(1);L();F(2,nRb,13,3,"div",3);F(3,pRb,6,2,"div",3);E(4,uRb,1,1,"ng-template",null,0,Mg);K(6,"mat-dialog-actions")(7,"button",4);Q(8," Cancel ");L();K(9,
"button",5);N("click",function(){u(c);return v(b.confirm())});Q(10," Confirm ");L()()}a&2&&(B(),yg(b.header),B(),G(b.warningType===b.WarningType.MISSING?2:-1),B(),G(b.warningType===b.WarningType.DELETED?3:-1))},dependencies:[Kx,Dy,$D,gE,gB,cB,eB,RA,TA,VA,UA,qT,rT,oK,iA,u_],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 aUd=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var s4=function(){Z.apply(this,arguments);this.matDialogService=p(QA);this.analytics=p(aQ);this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new XP};Y(s4,Z);s4.\u0275dir=Z.\u0275dir;s4.prototype.ngOnInit=function(){};s4.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")};
s4.prototype.openDialog=function(){var a=this;this.analytics.trackEvent("teamWarning","open");OA(this.matDialogService.open(r4,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.teamId)})}})).pipe(Bf(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};s4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(s4)))(b||s4)}}();
s4.\u0275cmp=D({type:s4,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},standalone:!1,features:[Gf,bx],decls:4,vars:2,consts:[["messageType","caution","format","app"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),Q(2),L(),F(3,vRb,3,1,"b-callout-actions"),L());
a&2&&(B(2),S(" ",b.warningMessage," "),B(),G(b.messageOnly?-1:3))},dependencies:[MU,AU,BU],encapsulation:2});var BRb=function(){return[]},yRb=function(a){return[a]},XRb=function(a){return{$implicit:a}},GSb=function(a){return{customFieldId:a}},t4=function(){var a=this;this.activeSession=p(qu);this.editIssueService=p(DS);this.issueService=p(NP);this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.issueDetailsBrain=p(UQ);this.constants=p(bS);this.refreshMonitor=p(QP);this.userPreferencesManager=p(dR);this.documentationLinks=p(YR);this.workspaceService=p(n4);this.changelistApi=p(AO);this.issueMarkAsDuplicateDialogService=
p(zY);this.analytics=p(aQ);this.issueLimits=p(DY);this.jspbPrincipalTypes=p(zQ);this.issueId$=new wf(1);this.distinctIssueId$=this.issueId$.pipe(pf());this.issue$=this.distinctIssueId$.pipe(Af(function(b){return a.editIssueService.editableIssue$(b)}));this.enableTriageView=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.defaultAssigneeQuickActionEnabled=
this.showSloStatus=this.sessionIsInternal;this.HOTKEYS=Vr;this.trackCustomField=function(b,c){return"{"+c.componentId+", "+c.customFieldId+"}"};this.FieldType=qV;this.ListFieldType=xud;this.IssueFieldName=Hcd;this.codeChangesValidator=b2a;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isCurrentUserCollaborator$=this.issuePermissionService.isCurrentUserCollaborator$;
this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(A(function(b){return!a.activeSession.isExternalSession()&&!b}));this.teamSuggestions$=this.issueDetailsBrain.teamSuggestions$;this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.canonicalIssueId$=
this.issueDetailsBrain.canonicalIssueId$;this.sloId$=this.issueDetailsBrain.sloId$;this.sloStatus$=this.issueDetailsBrain.sloStatus$;this.createdTimeMicros$=this.issueDetailsBrain.createdTimeMicros$;this.teamId$=this.issueDetailsBrain.teamId$;this.teamWarningType$=this.issueDetailsBrain.team$.pipe(A(lRb));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(Af(function(b){return Wgd(a.issueService,b)}),A(function(b){var c,d;return(d=(c=b.triage)==null?void 0:c.phase)!=null?d:"UNSPECIFIED"}));this.triagePhaseUrl$=le([this.teamId$,this.triagePhase$]).pipe(A(function(b){var c=m(b);b=c.next().value;(c=c.next().value)&&c!=="UNSPECIFIED"||(c="NEW");return ps.viewTriage.makeHref(b!=null?b:0,0,Dt[c])}));this.issueFields$=this.distinctIssueId$.pipe(A(function(b){return a.editIssueService.issueFields(b)}),xf({refCount:!0,bufferSize:1}));
this.isForgottenFourPrimary$=this.issueFields$.pipe(Af(function(b){return b.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(Af(function(b){return b.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(Af(function(b){return b.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(Af(function(b){return b.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(Af(function(b){return b.isSeverityPrimary$}));this.isSloStatusPrimary$=
this.issueFields$.pipe(Af(function(b){return b.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(Af(function(b){return b.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(Af(function(b){return b.visibleCustomFields$}));this.visibleGlobalCustomFields$=this.issueFields$.pipe(Af(function(b){return b.visibleGlobalCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(A(function(b){return a.editIssueService.issueQuickActions(b)}),xf({refCount:!0,
bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(Af(function(b){return b.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(Af(function(b){return b.issueStatusQuickAction$}));this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b,hotkey:j$a(b)}});this.severityChoices=this.constants.severities.map(function(b){return{value:b,
displayText:b}});this.typeChoices=this.constants.editIssueTypeChoices;this.phaseChoices=Object.values(vcd).map(function(b){return{value:b,displayText:Zs.get(b)}});this.teamHovercardInputs$=le([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return{teamId:c?String(c):"0",componentId:b?b:"0"}}));this.isTeamWarningDismissed$=le([this.issue$,this.userPreferencesManager.preferences$]).pipe(A(function(b){b=m(b);var c=b.next().value;var d,
e;return(d=b.next().value.teamWarningPreferences)==null?void 0:(e=d.componentTeamWarnings)==null?void 0:e.some(function(f){return f.componentId===c.componentId})}));this.isPersonalComponent$=this.component$.pipe(A(function(b){var c,d;return b==null?void 0:(c=b.componentPathInfo)==null?void 0:(d=c.componentPathId)==null?void 0:d.includes("19299")}));this.shouldDisplayTeamSuggestions$=le([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$,this.isPersonalComponent$]).pipe(A(function(b){var c=
m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&!d&&!c&&(e==="MISSING"||e==="DELETED")}));this.showTriagePhaseRow$=this.teamId$.pipe(A(function(b){return a.enableTriageView&&b!=="0"}));this.statusChoices$=this.canonicalIssueId$.pipe(A(function(b){return[].concat(q(Rcd.filter(function(c){return c.value!=="DUPLICATE"})),[{value:"DUPLICATE",displayText:b?"Duplicate of "+b:"Duplicate"}])}),A(function(b){return b.map(function(c){return Object.assign({},c,{hotkey:k$a(c.value)})})}));
this.workspaces$=Zgd(this.refreshMonitor,this.distinctIssueId$).pipe(Af(function(b){return a.workspaceService.listWorkspaces(b)}),xf({refCount:!0,bufferSize:1}));this.pendingChangelists$=Zgd(this.refreshMonitor,this.distinctIssueId$).pipe(Af(function(b){return a.changelistApi.getPendingChangelistsForIssue(b)}),A(function(b){return b.changelistNumbers.map(String)}),A(function(b){return{cls:b,hasError:!1}}),jf(function(){return ee({cls:[],hasError:!0})}),xf({refCount:!0,bufferSize:1}));this.pendingCodeChanges$=
this.issue$.pipe(Af(function(b){return a.activeSession.isExternalSession()?ee({issue:b,changelists:{cls:[],hasError:!1}}):a.pendingChangelists$.pipe(A(function(c){return{issue:b,changelists:c}}))}),A(function(b){var c=b.issue;b=b.changelists;c=Amd(c);return{changes:[].concat(q(b.cls),q(c)),hasError:b.hasError}}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new HK,{position:[N8c]});this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new HK,{position:[{originX:"start",originY:"center",overlayX:"end",
overlayY:"center",offsetX:-30}]});this.issueIsOnInternalComponent$=this.component$.pipe(A(function(b){var c;return(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}));this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(/[,\s]+/).map(function(g){return g.trim()}).filter(Boolean);return z(f,xjd(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(g){var k;
return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})};this.emailsValidator=function(b){var c,d,e,f;return y(function(g){if(b==null)return g.return("This field is required");c=b.split(/[,\s]+/).map(function(k){return k.trim()}).filter(Boolean);d=m(c);for(e=d.next();!e.done;e=d.next()){f=e.value;if(f.match(dod))return g.return(f+" does not appear to be an email: zero-width characters detected");if(!ZTa.test(f)&&!hdd.test(f))return g.return(f+
" does not appear to be an email")}return g.return("")})};this.reconcileView={assignee:function(b){var c,d;b.value=(d=(c=yr(a.issue$))==null?void 0:c.assignee)!=null?d:""},reporter:function(b){var c,d;b.value=(d=(c=yr(a.issue$))==null?void 0:c.reporter)!=null?d:""},verifier:function(b){var c,d;b.value=(d=(c=yr(a.issue$))==null?void 0:c.verifier)!=null?d:""},ccs:function(b){var c,d;b.values=(d=(c=yr(a.issue$))==null?void 0:c.cc)!=null?d:[]},collaborators:function(b){var c,d;b.values=(d=(c=yr(a.issue$))==
null?void 0:c.collaborators)!=null?d:[]},issueType:function(b){var c,d;b.value=(d=(c=yr(a.issue$))==null?void 0:c.type)!=null?d:null}}};t4.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var RSb=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!VQ(a.issuePermissionService,e)}):[].concat(q(c.cc),[a.activeSession.getUserEmail()]);return ood(a.editIssueService,a.issueId,d)};
t4.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!VQ(a.issuePermissionService,e)}):[].concat(q(c.collaborators),[this.activeSession.getUserEmail()]);return pod(this.editIssueService,this.issueId,d)};
t4.prototype.toggleAccessLimits=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.issueLimits.isOpen()?c.return():z(c,ie(a.issueDetailsBrain.componentId$),2);b=c.yieldResult;if(!b)return c.return();a.issueLimits.open({componentId:b,issueId:a.issueId});ce(c)})};t4.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};
var MSb=function(a,b){return NSb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.assignee(b.editField)})},ISb=function(a,b){return y(function(c){return c.return(JSb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.reporter(b.editField)}))})},OSb=function(a,b){return y(function(c){return c.return(PSb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.verifier(b.editField)}))})},SSb=function(a,b){return y(function(c){return c.return(ood(a.editIssueService,
a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.ccs(b.editField)}))})},QSb=function(a,b){return y(function(c){return c.return(pod(a.editIssueService,a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.collaborators(b.editField)}))})},KSb=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ie(a.trackerId$),2);d=e.yieldResult;return e.return(iod(a.editIssueService,a.issueId,c,d).finally(function(){a.reconcileView.issueType(b)}))})},Tt=function(a,
b){a.analytics.trackEvent("editIssue","quickAction (sidebar)",b==null?void 0:b.displayText);return mod(a.editIssueService,a.issueId,b)};
t4.prototype.onStatusChanged=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){a:switch(a){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "INACTIVE":case "DUPLICATE":var e=a;break a;default:e=null}return(c=e)?c!=="DUPLICATE"?d.jumpTo(2):z(d,qCd(b.issueMarkAsDuplicateDialogService,b.issueId),3):d.return()}if(d.nextAddress!=2)return d.return();zhd(b.analytics,c);return d.return(lod(b.editIssueService,
b.issueId,c))})};t4.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(A(function(c){return b.editIssueService.savingState(c)}),Af(function(c){return bod(c,a)}))};t4.prototype.getAccessLimitLevelDisplay=function(a){return Elb(a)};t4.\u0275fac=function(a){return new (a||t4)};
t4.\u0275cmp=D({type:t4,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},standalone:!1,features:[bx],decls:2,vars:3,consts:[["typeField",""],["priorityField",""],["statusField",""],["canonicalHovercard","onedevHovercard"],["ialCard","onedevHovercard"],["assigneeField",""],["sloField",""],["severityField",""],["codeChangesFields",""],["foundInField",""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],["phaseField",
""],["canonicalCardBody",""],["implicitAccessHelpBubble",""],[3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"valueChange","name","title","type","value","choices","readonly","disabled"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"onHotkey","valueChange","name","title","type","tooltip","value","choices","hotkey","readonly","disabled","showHotkeyHint"],[1,"status-field-row"],[3,"onHotkey","valueChange","name","title","type","value","choices","showHotkeyHint","hotkey",
"readonly","disabled","onedevHovercardActive","onedevHovercardTrigger"],[1,"phase-field-row"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","disabled"],[1,"bv2-issue-metadata-field"],["tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-readonly",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-editable-title","access-level-title"],[1,"bv2-editable-value","access-level-info"],[1,"access-level-current-val"],["tabindex",
"0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","target","_blank","aria-label","Learn more about issue access limits",1,"primary","bv2-metadata-link","keep-focus-ring",3,"href"],[1,"flex-kids-y"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"flex-1",3,"onHotkey","valueChange","emailChange",
"name","title","hotkey","value","user","isSaving"],[1,"flex-1",3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"userInclusionToggle","valueChange","toggleAccessLimits","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[3,
"userInclusionToggle","valueChange","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","inputValidator","iconName"],[3,"staffing","issueId","isAllowedToEdit"],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],
[4,"ngTemplateOutlet"],[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values","showInternalOnlyFieldBadge"],[1,"issue-metadata-field-short"],[3,"updateTeam","warningType","componentId","parentComponentId","teamSuggestions"],[1,"bv2-metadata-quick-action"],[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["tooltip","Go to triage view",3,"name","title","type","value","choices","showHotkeyHint",
"disabled"],["matTooltip","Go to triage view",1,"bv2-metadata-link",3,"href"],[3,"onedevIsHovercardReady","issueId"],[3,"effortChange","effort","effortSpec","disabled"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["target","_blank",3,"href"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"onHotkey","click","keydown.enter","keydown.space","hotkey",
"matTooltip"],[1,"bv2-metadata-link",3,"disabled"],[1,"bv2-metadata-link"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"onSloStartTimeChange","onSloEndTimeChange","sloStatus","sloStartTime","sloEndTime","sloId","componentId","isEditable","issueCreationTimestamp","showInternalOnlyFieldBadge","escalationOwner"],[1,"flex-1",3,"valueChange","name","title","type","tooltip","value","choices","readonly","disabled"],[3,"valuesChange",
"readonly","defaultLineCount","title","inputValidator","type","values","listFieldDisabled"],[3,"valuesChange","readonly","defaultLineCount","title","type","values","tooltip","listFieldDisabled"],[3,"valueChange","name","title","type","value","tooltip","readonly","disabled"],[3,"save","issue","field","readonly","disabled"]],template:function(a,b){a&1&&(F(0,TSb,113,172),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issue$))?0:-1,c)}},dependencies:[FV,Kx,Dy,w_,pV,p4,WTd,mU,DK,EK,LK,FK,PW,q4,PV,oK,iA,qU,s4,
RV,eL,l_,A0,Lx],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 cUd=["descriptionArea"],dUd=["container"],u4=function(){Z.call(this);var a=this;this.cdr=p(YP,{self:!0});this.issueFullFridge=p(cQ);this.eventsForIssueFridge=p(IP);this.editStatusUpdateDialogService=p(f4);this.statusUpdateFactory=p(h4);this.statusUpdateService=p(e4);this.issueCommentDialogsService=p(yY);this.contextSensitiveRegistry=p(TQ);this.issuePermissionService=p(WQ);this.clipboard=p(kR);this.snackBar=p(nB);this.analytics=p(aQ);this.activeSession=p(qu);this.playbookService=p($Q);this.appSearchState=
p(oT);this.recommendationTriggerService=p(ZQ);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.closeSidebar=new XP;this.navigateToNextIssue=new XP;this.navigateToPreviousIssue=new XP;this.issueId$=new wf(1);this.dedupeRecommendation$=this.issueId$.pipe(Af(function(b){return kkd(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.playbookRecommendation$=le([this.issueId$,this.appSearchState.queryState$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=
c.next().value;return c.query?Akd(a.playbookService,b,c.query):ee(void 0)}));this.issue$=this.issueId$.pipe(Bf(this.destroyed$),Af(function(b){return a.issueFullFridge.watch(b)}),xf({bufferSize:1,refCount:!0}));this.componentId$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.events$=this.issueId$.pipe(Bf(this.destroyed$),Af(function(b){return a.eventsForIssueFridge.watch(b)}),
A(function(b){return(b==null?void 0:b.events)||[]}));this.firstEvent$=this.events$.pipe(A(function(b){return b.length>0?b[0]:void 0}));this.statusUpdate$=this.issue$.pipe(A(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateNote$=this.statusUpdate$.pipe(we(Qm),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.userCanEditStatusUpdate$=this.issuePermissionService.hasAclToEdit$;this.hasStatusUpdate$=this.statusUpdate$.pipe(A(function(b){return!!b&&
b.updateText!==""}));this.firstNote$=this.events$.pipe(Bf(this.destroyed$),A(function(b){if(b&&b.length>0&&b[0].commentNumber&&b[0].commentNumber>-1)return{commentNumber:b[0].commentNumber,unlinkifiedComment:b[0].unlinkifiedComment||"",formattedComment:b[0].formattedComment}}),xf({bufferSize:1,refCount:!0}));this.userCanEditDescription$=this.firstEvent$.pipe(Af(function(b){return b?a.issuePermissionService.canEditComment$(b):ee(!1)}));this.hasDescription$=this.events$.pipe(Bf(this.destroyed$),A(function(b){return b&&
b.length>0&&tUa(b[0])}));this.isFieldsExpanded=this.isDescriptionExpanded=this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=Um;this.descriptionHasMore=!0;this.containerScrolled=this.showFullDescription=!1;this.destroyed$.subscribe(function(){YSb(a)});this.issueId$.pipe(Bf(this.destroyed$)).subscribe(function(){YSb(a);a.showFullDescription=!1});this.firstNote$.pipe(Bf(this.destroyed$)).subscribe(function(){eUd(a)})};Y(u4,Z);
u4.\u0275dir=Z.\u0275dir;u4.prototype.ngOnInit=function(){this.isPlaybookEnabled&&(this.isStatusUpdateExpanded=!1)};u4.prototype.ngAfterViewInit=function(){var a=this;this.issueId$.pipe(Bf(this.destroyed$)).subscribe(function(){a.container.nativeElement.scrollTop=0})};var eUd=function(a){setTimeout(function(){var b;a.descriptionHasMore=((b=a.descriptionArea)==null?void 0:b.nativeElement.scrollHeight)>130;a.cdr.detectChanges()})};
u4.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("IssueId copied","",{duration:2E3});this.analytics.trackEvent("issueSidebar","copyIssueId")};
u4.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return z(r,ie(a.issueId$),2);case 2:return b=r.yieldResult,z(r,ie(a.componentId$),3);case 3:return c=r.yieldResult,z(r,ie(a.statusUpdate$),4);case 4:if((d=r.yieldResult)!=null){e=d;r.jumpTo(5);break}return z(r,ATd(a.statusUpdateFactory,b),6);case 6:e=r.yieldResult;case 5:return f=e,z(r,ie(a.accessLevel$),7);case 7:return k=(g=r.yieldResult)&&g==="INTERNAL"?"INTERNAL":"EXTERNAL",z(r,
a.editStatusUpdateDialogService.show(f,k,c),8);case 8:l=r.yieldResult;if(!l)return r.return();a.statusUpdateService.update(l).subscribe(function(w){a.analytics.trackEvent("issueSidebar","edit","statusUpdate",w.updateText.length===0);a.issueFullFridge.manualUpdate(b,function(x){x.statusUpdate=w});a.issueFullFridge.poke(b)});ce(r)}})};
var nTb=function(a){var b,c;return y(function(d){switch(d.nextAddress){case 1:return z(d,ie(a.issueId$),2);case 2:return b=d.yieldResult,z(d,ie(a.firstEvent$),3);case 3:return(c=d.yieldResult)?z(d,Qtb(a.issueCommentDialogsService,b,c),4):d.return();case 4:return z(d,a.eventsForIssueFridge.poke(b),5);case 5:a.analytics.trackEvent("issueSidebar","edit","description",tUa(c)),ce(d)}})},WSb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.issue$),2);b=c.yieldResult;if(!b)return c.return();
a.draftTitle=b.snapshot[0].title;a.editTitleMode=!0;ce(c)})},YSb=function(a){a.isSavingTitle||(a.draftTitle="",a.editTitleMode=!1)};u4.prototype.saveTitle=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.issue$),2);b=c.yieldResult;if(!b||b.snapshot[0].title===a.draftTitle)return YSb(a),c.return();a.isSavingTitle=!0;Dhd(a.issueFullFridge,b.issueId,a.draftTitle).subscribe(function(){a.analytics.trackEvent("issueSidebar","edit","title");a.isSavingTitle=!1;YSb(a)});ce(c)})};
u4.prototype.upvoted=function(a){this.analytics.trackEvent("issueSidebar","toggle","vote",a)};da.Object.defineProperties(u4.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,eUd(this))}}});
u4.\u0275fac=function(a){return new (a||u4)};
u4.\u0275cmp=D({type:u4,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&(hg(cUd,5),hg(dUd,5));if(a&2){var c;lg(c=mg())&&(b.content=c.first);lg(c=mg())&&(b.container=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},standalone:!1,features:[Gg([YP]),Gf],decls:24,vars:14,consts:[["container",""],["spinner",""],["insightsCard",""],["descriptionArea",""],[1,"container","flex-kids-y",
3,"scroll"],[1,"top-actions","flex-kids-x","space-between","border-bottom"],[1,"flex-kids-x","align-items-center","margin-s-left","gap-s"],[1,"action-buttons"],[3,"issueId","upvoted","voteCount"],["type","button","mat-icon-button","","matTooltip","Previous issue","matTooltipPosition","above","aria-label","Previous issue",3,"click"],["svgIcon","chevron-left"],["type","button","mat-icon-button","","matTooltip","Next issue","matTooltipPosition","above","aria-label","Next issue",3,"click"],["svgIcon",
"chevron-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","matTooltipPosition","above","aria-label","Close sidebar",3,"click"],["svgIcon","close"],[1,"title"],[1,"details","flex-kids-y","padded-s-sides"],[1,"card-container","flex-kids-y"],[1,"heading-xs","muted","hover-link",3,"click","href"],[1,"a11y-only"],["type","button","mat-icon-button","","aria-label","copy issue id",1,"small","fade-icon-button","copy-issue-id",3,"click"],["svgIcon","copy",1,"icon-xs"],[3,"onVote",
"issueId","upvoted","voteCount"],[1,"flex"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"fade-icon-button","small",3,"click"],["svgIcon","edit-outline",1,"icon-s"],[1,"full-width"],["matInput","","type","text","aria-label","Edit issue title","rows","3",3,"ngModelChange","cdkTextareaAutosize","cdkAutosizeMinRows","ngModel","bFocus"],[1,"flex-kids-x","gap","justify-flex-end","padded-bottom","border-bottom"],["type","button","mat-stroked-button",
"",1,"small"],["type","button","mat-flat-button","","color","primary",1,"small",3,"click","disabled"],["type","button","mat-stroked-button","",1,"small",3,"click"],[4,"ngTemplateOutlet"],[1,"margin-s-bottom",3,"initiallyCollapsed"],[1,"card","status-update"],[1,"card-header"],[1,"card-header-inner-left"],["svgIcon","group","color","primary",1,"icon-s"],[1,"card-header-inner-right"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition",
"above",1,"small","edit-button"],["type","button","mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue","matTooltipPosition","above",1,"small","expand-button"],[1,"card","description"],[1,"card","ai-suggestion"],[1,"bv2-issue-metadata","card"],["svgIcon","release-notes-default","color","primary",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Toggle the fields view for this issue","matTooltip","Toggle the fields view for this issue",
"matTooltipPosition","above",1,"small",3,"click"],["svgIcon","arrow-down",1,"icon-s"],["svgIcon","arrow-up",1,"icon-s"],[1,"fields-area","margin-top","flex-kids-y"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"small","edit-button",3,"click"],["type","button","mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue",
"matTooltipPosition","above",1,"small","expand-button",3,"click"],[1,"status-update-area"],[3,"issueId","note","issueAccessLevel","formattingMode"],["type","button","mat-icon-button","","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",1,"small","edit-button"],["type","button","mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"small",
"expand-button"],[1,"description-area"],["type","button","mat-icon-button","","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",1,"small","edit-button",3,"click"],["type","button","mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"small","expand-button",3,"click"],[1,"description-note"],[1,"description-show-more","margin-s-top"],[3,
"click"],["svgIcon","devai","color","primary",1,"icon-s"],[1,"recommendation"],[3,"recommendation","showTitle"],[3,"issueId"],[1,"text-center"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});K(2,"header")(3,"div",5)(4,"div",6);F(5,USb,6,3);T(6,"async");L();K(7,"div",7);F(8,VSb,1,3,"b-app-vote-button",8);T(9,"async");K(10,"button",9);N("click",function(){u(c);return v(b.navigateToPreviousIssue.emit())});
M(11,"mat-icon",10);L();K(12,"button",11);N("click",function(){u(c);return v(b.navigateToNextIssue.emit())});M(13,"mat-icon",12);L();K(14,"button",13);N("click",function(){u(c);return v(b.closeSidebar.emit())});M(15,"mat-icon",14);L()()();F(16,dTb,4,2,"div",15);T(17,"async");L();K(18,"div",16);F(19,HTb,39,34,"div",17);T(20,"async");Lf(21,JTb,1,1,"ng-container");L()();E(22,KTb,2,0,"ng-template",null,1,Mg)}if(a&2){var d,e,f,g;B(2);wg("elevated",b.containerScrolled);B(3);G((d=U(6,6,b.issueId$))?5:-1,
d);B(3);G((e=U(9,8,b.issue$))?8:-1,e);B(8);G((f=U(17,10,b.issue$))?16:-1,f);B(3);G((g=U(20,12,b.issue$))?19:21,g)}},dependencies:[gB,cB,eB,oK,iA,yj,$D,gE,BD,MD,PD,zE,SD,Kx,Dy,k4,$T,t4,eU,AW,OW,i_,Lx],styles:["header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--background);position:-webkit-sticky;position:sticky;top:0;z-index:3}header.elevated[_ngcontent-%COMP%]{box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.action-buttons[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.fade-icon-button[_ngcontent-%COMP%]{vertical-align:bottom;opacity:0;-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out}.fade-icon-button[_ngcontent-%COMP%]:focus{opacity:1}.card[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .top-actions[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%]{opacity:1}.container[_ngcontent-%COMP%]{width:640px;height:100%;overflow-y:scroll}.issue-summary[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg)}.issue-summary-area[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.title[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;overflow-wrap:anywhere;font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:16px 8px}.title[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:8px}.card[_ngcontent-%COMP%]{padding:8px 8px 8px 16px;border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);margin-bottom:16px}.card.no-border[_ngcontent-%COMP%]{border:none}.card-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.card-header-inner-left[_ngcontent-%COMP%], .card-header-inner-right[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.card-header-inner-left[_ngcontent-%COMP%]{font-weight:500;text-transform:uppercase;letter-spacing:.05rem}.card-header-inner-right[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.details[_ngcontent-%COMP%]{width:-moz-fill-available;width:-webkit-fill-available}.ai-suggestion[_ngcontent-%COMP%], .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}.recommendation[_ngcontent-%COMP%]{margin-top:12px}\n/*# sourceMappingURL=issue_sidebar.css.map */"]});var fUd=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],gUd=function(){this.compactMode=this.labelOnlyMode=!1};gUd.prototype.ngOnInit=function(){};gUd.\u0275fac=function(a){return new (a||gUd)};
gUd.\u0275cmp=D({type:gUd,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&&(cg(fUd),K(0,"span",1)(1,"onedev-hovercard",null,0)(3,"div",2)(4,"div",3),dg(5),L()()(),K(6,"div",4)(7,"span",5),dg(8,1),L()()());if(a&2){a=qg(2);B(3);Kf("aria-label",b.hovercardAriaLabel);B(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!b.labelOnlyMode);B();var c;xg((c=b.labelClass)!=null?c:"");wg("compact-chip",b.compactMode)}},dependencies:[DK,LK],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 v4=function(){this.documentationLinks=p(YR);this.documentationLink=mu()};v4.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=ao(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};v4.\u0275fac=function(a){return new (a||v4)};
v4.\u0275cmp=D({type:v4,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[bx],decls:1,vars:1,consts:[["target","_blank",3,"href"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&F(0,NTb,4,2);a&2&&G(b.retentionState&&b.modifiedTime?0:-1)},dependencies:[sV],encapsulation:2});var w4=function(){this.dateFormatter=p(qS);this.compactMode=!1;this.text=""};w4.prototype.ngOnChanges=function(){var a;((a=this.retentionState)==null?void 0:a.scheduledDeletionTime)!=null?this.text=Kqb(ao(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};w4.\u0275fac=function(a){return new (a||w4)};
w4.\u0275cmp=D({type:w4,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},standalone:!1,features:[bx],decls:1,vars:1,template:function(a,b){a&1&&Q(0);a&2&&yg(b.text)},encapsulation:2});var x4=function(){this.documentationLinks=p(YR);this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};x4.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=PTb(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};x4.\u0275fac=function(a){return new (a||x4)};
x4.\u0275cmp=D({type:x4,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[bx],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,OTb,5,7,"b-base-chip",0);a&2&&G(b.showRetentionInfo?0:-1)},dependencies:[gUd,w4,v4],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 hUd=["issueSidenavContainer"],LWb=function(){return[]},mVb=function(a){return{id:a}},y4=function(){var a=this;this.activeSession=p(qu);this.cdr=p(YP,{self:!0});this.elementRef=p(Jd);this.teamsService=p(KQ);this.ngZone=p(Rg);this.userPreferencesManager=p(dR);this.hotlistFridge=p(gP);this.issueFullFridge=p(cQ);this.bLocation=p(ZT);this.issuePagination=p(l2);this.paths=p(mW);this.errorHandler=p(kO);this.$log=p(iO);this.domSafe=p(iR);this.trackerHelpers=p(fS);this.anayltics=p(aQ);this.playbookService=
p($Q);this.appSearchState=p(oT);this.ISSUE_STATUS_JS_ICON_NAME=Qcd;this.STATUS_JS_FULL_TEXT=Am;this.STATUS_JS_TERSE=Lcd;this.lastCheckedIndex=null;this.focusedRowIndexChange=new XP;this.columns=[];this.columnsChange=new XP;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new XP;this.rowClick=new XP;this.init=new XP;this.onRowDragDrop=new XP;this.onNextPage=new XP;this.onPrevPage=new XP;this.selectionCallbacks=[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=Elb;this.isLoadingTeams=
!0;this.isSidebarIlpIconEnabled=this.activeSession.getFlag("enableSidebarIlpIcon");this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.isIssueSidebarOpen=this.isIssueSidebarEnabled=!1;this.hoveredRowIndex=null;this.destroyed$=new wf(1);this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(c){return c.query||void 0}));this.hasPlaybook$=this.searchQuery$.pipe(Af(function(c){return c?ukd(a.playbookService,c).pipe(A(function(d){return!!d})):ee(!1)}));this.issueIds$=new Nj([]);
this.distinctIssueIds$=this.issueIds$.pipe(pf());this.issueRecommendations$=le([this.hasPlaybook$,this.distinctIssueIds$]).pipe(Af(function(c){var d=m(c);c=d.next().value;d=d.next().value;return a.isPlaybookEnabled&&c&&d.length!==0?qkd(a.playbookService.recommendationTriggerService,d).pipe(jf(function(){return ee([])})):ee([])}),A(function(c){var d=new Map;if(c.length===0)return d;c=uq(c,function(g){return g.resource});c=m(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=Wr(e.resource);f&&
!d.has(f)&&d.set(f,e)}return d}));this.starInProgress={};this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");var b=Ma(lPb);this.activeSession.isInternalSession()||(La(b,"minSlo"),La(b,"responseSlo"),La(b,"assignmentSlo"),La(b,"closureSlo"),La(b,"deletionTime"),La(b,"team"),La(b,"estimate"),La(b,"estimateTotalOpen"),La(b,"estimateTotalComplete"),La(b,"escalationOwner"));this.availableColumns=b.map(mPb);this.dragDropLogic=new qTd({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,
rowFinder:function(c){return iUd(a,c)},onRowDragDrop:function(c){a.onRowDragDrop.emit(c)}})};y4.prototype.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.isIssueSidebarEnabled=this.enableSidebar;this.init.emit(this)};
y4.prototype.ngOnChanges=function(a){if(a.searchResults){var b,c=gRa(((b=this.searchResults)==null?void 0:b.issues.map(function(f){return new Set([].concat(q(f.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(q(c)));var d;b=((d=this.searchResults)==null?void 0:d.issues.map(function(f){return f.id}))||[];this.issueIds$.next(b)}if(a.searchResults||a.columns)for(d=m(this.columns),b=d.next();!b.done;b=d.next())b.value.label==="TEAM"&&jUd(this);if(a.searchResults){d=a.searchResults.currentValue;
var e;a=new Set(((e=a.searchResults.previousValue)==null?void 0:e.issues.filter(function(f){return f.selected}).map(function(f){return f.id}))||[]);e=new Set((d==null?void 0:d.issues.filter(function(f){return f.selected}).map(function(f){return f.id}))||[]);BRa(a,e)||Ut(this)}};y4.prototype.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};var AUb=function(a){a.isIssueSidebarOpen=!0;a.cdr.detectChanges()};y4.prototype.focus=function(){this.grid.focus()};
y4.prototype.selectAll=function(){if(this.searchResults){for(var a=m(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}Ut(this)};var kUd=function(a){if(a.searchResults){for(var b=m(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}Ut(a)};y4.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var aUb=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},lUd=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},$Tb=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=m(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"};
y4.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};y4.prototype.getAllIssues=function(){return this.searchResults?this.searchResults.issues:[]};
var nUd=function(a){if(mUd(a)&&a.focusedRowIndex!=null&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),Ut(a))}},ZTb=function(a){if(a.searchResults){for(var b=!lUd(a),c=m(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();Ut(a)}},QTb=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()&&ROd(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},RTb=function(a){a.focusedRowIndex!=null&&a.focusedRowIndex>0?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&ROd(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
oUd=function(a,b){b=b===void 0?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(rs(c.issueId)):a.bLocation.setUrl(rs(c.issueId)))};y4.prototype.getFocusedIssue=function(){return mUd(this)&&this.focusedRowIndex!=null&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};
var pUd=function(a,b){a.selectionCallbacks.push(b);b()},Ut=function(a){a=m(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},qUd=function(a){mUd(a)&&a.focusedRowIndex!=null&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},rUd=function(a,b){b=b===void 0?!0:b;var c=a.getSelectedIssues();if(c.length!==0){for(var d=m(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();dQ(a.issueFullFridge,c.map(function(f){return f.issueId}),{markRead:b,
userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(f){for(var g=m(c),k=g.next();!k.done;k=g.next()){var l=void 0;k.value.lastViewedTime=(l=f)!=null?l:null}}).catch(function(){for(var f=m(c),g=f.next();!g.done;g=f.next())g=g.value,g.isRead=!!g.lastViewedTime&&g.lastViewedTime>=g.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
y4.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,Bhd(this.issueFullFridge,String(a.issueId),a.starred).pipe(nf(1),Bf(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()}))};
y4.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var mUd=function(a){return a.searchResults!=null&&a.focusedRowIndex!=null&&a.focusedRowIndex>=0&&a.focusedRowIndex<a.searchResults.issues.length},iUd=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},jUd=function(a){if(a.searchResults){for(var b=new Set,c=m(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,Vjd(a.teamsService,[].concat(q(b))).pipe(Bf(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
m(a.searchResults.issues),g=f.next();!g.done;g=f.next()){g=g.value;var k=String(g.teamId);k!=="0"&&(k=e.get(k))&&(g.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};y4.prototype.isIssueGridColumn=function(){return!0};y4.prototype.getComponentPath=function(a){return qm(a)?a.join(" > "):(a=fu(this.trackerHelpers,a))&&a.componentPathName?a.componentPathName.join(" > "):""};y4.\u0275fac=function(a){return new (a||y4)};
y4.\u0275cmp=D({type:y4,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(hg(Y3,7),hg(hUd,5));if(a&2){var c;lg(c=mg())&&(b.grid=c.first);lg(c=mg())&&(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:[Gg([YP]),bx],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","hoveredRowIndex","sortChange","rowClick","list","columns","focusedRowIndex","scrollContainer","sort","rowLabelRenderer"],["class","focus-indicator",4,"forHeaderCell"],["class","drag-handle",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","drag-handle","draggable","true",4,"forViewCell"],["class","selected-box",
4,"forViewCell"],["class","star-cell",4,"forViewCell"],[4,"forViewCell"],["data-template","issueId","class","clickable issue-id-cell",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height","bv2-grid-cell-recommendation",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["class","severity-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["data-stable-cell","type","class","clickable",4,"forViewCell"],["class",
"clickable",4,"forViewCell"],["class","clickable datetime-cell",4,"forViewCell"],["class","componentPath-cell clickable",3,"bv2-grid-cell-variable-height","rtl-component-path",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],[1,"focus-indicator"],[1,"drag-handle"],[1,"selected-box"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"state"],["tabindex","0","aria-label","Select all issues","role","checkbox",
1,"keep-focus-ring","b-select-all-toggle",3,"click","keydown.enter","keydown.space","state"],[3,"column"],[3,"column","availableColumns","selectedColumns"],[3,"selectedColumnsChange","column","availableColumns","selectedColumns"],["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state"],["tabindex","-1","role","checkbox",3,"click","state"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage"],["tabindex","-1",3,"starClicked","starred","disabled",
"starMessage","unStarMessage"],["data-template","issueId",1,"clickable","issue-id-cell"],[1,"row-issue-id",3,"issueId","showCopyOptions"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"row-issue-id",3,"click","issueId","showCopyOptions"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container",3,"bv2-grid-cell-flex-wrap","no-padding","align-items-center"],[1,"bv2-grid-cell-container"],[3,"issueId","compactMode"],[3,"trackerId","compactMode"],[3,"retentionState","showOnlyInDangerZone","compactMode",
"modifiedTime"],[1,"bv2-grid-cell-text"],[1,"row-issue-title",3,"href"],["svgIcon","input_24px",1,"navigate-to-idp","icon-s"],[1,"bv2-hotlist-chips"],[1,"flex-kids-x","align-items-center","right-aligned-container"],[3,"id","removable"],[3,"isParentRowActive"],[3,"recommendation","isParentRowActive"],[3,"onClick","recommendation","isParentRowActive"],[3,"onClick","isParentRowActive"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"low","high","p0"],[1,"bv2-priority"],[1,"severity-cell","clickable"],
["data-stable-cell","status",1,"clickable"],[3,"title"],[1,"icon-s",3,"svgIcon"],[3,"class"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],[3,"email"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus","sloStartTime"],[3,"sloStatus","sloStartTime"],[3,"sloId","sloStatus","sloStartTime","onlyShowMetric"],[3,"sloBounds"],["mode",
"date",3,"timestamp"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(K(0,"div"),F(1,UTb,6,6,"mat-sidenav-container",5)(2,WTb,1,1,"ng-container"),L(),E(3,MWb,57,65,"ng-template",null,0,Mg)(5,OWb,5,2,"ng-template",null,1,Mg));a&2&&(B(),G(b.isIssueSidebarEnabled?1:2))},dependencies:[sTd,
Kx,Dy,bA,sM,tM,rM,Y3,a4,gTd,hTd,iTd,V3,X3,sV,d4,dT,QZ,x4,$V,FY,DK,EK,LK,FK,PW,u4,DV,wW,NW,b4,KU,c4,Lx,Msd,cV,Psd,eV],styles:["mat-sidenav-container.sidebar-enabled[_ngcontent-%COMP%]{height:calc(100vh - 100px)}[_nghost-%COMP%]     .title-cell b-hotlist-chip{margin-bottom:1px}[_nghost-%COMP%]   div.bv2-grid-cell-container.no-padding[_ngcontent-%COMP%]{padding:0}b-sidebar-toggle[_ngcontent-%COMP%]{margin-left:auto}.right-aligned-container[_ngcontent-%COMP%]{margin-left:auto;flex-grow:0}/*# sourceMappingURL=issues_grid.css.map */"],
changeDetection:0});var sUd=new St({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),tUd=new St({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),uUd=new St({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),vUd=new St({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),wUd=new St({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});var z4=function(){Z.apply(this,arguments);var a=this;this.snackBar=p(nB);this.issuePicker=p(XX);this.issueApi=p(HP);this.issueAddedToHotlist=new XP;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});xUd(a,a.id,b)}};this.handleSuccessCall=function(b){b.errors&&b.errors.length?(b="Failed to add issue(s) to hotlist. "+
dVa(b.errors),a.snackBar.open(b,void 0,{duration:2500,panelClass:"error"})):(a.issueAddedToHotlist.emit(),a.snackBar.open("Successfully added to hotlist",void 0,{duration:2500}))};this.gotErr=function(b){var c,d,e,f,g=(f=(e=b==null?void 0:(c=b.error)==null?void 0:c.message)!=null?e:b==null?void 0:(d=b.data)==null?void 0:d.message)!=null?f:"Error adding issues to the hotlist";a.snackBar.open(g,"close",{panelClass:"error"})}};Y(z4,Z);z4.\u0275dir=Z.\u0275dir;
var xUd=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)};z4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(z4)))(b||z4)}}();
z4.\u0275cmp=D({type:z4,selectors:[["hotlist-add-issue-btn"]],inputs:{id:[0,"hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},standalone:!1,features:[Gf],decls:2,vars:0,consts:[["type","button","mat-button","","matTooltip","Add issues to this hotlist",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),Q(1," Add Issue(s) "),L())},dependencies:[gB,
cB,oK,iA],encapsulation:2});var A4=function(){Z.call(this);var a=this;this.fridge=p(gP);this.snackBar=p(nB);this.dialog=p(ZR);this.events=p(PO);this.id$=new wf(1);this.hotlist$=this.id$.pipe(Af(function(b){return a.fridge.watch(b)}),xf({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(A(function(b){return!(b==null||!b.archived)}),pf());this.archiveActionLabel$=this.archived$.pipe(A(function(b){return b?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(A(function(b){return b?"Unarchive this hotlist":
"Archive this hotlist, hiding it from most searches"}));this.didSave=function(b){return function(){a.snackBar.open(b?"Hotlist was archived":"Hotlist was unarchived",void 0,{duration:2500});a.events.hotlistChanged.next()}};this.gotErr=function(b){return function(c){var d=b?"archiving":"unarchiving";a.snackBar.open(Sp(c)||"Error "+d+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.latestHotlist=b})};Y(A4,Z);A4.\u0275dir=Z.\u0275dir;
A4.prototype.isThinking=function(a){return this.fridge.isThinking(a)};A4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
var zUd=function(a){if(a.latestHotlist!=null){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Bh("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){yUd(a,b)}}):yUd(a,b)}},yUd=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};A4.\u0275fac=function(a){return new (a||A4)};
A4.\u0275cmp=D({type:A4,selectors:[["hotlist-archive-btn"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gf,bx],decls:4,vars:7,consts:[["type","button","mat-button","",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(K(0,"button",0),T(1,"async"),N("click",function(){return zUd(b)}),Q(2),T(3,"async"),L());if(a&2){var c;I("disabled",b.isThinking(b.hotlistId))("matTooltip",(c=U(1,3,b.archiveActionTooltip$))!=null?c:"");B(2);S(" ",U(3,5,b.archiveActionLabel$)," ")}},
dependencies:[gB,cB,oK,iA,Lx],encapsulation:2});var B4=function(){C3.apply(this,arguments);this.estadoService=p(U3);this.refreshMonitor=p(QP);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.init=new XP;this.onRefresh=new XP;this.isHotlistAdmin=!1;this.onExportCsv=new XP;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();var a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!qs(a.activeSession);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName=
"gridControls"};Y(B4,C3);B4.\u0275dir=C3.\u0275dir;B4.prototype.ngOnInit=function(){this.init.emit(this)};B4.prototype.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&pUd(this.grid,function(){b.onSelectionChange()})};B4.prototype.getSelectedIssues=function(){var a,b;return(b=(a=this.grid)==null?void 0:a.getSelectedIssues())!=null?b:[]};var QWb=function(a){var b,c;return(c=(b=a.grid)==null?void 0:b.getAllIssues().map(function(d){return d.issueId}))!=null?c:[]};
B4.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};B4.prototype.openInEstado=function(){this.estadoService.openInEstado()};var AUd=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};B4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(B4)))(b||B4)}}();
B4.\u0275cmp=D({type:B4,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:12,vars:9,consts:[["addCommentDialog",""],["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"enableBulkEstimatedEffortOption",
"readStatePrompt"],[3,"issueIds"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks"],[1,"bv2-grid-hotlist-picker"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format"],[1,"bv2-appbar-menu",3,"exportCsvClicked","flagAsSpamClicked","showExportCsv","showFlagIssuesAsSpam"],[3,"save","close","externalWarnings"],[3,"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead","enableBulkEstimatedEffortOption","readStatePrompt"],[3,"onClickCopyIssueIds","onClickCopyIssueShortLinks",
"onClickCopyAsIssueSearch","shortLinkPrefix","shouldShowCopyIssueShortLinks"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[3,"hotlistId"],[3,"issueAddedToHotlist","hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"onAction","size","format"],["name","bar-chart","size","large"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","isLiteralModeSupported"],[3,"externalWarnings"],[1,"flex-kids-x","justify-flex-end"],["type","button","mat-button",
"",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium","primary",3,"disabled","mat-dialog-close"],[3,"commentChange","onSubmit","comment","showToolbar","isLiteralModeSupported"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=t();K(0,"b-button",1);N("onAction",function(){u(c);return v(b.refresh())});M(1,"b-icon",2);L();F(2,PWb,2,4,"b-app-bar-bulk-edit-menus",3);F(3,RWb,1,1,"playbook-controls",4);F(4,SWb,1,2,"b-copy-issue-id-button",5);F(5,TWb,
2,2,"div",6);F(6,WWb,2,2);F(7,YWb,3,3,"b-button",7);K(8,"b-app-bar-more-menu",8);N("exportCsvClicked",function(){u(c);return v(b.onExportCsv.emit())})("flagAsSpamClicked",function(){u(c);return v(YRd(b))});L();K(9,"b-state-modal",9);N("save",function(){u(c);return v(WRd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();E(10,aXb,11,6,"ng-template",null,0,Mg)}a&2&&(B(2),G(b.hasSelectedIssues()?2:-1),B(),G(b.isPlaybookEnabled?3:-1),B(),G(b.hasSelectedIssues()?4:-1),B(),G(b.enableBulkEditUi&&
b.hasSelectedIssues()?5:-1),B(),G(b.showHotlistButtons&&!b.hasSelectedIssues()?6:-1),B(),G(b.enableEstadoInAppBar?7:-1),B(),I("showExportCsv",b.isNonPublicSession||rdd(b.activeSession))("showFlagIssuesAsSpam",AUd(b)),B(),I("externalWarnings",b.externalWarnings))},dependencies:[yOd,b2,MU,q0,HQd,A4,z4,x3,pT,gB,cB,RA,TA,VA,UA,A3,tY,y3,aU,Lx],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var BUd=function(a){return{displayText:"Admins",values:a}},CUd=function(a){return[a]},DUd=function(a){return{displayText:"Appenders",values:a}},EUd=Bh("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?"),C4=function(){var a=p(uY);Z.call(this);var b=this;this.hotlistAccessPolicyFridge=p(LP);this.links=p(YR);this.snackBar=
p(nB);this.events=p(PO);this.dialog=p(ZR);this.permissions=p(yQ);this.userApi=p(fP);this.activeSession=p(qu);this.hotlistId$=new wf(1);this.acl$=this.hotlistId$.pipe(Af(function(c){return b.hotlistAccessPolicyFridge.watch(c)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=Cmd(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:EUd,isDestructive:!0,onConfirm:b.doSave}):b.doSave()};this.doSave=function(){if(b.hotlistId!=null){var c=b.isRevokingAdmin(),d={id:b.hotlistId,admins:hs(b.admins),appenders:hs(b.appenders),editors:null,readers:hs(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(Sp(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(!mm((d=c.admins)!=null?d:[],b.admins))return!0;var e;if(!mm((e=c.appenders)!=null?e:[],b.appenders))return!0;var f;return mm((f=c.readers)!=null?f:[],b.readers)?!1:!0};this.hasNoChanges=function(){return!b.isChanged()};this.acl$.pipe(Bf(this.destroyed$)).subscribe(function(c){b.latestPolicy=c;var d,e,f;b.latestCompactPolicy={admins:gs((d=b.latestPolicy)==null?void 0:d.admins),appenders:gs((e=b.latestPolicy)==null?
void 0:e.appenders),readers:gs((f=b.latestPolicy)==null?void 0:f.readers)};b.resetEdits()});this.subscriptions.add(vY(a,this.isChanged,!1))};Y(C4,Z);C4.\u0275dir=Z.\u0275dir;var FUd=function(a){return[].concat(q(new Set([].concat(q(a.admins),q(a.appenders)))))};C4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.hotlistId$.next(a)};
C4.prototype.resetEdits=function(){var a;this.admins=[].concat(q((a=this.latestCompactPolicy.admins)!=null?a:[]));var b;this.appenders=[].concat(q((b=this.latestCompactPolicy.appenders)!=null?b:[]));var c;this.readers=[].concat(q((c=this.latestCompactPolicy.readers)!=null?c:[]));this.allAppenders=FUd(this)};C4.prototype.isRevokingAdmin=function(){var a=this.admins,b,c=(b=this.latestCompactPolicy.admins)!=null?b:[];return this.isRevokingDirectAdmin(a,c,this.activeSession.getUserEmail())};
C4.prototype.isRevokingDirectAdmin=function(a,b,c){c=c===void 0?"":c;if(z_a(a,b))return!1;c="USER:"+c;b=b.includes(c);a=!a.includes(c);return b&&a};C4.\u0275fac=function(a){return new (a||C4)};
C4.\u0275cmp=D({type:C4,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Gf,bx],decls:22,vars:24,consts:[[1,"flex-kids-y"],[1,"muted","type-s","margin-s-bottom"],[3,"usersChange","isValid","users"],[3,"usersChange","isValid","users","includeAliases","containerChips"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button",
"","color","primary","type","submit",1,"medium",3,"click","disabled","matTooltip"],["mat-button","","type","button",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(K(0,"form",0)(1,"label"),Q(2,"Admins"),L(),K(3,"p",1),Q(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),L(),K(5,"b-multi-user-input",2),N("usersChange",function(c){b.admins=c;b.allAppenders=FUd(b)})("isValid",function(c){return b.validity.admins=c}),L(),K(6,"label"),Q(7,
"View and append"),L(),K(8,"p",1),Q(9,"Reorder hotlist, add/remove issues"),L(),K(10,"b-multi-user-input",3),N("usersChange",function(c){b.appenders=c;b.allAppenders=FUd(b)})("isValid",function(c){return b.validity.appenders=c}),L(),K(11,"label"),Q(12,"View only"),L(),K(13,"p",1),Q(14,"View the hotlist"),L(),K(15,"b-multi-user-input",4),N("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),L()(),K(16,"p"),Q(17," Users can see which issues are in a hotlist, even when they don't have view access to the hotlist. See "),
K(18,"a",5),Q(19,"access control documentation"),L(),Q(20," for an explanation of the settings.\n"),L(),F(21,bXb,5,4,"div",6));a&2&&(B(5),wg("disabled",b.isReadOnly),I("users",b.admins),B(5),wg("disabled",b.isReadOnly),I("users",b.appenders)("includeAliases",!0)("containerChips",Ig(18,CUd,Ig(16,BUd,b.admins))),B(5),wg("disabled",b.isReadOnly),I("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Ig(22,CUd,Ig(20,DUd,b.allAppenders))),B(3),I("href",b.accessControlLink,
Pe),B(3),G(b.isReadOnly?-1:21))},dependencies:[hE,aE,eE,gB,cB,oK,iA,KW],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 GUd=["hotlistName"],D4=function(){Z.call(this);var a=this;this.fridge=p(gP);this.snackBar=p(nB);this.events=p(PO);this.checkBeforeExit=p(uY);this.isReadOnly=!1;this.id$=new wf(1);this.hotlist$=this.id$.pipe(Af(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(Sp(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!mm(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(Bf(this.destroyed$)).subscribe(function(b){a.gotHotlist(b)});this.subscriptions.add(vY(this.checkBeforeExit,
this.isChanged,!1))};Y(D4,Z);D4.\u0275dir=Z.\u0275dir;D4.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;(b=a.hotlistName)==null||b.nativeElement.focus()})};D4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};D4.prototype.resetEdits=function(a){var b;this.localEdits=(b=pm(a))!=null?b:{}};D4.\u0275fac=function(a){return new (a||D4)};
D4.\u0275cmp=D({type:D4,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&hg(GUd,5);if(a&2){var c;lg(c=mg())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Gf,bx],decls:10,vars:5,consts:[["hotlistName",""],["name","hotlist",1,"flex-kids-y"],["for","hotlist-name",1,"required"],["type","text","id","hotlist-name","name","name","required","","aria-required","true","autocomplete","off",3,"ngModelChange","disabled","ngModel"],["for",
"hotlist-description",1,"margin-top"],["id","hotlist-description","name","description",3,"ngModelChange","disabled","ngModel"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"medium",3,"click","disabled","matTooltip"],["mat-button","","type","button",1,"medium",3,"click","disabled","matTooltip"],[3,"hotlistId"]],template:function(a,b){if(a&1){var c=t();K(0,"form",1)(1,"label",2);Q(2,"Name");L();K(3,"input",3,0);Cg("ngModelChange",function(d){u(c);
Bg(b.localEdits.name,d)||(b.localEdits.name=d);return v(d)});L();K(5,"label",4);Q(6,"Description");L();K(7,"textarea",5);Cg("ngModelChange",function(d){u(c);Bg(b.localEdits.description,d)||(b.localEdits.description=d);return v(d)});Q(8,"  ");L();F(9,cXb,7,7,"div",6);L()}a&2&&(B(3),I("disabled",b.isReadOnly||b.isArchived),Ag("ngModel",b.localEdits.name),B(4),I("disabled",b.isReadOnly||b.isArchived),Ag("ngModel",b.localEdits.description),B(2),G(b.isReadOnly?-1:9))},dependencies:[hE,yj,$D,aE,sE,gE,eE,
gB,cB,oK,iA,A4,Lx],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 E4=function(){Z.apply(this,arguments);var a=this;this.hotlists=p(gP);this.acls=p(LP);this.id$=new wf(1);this.hotlist$=this.id$.pipe(Af(function(b){return a.hotlists.watch(b)}))};Y(E4,Z);E4.\u0275dir=Z.\u0275dir;E4.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};E4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
E4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(E4)))(b||E4)}}();
E4.\u0275cmp=D({type:E4,selectors:[["b-edit-hotlist-header"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gf,bx],decls:9,vars:8,consts:[[1,"flex-kids-x","align-items-center","gap-s","padded-x"],[1,"muted"],[1,"color-bad-text"]],template:function(a,b){a&1&&(K(0,"header",0)(1,"h2")(2,"span",1),Q(3),L(),F(4,dXb,1,1),T(5,"async"),L(),F(6,eXb,2,0,"strong",2),T(7,"async"),F(8,fXb,1,0,"b-spinner"),L());if(a&2){var c,d;B(3);S(" Hotlist ",b.hotlistId,": ");B();G((c=U(5,4,b.hotlist$))?4:-1,c);B(2);
G(((d=U(7,6,b.hotlist$))==null?0:d.archived)?6:-1);B(2);G(b.isThinking(b.hotlistId)?8:-1)}},dependencies:[$T,Lx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var F4=function(){Z.apply(this,arguments);this.activeSession=p(qu);this.ROUTES=ps;this.id$=new wf(1);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};Y(F4,Z);F4.\u0275dir=Z.\u0275dir;F4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};F4.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};F4.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(F4)))(b||F4)}}();
F4.\u0275cmp=D({type:F4,selectors:[["b-edit-hotlist-toolbar"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gf,bx],decls:6,vars:2,consts:[[1,"button-bar","border-bottom","padded-s"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["mat-button","","matTooltip","View the issues tagged with this hotlist",1,"medium","no-visited-no-active",3,"href"],[3,"hotlistId"]],template:function(a,b){a&1&&(K(0,"section",0)(1,
"b-button",1),N("onAction",function(){return b.onPressBack()}),M(2,"b-icon",2),L(),K(3,"a",3),Q(4," View Issues "),L(),F(5,gXb,2,3,"hotlist-add-issue-btn",4),L());a&2&&(B(3),I("href",b.ROUTES.viewHotlist.makeHref(b.hotlistId),Pe),B(2),G(b.enableBulkEditUi?5:-1))},dependencies:[gB,cB,oK,iA,MU,pT,z4,Lx],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var HUd=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),IUd=function(){this.routeParams=p(rS);this.pageTitle=p(m2);this.permissions=p(yQ);this.hotlists=p(gP);this.window=p(hR);this.id=this.routeParams.hotlistId;this.resourceId="hotlists/"+this.id;this.isAdmin$=this.permissions.watch(this.resourceId).pipe(A(function(a){return a==null?void 0:a.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(A(function(a){var b;return(b=a.status)!=null?
b:-1}),A(function(a){var b;return(b=HUd.get(a))!=null?b:"unknown error"}),zf(void 0));this.tabIndex=0};IUd.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);this.window.location.hash.includes("access")&&(this.tabIndex=1)};IUd.\u0275fac=function(a){return new (a||IUd)};
IUd.\u0275cmp=D({type:IUd,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,iXb,12,14),T(1,"async"),F(2,jXb,6,1),T(3,"async"));if(a&2){var c;G(U(1,2,b.hotlistErrorMsg$)===void 0?0:-1);B(2);G((c=U(3,4,b.hotlistErrorMsg$))?2:-1,c)}},dependencies:[wL,rL,sL,nsd,C4,
D4,E4,F4,Lx],encapsulation:2});var G4=function(){};G4.\u0275fac=function(a){return new (a||G4)};G4.\u0275cmp=D({type:G4,selectors:[["b-error-banner"]],inputs:{error:"error"},standalone:!1,decls:1,vars:1,consts:[["messageType","error"]],template:function(a,b){a&1&&F(0,kXb,3,1,"b-callout",0);a&2&&G(b.error?0:-1)},dependencies:[AU,BU],encapsulation:2});var H4=function(){};H4.\u0275fac=function(a){return new (a||H4)};H4.\u0275mod=cf({type:H4});H4.\u0275inj=Hc({imports:[RO,CU]});var I4=function(){};I4.\u0275fac=function(a){return new (a||I4)};I4.\u0275mod=cf({type:I4});I4.\u0275inj=Hc({imports:[RO,xE,iB,pK,NU,yU,yL,DU,bU,H4,xX,uU]});var J4=function(){};J4.\u0275fac=function(a){return new (a||J4)};J4.\u0275mod=cf({type:J4});J4.\u0275inj=Hc({imports:[d2,NU,u0,RO,pX,h3,I4,E3,DU,iB,MJ,pK,bU,F3,y0,z3,Srd]});var K4=function(){Z.call(this);this.element=p(Jd);this.bLocation=p(ZT);this.hotkeys=p(kU);this.cdr=p(YP,{self:!0});this.focusedIndex=0;this.convertUserToString=xm;this.hotlists=[];this.registerKeys()};Y(K4,Z);K4.\u0275dir=Z.\u0275dir;h=K4.prototype;h.setFocusOnIndex=function(a){this.focusedIndex=a};h.isFocused=function(a){return this.focusedIndex===a};h.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
h.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
h.registerKeys=function(){var a=this,b=lU(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next hotlist",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous hotlist",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View hotlist detail",onPress:function(){var c=a.hotlists[a.focusedIndex];c&&a.editHotlist(c)}}]});
this.destroyed$.subscribe(b)};h.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};h.renderRowLabel=function(a){return this.hotlists[a].name};h.editHotlist=function(a){this.bLocation.path(ps.editHotlist.makeHref(a.hotlistId))};
K4.\u0275fac=function(a){return new (a||K4)};
K4.\u0275cmp=D({type:K4,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Gg([YP]),Gf],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&&(K(0,"table",0)(1,"thead")(2,"tr",1),M(3,"th",2),K(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," Hotlist name "),L()()()(),K(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),L()()()(),K(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),Q(18," Admins "),
L()()()(),K(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),Q(23," ID "),L()()()()()(),K(24,"tbody"),Of(25,nXb,12,8,"tr",6,Nf),L()());a&2&&(B(25),Pf(b.hotlists))},encapsulation:2});var L4=function(){};L4.\u0275fac=function(a){return new (a||L4)};L4.\u0275mod=cf({type:L4});L4.\u0275inj=Hc({imports:[RO]});var M4=function(){this.bLocation=p(ZT);this.butterBar=p(QN)},JUd=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};M4.prototype.getCount=function(){var a=JUd(this,"c");return a?sm(a):null};var KUd=function(a){return(a=JUd(a,"p"))?sm(a):null};M4.prototype.getQuery=function(){return JUd(this,"q")};
M4.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Jt).filter(Qm):null};M4.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(hJb).filter(Qm):null};
var N4=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 LUd(e)}));b.sortColumns!==void 0&&d("s",b.sortColumns==null?null:(b.sortColumns||[]).map(function(e){var f=e.direction=="ASCENDING"?"asc":"desc";return LUd(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)},LUd=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275prov=Fc({token:M4,factory:M4.\u0275fac,providedIn:"root"});var O4=function(){this.urlPreferences=p(M4);this.userPreferencesManager=p(dR);this.customFieldFridge=p(qP)};O4.prototype.fetch=function(a,b){a=this.getParameters(a,b===void 0?null:b);return{searchPreferences:ms({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
O4.prototype.getParameters=function(a,b){var c=this,d=b?function(){return MUd(b)}:function(){return NUd(c)},e=b?function(){return OUd(b)}:function(){return PUd(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return P4(k)}).then(null,d).then(function(k){return P4(k)}).then(null,THc(a.displayColumns)).then(function(k){return QUd(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return P4(k)}).then(null,e).then(function(k){return P4(k)}).then(null,
THc(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return P4(k)}).then(null,function(){return RUd(c)}).then(function(k){return P4(k)}).then(null,THc(a.resultsPerPage)),g=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return P4(k)}).then(null,function(){return SUd(b,function(k){return k.query})}).then(null,THc(a.query));a=KUd(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:g,page:a}};
var P4=function(a){return a==null?Promise.reject(null):a},MUd=function(a){return SUd(a,function(b){return b.displayColumn}).then(function(b){return TUd(b)})},OUd=function(a){return SUd(a,function(b){return b.sortOrder}).then(function(b){return UUd(b)})},PUd=function(a){return ie(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return P4(b)}).then(function(b){return UUd(b)})},NUd=function(a){return ie(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return P4(b)}).then(function(b){return TUd(b)})},
RUd=function(a){return ie(a.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:null}))).then(function(b){return P4(b)})},SUd=function(a,b){return a?a.then(function(c){c=b(c);return c==null?Promise.reject(null):c}):Promise.reject(null)},TUd=function(a){if(!a||!a.length)return null;a=uq(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new It({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:b.type})})},UUd=function(a){return a&&a.length?a.map(function(b){return b.column!==void 0?new Lt(new It(b.column),b.order):new Lt(new It(b.field),b.direction)}).filter(function(b){return b.fieldId.type!="CUSTOM_FIELD"||b.fieldId.customFieldId!=null}):null},QUd=function(a,b){function c(){for(var k=m(b),l=k.next();!l.done;l=k.next())if(l=l.value,l.isCustomField()&&!l.customFieldName){var r=d[l.customFieldId];l.customFieldName=r?r:"Custom field "+l.customFieldId}return b}if(!b)return Promise.resolve([]);
for(var d={},e=[],f=m(b),g=f.next();!g.done;g=f.next())g=g.value,g.customFieldId&&g.isCustomField()&&(g.customFieldName?d[g.customFieldId]=g.customFieldName:e.push(ie(a.customFieldFridge.watch(g.customFieldId)).then(function(k){k&&(d[k.customFieldId]=k.name)})));return Promise.all(e).then(c,c)};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275prov=Fc({token:O4,factory:O4.\u0275fac,providedIn:"root"});var Q4=function(){Z.call(this);var a=this;this.cdr=p(YP);this.bLocation=p(ZT);this.$log=p(iO);this.butterBar=p(QN);this.analytics=p(aQ);this.issuePagination=p(l2);this.gridPreferencesFetcher=p(O4);this.paths=p(mW);this.errorHandler=p(kO);this.domSafe=p(iR);this.timeout=p(jO);this.hotkeys=p(kU);this.appSearchState=p(oT);this.componentFridge=p(MO);this.issueFullFridge=p(cQ);this.activeSession=p(qu);this.window=p(hR);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 XP;this.resultsLoaded=new XP;this.selectionChange=new XP;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||QTb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||RTb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||nUd(b)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||qUd(b)}},{keys:[Tr("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var b;(b=a.issuesGrid)==null||rUd(b,!0)}},{keys:[Tr("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.issuesGrid)==null||rUd(b,!1)}},{keys:[Ur("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||b.selectAll()}},{keys:[Ur("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||kUd(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||oUd(d)}else{var e;(e=a.issuesGrid)==null||oUd(e)}}}];this.destroyed$.subscribe(function(){var b;(b=a.unregisterHotkeys)==null||b.call(a)})};Y(Q4,Z);Q4.\u0275dir=Z.\u0275dir;
Q4.prototype.columnsChange=function(a){this.issueColumns=a};Q4.prototype.ngOnInit=function(){this.getIssues();VUd(this)};var VUd=function(a){var b;(b=a.unregisterHotkeys)==null||b.call(a);a.isFocused?a.unregisterHotkeys=lU(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},HXb=function(a,b){a.issuesGrid=b;pUd(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:(c=a.issuesGrid)==null?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};
h=Q4.prototype;h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Jt(a);if(d==null)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Lt(d,b=="ASC"?"ASCENDING":"DESCENDING");wba(this.sortPreferences,function(f){return mm(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
h.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type=="CUSTOM_FIELD"?String(a.fieldId.customFieldId):vRa(a.fieldId.type),direction:a.direction=="ASCENDING"?"ASC":"DESC"};mm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(q(b),q(pPb(a)));this.initialIssueColumns=pm(this.issueColumns);this.isColumnSaveEnabled=!0};
h.goToIssue=function(a,b,c){c&&c.target.tagName==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=rs(a),c&&dq(c)?this.domSafe.openInNewTab(a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.page=a;this.getIssues()};h.refreshResults=function(){QOd(this.issuePagination);this.getIssues()};h.exportCsv=function(){Skd(this.domSafe,this.getCsvUrl())};h.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};
h.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;var b=this.resource?Promise.resolve(this.resource):this.loadResource();return this.doSearch(b).catch(function(c){a.$log.warn("WARNING: unable to doSearch()",c)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
h.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:b.resource.query!=null?b.resource.query:null,displayColumn:b.resource.displayColumn,sortOrder:b.resource.sortOrder}}));a=d.searchPreferences.then(function(e){if(!e.query)return Promise.reject(null);e=b.getSearchParams(e);b.searchParams=e;e.trackerIds=b.appSearchState.currentTrackerScope;return NOd(b.issuePagination,e)});a.catch(function(e){typeof e==="number"?
b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});return ms({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=pm(b.sortPreferences));d.displayColumns.then(function(g){b.initColumns(g,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);
b.timeout.schedule(function(){var g=b.issuePagination.getFocusedIssue();g!=-1&&(b.focusedRowIndex=g-f.startIndex)})})};
h.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new Rd;a=m(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(we(Qm),Bf(this.destroyed$)).subscribe(function(d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(!b.searchResults){g.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;g.jumpTo(3);break}return z(g,ie(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=g.yieldResult;case 3:f=e;if(!f||!b.searchResults)return g.return();IOd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),ce(g)}})}))};h.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:Q4.DEFAULT_COLUMNS,sortColumns:[],query:"",resultsPerPage:25}};
h.save=function(){var a=this,b=qPb(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):Q4.DEFAULT_META_COLUMNS).length)).map(function(c){return new It(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;Pr(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=pm(a.issueColumns);a.initialSortPreferences=pm(a.sortPreferences);
a.cdr.detectChanges()})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(q(this.initialIssueColumns||[]));this.initialSortPreferences&&!mm(this.initialSortPreferences,this.sortPreferences)&&(uba(this.sortPreferences),pw(zba,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
h.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!mm(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!mm(this.initialSortPreferences,this.sortPreferences):!1};h.isEditable=function(){var a=this;return!!this.resource&&this.resource.adminUsers.some(function(b){return b.emailAddress===a.currentUserEmail})};h.getMetaColumns=function(){return Q4.DEFAULT_META_COLUMNS};
h.getSearchParams=function(a){a=pm(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.getUrl();return a};
da.Object.defineProperties(Q4.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){mm(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&&VUd(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return this.focusedRowIndex!==null}}});Q4.DEFAULT_META_COLUMNS=[sUd,uUd,vUd];Q4.DEFAULT_COLUMNS=WSd.map(Jt).filter(Qm);Q4.\u0275fac=function(a){return new (a||Q4)};
Q4.\u0275cmp=D({type:Q4,selectors:[["b-base-issues-list"]],viewQuery:function(a,b){a&1&&hg(y4,5);if(a&2){var c;lg(c=mg())&&(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:[Gf],decls:0,vars:0,template:function(){},encapsulation:2});var R4=function(){this.dialog=p(ZR);this.appEvents=p(PO);this.last=this.first=!1};R4.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Bh("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)}})};R4.\u0275fac=function(a){return new (a||R4)};
R4.\u0275cmp=D({type:R4,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&&(K(0,"div")(1,"button",1),M(2,"mat-icon",2),L(),K(3,"mat-menu",null,0),E(5,sXb,6,4,"ng-template",3),L()());a&2&&(a=qg(4),B(),I("matMenuTriggerFor",a))},dependencies:[Dy,OJ,YG,WG,XG,aH,gB,eB],encapsulation:2});var S4=function(){};S4.\u0275fac=function(a){return new (a||S4)};S4.\u0275mod=cf({type:S4});S4.\u0275inj=Hc({imports:[RO,PJ,iB]});var T4=function(){};T4.\u0275fac=function(a){return new (a||T4)};T4.\u0275mod=cf({type:T4});T4.\u0275inj=Hc({imports:[RO,MK]});var U4=function(){};U4.\u0275fac=function(a){return new (a||U4)};U4.\u0275mod=cf({type:U4});U4.\u0275inj=Hc({imports:[RO,T4]});var V4=function(){};V4.\u0275fac=function(a){return new (a||V4)};V4.\u0275mod=cf({type:V4});V4.\u0275inj=Hc({imports:[RO,MK,U4]});var W4=function(){};W4.prototype.getValue=function(){return this.row[this.column.name]||""};W4.prototype.isCustomField=function(){return this.column.isCustomField};W4.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 mm(this.customFieldValue,a)||(this.customFieldValue=a),this.customFieldValue};
W4.\u0275fac=function(a){return new (a||W4)};W4.\u0275cmp=D({type:W4,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,tXb,2,2,"span"),F(1,uXb,1,1,"b-custom-field-value-display",0));a&2&&(G(b.isCustomField()?-1:0),B(),G(b.isCustomField()?1:-1))},dependencies:[r3],encapsulation:2,changeDetection:0});var X4=function(){};X4.\u0275fac=function(a){return new (a||X4)};X4.\u0275mod=cf({type:X4});X4.\u0275inj=Hc({imports:[RO,pK,s3]});Doa(Y3,[Kx,a4,W4],[]);var WUd=function(){};WUd.\u0275fac=function(a){return new (a||WUd)};WUd.\u0275mod=cf({type:WUd});WUd.\u0275inj=Hc({imports:[RO,PJ,bK,pK,iB,DU,X4]});var XUd=function(){};XUd.\u0275fac=function(a){return new (a||XUd)};XUd.\u0275mod=cf({type:XUd});XUd.\u0275inj=Hc({imports:[RO,iB,Fy]});var Y4=function(){};Y4.\u0275fac=function(a){return new (a||Y4)};Y4.\u0275mod=cf({type:Y4});Y4.\u0275inj=Hc({imports:[RO,T4]});var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=cf({type:Z4});Z4.\u0275inj=Hc({imports:[FZ,RO,iB,pK,MK,Fy]});var a5=function(){};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275mod=cf({type:a5});a5.\u0275inj=Hc({imports:[RO,zU,E0,iB,Z4,Fy,bU,a1]});var b5=function(){};b5.\u0275fac=function(a){return new (a||b5)};b5.\u0275mod=cf({type:b5});b5.\u0275inj=Hc({imports:[Yx,xE,L_,yE]});var c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=cf({type:c5});c5.\u0275inj=Hc({imports:[RO,pK,B0,X2,b5,MK]});var d5=function(){};d5.\u0275fac=function(a){return new (a||d5)};d5.\u0275mod=cf({type:d5});d5.\u0275inj=Hc({imports:[RO,pK,B0,MK]});var e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275mod=cf({type:e5});e5.\u0275inj=Hc({imports:[RO,E_,oV,yE,wU]});var f5=function(){};f5.\u0275fac=function(a){return new (a||f5)};f5.\u0275mod=cf({type:f5});f5.\u0275inj=Hc({imports:[RO,pK,iB,MK,Y4,xV,U4,e5,Qz,iV]});var g5=function(){};g5.\u0275fac=function(a){return new (a||g5)};g5.\u0275mod=cf({type:g5});g5.\u0275inj=Hc({imports:[NU,CU,RO,xE,iB,MJ,EU,yU,pK,X2]});var YUd={},ZUd=(YUd.COMFORTABLE=330,YUd.COZY=300,YUd.COMPACT=270,YUd),h5=function(){Z.call(this);var a=this;this.userPreferencesManager=p(dR);this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)==null?void 0:c.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.layoutPreferences)==null?void 0:c.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new sf;this.currentSidebarWidth$=le([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(zf(void 0))]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return c!=null?c:d!=null?d:ZUd[b!=null?b:"COMFORTABLE"]}));le([this.rightSidebarWidthChanged$.pipe(pf()),this.sidebarWidthPreference$]).pipe(we(function(b){var c=m(b);b=c.next().value;return c.next().value!==b}),Af(function(b){var c=m(b);b=c.next().value;c.next();return Hkd(a.userPreferencesManager,
{rightSidebarWidth:b})}),Bf(this.destroyed$)).subscribe()};Y(h5,Z);h5.\u0275dir=Z.\u0275dir;h5.prototype.ngOnInit=function(){};h5.\u0275fac=function(a){return new (a||h5)};
h5.\u0275cmp=D({type:h5,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,features:[Gf],decls:7,vars:5,consts:[[1,"a11y-only"],["direction","rtl",3,"widthChanged","minWidth","size"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId"]],template:function(a,b){a&1&&(K(0,"h3",0),Q(1,"Issue metadata"),L(),K(2,"b-resizable-sidebar",1),T(3,"async"),N("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),K(4,"div",2)(5,"div",3),F(6,vXb,1,1,"edit-issue-metadata",
4),L()()());if(a&2){B(2);var c;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",(c=U(3,3,b.currentSidebarWidth$))!=null?c:0);B(4);G(b.issueId?6:-1)}},dependencies:[rU,t4,Lx],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});var i5=function(){};i5.\u0275fac=function(a){return new (a||i5)};i5.\u0275mod=cf({type:i5});i5.\u0275inj=Hc({imports:[gV,GV,RO,x_,rV,c5,d5,B0,nU,MK,AX,f5,QV,pK,uU,g5,M_,oX,IV,F0,w0,D0,C0]});var $Ud=function(){};$Ud.\u0275fac=function(a){return new (a||$Ud)};$Ud.\u0275mod=cf({type:$Ud});$Ud.\u0275inj=Hc({imports:[iB,pK,xE,OD,BE,TD,HV,IV,RO,a5,BX,iV,gV,bU,i5,zU,BW,zX,b1]});var j5=function(){};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275mod=cf({type:j5});j5.\u0275inj=Hc({imports:[RO,MK]});var k5=function(){};k5.\u0275fac=function(a){return new (a||k5)};k5.\u0275mod=cf({type:k5});k5.\u0275inj=Hc({imports:[RO,j5,xV]});var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=cf({type:l5});l5.\u0275inj=Hc({imports:[tTd,RO,PJ,bK,pK,iB,MJ,eA,uM,DU,X4,T4,V4,xV,Y4,gV,fU,K_,k5,JX,pX,X1,q3,MK,AX,$Ud,EV,IX,yX,VSd,WUd,zsd,XUd]});var m5=function(){this.hotlistsApi=p(bP);this.butterBar=p(QN);this.appEvents=p(PO)};
m5.prototype.repositionIssue=function(a,b,c,d,e,f){var g=this,k=b[0].position,l=k>b[1].position,r=b[c],w=b[d].position;Jba(b,c,d);f==null||f();Pr(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,r.issueId,w).then(function(){for(var x=k,C=m(b),H=C.next();!H.done;H=C.next())H.value.position=x,x+=l?-1:1;f==null||f();Pr(g.butterBar,"Saved issue position.",4E3);g.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return g.hotlistsApi.get(a)})};
m5.\u0275fac=function(a){return new (a||m5)};m5.\u0275prov=Fc({token:m5,factory:m5.\u0275fac,providedIn:"root"});var n5=function(){this.pageChange=new XP;this.resultsPerPageChange=new XP;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};n5.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};n5.prototype.prevPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page-1})};
da.Object.defineProperties(n5.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}})}}});n5.\u0275fac=function(a){return new (a||n5)};
n5.\u0275cmp=D({type:n5,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&&(K(0,"div",0),F(1,wXb,1,1,"b-actions-menu",1),F(2,xXb,6,
3,"span",2),K(3,"button",3),N("click",function(){return b.prevPage()})("keydown.enter",function(c){b.prevPage();return c.stopPropagation()}),M(4,"mat-icon",4),L(),K(5,"button",5),N("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),M(6,"mat-icon",6),L()());a&2&&(B(),G(b.searchResults&&b.searchResults.issues.length>0&&!b.resultsPerPageFixed?1:-1),B(),G(b.searchResults&&b.searchResults.issues.length>0?2:-1),B(),I("disabled",!(b.searchResults==
null?0:b.searchResults.hasPreviousPage())),B(2),I("disabled",!(b.searchResults==null?0:b.searchResults.hasNextPage())))},dependencies:[Dy,gB,eB,QY,EY],encapsulation:2});var o5=function(){};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275mod=cf({type:o5});o5.\u0275inj=Hc({imports:[RO,iB,FZ,W1]});var p5=function(){Q4.apply(this,arguments);this.hotlists=p(m5);this.hotlistApi=p(bP);this.appEvents=p(PO);this.ROUTES=ps;this.resource=null};Y(p5,Q4);p5.\u0275dir=Q4.\u0275dir;h=p5.prototype;h.ngOnInit=function(){Q4.prototype.ngOnInit.call(this)};h.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?Q4.prototype.setSort.call(this,a,b,!1):Q4.prototype.setSort.call(this,a,b)};
h.loadResource=function(){var a=this,b=this.hotlistApi.get(this.hotlistId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};
h.saveResource=function(){var a=this;if(this.resource)return this.hotlistApi.updateMetadata(this.hotlistId,this.resource).then(function(b){a.resource=b;a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId,origin:"hotlist-panel"});Pr(a.butterBar,'Saved changes to hotlist "'+b.name+'".');a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});this.butterBar.showWarning("Hotlist is not set at this time.");
return Promise.resolve()};h.getGridPreferencesDefaults=function(){return Object.assign({},Q4.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};h.getMetaColumns=function(a){a=a.params.sortColumns||[];return a.length==0||a.length==1&&a[0].fieldId.type=="POSITION"?aVd:bVd};h.getSearchParams=function(a){a=Q4.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
h.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"issueDragDrop")})};p5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(p5)))(b||p5)}}();
p5.\u0275cmp=D({type:p5,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Gg([YP]),Gf],decls:9,vars:8,consts:[[1,"bv2-panel","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-hotlist-title-text"],[1,"bv2-view-hotlist-save-form"],[3,"pageChange","searchResults","resultsPerPageFixed"],[1,"bv2-panel-controls",3,"panelId"],["tabindex","0"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences have changed"],["mat-flat-button","","type","button",
"color","primary","matTooltip","Save changes to display preferences",1,"medium",3,"click"],["mat-stroked-button","","type","button","color","primary","matTooltip","Discard changes to display preferences",1,"medium",3,"click"],[1,"bv2-view-loading"],["tabindex","0",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"large"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","onRowDragDrop","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving",
"sort"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2),F(3,yXb,2,0,"div"),F(4,zXb,2,0,"div"),F(5,CXb,8,6,"div"),L(),F(6,DXb,5,0,"div",3),K(7,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(8,JXb,4,3,"div"),L());a&2&&(Kf("aria-busy",b.isLoading),B(3),G(b.resource||b.isLoading?-1:3),B(),G(!b.resource&&b.isLoading?4:-1),B(),G(b.resource?5:-1),B(),G(b.hasParamChanges()?6:-1),B(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(),G(b.resource?
8:-1))},dependencies:[y4,gB,cB,oK,iA,n5,R4,$T],encapsulation:2});var bVd=[sUd,uUd,vUd,wUd],aVd=[sUd,tUd,uUd,vUd,wUd],q5=function(){};q5.\u0275fac=function(a){return new (a||q5)};q5.\u0275mod=cf({type:q5});q5.\u0275inj=Hc({imports:[RO,l5,iB,pK,o5,S4,bU]});var r5=function(){Q4.apply(this,arguments);this.savedSearchApi=p(jP);this.resource=null};Y(r5,Q4);r5.\u0275dir=Q4.\u0275dir;r5.prototype.ngOnInit=function(){Q4.prototype.ngOnInit.call(this)};r5.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};r5.prototype.saveResource=function(){return Promise.resolve()};
r5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(r5)))(b||r5)}}();
r5.\u0275cmp=D({type:r5,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},standalone:!1,features:[Gg([YP]),Gf],decls:8,vars:7,consts:[[1,"bv2-panel","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],["tabindex","0"],[3,"pageChange","searchResults","resultsPerPageFixed"],[1,"bv2-panel-controls",3,"panelId"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences or search query have changed"],[1,"bv2-view-loading"],
["tabindex","0","role","region",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"large"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving","sort"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"div",2),F(3,KXb,2,0,"div"),F(4,LXb,2,0,"div"),F(5,OXb,8,6,"div",3),L(),K(6,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(7,TXb,4,3,"div"),L());a&
2&&(Kf("aria-busy",b.isLoading),B(3),G(b.resource||b.isLoading?-1:3),B(),G(!b.resource&&b.isLoading?4:-1),B(),G(b.resource?5:-1),B(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(),G(b.resource?7:-1))},dependencies:[y4,oK,iA,n5,R4,$T],encapsulation:2});var s5=function(){};s5.\u0275fac=function(a){return new (a||s5)};s5.\u0275mod=cf({type:s5});s5.\u0275inj=Hc({imports:[RO,l5,pK,o5,S4,bU]});var t5=function(){this.label="Team"};t5.prototype.ngOnInit=function(){};t5.\u0275fac=function(a){return new (a||t5)};
t5.\u0275cmp=D({type:t5,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&&(K(0,"div",0)(1,"span",1),Of(2,UXb,3,4,"span",2,Nf),L()());a&2&&(Kf("aria-label",b.label),B(2),Pf(b.teamPath))},dependencies:[$E],encapsulation:2});var u5=function(){};u5.\u0275fac=function(a){return new (a||u5)};u5.\u0275mod=cf({type:u5});u5.\u0275inj=Hc({imports:[RO,CV]});var cVd=["form"],dVd=["numberInput"],eVd=/^\d+\.?\d*$/,fVd={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},v5=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new XP;this.displayUnits=0;this.TimeUnit=fVd};
v5.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()})};v5.prototype.ngAfterViewInit=function(){};
v5.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))};v5.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};v5.\u0275fac=function(a){return new (a||v5)};
v5.\u0275cmp=D({type:v5,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(hg(cVd,7),hg(dVd,7));if(a&2){var c;lg(c=mg())&&(b.form=c.first);lg(c=mg())&&(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();K(0,"form",null,0)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label");Q(5," Custom Duration ");L();K(6,"input",4,1);N("keydown",function(d){u(c);switch(d.key){case "-":case "e":case "E":d.preventDefault()}return v()})("paste",function(d){u(c);var e=d.clipboardData.getData("Text");eVd.test(e)||d.preventDefault();
return v()});L()();K(8,"mat-form-field",3)(9,"mat-select",5)(10,"mat-option",6);Q(11,"days");L();K(12,"mat-option",6);Q(13,"year(s)");L()()()()()}a&2&&(B(6),I("ngModel",b.displayNumber)("disabled",b.disabled),Kf("aria-label",b.ariaLabel),B(3),I("ngModel",b.displayUnits)("disabled",b.disabled),B(),I("value",b.TimeUnit.DAYS),B(2),I("value",b.TimeUnit.YEARS))},dependencies:[hE,yj,iE,$D,aE,rE,gE,eE,PD,zE,MD,ED,BD,vU,MH,cA],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 gVd=function(){};gVd.\u0275fac=function(a){return new (a||gVd)};gVd.\u0275mod=cf({type:gVd});gVd.\u0275inj=Hc({imports:[RO,xE,BE,OD,wU,BW]});var w5=function(){};w5.\u0275fac=function(a){return new (a||w5)};w5.\u0275mod=cf({type:w5});w5.\u0275inj=Hc({imports:[RO,iB,MJ,bK,PJ,DU,NU]});var hVd=function(){this.dialogRef=p(NA);this.data=p(PA);this.issueId=this.data.issueId;this.issueTitle=this.data.issueTitle};hVd.prototype.close=function(){this.dialogRef.close(!1)};hVd.\u0275fac=function(a){return new (a||hVd)};
hVd.\u0275cmp=D({type:hVd,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&&(K(0,"h1",0),Q(1,"Unsubscribe From Issue"),L(),K(2,"mat-dialog-content")(3,"div",1),Q(4," Are you sure you would like to unsubscribe from the following issue? "),
L(),M(5,"br"),K(6,"div",2)(7,"a",3)(8,"span"),Q(9),L()(),Q(10," - "),K(11,"span"),Q(12),L()(),M(13,"br"),K(14,"div",1),Q(15," By unsubscribing, you will no longer receive email updates about this issue. "),L()(),K(16,"mat-dialog-actions")(17,"button",4),N("click",function(){return b.close()}),Q(18," Cancel "),L(),K(19,"button",5),N("click",function(){b.dialogRef.close(!0)}),Q(20," Unsubscribe "),L()());a&2&&(B(7),I("href",Eg("/issues/",b.issueId),Pe),B(2),S("b/",b.issueId),B(3),yg(b.issueTitle))},
dependencies:[gB,cB,TA,VA,UA],encapsulation:2});var x5=function(){this.activeSession=p(qu);this.matDialogService=p(QA);this.issueFullFridge=p(cQ);this.analytics=p(aQ);this.routeParams=p(rS);this.iconOnly=!1;this.subscriptionChange=new XP;this.showNotificationSettings=new XP;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=bcd;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"}]])};
x5.prototype.ngOnInit=function(){iVd(this)};x5.prototype.ngOnChanges=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};x5.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};
var iVd=function(a){var b,c;y(function(d){if(d.nextAddress==1)return a.routeParams.unsubscribe!=="true"||a.subscription&&a.subscription==="UNSUBSCRIBED"?d.return():z(d,ie(a.issueFullFridge.watch(a.issueId)),2);if(d.nextAddress!=3){b=d.yieldResult;if(!b)return d.return();a.matDialogService.closeAll();return z(d,ie(OA(a.matDialogService.open(hVd,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3)}if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),a.analytics.trackEvent("editIssue",
"unsubscribeUsingDialog");ce(d)})};da.Object.defineProperties(x5.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});x5.\u0275fac=function(a){return new (a||x5)};
x5.\u0275cmp=D({type:x5,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},standalone:!1,features:[bx],decls:63,vars:30,consts:[["notificationMenu","matMenu"],["allUpdates",""],["all",""],["majorUpdates",""],["major",""],["type","button","mat-button","","matTooltip","Notification menu",1,"notification-menu-button",3,"matMenuTriggerFor","disabled"],
[1,"notification-menu-button-inner"],["size","small",1,"icon",3,"name"],[1,"notification-menu"],[1,"menu-row-container","default-container"],["type","button","mat-menu-item","",1,"default-button","notification-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],[1,"default-divider",3,"vertical"],["type","button","mat-menu-item","","aria-label","Settings",1,"default-settings",3,"click"],
["name","settings-outline","size","small",1,"item-icon"],[1,"menu-row-container"],["type","button","mat-menu-item","","aria-label","All Updates. Receive emails for major and minor updates.","aria-describedby","all-updates-help",1,"notification-option",3,"click"],[1,"subscription-info"],["type","button","mat-menu-item","",1,"subscription-help","help-icon",3,"click","focus","blur"],[3,"panelTemplate","overlayPositions"],["svgIcon","help-outline",1,"subscription-help","item-icon","small"],["type","button",
"mat-menu-item","","aria-label","Major Updates. Receive emails for major updates only.","aria-describedby","major-updates-help",1,"notification-option",3,"click"],["type","button","mat-menu-item","",1,"notification-option",3,"click"],[1,"notification-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"notification-dropdown-icon"],["id","all-updates-help",1,"subscription-help-bubble"],[1,"subscription-help-list"],["id","major-updates-help",1,"subscription-help-bubble"]],template:function(a,
b){if(a&1){var c=t();K(0,"div")(1,"button",5)(2,"div",6);M(3,"b-icon",7);F(4,VXb,2,1);L()()();K(5,"mat-menu",null,0)(7,"div",8)(8,"div",9)(9,"button",10);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION))});M(10,"b-icon",11);K(11,"div",12);Q(12," Default ");L();K(13,"div",13);Q(14," receive emails based on your default settings. ");L()();M(15,"mat-divider",14);K(16,"button",15);N("click",function(f){u(c);return v(b.showNotificationSettings.emit(f))});
M(17,"b-icon",16);L()();M(18,"mat-divider");K(19,"div",17)(20,"button",18);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))});K(21,"div",19);M(22,"b-icon",11);K(23,"div",12);Q(24," All Updates ");L();K(25,"div",13);Q(26," receive emails for major and minor updates. ");L()()();K(27,"button",20);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))})("focus",function(){u(c);var f=qg(29);
return v(f.toggle(!0))})("blur",function(){u(c);var f=qg(29);return v(f.toggle(!1))});K(28,"xap-bubble",21,1);M(30,"mat-icon",22);E(31,WXb,13,0,"ng-template",null,2,Mg);L()()();K(33,"div",17)(34,"button",23);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))});K(35,"div",19);M(36,"b-icon",11);K(37,"div",12);Q(38," Major Updates ");L();K(39,"div",13);Q(40," receive emails for major updates only. ");L()()();K(41,"button",20);N("click",function(){u(c);
return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))})("focus",function(){u(c);var f=qg(43);return v(f.toggle(!0))})("blur",function(){u(c);var f=qg(43);return v(f.toggle(!1))});K(42,"xap-bubble",21,3);M(44,"mat-icon",22);E(45,XXb,17,0,"ng-template",null,4,Mg);L()()();K(47,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY))});K(48,"div",17)(49,"div",19);M(50,"b-icon",11);K(51,"div",12);Q(52," Closure Only ");
L();K(53,"div",13);Q(54," only receive emails when the issue is closed. ");L()()()();K(55,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED))});K(56,"div",17)(57,"div",19);M(58,"b-icon",11);K(59,"div",12);Q(60," None ");L();K(61,"div",13);Q(62," unsubscribe from further email updates. ");L()()()()()()}if(a&2){a=qg(6);var d=qg(32),e=qg(46);B();wg("small",b.iconOnly)("medium",!b.iconOnly)("icon-only",b.iconOnly);I("matMenuTriggerFor",a)("disabled",
b.isAnonymous);Kf("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);B(2);wg("black",b.menuIcon==="notifications-off");I("name",b.menuIcon);B();G(b.iconOnly?-1:4);B(5);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);I("vertical",!0);B(5);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(7);Kf("aria-label","This includes emails about major updates and All title, hotlist, and status changes, Blocking, Blocked By, or Duplicate changes, Changes to Reporter, Verifier, and CCs, changes to Type, Found In, Targeted To, Verified In, In Prod, and Changes to custom fields marked as minor.");
B();I("panelTemplate",d)("overlayPositions",b.bubblePosition);B(6);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(7);Kf("aria-label","This includes emails about New comments, New status updates, Priority or Severity changes, Assignee changes, Component changes, Issue closure or reopening, and Changes to custom fields marked as major.");B();I("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);wg("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Dy,gB,cB,aK,OJ,YG,WG,aH,pT,RV,oK,iA],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 y5=function(){};y5.\u0275fac=function(a){return new (a||y5)};y5.\u0275mod=cf({type:y5});y5.\u0275inj=Hc({imports:[RO,iB,bK,PJ,DU,NU,oX,pK]});var z5=function(){this.sloApi=p(FQ);this.cdr=p(YP,{self:!0});this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new XP;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},jVd=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()};
z5.prototype.displayFn=function(a){return(a==null?void 0:a.name)||(a==null?void 0:a.sloId)||""};z5.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.sloId;this.onSloSelect.emit(a);this.cdr.detectChanges()};
da.Object.defineProperties(z5.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)}}});z5.\u0275fac=function(a){return new (a||z5)};
z5.\u0275cmp=D({type:z5,selectors:[["slo-picker"]],inputs:{isDisabled:[0,"bv2Disabled","isDisabled"],placeholder:[0,"bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},standalone:!1,features:[Gg([YP])],decls:7,vars:5,consts:[["searchInput",""],["auto","matAutocomplete"],[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"ngModelChange","click","input","placeholder","ngModel","disabled","matAutocomplete"],
["panelWidth","574px",3,"optionSelected","displayWith"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"input",3,0);Cg("ngModelChange",function(d){u(c);Bg(b.selectedSlo,d)||(b.selectedSlo=d);return v(d)});N("click",function(){u(c);var d=qg(2);return v(jVd(b,d.value))})("input",function(){u(c);var d=qg(2);return v(jVd(b,d.value))});L();K(3,"mat-autocomplete",4,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Of(5,YXb,2,2,"mat-option",
5,Nf);L()()}a&2&&(a=qg(4),B(),I("placeholder",b.placeholder),Ag("ngModel",b.selectedSlo),I("disabled",b.isDisabled)("matAutocomplete",a),B(2),I("displayWith",b.displayFn),B(2),Pf(b.dropdownChoices))},dependencies:[TX,QX,cA,RX,yj,$D,gE],encapsulation:2});var A5=function(){};A5.\u0275fac=function(a){return new (a||A5)};A5.\u0275mod=cf({type:A5});A5.\u0275inj=Hc({imports:[RO,VX,xE]});var B5=function(){this.documentationLinks=p(YR);this.activeSession=p(qu);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new XP;this.validChange=new XP;this.indefiniteRetentionComponentsAllowlist=new Set(this.activeSession.getIndefiniteRetentionComponentsAllowlist());this.RetentionSelection=lcd};
B5.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};Vt(this)};B5.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);Vt(this)};
var Vt=function(a){var b;if(b=hYb(a))b=(b=a.model.piiRetentionSelection)&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!kVd(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||lVd(a));a.validChange.emit(b)},mVd=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},hYb=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)},$Xb=function(a){return a?eUa(a):"[unset period]"},lVd=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},eYb=function(a){if(!hYb(a)||lVd(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 "+$Xb(e):"Restricted+ retention must not exceed Restricted retention."},kVd=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||a.model.retentionPeriodDays<60)},iYb=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};B5.\u0275fac=function(a){return new (a||B5)};
B5.\u0275cmp=D({type:B5,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&&(K(0,"mat-radio-group",0),N("ngModelChange",
function(c){return b.updateSelectionOnChange(c)}),K(1,"p")(2,"b"),Q(3,"Issue Retention"),L()(),K(4,"mat-radio-button",1),Q(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),L(),K(6,"mat-radio-button",2),Q(7," Custom retention period "),F(8,ZXb,2,0,"span",3),F(9,aYb,4,3,"div",4),F(10,bYb,13,0,"div",5),L(),K(11,"mat-radio-button",6),Q(12),F(13,cYb,13,0,"div",7),L()(),K(14,"mat-radio-group",8),N("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=
null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);Vt(b)}),K(15,"p"),M(16,"br"),K(17,"b"),Q(18,"Restricted Comments/Attachments Retention "),L(),K(19,"a",9),Q(20,"Learn more "),L()(),K(21,"mat-radio-button",1),Q(22," Buganizer default retention period : 60 days "),F(23,dYb,2,0,"span",3),L(),K(24,"mat-radio-button",10),Q(25," Custom retention period "),F(26,fYb,2,1,"span",3),F(27,jYb,16,7,"div",4),L(),K(28,"mat-radio-button",6),Q(29," Match Issue Retention "),F(30,kYb,3,0,"div",
11),L()());a&2&&(wg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),I("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),I("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.retentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||b.model.retentionPeriodDays&&b.model.retentionPeriodDays>=30&&b.model.retentionPeriodDays<=7300?-1:
8),B(),G(b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD?9:-1),B(),G(b.model.retentionPeriodDays&&b.model.retentionPeriodDays>3650?10:-1),B(),I("disabled",!mVd(b))("value",b.RetentionSelection.INDEFINITE_RETENTION),B(),S(" Indefinite retention period ",mVd(b)?"":"(Internal components only)"," "),B(),G(b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION?13:-1),B(),wg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),
I("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),I("rel",b.EXTERNAL_LINK_REL),Kf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Pe),B(2),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&kVd(b)?23:-1),B(),Jf("aria-label","Custom Retention Period,"+eYb(b)),I("disabled",!hYb(b))("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.piiRetentionSelection!==
b.RetentionSelection.CUSTOM_PERIOD||lVd(b)?-1:26),B(),G(b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD?27:-1),B(),I("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&iYb(b)?30:-1))},dependencies:[$D,gE,qT,rT,v5],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 C5=function(){};C5.\u0275fac=function(a){return new (a||C5)};C5.\u0275mod=cf({type:C5});C5.\u0275inj=Hc({imports:[RO,xE,EU,gVd]});var nVd=function(){this.type="component";this.includeChildren=!1},oVd=function(){this.type="tracker"},pVd=function(){this.type="team";this.includeChildren=!1},qVd=function(){this.type="hotlist"},rVd=function(){this.type="savedsearch"},sVd=function(){this.type="customfield"};var tVd=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},uVd="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),vVd=uVd.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(" ")),
wVd="attachmentanalysis cl deleted deletionreason deletiontime escalationowner insight nearestslo postmortem staffingplaceholder staffingplaceholdercount staffinguser staffingusercount teamid".split(" "),xVd="(?:\\s|^)(-?)(customfield\\d+|"+vVd.join("|")+")(:|>|<|>=|<=|=)";var D5=function(){Z.call(this);var a=this;this.appSearchState=p(oT);this.trackerFridge=p(RQ);this.trackerHelpers=p(fS);this.customFieldsApi=p(pP);this.hotlistApi=p(bP);this.savedSearchApi=p(jP);this.componentActions=p(WV);this.teamsService=p(KQ);this.activeSession=p(qu);this.currentUserBookmarksFridge=p(lP);this.query="";this.requestIndex=0;this.atomsWithoutOp=Object.freeze(new Set(["customfield"]));this.producers=[{match:function(e){return yVd(a,e)}},{updateHeader:function(e){return zVd(a,e)}},{updateHeader:function(e){return AVd(a,
e)}},{updateHeader:function(e){return BVd(a,e)}},{updateHeader:function(e){return CVd(a,e)}},{updateHeader:function(e){return DVd(a,e)}},{updateHeader:function(e){return EVd(a,e)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new sf;this.refreshRequest$=new sf;this.refreshRequest$.pipe(lf(250),Bf(this.destroyed$)).subscribe(function(e){FVd(a,e.currentRequestIndex,e.currentSearchContext)});this.sessionIsInternal=this.activeSession.isInternalSession();var b=new Set(vVd);
if(!this.sessionIsInternal)for(var c=m(wVd),d=c.next();!d.done;d=c.next())b.delete(d.value);this.isTrackerSearchEnabled()||b.delete("trackerid");this.atoms=Object.freeze(b)};Y(D5,Z);D5.\u0275dir=Z.\u0275dir;D5.prototype.isTrackerSearchEnabled=function(){return!qs(this.activeSession)};
var FVd=function(a,b,c){for(var d=!1,e=!1,f=[],g=m(a.producers),k=g.next();!k.done;k=g.next())k=k.value,k.match&&f.push(k.match(c).then(function(l){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,q(l))}).catch(function(l){return l})),k.updateHeader&&f.push(k.updateHeader(c).then(function(l){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=l)}).catch(function(l){return l}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},yVd=
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 GVd(a,b);if(b.label){if(b.label.customFieldId)return HVd(a,b);switch(b.label.val){case "archived":return Promise.resolve(Yt(IVd,b.value,!0));case "componentid":case "c":return JVd(a,b);case "deleted":return KVd(b);case "deletionreason":return Promise.resolve(Yt(LVd,
b.value,!0));case "hotlistid":case "h":return MVd(a,b);case "savedsearchid":return NVd(a,b);case "status":case "is":return Promise.resolve(Yt(OVd,b.value,!0));case "trackerid":return PVd(a,b);case "teamid":return QVd(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(Yt(RVd,b.value,!0));case "severity":case "s":return Promise.resolve(Yt(SVd,b.value,!0));case "inprod":case "star":case "mute":return KVd(b);case "accesslevel":return Promise.resolve(Yt(TVd,
b.value,!0));case "staffingplaceholder":return UVd(a,b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];d=nYb(b.value.val);e=m(a.atoms);for(var f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&f.startsWith(d.token)){var g=b.value.idx+(d.negated?1:0);g={type:"atom",startIdx:g,endIdx:g+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};c.push({trackId:"atom:"+f,name:f,completionCfg:g})}c.sort(function(k,l){return wa(k.name,
l.name)});return Promise.resolve(c)},GVd=function(a,b){var c=b.value.val.replace(/^(cf|customfield)/,""),d=crd(a.appSearchState);if(!c&&!d)return Promise.reject(null);var e=gnd(a.trackerHelpers)||[];return a.customFieldsApi.query({query:d?"componentid:"+d+" "+c:c,trackerIds:e}).then(function(f){return VVd(a,b,f)})},VVd=function(a,b,c){var d=c.customFields.map(function(g){return g.componentId}).filter(Qm);d.length>0&&a.componentActions.bulkLoad(d);d=[];c=m(c.customFields);for(var e=c.next(),f={};!e.done;f=
{customField$jscomp$28:void 0},e=c.next())f.customField$jscomp$28=e.value,e=a.getComponentPathNames(f.customField$jscomp$28).then(function(g){return function(k){var l=g.customField$jscomp$28,r=b.value.val,w=l.customFieldId,x=b.value.idx;return{id:w,componentPathNames:k,name:l.name,trackId:"customField:"+w,completionCfg:{type:"customField",startIdx:x,endIdx:x+r.length,completionValue:"customfield"+w+":",matchingString:r}}}}(f)),d.push(e);return Promise.all(d)};
D5.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 HVd=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 Yt(d,b.value,!1,!1)}):Promise.reject(null)};
D5.prototype.matchType=function(a){return Promise.resolve(Yt(WVd,a.value,!0))};
var UVd=function(a,b){return Promise.resolve(Yt(a.activeSession.getFlag("enableStaffingFieldEnhancementsUi")?XVd:YVd,b.value,!0))},KVd=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(Yt([{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))},
JVd=function(a,b){var c=b.value.val;return!c||Xt(c,!0)?Promise.reject(null):a.componentActions.search(c,!1).then(function(d){return a.processResponse(b,d)})};
D5.prototype.processResponse=function(a,b){var c=a.value.val,d=[];b=m(b);for(var e=b.next(),f={};!e.done;f={paths$jscomp$19:void 0,startIdx$jscomp$4:void 0,endIdx$jscomp$4:void 0},e=b.next()){e=e.value;var g=e.componentId;f.startIdx$jscomp$4=a.value.idx;f.endIdx$jscomp$4=f.startIdx$jscomp$4+c.length;f.paths$jscomp$19=fu(this.trackerHelpers,e.componentPathInfo);f={id:g,name:e.name,description:e.description,trackId:"component:"+g,accessLimit:e.accessLimit,trackerId:e.trackerId,completionCfg:{type:"component",
startIdx:f.startIdx$jscomp$4,endIdx:f.endIdx$jscomp$4,completionValue:g,matchingString:c},componentPath:f.paths$jscomp$19.componentPathId.map(function(k){return function(l,r){return{trackId:"subcomponent:"+l,id:l,name:k.paths$jscomp$19.componentPathName[r],completionCfg:{type:"component",completionValue:l,startIdx:k.startIdx$jscomp$4,endIdx:k.endIdx$jscomp$4}}}}(f))};d.push(f)}return d};
var QVd=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||Xt(c,!0))return Promise.reject(null);var d=ro();MQ(a.teamsService,c).pipe(Bf(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=m(e);for(var l=e.next(),r={};!l.done;r={pathNames$jscomp$5:void 0},l=e.next())l=l.value,r.pathNames$jscomp$5=l.pathNames,r={trackId:"team:"+l.teamId,name:l.name,id:l.teamId,label:"Team "+l.teamId,pathIds:l.pathIds,pathNames:l.pathNames,description:l.description,completionCfg:{type:"team",
startIdx:f,endIdx:g,completionValue:String(l.teamId),matchingString:c},teamPath:l.pathIds.map(function(w){return function(x,C){return{trackId:"team:"+x,id:x,name:w.pathNames$jscomp$5[C],completionCfg:{type:"team",completionValue:String(x),startIdx:f,endIdx:g}}}}(r))},k.push(r);d.resolve(k)},function(){d.reject()});return d.promise},zVd=function(a,b){if(!b.label||b.label.val!=="componentid"&&b.label.val!=="c")return Promise.reject(null);var c=new nVd;b=b.value.val;return Xt(b,!0)?(va(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(b).then(function(d){var e;qs(a.activeSession)&&d.trackerId!==((e=a.activeSession.getTracker())==null?void 0:e.trackerId)||(c.component=d);return c})):Promise.resolve(c)},CVd=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||b.label.val!=="trackerid")return Promise.reject(null);var c=new oVd,d=ro();b=b.value.val;Xt(b)?a.trackerFridge.watch(b).pipe(Bf(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);return d.promise},
EVd=function(a,b){if(!a.sessionIsInternal||!b.label||b.label.val!=="teamid")return Promise.reject(null);var c=new pVd,d=ro(),e=b.value.val;Xt(e,!0)?(va(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),MQ(a.teamsService,e).pipe(Bf(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},AVd=function(a,b){if(!b.label||b.label.val!=="hotlistid"&&b.label.val!=="h")return Promise.reject(null);var c=new qVd;b=b.value.val;return Xt(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},BVd=function(a,b){if(!b.label||b.label.val!=="savedsearchid")return Promise.reject(null);var c=new rVd;b=b.value.val;return Xt(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
DVd=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]),er("search-usage","customfield");else return Promise.reject(null);var d=new sVd;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},PVd=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||Xt(c,!0))return Promise.reject(null);var d=ro();a.trackerFridge.watchMany({filter:c,
pageSize:5}).pipe(Bf(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=m(e.results);for(var l=e.next();!l.done;l=e.next())l=l.value,k.push({trackId:"trackerid:"+l.trackerId,name:l.name,id:l.trackerId,label:"Tracker "+l.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:g,completionValue:l.trackerId,matchingString:c}});d.resolve(k)});return d.promise},MVd=function(a,b){return Xt(b.value.val)?Promise.reject(null):ie(mP(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 Yt(c,b.value,!1,!0)})},NVd=function(a,b){return Xt(b.value.val)?Promise.reject(null):ie(Ifd(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 Yt(c,b.value,!1,!0)})};
D5.\u0275fac=function(a){return new (a||D5)};D5.\u0275prov=Fc({token:D5,factory:D5.\u0275fac,providedIn:"root"});
var OVd="accepted assigned closed duplicate fixed inactive infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return Zt({name:a,label:"Status",type:"status"})}),WVd="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue program project feature milestone epic story task".split(" ").map(function(a){return Zt({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),RVd=["p0","p1","p2","p3","p4"].map(function(a){return Zt({name:a,
label:"Priority",type:"priority"})}),SVd=["s0","s1","s2","s3","s4"].map(function(a){return Zt({name:a,label:"Severity",type:"severity"})}),IVd=["all","true","false"].map(function(a){return Zt({name:a,label:"Archived",type:"archived"})}),LVd=["abuse","pii","user_request","retention"].map(function(a){return Zt({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),TVd=[["limit_none","Default access"],["limit_view","Limited visibility"],["limit_append","Limited commenting"],
["limit_view_trusted","Limited visibility + Google"]].map(function(a){var b=m(a);a=b.next().value;b=b.next().value;return Zt({name:b,label:"Issue access level",type:"accesslevel",id:a})}),YVd=[["swe",EN.SWE],["sre",EN.SRE],["pm",EN.PM],["tpgm",EN.TPGM],["ux",EN.UX]].map(function(a){var b=m(a);a=b.next().value;b=b.next().value;return Zt({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})}),XVd=[["swe",EN.SWE],["sre",EN.SRE],["pm",EN.PM],["tpgm",EN.TPGM],["ux",EN.UX],["uxd",EN.UXD],
["uxr",EN.UXR],["datasci",EN.DATASCI],["ld",EN.LD],["devrel",EN.DEVREL],["tw",EN.TW],["gtm",EN.GTM],["ce",EN.CE],["other",EN.OTHER]].map(function(a){var b=m(a);a=b.next().value;b=b.next().value;return Zt({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})});var E5=function(){this.cdr=p(YP,{self:!0});this.optionsChange=new XP};E5.prototype.ngOnInit=function(){ZVd(this)};E5.prototype.onSelectionChanged=function(){ZVd(this);$Vd(this);this.optionsChange.emit(this.options)};
var ZVd=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},$Vd=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},aWd=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);$Vd(a)},bWd=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(", ")};E5.\u0275fac=function(a){return new (a||E5)};
E5.\u0275cmp=D({type:E5,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},standalone:!1,features:[Gg([YP])],decls:17,vars:11,consts:[["menu","matMenu"],["type","button","mat-stroked-button","",1,"bv2-appbar-menu",3,"matMenuTriggerFor"],[1,"flex-kids-x","flex-cross-axis-centered"],[1,"bv2-property-picker-summary-text"],["svgIcon","arrow-dropdown"],["mat-menu-item","","role","menuitemcheckbox",
1,"bv2-property-picker-selectall","bv2-property-picker-option-row",3,"click"],[3,"change","checked","indeterminate"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-options"],[1,"bv2-property-picker-error-message"],["title","option",1,"bv2-property-picker-option-row",3,"click"],[3,"change","click","checked"]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"button",1)(2,"div",2)(3,"span",3);Q(4);Q(5," \u00a0 ");L();M(6,"mat-icon",4);L()();K(7,"mat-menu",null,0)(9,"div",
5);N("click",function(d){u(c);return v(aWd(b,d))});K(10,"mat-checkbox",6);N("change",function(d){u(c);b.selectAllValue=d.checked;return v(aWd(b))});Q(11);L()();M(12,"mat-divider");Of(13,oYb,4,3,"div",7,Nf);T(15,"keyvalue");L();F(16,pYb,2,1,"div",8);L()}a&2&&(a=qg(8),B(),wg("ng-invalid",!!b.errorString),I("matMenuTriggerFor",a),B(3),S(" ",bWd(b)," "),B(5),Kf("aria-checked",b.selectAllValue),B(),I("checked",!!b.selectAllValue)("indeterminate",b.selectAllValue===null),B(),S(" ",b.selectAllText," "),
B(2),Pf(U(15,9,b.options.propertyValues)),B(3),G(b.errorString?16:-1))},dependencies:[Dy,fL,aI,OJ,YG,WG,aH,aK,gB,cB,Qx],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 cWd=function(a,b){this.displayString=a;this.value=b},dWd=function(a){this.propertyValues=a},eWd=function(a){for(var b=m(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},lZb=function(a){for(var b=m(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};dWd.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};var F5=function(){};F5.\u0275fac=function(a){return new (a||F5)};F5.\u0275mod=cf({type:F5});F5.\u0275inj=Hc({imports:[RO,gL,PJ,bK,iB]});var fWd=function(a,b){this.name=a;this.secondsPerUnit=b},BYb=new fWd("minute",60),CYb=new fWd("hour",3600),DYb=new fWd("day",86400),G5=function(){this.errorString=null;this.objectiveDurationChange=new XP;this.objectiveBusinessDaysChange=new XP;this.intervalUnit=DYb};G5.prototype.ngOnInit=function(){gWd(this)};G5.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.firstChange})&&gWd(this)};
var sYb=function(a,b){b=b.name;sm(a.intervalString)!==1&&(b+="s");return b},AYb=function(a){return a.dayType==="BUSINESS"},gWd=function(a){!AYb(a)&&hWd(a,DYb)||hWd(a,CYb)||hWd(a,BYb);if(a.objectiveBusinessDays!=0||a.businessDayString!="")a.businessDayString=""+a.objectiveBusinessDays},hWd=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):(AYb(a)?[BYb,CYb]:[BYb,CYb,DYb]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},vYb=function(a){a.validator&&(a.errorString=a.validator(a.intervalString,a.businessDayString));yYb(a);zYb(a)},yYb=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(sm(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},zYb=function(a){a.objectiveBusinessDays=sm(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};G5.\u0275fac=function(a){return new (a||G5)};
G5.\u0275cmp=D({type:G5,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},standalone:!1,features:[bx],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,uYb,3,2,"span",0)(1,EYb,7,5,"span",1);a&2&&G(b.isDisabled?0:1)},dependencies:[yj,$D,gE,vU,MH,cA],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 iWd=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"]])},mWd=function(a,b){var c=new jWd,d=kWd(b,"type",function(f){var g=f.toUpperCase(),k=new lWd;a.typeStringToEnum.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;d=m(d.values);for(var e=d.next();!e.done;e=d.next())c.types.push(a.typeStringToEnum.get(e.value));d=kWd(b,"priority",function(f){var g=
f.toUpperCase(),k=new lWd;a.priorityStringToEnum.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;d=m(d.values);for(e=d.next();!e.done;e=d.next())c.priorities.push(a.priorityStringToEnum.get(e.value));b=kWd(b,"postmortem",function(f){var g=f.toUpperCase(),k=new lWd;a.postmortemValuesToCanonical.has(g)?k.value=g:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=m(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},kWd=function(a,b,c){var d=new nWd;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};iWd.\u0275fac=function(a){return new (a||iWd)};iWd.\u0275prov=Fc({token:iWd,factory:iWd.\u0275fac,providedIn:"root"});
var jWd=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},nWd=function(){this.values=[];this.error=""},lWd=function(){this.error=this.value=""};var H5=function(){};H5.prototype.validate=function(a){for(var b={},c=m(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};H5.\u0275fac=function(a){return new (a||H5)};H5.\u0275dir=df({type:H5,selectors:[["","customValidators",""]],inputs:{validators:[0,"customValidators","validators"]},standalone:!1,features:[Gg([{provide:WD,useExisting:H5,multi:!0}])]});var I5=function(){this.constants=p(bS);this.sloParseService=p(iWd);this.confirmationDialogService=p(ZR);this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new XP;this.onValidation=new XP;this.metricChoices=["METRIC_UNSPECIFIED"].concat(yjd);this.dayTypes=["CALENDAR","BUSINESS"];yjd.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};I5.prototype.updateValidity=function(){this.canPerformActions=!this.openRow};
var pZb=function(a,b,c){mZb(a);a=m(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},sZb=function(a,b,c){c=vZb(a,b,c);var d=c.newOffset;c.valid&&(mZb(a),La(a.collection,b),La(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),oWd(a))},vZb=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:b>=0&&b<a.collection.length,newOffset:b}},mZb=function(a){a=m(a.collection);for(var b=a.next();!b.done;b=
a.next())b=b.value,b.stopEditing(),b.canEdit=!0},pWd=function(a,b){var c=b.map(function(d){return new J5(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.updateValidity()},bZb=function(a){return a==="METRIC_UNSPECIFIED"?" - ":zjd.get(a)},OYb=function(a,b){return b!=="TYPE_UNSPECIFIED"&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},UYb=function(a,b){return b!=="PRIORITY_UNSPECIFIED"&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):
" - "},nZb=function(a,b){mZb(a);La(a.collection,b);La(a.boundCollection,b.sloElement);oWd(a)},HYb=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Bh("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];oWd(a)},onDismiss:function(){}});b.stopPropagation()},FYb=function(a,b){var c=new J5({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",
objective:{seconds:0,nanos:0},businessDays:0},a,!0);pZb(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);oWd(a)};I5.prototype.onDrop=function(a){sZb(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var oWd=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
da.Object.defineProperties(I5.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){pWd(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=m(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});I5.\u0275fac=function(a){return new (a||I5)};
I5.\u0275cmp=D({type:I5,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&&(K(0,"div",1)(1,"div")(2,"div")(3,"label",2),Q(4,"Rules"),L(),K(5,"a",3),
M(6,"b-icon",4),L(),F(7,IYb,6,3,"span",5),L(),K(8,"table",6)(9,"thead")(10,"tr",7)(11,"th",8),Q(12,"Order"),L(),K(13,"th",9),Q(14,"Type"),L(),K(15,"th",10),Q(16,"Priority"),L(),K(17,"th",11),Q(18,"Postmortem"),L(),K(19,"th",12),Q(20,"Metric"),L(),K(21,"th",13),Q(22,"Objective"),L(),K(23,"th",14),Q(24," Day Type "),L(),M(25,"th",15),L()(),F(26,yZb,3,2,"tbody",16),L(),K(27,"div"),F(28,zZb,2,0,"div",17),L()()());a&2&&(B(6),I("name","help-outline")("size","small"),B(),G(b.isDisabled?-1:7),B(19),G(b.collection&&
b.collection.length!=0?26:-1),B(2),G(b.collection&&b.collection.length!=0?-1:28))},dependencies:[H5,NV,MV,$D,sE,gE,pT,BD,MD,OJ,YG,WG,aH,vU,MH,cA,oK,iA,E5,G5],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 J5=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=eWd(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=e===null;return e};this.validateTypePicker=function(){var e=eWd(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
e===null;return e};this.validatePostmortemPicker=function(){var e=eWd(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=qWd(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return rWd(d,e)}};sWd(this);this.typePickerValues=tWd(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return d.parseResult.types.length===
0||d.parseResult.types.includes(e)},function(e){return OYb(d.controllerReference,e)});this.priorityPickerValues=tWd(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return d.parseResult.priorities.length===0||d.parseResult.priorities.includes(e)},function(e){return UYb(d.controllerReference,e)});this.postmortemPickerValues=tWd(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();rWd(this,this.selectedMetric)},qWd=function(a){return a?a:{seconds:86400,nanos:0}};J5.prototype.isEditing=function(){return this.isEditingInternal};J5.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};
var rWd=function(a,b){b=b!=="METRIC_UNSPECIFIED";return a.metricSelectorValid=b};
J5.prototype.stopEditing=function(){this.isEditingInternal&&(this.isValid()||this.isNewElement)&&(this.controllerReference.openRow=null,this.controllerReference.updateValidity(),this.isEditingInternal=this.isNewElement=!1,this.canEdit=!0,uWd(this),this.sloElement.metric=this.selectedMetric,this.sloElement.dayType=this.selectedDayType,this.sloElement.objective=this.selectedObjectiveDuration,this.sloElement.businessDays=this.selectedObjectiveBusinessDays,sWd(this))};
var uWd=function(a){var b=a.getEnumValues(a.typePickerValues),c=a.getEnumValues(a.priorityPickerValues),d=a.getEnumValues(a.postmortemPickerValues);b=vWd(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=vWd(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=vWd(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};J5.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 vWd=function(a,b){if(a.length===0)return"";if(a.length===1)return b(a[0]);var c=[];a=m(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
J5.prototype.startEditing=function(){this.isEditingInternal||(this.controllerReference.canPerformActions=!1,this.controllerReference.openRow=this,this.controllerReference.updateValidity(),this.canEdit=!1,this.isEditingInternal=!0,sWd(this))};var sWd=function(a){a.parseResult=mWd(a.controllerReference.sloParseService,a.matcherText)},tWd=function(a,b,c){var d={};a=m(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),g=c(e);d[""+e]=new cWd(g,f)}return new dWd(d)};var K5=function(){};K5.\u0275fac=function(a){return new (a||K5)};K5.\u0275mod=cf({type:K5});K5.\u0275inj=Hc({imports:[RO,xE,wU]});var L5=function(){};L5.\u0275fac=function(a){return new (a||L5)};L5.\u0275mod=cf({type:L5});L5.\u0275inj=Hc({imports:[RO]});var M5=function(){};M5.\u0275fac=function(a){return new (a||M5)};M5.\u0275mod=cf({type:M5});M5.\u0275inj=Hc({imports:[RO,L5,OV,xE,DU,OD,PJ,wU,pK,F5,K5]});var N5=function(){Z.apply(this,arguments);this.element=p(Jd);this.cdr=p(YP,{self:!0});this.location=p(ZT);this.hotkeys=p(kU);this.focusedIndex=0;this.slos=[]};Y(N5,Z);N5.\u0275dir=Z.\u0275dir;h=N5.prototype;h.setFocusOnIndex=function(a){this.focusedIndex=a};h.isFocused=function(a){return this.focusedIndex===a};h.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};h.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
h.ngOnInit=function(){var a=this,b=lU(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next SLO",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous SLO",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View SLO detail",onPress:function(){var c=a.slos[a.focusedIndex];c&&a.editSlo(c);a.cdr.detectChanges()}}]});
this.destroyed$.subscribe(b)};h.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};h.renderRowLabel=function(a){return this.slos[a].name};h.editSlo=function(a){this.location.path(ps.editSlo.makeHref(a.sloId))};
N5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(N5)))(b||N5)}}();
N5.\u0275cmp=D({type:N5,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},standalone:!1,features:[Gg([YP]),Gf],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&&(K(0,"table",0)(1,"thead")(2,"tr",1),M(3,"th",2),K(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," SLO name "),L()()()(),K(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),L()()()()()(),K(14,"tbody"),Of(15,AZb,7,7,"tr",6,Nf),L()());a&2&&(B(15),Pf(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 O5=function(){};O5.\u0275fac=function(a){return new (a||O5)};O5.\u0275mod=cf({type:O5});O5.\u0275inj=Hc({imports:[RO]});var wWd=function(){this.log=p(iO);this.dateFormatter=p(qS)},yWd=function(a,b){var c=rLb(b.addMask.paths),d=rLb(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var g=m(new Set([].concat(q(c),q(d)))),k=g.next();!k.done;k=g.next()){var l=k.value;k=Ajd.get(l);if(l==="name"){var r=Nt(d,l,b.name);l=Nt(c,l,f.name);e.diffs.push(Ot(k,r,l))}else if(l==="description")r=Nt(d,l,b.description),l=Nt(c,l,f.description),e.diffs.push(Ot(k,r,l));else if(l===
"parentId")r=Nt(d,l,String(b.parentId)),l=Nt(c,l,String(f.parentId)),e.diffs.push(Ot(k,r,l));else if(l==="elements"){var w=f.elements;r=sLb(d,l,b.elements.map(function(x){return xWd(x)}));l=sLb(c,l,w.map(function(x){return xWd(x)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:r,added:l}})}else a.log.error("Unsupported diff field.")}return e},xWd=function(a){var b=a.matcher,c=zjd.get(a.metric),d=hZb.get(a.dayType),e=[];a.businessDays>0&&e.push(a.businessDays+" day"+(a.businessDays>
1?"s":""));a.objective.seconds>0&&e.push(J7a(a.objective.seconds*1E3));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};wWd.\u0275fac=function(a){return new (a||wWd)};wWd.\u0275prov=Fc({token:wWd,factory:wWd.\u0275fac,providedIn:"root"});var zWd=function(){};zWd.\u0275fac=function(a){return new (a||zWd)};zWd.\u0275mod=cf({type:zWd});zWd.\u0275inj=Hc({imports:[RO,iB,MJ]});var CWd=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=m(AWd);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a[c]){var d=a[c],e=void 0;Array.isArray(d)?e=d.map(function(f){return typeof f==="string"?Aa(f):""}):e=typeof d==="string"?Aa(d):"";this.templateAttributes[c]=e}b=m(BWd);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=m(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),ya(c)||(this.templateCustomFields[b[0]]=c)},EWd=function(a){return Object.keys(a.templateCustomFields||{}).length!==0||DWd.some(function(b){return a.templateAttributes[b]!=null})},JWd=function(a,b,c){c!=null&&(FWd(a,c),GWd(a,b,c),HWd(b,c));c=m(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;e=e.next().value;IWd[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},GWd=function(a,b,c){b.customField==null&&(b.customField=
[]);for(var d={},e=m(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e=m(Object.entries(a.templateCustomFields));var g=e.next();for(f={};!g.done;f={customFieldId$jscomp$28:void 0},g=e.next()){var k=m(g.value);g=k.next().value;k=k.next().value;f.customFieldId$jscomp$28=sm(g);k={customFieldId:f.customFieldId$jscomp$28,value:k};g=a.getCustomFieldValue(k,c);d[f.customFieldId$jscomp$28]!=null?(f=b.customField.findIndex(function(l){return function(r){return r.customFieldId===
l.customFieldId$jscomp$28}}(f)),b.customField[f]=g):(b.customField.push(g),d[k.customFieldId]=g)}};
CWd.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=R1a(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=S1a(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 R1a(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 S1a(e)}).filter(function(e){return e!==null});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};CWd.prototype.getCustomFieldType=function(a,b){var c,d;return(d=(c=b[a.customFieldId])==null?void 0:c.type)!=null?d:""};
var FWd=function(a,b){a.templateCustomFields=bj(a.templateCustomFields,function(c,d){return!!b[d]})},HWd=function(a,b){if(a.customField!=null){a=m(a.customField);for(var c=a.next(),d={};!c.done;d={allowedValues:void 0},c=a.next()){c=c.value;var e=b[c.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){d.allowedValues=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(c.repeatedEnumValue=c.repeatedEnumValue||{values:[]},c.repeatedEnumValue.values=c.repeatedEnumValue.values.filter(function(g){return function(k){return g.allowedValues.includes(k)}}(d)),
!c.repeatedEnumValue.values.length&&f&&(c.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):d.allowedValues.includes(c.enumValue)||(c.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},AWd="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),BWd=["inProd"],DWd="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),P5={},IWd=(P5.cc=function(a,b){a.ccUsers=
EZb(b,a.ccUsers||[])},P5.collaborators=function(a,b){a.collaboratorsUsers=EZb(b,a.collaboratorsUsers||[])},P5.title=function(a,b){typeof b==="string"&&(a.title=b)},P5.assignee=function(a,b){DZb(b,function(c){a.assigneeUser=c})},P5.reporter=function(a,b){DZb(b,function(c){a.reporterUser=c})},P5.verifier=function(a,b){DZb(b,function(c){a.verifierUser=c})},P5.hotlistIds=function(a,b){if(b=BZb(b)){a.hotlistId||(a.hotlistId=[]);b=m(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},P5.blockingIssueIds=
function(a,b){if(b=BZb(b))a.blockingIssueId=b.map(String)},P5.blockedByIssueIds=function(a,b){if(b=BZb(b))a.blockedByIssueId=b.map(String)},P5.foundIn=function(a,b){typeof b==="string"&&(a.foundInVersion=b.split(","))},P5.targetedTo=function(a,b){typeof b==="string"&&(a.targetedToVersion=b.split(","))},P5.inProd=function(a,b){a.inProd=b==="true"},P5.priority=function(a,b){if(b=CZb(Qmd,b))a.priority=cRa(b)},P5.severity=function(a,b){if(b=CZb(Wmd,b))a.severity=eRa(b)},P5.type=function(a,b){if(b=CZb(Smd,
b))a.type=dRa(b)},P5);var Q5=function(){this.issueRelationshipApi=p(gQ);this.issueApi=p(HP)};
Q5.prototype.bulkEdit=function(a){var b=this,c,d,e,f,g,k,l,r,w,x,C,H,J;return y(function(O){switch(O.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if(f!=="ADD"&&f!=="REMOVE")throw Error("qg");g={};k=[];l=[];r=D_a(e);w=m(r.reverse());x=w.next();case 2:if(x.done){O.jumpTo(4);break}C=x.value;Yd(O,5);return f==="ADD"?(H=C.map(function(R){return{targetIssueId:R,afterIssueId:void 0}}),z(O,ie($hd(b.issueRelationshipApi,d,H)),8)):z(O,ie(aid(b.issueRelationshipApi,d,C)),
8);case 8:return z(O,b.issueApi.batchGetIssuesFull(C).then(function(R){return R.map(function(V){return g[V.issueId]=V})}),11);case 11:bt(O,3);break;case 5:J=be(O);if(!Rp(J))throw J;l.push(J);k.push.apply(k,q(C));case 3:x=w.next();O.jumpTo(2);break;case 4:return O.return({finishedIssues:g,notFinishedIssueIds:k,errors:l})}})};Q5.\u0275fac=function(a){return new (a||Q5)};Q5.\u0275prov=Fc({token:Q5,factory:Q5.\u0275fac,providedIn:"root"});var KWd=function(){this.issueApi=p(HP);this.templatesApi=p(OO);this.errorHandler=p(kO);this.userAccess=p(yP);this.activeSession=p(qu)},MWd=function(a,b){b=a.issueApi.getIssueFull(b).then(function(c){var d=Object,e=d.assign,f=Ia(c.snapshot),g,k=(g=c.description)==null?void 0:g.unlinkifiedComment,l;g=(l=c.description)==null?void 0:l.formattedComment;f.comment=k?k.trim():g?YTa(g):"";f.status="NEW";f.changelist=null;f.gerritChanges=null;f.duplicateIssueId=null;f.duplicateOfIssueId=null;return e.call(d,
{},{snapshot:f},{trackerId:c.trackerId})}).then(function(c){return LWd(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},LWd=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return zP(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,g){return e[g]});return b})};KWd.\u0275fac=function(a){return new (a||KWd)};KWd.\u0275prov=Fc({token:KWd,factory:KWd.\u0275fac,providedIn:"root"});var R5=function(){this.bLocation=p(ZT);this.routeParams=p(rS);this.domSafe=p(iR)},NWd=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&va(d,"id=")||va(d,"bugId="))d+=c;Skd(a.domSafe,d)}else{var e;a.bLocation.replaceUrl((e=d)!=null?e:b)}};R5.\u0275fac=function(a){return new (a||R5)};R5.\u0275prov=Fc({token:R5,factory:R5.\u0275fac,providedIn:"root"});var OWd={provide:sfd,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},PWd={provide:sfd,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};var S5=function(){this.activeSession=p(qu)};S5.prototype.intercept=function(a,b){if(a.url.startsWith("https://"))return b.handle(a);var c=a.method;return c==="POST"||c==="PUT"||c==="DELETE"?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};S5.\u0275fac=function(a){return new (a||S5)};S5.\u0275prov=Fc({token:S5,factory:S5.\u0275fac,providedIn:"root"});var QWd={provide:WBc,useExisting:S5,multi:!0};var T5=function(){this.http=p(vy)};Y(T5,ZN);h=T5.prototype;h.get=function(a){return this.request("get",a)};h.delete=function(a){return this.request("delete",a)};h.post=function(a){return this.request("post",a,a.body)};h.put=function(a){return this.request("put",a,a.body)};h.request=function(a,b,c){var d=b.options;d=d===void 0?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params)};var e,f;c==null?f=void 0:f=Jda(c);c=(e=f)!=null?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(A(FZb(b.responseConstructor)))};
T5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(T5)))(b||T5)}}();T5.\u0275prov=Fc({token:T5,factory:T5.\u0275fac,providedIn:"root"});var U5=function(){this.jspbExecutor=p(T5)};Y(U5,dO);U5.prototype.get=function(a){return ie(this.jspbExecutor.get(a))};U5.prototype.delete=function(a){return ie(this.jspbExecutor.delete(a))};U5.prototype.post=function(a){return ie(this.jspbExecutor.post(a))};U5.prototype.put=function(a){return ie(this.jspbExecutor.put(a))};
U5.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(U5)))(b||U5)}}();U5.\u0275prov=Fc({token:U5,factory:U5.\u0275fac,providedIn:"root"});var RWd=function(){};RWd.\u0275fac=function(a){return new (a||RWd)};RWd.\u0275mod=cf({type:RWd});RWd.\u0275inj=Hc({providers:[{provide:ZN,useExisting:T5},{provide:dO,useExisting:U5}],imports:[RO]});var V5=function(){var a=this;this.fridge=p(MO);this.userAccess=p(yP);this.currentComponentId="";this.providedComponentId$=new wf(1);this.accessCheckIsThinking$=new Nj(!0);this.component$=this.providedComponentId$.pipe(Af(function(b){return a.fridge.watch(b)}));this.userIsComponentReader$=this.providedComponentId$.pipe(Af(function(b){b!==a.currentComponentId&&(a.accessCheckIsThinking$.next(!0),a.currentComponentId=b);return zP(a.userAccess,"reader","components/"+b).then(function(c){return c},function(){return!1}).finally(function(){a.accessCheckIsThinking$.next(!1)})}));
this.isReady$=le([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!b&&!c}),zf(!1));this.manageComponentLink=""};V5.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};V5.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};V5.\u0275fac=function(a){return new (a||V5)};
V5.\u0275cmp=D({type:V5,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},standalone:!1,features:[bx],decls:5,vars:6,consts:[[3,"isReady"],[3,"href"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),T(1,"async"),F(2,GZb,3,4,"a",1),T(3,"async"),Lf(4,HZb,2,1,"output"),L());a&2&&(I("isReady",U(1,2,b.isReady$)),B(2),G(U(3,4,b.userIsComponentReader$)?2:4))},dependencies:[rW,Lx],encapsulation:2});var SWd=function(){this.documentationLinks=p(YR);this.activeSession=p(qu);this.loginRedirector=p(W5);this.isAnonymous=this.activeSession.isAnonymous();this.signInProgressing=this.showIssueMetadataContainer=!1};
da.Object.defineProperties(SWd.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(a){this.issueId=a.issueId;this.issueLastModified=ao(a.modifiedTime);a.teamId&&(this.issueTeamId=a.teamId);if(a=a.issueState){this.issueType=zm(a.type);var b;this.issueStatus=(b=Am.get(a.status))!=null?b:"";this.issuePriority=a.priority;this.issueSeverity=Pcd[a.severity];this.issueComponentId=String(a.componentId);this.accessLimitLevel=Elb(a.accessLimitLevel)}this.showIssueMetadataContainer=!0}else this.showIssueMetadataContainer=
!1}}});SWd.\u0275fac=function(a){return new (a||SWd)};
SWd.\u0275cmp=D({type:SWd,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",3,"click"]],template:function(a,
b){a&1&&(K(0,"div",2)(1,"h3",3),Q(2," Access is denied to this issue "),L(),F(3,JZb,1,1,"ng-container"),F(4,LZb,1,1,"ng-container"),L(),E(5,OZb,40,13,"ng-template",null,0,Mg)(7,RZb,5,1,"ng-template",null,1,Mg));a&2&&(B(3),G(b.showIssueMetadataContainer?3:-1),B(),G(b.isAnonymous?4:-1))},dependencies:[Kx,V5,yW,DV,gB,cB,$T,Ox],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 W5=function(){this.bLocation=p(ZT)};W5.prototype.redirect=function(){var a=yh("/loginRedirect?continue="+encodeURIComponent(this.bLocation.getUrl())),b=window.location;a=Ah(a);a!==void 0&&b.replace(a)};W5.\u0275fac=function(a){return new (a||W5)};W5.\u0275prov=Fc({token:W5,factory:W5.\u0275fac,providedIn:"root"});var TWd=function(){};TWd.\u0275fac=function(a){return new (a||TWd)};TWd.\u0275mod=cf({type:TWd});TWd.\u0275inj=Hc({imports:[RO,KX]});var X5=function(){};X5.\u0275fac=function(a){return new (a||X5)};X5.\u0275mod=cf({type:X5});X5.\u0275inj=Hc({imports:[RO,TWd,BX,EV,iB,bU]});var UWd=Symbol("sg"),VWd=RegExp("today([+-]\\d+)?"),Z5=function(){this.ruleConfigService=p(Y5)};
Z5.prototype.build=function(a){if(a.customField)var b=a.customField.type==="DATE"?new $5(a,a6(this.ruleConfigService)):a.customField.type==="ENUM"?new WWd(a,a6(this.ruleConfigService)):a.customField.type==="REPEATED_ENUM"?new XWd(a,a6(this.ruleConfigService)):a.customField.type==="NUMERIC"?new b6(a,a6(this.ruleConfigService)):new c6(a,a6(this.ruleConfigService));else b=a.label.field,b=a6(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||d6)(a,a6(this.ruleConfigService));b[UWd](a);return b};
var A0b=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};Z5.\u0275fac=function(a){return new (a||Z5)};Z5.\u0275prov=Fc({token:Z5,factory:Z5.\u0275fac,providedIn:"root"});
var YWd=["OR","AND","NAND"],ZWd=["OR","NAND"],$Wd="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),aXd=["AND","OR","NAND"],bXd=["OR","LT","GT","LE","GE"],d6=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};d6.prototype[UWd]=function(a){this.initType(a);this.initValues(a)};
d6.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]};d6.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var cXd=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}};
d6.prototype.toString=function(){var a=cXd(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=dXd(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var dXd=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,c!=null)?c:vRa(b).toLowerCase()+(a.label.customFieldId||"")};d6.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};
d6.prototype.getWidgetType=function(){return"default"};d6.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};d6.prototype.getLegalTypes=function(){return YWd};var eXd=[],e6=function(a,b){d6.call(this,a,b);this.enumValues={}};Y(e6,d6);h=e6.prototype;h.getLegalTypes=function(){return ZWd};h.getWidgetType=function(){return"enum"};
h.initValues=function(a){this.enumValues={};for(var b=m(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=m(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[SZb(b.value.simpleValues[0].value)]=!0};h.valuesToStrings=function(){return Object.keys(bj(this.enumValues,function(a){return a}))};h.getOptions=function(){return eXd};var fXd=Iba().map(function(a){return{id:"p"+a,label:"P"+a}}),gXd=function(a,b){e6.call(this,a,b)};Y(gXd,e6);
gXd.prototype.getOptions=function(){return fXd};var hXd=Iba().map(function(a){return{id:"s"+a,label:"S"+a}}),iXd=function(a,b){e6.call(this,a,b)};Y(iXd,e6);iXd.prototype.getOptions=function(){return hXd};
var jXd=[{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"}],kXd=function(a,b){e6.call(this,a,b)};Y(kXd,e6);kXd.prototype.getOptions=function(){return jXd};
var lXd=[{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"}],mXd=function(a,b){e6.call(this,a,b)};Y(mXd,e6);mXd.prototype.getOptions=function(){return lXd};
var nXd=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],oXd=function(a,b){e6.call(this,a,b)};Y(oXd,e6);oXd.prototype.getOptions=function(){return nXd};var pXd=[{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"}],qXd=function(a,b){e6.call(this,a,b)};Y(qXd,e6);qXd.prototype.getOptions=function(){return pXd};
var rXd=[{id:"swe",label:Zq.SWE,tooltip:EN.SWE},{id:"sre",label:Zq.SRE,tooltip:EN.SRE},{id:"pm",label:Zq.PM,tooltip:EN.PM},{id:"tpgm",label:Zq.TPGM,tooltip:EN.TPGM},{id:"ux",label:Zq.UX,tooltip:EN.UX}],sXd=[{id:"swe",label:Zq.SWE,tooltip:EN.SWE},{id:"sre",label:Zq.SRE,tooltip:EN.SRE},{id:"pm",label:Zq.PM,tooltip:EN.PM},{id:"tpgm",label:Zq.TPGM,tooltip:EN.TPGM},{id:"ux",label:Zq.UX,tooltip:EN.UX},{id:"uxd",label:Zq.UXD,tooltip:EN.UXD},{id:"uxr",label:Zq.UXR,tooltip:EN.UXR},{id:"datasci",label:Zq.DATASCI,
tooltip:EN.DATASCI},{id:"ld",label:Zq.LD,tooltip:EN.LD},{id:"devrel",label:Zq.DEVREL,tooltip:EN.DEVREL},{id:"tw",label:Zq.TW,tooltip:EN.TW},{id:"gtm",label:Zq.GTM,tooltip:EN.GTM},{id:"ce",label:Zq.CE,tooltip:EN.CE},{id:"other",label:Zq.OTHER}],tXd=function(a,b){e6.call(this,a,b)};Y(tXd,e6);tXd.prototype.getOptions=function(){return rXd};var uXd=function(){e6.apply(this,arguments)};Y(uXd,e6);uXd.prototype.getOptions=function(){return sXd};
var WWd=function(a,b){e6.call(this,a,b);this.allowedValues=[]};Y(WWd,e6);WWd.prototype[UWd]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:SZb(b)}});e6.prototype[UWd].call(this,a)};WWd.prototype.valuesToStrings=function(){return Object.keys(bj(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};WWd.prototype.getOptions=function(){return this.allowedValues};
var XWd=function(a,b){d6.call(this,a,b);this.allowedValues=[];var c,d;this.allowedValues=(d=(c=a.customField)==null?void 0:c.allowedValue)!=null?d:[]};Y(XWd,d6);XWd.prototype.getWidgetType=function(){return"repeated-enum"};XWd.prototype.getOptions=function(){return this.allowedValues};var eu=function(a,b){d6.call(this,a,b);this.csv=""};Y(eu,d6);eu.prototype.getWidgetType=function(){return"csv"};eu.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};
eu.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var f6=function(a,b){eu.call(this,a,b)};Y(f6,eu);f6.prototype.getWidgetType=function(){return"id"};f6.prototype.valuesToStrings=function(){return eu.prototype.valuesToStrings.call(this).map(function(a){return a.toLowerCase()==="none"?"none":a.toLowerCase()==="any"?"any":String(sm(a))})};var vXd=function(a,b){eu.call(this,a,b)};Y(vXd,f6);vXd.prototype.getLegalTypes=function(){return ZWd};
var g6=function(a,b){eu.call(this,a,b)};Y(g6,eu);g6.prototype.getWidgetType=function(){return"user"};var h6=function(a,b){eu.call(this,a,b)};Y(h6,g6);h6.prototype.getLegalTypes=function(){return ZWd};var $5=function(a,b){d6.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};Y($5,d6);var f0b=function(a){return a&&typeof a==="string"?a:""};
$5.prototype.initType=function(a){d6.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&(b.type==="RANGE"?this.type=a.negated?"NRANGE":"RANGE":va(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};$5.prototype.getWidgetType=function(){return"date"};
$5.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=wXd(b),this.type==="RANGE"||this.type==="NRANGE")this.dateTo=wXd(a.values[0].simpleValues[1].value)}};
$5.prototype.valuesToStrings=function(){if(this.type==="DURATION"||this.type==="NDURATION"){var a=sm(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if(this.type==="RANGE"||this.type==="NRANGE"){a=this.dateFrom&&xXd(this.dateFrom)||(new rm).toIsoString(!0);var b=this.dateTo&&xXd(this.dateTo)||(new rm).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&xXd(this.dateFrom)||(new rm).toIsoString(!0)]};
var yXd=function(a){return String(a.getMonth()+1)+"/"+String(a.getDate())+"/"+String(a.getFullYear())},wXd=function(a){if(VWd.test(a))return a;var b=new bo(2E3);a=Aa(a);var c=a.indexOf("T")==-1?" ":"T";a=a.split(c);var d=a[0].match(sUc);if(d){var e=Number(d[2]),f=Number(d[3]),g=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));g?(b.setDate(1),b.setMonth(0),b.add(new PF("d",g-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new PF("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(uUc);if(a)if(c=c.substring(0,c.length-a[0].length),a[0]==="Z")var l=0;else l=Number(a[2])*60+Number(a[3]),l*=a[1]=="-"?1:-1;if(g=c.match(tUc)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(g[1]);e=Number(g[2])||0;f=Number(g[3])||0;var r=g[4]?Number(g[4])*1E3:0;(g=a>=0&&a<100)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,r);g&&(a-=126227808E5);b.setTime(a+l*6E4)}else b.setHours(Number(g[1])),
b.setMinutes(Number(g[2])||0),b.setSeconds(Number(g[3])||0),b.setMilliseconds(g[4]?Number(g[4])*1E3:0);c=!0}else c=!1}return yXd(c?b:null)},xXd=function(a){if(VWd.test(a))return a;a=a.split("/").map(Number);return(new rm(a[2],a[0]-1,a[1])).toIsoString(!0)};$5.prototype.getLegalTypes=function(){return $Wd};var i6=function(a,b){d6.call(this,a,b)};Y(i6,d6);i6.prototype.getWidgetType=function(){return"bool"};
i6.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"};i6.prototype.toString=function(){return dXd(this)+":"+(this.type==="OR")};i6.prototype.getLegalTypes=function(){return ZWd};var zXd=function(a,b){d6.call(this,a,b)};Y(zXd,d6);zXd.prototype.getWidgetType=function(){return"boolwithall"};
zXd.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")};zXd.prototype.toString=function(){var a=dXd(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
zXd.prototype.getLegalTypes=function(){return aXd};var c6=function(a,b){d6.call(this,a,b)};Y(c6,d6);c6.prototype.getWidgetType=function(){return"text"};c6.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}})};c6.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value.includes(" ")?'"'+a.value+'"':a.value})};
var AXd=function(a,b){d6.call(this,a,b)};Y(AXd,d6);AXd.prototype.getWidgetType=function(){return"component"};AXd.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};va(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};AXd.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var BXd=function(a,b){d6.call(this,a,b)};Y(BXd,d6);BXd.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};va(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};BXd.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var CXd=function(a,b){d6.call(this,a,b)};Y(CXd,d6);CXd.prototype.getWidgetType=function(){return"tracker"};
var DXd=function(a,b){d6.call(this,a,b)};Y(DXd,BXd);DXd.prototype.getWidgetType=function(){return"team"};var EXd=function(a,b){d6.call(this,a,b)};Y(EXd,d6);EXd.prototype.getWidgetType=function(){return"hotlist"};var FXd=function(a,b){d6.call(this,a,b)};Y(FXd,d6);FXd.prototype.getWidgetType=function(){return"savedsearch"};var b6=function(a,b){eu.call(this,a,b)};Y(b6,eu);b6.prototype.getWidgetType=function(){return"number"};b6.prototype.getLegalTypes=function(){return bXd};
var GXd=function(a,b){$5.call(this,a,b)};Y(GXd,$5);GXd.prototype.initType=function(a){$5.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var j6={},HXd=(j6.ATTACHMENT={ruleCtor:c6,name:"Attachment name"},j6.COMMENT={ruleCtor:c6},j6.TITLE={ruleCtor:c6},j6.ASSIGNEE={ruleCtor:h6},j6.MODIFIER={ruleCtor:g6},j6.REPORTER={ruleCtor:h6},j6.VERIFIER={ruleCtor:h6},j6.CC={ruleCtor:g6},j6.COLLABORATOR={ruleCtor:g6},j6.COMPONENT_ID={ruleCtor:AXd,name:"Component"},j6.TRACKER_ID={ruleCtor:CXd,name:"Tracker"},j6.TYPE={ruleCtor:kXd},j6.STATUS={ruleCtor:mXd},j6.PRIORITY={ruleCtor:gXd},j6.SEVERITY={ruleCtor:iXd},j6.BLOCKED_BY_ID={ruleCtor:f6},j6.BLOCKING_ID=
{ruleCtor:f6},j6.PARENT_ID={ruleCtor:f6},j6.CANONICAL_ID={ruleCtor:vXd},j6.ID={ruleCtor:vXd},j6.FOUND_IN={ruleCtor:eu},j6.TARGETED_TO={ruleCtor:eu},j6.VERIFIED_IN={ruleCtor:eu},j6.CL={ruleCtor:eu,name:"Changelists"},j6.MODIFIED={ruleCtor:$5},j6.RESOLVED={ruleCtor:GXd},j6.CREATED={ruleCtor:$5},j6.VERIFIED={ruleCtor:GXd},j6.DELETION_TIME={ruleCtor:$5,name:"Deletion time"},j6.SAVED_SEARCH_ID={ruleCtor:FXd,name:"Saved search"},j6.HOTLIST_ID={ruleCtor:EXd,name:"Hotlist"},j6.STAR={ruleCtor:i6,name:"Starred"},
j6.MUTE={ruleCtor:i6,name:"Muted"},j6.VOTE={ruleCtor:i6,name:"Upvoted by me"},j6.IN_PROD={ruleCtor:i6,name:"In production"},j6.CC_COUNT={ruleCtor:b6},j6.COLLABORATOR_COUNT={ruleCtor:b6},j6.DUPLICATE_COUNT={ruleCtor:b6},j6.VOTE_COUNT={ruleCtor:b6},j6.COMMENT_COUNT={ruleCtor:b6},j6.DESCENDANT_COUNT={ruleCtor:b6},j6.OPEN_DESCENDANT_COUNT={ruleCtor:b6},j6.ONE_DAY_VIEW_COUNT={ruleCtor:b6},j6.SEVEN_DAY_VIEW_COUNT={ruleCtor:b6},j6.THIRTY_DAY_VIEW_COUNT={ruleCtor:b6},j6.ATTACHMENT_COUNT={ruleCtor:b6},j6.LAST_MODIFIER=
{ruleCtor:h6,name:"Last Modified By"},j6.COMMENTER={ruleCtor:g6},j6.LAST_COMMENTER={ruleCtor:h6},j6.ARCHIVED={ruleCtor:zXd},j6.IS_DELETED={ruleCtor:i6,name:"Deleted",queryLabel:"deleted"},j6.DELETION_REASON={ruleCtor:oXd,name:"Deletion reason"},j6.ACCESS_LEVEL={ruleCtor:qXd,name:"Issue access level"},j6._TEXT_={ruleCtor:c6,queryLabel:"",name:"All fields"},j6),IXd=Object.assign({},HXd,{EFFORT_LABEL:{ruleCtor:eu},MENTION:{ruleCtor:g6},MIN_SLO_TARGET:{ruleCtor:$5,name:"Nearest SLO",queryLabel:"nearestslo"},
POSTMORTEM:{ruleCtor:eu,name:"Postmortems"},STAFFING_PLACEHOLDER_COUNT:{ruleCtor:b6,name:"Staffing - Placeholder Count",queryLabel:"staffingplaceholdercount"},STAFFING_USER:{ruleCtor:g6,name:"Staffing - User",queryLabel:"staffinguser"},STAFFING_USER_COUNT:{ruleCtor:b6,name:"Staffing - User Count",queryLabel:"staffingusercount"},TEAM_ID:{ruleCtor:DXd,name:"Team"},INSIGHT:{ruleCtor:c6},ATTACHMENT_ANALYSIS:{ruleCtor:c6}}),JXd={ESCALATION_OWNER:{ruleCtor:h6}},Y5=function(){this.activeSession=p(qu)},a6=
function(a){var b=a.activeSession.getFlag("enableStaffingFieldEnhancementsUi")?{STAFFING_PLACEHOLDER:{ruleCtor:uXd,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}}:{STAFFING_PLACEHOLDER:{ruleCtor:tXd,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}};return a.activeSession.isExternalSession()?HXd:Object.assign({},b,IXd,JXd)};Y5.\u0275fac=function(a){return new (a||Y5)};Y5.\u0275prov=Fc({token:Y5,factory:Y5.\u0275fac,providedIn:"root"});var KXd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KXd,W);h=KXd.prototype;h.getField=function(){return xi(this,1)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return nn(this,2)};h.setCustomFieldId=function(a){return Kn(this,2,a)};h.hasCustomFieldId=function(){return Pb(fm(this,2))!=null};var YZb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(YZb,W);h=YZb.prototype;h.getType=function(){return xi(this,1)};h.setType=function(a){return Hn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValue=function(){return vi(this,2)};h.setValue=function(a){return pj(this,2,a)};h.hasValue=function(){return im(this,2)};var LXd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(LXd,W);h=LXd.prototype;h.getType=function(){return xi(this,1)};h.setType=function(a){return Hn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValuesList=function(a){return Ci(this,LXd,2,Di(a))};h.setValuesList=function(a){return Oi(this,2,a)};h.setValues=function(a,b){zw(this,2,LXd,a,b)};var f_b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f_b,W);h=f_b.prototype;h.getType=function(){return xi(this,1)};h.setType=function(a){return Hn(this,1,a)};h.hasType=function(){return jm(this,1)};h.getValuesList=function(a){return Ci(this,LXd,2,Di(a))};h.setValuesList=function(a){return Oi(this,2,a)};h.setValues=function(a,b){zw(this,2,LXd,a,b)};h.getLabel=function(){return X(this,KXd,4)};h.setLabel=function(a){return Ni(this,KXd,4,a)};
h.hasLabel=function(){return yi(this,KXd,4)};var $t=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,$t.messageId)};Y($t,W);$t.prototype.getType=function(){return xi(this,1,void 0,jb)};$t.prototype.setType=function(a){return Hn(this,1,a,jb)};$t.prototype.hasType=function(){return jm(this,1,jb)};$t.messageId="b.QueryBuilderResponse";var c_b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,c_b.messageId)};Y(c_b,W);c_b.messageId="b.SyntaxErrorResponse";var MXd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,MXd.messageId)};Y(MXd,W);MXd.prototype.getKindCase=function(){return xo(this,d_b,jb)};var d_b=[1,2];MXd.messageId="b.QueryBuilderResponseOrError";var NXd=function(){this.executor=p(dO)},OXd=function(a,b){b=Up(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:MXd}).then(g_b).then(function(c){var d;(d=c.syntaxErrorResponse)!=null?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(TZb)});return c})};NXd.\u0275fac=function(a){return new (a||NXd)};NXd.\u0275prov=Fc({token:NXd,factory:NXd.\u0275fac,providedIn:"root"});var k6=function(){var a=this;this.showPlaceholder=!1;this.customFieldTitle="";this.allowMultiSelect=!1;this.selectedValues=[];this.allowedValues=[];this.disabled=!1;this.onValueChange=new XP;this.onApplyChanges=new XP;this.onCancelChanges=new XP;this.searchQuery$=new sf;this.hasPendingChanges=!1;this.selectedValuesMap={};this.oldSelectedValuesMap={};this.suggestedValues$=this.searchQuery$.pipe(lf(300),pf(),A(function(b){var c=b.toLowerCase();return a.allowedValues.filter(function(d){return za(d.toLowerCase(),
c)})}))};h=k6.prototype;h.ngOnInit=function(){Qta(this.selectedValuesMap);for(var a=m(this.allowedValues),b=a.next();!b.done;b=a.next())b=b.value,this.selectedValuesMap[b]=this.selectedValues.includes(b);this.oldSelectedValuesMap=Object.assign({},this.selectedValuesMap);this.hasPendingChanges=!1};h.ngAfterViewInit=function(){};h.getPlaceholder=function(){return this.showPlaceholder?"Select "+this.customFieldTitle:""};
h.onSpace=function(a){var b;this.allowMultiSelect&&((b=this.autocompleteTrigger)==null?0:b.activeOption)&&(this.toggleSelection(this.autocompleteTrigger.activeOption.value),a.preventDefault(),a.stopPropagation())};h.search=function(a){this.searchQuery$.next(a)};h.handleSelectionChange=function(){this.hasPendingChanges=!mm(this.oldSelectedValuesMap,this.selectedValuesMap)};h.toggleSelection=function(a){this.selectedValuesMap[a]=!this.selectedValuesMap[a];this.handleSelectionChange()};
var k_b=function(a,b){a.allowMultiSelect?(b=Object.keys(bj(a.selectedValuesMap,function(c){return c})),a.onApplyChanges.emit(b)):a.onValueChange.emit(b==null?void 0:b.option.value)};k6.prototype.cancel=function(){this.onCancelChanges.emit()};k6.\u0275fac=function(a){return new (a||k6)};
k6.\u0275cmp=D({type:k6,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&hg(RX,7);if(a&2){var c;lg(c=mg())&&(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();K(0,"input",2,0);N("click",function(){u(c);var e=qg(1);return v(b.search(e.value))})("input",function(){u(c);var e=qg(1);return v(b.search(e.value))})("keydown.space",function(e){u(c);return v(b.onSpace(e))});
L();K(2,"mat-autocomplete",3,1);N("optionSelected",function(e){u(c);return v(k_b(b,e))});Of(4,j_b,3,2,"mat-option",4,Nf);T(6,"async");L();F(7,l_b,5,5,"div",5)}if(a&2){a=qg(3);I("placeholder",b.getPlaceholder())("ngModel",b.currentInputValue)("disabled",b.disabled)("matAutocomplete",a);Kf("aria-disabled",b.disabled);B(2);I("hideSingleSelectionIndicator",!0);B(2);var d;Pf((d=U(6,7,b.suggestedValues$))!=null?d:b.currentInputValue?[]:b.allowedValues);B(3);G(b.allowMultiSelect?7:-1)}},dependencies:[Dy,
TX,QX,cA,RX,yj,$D,gE,gB,cB,fL,aI,Lx],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 l6=function(){var a=this;this.trackerFridge=p(RQ);this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new XP;this.searchQuery$=new sf;this.trackerSuggestions$=this.searchQuery$.pipe(lf(300),pf(),Af(function(b){return a.trackerFridge.watchMany({filter:b,pageSize:5})}),A(function(b){return b.results}));this.displayFn=function(b){return b?b.name:""}};l6.prototype.ngAfterViewInit=function(){};l6.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
l6.prototype.search=function(a){this.searchQuery$.next(a)};l6.\u0275fac=function(a){return new (a||l6)};
l6.\u0275cmp=D({type:l6,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&hg(RX,7);if(a&2){var c;lg(c=mg())&&(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();K(0,"input",2,0);N("click",function(){u(c);var d=qg(1);return v(b.search(d.value))})("input",function(){u(c);var d=qg(1);return v(b.search(d.value))});L();K(2,"mat-autocomplete",3,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Of(4,m_b,3,2,"mat-option",4,Nf);T(6,"async");L()}a&2&&(a=qg(3),I("placeholder",
b.placeholder)("ngModel",b.selectedTracker)("disabled",b.disabled)("matAutocomplete",a),Kf("aria-disabled",b.disabled),B(2),I("displayWith",b.displayFn),B(2),Pf(U(6,6,b.trackerSuggestions$)))},dependencies:[TX,QX,cA,RX,yj,$D,gE,Lx],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 m6=function(){Z.apply(this,arguments);this.analytics=p(aQ);this.customFieldsApi=p(pP);this.savedSearchApi=p(jP);this.hotlistApi=p(bP);this.trackerFridge=p(RQ);this.issueSearchResources=p(NXd);this.activeSession=p(qu);this.elementRef=p(Jd);this.errorHandler=p(kO);this.componentActions=p(WV);this.teamsService=p(KQ);this.searchRuleConfigService=p(Y5);this.searchRuleFactory=p(Z5);this.cdr=p(YP,{self:!0});this.trackerHelpers=p(fS);this.currentUserBookmarksFridge=p(lP);this.candidateEmailAutocompleteDenylist=
["me","none","any"];this.sessionIsInternal=this.activeSession.isInternalSession();this.isTrackerSearchEnabled=!1;this.typeLabels=m6.TYPE_LABELS;this.globalTypeLabels=m6.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(m6,Z);m6.\u0275dir=Z.\u0275dir;var PXd=function(a){var b=[];aj(a6(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,wab(d)]))},a);b.sort(function(c,d){return Cba(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};m6.prototype.schedule=function(a){this.subscriptions.add(se.schedule(a))};m6.prototype.ngOnInit=function(){this.cdr.detectChanges()};
m6.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=PXd(this))};
var RXd=function(a,b){a.reset();b?QXd(a,b):(a.expressions=m6.DEFAULT_FIELDS.map(function(c){return A0b(a.searchRuleFactory,c)}),a.state="SUCCESS");ie(Ifd(a.currentUserBookmarksFridge)).then(function(c){a.userSavedSearches=c;c=m(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});ie(mP(a.currentUserBookmarksFridge)).then(function(c){a.userHotlists=c;c=m(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()},QXd=function(a,b){OXd(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 SXd(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=m(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()})},SXd=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?TXd(a,b.label.customFieldId).then(function(c){b.customField=
c;return UXd(a,b)}):Promise.resolve(UXd(a,b))},TXd=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},UXd=function(a,b){b=b.type==="ERR"?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;VXd(a,b);return b},VXd=function(a,b){switch(b.label.field){case "COMPONENT_ID":b=m(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=
m(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.trackers[c]||WXd(a,c);break;case "TEAM_ID":if(a.sessionIsInternal)for(b=m(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.teams[c]||XXd(a,c);break;case "SAVED_SEARCH_ID":b=m(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=m(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})}};m6.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){var d;qs(b.activeSession)&&c.trackerId!==((d=b.activeSession.getTracker())==null?void 0:d.trackerId)||(b.components[a]=c)})};
var WXd=function(a,b){a.trackerFridge.watch(b).pipe(Bf(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},XXd=function(a,b){MQ(a.teamsService,b).pipe(jf(function(){return ee([])}),Bf(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:""}})},YXd=function(a){var b=a.expressionType==="AND"?" ":" | ";return rxc(a.expressions.map(function(c){return c.label?
c.toString():""}),UHc).join(b)};m6.prototype.getState=function(){return this.state};m6.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var D0b=function(a,b){var c=a.expressions[b],d=c.label;d.field==="CUSTOM_FIELD"?c.isPendingCustomField=!0:(a.expressions[b]=A0b(a.searchRuleFactory,d.field),B0b(a,a.expressions[b]));a.cdr.detectChanges()},B0b=function(a,b){var c=b.getWidgetType();c==="component"||c==="savedsearch"||c==="hotlist"||c==="text"||c==="team"||c==="tracker"||c==="repeatedenum"?cu(a,b):c==="date"&&(b.dateFrom||(b.dateFrom=yXd(new rm)),b.dateTo||(b.dateTo=yXd(new rm)))};
m6.prototype.addExpression=function(a){this.expressions.push({label:{field:a}});D0b(this,this.expressions.length-1)};m6.prototype.removeExpression=function(a){La(this.expressions,a);this.cdr.detectChanges()};
var cu=function(a,b){var c={value:""};b.values.push(c);b.label.field==="COMPONENT_ID"?J_b(a,c):b.label.field==="TRACKER_ID"?Q_b(a,c):b.label.field==="TEAM_ID"?X_b(a,c):b.label.field==="CUSTOM_FIELD"?s_b(a,c):du(a,c);a.cdr.detectChanges()},bu=function(a,b,c){La(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()};
m6.prototype.getDateValue=function(a){var b,c=a.match(VWd);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 du=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},J_b=function(a,b){du(a,b);a.componentUnderEdit=b.value?pm(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},s_b=function(a,b){du(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},Q_b=function(a,b){du(a,b);a.trackerUnderEdit=b.value?pm(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},
X_b=function(a,b){du(a,b);a.teamUnderEdit=b.value?pm(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},au=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},Z_b=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;au(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
m6.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]};m6.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||String(a):""};m6.prototype.getComponentPath=function(a){if(!a)return"";var b=fu(this.trackerHelpers,a.componentPathInfo);return b&&b.componentPathName?b.componentPathName.join(" > "):a.name};
m6.GLOBAL_TYPE_LABELS={AND:"Match all (AND)",OR:"Match any (OR)"};
m6.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"}};
m6.DEFAULT_FIELDS=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];m6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(m6)))(b||m6)}}();
m6.\u0275cmp=D({type:m6,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},standalone:!1,features:[Gg([YP]),Gf,bx],decls:1,vars:1,consts:[["newExpressionMenu","matMenu"],[1,"bv2-adv-search"],[1,"bv2-adv-search-title-container"],[1,"bv2-adv-search-title"],["appearance","outline","subscriptSizing","dynamic"],[1,"bv2-adv-search-rule"],[1,"bv2-adv-search-rule","bv2-adv-search-rule-new"],["mat-stroked-button","","type","button",1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",
3,"matMenuTriggerFor"],[1,"mat-select-panel"],["mat-menu-item","","type","button"],["color","primary",1,"bv2-adv-search-join-type",3,"ngModelChange","ngModel"],[3,"value"],[1,"bv2-adv-search-rule-title"],[1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-adv-search-rule-content"],[1,"bv2-adv-search-custom-field-label"],[1,"bv2-adv-search-custom-field-selection"],["type","button","aria-label","Delete search rule",1,"bv2-remove-icon",
"keep-focus-ring","bv2-adv-search-rule-delete-btn",3,"click"],[1,"bv2-adv-search-rule-op","bv2-adv-search-rule-jfk-select",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip-container"],[1,"bv2-adv-search-enum-rule"],["type","button","mat-stroked-button","",1,"bv2-adv-search-chip-add-btn"],[1,"bv2-adv-search-chip","bv2-adv-search-custom-repeated-enum-chip"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",3,"title"],[1,"bv2-adv-search-chip-content"],["type","button","aria-label",
"Remove the value",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",3,"click","title"],[1,"bv2-adv-search-chip-content-text"],[1,"bv2-search-custom-repeated-enum-picker",3,"onValueChange","showPlaceholder","customFieldTitle","currentInputValue","allowedValues"],["type","button","mat-stroked-button","",1,"bv2-adv-search-chip-add-btn",3,"click"],[1,"bv2-adv-search-enum-item"],[3,"change","checked","matTooltip"],["aria-label",
"Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"valueChange","value","candidateDenylist"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModelChange","ngModel"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModelChange","ngModel"],["type","text","aria-label","Add the condition",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip",
"bv2-adv-search-chip-text"],["type","button","aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["type","button","role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"click","title"],[3,"svgIcon"],[1,"bv2-search-component-picker",3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],[1,"bv2-adv-search-chip","bv2-adv-search-tracker-chip"],[1,"bv2-search-tracker-picker",
3,"onTrackerSelect","selectedTracker"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["type","button","role","switch","aria-label","Include subteams",1,"unstyled-button",3,"click","title"],[1,"bv2-search-team-picker",3,"onTeamSelect","teamSelected"],[3,"boundValueChange","boundValue","isRequired"],["type","text","maxlength","3",1,"bv2-duration-field",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","subscriptSizing","dynamic",
1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],[3,"fieldSelected"],["mat-menu-item","","type","button",3,"click"]],template:function(a,b){a&1&&F(0,G0b,14,3,"div",1);a&2&&G(b.getState()==="SUCCESS"?0:-1)},
dependencies:[Dy,p3,k6,yj,$D,tE,gE,gB,cB,fL,aI,BD,MD,OJ,YG,WG,aH,vU,MH,cA,oK,iA,J3,z_,iW,Y1,l6,Nsd,Qx],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 ZXd=function(){};ZXd.\u0275fac=function(a){return new (a||ZXd)};ZXd.\u0275mod=cf({type:ZXd});ZXd.\u0275inj=Hc({imports:[RO,VX,xE,iB,gL]});var $Xd=function(){};$Xd.\u0275fac=function(a){return new (a||$Xd)};$Xd.\u0275mod=cf({type:$Xd});$Xd.\u0275inj=Hc({imports:[RO,VX,gL,pK,xE]});var n6=function(){};n6.\u0275fac=function(a){return new (a||n6)};n6.\u0275mod=cf({type:n6});n6.\u0275inj=Hc({imports:[gV,RO,q3,ZXd,xE,iB,gL,OD,BE,PJ,wU,pK,S3,O_,NX,a2,$Xd]});var aYd=function(){this.domSafe=p(iR);this.buttonLabel="";this.alertMode=this.menuMode=!1},H0b=function(a){Cr(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};aYd.\u0275fac=function(a){return new (a||aYd)};
aYd.\u0275cmp=D({type:aYd,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,I0b,2,1,"button",0)(1,J0b,3,3,"button",1);a&2&&G(b.menuMode?0:1)},dependencies:[Dy,gB,eB,WG,oK,iA],styles:["[_nghost-%COMP%] { display: flex; }"]});var o6=function(){Z.apply(this,arguments);this.session=p(qu);this.appsEvents=p(PO);this.prefsManager=p(dR);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.ThemePreferencesDensity=Lbd;this.density="COMFORTABLE"};Y(o6,Z);o6.\u0275dir=Z.\u0275dir;h=o6.prototype;h.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){if(b==null?0:b.themePreferences)a.density=b.themePreferences.density})};h.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};
h.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};h.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};h.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};h.showSettings=function(a){this.appsEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey})};
o6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(o6)))(b||o6)}}();
o6.\u0275cmp=D({type:o6,selectors:[["b-app-settings-menu"]],standalone:!1,features:[Gf],decls:27,vars:12,consts:[["settingsMenu","matMenu"],["type","button","mat-icon-button","","matTooltip","Settings","aria-label","Settings",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],[1,"b-menu-header"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to comfortable",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],
["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"click",4,"internalOnly"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,b){if(a&1){var c=t();K(0,"button",1);M(1,"mat-icon",2);L();K(2,"mat-menu",null,0)(4,"div",
3);Q(5,"Display Density");L();K(6,"button",4);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COMFORTABLE))});K(7,"span",5);M(8,"mat-icon",6);L();Q(9," Comfortable ");L();K(10,"button",7);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COZY))});K(11,"span",5);M(12,"mat-icon",6);L();Q(13," Cozy ");L();K(14,"button",8);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COMPACT))});K(15,"span",5);M(16,"mat-icon",6);L();Q(17," Compact ");
L();M(18,"mat-divider");K(19,"button",9);N("click",function(d){u(c);return v(b.browseComponents(d))});Q(20,"Browse components");L();K(21,"button",9);N("click",function(d){u(c);return v(b.manageHotlists(d))});Q(22,"Manage hotlists");L();E(23,K0b,2,0,"button",10);K(24,"button",9);N("click",function(d){u(c);return v(b.showSettings(d))});Q(25,"Settings");L();F(26,L0b,2,1);L()}a&2&&(a=qg(3),I("disabled",b.session.isAnonymous())("matMenuTriggerFor",a),B(6),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),
Kf("aria-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),B(4),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COZY),Kf("aria-checked",b.density===b.ThemePreferencesDensity.COZY),B(4),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMPACT),Kf("aria-checked",b.density===b.ThemePreferencesDensity.COMPACT),B(12),G(b.enableWhatsNewDialog?26:-1))},dependencies:[Dy,OJ,YG,WG,aH,gB,eB,aK,oK,iA,aYd,WY],encapsulation:2,changeDetection:0});var bYd=function(){this.theme=p(GW);this.isDark=!1;this.iconName="dark-mode-filled"};bYd.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();cYd(this)};var cYd=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"dark-mode-filled"};bYd.\u0275fac=function(a){return new (a||bYd)};
bYd.\u0275cmp=D({type:bYd,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&&(K(0,"button",0),N("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&y9c(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());Uwd(c,!c.clientDarkmodeSubject.getValue());
cYd(b)}),M(1,"mat-icon",1),L());a&2&&(B(),I("svgIcon",b.iconName))},dependencies:[Dy,gB,eB,oK,iA],encapsulation:2});var dYd=function(){this.session=p(qu);this.userFeedback=p(PY);this.domSafe=p(iR);this.docLinks=p(YR);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.majorReleaseNotesUpdated=this.session.getFlag("majorReleaseNotesUpdated")};dYd.\u0275fac=function(a){return new (a||dYd)};
dYd.\u0275cmp=D({type:dYd,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,M0b,1,1,"b-whats-new-button",0),E(2,N0b,2,0,"button",1),K(3,"button",2),N("click",function(){var c=b.domSafe,d=c.openInNewTab;var e=b.docLinks;e=e.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide":e.baseDocumentationUrl;d.call(c,e)}),M(4,"mat-icon",3),L(),M(5,"b-app-settings-menu"));a&2&&(B(),G(b.enableWhatsNewDialog?1:-1))},dependencies:[Dy,gB,eB,oK,iA,
aYd,WY,bYd,o6],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 P0b=function(a){return[a]},Q0b=function(){return[]},eYd=function(){this.activeSession=p(qu);this.clickMenu=new XP;this.showMenu=!1;this.clickLogo=new XP;this.chips=[]};eYd.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};eYd.\u0275fac=function(a){return new (a||eYd)};
eYd.\u0275cmp=D({type:eYd,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&&(cg(),F(0,O0b,2,0,"button",0),K(1,"a",1),N("click",function(){return b.clickLogo.emit()}),M(2,"img",2)(3,"img",3),K(4,"h1"),Q(5),L()(),dg(6),Of(7,R0b,2,6,"output",4,Nf));a&2&&(G(b.showMenu?0:-1),B(),Kf("href",b.href?b.href:void 0,Pe),B(),I("src",b.imgSrc,Pe),B(),I("src",b.imgSrcDark||b.imgSrc,Pe),B(2),yg(b.name),B(2),Pf(b.chips))},dependencies:[Dy,gB,eB],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 p6=function(){this.events=p(PO);this.imageUrls=p(YV);this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};p6.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"})};
p6.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};p6.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:wb(this.frontendAccessMode,"unknown frontend access mode.")}};
da.Object.defineProperties(p6.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"}}});p6.\u0275fac=function(a){return new (a||p6)};
p6.\u0275cmp=D({type:p6,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",href:"href"},standalone:!1,features:[bx],decls:1,vars:5,consts:[[3,"clickMenu","name","href","chips","imgSrc","imgSrcDark"]],template:function(a,b){a&1&&(K(0,"app-logo",0),N("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),L());a&2&&I("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark)},dependencies:[eYd],
encapsulation:2,changeDetection:0});var q6=function(){this.isActive=!1;this.optionClicked=new XP};q6.prototype.ngOnInit=function(){};q6.prototype.onClick=function(){this.optionClicked.emit(this.index)};q6.\u0275fac=function(a){return new (a||q6)};
q6.\u0275cmp=D({type:q6,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()});a&2&&wg("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(cg(),K(0,"div",0),dg(1),L())},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 r6=function(){this.ref=p(YP,{self:!0});this.hostElement=p(Jd);this.trackerHelpers=p(fS);this.items=[];this.header=null;this.itemSelected=new XP;this.activeItemChanged=new XP;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component customField team tracker".split(" ")};r6.prototype.ngOnChanges=function(a){a.items&&(this.items.length>0?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};r6.prototype.ngAfterViewInit=function(){};
var r1b=function(a){var b=P(3);C1b(a);b.itemSelected.emit(a)};r6.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(),fYd(this))};
r6.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(),fYd(this))};var gYd=function(a){a.activeItemIndex!=null&&a.itemSelected.emit(a.items[a.activeItemIndex])};r6.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var hYd=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}},fYd=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&Dpc(b.nativeElement,a.hostElement.nativeElement)},C1b=function(a){er("search","autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};r6.\u0275fac=function(a){return new (a||r6)};
r6.\u0275cmp=D({type:r6,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&hg(q6,5,Jd);if(a&2){var c;lg(c=mg())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},standalone:!1,features:[Gg([YP]),bx],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,l1b,7,6,"div",0),K(1,"div",1),Of(2,D1b,10,13,"b-app-search-auto-complete-option",2,Nf),L());a&2&&(G(b.header&&b.header.type?0:-1),B(2),Pf(b.items))},dependencies:[SV,$V,q6,Mx],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 iYd=["box"],jYd=["initialFocus"],kYd=["finalFocus"],s6=function(){this.documentationLinks=p(YR);this.appSearchState=p(oT);this.activeSession=p(qu);this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new XP;this.onAdvancedSearchClose=new XP;this.onAdvancedSearchSubmit=new XP;this.onSaveSearch=new XP;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/concepts/search-query-language";
this.destroyed$=new sf;this.currentQuery$=this.appSearchState.queryState$.pipe(A(function(a){return a.query}));this.autoCompleteItemSelected$=new sf;this.isAnonymous=this.activeSession.isAnonymous()};
s6.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(Ef(this.currentQuery$),Bf(this.destroyed$)).subscribe(function(b){var c=m(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()})};
s6.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(we(function(b){return!b.setViaInteraction}),Bf(this.destroyed$)).subscribe(function(b){var c=b.query;b=b.cursorPosition;a.inputBox.nativeElement.value=c;b!=null&&(c=a.inputBox.nativeElement,E1b(c)&&(c.selectionStart=b,c.selectionEnd=b))})};s6.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var lYd=function(a){a.appSearchState.searchTriggered$.next("keyboard")},mYd=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();var c=F1b(a.inputBox.nativeElement,!0)[0];c=c===F1b(a.inputBox.nativeElement,!1)[1]?c:void 0;a.appSearchState.queryState$.next({query:b,cursorPosition:c,setViaInteraction:!0})};s6.prototype.onInputFocus=function(){this.dropdownStatus="auto_complete"};
s6.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!t6(this))return;nYd(this);break;case "ArrowUp":if(!t6(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!t6(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!t6(this)){mYd(this,this.inputBox.nativeElement.value);return}gYd(this.acList);break;case "ArrowLeft":mYd(this,this.inputBox.nativeElement.value);return;case "Enter":t6(this)?this.acList.activeItemIndex!=null?gYd(this.acList):
lYd(this):lYd(this);break;default:return}a.preventDefault();a.stopPropagation()};s6.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();oYd(this)};
var nYd=function(a){a.dropdownStatus==="auto_complete"&&(a.dropdownStatus="closed")},oYd=function(a){a.dropdownStatus==="advanced_search"&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},t6=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteItems.length>0},pYd=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteHeader!=null},qYd=function(a){return a.dropdownStatus==="advanced_search"};
s6.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",oYd(this))};var rYd=function(a,b){b.shiftKey&&b.key==="Tab"&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},G1b=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};s6.\u0275fac=function(a){return new (a||s6)};
s6.\u0275cmp=D({type:s6,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(hg(r6,7),hg(iYd,5),hg(jYd,7,Jd),hg(kYd,7));if(a&2){var c;lg(c=mg())&&(b.acList=c.first);lg(c=mg())&&(b.inputBox=c.first);lg(c=mg())&&(b.advancedSearchInitialFocus=c.first);lg(c=mg())&&(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();cg();K(0,"div",3);N("clickOutside",function(){u(c);nYd(b);return v()});K(1,"div",4)(2,"button",5);N("click",function(){u(c);return v(lYd(b))});M(3,"mat-icon",6);L();K(4,"textarea",7,0);N("keydown",function(d){u(c);return v(b.handleKeydown(d))})("input",function(){u(c);var d=qg(5);return v(mYd(b,d.value))})("click",
function(){u(c);var d=qg(5);return v(mYd(b,d.value))})("focus",function(){u(c);return v(b.onInputFocus())});L();K(6,"button",8);N("click",function(){u(c);b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit();return v()});M(7,"mat-icon",9);L()();K(8,"aside",10)(9,"b-app-search-auto-complete-list",11);N("itemSelected",function(d){u(c);return v(b.autoCompleteItemSelected$.next(d))});L();K(10,"div",12)(11,"div",13)(12,"button",14,1);N("keydown",function(d){u(c);return v(rYd(b,d))})("click",
function(){u(c);return v(oYd(b))});M(14,"mat-icon",15);L()();K(15,"div",16);dg(16);L();K(17,"div",17)(18,"button",18);N("click",function(){u(c);return v(b.submitAdvancedSearch())});Q(19," Search ");L();K(20,"a",19);Q(21,"Search help ");M(22,"mat-icon",20);L();F(23,H1b,5,2,"div",21);L()()()()}a&2&&(wg("dropdown-opened",t6(b)||pYd(b)||qYd(b)),B(),wg("hidden",qYd(b)),B(3),I("placeholder",b.placeholder),Kf("aria-activedescendant",hYd(b.acList))("aria-expanded",t6(b)||pYd(b)),B(4),wg("advanced-search-open",
qYd(b)),B(),wg("hidden",!(t6(b)||pYd(b))),I("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(),wg("hidden",!qYd(b)),B(2),I("disabled",b.isSearchDisabled),B(6),I("disabled",b.isSearchDisabled),B(2),Kf("href",b.searchHelpLink,Pe),B(3),G(b.isAnonymous?-1:23))},dependencies:[Dy,qz,gB,cB,eB,oK,iA,yj,$D,gE,D_,SD,r6],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 sYd=function(){this.activeSession=p(qu);this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new XP;this.searchBoxOnAdvancedSearchClose=new XP;this.searchBoxOnAdvancedSearchSubmit=new XP;this.searchBoxOnSaveSearch=new XP;this.currentTracker=this.activeSession.getTracker()},tYd=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()})};sYd.\u0275fac=function(a){return new (a||sYd)};
sYd.\u0275cmp=D({type:sYd,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&&(cg(),M(0,"b-app-logo",0),K(1,"div",1)(2,"button",2),N("click",function(){return tYd()})("keydown.enter",function(){return tYd()}),Q(3," Skip Navigation "),L()(),K(4,"b-app-search-box",3),N("onAdvancedSearchOpen",function(){return b.searchBoxOnAdvancedSearchOpen.emit()})("onAdvancedSearchClose",function(){return b.searchBoxOnAdvancedSearchClose.emit()})("onAdvancedSearchSubmit",function(){return b.searchBoxOnAdvancedSearchSubmit.emit()})("onSaveSearch",function(c){return b.searchBoxOnSaveSearch.emit(c)}),
dg(5),L(),M(6,"b-app-actions"));a&2&&(I("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",b.currentTracker),B(4),I("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[gB,cB,p6,dYd,s6],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 uYd=function(){};uYd.\u0275fac=function(a){return new (a||uYd)};uYd.\u0275mod=cf({type:uYd});uYd.\u0275inj=Hc({imports:[RO,MJ,iB,kK]});var vYd=function(){};vYd.\u0275fac=function(a){return new (a||vYd)};vYd.\u0275mod=cf({type:vYd});vYd.\u0275inj=Hc({imports:[RO,iB,PJ,pK]});var wYd=function(){};wYd.\u0275fac=function(a){return new (a||wYd)};wYd.\u0275mod=cf({type:wYd});wYd.\u0275inj=Hc({imports:[RO,iB,pK]});var xYd=function(){};xYd.\u0275fac=function(a){return new (a||xYd)};xYd.\u0275mod=cf({type:xYd});xYd.\u0275inj=Hc({imports:[RO]});var yYd=function(){};yYd.\u0275fac=function(a){return new (a||yYd)};yYd.\u0275mod=cf({type:yYd});yYd.\u0275inj=Hc({providers:[GW]});var zYd=function(){};zYd.\u0275fac=function(a){return new (a||zYd)};zYd.\u0275mod=cf({type:zYd});zYd.\u0275inj=Hc({imports:[RO,iB,pK,yYd]});var u6=function(){};u6.\u0275fac=function(a){return new (a||u6)};u6.\u0275mod=cf({type:u6});u6.\u0275inj=Hc({imports:[RO,PJ,iB,bK,pK,xz,xE,E_,vYd,U2,wYd,pX,TD,xYd,zYd,uYd,JX]});var AYd=function(){};AYd.\u0275fac=function(a){return new (a||AYd)};AYd.\u0275mod=cf({type:AYd});AYd.\u0275inj=Hc({imports:[RO,iB,MJ]});var BYd=function(){};BYd.\u0275fac=function(a){return new (a||BYd)};BYd.\u0275mod=cf({type:BYd});BYd.\u0275inj=Hc({imports:[RO,xE,iB,BE,OD,MJ,NX]});var v6=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 XP;this.selectedChange=new XP;this.cardTitleChange=new XP;this.onSaveButtonClicked=new XP;this.onCancelButtonClicked=
new XP;this.isInheritedChange=new XP;this.isExpanded=!1};v6.prototype.expand=function(){this.isExpanded=!0};v6.prototype.collapse=function(){this.isExpanded=!1};v6.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};v6.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};v6.\u0275fac=function(a){return new (a||v6)};
v6.\u0275cmp=D({type:v6,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&&(cg(),K(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),N("change",function(c){b.selected=c.checked;b.expand();b.selectedChange.emit(b.selected)}),L(),F(3,I1b,2,3,"span",3)(4,N1b,3,7),K(5,"button",4),N("click",function(){b.isExpanded?b.collapse():b.expand()}),F(6,O1b,1,0,"mat-icon",5)(7,P1b,1,0,"mat-icon",
6),L()(),F(8,Q1b,2,0,"div",7),F(9,V1b,9,6,"div",8),L());a&2&&(Kf("aria-expanded",b.isExpanded),B(2),wg("expanded-checkbox",b.isExpanded),I("disabled",b.disabled)("checked",b.selected),Jf("aria-label",b.cardTitle),B(),G(b.isExpanded?4:3),B(2),xg(b.isExpanded?"collapse-toggle":"expand-toggle"),Kf("aria-label",b.isExpanded?"Collapse editor":"Expand editor"),B(),G(b.isExpanded?6:7),B(2),G(b.isExpanded?8:-1),B(),G(b.isExpanded?9:-1))},dependencies:[Dy,yj,$D,sE,tE,gE,fL,aI,gB,cB,eB,OU,sT,vU,MD,ED,MH,NH,
cA,BD,aK,PD,zE,oK,iA],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 w6=function(){};w6.\u0275fac=function(a){return new (a||w6)};w6.\u0275mod=cf({type:w6});w6.\u0275inj=Hc({imports:[RO,xE,gL,iB,PU,wU,bK,BE,pK]});var CYd=function(){this.dialogRef=p(NA);this.data=p(PA);this.selected=this.data.sharedFields[0];this.options=this.data.sharedFields};CYd.\u0275fac=function(a){return new (a||CYd)};
CYd.\u0275cmp=D({type:CYd,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&&(K(0,
"h1",0),Q(1,"Activate a shared field"),L(),K(2,"div",1),F(3,X1b,4,1,"mat-form-field")(4,Y1b,1,0),F(5,Z1b,4,0,"div"),L(),K(6,"footer",2)(7,"button",3),N("click",function(){return b.dialogRef.close()}),Q(8,"Cancel"),L(),K(9,"button",4),N("click",function(){return b.dialogRef.close(b.selected)}),Q(10,"Confirm"),L()());a&2&&(B(3),G(b.options.length>0?3:4),B(2),G(b.options.length>0?5:-1))},dependencies:[gB,cB,vU,MD,MH,cA,BD,TA,VA,UA],encapsulation:2});var x6=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(x6,W);x6.prototype.getComponentId=function(){return pn(this,1)};x6.prototype.getComponentId_asString=function(){return un(this,1)};x6.prototype.setComponentId=function(a){return Ko(this,1,a)};x6.prototype.setFieldId=function(a){return zw(this,2,Ro,a)};var DYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(DYd,W);h=DYd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.getFieldConfigsV2List=function(){return Ci(this,hq,2,Di())};h.setFieldConfigsV2List=function(a){return Oi(this,2,a)};var EYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,EYd.messageId)};Y(EYd,W);EYd.prototype.getIt=function(){return X(this,x6,2,jb)};EYd.prototype.setIt=function(a){return Ni(this,x6,2,a,jb)};EYd.messageId="b.ReorderFieldsRequest";var FYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,FYd.messageId)};Y(FYd,W);FYd.prototype.getIt=function(){return X(this,DYd,1,jb)};FYd.prototype.setIt=function(a){return Ni(this,DYd,1,a,jb)};FYd.messageId="b.UpdateFieldConfigsV2Request";var GYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(GYd,W);GYd.prototype.getFieldConfigsV2List=function(){return Ci(this,hq,1,Di())};GYd.prototype.setFieldConfigsV2List=function(a){return Oi(this,1,a)};var HYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,HYd.messageId)};Y(HYd,W);HYd.prototype.getIt=function(){return X(this,GYd,1,jb)};HYd.prototype.setIt=function(a){return Ni(this,GYd,1,a,jb)};HYd.messageId="b.UpdateFieldConfigsV2Response";var y6=function(){this.executor=p(ZN)};y6.prototype.reorder=function(a,b){var c=new EYd,d=c.setIt;var e=(new x6).setComponentId(a);b=b.map(HWa);e=Oi(e,2,b);c=d.call(c,e);return this.executor.post({url:"action/components/"+a+"/reorder",body:c,responseConstructor:null})};var IYd=function(a,b,c){c=(new FYd).setIt((new DYd).setComponentId(b).setFieldConfigsV2List(c.map(IZa)));return a.executor.put({url:"action/components/"+b+"/update_field_configs_v2",body:c,responseConstructor:HYd}).pipe(A(function(d){return d.getIt().getFieldConfigsV2List().map(DZa)}))};
y6.\u0275fac=function(a){return new (a||y6)};y6.\u0275prov=Fc({token:y6,factory:y6.\u0275fac,providedIn:"root"});var JYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(JYd,W);h=JYd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return un(this,2)};h.setCustomFieldId=function(a){return Ko(this,2,a)};var KYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(KYd,W);h=KYd.prototype;h.getComponentId=function(){return pn(this,1)};h.getComponentId_asString=function(){return un(this,1)};h.setComponentId=function(a){return Ko(this,1,a)};h.getCustomFieldId=function(){return pn(this,2)};h.getCustomFieldId_asString=function(){return un(this,2)};h.setCustomFieldId=function(a){return Ko(this,2,a)};var LYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,LYd.messageId)};Y(LYd,W);LYd.prototype.getIt=function(){return X(this,JYd,1,jb)};LYd.prototype.setIt=function(a){return Ni(this,JYd,1,a,jb)};LYd.messageId="b.AddSharedCustomFieldToComponentRequest";var MYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,MYd.messageId)};Y(MYd,W);MYd.prototype.getIt=function(){return X(this,KYd,1,jb)};MYd.prototype.setIt=function(a){return Ni(this,KYd,1,a,jb)};MYd.messageId="b.RemoveSharedCustomFieldFromComponentRequest";var z6=function(){this.executor=p(dO)};z6.prototype.add=function(a,b){var c="/action/components/"+a+"/add_shared_custom_field";a=(new LYd).setIt((new JYd).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};z6.prototype.remove=function(a,b){var c="/action/components/"+a+"/remove_shared_custom_field";a=(new MYd).setIt((new KYd).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};
z6.\u0275fac=function(a){return new (a||z6)};z6.\u0275prov=Fc({token:z6,factory:z6.\u0275fac,providedIn:"root"});var NYd=["fieldStateMenu"],c2b=function(a){return{type:a}},OYd=["SILENT","MINOR","MAJOR"],A6=function(){Z.apply(this,arguments);this.customFieldsApi=p(pP);this.checkBeforeExit=p(uY);this.butterBar=p(QN);this.analytics=p(aQ);this.routeParams=p(rS);this.componentActions=p(WV);this.fieldConfigService=p(y6);this.sharedCustomFieldApi=p(z6);this.documentationLinks=p(YR);this.paths=p(mW);this.confirmationDialog=p(ZR);this.appEvents=p(PO);this.dialog=p(QA);this.activeSession=p(qu);this.customFieldHelper=
p(uS);this.sharedFieldCandidates=M7a({isInternal:this.activeSession.isInternalSession(),isProd:ws(this.activeSession)});this.ROUTES=ps;this.FieldType=qV;this.ListFieldType=xud;this.getSingleEditFieldType=Wbb;this.getListFieldType=Ddb;this.isRepeated=CWa;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=["Single","Multiple"];this.significanceChoices=OYd;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)};Y(A6,Z);A6.\u0275dir=Z.\u0275dir;A6.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!0));this.loadCustomFields()};
A6.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=vS(this.customFieldHelper,this.parentComponent),c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
A6.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||cCd(this.checkBeforeExit))this.editableField=pm(this.customFields[a]),this.originalEditableFieldValue=pm(this.editableField),this.serverError=null,this.setType(this.editableField.type),g2b(this,this.editableField.allowedValue)};
var s2b=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Bh("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)}})};
A6.prototype.doDelete=function(a){var b=this;Pr(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");Pr(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
A6.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=Sp(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)};A6.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var j2b=function(a,b){var c=a.editableField.type,d=c==="TEXT"&&sRa(b)?b:void 0,e=c==="DATE"&&b&&P1a(b)?b:void 0,f=c==="ENUM"&&sRa(b)?b:void 0,g=c==="NUMERIC"&&rRa(b)?b:void 0,k=c==="REPEATED_TEXT"&&qm(b)?{values:b}:void 0,l=c==="REPEATED_DATE"&&Array.isArray(b)&&b.every(P1a)?{values:b}:void 0,r=c==="REPEATED_ENUM"&&qm(b)?{values:b}:void 0;b=c==="REPEATED_NUMERIC"&&tRa(b)?{values:b}:void 0;a.editableField.typedDefaultValue={customFieldId:a.editableField.customFieldId,textValue:d,dateValue:e,enumValue:f,
numericValue:g,repeatedTextValue:k,repeatedDateValue:l,repeatedEnumValue:r,repeatedNumericValue:b}};A6.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 g2b=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}}):[]};A6.prototype.hasUnsavedChanges=function(){return this.editableField&&!mm(this.editableField,this.originalEditableFieldValue)?!0:!1};
A6.prototype.loadCustomFields=function(){var a=this;var b=b===void 0?!1:b;b||(this.isLoading=!0);return this.componentActions.get(this.componentId).then(function(c){var d=vS(a.customFieldHelper,c),e=[];a.componentIdsToNames={};var f,g=((f=c.componentPathInfo)==null?void 0:f.componentPathId)||[];for(f=0;f<g.length;f++)e.push(c.componentPathInfo.componentPathName[f]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=e.join(" > ");a.editableField=null;a.originalEditableFieldValue=null;b||
(a.isLoading=!1);c=function(l,r){return wa(l.name,r.name)};a.customFields=d.filter(function(l){return a.componentId===l.componentId}).sort(c);a.inheritedCustomFields=d.filter(function(l){return a.componentId!==l.componentId&&!l.shared}).sort(c);var k=new Map(d.filter(function(l){return a.componentId!==l.componentId&&l.shared}).map(function(l){return[l.customFieldId,l]}));a.sharedFields=a.sharedFieldCandidates.map(function(l){return k.get(l.customFieldId)}).filter(Qm);a.appEvents.customFieldsModified.next(d)})};
A6.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};var k2b=function(a){var b;return(a=(b=a.editableField)==null?void 0:b.typedDefaultValue)?Uq(a):null};A6.prototype.getListFieldValues=function(){var a,b=(a=this.editableField)==null?void 0:a.typedDefaultValue,c,d;return(d=(c=b?Uq(b):null)==null?void 0:c.values)!=null?d:null};A6.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
var G2b=function(a){var b={sharedFields:H2b(a)};OA(a.dialog.open(CYd,{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()})})},B2b=function(a,b){a.confirmationDialog.open({title:"Deactivate shared field",content:Bh("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()})}})},H2b=function(a){var b=a.sharedFields.map(function(c){return c.customFieldId});return a.sharedFieldCandidates.filter(function(c){return!b.includes(c.customFieldId)})};A6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(A6)))(b||A6)}}();
A6.\u0275cmp=D({type:A6,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&hg(NYd,5);if(a&2){var c;lg(c=mg())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},standalone:!1,features:[Gf,bx],decls:4,vars:2,consts:[["typeHelp",""],["enumMenu","matMenu"],["secondaryMenu","matMenu"],["significanceHelp",""],["significanceMenu","matMenu"],["card","onedevHovercard"],["cardBody",""],[1,"edit-resource-panel",
"edit-component-field-parent"],[1,"edit-custom-field-panel"],[1,"custom-fields-loader"],[1,"bv2-validation-error-banner"],["name","editForm",1,"edit-custom-field-form"],[1,"edit-field"],["for","field-name",1,"help-label"],["name","fieldName","type","text","required","","id","field-name",3,"ngModelChange","bFocus","ngModel","disabled"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-custom-field-table"],
[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["type","button","mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],
["matMenuContent",""],["id","field-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["id","field-repeated-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["id","field-required-label",1,"bv2-component-custom-field-label"],
["aria-labelledby","field-required-label",3,"valueChange","name","type","tooltip","value"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["aria-label","See email settings for more details.","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["mat-button","","mat-stroked-button","","type","button","aria-labelledby","field-significance-label",
1,"keep-focus-ring","bv2-enum-field",3,"matMenuTriggerFor"],["mat-menu-item","","type","button"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-stroked-button","","type","button",3,"click"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"valuesChange","defaultLineCount","type","values","listFieldDisabled","preventDuplicates",
"isDefaultOrAllowedValues","truncate"],["aria-labelledby","field-default-label",3,"valueChange","name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["aria-labelledby","field-repeated-default-label",3,"valuesChange","defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["mat-menu-item","","type","button",3,"click"],[3,"large"],[1,"custom-fields-table"],[1,"enabled-field"],[1,"edit-button-row"],
[3,"customFieldValue"],[1,"action-buttons"],["type","button","mat-stroked-button","",3,"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[3,"class"],[1,"ancestor-component-note"],[1,"header-label"],[3,"click","onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["type","button","mat-stroked-button","",3,"click","disabled","matTooltip"],["routerLink","./","fragment","fieldOrdering",1,"keep-underline"],["type","button","mat-raised-button",
"","color","primary",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"div",7),F(1,p2b,70,29,"div",8),F(2,q2b,2,1,"div",9)(3,J2b,29,8,"div"),L());a&2&&(B(),G(b.editableField&&!b.isLoading?1:-1),B(),G(b.isLoading?2:3))},dependencies:[$E,hE,yj,$D,aE,sE,gE,eE,PV,pV,pT,DK,EK,LK,FK,TV,oK,iA,OJ,YG,WG,XG,aH,gB,cB,AW,r3,$T,Msd,cV,eV],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 B6=function(){};B6.\u0275fac=function(a){return new (a||B6)};B6.\u0275mod=cf({type:B6});B6.\u0275inj=Hc({imports:[RO,xE,QV,rV,DU,w5,MK,R0,pK,PJ,iB,wU,BW,s3,gV,bU,MJ]});var C6=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new XP;this.addRow=new XP;this.optionsChange=new XP};C6.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};C6.prototype.drop=function(a){as(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};C6.\u0275fac=function(a){return new (a||C6)};
C6.\u0275cmp=D({type:C6,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&&(K(0,"div",2)(1,"div",
3)(2,"span",4),Q(3," Dropdown value "),L()(),K(4,"div",5)(5,"span",6),Q(6," Average days "),L(),M(7,"mat-icon",7),L()(),K(8,"div",8),N("cdkDropListDropped",function(c){return b.drop(c)}),Of(9,L2b,12,13,"div",9,Nf),L(),F(11,M2b,2,0,"button",10));a&2&&(B(2),wg("muted",b.disabled),B(3),wg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(2),Pf(b.options),B(2),G(b.disabled?-1:11))},dependencies:[Dy,PD,zE,MD,BD,gB,cB,eB,oK,iA,NV,MV,KV],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 PYd=function(){this.disabled=!1;this.valueChange=new XP};PYd.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};PYd.\u0275fac=function(a){return new (a||PYd)};
PYd.\u0275cmp=D({type:PYd,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();K(0,"div",1)(1,"div",2)(2,"span",3);Q(3," Time ");L();K(4,"span",4);Q(5,"1");L()();K(6,"div",2)(7,"div",5)(8,"span",6);Q(9," Average days ");L();M(10,
"mat-icon",7);L();K(11,"mat-form-field",8)(12,"input",9,0);N("change",function(d){u(c);return v(b.onValueChange(d))});L()()()()}a&2&&(B(2),wg("muted",b.disabled),B(6),wg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(),I("appearance","outline"),B(),I("disabled",b.disabled)("value",b.value))},dependencies:[Dy,PD,zE,MD,BD,oK,iA],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 D6=function(){this.disabled=!1;this.updateEffortSpec=new XP;this.configurationOptions=[QYd,RYd,SYd];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=Icd;this.selectedAggregationRule=this.aggregationRules.SUM};D6.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=SYd)};
D6.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=pm(this.effortSpec),this.setValues(this.effortSpec))};
D6.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=SYd;var b,c,d;this.numericSpecMultiplier=(d=(b=this.effortSpec)==null?void 0:(c=b.numericSpec)==null?void 0:c.multiplier)!=null?d:1}if(a.enumSpec){this.selectedEffortConfig=void 0;var e,f;this.enumSpecOptions=((f=(e=a.enumSpec)==null?void 0:e.options)!=null?f:[]).map(function(k){return{label:k.label,value:k.value}})}var g;this.inherit=(g=a.inherit)!=null?g:!1;this.name=a.name===""?"Estimated effort":a.name||"";if(a.enumSpec||
a.numericSpec)this.estimatedEffortFieldEnabled=!0;a.aggregationType!==void 0&&a.aggregationType!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=a.aggregationType)};
var TYd=function(a){var b,c,d;if(((b=a.effortSpec)==null?0:b.enumSpec)&&!a.selectedEffortConfig||((c=a.selectedEffortConfig)==null?void 0:c.displayText)===QYd.displayText||((d=a.selectedEffortConfig)==null?void 0:d.displayText)===RYd.displayText)return"enum";var e;return((e=a.selectedEffortConfig)==null?void 0:e.displayText)===SYd.displayText?"numeric":"empty"};D6.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};
D6.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=m(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 UYd=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};D6.\u0275fac=function(a){return new (a||D6)};
D6.\u0275cmp=D({type:D6,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},standalone:!1,features:[bx],decls:8,vars:11,consts:[["enumConfig",""],["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked",
"isInheritedChange","cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited","inheritedDisabled"],[1,"content"],[3,"disabled","value"],[1,"margin-top"],[4,"ngTemplateOutlet"],[3,"valueChange","disabled","value"],["id","aggregation-rule-label",1,"aggregation-rule-label","config-label","heading-xs","margined"],"mat-icon-button;;matTooltip;Learn more about the aggregation rules;href;http://go/wtdm-home#aggregation;target;_blank".split(";"),
["svgIcon","help-outline",1,"icon-s","gfx-muted"],["appearance","outline",1,"static-label","margined"],["aria-labelledby","aggregation-rule-label","panelClass","multi-line-select",3,"valueChange","value","disabled"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"optionsChange","addRow","removeAtIndex","options","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"b-collapsible-card",1);Cg("cardTitleChange",function(e){u(c);Bg(b.name,e)||(b.name=e);return v(e)});N("dropdownSelectionChanged",
function(e){u(c);b.selectedEffortConfig=e;e.displayText===QYd.displayText?(b.enumSpecOptions=[].concat(q(VYd)),b.name="Story points"):e.displayText===RYd.displayText?(b.enumSpecOptions=[].concat(q(WYd)),b.name="T-shirt sizes"):e.displayText===SYd.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0;return v()})("onSaveButtonClicked",function(){u(c);if(b.estimatedEffortFieldEnabled){var e={name:b.name,inherit:b.inherit};e.aggregationType=b.selectedAggregationRule;
b.originalEffortSpec&&b.originalEffortSpec.customFieldId!==0&&(e.customFieldId=b.originalEffortSpec.customFieldId);var f;if(((f=b.selectedEffortConfig)==null?void 0:f.displayText)===SYd.displayText)e.numericSpec={multiplier:b.numericSpecMultiplier};else if(b.enumSpecOptions.length>0){f=[];for(var g=m(b.enumSpecOptions),k=g.next();!k.done;k=g.next())k=k.value,k.label&&k.value!==null&&f.push({label:k.label,value:k.value});e.enumSpec={options:f}}b.updateEffortSpec.emit(e)}else b.updateEffortSpec.emit({name:"",
inherit:!1});return v()})("selectedChange",function(e){u(c);b.estimatedEffortFieldEnabled=e;b.estimatedEffortFieldEnabled||UYd(b);return v()})("onCancelButtonClicked",function(){u(c);b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,UYd(b));return v()})("isInheritedChange",function(e){u(c);(e=e.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:{name:"Estimated effort"}),b.effortSpec=
b.parentEffortSpec,b.effortSpec||UYd(b)):b.effortSpec&&(b.setValues({}),UYd(b));b.inherit=e;return v()});K(1,"div",2);F(2,O2b,1,1,"ng-container")(3,P2b,1,2,"b-numeric-config",3)(4,Q2b,0,0);L();F(5,R2b,23,13,"div",4);L();E(6,S2b,1,2,"ng-template",null,0,Mg)}if(a&2){var d;Ag("cardTitle",b.name);I("dropdownOptions",b.configurationOptions)("selectedOption",b.selectedEffortConfig)("disabled",b.disabled||b.inherit)("selected",b.estimatedEffortFieldEnabled)("isSaveButtonDisabled",b.isSaveButtonDisabled())("showInheritedToggle",
!0)("isInherited",b.inherit)("inheritedDisabled",b.disabled);B(2);G((d=TYd(b))==="enum"?2:d==="numeric"?3:d==="empty"?4:-1);B(3);G(b.estimatedEffortFieldEnabled?5:-1)}},dependencies:function(){return[Kx,Dy,MD,BD,gB,eB,v6,oK,iA,vU,MH,NH,cA,C6,PYd,XYd]},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 VYd=[{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}],WYd=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],QYd={displayText:"Story points",icon:"story-point-24px"},RYd={displayText:"T-shirt sizes",icon:"t-shirt-24px"},SYd={displayText:"Time",icon:"time-24px"},XYd=function(){};
XYd.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};XYd.\u0275fac=function(a){return new (a||XYd)};XYd.\u0275pipe=ef({name:"aggregationRuleText",type:XYd,pure:!0,standalone:!1});var YYd=function(){this.disabled=!1;this.updateComponent=new XP};YYd.\u0275fac=function(a){return new (a||YYd)};
YYd.\u0275cmp=D({type:YYd,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&&(K(0,"div",0)(1,"div",1),Q(2,"Once activated, standard fields appear in the right panel of all issues."),L(),K(3,"b-estimated-effort-config",
2),N("updateEffortSpec",function(c){b.updateComponent.emit(c)}),L()());a&2&&(B(3),I("effortSpec",b.effortSpec)("parentEffortSpec",b.parentEffortSpec)("disabled",b.disabled))},dependencies:[D6],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});var E6=function(){};E6.\u0275fac=function(a){return new (a||E6)};E6.\u0275mod=cf({type:E6});E6.\u0275inj=Hc({imports:[RO,BE,iB,gL,w6,pK,wU,OV]});var F6=function(){};F6.\u0275fac=function(a){return new (a||F6)};F6.\u0275mod=cf({type:F6});F6.\u0275inj=Hc({imports:[RO,w6,E6]});var G6=function(){var a=this;this.teamsService=p(KQ);this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new XP;this.inherit=!1;this.selectedTeam$=new sf;this.teamIdChanged$=new wf(1);this.placeholder$=this.teamIdChanged$.pipe(A(function(b){return b==="0"?!a.isAdmin||!a.isTopLevel&&a.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),zf(""));this.teamFromId$=this.teamIdChanged$.pipe(Af(function(b){return b==="0"?ee(new tIb([b],
[""],"")):LQ(a.teamsService,b).pipe(A(function(c){return new tIb([],c.collapsedPathNames,c.description)}))}));this.displayedTeam$=ve(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(Af(function(b){return b==="0"?ee("MISSING"):a.teamsService.getTeam(b).pipe(A(function(c){return!c||c.deleted?"DELETED":"VALID"}))}))};
G6.prototype.updateSelectionOnChange=function(a){er("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);ZYd(this)};var ZYd=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};G6.prototype.ngOnInit=function(){Object.assign({},this.model);ZYd(this)};var W2b=function(a){return a.model.id&&a.model.id!=="0"};
G6.prototype.getMomaTeamLink=function(){return W2b(this)?"https://moma.corp.google.com/team/"+this.model.id:null};G6.\u0275fac=function(a){return new (a||G6)};
G6.\u0275cmp=D({type:G6,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&&(K(0,"div"),F(1,U2b,1,1),T(2,"async"),F(3,V2b,3,2,"div",0),K(4,"div",1)(5,"label",2),Q(6,"Team selection"),L(),K(7,"b-team-picker",3),T(8,"async"),T(9,"async"),N("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model);ZYd(b)}),L(),F(10,Y2b,1,1)(11,$2b,1,1),L()());if(a&2){var c;
B();G((c=U(2,6,b.warningType$))?1:-1,c);B(2);G(b.isTopLevel?-1:3);B(4);I("placeholder",U(8,8,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",U(9,10,b.displayedTeam$));B(3);G(b.useInternalLink?10:11)}},dependencies:[Dy,$E,fL,aI,oK,iA,Y1,s4,gB,eB,Lx],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 H6=function(){};H6.\u0275fac=function(a){return new (a||H6)};H6.\u0275mod=cf({type:H6});H6.\u0275inj=Hc({imports:[RO,VX,gL,pK,a2,g5,xE,iB]});var I6=function(){};I6.\u0275fac=function(a){return new (a||I6)};I6.\u0275mod=cf({type:I6});I6.\u0275inj=Hc({imports:[RO,OV,iB,bI,Fy]});var $Yd=function(){};$Yd.\u0275fac=function(a){return new (a||$Yd)};$Yd.\u0275mod=cf({type:$Yd});$Yd.\u0275inj=Hc({imports:[I6,iB,MJ]});var aZd=function(){};aZd.\u0275fac=function(a){return new (a||aZd)};aZd.\u0275mod=cf({type:aZd});aZd.\u0275inj=Hc({imports:[RO,oV,MJ,e5]});var bZd=function(){};bZd.\u0275fac=function(a){return new (a||bZd)};bZd.\u0275mod=cf({type:bZd});bZd.\u0275inj=Hc({imports:[RO,xE,iB,MJ,BE,OD,X2]});var cZd=function(){};cZd.\u0275fac=function(a){return new (a||cZd)};cZd.\u0275mod=cf({type:cZd});cZd.\u0275inj=Hc({imports:[RO,xE,iB,BE,OD,MJ]});var dZd=function(){this.dialogData=p(PA);this.dialogRef=p(NA);this.originalItems=this.dialogData.fields.map(function(a){return{name:a.name,data:a}});this.items=[].concat(q(this.originalItems));this.fieldOrdering=this.dialogData.orderingCustomized;this.hasChanges=!1};dZd.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};dZd.\u0275fac=function(a){return new (a||dZd)};
dZd.\u0275cmp=D({type:dZd,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();K(0,"div",1)(1,"div",2)(2,"h1",3);Q(3," Reorder custom fields ");L();K(4,"button",4);N("click",function(){u(c);var d=qg(8);return v(uGd(d))});M(5,"mat-icon",5);L()()();K(6,"div",6)(7,"b-reorder-items",7,0);N("items",function(d){u(c);return v(b.items=d)})("hasChanges",function(d){u(c);
return v(b.hasChanges=d)});L()();K(9,"div",8)(10,"button",9);N("click",function(){u(c);return v(b.dialogRef.close())});Q(11," Cancel ");L();K(12,"button",10);N("click",function(){u(c);return v(b.onClose())});Q(13," Save ");L()()}a&2&&(B(7),I("originalItems",b.originalItems),B(5),I("disabled",b.fieldOrdering==="CUSTOMIZED"&&!b.hasChanges))},dependencies:[Dy,gB,cB,eB,TA,VA,UA,oK,iA,VZ],encapsulation:2});var eZd=function(){this.matDialog=p(QA);this.confirmationDialog=p(ZR);this.fieldConfigService=p(y6);this.analytics=p(aQ);this.butterBar=p(QN);this.fields=[];this.isAdmin=!1;this.onReload=new XP;this.displayedColumn=["index","name","type","required","customFieldId"]},n3b=function(a){return OA(a.matDialog.open(dZd,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&fZd(a,b)})},o3b=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Bh("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()}})},fZd=function(a,b){a.analytics.trackEvent("fieldOrdering","reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?(Pr(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){Pr(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.")};
eZd.prototype.reset=function(){var a=this;this.analytics.trackEvent("fieldOrdering","resetFields");this.componentId?(Pr(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){Pr(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.")};
eZd.\u0275fac=function(a){return new (a||eZd)};
eZd.\u0275cmp=D({type:eZd,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&&(K(0,"div",0)(1,"div",1)(2,"table",2),Uf(3,3),E(4,a3b,2,0,"th",4)(5,b3b,2,1,"td",5),Vf(),Uf(6,6),E(7,c3b,2,0,"th",4)(8,d3b,2,1,"td",5),Vf(),Uf(9,7),E(10,e3b,2,0,"th",4)(11,f3b,3,
3,"td",5),Vf(),Uf(12,8),E(13,g3b,2,0,"th",4)(14,h3b,2,1,"td",5),Vf(),Uf(15,9),E(16,i3b,2,0,"th",4)(17,j3b,2,1,"td",5),Vf(),E(18,k3b,1,0,"tr",10)(19,l3b,1,0,"tr",11),L(),F(20,m3b,2,0,"div",12),L(),F(21,p3b,6,2,"div",13),L());a&2&&(B(2),I("dataSource",b.fields),B(16),I("matHeaderRowDef",b.displayedColumn),B(),I("matRowDefColumns",b.displayedColumn),B(),G(b.fields.length===0?20:-1),B(),G(b.isAdmin?21:-1))},dependencies:[gB,cB,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,byd],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 J6=function(){};J6.\u0275fac=function(a){return new (a||J6)};J6.\u0275mod=cf({type:J6});J6.\u0275inj=Hc({imports:[RO,iB,MJ]});var K6=function(){};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275mod=cf({type:K6});K6.\u0275inj=Hc({imports:[RO,iB,MJ,OX,pK,J6,nX,I6]});var gZd=function(){this.analytics=p(aQ);this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},r3b=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="+hZd+a.issueId+iZd;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
gZd.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};gZd.\u0275fac=function(a){return new (a||gZd)};
gZd.\u0275cmp=D({type:gZd,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&&(K(0,"div",0)(1,"a",1),N("click",function(){return b.trackClick("fileName")}),
Q(2),L(),F(3,q3b,2,1,"span")(4,t3b,6,0,"span"),L());a&2&&(B(),I("href",r3b(b,b.lineNumbers),Pe),B(),S(" ",b.filename," "),B(),G(b.lineNumbers.length<=10&&b.packageName!="wiki"?4:3))},encapsulation:2});var hZd=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),iZd=encodeURIComponent("(\\b|$)");var L6=function(){};L6.\u0275fac=function(a){return new (a||L6)};L6.\u0275mod=cf({type:L6});L6.\u0275inj=Hc({imports:[RO]});var C3b=function(a,b){return b.category},jZd=function(){var a=this;this.bLocation=p(ZT);this.destroyRef=p(Ee);this.dynamicScrollIntoView=p(LZ);this.elementRef=p(Jd);this.contextSensitiveRegistry=p(TQ);this.imageUrls=p(YV);this.scrolledOnScreenService=p(sU);this.issueEnrichmentService=p(I1);this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.onScreenSubscriptions=new Map;this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.FIRST_PARTY_ENRICHMENTS=WNd;this.LOGO_PURPLE=
this.imageUrls.LOGO_PURPLE;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(we(Qm),pf());this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Cf(function(b){a.logImpressions(b)}));this.scrollToInsight=MB(function(){var b=a.bLocation.hash();b&&LFd(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"insights-accordion",scrollPadding:60}).pipe(Uj(a.destroyRef)).subscribe()},200)};h=jZd.prototype;
h.ngOnInit=function(){var a=this;this.scrollToInsight();this.destroyRef.onDestroy(function(){for(var b=m(a.onScreenSubscriptions.values()),c=b.next();!c.done;c=b.next())c.value.unsubscribe();a.onScreenSubscriptions.clear()})};h.onExpand=function(a,b){var c=this;this.logIssueUserEventForIssueEnrichment("EVENT_TYPE_OPEN",a.category);setTimeout(function(){c.maybeSetupOnScreenDetection(a.category,b._body.nativeElement)},0)};
h.logImpressions=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,ie(b.issueId$),2);c=k.yieldResult;d=m(a);for(e=d.next();!e.done;e=d.next())f=e.value,g=f.category,b.loggedImpressionEnrichments.has(g)||(b.loggedImpressionEnrichments.add(g),b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_IMPRESSION",g));ce(k)})};
h.logIssueUserEventForIssueEnrichment=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return z(e,ie(c.issueId$),2);d=e.yieldResult;c.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,a,b);ce(e)})};
h.maybeSetupOnScreenDetection=function(a,b){var c=this,d,e,f;y(function(g){if(g.nextAddress==1){if(c.loggedViewEnrichments.has(a))return g.return();(d=c.onScreenSubscriptions.get(a))&&d.unsubscribe();return z(g,ie(c.issueId$),2)}e=g.yieldResult;f=qsd(c.scrolledOnScreenService,b,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(Uj(c.destroyRef)).subscribe(function(){if(!c.loggedViewEnrichments.has(a)){c.issueEnrichmentService.logIssueUserEventForIssueEnrichment(e,"EVENT_TYPE_VIEW",a);c.loggedViewEnrichments.add(a);
var k;(k=c.onScreenSubscriptions.get(a))==null||k.unsubscribe();c.onScreenSubscriptions.delete(a)}});c.onScreenSubscriptions.set(a,f);ce(g)})};jZd.\u0275fac=function(a){return new (a||jZd)};
jZd.\u0275cmp=D({type:jZd,selectors:[["b-insights"]],viewQuery:function(a,b){a&1&&hg(GL,5);if(a&2){var c;lg(c=mg())&&(b.accordion=c.first)}},standalone:!1,decls:5,vars:4,consts:[["expansionPanel",""],["commentPresenter",""],[1,"carded","bg-main"],[1,"padded-top","centered-inside"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button","expand-all",3,"click"],
["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button","collapse-all",3,"click"],["multi","","id","insights-accordion"],[3,"expanded","id"],[3,"opened","closed","expanded","id"],["aria-hidden","true","alt","",1,"first-party-logo","margin-s-right",3,"src"],[3,"formattedComment"],[1,"insights-date"],["mode","datetime",3,"timestamp"],[3,"enrichment"]],template:function(a,b){a&1&&($f(0),T(1,"async"),F(2,u3b,7,1,"section",2)(3,D3b,7,0)(4,E3b,2,0,"div",3));a&2&&(a=ag(U(1,1,b.enrichments$)),
B(2),G(a&&a.length===0?2:a&&a.length>0?3:4))},dependencies:[mT,sV,gB,cB,j4,GL,DL,F$c,EL,FL,$T,Lx],styles:["[_nghost-%COMP%]{display:block;padding:8px}button.gmat-button[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);margin:0 8px 8px 0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}.insights-date[_ngcontent-%COMP%]{margin-top:4px}.first-party-logo[_ngcontent-%COMP%]{width:24px;height:24px}"],
changeDetection:0});var kZd=function(){};kZd.\u0275fac=function(a){return new (a||kZd)};kZd.\u0275mod=cf({type:kZd});kZd.\u0275inj=Hc({imports:[RO,zU,xV,iB,Z4,fB,HL,Fy,bU,a1]});var lZd=function(){return{width:400}},mZd=function(){return[]},nZd=function(){var a=this;this.bLocation=p(ZT);this.analytics=p(aQ);this.activeSession=p(qu);this.componentActions=p(WV);this.cdr=p(YP,{self:!0});this.routeParams=p(rS);this.includeArchived$=new Nj(!1);this.createComponentPath=ps.createComponent.makeHref();this.isInternalSession=this.activeSession.isInternalSession();this.trackerRootComponent$=pe(function(){return ee(a.activeSession.getTracker())}).pipe(Af(function(b){return b?a.componentActions.get(b.componentId):
ee(void 0)}));this.topLevelComponents$=le([this.trackerRootComponent$,this.includeArchived$]).pipe(Af(function(b){var c=m(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&&H3b(this,String(this.routeParams.componentId),ie(this.topLevelComponents$))},H3b=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=yba(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-
1),f={0:c},g=m(e),k=g.next();!k.done;k=g.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return ms(f).then(function(l){for(var r=l[0],w=null,x=m(e),C=x.next(),H={};!C.done;H={parentId$jscomp$28:void 0},C=x.next()){H.parentId$jscomp$28=C.value;C=void 0;var J=(C=r.find(function(O){return function(R){return R.componentId===O.parentId$jscomp$28}}(H)))!=null?C:null;J&&(J.children=l[H.parentId$jscomp$28],J.showChildren=!0,r=J.children,w=J.componentId)}w&&d.archived&&!a.includeArchived&&
(b=w);a.cdr.detectChanges();setTimeout(function(){var O=a.componentTree,R=b,V=VQd(R);V&&V.click();n3(O,R)})})})};da.Object.defineProperties(nZd.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});nZd.\u0275fac=function(a){return new (a||nZd)};
nZd.\u0275cmp=D({type:nZd,selectors:[["b-list-components-page"]],standalone:!1,features:[Gg([YP])],decls:16,vars:15,consts:[["componentPickerTemplate",""],[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-button","",3,"href"],["type","button","mat-button","","dialogLabel","Components","panelClass","overflow-visible-inline-dialog-panel",3,"xapInlineDialogClick","overlaySize"],["id","bv2-issue-showarchived-button"],[1,"bv2-view"],[1,"bv2-view-loading"],[1,"top-tree",3,"init",
"components","includeArchived"],[1,"component-picker-dialog"],["ariaLabel","Choose a component to navigate to that component.",3,"selectedComponentChange","includeArchived","placeholder","shouldFocus","isRequired"],["label","Show archived",3,"modelChange","model","tooltip"],["size","small"]],template:function(a,b){if(a&1){var c=t();K(0,"h2",1);Q(1,"Browse Components");L();K(2,"div",2)(3,"div",3);F(4,F3b,2,1,"a",4);K(5,"button",5);Q(6," Search Components ");L();E(7,G3b,4,6,"ng-template",null,0,Mg);
F(9,I3b,3,4,"div",6);L()();K(10,"div",7);F(11,J3b,2,0,"div",8);T(12,"async");K(13,"component-tree-list",9);T(14,"async");T(15,"async");N("init",function(g){u(c);return v(b.componentTree=g)});L()()}if(a&2){a=qg(8);B(4);G(b.isInternalSession?4:-1);B();I("xapInlineDialogClick",a)("overlaySize",Hg(13,lZd));B(4);G(b.isInternalSession?9:-1);B(2);var d;G((d=U(12,7,b.topLevelComponents$))!=null&&d?-1:11);B(2);var e,f;I("components",(e=U(14,9,b.topLevelComponents$))!=null?e:Hg(14,mZd))("includeArchived",(f=
U(15,11,b.includeArchived$))!=null?f:!1)}},dependencies:[$T,YA,XA,aB,QU,gB,cB,m3,iW,Lx],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var oZd=function(){};oZd.\u0275fac=function(a){return new (a||oZd)};oZd.\u0275mod=cf({type:oZd});oZd.\u0275inj=Hc({imports:[RO,bU,X1,HV,IV,VX,RU,iB,o3,NX]});var pZd=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};pZd.\u0275fac=function(a){return new (a||pZd)};
pZd.\u0275cmp=D({type:pZd,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&&(K(0,"div",0),F(1,K3b,2,1,"p",1),K(2,"ul"),Of(3,L3b,2,5,"li",null,Nf),L()());a&2&&(B(),G(b.displayPackageName?1:-1),B(2),
Pf(b.packageMentionSet.fileMentionSet))},dependencies:[gZd],encapsulation:2});var M6=function(){};M6.\u0275fac=function(a){return new (a||M6)};M6.\u0275mod=cf({type:M6});M6.\u0275inj=Hc({imports:[RO,L6]});var qZd=function(){};qZd.\u0275fac=function(a){return new (a||qZd)};qZd.\u0275mod=cf({type:qZd});qZd.\u0275inj=Hc({imports:[RO,xE,iB,MJ,BE,OD,O_]});var rZd=function(){this.activeSession=p(qu)};rZd.prototype.ngOnInit=function(){};var sZd=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};rZd.\u0275fac=function(a){return new (a||rZd)};
rZd.\u0275cmp=D({type:rZd,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),K(1,"mat-menu",
2,0)(3,"div",3),F(4,M3b,2,1,"div",4),M(5,"hr"),K(6,"a",5),Q(7,"Switch accounts"),L(),M(8,"hr"),K(9,"a",5),Q(10,"Sign out of all accounts"),L()()());a&2&&(a=qg(2),I("matMenuTriggerFor",a),B(4),G(b.activeSession.getUserEmail()?4:-1),B(2),I("href","https://accounts.google.com/AccountChooser?hl=en&osid=1&continue="+encodeURIComponent(sZd(b)),Pe),B(3),I("href","https://accounts.google.com/Logout?hl=en&continue="+encodeURIComponent(sZd(b)),Pe))},dependencies:[OJ,YG,WG,aH],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 N6=function(){Z.apply(this,arguments);this.trackerCheckboxValues={}};Y(N6,Z);N6.\u0275dir=Z.\u0275dir;N6.prototype.ngOnChanges=function(a){if(a.currentTrackerId){this.trackerCheckboxValues={};var b;a=m((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 tZd=function(a){return Object.keys(bj(a.trackerCheckboxValues,function(b){return b}))};
N6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(N6)))(b||N6)}}();
N6.\u0275cmp=D({type:N6,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},standalone:!1,features:[Gf,bx],decls:9,vars:3,consts:[[1,"bv2-tracker-search"],[1,"bv2-adv-search-rule","bv2-adv-tracker-search-rule"],[1,"bv2-adv-tracker-search-rule-title"],[1,"bv2-adv-tracker-search-rule-error"],[1,"bv2-adv-search-enum-rule"],[1,"bv2-adv-search-enum-item"],["gmat-checkbox","",3,"change","checked"]],template:function(a,b){a&1&&(K(0,"div",0)(1,
"div",1)(2,"div",2)(3,"span"),Q(4,"Select a tracker"),L(),F(5,N3b,2,0,"span",3),L(),K(6,"div",4),Of(7,O3b,3,2,"div",5,Nf),L()()());a&2&&(wg("hidden",!(b.availableTrackers&&b.availableTrackers.length>1)),B(5),G(tZd(b).length!==0?-1:5),B(2),Pf(b.availableTrackers))},dependencies:[fL,aI],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 O6=function(){var a=p(PO),b=p(mW);Z.call(this);var c=this;this.analytics=p(aQ);this.location=p(ZT);this.prefsManager=p(dR);this.domSafe=p(iR);this.prefsManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(d){c.prefs=d});a.topBarEvents.browseComponents.pipe(Bf(this.destroyed$)).subscribe(function(d){d=d.newTab;uZd(c,ps.listComponents.makeHref(),d)});a.topBarEvents.manageHotlists.pipe(Bf(this.destroyed$)).subscribe(function(d){d=d.newTab;uZd(c,ps.listHotlists.makeHref(),d)});a.topBarEvents.manageSlos.pipe(Bf(this.destroyed$)).subscribe(function(d){d=
d.newTab;uZd(c,ps.listSlos.makeHref(),d)});a.topBarEvents.setDensity.pipe(Bf(this.destroyed$)).subscribe(function(d){c.setDensity(d)});a.topBarEvents.openSettings.pipe(Bf(this.destroyed$)).subscribe(function(d){var e=d.newTab;uZd(c,b.settings(d.settingsTabName),e)})};Y(O6,Z);O6.\u0275dir=Z.\u0275dir;var uZd=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.setUrl(b)};
O6.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(nf(1),Bf(this.destroyed$)).subscribe(),this.analytics.trackEvent("preferences","setDisplayDensity",a))};O6.\u0275fac=function(a){return new (a||O6)};O6.\u0275prov=Fc({token:O6,factory:O6.\u0275fac,providedIn:"root"});var vZd=function(){this.hideAppChromeHelper=p(O2);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome};vZd.\u0275fac=function(a){return new (a||vZd)};vZd.\u0275cmp=D({type:vZd,selectors:[["b-top-bar-outlet"]],standalone:!1,decls:1,vars:1,template:function(a,b){a&1&&F(0,P3b,1,0,"b-top-bar-outlet-body");a&2&&G(b.hideAppChrome()===!1?0:-1)},dependencies:function(){return[P6]},encapsulation:2});
var P6=function(){Z.call(this);var a=this;this.activeSession=p(qu);this.searchAcData=p(D5);this.savedSearchApi=p(jP);this.butterBar=p(QN);this.bLocation=p(ZT);this.paths=p(mW);this.analytics=p(aQ);this.appEvents=p(PO);this.appSearchState=p(oT);this.trackerFridge=p(RQ);this.errorHandler=p(kO);p(O6);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=
this.activeSession.getFlag("enableTrackersAccountHack");this.currentTracker=this.activeSession.getTracker();this.associatedTrackers$=pe(function(){var b,c;return ee((c=(b=a.currentTracker)==null?void 0:b.associatedTrackerIds)!=null?c:[])}).pipe(Af(function(b){return a.trackerFridge.watchSet(b)}));this.availableTrackers$=this.associatedTrackers$.pipe(A(function(b){return a.currentTracker?[a.currentTracker].concat(q(b)):[]}));this.searchAcData.acRefreshed$.pipe(Bf(this.destroyed$)).subscribe(function(){a.items=
a.searchAcData.items;a.acHeader=a.searchAcData.acHeader});this.trackerFridge.error$.pipe(Bf(this.destroyed$)).subscribe(function(b){b.status!==403&&a.errorHandler.errorHandler(null,b)})};Y(P6,Z);P6.\u0275dir=Z.\u0275dir;var wZd=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"}};
P6.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(Bf(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(d.cursorIdx==null)d.currentSearchContext=null;else{var f=d.query,g=d.cursorIdx;if(g<0||g>f.length)throw Error("pg");e=new tVd(f,g);if(f){var k=f.slice(0,g);for(var l=!1,r=-1,w=-1;(r=k.indexOf('"',r+1))>-1;)l=!l,w=r;k=l?w:-1;if(k>-1)e.value={val:f.slice(k,g),idx:k};else if(k=f.slice(g),l=k.search("\\s"),
(k=mYb(f.slice(0,g)+(l>-1?k.slice(0,l):k),xVd))?(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){l=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(l);r=Math.max(g-l,0);w=k;if(f.charAt(0)==="("){b:{w=[];for(var x=/[()]/g,C;(C=x.exec(f))!=null;){var H=w[w.length-1];if(H&&H!==C[0]){if(w.pop(),
!w.length){w=C.index>=r;break b}}else w.push(C[0])}w=!0}w=w?2:0}else w=uVd.includes(w.val)&&f.search("^\\d")===-1?1:0;switch(w){case 2:g=uVd.includes(k.val)?Wt(f,r,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):Wt(f,r,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(g.val)&&(g.val="",g.idx=r);e.value=g;break;case 1:e.value=Wt(f,r,"[()|]","[()|,\\s]");break;case 0:e.value=Wt(f,r,"[\\s()|]");f.slice(0,r).search("[\\s()|]")>-1&&(k=null,r=mYb(f,"(?:\\s|^)(?:-?)(customfield|cf)"))&&(e.value=lYb(f,
r.index-r[1].length,g));break;default:wb(w,"unknown ValueType.")}e.value.idx+=l;e.label=k}else k=mYb(f,"(?:\\s|^)(?:-?)(customfield|cf)"),e.value=k?lYb(f,k.index-k[1].length,g):Wt(f,g,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,g=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:g,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(A(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(Ef(b),
Bf(this.destroyed$)).subscribe(function(c){c=m(c);var d=c.next().value;c=c.next().value;var e=a.appSearchState;d=d===void 0?"":d;var f=t9a(c),g=f.filters,k=f.text,l=f.complexSyntax,r=f.resourceIds;f=[g,k,r].reduce(pUa);g=[g?"filters":void 0,k?"text":void 0,r?"ids":void 0].filter(Boolean).join("-");l?e.track(d,"complex"):g?e.track(d,g,f):e.track(d,"UNHANDLED");d=Ia(e.searchHandlerStack);d===void 0?e.$log.warn("No search function installed."):d(c)})};
P6.prototype.ngAfterViewInit=function(){RXd(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var xZd=function(a){if(a.advancedSearchCtrl)return a.advancedSearchCtrl.getState()!=="SUCCESS"?a.currentQuery:YXd(a.advancedSearchCtrl).trim()};h=P6.prototype;h.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(xZd(this)!==this.currentQuery||this.advancedSearchCtrl.getState()!=="SUCCESS")&&RXd(this.advancedSearchCtrl,this.currentQuery)};
h.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:tZd(a))!=null?b:[]);this.advancedSearchCtrl&&(a=xZd(this),a!==void 0&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}))};
h.submitAdvancedSearch=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:tZd(a))!=null?b:[]);this.advancedSearchCtrl&&(a=xZd(this),a!==void 0&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next("ui-builder")))};
h.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=xZd(this);c!==void 0&&(Pr(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;Pr(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(Sp(d))}))}};
h.isSearchDisabled=function(){return!!this.trackerSearchCtrl&&tZd(this.trackerSearchCtrl).length===0};P6.\u0275fac=function(a){return new (a||P6)};
P6.\u0275cmp=D({type:P6,selectors:[["b-top-bar-outlet-body"]],viewQuery:function(a,b){a&1&&(hg(m6,5),hg(N6,5));if(a&2){var c;lg(c=mg())&&(b.advancedSearchCtrl=c.first);lg(c=mg())&&(b.trackerSearchCtrl=c.first)}},standalone:!1,features:[Gf],decls:7,vars:12,consts:[[3,"searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch","logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader",
"isSearchDisabled"],[3,"currentTrackerId","availableTrackers"],[3,"isTrackerSearchEnabled"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],[3,"trackerInternalBaseUrl","trackerExternalBaseUrl"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(K(0,"b-app-top-bar",0),N("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",
function(c){return b.saveSearch(c)}),F(1,Q3b,2,4,"b-tracker-search",1),M(2,"b-advanced-search",2),F(3,R3b,4,0,"div",3),F(4,U3b,3,2,"div",4),F(5,V3b,2,0,"div",4),L(),F(6,W3b,1,2,"b-tracker-account-menu-hack",5));a&2&&(I("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",wZd(b,b.currentTracker))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled()),B(),G(b.currentTracker?1:
-1),B(),I("isTrackerSearchEnabled",!b.currentTracker),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="INIT"?3:-1),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"||(b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?4:-1),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SERVER_ERROR"?5:-1),B(),G(b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&b.currentTracker?
6:-1))},dependencies:[Dy,m6,N6,sYd,$T,rZd,Lx],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 yZd=function(){};yZd.\u0275fac=function(a){return new (a||yZd)};yZd.\u0275mod=cf({type:yZd});yZd.\u0275inj=Hc({imports:[RO,gL]});var zZd=function(){};zZd.\u0275fac=function(a){return new (a||zZd)};zZd.\u0275mod=cf({type:zZd});zZd.\u0275inj=Hc({imports:[RO,n6,yZd,u6,bU,PJ]});var Q6=function(){this.dialogRef=p(NA);this.data=p(PA);this.updateDiffs=this.data.updateDiffs;this.userToDisplay=um;this.DiffType=Gcd};Q6.prototype.close=function(){this.dialogRef.close()};Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275cmp=D({type:Q6,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,"user"],[1,"bv2-event-info"],["mode","datetime",3,"timestamp"],[1,"bv2-event-details"],
[1,"bv2-diff-detail"],[1,"bv2-diff-arrow"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"ul",1),Of(2,f4b,11,3,"li",2,Nf),L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.close()}),Q(6," Close "),L()());a&2&&(B(2),Pf(b.updateDiffs))},dependencies:[gB,cB,VA,UA,bV,ZU,sV],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 AZd=function(){};AZd.\u0275fac=function(a){return new (a||AZd)};AZd.\u0275mod=cf({type:AZd});AZd.\u0275inj=Hc({imports:[RO,iB,MJ,iV,xV]});var R6=function(){this.paths=p(mW);this.bLocation=p(ZT)};R6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=rs(a.issueId)+(b?"#"+b:"");this.bLocation.setUrl(a)};R6.\u0275fac=function(a){return new (a||R6)};R6.\u0275prov=Fc({token:R6,factory:R6.\u0275fac,providedIn:"root"});var BZd={provide:HR,useExisting:R6};var CZd=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 DZd=function(a){BB.call(this);this.errorHandlerFn_=a};rw(DZd,BB);DZd.prototype.wrap=function(a){return EZd(this,a)};var FZd=function(a,b){return(b?"__wrapper_":"__protected_")+Aba(a)+"__"},EZd=function(a,b){var c=FZd(a,!0);b[c]||((b[c]=GZd(a,b))[FZd(a,!1)]=b);return b[c]},GZd=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[FZd(a,!1)]=b;return c};
DZd.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 HZd(a);};
var IZd=function(a,b){var c=ra.window||ra.globalThis,d=c[b];if(!d)throw Error("tg`"+b);c[b]=function(e,f){typeof e==="string"&&(e=pw(Owc,e));e&&(arguments[0]=e=EZd(a,e));if(d.apply)return d.apply(this,arguments);var g=e;if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);g=function(){e.apply(this,k)}}return d(g,f)};c[b][FZd(a,!1)]=d};
DZd.prototype.disposeInternal=function(){var a=ra.window||ra.globalThis;var b=a.setTimeout;b=b[FZd(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[FZd(this,!1)]||b;a.setInterval=b;DZd.superClass_.disposeInternal.call(this)};var HZd=function(a){pa.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)};rw(HZd,pa);var KZd=function(a,b,c){kj.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=JZd;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new DZd(nj(this.handleException,this));IZd(this.errorHandler_,"setTimeout");IZd(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ra.window||ra.globalThis;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&
IZd(a,e)}a=this.errorHandler_;PGc=!0;b=nj(a.wrap,a);for(c=0;c<NGc.length;c++)NGc[c](b);OGc.push(a)}};rw(KZd,kj);var LZd=function(a,b){CB.call(this,"r");this.error=a;this.context=b};rw(LZd,CB);var JZd=function(a,b,c,d){if(d instanceof Map){var e={};d=m(d);for(var f=d.next();!f.done;f=d.next()){var g=m(f.value);f=g.next().value;g=g.next().value;e[f]=g}}else e=d;cob(a,null,b,c,e)};
KZd.prototype.handleException=function(a,b){a=a.error||a;b=b?cj(b):{};a instanceof Error&&Vta(b,a.__closure__error__context__984382||{});var c=pEc(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(e){}var d=c.message.substring(0,1900);a instanceof pa&&!a.reportErrorToServer||MZd(this,d,c.fileName,c.lineNumber,c.stack,b);try{this.dispatchEvent(new LZd(c,b))}catch(e){}};
var MZd=function(a,b,c,d,e,f){try{var g=tgb(a.handlerUrl_,"script",c,"error",b,"line",d);Pta(a.additionalArguments_)||(g=vgb(g,a.additionalArguments_));b={};b.trace=e;if(f)for(var k in f)b["context."+k]=f[k];var l=AHc(b);a.xhrSender_(g,"POST",l,a.extraHeaders_)}catch(r){}};KZd.prototype.disposeInternal=function(){$i(this.errorHandler_);KZd.superClass_.disposeInternal.call(this)};var S6=function(){this.jsBuild="828579411";this.buildLabel="buganizer.frontend_20251105.06_p0"};S6.\u0275fac=function(a){return new (a||S6)};S6.\u0275prov=Fc({token:S6,factory:S6.\u0275fac,providedIn:"root"});var T6=function(){};T6.prototype.reportingEnabled=function(){return CZd!==4};T6.\u0275fac=function(a){return new (a||T6)};T6.\u0275prov=Fc({token:T6,factory:T6.\u0275fac,providedIn:"root"});
var U6=function(){var a=this;this.appContext=p(T6);this.context={};this.reportingExtensions=[];var b=p(S6);this.jsDebugErrorReporter=new KZd("/jserror",function(c,d){d.js_build=b.jsBuild;d.buildLabel=b.buildLabel;d["build-label"]=b.buildLabel;c=m(a.reportingExtensions);for(var e=c.next();!e.done;e=c.next())e.value.enhanceContext(d)},!0)},NZd=function(a,b){b="Error: "+b;console.error("ErrorReporter: ",b);if(a.appContext.reportingEnabled())try{throw Error(b);}catch(c){for(g4b(c),MZd(a.jsDebugErrorReporter,
b,c.fileName,c.lineNumber,c.stack,a.context),a=m(a.reportingExtensions),b=a.next();!b.done;b=a.next())b.value.onReportedError()}};U6.prototype.reportError=function(a){console.error("ErrorReporter: ",(a==null?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){g4b(a);this.jsDebugErrorReporter.handleException(a);a=m(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};U6.\u0275fac=function(a){return new (a||U6)};
U6.\u0275prov=Fc({token:U6,factory:U6.\u0275fac,providedIn:"root"});var V6=function(){this.reporter=p(U6)};
V6.prototype.handleError=function(a){if(Rp(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)Vm("omitting eye3 reporting of",a);else if(typeof a==="string")NZd(this.reporter,a);else if(a instanceof Error||!Rp(a)){b=pEc(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 NZd(this.reporter,
Sp(a))};V6.\u0275fac=function(a){return new (a||V6)};V6.\u0275prov=Fc({token:V6,factory:V6.\u0275fac,providedIn:"root"});var W6=function(){this.activeSession=p(qu)};Y(W6,T6);W6.prototype.reportingEnabled=function(){return this.activeSession.getFlag("reportErrors")};W6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(W6)))(b||W6)}}();W6.\u0275prov=Fc({token:W6,factory:W6.\u0275fac,providedIn:"root"});
var OZd={provide:mx,useExisting:V6},PZd={provide:T6,useExisting:W6},QZd={provide:S6,useValue:{jsBuild:"828579411",buildLabel:"buganizer.frontend_20251105.06_p0"}};var X6=function(){};X6.\u0275fac=function(a){return new (a||X6)};X6.\u0275cmp=D({type:X6,selectors:[["b-empty"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var RZd=function(){};RZd.\u0275fac=function(a){return new (a||RZd)};RZd.\u0275mod=cf({type:RZd});RZd.\u0275inj=Hc({});var Y6=function(){};Y(Y6,UE);Y6.prototype.store=function(){};Y6.prototype.retrieve=function(){return null};Y6.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&mm(a.params,b.params)};Y6.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(Y6)))(b||Y6)}}();Y6.\u0275prov=Fc({token:Y6,factory:Y6.\u0275fac,providedIn:"root"});var Z6=function(){this.router=p(YE)};Z6.prototype.canActivate=function(a,b){return b.url.includes("#ISSUE_HistoryHeader")?(b=m(b.url.split("#ISSUE_HistoryHeader")),a=b.next().value,b=b.next().value,ZE(this.router,[a],{fragment:b&&!isNaN(Number(b))?"comment"+b:void 0})):b.url==="/attention"?ZE(this.router,["home"]):!0};Z6.\u0275fac=function(a){return new (a||Z6)};Z6.\u0275prov=Fc({token:Z6,factory:Z6.\u0275fac,providedIn:"root"});var SZd=/^(\d+)$/,$6=function(){this.butterBar=p(QN);this.paramNamesToCheck=new Set(Object.values(Med))};$6.prototype.validate=function(a){for(var b=m(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=wo(d);if(!SZd.test(d)||isNaN(e)||!Number.isInteger(e))return this.butterBar.showWarning("The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};$6.\u0275fac=function(a){return new (a||$6)};
$6.\u0275prov=Fc({token:$6,factory:$6.\u0275fac,providedIn:"root"});var a7=function(){this.routeParamsValidator=p($6)};a7.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};a7.\u0275fac=function(a){return new (a||a7)};a7.\u0275prov=Fc({token:a7,factory:a7.\u0275fac,providedIn:"root"});var b7=function(){this.activeSession=p(qu);this.router=p(YE)};b7.prototype.canActivate=function(){return this.activeSession.isAnonymous()?ZE(this.router,["issues"]):!0};b7.\u0275fac=function(a){return new (a||b7)};b7.\u0275prov=Fc({token:b7,factory:b7.\u0275fac,providedIn:"root"});var TZd=function(){this.userPreferences=p(dR)},UZd=function(a){a=zr(a.userPreferences.homepagePreferences$);if(a==null||Object.keys(a).length===0||(a==null?void 0:a.resourceType)==="MISSION_CONTROL")return"/home";if((a==null?void 0:a.resourceType)==="ASSIGNED_TO_ME"||a==null||!a.resourceId)return"/issues";switch(a.resourceType){case "BOOKMARK_GROUP":return"/dashboard/"+a.resourceId;case "SAVED_SEARCH":return"/savedsearches/"+a.resourceId;case "HOTLIST":return"/hotlists/"+a.resourceId;default:return"/issues"}};
TZd.\u0275fac=function(a){return new (a||TZd)};TZd.\u0275prov=Fc({token:TZd,factory:TZd.\u0275fac,providedIn:"root"});var c7=function(){this.router=p(YE);this.homepageRedirection=p(TZd)};c7.prototype.canActivate=function(){return ZE(this.router,[UZd(this.homepageRedirection)])};c7.\u0275fac=function(a){return new (a||c7)};c7.\u0275prov=Fc({token:c7,factory:c7.\u0275fac,providedIn:"root"});var VZd={ANDROID:"Android",CHROME:"ChromeOS",IOS:"iOS",LINUX:"Linux",MAC:"Mac",UNKNOWN:"Unknown",WINDOWS:"Windows"};var bwc={default:"1363614",apps:"1456886",blink:"1456407",devtools:"1457055",enterprise:"1456152",extensions:"1456110",installer:"1456937",media:"1456190",network:"1456527",sync:"1457192",ui:"1457123",webstore:"1457238"},awc={default:"402888",apps:"422083",blink:"421442",devtools:"422123",enterprise:"421726",extensions:"422130",installer:"421863",media:"421886",network:"421924",sync:"422168",ui:"422198",webstore:"422443"},WZd=["media-bugs@chromium.org"],XZd=["chrome-sync-monorail@google.com"];var YZd={USER:"USER",DEVELOPER:"DEVELOPER",VULN_REPORTER:"VULN_REPORTER",CONTRIBUTOR:"CONTRIBUTOR"},ZZd={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},$Zd=new fd("CustomQuestionsConfig"),a_d=new fd("ComponentIds"),b_d=new fd("CustomFieldIds"),c_d=new fd("HotlistIds");var d_d=function(){this.componentIds=p(a_d);this.persona="USER";this.categoryChange=new XP;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:WZd},{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:XZd},{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)};
d_d.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)})};d_d.\u0275fac=function(a){return new (a||d_d)};
d_d.\u0275cmp=D({type:d_d,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},standalone:!1,features:[bx],decls:6,vars:2,consts:[["appearance","outline","aria-label","Which of the following describes your issue?"],["aria-label","Choose issue category",3,"valueChange","value"],[1,"multiline",3,"value"],[1,"description"]],template:function(a,b){a&1&&(K(0,"mat-form-field",0)(1,"mat-select",1),N("valueChange",function(d){b.category=
d;b.categoryChange.emit(b.category)}),K(2,"mat-select-trigger"),Q(3),L(),Of(4,i4b,5,3,"mat-option",2,Nf),L()());if(a&2){B();I("value",b.category);B(2);var c;S(" ",(c=b.category==null?null:b.category.title)!=null?c:""," ");B();Pf(b.options[b.persona])}},dependencies:[MD,BD,vU,MH,NH,cA],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 j4b=function(a){return{question:a}},e_d=function(){this.config=p($Zd);this.CustomQuestionType=ZZd;this.responses=new XP;this.model=Object.assign({},this.config)};e_d.prototype.ngOnInit=function(){};var p4b=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};e_d.\u0275fac=function(a){return new (a||e_d)};
e_d.\u0275cmp=D({type:e_d,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&&(Of(0,k4b,1,4,"ng-container",
4,Nf),E(2,o4b,3,1,"ng-template",null,0,Mg)(4,q4b,3,3,"ng-template",null,1,Mg)(6,r4b,4,3,"ng-template",null,2,Mg)(8,v4b,6,4,"ng-template",null,3,Mg));a&2&&Pf(b.model[b.category])},dependencies:[Kx,yj,$D,gE,PD,zE,MD,BD,vU,MH,cA],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 f_d=function(){this.Persona=YZd;this.persona="USER";this.personaChange=new XP};f_d.\u0275fac=function(a){return new (a||f_d)};
f_d.\u0275cmp=D({type:f_d,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&&(K(0,"div")(1,"mat-radio-group",0),N("ngModelChange",function(c){b.persona=c;b.personaChange.emit(b.persona)}),K(2,"mat-radio-button",1),Q(3," End User "),K(4,"div",2),Q(5," I am trying to use a website. "),
L()(),K(6,"mat-radio-button",1),Q(7," Web Developer "),K(8,"div",2),Q(9," I am trying to build something on a website. "),L()(),K(10,"mat-radio-button",3),Q(11," Vulnerability Reporter "),K(12,"div",2),Q(13," I am reporting a possible security vulnerability. "),L()(),K(14,"mat-radio-button",1),Q(15," Chromium Contributor "),K(16,"div",2),Q(17," I know about a problem in specific tests or code. "),L()()()());a&2&&(B(),I("ngModel",b.persona),B(),I("value",b.Persona.USER),B(4),I("value",b.Persona.DEVELOPER),
B(4),I("value",b.Persona.VULN_REPORTER),B(4),I("value",b.Persona.CONTRIBUTOR))},dependencies:[$D,gE,qT,rT],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 g_d=new fd("GM2_CARD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var h_d=function(a){this.options=a;if(a.disableGmatStyle)throw Error("db");};h_d.\u0275fac=function(a){return new (a||h_d)(Ye(g_d))};h_d.\u0275dir=df({type:h_d,selectors:[["mat-card"]],hostAttrs:[1,"gmat-mdc-card"],standalone:!1});var d7=function(){this._elementRef=p(Jd)};d7.prototype.focus=function(){this._elementRef.nativeElement.focus()};d7.\u0275fac=function(a){return new (a||d7)};d7.\u0275dir=df({type:d7,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var e7=function(){this.template=p(eg)};e7.\u0275fac=function(a){return new (a||e7)};e7.\u0275dir=df({type:e7,selectors:[["","cdkStepLabel",""]]});var i_d=new fd("STEPPER_GLOBAL_OPTIONS"),g7=function(){var a=this;this._stepper=p(f7);this._interacted=ng.apply(null,[!1].concat(q([])));this.interactedStream=new Ui;this._state=ng.apply(null,[void 0].concat(q([])));this._editable=ng.apply(null,[!0].concat(q([])));this.optional=!1;this._completedOverride=ng.apply(null,[null].concat(q([])));this.index=ng.apply(null,[-1].concat(q([])));this.isSelected=Zg.apply(null,[function(){return a._stepper.selectedIndex===a.index()}].concat(q([])));this.indicatorType=
Zg.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(q([])));this.isNavigable=Zg.apply(null,[function(){var c=a.isSelected();return a.completed||c||!a._stepper.linear}].concat(q([])));this._customError=ng.apply(null,[null].concat(q([])));var b=p(i_d,{optional:!0});this._stepperOptions=b?b:
{};this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1};h=g7.prototype;h._getDefaultError=function(){var a;return this.interacted&&!((a=this.stepControl)==null||!a.invalid)};h.select=function(){this._stepper.selected=this};
h.reset=function(){this._interacted.set(!1);this._completedOverride()!=null&&this._completedOverride.set(!1);this._customError()!=null&&this._customError.set(!1);if(this.stepControl){var a;(a=this._childForms)==null||a.forEach(function(b){var c;return(c=b.resetForm)==null?void 0:c.call(b)});this.stepControl.reset()}};h.ngOnChanges=function(){this._stepper._stateChanged()};h._markAsInteracted=function(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))};
h._showError=function(){var a;return(a=this._stepperOptions.showError)!=null?a:this._customError()!=null};
da.Object.defineProperties(g7.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)}}});g7.\u0275fac=function(a){return new (a||g7)};
g7.\u0275cmp=D({type:g7,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&(ig(c,e7,5),ig(c,ZD,5));if(a&2){var d;lg(d=mg())&&(b.stepLabel=d.first);lg(d=mg())&&(b._childForms=d)}},viewQuery:function(a,b){a&1&&hg(eg,7);if(a&2){var c;lg(c=mg())&&(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",$g],optional:[2,
"optional","optional",$g],completed:[2,"completed","completed",$g],hasError:[2,"hasError","hasError",$g]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[bx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(cg(),If(0,w4b,1,0,"ng-template"))},encapsulation:2,changeDetection:0});
var f7=function(){this._dir=p(ci,{optional:!0});this._changeDetectorRef=p(ux);this._elementRef=p(Jd);this._destroyed=new sf;this.steps=new gg;this._sortedHeaders=new gg;this.linear=!1;this._selectedIndex=ng.apply(null,[0].concat(q([])));this.selectionChange=new Ui;this.selectedIndexChange=new Ui;this._groupId=p(bi).getId("cdk-stepper-");this._orientation="horizontal"};h=f7.prototype;
h.ngAfterContentInit=function(){var a=this;this._steps.changes.pipe(zf(this._steps),Bf(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)});kg(a.steps)})};
h.ngAfterViewInit=function(){var a=this;this._stepHeader.changes.pipe(zf(this._stepHeader),Bf(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}));kg(a._sortedHeaders)});this._keyManager=hz(jz(gz(new mz(this._sortedHeaders))),this._orientation==="vertical");kz(this._keyManager,this.selectedIndex);(this._dir?this._dir.change:ee()).pipe(zf(this._layoutDirection()),
Bf(this._destroyed)).subscribe(function(d){var e;return(e=a._keyManager)==null?void 0:iz(e,d)});kz(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=m(b);for(var c=b.next();!c.done;c=b.next())c.value._markAsInteracted()}};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};h.next=function(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)};h.previous=function(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)};h.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};
h._getStepLabelId=function(a){return this._groupId+"-label-"+a};h._getStepContentId=function(a){return this._groupId+"-content-"+a};h._stateChanged=function(){this._changeDetectorRef.markForCheck()};h._getAnimationDirection=function(a){a-=this._selectedIndex();return a<0?this._layoutDirection()==="rtl"?"next":"previous":a>0?this._layoutDirection()==="rtl"?"previous":"next":"current"};h._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()};
h._updateSelectedItemIndex=function(a){var b=this.steps.toArray(),c=this._selectedIndex();this.selectionChange.emit({selectedIndex:a,previouslySelectedIndex:c,selectedStep:b[a],previouslySelectedStep:b[c]});this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(a):kz(this._keyManager,a));this._selectedIndex.set(a);this.selectedIndexChange.emit(a);this._stateChanged()};
h._onKeydown=function(a){var b=Gh(a),c=a.keyCode,d=this._keyManager;(d==null?void 0:d.activeItemIndex)==null||b||c!==32&&c!==13?d==null||ZCc(d,"keyboard").onKeydown(a):(this.selectedIndex=d.activeItemIndex,a.preventDefault())};h._anyControlsInvalidOrPending=function(a){return this.linear&&a>=0?this.steps.toArray().slice(0,a).some(function(b){var c=b.stepControl;return(c?c.invalid||c.pending||!b.interacted:!b.completed)&&!b.optional&&!b._completedOverride()}):!1};
h._layoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};h._containsFocus=function(){var a=this._elementRef.nativeElement,b=Jh();return a===b||a.contains(b)};h._isValidIndex=function(a){return a>-1&&(!this.steps||a<this.steps.length)};
da.Object.defineProperties(f7.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&&hz(this._keyManager,a==="vertical")}}});f7.\u0275fac=function(a){return new (a||f7)};
f7.\u0275dir=df({type:f7,selectors:[["","cdkStepper",""]],contentQueries:function(a,b,c){a&1&&(ig(c,g7,5),ig(c,d7,5));if(a&2){var d;lg(d=mg())&&(b._steps=d);lg(d=mg())&&(b._stepHeader=d)}},inputs:{linear:[2,"linear","linear",$g],selectedIndex:[2,"selectedIndex","selectedIndex",ah],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var j_d=function(){this._stepper=p(f7);this.type="submit"};j_d.\u0275fac=function(a){return new (a||j_d)};j_d.\u0275dir=df({type:j_d,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.next()});a&2&&Qf("type",b.type)},inputs:{type:"type"}});var k_d=function(){this._stepper=p(f7);this.type="button"};k_d.\u0275fac=function(a){return new (a||k_d)};
k_d.\u0275dir=df({type:k_d,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.previous()});a&2&&Qf("type",b.type)},inputs:{type:"type"}});var l_d=function(){};l_d.\u0275fac=function(a){return new (a||l_d)};l_d.\u0275mod=cf({type:l_d});l_d.\u0275inj=Hc({imports:[Ey]});var h7=function(){j_d.apply(this,arguments)};Y(h7,j_d);h7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(h7)))(b||h7)}}();h7.\u0275dir=df({type:h7,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,b){a&2&&Qf("type",b.type)},features:[Gf]});var i7=function(){k_d.apply(this,arguments)};Y(i7,k_d);i7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(i7)))(b||i7)}}();
i7.\u0275dir=df({type:i7,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,b){a&2&&Qf("type",b.type)},features:[Gf]});var m_d=function(){this.templateRef=p(eg)};m_d.\u0275fac=function(a){return new (a||m_d)};m_d.\u0275dir=df({type:m_d,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});var n_d=function(){this._template=p(eg)};n_d.\u0275fac=function(a){return new (a||n_d)};n_d.\u0275dir=df({type:n_d,selectors:[["ng-template","matStepContent",""]]});var j7=function(){e7.apply(this,arguments)};Y(j7,e7);j7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(j7)))(b||j7)}}();j7.\u0275dir=df({type:j7,selectors:[["","matStepLabel",""]],features:[Gf]});var o_d=function(){this.changes=new sf;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};o_d.\u0275fac=function(a){return new (a||o_d)};o_d.\u0275prov=Fc({token:o_d,factory:o_d.\u0275fac,providedIn:"root"});var x4b=function(a,b,c){return{index:a,active:b,optional:c}},k7=function(){this._elementRef=p(Jd);this._intl=p(o_d);this._focusMonitor=p(Hy);var a=p($h);a.load(Yz);a.load(Ly);var b=p(ux);this._intlSubscription=this._intl.changes.subscribe(function(){return b.markForCheck()})};Y(k7,d7);k7.\u0275dir=d7.\u0275dir;h=k7.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._intlSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._elementRef)};
h.focus=function(a,b){a?Iy(this._focusMonitor,this._elementRef,a,b):this._elementRef.nativeElement.focus(b)};h._stringLabel=function(){return this.label instanceof j7?null:this.label};h._templateLabel=function(){return this.label instanceof j7?this.label:null};h._getHostElement=function(){return this._elementRef.nativeElement};h._getDefaultTextForState=function(a){return a=="number"?""+(this.index+1):a=="edit"?"create":a=="error"?"warning":a};
h._hasEmptyLabel=function(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()};h._hasOptionalLabel=function(){return this.optional&&this.state!=="error"};h._hasErrorLabel=function(){return this.state==="error"};k7.\u0275fac=function(a){return new (a||k7)};
k7.\u0275cmp=D({type:k7,selectors:[["mat-step-header"]],hostAttrs:["role","",1,"mat-step-header"],hostVars:4,hostBindings:function(a,b){a&2&&(xg("mat-"+(b.color||"primary")),wg("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:[Gf],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple",
"mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(a,b){a&1&&(M(0,"div",0),K(1,"div")(2,"div",1),F(3,y4b,1,6,"ng-container",2)(4,D4b,2,1),L()(),K(5,"div",3),F(6,E4b,2,1,"div",4)(7,F4b,2,1,"div",4),F(8,G4b,2,1,"div",5),
F(9,H4b,2,1,"div",6),L());if(a&2){var c;I("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disableRipple);B();xg(Eg("mat-step-icon-state-",b.state," mat-step-icon"));wg("mat-step-icon-selected",b.selected);B(2);G(b.iconOverrides&&b.iconOverrides[b.state]?3:4);B(2);wg("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error",b.state=="error");B();G((c=b._templateLabel())?6:b._stringLabel()?7:-1,c);B(2);G(b._hasOptionalLabel()?8:-1);B();G(b._hasErrorLabel()?
9:-1)}},dependencies:[aA,Kx,Dy],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 p_d=["*"],q_d=["animatedContainer"],L4b=function(a){return{steps:a}},R4b=function(a){return{step:a}},l7=function(){g7.apply(this,arguments);this._errorStateMatcher=p(Wz,{skipSelf:!0});this._viewContainerRef=p(fg);this._isSelected=Rd.EMPTY;this.stepLabel=void 0};Y(l7,g7);
l7.prototype.ngAfterContentInit=function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe(Af(function(){return a._stepper.selectionChange.pipe(A(function(b){return b.selectedStep===a}),zf(a._stepper.selected===a))})).subscribe(function(b){b&&a._lazyContent&&!a._portal&&(a._portal=new Iz(a._lazyContent._template,a._viewContainerRef))})};l7.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()};
l7.prototype.isErrorState=function(a,b){var c=!!(a&&a.invalid&&this.interacted);return this._errorStateMatcher.isErrorState(a,b)||c};l7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(l7)))(b||l7)}}();
l7.\u0275cmp=D({type:l7,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(ig(c,j7,5),ig(c,n_d,5));if(a&2){var d;lg(d=mg())&&(b.stepLabel=d.first);lg(d=mg())&&(b._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[Gg([{provide:Wz,useExisting:l7},{provide:g7,useExisting:l7}]),Gf],ngContentSelectors:p_d,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(cg(),E(0,J4b,2,1,"ng-template"))},dependencies:[Lz],encapsulation:2,
changeDetection:0});
var m7=function(){f7.call(this);var a=this;this._ngZone=p(Rg);this._renderer=p(di);this._animationsDisabled=ni();this._isAnimating=ng.apply(null,[!1].concat(q([])));this._steps=this._stepHeader=void 0;this.steps=new gg;this.animationDone=new Ui;this.labelPosition="end";this.headerPosition="top";this.headerPrefix=Og.apply(null,[null].concat(q([])));this._iconOverrides={};this._animationDuration="";this._isServer=!p(Wh).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=p(Jd).nativeElement.nodeName.toLowerCase()==="mat-vertical-stepper"?"vertical":"horizontal"};Y(m7,f7);m7.\u0275dir=f7.\u0275dir;h=m7.prototype;
h.ngAfterContentInit=function(){var a=this;f7.prototype.ngAfterContentInit.call(this);this._icons.forEach(function(b){return a._iconOverrides[b.name]=b.templateRef});this.steps.changes.pipe(Bf(this._destroyed)).subscribe(function(){return a._stateChanged()});this.selectedIndexChange.pipe(Bf(this._destroyed)).subscribe(function(){var b=a._getAnimationDuration();b==="0ms"||b==="0s"?a._onAnimationDone():a._isAnimating.set(!0)});this._ngZone.runOutsideAngular(function(){a._animationsDisabled||setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled");
a._cleanupTransition=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionend)},200)})};h.ngAfterViewInit=function(){var a=this;f7.prototype.ngAfterViewInit.call(this);if(typeof queueMicrotask==="function"){var b=!1;this._animatedContainers.changes.pipe(zf(null),Bf(this._destroyed)).subscribe(function(){return queueMicrotask(function(){b||(b=!0,a.animationDone.emit());a._stateChanged()})})}};
h.ngOnDestroy=function(){f7.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransition)==null||a.call(this)};h._getAnimationDuration=function(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"};h._onAnimationDone=function(){this._isAnimating.set(!1);this.animationDone.emit()};
da.Object.defineProperties(m7.prototype,{animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a)?a+"ms":a}}});m7.\u0275fac=function(a){return new (a||m7)};
m7.\u0275cmp=D({type:m7,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(ig(c,l7,5),ig(c,m_d,5));if(a&2){var d;lg(d=mg())&&(b._steps=d);lg(d=mg())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&(hg(k7,5),hg(q_d,5));if(a&2){var c;lg(c=mg())&&(b._stepHeader=c);lg(c=mg())&&(b._animatedContainers=c)}},hostVars:14,hostBindings:function(a,b){a&2&&(vg("--mat-stepper-animation-duration",b._getAnimationDuration()),wg("mat-stepper-horizontal",
b.orientation==="horizontal")("mat-stepper-vertical",b.orientation==="vertical")("mat-stepper-label-position-end",b.orientation==="horizontal"&&b.labelPosition=="end")("mat-stepper-label-position-bottom",b.orientation==="horizontal"&&b.labelPosition=="bottom")("mat-stepper-header-position-bottom",b.headerPosition==="bottom")("mat-stepper-animating",b._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",headerPrefix:[1,
"headerPrefix"],animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Gg([{provide:f7,useExisting:m7}]),Gf],ngContentSelectors:p_d,decls:7,vars:2,consts:[["stepTemplate",""],["horizontalStepsTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-vertical-stepper-wrapper"],[1,"mat-horizontal-stepper-header-wrapper"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,
"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","region",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"],["aria-orientation","horizontal",
"role","tablist",1,"mat-horizontal-stepper-header-container"],[1,"mat-stepper-horizontal-line"]],template:function(a,b){a&1&&(cg(),F(0,K4b,1,0),F(1,P4b,6,1,"div",3)(2,T4b,4,1,"div",4),E(3,U4b,1,27,"ng-template",null,0,Mg)(5,X4b,3,0,"ng-template",null,1,Mg));if(a&2){var c;G(b._isServer?0:-1);B();G((c=b.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[Kx,k7],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-wrapper{align-items:center;display:flex}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center;flex-grow:1}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],
encapsulation:2,changeDetection:0});var r_d=["summary"],s_d=["reproSteps"],t_d=["description"],u_d=function(a){return{nonEmptyValidator:a}},v_d=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},a5b=function(){return{noWizard:"true"}},w_d=[ym("security@chromium.org")],x_d=function(){this.activeSession=p(qu);this.analytics=p(aQ);this.butterBar=p(QN);this.currentUser=p(M2);this.componentIds=p(a_d);this.customFieldIds=p(b_d);this.hotlistIds=p(c_d);this.issueApi=p(HP);this.paths=p(mW);this.redirectUrl=p(R5);this.userAccess=
p(yP);this.Persona=YZd;this.PlatformOs=VZd;var a=h4b(),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},Z4b=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:wb(b)}};h=x_d.prototype;
h.nonEmptyValidator=function(a){return(a==null?void 0:a.trim().length)===0?!1:!0};h.reproStepsValidator=function(a){return a==="1. \n2. \n3. "?!1:!0};h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};h.enableSubmit=function(){this.isSubmitEnabled=!0};h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.uploads.push(a)};h.removeUpload=function(a){La(this.uploads,a)};
h.getAttachments=function(){for(var a=[],b=m(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(pm(c.blobRef));return a};
h.submit=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:var k="BUG",l=null,r=null,w="P2",x="S2",C=[a.hotlistIds.unconfirmed];a.model.regression==="Yes"&&C.push(a.hotlistIds.chromiumRegression);var H,J,O,R=(O=(H=a.model.category)==null?void 0:(J=H.ccEmails)==null?void 0:J.map(ym).filter(Qm))!=null?O:[],V;((V=a.model.category)==null?void 0:V.value)==="SECURITY"&&(k="VULNERABILITY",w="P4",x="S4",l="LIMIT_VIEW",r=w_d);var ca;H=((ca=a.model.category)==null?void 0:ca.componentId)||
a.componentIds.default;ca=a.model.summary;J=k5b(a.model,a.customFieldIds);O=a.model;V=O.chromeFeedback;var oa="0";V==="DESKTOP"?oa="237":V==="ANDROID"?oa="282":V==="IOS"&&(oa="5031434");V=oa==="0"?"":"Has Chrome Feedback with description matching the bug title: https://listnr.corp.google.com/product/"+(oa+"/reports?searchText="+encodeURIComponent(O.summary)+"&filter=0&dateRange=30");var ua;oa="\n# Steps to reproduce the problem\n"+O.reproSteps+"\n\n# Problem Description\n"+O.description+"\n\n"+(O.comments.length>
0?"\n# Additional Comments\n"+O.comments:"")+"\n\n# Summary\n"+O.summary+"\n\n"+m5b(O.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+((ua=O.category)==null?void 0:ua.title)+" \\\nChrome Channel: "+O.channel+" \\\nRegression: "+O.regression+" \\\n"+V;oa=oa.replace(/^\n/,"");b={componentId:H,type:k,status:"NEW",priority:w,severity:x,title:ca,customField:J,comment:oa.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:a.currentUser.user,issueAccessLimitLevel:l,
collaboratorsUsers:r,staffing:null,ccUsers:[a.currentUser.user].concat(q(R)),hotlistId:C,assigneeUser:null,verifierUser:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,gerritChanges:null,incidents:null,postmortems:null,foundInVersion:null,targetedToVersion:null,verifiedInVersion:null,retention:null,isDeleted:null,deletionReason:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};Pr(a.butterBar,"Saving...",0);Yd(g,2);return z(g,a.issueApi.createIssueWithWizard({snapshot:b,
attachments:a.getAttachments(),recaptchaToken:a.enableRecaptcha?a.recaptchaResponse:void 0}),4);case 4:c=g.yieldResult;d=c.issueId;if(!d)throw Error("ug");a.butterBar.dismiss();a.analytics.trackEvent("createIssue","fileAndRedirect","wizard",!0);return z(g,zP(a.userAccess,"reader","issues/"+d),5);case 5:(e=g.yieldResult)?NWd(a.redirectUrl,rs(d),String(d)):(Pr(a.butterBar,"New issue created: "+d+" (view access not granted)",0),NWd(a.redirectUrl,a.paths.listIssues()));bt(g,0);break;case 2:f=be(g),Pr(a.butterBar,
"Failed to create issue: "+f),ce(g)}})};x_d.\u0275fac=function(a){return new (a||x_d)};
x_d.\u0275cmp=D({type:x_d,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(hg(r_d,5),hg(s_d,5),hg(t_d,5),hg(g0,5));if(a&2){var c;lg(c=mg())&&(b.summaryControl=c.first);lg(c=mg())&&(b.reproStepsControl=c.first);lg(c=mg())&&(b.descriptionControl=c.first);lg(c=mg())&&(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();K(0,"mat-stepper",3)(1,"mat-step",4)(2,"h2");Q(3,"Report an issue with Chromium");L();K(4,"h3");Q(5," We want you to enter the best possible issue report so that the project team members can act on it effectively. The following steps will help route your issue to the correct people. ");L();M(6,"br");K(7,"h4",5);Q(8,"Please select your following role:");L();K(9,"wizard-persona-picker",6);N("personaChange",function(f){u(c);b.model.category=void 0;b.model.persona=
f;return v()});L();F(10,$4b,20,6)(11,b5b,10,2,"div");L();K(12,"mat-step",7)(13,"h2");Q(14);L();K(15,"h3");Q(16,"Please confirm that the following version information is correct.");L();K(17,"h4",8);Q(18,"Operating System:");L();K(19,"mat-form-field",9)(20,"mat-select",10);Cg("ngModelChange",function(f){u(c);Bg(b.model.os,f)||(b.model.os=f);return v(f)});K(21,"mat-option",11);Q(22,"Android");L();K(23,"mat-option",11);Q(24,"Chrome OS");L();K(25,"mat-option",11);Q(26,"iOS");L();K(27,"mat-option",11);
Q(28,"Linux");L();K(29,"mat-option",11);Q(30,"Mac OS");L();K(31,"mat-option",11);Q(32,"Windows");L();K(33,"mat-option",11);Q(34,"Unknown/Other");L()()();K(35,"h4",12);Q(36,"Channel:");L();K(37,"mat-form-field",13)(38,"mat-select",14);Cg("ngModelChange",function(f){u(c);Bg(b.model.channel,f)||(b.model.channel=f);return v(f)});K(39,"mat-option",15);Q(40,"Not sure");L();K(41,"mat-option",16);Q(42,"Stable");L();K(43,"mat-option",17);Q(44,"Beta");L();K(45,"mat-option",18);Q(46,"Dev");L();K(47,"mat-option",
19);Q(48,"Canary");L()()();M(49,"br");K(50,"h4",8);Q(51,"Chrome version:");L();K(52,"mat-form-field",20)(53,"input",21);Cg("ngModelChange",function(f){u(c);Bg(b.model.version,f)||(b.model.version=f);return v(f)});L()();K(54,"h4",5);Q(55,"Please enter a one line summary (100 character limit)");L();K(56,"mat-form-field",22)(57,"textarea",23,0);Cg("ngModelChange",function(f){u(c);Bg(b.model.summary,f)||(b.model.summary=f);return v(f)});Q(59,"      ");L();F(60,c5b,2,0,"mat-error");L();K(61,"h4");Q(62,
" (Optional) Send a Chrome feedback report to help the investigation");L();K(63,"p");Q(64," This is often necessary to reproduce an issue which isn't consistent in reproducing for all users. ");L();K(65,"ol")(66,"li");Q(67," Open Chrome. Go to Help > Report an issue. ");L();K(68,"li");Q(69,' The description should be the same as the "one line summary" above. ');L();K(70,"li");Q(71," Send the report. ");L()();K(72,"h4");Q(73," Did you send the Chrome feedback report?");L();K(74,"mat-form-field",24)(75,
"mat-select",14);Cg("ngModelChange",function(f){u(c);Bg(b.model.chromeFeedback,f)||(b.model.chromeFeedback=f);return v(f)});K(76,"mat-option",25);Q(77,"No - I didn't.");L();K(78,"mat-option",26);Q(79,"Yes - I did on Windows, Linux or Mac OS.");L();K(80,"mat-option",27);Q(81,"Yes - I did on Android.");L();K(82,"mat-option",28);Q(83,"Yes - I did on iOS.");L();K(84,"mat-option",29);Q(85,"Yes - I did on other platform.");L()()();K(86,"h4",5);Q(87,"Steps to reproduce problem (5000 character limit)");L();
K(88,"mat-form-field",22)(89,"textarea",30,1);Cg("ngModelChange",function(f){u(c);Bg(b.model.reproSteps,f)||(b.model.reproSteps=f);return v(f)});Q(91,"      ");L();F(92,d5b,2,0,"mat-error");L();K(93,"h4",5);Q(94,"Please describe the problem (5000 character limit)");L();K(95,"mat-form-field",22)(96,"textarea",31,2);Cg("ngModelChange",function(f){u(c);Bg(b.model.description,f)||(b.model.description=f);return v(f)});Q(98,"      ");L();F(99,e5b,2,0,"mat-error");L();K(100,"h4");Q(101,"Did this work before?");
L();K(102,"mat-form-field",32)(103,"mat-select",14);Cg("ngModelChange",function(f){u(c);Bg(b.model.regression,f)||(b.model.regression=f);return v(f)});K(104,"mat-option",33);Q(105,"Not applicable or don't know");L();K(106,"mat-option",34);Q(107,"Yes - This is a regression");L();K(108,"mat-option",35);Q(109,"No - I think it never worked");L()()();K(110,"div",36)(111,"button",37);M(112,"mat-icon",38);Q(113," Back ");L();K(114,"button",39);Q(115," Next ");M(116,"mat-icon",40);L()()();K(117,"mat-step",
41)(118,"h2");Q(119,"Extra information about the issue");L();F(120,f5b,1,1,"wizard-custom-questions",42);K(121,"h4");Q(122,"Additional comments");L();K(123,"mat-form-field",22)(124,"textarea",43);Cg("ngModelChange",function(f){u(c);Bg(b.model.comments,f)||(b.model.comments=f);return v(f)});L()();K(125,"h4");Q(126,"Upload any relevant attachments");L();K(127,"b-attachment-uploader",44);N("onUploadComplete",function(){u(c);return v(b.enableSubmit())})("onUploadCancel",function(f){u(c);b.removeUpload(f);
return v(b.enableSubmit())});L();K(128,"div",45)(129,"b-attachment-selector",46);N("onSelect",function(f){u(c);b.uploadFile(f);b.isSubmitEnabled=!1;return v()});L();Q(130," You can include multiple attachments. ");L();F(131,g5b,2,0,"div",47);K(132,"div",36)(133,"button",37);M(134,"mat-icon",38);Q(135," Back ");L();K(136,"button",48);N("click",function(){u(c);return v(b.submit())});Q(137," Submit ");L()()();E(138,h5b,0,0,"ng-template",49)(139,i5b,0,0,"ng-template",50)(140,j5b,0,0,"ng-template",51);
L()}if(a&2){a=qg(58);var d=qg(90),e=qg(97);wg("bv2-view",b.fullScreen)("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);I("disableRipple",!0);B();I("completed",Z4b(b,0));B(8);I("persona",b.model.persona);B();G(b.model.persona!==b.Persona.CONTRIBUTOR?10:11);B(2);Jf("aria-label",Eg("Details for problems with ",b.model.category==null?null:b.model.category.title));I("completed",Z4b(b,1));B(2);S("Details for problems with ",b.model.category==null?null:b.model.category.title);B(6);Ag("ngModel",b.model.os);
B();I("value",b.PlatformOs.ANDROID);B(2);I("value",b.PlatformOs.CHROME);B(2);I("value",b.PlatformOs.IOS);B(2);I("value",b.PlatformOs.LINUX);B(2);I("value",b.PlatformOs.MAC);B(2);I("value",b.PlatformOs.WINDOWS);B(2);I("value",b.PlatformOs.UNKNOWN);B(5);Ag("ngModel",b.model.channel);B(15);Ag("ngModel",b.model.version);B(4);Ag("ngModel",b.model.summary);I("customValidators",Ig(40,u_d,b.nonEmptyValidator));B(3);G(a.invalid&&(a.dirty||a.touched)?60:-1);B(15);Ag("ngModel",b.model.chromeFeedback);B(14);
Ag("ngModel",b.model.reproSteps);I("customValidators",Jg(42,v_d,b.reproStepsValidator,b.nonEmptyValidator));B(3);G(d.invalid&&(d.dirty||d.touched)?92:-1);B(4);Ag("ngModel",b.model.description);I("customValidators",Ig(45,u_d,b.nonEmptyValidator));B(3);G(e.invalid&&(e.dirty||e.touched)?99:-1);B(4);Ag("ngModel",b.model.regression);B(11);I("disabled",!Z4b(b,1));B(6);G(b.model.category?120:-1);B(4);Ag("ngModel",b.model.comments);B(3);I("uploads",b.uploads);B(2);I("includeTextLabel",!0);B(2);G(b.enableRecaptcha?
131:-1);B(5);I("disabled",!b.isSubmitEnabled||!b.isCaptchaValid())}},dependencies:[PId,g0,Dy,H5,yj,$D,sE,tE,gE,gB,cB,h_d,bGd,cGd,eGd,fL,aI,PD,zE,MD,CD,BD,vU,MH,cA,l7,m7,h7,i7,m_d,tY,d_d,e_d,f_d],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 n7=function(){this.activeSession=p(qu);this.routeParams=p(rS);this.router=p(YE);this.userAccess=p(yP);this.rootComponentId=this.activeSession.getEnvironmentType()==="QA"?awc.default:bwc.default};
n7.prototype.canActivate=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return(c=a.activeSession.getFlag("enableChromeWizard")&&((b=a.activeSession.getTracker())==null?void 0:b.trackerId)==="157"&&!a.routeParams.template&&!a.routeParams.noWizard)?z(d,zP(a.userAccess,"writer","components/"+a.rootComponentId+"/issueDefaults"),3):d.jumpTo(2);d.nextAddress!=2&&(c=!d.yieldResult);return c?d.return(ZE(a.router,["issues/wizard"])):d.return(!0)})};
n7.\u0275fac=function(a){return new (a||n7)};n7.\u0275prov=Fc({token:n7,factory:n7.\u0275fac,providedIn:"root"});var o7=function(){var a=this;this.userResources=p(fP);this.history=p(I2);this.router=p(YE);this.activeSession=p(qu);this.viewIssues=xr;this.createIssue=C5a;this.componentSettings=D5a;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})};o7.prototype.back=function(){J2(this.history)};o7.prototype.filterTrackerComponents=function(a){return!this.trackerId||a.trackerId===this.trackerId};o7.\u0275fac=function(a){return new (a||o7)};
o7.\u0275cmp=D({type:o7,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&&(K(0,"article",2)(1,"header",3)(2,
"div",4)(3,"button",5),N("click",function(){return b.back()}),M(4,"mat-icon",6),L(),K(5,"h2"),Q(6,"Components"),L()(),K(7,"div",7),F(8,n5b,2,0,"a",8),K(9,"b-slide-toggle",9),N("modelChange",function(d){return b.includeArchived=d}),L()()(),K(10,"section",10)(11,"h3"),Q(12,"Search"),L(),K(13,"b-team-component-picker",11),N("selectedComponentChange",function(d){d!=null&&Ct(b.router,D5a(d.componentId).path)}),L(),K(14,"h3",12),Q(15,"Recent Components"),L(),K(16,"div",13),F(17,r5b,4,1),T(18,"async"),L(),
K(19,"p",14)(20,"a",15),Q(21,"See all Components"),L()()()());if(a&2){var c;B(8);G(b.isInternalSession?8:-1);B();I("model",b.includeArchived);B(4);I("includeArchived",b.includeArchived)("placeholder",b.placeholder)("ariaLabel",b.placeholder);B(4);G((c=U(18,6,b.recentComponents$))?17:-1,c)}},dependencies:[gB,cB,eB,oK,iA,Dy,$E,QO,iW,VV,DK,EK,LK,FK,QU,SV,$V,Lx],encapsulation:2});var y_d=["bookmarkGroupName"],p7=function(){var a=p(uY);Z.call(this);var b=this;this.location=p(ZT);this.appHistory=p(I2);this.snackBar=p(nB);this.bookmarkGroupsApi=p(xO);this.paths=p(mW);this.analytics=p(aQ);this.errorHandler=p(kO);this.appEvents=p(PO);this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new dE({name:new fE("",wj),description:new fE("")});this.subscriptions.add(vY(a,function(){return!(!b.name()&&!b.description())},!1))};Y(p7,Z);p7.\u0275dir=Z.\u0275dir;h=p7.prototype;
h.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
h.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});a.analytics.trackEvent("sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};h.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.back=function(){J2(this.appHistory)};h.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};h.name=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};
h.description=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};p7.\u0275fac=function(a){return new (a||p7)};
p7.\u0275cmp=D({type:p7,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&hg(y_d,5);if(a&2){var c;lg(c=mg())&&(b.bookmarkGroupName=c.first)}},standalone:!1,features:[Gf],decls:27,vars:9,consts:[["bookmarkGroupName",""],[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field"],
["for","bookmark-group-name",1,"required"],["type","text","autofocus","autofocus","id","bookmark-group-name","required","","aria-required","true","formControlName","name",3,"disabled"],["for","bookmark-group-description"],["id","bookmark-group-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],
template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return v(b.back())});M(3,"mat-icon",4);L();K(4,"h2");Q(5,"Create a new bookmark group");L()()();K(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);K(10,"div",9)(11,"label",10);Q(12,"Name");L();M(13,"input",11,0);L();K(15,"div",9)(16,"label",12);Q(17,"Description");L();K(18,"textarea",13);Q(19,"        ");L()();K(20,"p",14);Q(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. ");
L();K(22,"div",15)(23,"button",16);N("click",function(){u(c);return v(b.save())});Q(24," Save ");L();K(25,"button",17);N("click",function(){u(c);return v(b.revertChanges())});Q(26," Revert changes ");L()()()()()}a&2&&(B(8),I("formGroup",b.bookmarkGroupUnderEdit),B(),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[Dy,gB,cB,eB,
oK,iA,hE,yj,$D,aE,sE,oE,nE,G4],encapsulation:2});var z_d=["form"],q7=function(){Z.call(this);this.butterBar=p(QN);this.paths=p(mW);this.routeParams=p(rS);this.analytics=p(aQ);this.appHistory=p(I2);this.bLocation=p(ZT);this.activeSession=p(qu);this.documentationLinks=p(YR);this.componentActions=p(WV);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(q7,Z);q7.\u0275dir=Z.\u0275dir;h=q7.prototype;h.ngAfterViewInit=function(){};
h.create=function(){var a=this;this.validate()&&(Pr(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){Pr(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(ps.editComponent.makeHref(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(Sp(b),0);a.isSaving=!1}))};h.back=function(){J2(this.appHistory)};
h.validate=function(){if(this.createComponentForm.form.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.componentIsValid){if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid."}return!1};h.loadParentComponent=function(a){var b=this;this.componentActions.getUncached(a).then(function(c){b.parentComponent=c})};
h.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};h.onComponentSelect=function(a){this.parentComponent=a;A_d(this)};h.accessCheckComplete=function(a){this.componentIsValid=a;A_d(this)};
var A_d=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled=a.component.commentEditState==="ENABLED"):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};da.Object.defineProperties(q7.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;A_d(this)}}});q7.\u0275fac=function(a){return new (a||q7)};
q7.\u0275cmp=D({type:q7,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&hg(z_d,5);if(a&2){var c;lg(c=mg())&&(b.createComponentForm=c.first)}},standalone:!1,features:[Gf],decls:55,vars:32,consts:[["form","ngForm"],[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","b-aria-label","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"edit-resource-panel"],["novalidate","",1,"create-component-form"],
[3,"error"],[1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","id","component-name","placeholder","Component name","name","componentName","aria-label","Component name",3,"ngModelChange","bFocus","ngModel","disabled","required"],["for","component-description"],["id","component-description","placeholder","Component description","name","componentDescription","aria-label","Component description",3,"ngModelChange","ngModel","disabled"],["for","parent-component",
1,"required"],["id","parent-component","ariaLabel","Parent component",3,"selectedComponentChange","accessCheckComplete","selectedComponent","placeholder","isRequired","checkAdminAccess"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabel","Editable comments",3,"change","checked"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["for","retention-settings",1,"required"],["id","retention-settings"],
[3,"modelChange","validChange","issueRetentionDisabled","isExternal","componentPathInfo","initialModel"],[1,"advanced-settings-info"],[1,"bv2-component-button-bar"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return v(b.back())});M(3,"b-icon",4);L()()();K(4,"div",5)(5,"h2",6);Q(6,"Create component");L();K(7,"div",7)(8,"form",8,0);M(10,"b-error-banner",
9);K(11,"div",10)(12,"label",11)(13,"span",12);Q(14,"Name");L()();K(15,"input",13);Cg("ngModelChange",function(d){u(c);Bg(b.component.name,d)||(b.component.name=d);return v(d)});L()();K(16,"div",10)(17,"label",14)(18,"span",12);Q(19,"Description");L()();K(20,"textarea",15);Cg("ngModelChange",function(d){u(c);Bg(b.component.description,d)||(b.component.description=d);return v(d)});Q(21,"        ");L()();K(22,"div",10)(23,"label",16)(24,"span",12);Q(25,"Parent Component");L()();K(26,"b-team-component-picker",
17);N("selectedComponentChange",function(d){u(c);return v(b.onComponentSelect(d!=null?d:null))})("accessCheckComplete",function(d){u(c);return v(b.accessCheckComplete(d))});L()();K(27,"div",18)(28,"div",19)(29,"mat-checkbox",20);N("change",function(d){u(c);return v(b.setCommentEditState(d.checked))});L()();K(30,"div")(31,"strong",21);Q(32,"Editable Comments");L();K(33,"div",22);Q(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
F(35,t5b,2,1,"a",23);L()()();K(36,"div",10)(37,"label",24)(38,"span",12);Q(39,"Retention Settings");L()();K(40,"div",21)(41,"p");Q(42,"Please choose a period of time to retain the data stored in this component.");M(43,"br");K(44,"a",23);Q(45," Learn more ");L()()();K(46,"div",25)(47,"b-retention-settings-form",26);N("modelChange",function(d){u(c);return v(b.component.retentionSettings=d)})("validChange",function(d){u(c);return v(b.retentionIsValid=d)});L()()();K(48,"p",27);Q(49," Advanced settings such as custom field and access controls may be defined once the component is created. ");
L();K(50,"div",28)(51,"b-button",29);N("onAction",function(){u(c);return v(b.create())});Q(52," Save ");L();K(53,"b-button",30);N("onAction",function(){u(c);return v(b.back())});Q(54," Discard ");L()()()()()}a&2&&(B(8),wg("show-errors",b.error),B(2),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(4),I("bFocus",!0),Ag("ngModel",b.component.name),I("disabled",b.isSaving)("required",!0),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(4),Ag("ngModel",b.component.description),I("disabled",
b.isSaving),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(4),I("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(2),I("checked",b.commentEditsEnabled),B(6),G(b.sessionIsExternal?-1:35),B(9),I("href",mu(),Pe),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(),I("issueRetentionDisabled",b.isSaving)("isExternal",kt(b.parentComponent))("componentPathInfo",b.parentComponent==null?null:
b.parentComponent.componentPathInfo)("initialModel",b.component.retentionSettings),B(4),I("disabled",b.isSaving||!b.componentIsValid),B(2),I("disabled",b.isSaving))},dependencies:[MU,G4,AW,hE,yj,$D,aE,sE,gE,eE,pT,fL,aI,B5,iW],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var B_d=["hotlistName"],r7=function(){var a=p(uY);Z.call(this);var b=this;this.location=p(ZT);this.appHistory=p(I2);this.snackBar=p(nB);this.hotlistApi=p(bP);this.analytics=p(aQ);this.errorHandler=p(kO);this.appEvents=p(PO);this.error="";this.isSaving=!1;this.hotlistUnderEdit=new dE({name:new fE("",wj),description:new fE("")});this.subscriptions.add(vY(a,function(){return!(!b.name()&&!b.description())},!1))};Y(r7,Z);r7.\u0275dir=Z.\u0275dir;h=r7.prototype;h.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
h.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});a.analytics.trackEvent("hotlist","create");a.location.replaceUrl(ps.editHotlist.makeHref(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=
!1;a.errorHandler.errorHandler(null,b)}))};h.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.back=function(){J2(this.appHistory)};h.revertChanges=function(){this.hotlistUnderEdit.reset()};h.name=function(){var a,b=(a=this.hotlistUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};h.description=function(){var a,b=(a=this.hotlistUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};
r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=D({type:r7,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&hg(B_d,5);if(a&2){var c;lg(c=mg())&&(b.hotlistName=c.first)}},standalone:!1,features:[Gf],decls:27,vars:9,consts:[["hotlistName",""],[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field"],["for","hotlist-name",
1,"required"],["type","text","autofocus","autofocus","id","hotlist-name","required","","aria-required","true","formControlName","name",3,"disabled"],["for","hotlist-description"],["id","hotlist-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){if(a&1){var c=t();K(0,"div",
1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return v(b.back())});M(3,"mat-icon",4);L();K(4,"h2");Q(5,"Create a new hotlist");L()()();K(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);K(10,"div",9)(11,"label",10);Q(12,"Name");L();M(13,"input",11,0);L();K(15,"div",9)(16,"label",12);Q(17,"Description");L();K(18,"textarea",13);Q(19,"        ");L()();K(20,"p",14);Q(21," Advanced settings such as access controls may be defined once the hotlist is created. ");L();K(22,"div",15)(23,"button",
16);N("click",function(){u(c);return v(b.save())});Q(24," Save ");L();K(25,"button",17);N("click",function(){u(c);return v(b.revertChanges())});Q(26," Revert changes ");L()()()()()}a&2&&(B(8),I("formGroup",b.hotlistUnderEdit),B(),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[Dy,gB,cB,eB,oK,iA,hE,yj,$D,aE,sE,oE,nE,G4],encapsulation:2});var s7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,s7.messageId)};Y(s7,W);s7.prototype.getContent=function(){return vi(this,1,void 0,jb)};s7.prototype.setContent=function(a){return pj(this,1,a,jb)};s7.prototype.hasContent=function(){return im(this,1,jb)};s7.messageId="b.LlmGenericRequest";var C_d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,C_d.messageId)};Y(C_d,W);C_d.messageId="b.LlmGenericResponse";var t7=function(){this.executor=p(dO)};t7.prototype.suggestIssueTitle=function(a){a=(new s7).setContent(a);return this.executor.post({url:"/action/llm/suggest_title",body:a,responseConstructor:C_d}).then(function(b){var c;return(c=vi(b,1,void 0,jb))!=null?c:""})};t7.\u0275fac=function(a){return new (a||t7)};t7.\u0275prov=Fc({token:t7,factory:t7.\u0275fac,providedIn:"root"});var u7=function(){this.isGeneratingTitle=new Nj(!1);this.generatedTitle=new Nj(null);this.suggestTitleRequested=new sf};u7.\u0275fac=function(a){return new (a||u7)};u7.\u0275prov=Fc({token:u7,factory:u7.\u0275fac,providedIn:"root"});var v7=function(){Z.call(this);var a=this;this.activeSession=p(qu);this.butterBar=p(QN);this.analytics=p(aQ);this.llmSuggestTitleService=p(u7);this.llmApi=p(t7);this.suggestedTitle=new XP;this.enableSuggestTitle=this.activeSession.getFlag("enableSuggestTitle")||!1;this.llmSuggestTitleService.suggestTitleRequested.asObservable().pipe(Bf(this.destroyed$)).subscribe(function(){a.suggestIssueTitle()})};Y(v7,Z);v7.\u0275dir=Z.\u0275dir;
v7.prototype.suggestIssueTitle=function(){var a=this,b;return y(function(c){if(c.nextAddress==1){if(!a.enableSuggestTitle||a.description.value==="")return c.return();a.analytics.trackEvent("llm","generate","title");a.llmSuggestTitleService.isGeneratingTitle.next(!0);return z(c,a.llmApi.suggestIssueTitle(a.description.value),2)}b=c.yieldResult;b=b.trim();if(b===""){var d=a.llmSuggestTitleService;d.generatedTitle.next(null);d.isGeneratingTitle.next(!1);a.suggestedTitle.emit(null);Pr(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);ce(c)})};v7.\u0275fac=function(a){return new (a||v7)};
v7.\u0275cmp=D({type:v7,selectors:[["llm-suggest-title-button"]],inputs:{description:"description"},outputs:{suggestedTitle:"suggestedTitle"},standalone:!1,features:[Gf],decls:3,vars:2,consts:[["mat-stroked-button","","color","primary","type","button","matTooltipPosition","above","aria-label","Generate AI-suggested title for this issue",1,"suggest-title-button","gmat-mdc-button","margin-s-left",3,"click","matTooltip","disabled"],["svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right"]],template:function(a,
b){a&1&&(K(0,"button",0),N("click",function(){return b.suggestIssueTitle()}),M(1,"mat-icon",1),Q(2," Suggest title\n"),L());a&2&&I("matTooltip",b.description.value===""?"Enter a description to suggest a title":"Generate AI-suggested title for this issue")("disabled",b.description.value==="")},dependencies:[Dy,gB,cB,oK,iA],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 D_d=[[["","mainSegment",""]],[["","dropdownSegment",""]]],E_d=function(){this.mainSegment=!0};E_d.\u0275fac=function(a){return new (a||E_d)};E_d.\u0275dir=df({type:E_d,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("main-segment",b.mainSegment)},standalone:!1});var w7=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.size="large";this.dialogClosed=new XP;this.dialogOpened=new XP};w7.prototype.ngAfterContentInit=function(){};
w7.prototype.ngOnChanges=function(a){a.dropdownTooltip&&!this.dropdownAriaLabel&&(this.dropdownAriaLabel=this.dropdownTooltip)};da.Object.defineProperties(w7.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.trigger)==null?void 0:a.isOpen)!=null?b:!1}}});w7.\u0275fac=function(a){return new (a||w7)};
w7.\u0275cmp=D({type:w7,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&ig(c,E_d,5);if(a&2){var d;lg(d=mg())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&hg(vW,5);if(a&2){var c;lg(c=mg())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&wg("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled",size:"size"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
standalone:!1,features:[bx],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();cg(D_d);dg(0);
K(1,"button",2,0);N("click",function(){u(c);var d,e;if((e=(d=b.trigger)==null?void 0:d.isOpen)!=null&&e){var f;(f=b.trigger)==null||f.close()}else{var g;(g=b.trigger)==null||g.open()}return v()})("onedevPopupPanelTriggerOpened",function(){u(c);return v(b.dialogOpened.emit())})("onedevPopupPanelTriggerClosed",function(){u(c);return v(b.dialogClosed.emit())});M(3,"mat-icon",3);L();K(4,"onedev-popup-panel",4,1)(6,"div",5);dg(7,1);L()()}a&2&&(a=qg(5),B(),xg(Eg("dropdown-button ",b.size)),I("onedevPopupPanelTriggerFor",
a)("matTooltip",b.dropdownTooltip)("disabled",b.disabled),Kf("aria-label",b.dropdownAriaLabel))},dependencies:[Dy,gB,eB,oK,iA,uW,vW],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 F_d=new Map([["TOTALLY_INCORRECT","Totally incorrect"],["MISSING_IMPORTANT_INFO","Missing important info"],["OTHER","Other"]]),x7=function(){Z.apply(this,arguments);this.butterBar=p(QN);this.analytics=p(aQ);this.llmSuggestTitleService=p(u7);this.suggestionAccepted=new XP;this.isGeneratingTitle$=this.llmSuggestTitleService.isGeneratingTitle.asObservable().pipe(xf({refCount:!0,bufferSize:1}));this.suggestedTitle$=this.llmSuggestTitleService.generatedTitle.asObservable().pipe(xf({refCount:!0,bufferSize:1}));
this.isVisible$=le([this.llmSuggestTitleService.isGeneratingTitle.asObservable(),this.llmSuggestTitleService.generatedTitle.asObservable()]).pipe(Bf(this.destroyed$),A(function(a){var b=m(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=F_d};Y(x7,Z);x7.\u0275dir=Z.\u0275dir;
var x5b=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.llmSuggestTitleService.generatedTitle.asObservable()),2);b=c.yieldResult;if(!b)return c.return();a.analytics.trackEvent("llm","accept","title");a.suggestionAccepted.emit(b);a.llmSuggestTitleService.generatedTitle.next(null);ce(c)})};x7.prototype.close=function(){this.llmSuggestTitleService.generatedTitle.next(null)};x7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(x7)))(b||x7)}}();
x7.\u0275cmp=D({type:x7,selectors:[["llm-suggest-title-preview"]],outputs:{suggestionAccepted:"suggestionAccepted"},standalone:!1,features:[Gf],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,y5b,27,13,"div",1),T(1,"async"));a&2&&G(U(1,1,b.isVisible$)?0:-1)},dependencies:[Dy,gB,cB,eB,oK,iA,$T,w7,E_d,WG,Lx],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 y7=function(){Z.call(this);var a=this;this.similarIssuesApi=p(pW);this.analytics=p(aQ);this.activeSession=p(qu);this.hasSearched=this.isLoading=!1;this.loadedIssueCount=0;this.componentId$=new wf(1);this.contextRaw$=new wf(1);this.tableColumns=[{type:"TITLE"},{type:"PRIORITY"},{type:"CREATED_TIME"}];this.isInternal=this.activeSession.isInternalSession();this.tableOptions={showActiveIndicator:!1,showMenu:!1,hideColumnHeaders:!0,enableIssueHovercard:!0,rowLimit:3,navigationOptions:{alwaysOpenNewTab:!0},
modes:{createdTime:"relativepastshort"}};this.searchString$=this.contextRaw$.pipe(A(function(b){return b.trim()}),we(function(b){return b.length>=7}),lf(200));this.issues$=le([this.componentId$,this.searchString$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;a.isLoading=!0;return Wvd(a.similarIssuesApi,{scope:"componentId:"+b+" modified:365d status:open",scopeSortOrder:"vote_count desc",maxResults:15,keyword:c})}),jf(function(b){Xm("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 ee({similarIssues:[],scores:[]})}),A(function(b){return C5b(b)}),Cf(function(b){a.isLoading=!1;a.hasSearched=!0;a.loadedIssueCount=b.length}));this.issueIds$=this.issues$.pipe(A(function(b){return b.map(function(c){return c.issueId})}));this.subscriptions.add(this.issues$.pipe(A(function(b){return b.length})).subscribe(function(b){a.analytics.trackEvent("similarIssues",
"loaded","possible-dupes-"+b,b)}))};Y(y7,Z);y7.\u0275dir=Z.\u0275dir;
da.Object.defineProperties(y7.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 zr(this.componentId$)}},context:{configurable:!0,enumerable:!0,set:function(a){this.contextRaw$.next(a!=null?a:"")}}});
y7.\u0275fac=function(a){return new (a||y7)};
y7.\u0275cmp=D({type:y7,selectors:[["similar-issues"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("thinking-on-empty",b.isThinkingOnEmpty)("is-empty-state",b.isEmpty)},inputs:{componentId:"componentId",context:"context"},standalone:!1,features:[Gf],decls:8,vars:5,consts:[[1,"flex-kids-x","align-items-center","gap-s","margin-s-y"],["svgIcon","spark_24px","color","primary"],[1,"heading-xs"],["mat-icon-button","","href","http://go/similar-issues-buganizer","target","_blank","matTooltip","Learn more",
"aria-label","Learn more",1,"xs","muted"],[3,"issueIds","tableColumns","options"],["svgIcon","help-outline"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"mat-icon",1),K(2,"h3",2),Q(3,"Possible duplicates"),L(),F(4,z5b,2,0,"a",3),F(5,A5b,1,0,"b-spinner"),L(),F(6,B5b,1,3,"b-issues-table",4),T(7,"async"));if(a&2){var c;B(4);G(b.isInternal?4:-1);B();G(b.isLoading&&!b.isThinkingOnEmpty?5:-1);B();G((c=U(7,3,b.issueIds$))?6:-1,c)}},dependencies:[Dy,$T,$Z,oK,iA,gB,eB,Lx],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 G_d=["popOver"],E5b=function(a){return{$implicit:a}},M5b=function(a){return{editingValue:a}},z7=function(){this.injector=p(Ae);this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.overlayMinWidth=null;this.hasBackdrop=!0;this.openPopOverOnInit=this.fitPopoverToViewport=!1;this.required=Og.apply(null,[!1].concat(q([])));this.valueChange=new Ui;this.editorOpen=new Ui;this.editing=this.headerFocused=!1;this.editingValue=new fE("",{nonNullable:!0});
this.onChange=function(){};this.onTouched=function(){}};Y(z7,c_);h=z7.prototype;h.ngOnInit=function(){var a=this.injector.get(YD,null),b;(a==null?0:(b=a.control)==null?0:b.validator)&&this.editingValue._assignValidators(a.control.validator);this.required()&&(a=this.editingValue,b=bwa(a._rawValidators),a._assignValidators(b))};h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.startEditing()};h.valueChanged=function(){return this.editingValue.value!==this.value};
h.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value),this.popOver.open(),this.editorOpen.emit({isOpen:!0}))};h.stopEditing=function(a){this.editing=!1;(this.required()?this.editingValue.valid:1)?(a===0&&(this.onChange(this.editingValue.value),this.value=this.editingValue.value,this.valueChange.emit(this.value)),this.editorOpen.emit({isOpen:!1,closeAction:a})):this.editorOpen.emit({isOpen:!1,closeAction:1})};
h.writeValue=function(a){a!=null&&(this.val=a,this.editing||this.editingValue.setValue(a))};h.isActive=function(){return this.headerFocused||this.editing};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(z7.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});
z7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(z7)))(b||z7)}}();
z7.\u0275cmp=D({type:z7,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&hg(G_d,7);if(a&2){var c;lg(c=mg())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport",
openPopOverOnInit:"openPopOverOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",editorOpen:"editorOpen"},standalone:!1,features:[Gg([{provide:VD,useExisting:Yc(function(){return z7}),multi:!0},{provide:c_,useExisting:Yc(function(){return z7}),multi:!0}]),Gf],decls:11,vars:11,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["singleLineTemplate",""],["type","button",3,"click","focus","blur"],[4,"ngIf","ngIfElse"],["class",
"edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"centered",4,"ngIf"],[3,"closedWithAction","anchor","minWidth","editorTemplate","newlineWithEnterKey","hasBackdrop","fitToViewport","saveDisabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],
[4,"ngIf"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","required","cdkAutosizeMaxRows",4,"ngIf","ngIfElse"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","required","cdkAutosizeMaxRows"],["spellcheck","false","autocomplete","off",3,"formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"button",5,0);N("click",function(){u(c);return v(b.startEditing())})("focus",
function(){u(c);return v(b.headerFocused=!0)})("blur",function(){u(c);return v(b.headerFocused=!1)});K(2,"span");E(3,F5b,2,4,"ng-container",6)(4,G5b,1,1,"ng-template",null,1,Mg);L();E(6,H5b,2,2,"svg",7);L();K(7,"onedev-pop-over-edit-panel",8,2);N("closedWithAction",function(f){u(c);return v(b.stopEditing(f))});L();E(9,O5b,2,2,"ng-template",null,3,Mg)}if(a&2){a=qg(1);var d=qg(5),e=qg(10);Kf("aria-labelledby",b.labelledById);B(3);I("ngIf",b.valueTemplate)("ngIfElse",d);B(3);I("ngIf",!b.disabled);B();
I("anchor",a)("minWidth",b.overlayMinWidth)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)("fitToViewport",b.fitPopoverToViewport)("saveDisabled",b.editingValue.invalid)}},dependencies:[Fx,Kx,yj,$D,sE,SD,d_,mE],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 H_d=["descriptionConfirmDialog"],C6b=function(){return[]},e7b=function(){return{standalone:!1}},I_d=new fd("titleBannedWordsChecker"),J_d=new fd("descriptionBannedWordsChecker"),K_d={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?"}},A7=function(){Z.call(this);var a=this;this.routeParams=p(rS);this.hotkeys=p(kU);this.checkBeforeExit=p(uY);this.constants=p(bS);this.ngZone=p(Rg);this.$log=p(iO);this.reloadService=p(r2);this.paths=p(mW);this.redirectUrl=p(R5);this.userAccess=p(yP);this.accessPolicy=p(FO);this.bLocation=p(ZT);this.appHistory=p(I2);this.issueTemplate=
p(KWd);this.issueTypeDialog=p($R);this.componentActions=p(WV);this.activeSession=p(qu);this.draftStore=p(WR);this.analytics=p(aQ);this.issueApi=p(HP);this.hotlistApi=p(bP);this.butterBar=p(QN);this.errorHandler=p(kO);this.matDialogService=p(QA);this.appEvents=p(PO);this.userPreferencesManager=p(dR);this.cdr=p(YP,{self:!0});this.issueRelationshipsFridge=p(iQ);this.issueFullFridge=p(cQ);this.componentFridge=p(MO);this.clearcut=p(UP);this.jspbPrincipalTypes=p(zQ);this.trackerFridge=p(RQ);this.customFieldHelper=
p(uS);this.titleBannedWordsChecker=p(I_d);this.descriptionBannedWordsChecker=p(J_d);this.confirmIssueAccessLimitSettingsService=p(P3);this.componentTemplateApi=p(OO);this.dismissalService=p(nW);this.hostElement=p(Jd);this.currentUserBookmarksFridge=p(lP);this.staffingDialogService=p(N3);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=xr;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.parseStringArray=hu;this.joinStringArray=gu;this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.urlTemplate=new CWd(this.routeParams,this.$log);this.isLoadingComponent=!1;this.descriptionBoxId="bv2-description";this.availablePredefinedTemplates=
[];this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.autocompleteConfigService=p(HW);this.preferredTemplateId=null;this.everClickedSimilarIssues=this.everShowedIssueHovercard=this.isNavigatingAway=this.isSaving=this.submitRequested=!1;this.selectedHotlists=[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap={};this.fieldConfigsV2=
[];this.customFieldAllowedValuesMap={};this.issue=pm(i7b);this.verifierText=this.reporterText=this.assigneeText=null;this.collaboratorsText=this.ccsText="";this.collaboratorGroupsText=[];this.audience="EXTERNAL";this.selectedComponent=null;this.selectedAccessLimitLevel="LIMIT_NONE";this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.useCodefont=!1;this.hasAdvancedFieldsInUrlTemplate=EWd(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=cRa;this.toIssueSeverity=eRa;this.FieldType=qV;this.initialized=!1;this.trackerComponent$=pe(function(){return ee(a.activeSession.getTracker())}).pipe(Af(function(c){return c?a.componentFridge.watch(c.componentId).pipe(zf(void 0)):ee(void 0)}));
this.trackerId$=new Nj(void 0);this.tracker$=this.trackerId$.pipe(Af(function(c){return c?a.trackerFridge.watch(c):ee(void 0)}));this.titleAfterBlur$=new sf;this.similarIssuesSearchString$=this.titleAfterBlur$.pipe(of(100));this.trackerCollaboratorGroups=[];this.enableSuggestTitle=this.activeSession.getFlag("enableSuggestTitle")&&this.activeSession.isInternalSession();this.onAnyClick=function(c){xZa(c).match("SIMILAR-ISSUES")&&(a.everClickedSimilarIssues=!0,a.analytics.trackEvent("similarIssues",
"click"))};this.getSingleEditFieldType=Wbb;this.getListFieldType=Ddb;this.didConfirmNavigateAway=function(){a.everShowedIssueHovercard||a.everClickedSimilarIssues?a.analytics.trackEvent("createIssue","abandon-happy"):a.analytics.trackEvent("createIssue","abandon-normal")};this.fetchUserHotlists();this.checkBeforeExit.didConfirm=this.didConfirmNavigateAway;this.subscriptions.add(this.tracker$.subscribe(function(c){a.updateCollaboratorGroups(c)}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));
this.subscriptions.add(this.appEvents.didShowIssueHovercard.subscribe(function(){a.everShowedIssueHovercard=!0;a.analytics.trackEvent("similarIssues","hover")}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.frontendIsInternalOrPartner=this.activeSession.isInternalSession()||SN(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;g7b(this.issue,this);this.routeParams.description?this.comment=new pS(this.routeParams.description,!0):(b=this.draftStore.$window.sessionStorage.getItem(Jr("0"))||"",this.comment=new pS(b));this.comment.formattingMode=L_d(this);b=M_d(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(lU(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,N_d(this,this.componentRequestedInUrl)):this.componentAutocomplete?O_d(this,this.componentAutocomplete):(JWd(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,P_d(this));this.originalIssueCopy=pm(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(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},
!1))};Y(A7,Z);A7.\u0275dir=Z.\u0275dir;A7.prototype.handleAutocompleteSelection=function(a,b){b==="assignee"?this.assigneeText=a:b==="verifier"?this.verifierText=a:this.reporterText=a;B7(this)};A7.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};
var Q_d=function(a){if(!a.templateTitle||!a.templateComment)return!1;var b=b8a(a.comment.value,a.templateComment);return b8a(a.issue.title,a.templateTitle)&&b},a7b=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||!1};
A7.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||R_d(a,b))}))};A7.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.onAnyClick,!0)};
var B7=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};A7.prototype.back=function(){J2(this.appHistory)};A7.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var R_d=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,S_d(a),a.audience=kt(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):(Rta(a.issue,"componentId"),a.audience="EXTERNAL");a.submitRequested=!1;T_d(a);a.selectedComponentProcessedPromise=Promise.all([U_d(a),V_d(a)]).then(function(){});return a.selectedComponentProcessedPromise};A7.prototype.isLiteralModeSupported=function(){return!this.selectedTemplate};
var W_d=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},T5b=function(a){return esb(a.selectedComponent)?"External Google partners may be able to see this issue.":lt(a.selectedComponent)?"Public users may be able to see this issue.":""};
A7.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroupsText.length===0?"":this.collaboratorGroupsText.length>1?this.collaboratorGroupsText.length+" groups selected":this.collaboratorGroupsText[0]};A7.prototype.updateCollaboratorGroups=function(a){a&&a.collaboratorGroups&&(this.trackerCollaboratorGroups=vm(a.collaboratorGroups),this.separateCollaboratorGroups())};
A7.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=m(hu(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=gu(a);if(this.collaboratorGroupsText.length>0&&!lt(this.selectedComponent)){var e;(e=this.advancedFieldsZippy)==null||e.open()}};
var P_d=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new X_d(b,"issue","Issue "+b,!1,"",!1),a.selectedTemplate=a.availableExistingIssueTemplate)},U_d=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&!Y_d(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;ya(Kt(f))&&(f=e.default?"(default template)":"(unnamed template)");return new X_d(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=m(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]);B7(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},Y_d=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},V_d=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=zP(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;B7(a)}),e=zP(a.userAccess,
"writer",c).then(function(f){a.canEditIssuesInComponent=f;B7(a)});c=zP(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;B7(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;B7(a)});return Promise.all([d,e,c,b]).then(function(){Z_d(a);B7(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})},$_d=function(a,b){var c;lt(a.selectedComponent)&&(c=a.selectedComponent)!=null&&c.trackerId&&
!qs(a.activeSession)&&a.canEditIssuesInComponent?(b=b.issueAccessLimitLevel||"LIMIT_NONE",b==="LIMIT_VIEW"||b==="LIMIT_VIEW_TRUSTED"?a.selectedAccessLimitLevel=b:(a.selectedAccessLimitLevel="LIMIT_VIEW_TRUSTED",Pr(a.butterBar,"Because this issue will be on a public tracker, the following Issue Access Limit will be applied: Limited visibility + Google."+(a.canEditIssuesInComponent?" You may modify this access level before creating the issue.":"")))):a.selectedAccessLimitLevel=b.issueAccessLimitLevel||
"LIMIT_NONE"},c0d=function(a){a.selectedTemplate&&(a.selectedTemplate.type==="predefined"&&a.selectedComponent?a.componentTemplateApi.get(a.selectedTemplate.componentId,a.selectedTemplate.id).then(a0d(a,a.selectedComponent)).then(function(b){b0d(a,b)}).then(function(){B7(a)}).catch(function(b){a.butterBar.showWarning(b.message)}):a.selectedTemplate.type==="issue"&&(MWd(a.issueTemplate,String(a.selectedTemplate.id)).then(function(b){var c;if(qs(a.activeSession)&&((c=a.activeSession.getTracker())==
null?void 0:c.trackerId)!==b.trackerId)throw Error("vg");c=Promise.resolve();!a.selectedComponent&&b.snapshot.componentId&&(c=N_d(a,b.snapshot.componentId));return c.then(function(){b0d(a,b)})}).catch(function(b){a.butterBar.showWarning(b.message)}),ie(a.issueFullFridge.watch(String(a.selectedTemplate.id))).then(function(b){var c;(c=a.parentIssueIds)!=null&&c.length||(a.parentIssueIds=b==null?void 0:b.parentIssueIds)})),a.selectedTemplate.id!==a.preferredTemplateId&&a.analytics.trackEvent("createIssue",
"changeTemplate"),T_d(a))},b0d=function(a,b){b=Object.assign(pm(i7b),b.snapshot);a.selectedComponent&&(b.componentId=a.selectedComponent.componentId);var c=pm(b);W_d(a);h7b(a,a.issue);var d=pm(a.issue);if(a.appliedTemplate)for(var e=m(Object.keys(a.appliedTemplate)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.appliedTemplate[f];if(Array.isArray(g)&&Array.isArray(d[f])){g=m(g);for(var k=g.next();!k.done;k=g.next())nRa(d[f],k.value)}else mm(g,d[f])&&delete d[f]}a.appliedTemplate=c;j7b(b,d);d=c.comment||
"";a.comment.value!==a.templateComment&&(Cnd(a.comment)||d===""||a.comment.value===d||(a.templateComment=d,d0d(a,a.comment.value)),b.comment=a.comment.value,b.formattingMode=c.formattingMode);a.templateComment=d;var l;a.templateCommentFormattingMode=(l=c.formattingMode)!=null?l:void 0;a.templateTitle=c.title||"";b.reporterUser=ym(a.userEmail);$_d(a,b);a.issue=b;g7b(a.issue,a);Z_d(a);W_d(a);h7b(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&a.issue.formattingMode&&(a.comment.formattingMode=
a.issue.formattingMode);JWd(a.urlTemplate,a.issue,a.customFieldMap);g7b(a.issue,a);a.originalIssueCopy=pm(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=pm(a.issue.hotlistId);B7(a)});e0d(a);a.collaboratorGroupsText=[];a.separateCollaboratorGroups();f0d(a)};
A7.prototype.isValid=function(){return!(V5b(this).length!==0||W5b(this).length!==0)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!b6b(this.comment)&&!0};
var V5b=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})},W5b=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&Vq(b)}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},g0d=function(a){var b=hu(a.collaboratorsText);return b.length!==0&&a.canEditIssuesInComponent?
xjd(a.jspbPrincipalTypes,b,!1).then(function(c){a.invalidCollaboratorsInput=Object.entries(c).filter(function(d){d=m(d);d.next();d=d.next().value;return(d==null?void 0:d.principalType)!=="USER"}).map(function(d){return m(d).next().value});return a.invalidCollaboratorsInput.length===0}).catch(function(c){a.butterBar.showWarning(c.message);return!1}):Promise.resolve(!0)},H6b=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)},e0d=function(a){if(Kta(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;(b=a.advancedFieldsZippy)==null||b.open()}};h=A7.prototype;h.getCustomFieldType=function(a){var b,c;return(c=(b=this.customFieldMap[a.customFieldId])==null?void 0:b.type)!=null?c:""};h.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};
h.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};h.getCustomFieldValue=function(a){return Uq(a)};h.getDateValue=function(a){return a};
h.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});this.analytics.trackEvent("createIssue","changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};h.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};h.getListFieldValues=function(a){var b,c;return(c=(b=Uq(a))==null?void 0:b.values)!=null?c:null};
h.saveCommentDraft=function(){this.descriptionBannedWordsChecker.reset();var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(Jr("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};h.discard=function(){this.draftStore.$window.sessionStorage.removeItem(Jr("0"));jPd(this.reloadService)};
h.handleHotlistPickerSave=function(a){var b=[];a=m(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=m(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();this.analytics.trackEvent("createIssue","changeHotlists")};h.removeHotlist=function(a){var b;La((b=this.issue.hotlistId)!=null?b:null,a);this.updateSelectedHotlists()};
h.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};var k6b=function(a){var b,c,d=(c=(b=a.issue.title)==null?void 0:b.trim())!=null?c:"";a.titleAfterBlur$.next(d)};A7.prototype.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:cRa(a)});var b;this.analytics.trackEvent("createIssue","changePriority",(b=this.issue.priority)!=null?b:void 0)};
A7.prototype.editStaffing=function(){var a=this,b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.staffingDialogService.show((c=(b=a.issue.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,a.canEditIssuesInComponent),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.issue=Object.assign({},a.issue,{staffing:e});ce(f)})};
A7.prototype.setIssueType=function(a){this.issue=Object.assign({},this.issue,{type:dRa(a)});var b;this.analytics.trackEvent("createIssue","changeType",(b=this.issue.type)!=null?b:void 0);f0d(this)};A7.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)});Dba(this.selectedHotlists,function(b,c){return wa(b.name,c.name)})};
var h0d=function(a,b){var c,d,e,f,g,k,l,r,w,x,C;return y(function(H){switch(H.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){H.jumpTo(2);break}e=[];return d.length===1?z(H,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):z(H,jid(a.issueRelationshipsFridge,c,d),5);case 5:g=H.yieldResult;e=g.notAdded;f=g.errors;H.jumpTo(4);break;case 6:k=H.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:l=a.childrenIssueIds;if((r=l)==null||!r.length){H.jumpTo(7);break}return z(H,a.issueRelationshipsFridge.assignParentToIssues(c,l.map(function(J){return{issueId:J}})),8);case 8:w=H.yieldResult,x=w.notAdded,C=w.errors,x.length&&a.butterBar.showWarning("Unable to add "+x+" as children. "+C);case 7:return H.return(b)}})},$6b=function(a,b,c){var d,e,f,g,k,l,r,w,x,C,H,J,O,R,V,ca,oa,ua,ka,Ga,ja,ta;return y(function(xa){switch(xa.nextAddress){case 1:return a.sessionIsExternal&&
Q_d(a)?(i0d(a),xa.return()):z(xa,g0d(a),2);case 2:a.isCollaboratorsValid=xa.yieldResult;d=a.issue;a.submitRequested=!0;if(!a.isValid()){if(e=document.querySelector(".bv2-view"))e.scrollTop=0;return xa.return()}d.issueAccessLimitLevel=a.selectedAccessLimitLevel;d.issueAccessLimitLevel&&d.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits","create","create_issue:"+d.issueAccessLimitLevel);d.comment=a.comment.value;d.formattingMode=a.comment.formattingMode;f={snapshot:d,
attachments:a.comment.getAttachments()};a.enableRecaptcha&&(f.recaptchaToken=a.recaptchaResponse);a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&(f.templateId=a.selectedTemplate.id);a.judgementForNewContent&&a.judgementForNewContent.severity!=="NONE_DETECTED"&&(f.contentJudgement=a.judgementForNewContent);a.canEditIssuesInComponent||(g={title:f.snapshot.title,componentId:f.snapshot.componentId,comment:f.snapshot.comment,formattingMode:f.snapshot.formattingMode,cc:a.canViewIssuesInComponent||
a.componentHasExpandedAccessEnabled?[a.userEmail]:[]},f.snapshot=g);f.snapshot=bj(f.snapshot,function(Sa){return typeof Sa!=="string"||!ya(Sa)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(Sa){return!Vq(Sa)}));h7b(a,f.snapshot);if(a.trackerId$.value&&f.snapshot.type==="VULNERABILITY"&&(k=S7a(a.activeSession.getEnvironmentType(),a.trackerId$.value),k!==void 0)){f.snapshot.collaboratorsUsers||(f.snapshot.collaboratorsUsers=[]);l=m(k);for(r=l.next();!r.done;r=
l.next())w=r.value,f.snapshot.collaboratorsUsers.push(w);f.snapshot.issueAccessLimitLevel="LIMIT_VIEW"}a.collaboratorGroupsText.length>0&&(f.snapshot.collaboratorsUsers=HRa(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");x=function(){a.isSaving=!0;a.newIssueStarted=!1;Pr(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(Sa){return h0d(a,Sa)}).then(function(Sa){a.draftStore.$window.sessionStorage.removeItem(Jr("0"));
a.originalIssueCopy=pm(a.issue);a.analytics.trackEvent("createIssue","create",a.comment.formattingMode==="MARKDOWN"?"markdown":"non markdown");j0d(a);a.collaboratorGroupsText.length>0&&a.analytics.trackEvent("quickAddCollaborators","create","create_issue:"+Sa.issueId);var $a,pb;(($a=a.selectedTemplate)==null?0:$a.inheritable)&&a.selectedTemplate.componentId!==((pb=a.selectedComponent)==null?void 0:pb.componentId)&&a.analytics.trackEvent("templateInheritance","create","issue:"+Sa.issueId);c?(a.analytics.trackEvent("createIssue",
"fileAndRedirect","component",d.componentId?Number(d.componentId):void 0),a.butterBar.dismiss(),a.isNavigatingAway=!0,a.isSaving=!1,zP(a.userAccess,"reader","issues/"+Sa.issueId).then(function(Xb){Xb?NWd(a.redirectUrl,rs(Sa.issueId),String(Sa.issueId)):(Pr(a.butterBar,"New issue created: "+Sa.issueId+" (view access not granted)",0),NWd(a.redirectUrl,a.paths.listIssues()));B7(a)}).catch(function(Xb){a.errorHandler.errorHandler(null,Xb);a.isNavigatingAway=!1})):(a.analytics.trackEvent("createIssue",
"fileAndNew","component",d.componentId?Number(d.componentId):void 0),$a={},kdd(a.butterBar,Dh(["New issue created: ",Eh("a",($a.href=rs(Sa.issueId),$a),String(Sa.issueId))]),0),d.title=a.templateTitle,a.comment=new pS(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=pm(a.issue));B7(a)}).catch(function(Sa){Sa.status===403&&Rp(Sa)?lO(a.errorHandler,Sp(Sa)):a.errorHandler.errorHandler(null,Sa);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return z(xa,k0d(a),3);case 3:return(C=xa.yieldResult)?z(xa,l0d(a),4):xa.return();case 4:return(H=xa.yieldResult)?z(xa,rSd(a.confirmIssueAccessLimitSettingsService,{assigneeUser:(J=
f.snapshot.assigneeUser)==null?void 0:J.emailAddress,verifierUser:(O=f.snapshot.verifierUser)==null?void 0:O.emailAddress,ccUsers:(R=f.snapshot.ccUsers)==null?void 0:R.map(function(Sa){return Sa.emailAddress}).filter(Qm),collaboratorsUsers:(V=f.snapshot.collaboratorsUsers)==null?void 0:V.map(function(Sa){return Sa==null?void 0:Sa.emailAddress}).filter(Qm),issueAccessLimitLevel:f.snapshot.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:a.canEditIssuesInComponent,
confirmationDialogText:K_d}),5):xa.return();case 5:return(ca=xa.yieldResult)?z(xa,a.titleBannedWordsChecker.check((oa=a.issue.title)!=null?oa:"",m0d(a),f.snapshot.componentId),6):xa.return();case 6:return ua=xa.yieldResult,z(xa,a.descriptionBannedWordsChecker.check((ka=a.issue.comment)!=null?ka:"",m0d(a),f.snapshot.componentId),7);case 7:Ga=xa.yieldResult;if(!ua||!Ga)return(ja=b)==null||ja.preventDefault(),(ta=b)==null||ta.stopPropagation(),xa.return();x();ce(xa)}})},i0d=function(a){a.isSaving=!0;
Pr(a.butterBar,"Creating...",0);setTimeout(function(){Pr(a.butterBar,"New issue cr\u00e6ted");a.isSaving=!1;NWd(a.redirectUrl,a.paths.listIssues())},500)},m0d=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&a.selectedComponent.accessLimit.accessLevel==="EXTERNAL_PUBLIC"},k0d=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return b="create-issue",z(e,a.dismissalService.isDismissed(Bgb(b)),2);if(e.nextAddress!=4)return(c=e.yieldResult)||a.canEditIssuesInComponent||
a.frontendIsInternalOrPartner||!a.selectedComponent||!a.selectedComponent.accessLimit||a.selectedComponent.accessLimit.accessLevel==="INTERNAL"?e.return(!0):z(e,ie(OA(a.matDialogService.open(oW,{width:"500px",data:{action:b,content:Bh("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)})},l0d=function(a){var b=ro();!a.canEditIssuesInComponent||a.issue.type!=="VULNERABILITY"&&a.issue.type!=="PRIVACY_ISSUE"?
b.resolve(!0):Lmd(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},O_d=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){c.length===1?(R_d(a,c[0]),B7(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})},N_d=function(a,b){a.isLoadingComponent=!0;return a.componentActions.getUncached(b).then(function(c){var d;
if(qs(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("wg");R_d(a,c);B7(a)}).catch(function(){a.butterBar.showWarning("Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};A7.prototype.hasUnsavedChanges=function(){var a=k7b(this.issue),b=k7b(this.originalIssueCopy);return!mm(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var d0d=function(a,b){OA(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(rf()).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="")})},T_d=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)))},R5b=function(a){return a.sessionIsExternal?!1:esb(a.selectedComponent)},S5b=function(a){return TN(a.activeSession)?
!1:lt(a.selectedComponent)},S_d=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){var b=vS(a.customFieldHelper,a.selectedComponent);a.customFieldMap=l7b(b);a.customFieldAllowedValuesMap=m7b(b);var c;b=(c=a.selectedComponent.componentPathInfo.componentPathId)!=null?c:[];var d,e=(d=a.selectedComponent.componentPathInfo.fieldConfigsV2Map)!=null?d:new Map;a.fieldConfigsV2=[].concat(q(b)).reverse().flatMap(function(f){var g;
return(g=e.get(f))!=null?g:[]});f0d(a)}},f0d=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(g){return a.customFieldMap[g.customFieldId]});for(var b=new Set(a.issue.customField.map(function(g){return g.customFieldId})),c=m(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,b.has(d.customFieldId)||a.issue.customField.push(d.typedDefaultValue||{customFieldId:d.customFieldId});var e=a.issue.type,f=e&&a.fieldConfigsV2.find(function(g){return g.issueTypes.has(e)})||
a.fieldConfigsV2.find(function(g){return!g.issueTypes.size});a.issue.customField=a.issue.customField.filter(function(g){var k,l;return(l=f==null?void 0:(k=f.customFieldConfigs)==null?void 0:k.get(g.customFieldId))!=null?l:!0});a.originalIssueCopy.customField=a.issue.customField}},Z_d=function(a){!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||hu(a.ccsText).includes(a.userEmail)||(a.ccsText=a.userEmail+", "+a.ccsText)};h=A7.prototype;
h.fetchUserHotlists=function(){var a=this;ie(mP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);B7(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
h.createHotlist=function(a){var b=this;this.analytics.trackEvent("baseIssue","createHotlist");Pr(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){Pr(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);B7(b)}).catch(a.errorCallback)};
h.loadHotlist=function(a){var b=this,c=a.hotlistId;return this.hotlistMap[c]?Promise.resolve(this.hotlistMap[c]):this.hotlistApi.get(c).then(function(d){b.addHotlist(d);a.successCallback(d);B7(b);return d},function(){var d=b.hotlistMap[c];Rta(b.hotlistMap,c);La(b.hotlists,d);a.errorCallback()})};h.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){B7(b)})};
var M_d=function(a){var b;switch(((b=a.format)==null?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},L_d=function(a){var b;return Tm((b=eR(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:b.lastPublishMode)||"PLAIN"};
A7.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(Bf(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};A7.prototype.showContentJudgementDialog=function(a){return OA(this.matDialogService.open(ZX,{panelClass:"no-jitter",width:"500px",data:a}))};
var j0d=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(b>0){var c=Math.min(b,108E5);yhd("createIssue",c,"new-ui");a.analytics.trackEvent("createIssue","createIssue","time-to-create-new-ui",c);VP(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date},a0d=function(a,b){return function(c){var d=fo(c.snapshot.customField,function(l){return l.customFieldId}),e=[],f=vS(a.customFieldHelper,b);f=m(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=g.customFieldId;d.has(k)?
e.push(d.get(k)):g.typedDefaultValue?e.push(g.typedDefaultValue):e.push({customFieldId:k})}return Object.assign({},c,{snapshot:Object.assign({},c.snapshot,{customField:e})})}};da.Object.defineProperties(A7.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(){c0d(b)})}}}});
A7.\u0275fac=function(a){return new (a||A7)};
A7.\u0275cmp=D({type:A7,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(hg(x3,5),hg(q0,5),hg(H_d,5),hg(DL,5));if(a&2){var c;lg(c=mg())&&(b.hotlistPicker=c.first);lg(c=mg())&&(b.commentBox=c.first);lg(c=mg())&&(b.descriptionConfirmDialog=c.first);lg(c=mg())&&(b.advancedFieldsZippy=c.first)}},standalone:!1,features:[Gg([YP,{provide:I_d,useClass:SW},{provide:J_d,useClass:SW}]),Gf],decls:31,vars:13,consts:[["descriptionConfirmDialog",""],["collaboratorGroupField",""],["templateMenu",
"matMenu"],["priorityMenu","matMenu"],["typeMenu","matMenu"],["peopleKitDiv",""],["severityMenu","matMenu"],[1,"a11y-only"],[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices"],["mat-button","",1,"medium","primary","valign-middle-mat-button-wrapper",3,"routerLinkObj"],["cdkScrollable","",1,"bv2-view"],
[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm"],[1,"bv2-create-component-external-warning",3,"partner","public"],["role","alert",1,"bv2-validation-error-banner"],[1,"bv2-create-issue-hotlists"],[1,"bv2-create-issue-row"],[1,"bv2-create-field"],[1,"bv2-top-field-label"],["for","bv2-component",1,"required"],[1,"bv2-create-issue-component"],[3,"selectedComponentChange","selectedComponent","shouldFocus","isRequired"],[1,"bv2-create-field","bv2-right-button"],[1,"bv2-validation-error-banner"],
[3,"onApply","onLoad","onCreate","selectedHotlistIds","choices"],[1,"bv2-create-component-external-warning"],[3,"name","size"],[3,"href"],[1,"bv2-validation-error"],[1,"bv2-hotlist-chips"],[3,"removeHotlist","hotlist"],["for","bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["iconPositionEnd","","svgIcon","arrow-dropdown",1,"icon-s"],[3,"overlapTrigger"],["type","button","mat-menu-item",""],["type",
"button","mat-menu-item","",3,"click"],["for","bv2-title",1,"required"],[1,"bv2-create-issue-title","flex-kids-x","align-items-center"],["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModelChange","blur","ngModel","bFocus"],[3,"description"],[1,"banned-words-warning","break-word"],[1,"bv2-create-field","bv2-create-issue-assignee"],[1,"bv2-create-field","bv2-create-issue-collaborators"],[1,"bv2-create-field",
"bv2-create-issue-cc"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"commentChange","onChange","onSubmit","onRestrict","supportsPreview","comment","disabled","judgementForNewContent","placeholder","idForAriaLabel","audience","showRestrictionOptions","warn","canEditIssuesInComponent","isLiteralModeSupported"],["warning","",1,"banned-words-warning","break-word"],["additionalToolbarItems","",3,"change","initialValue"],[1,"bv2-create-issue-row","access-level-row"],[1,"float-clear"],[1,
"bv2-create-issue-zippy"],[1,"mat-elevation-z0","bg-secondary","bordered"],[1,"create-issue-recaptcha"],[1,"bv2-issue-create-button-bar"],["format","fill","id","bv2-issue-create-button",3,"onAction","disabled","color"],["format","fill","id","bv2-issue-create-start-button",3,"onAction","disabled","color"],["format","hairline","id","bv2-issue-discard-button",3,"onAction","disabled"],[3,"suggestionAccepted"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",
1,"color-bad-text","keep-underline"],["for","bv2-priority",1,"required"],["mat-button","","type","button","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","","type","button",3,"click"],["mat-menu-item","","type","button"],["for","bv2-type",1,"required"],["mat-menu-item","","type","button",3,"click","matTooltip"],[1,"icon-s",3,"svgIcon"],["for","bv2-assignee-peoplekit"],[1,"overflow-hidden"],["id","bv2-assignee-peoplekit","type","text","name","assignee",1,"bv2-create-issue-textfield",3,"emailChange",
"email"],["for","bv2-collaborators-peoplekit"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","matTooltipPosition","above","svgIcon","help-outline","tabindex","0",1,"collaborators-tooltip-icon"],["id","bv2-collaborators-peoplekit","type","text","name","collaborators","aria-expanded","true",1,"bv2-create-issue-textfield",3,"valueChange","ariaLabel","value"],["for","bv2-ccs-peoplekit"],["id","bv2-ccs-peoplekit",
"type","text","name","ccs","aria-expanded","true",1,"bv2-create-issue-textfield",3,"valueChange","ariaLabel","value"],["for","bv2-access-limits","matTooltip","Set access level of this issue"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","implicitAccessEnabled","defaultAccessLimitLevel"],["for","bv2-collaborator-groups","matTooltip","Set collaborator groups on the issue"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle","collaborator-group-help-icon",
3,"matTooltip"],[4,"ngTemplateOutlet"],["role","heading","aria-level","3"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","matTooltip","Set severity, which reflects how much the issue affects the use of the product"],["mat-button","","type","button","color","primary","id","bv2-severity",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[1,"bv2-create-adv-field"],["for","bv2-found-in","matTooltip","Set version(s) of the product affected by this issue (comma-separated list)"],
["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","matTooltip","Set if this issue occurs in production"],["id","bv2-in-prod","name","inProd","aria-label","Set in prod",3,"ngModelChange","ngModel"],["for","bv2-reporter-peoplekit","matTooltip","Set the reporter of this issue."],["id","bv2-reporter-peoplekit","name","reporter","type","text",3,"emailChange","email"],["for","bv2-verifier-peoplekit",
"matTooltip","Set the verifier of this issue."],["id","bv2-verifier-peoplekit","name","verifier","type","text",3,"emailChange","email"],["for","bv2-targeted-to","matTooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)"],["id","bv2-targeted-to","name","targetedTo","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["for","bv2-blocked-by","matTooltip","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name",
"blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-blocking","matTooltip","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["aria-label","Edit staffing",1,"bv2-create-adv-field","staffing-field"],["for","staffing-button","matTooltip","Edit staffing, which represents planned contributors on this issue."],
["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],["svgIcon","edit-outline",1,"icon-s","edit-icon"],["for","bv2-parents","matTooltip","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-children","matTooltip","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type","text",
"pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[3,"id","matTooltip"],[3,"id","value","required","labelledById"],[3,"id","value","required"],[3,"value","options","includeEmptyOption","labelledById"],[3,"valueChange","id","value","required","labelledById"],[3,"valueChange","id","value","required"],[3,"boundValueChange","boundValue","isRequired","bv2Id","bv2AriaLabelledby"],[3,"valueChange",
"value","options","includeEmptyOption","labelledById"],["name","customInput","tabindex","0",3,"valuesChange","defaultLineCount","type","values","enumChoices","truncate","isRequired"],[1,"bg-off-main","rounded","bordered","padded-s-y","padded-l-x",3,"context","componentId"],[3,"onUpdate"],["mat-dialog-title",""],[1,"bv2-create-issue-default-description"],["type","button","mat-button","",3,"mat-dialog-close"],"type button mat-button  mat-dialog-close ".split(" "),["appearance","outline",1,"static-label"],
["multiple","","aria-label","Collaborator groups",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"]],template:function(a,b){if(a&1){var c=t();K(0,"h2",7);Q(1,"Create issue");L();K(2,"div",8)(3,"div",9)(4,"button",10);N("click",function(){u(c);return v(b.back())});M(5,"mat-icon",11);L();K(6,"h2");Q(7,"Create Issue");L();F(8,P5b,1,2,"b-hotlist-picker",12);F(9,Q5b,2,1,"a",13);L()();K(10,"div",14)(11,"div")(12,"div",15)(13,"form",16);F(14,U5b,6,8,"div",17);F(15,c6b,4,3,"div",18);F(16,e6b,3,0,
"div",19);K(17,"div",20)(18,"div",21)(19,"div",22)(20,"label",23);Q(21,"Component");L()();K(22,"div",24)(23,"b-team-component-picker",25);N("selectedComponentChange",function(e){u(c);return v(R_d(b,e!=null?e:null))});L()()();F(24,h6b,12,4,"div",26);L();F(25,i6b,3,0,"div",27);F(26,b7b,54,63,"div");L()()()();E(27,c7b,11,2,"ng-template",null,0,Mg)(29,f7b,6,4,"ng-template",null,1,Mg)}if(a&2){var d;B(8);G(b.canEditIssuesInComponent?8:-1);B();G((d=b.issue.componentId)?9:-1,d);B(4);wg("submitted",b.submitRequested);
B();G(R5b(b)||S5b(b)?14:-1);B();G(b.submitRequested&&!b.isValid()?15:-1);B();G(b.selectedHotlists.length>0?16:-1);B(7);I("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B();G(b.availablePredefinedTemplates.length>0||b.availableExistingIssueTemplate!=null?24:-1);B();G(b.isLoadingComponent||b.componentRequestedInUrl==null&&b.selectedComponent==null||b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?
-1:25);B();G(b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?26:-1)}},dependencies:[MU,q0,cU,u_,o4,BD,MD,CD,AW,hE,yj,$D,aE,sE,uE,gE,eE,PZ,x3,pT,J3,PV,gB,cB,eB,vU,qz,MH,NH,cA,RA,TA,VA,UA,DL,EL,FL,OJ,YG,WG,aH,OU,sT,oK,iA,z7,iW,Kx,Dy,QO,tY,BY,v7,x7,y7,z_,N_,aK,cV,mX,Lx],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 i7b={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},X_d=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 n0d=["form"],o0d=function(){this.bLocation=p(ZT);this.sloApi=p(FQ);this.errorHandler=p(kO);this.analytics=p(aQ);this.butterBar=p(QN);this.appHistory=p(I2);this.sloUnderEdit={sloId:"0",parentId:"0",name:"",description:"",elements:[],effectiveElements:[],alertState:"OFF",isArchived:!1};this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error=""};h=o0d.prototype;h.ngAfterViewInit=function(){};
h.save=function(){var a=this;if(!this.validate())return Promise.reject(Error("xg"));Pr(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){Pr(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(ps.editSlo.makeHref(b.sloId))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};h.back=function(){J2(this.appHistory)};
h.revertChanges=function(){this.sloUnderEdit.name="";this.sloUnderEdit.description="";this.sloUnderEdit.elements=[]};h.updateCollection=function(a){this.sloUnderEdit.elements=a};h.validate=function(){if(this.createSloForm.invalid||!this.elementPickerIsValid)return this.error="Error: You must fill out all required fields and ensure the rules are valid.",!1;this.error="";return!0};o0d.\u0275fac=function(a){return new (a||o0d)};
o0d.\u0275cmp=D({type:o0d,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&hg(n0d,5);if(a&2){var c;lg(c=mg())&&(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();K(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return v(b.back())});M(3,"b-icon",4);L()()();K(4,"div",5)(5,"h2",6)(6,"span",7);Q(7,"Create a new SLO");L()();K(8,"div",8)(9,"form",9,0);M(11,"b-error-banner",10);K(12,"div",11)(13,"label",12);Q(14,"Name");L();K(15,"input",13);N("ngModelChange",function(d){u(c);return v(b.sloUnderEdit.name=d)});L()();K(16,"div",11)(17,"label",14);Q(18,"Description");L();K(19,"textarea",15);N("ngModelChange",function(d){u(c);return v(b.sloUnderEdit.description=
d)});Q(20,"        ");L()();K(21,"div",11)(22,"slo-elements-picker",16);N("onCollectionUpdate",function(d){u(c);return v(b.updateCollection(d))})("onValidation",function(d){u(c);return v(b.elementPickerIsValid=d)});L()();K(23,"p",17);Q(24," Access controls may be defined once the slo is created. ");L();K(25,"div",18)(26,"b-button",19);N("onAction",function(){u(c);return v(b.save())});Q(27," Save ");L();K(28,"b-button",20);N("onAction",function(){u(c);return v(b.revertChanges())});Q(29," Revert changes ");
L()()()()()}a&2&&(B(9),wg("show-errors",b.error),B(2),I("error",b.error),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),B(),wg("bv2-edit-resource-readonly",b.isSaving),B(3),I("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),B(3),I("isDisabled",!1)("collection",b.sloUnderEdit.elements),B(4),I("disabled",b.isSaving||(b.createSloForm==null?null:b.createSloForm.pending)||(b.createSloForm==null?null:b.createSloForm.invalid)||
!b.elementPickerIsValid),B(2),I("disabled",!(b.sloUnderEdit.name!==""||b.sloUnderEdit.description!==""||b.sloUnderEdit.elements.length>0)))},dependencies:[MU,G4,AW,hE,yj,$D,aE,sE,gE,eE,pT,I5],encapsulation:2});var p0d=function(){this.nextPanelId=1};p0d.\u0275fac=function(a){return new (a||p0d)};p0d.\u0275prov=Fc({token:p0d,factory:p0d.\u0275fac,providedIn:"root"});var C7=function(){Z.apply(this,arguments);this.cdr=p(YP);this.paths=p(mW);this.bLocation=p(ZT);this.$log=p(iO);this.analytics=p(aQ);this.issueApi=p(HP);this.userApi=p(fP);this.bookmarkGroupsApi=p(xO);this.hotlistApi=p(bP);this.butterBar=p(QN);this.pageTitle=p(m2);this.dashboards=p(p0d);this.routeParams=p(rS);this.appSearchState=p(oT);this.userAccess=p(yP);this.errorHandler=p(kO);this.statusMessages=p(eS);this.appEvents=p(PO);this.hotlistFridge=p(gP);this.activeSession=p(qu);this.issueFullFridge=p(cQ);
this.currentUserBookmarksFridge=p(lP);this.ANALYTICS_CATEGORY="dashboard";this.userEmail=this.activeSession.getUserEmail();this.groupId=this.routeParams.groupId||null;this.panels=[];this.hotlistChoices=[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.Number=Number;this.String=String};Y(C7,Z);C7.\u0275dir=Z.\u0275dir;
C7.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){q0d(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){r0d(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){r0d(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){r0d(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){r0d(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 r7b=function(a,b){var c=b.panelId;b=b.selectedIssues;if(a=s0d(a,c))a.selectedIssues=b!=null?b:[]},q7b=function(a,b,c){b.focusedRowIndex=c;if(c!=null)for(a=m(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},s0d=function(a,b){return a.panels.find(function(c){return c.panelId===b})},t0d=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return a!==-1?a:void 0};h=C7.prototype;
h.fetchUserHotlists=function(){var a=this;ie(mP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];mm(d,c)||(d&&La(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Pr(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Pr(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Pr(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.loadHotlists=function(a){var b=this,c=new Set;a=m(a);for(var d=a.next();!d.done;d=a.next()){d=m(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=m(c);for(a=c.next();!a.done;a=c.next())this.hotlistApi.get(a.value).then(function(f){b.hotlistFridge.announce(f);b.addHotlist(f);b.cdr.detectChanges()}).catch(function(f){(new Set([403,404])).has(f.status)||b.errorHandler.errorHandler(null,f)})};
h.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=m(this.panels);for(var e=b.next();!e.done;e=b.next()){e=m(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();Pr(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return dQ(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){Pr(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var l=m(c.panels),r=l.next();!r.done;r=l.next()){r=m(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next()){var x=void 0;w.value.lastViewedTime=(x=k)!=null?x:null}}}).catch(function(k){for(var l=m(c.panels),r=l.next();!r.done;r=l.next()){r=m(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next())w=w.value,w.isRead=!!w.lastViewedTime&&w.lastViewedTime>=w.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
x7a(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var g={bulkEditOps:a};Pr(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(g,b).then(function(k){for(var l=m([].concat(q(c.searchPanels),q(c.hotlistPanels))),r=l.next();!r.done;r=l.next()){r=r.value;var w=k;if(r.searchResults){r.searchResults=r.searchResults.clone();for(var x=0,C=m(r.searchResults.issues),H=C.next();!H.done;H=C.next()){H=H.value;if(w.affectedIssues[H.issueId]){var J=
w.affectedIssues[H.issueId];J=PAb(J,w.componentMap[Number(Ia(J.snapshot).componentId)]);J.selected=H.selected;r.searchResults.issues[x]=J;r.resultsLoaded.emit([r.searchResults.issues[x]])}x++}}}k.errors&&k.errors.length?(l=dVa(k.errors),c.butterBar.showWarning("Failed to update issue(s) "+l+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=dnd(c.statusMessages,g))?Pr(c.butterBar,k):Pr(c.butterBar,"Saved "+y7a(a).length+" issue(s).")}).catch(function(k){c.errorHandler.errorHandler(null,
k)})};h.loadBookmarkGroup=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return Yd(d,2),z(d,a.bookmarkGroupsApi.get(a.groupId),4);if(d.nextAddress!=2)return b=d.yieldResult,a.isAdmin=b.adminUsers.some(function(e){return e.emailAddress===a.userEmail}),a.pageTitle.setTitle(b.name),d.return(b);c=be(d);mO(a.errorHandler,c);throw c;})};var q0d=function(a,b){a.panels=(b.item||[]).map(function(c,d){return u0d(a,c,d===0?0:void 0)}).filter(Qm)};
C7.prototype.removePanel=function(a){var b=this,c=s0d(this,a);c!=null&&(Pr(this.butterBar,"Saving changes...",0),a=pm(this.bookmarkGroup),a.item=a.item.filter(function(d){return!v0d(b,c,d)}),w0d(this,a))};
var r0d=function(a,b,c){b=t0d(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=pm(a.bookmarkGroup);var e,f=(e=a.bookmarkGroup)==null?void 0:e.item.findIndex(function(g){return v0d(a,d,g)});f!==void 0&&(Jba(b.item,f,c),w0d(a,b))}}},w0d=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;x0d(a,a.bookmarkGroup.item);Pr(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},v0d=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId===b.resourceId;case "SAVED_SEARCH":return c.savedSearchId===String(b.resourceId);default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},y0d=function(a,b){return a.panels.find(function(c){return v0d(a,c,b)})},u0d=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";var f;e=(f=b.hotlistId)!=null?f:null;break;case "SAVED_SEARCH":d=
"SAVED_SEARCH";var g;e=(g=b.savedSearchId)!=null?g:null;break;default:a.$log.warn("Unsupported item: "+b)}if(d&&e)return a=a.dashboards,b=a.nextPanelId,a.nextPanelId++,{panelId:b,resourceId:e,type:d,focusedRowIndex:c!=null?c:null,selectedIssues:[]}},x0d=function(a,b){a.panels=b.map(function(c){var d;return(d=y0d(a,c))!=null?d:u0d(a,c)}).filter(Qm)};
C7.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)})};C7.prototype.editBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
C7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(C7)))(b||C7)}}();
C7.\u0275cmp=D({type:C7,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(hg(r5,5),hg(p5,5));if(a&2){var c;lg(c=mg())&&(b.searchPanels=c);lg(c=mg())&&(b.hotlistPanels=c)}},standalone:!1,features:[Gg([YP]),Gf],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&&(K(0,"h2",0),Q(1,"Dashboard"),L(),K(2,"div",1)(3,"div",2),Q(4,"Bookmark groups dashboard"),L(),K(5,"b-dashboard-controls",3),N("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",
function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),L()(),K(6,"div",4),F(7,p7b,8,2,"div"),Of(8,u7b,3,1,"div",null,Nf),L());a&2&&(B(5),I("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(),I("bFocus",!0),B(),G(b.bookmarkGroup?7:-1),B(),Pf(b.panels))},dependencies:[G3,FY,r5,p5,AW,oK,iA],encapsulation:2});var z0d=function(){};z0d.\u0275fac=function(a){return new (a||z0d)};z0d.\u0275mod=cf({type:z0d});z0d.\u0275inj=Hc({imports:[H3,X1,s5,q5,RO,BW,pK]});var A0d=["editBookmarkGroupItemsContainer"],B0d=["bookmarkGroupName"],V7b=function(a){return{displayText:"Admins",values:a}},U7b=function(a){return[a]},D7=function(){Z.call(this);var a=this;this.routeParams=p(rS);this.location=p(ZT);this.activeSession=p(qu);this.butterBar=p(QN);this.accessPolicyApi=p(FO);this.bookmarkGroupsApi=p(xO);this.hotlistApi=p(bP);this.paths=p(mW);this.appHistory=p(I2);this.pageTitle=p(m2);this.userAccess=p(yP);this.errorHandler=p(kO);this.appEvents=p(PO);this.snackBar=p(nB);
this.confirmationDialog=p(ZR);this.checkBeforeExit=p(uY);this.cdr=p(YP,{self:!0});this.documentationLinks=p(YR);this.currentUserBookmarksFridge=p(lP);this.selectedTabIndex=0;this.accessPolicyUnderEdit=is();this.flattenedAccessPolicy=is();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);C0d(this);D0d(this);Promise.all([b,c]).then(function(){var d;(d=a.bookmarkGroupNameInput)==null||d.nativeElement.focus()});this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));b=function(){C0d(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(){D0d(a)}))};Y(D7,Z);D7.\u0275dir=Z.\u0275dir;h=D7.prototype;h.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};h.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};h.back=function(){J2(this.appHistory)};
h.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};h.isSaving=function(){return this.isUpdating||this.isArchiving};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};h.hasUnsavedMetadataChanges=function(){return!mm(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};h.hasUnsavedAccessPolicyChanges=function(){return!mm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};
h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=pm(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[E0d(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];F0d(this)};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=pm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change bookmark group admins",content:Bh("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
h.validate=function(){if(this.bookmarkGroupUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.archive=function(){var a=this;this.confirmationDialog.open({title:"Archive bookmark group",content:Bh("Do you want to archive this bookmark group?"),isDestructive:!0,onConfirm:function(){G0d(a,"archive")}})};
h.unarchive=function(){var a=this;this.confirmationDialog.open({title:"Unarchive bookmark group",content:Bh("Do you want to unarchive this bookmark group?"),onConfirm:function(){G0d(a,"unarchive")}})};
h.doSaveMetadata=function(){var a=this,b=this.bookmarkGroupUnderEdit,c=this.bookmarkGroup.bookmarkGroupId;this.snackBar.open("Saving bookmark group ID "+c,"dismiss",{duration:0});this.isUpdating=!0;this.bookmarkGroupsApi.update(b).then(function(d){a.snackBar.open("Bookmark group ID "+c+" was saved as "+a.bookmarkGroupUnderEdit.name,"dismiss",{duration:2E3});H0d(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=ks(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=js(c);a.accessPolicyUnderEdit=pm(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var G0d=function(a,b){var c=pm(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});H0d(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
D7.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){H0d(b,c);b.selectedHotlistIds=[E0d(b.bookmarkGroup.item)];F0d(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var H0d=function(a,b){a.bookmarkGroup=b;a.bookmarkGroupUnderEdit=pm(a.bookmarkGroup)};
D7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=js(c);b.accessPolicyUnderEdit=pm(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};D7.prototype.loadUserAccess=function(a){var b=this;return zP(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var C0d=function(a){ie(mP(a.currentUserBookmarksFridge)).then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},D0d=function(a){a.userSavedSearches=null;ie(Ifd(a.currentUserBookmarksFridge)).then(function(b){a.userSavedSearches=b;F0d(a);a.cdr.detectChanges()})},F0d=function(a){if(a.userSavedSearches&&a.bookmarkGroupUnderEdit!=null){var b=I0d(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return!b.includes(c.searchId)})}},
y7b=function(a,b){var c=Number(b);wba(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});J0d(a,c);var d;(d=a.editBookmarkGroupItemsContainer)==null||d.nativeElement.focus()},A7b=function(a,b){wba(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});F0d(a);var c;(c=a.editBookmarkGroupItemsContainer)==null||c.nativeElement.focus()},N7b=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return ps.viewHotlist.makeHref(b.hotlistId);
case "BOOKMARK_GROUP":return a.paths.viewBookmarkGroup(b.bookmarkGroupId);default:wb(b.resourceType)}},I7b=function(a,b){for(var c=m(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$655:void 0},d=c.next()){var f=m(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$655=sm(d);f&&!b.oldSelectionMap[e.id$jscomp$655]?(L7b(a,e.id$jscomp$655),e=a.userHotlists.find(function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[e.id$jscomp$655]&&!f&&(J0d(a,e.id$jscomp$655),wba(a.bookmarkGroupUnderEdit.item,function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)))}},L7b=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},J0d=function(a,b){La(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},E7b=function(a,b){I0d(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)===-1&&a.bookmarkGroupUnderEdit.item.push({name:b.name,
resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){F0d(a)})},I0d=function(a){return a?zRa(a,"savedSearchId"):[]},E0d=function(a){return zRa(a,"hotlistId")},J7b=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)},K7b=function(a,
b){return a.hotlistApi.get(b.hotlistId).then(function(c){a.userHotlists.push(c);b.successCallback(c);return c},b.errorCallback)};D7.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:wb(a.resourceType)}};D7.\u0275fac=function(a){return new (a||D7)};
D7.\u0275cmp=D({type:D7,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(hg(A0d,5),hg(B0d,5),hg(rL,5,Jd));if(a&2){var c;lg(c=mg())&&(b.editBookmarkGroupItemsContainer=c.first);lg(c=mg())&&(b.bookmarkGroupNameInput=c.first);lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Gg([YP]),Gf],decls:9,vars:3,consts:[["bookmarkGroupName",""],["editBookmarkGroupItemsContainer",""],["savedSearchMenu","matMenu"],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button",
"","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["type","button","mat-button","","color","primary",3,"disabled"],[1,"bv2-view"],["type","button","mat-button","","color","primary",3,"click","disabled"],[1,"edit-resource-header"],[1,"resource-archived"],[1,"edit-resource-header-link","normal-link",3,"href"],["mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],
[3,"error"],[1,"edit-field"],["for","bookmark-group-name",1,"required"],[1,"edit-field-header"],["type","text","id","bookmark-group-name","required","","aria-required","true",3,"ngModelChange","ngModel","disabled"],["for","bookmark-group-description"],["id","bookmark-group-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","bv2-edit-resource-readonly"],[1,"edit-button-row"],["id","access","label","Access Control"],[1,"edit-field-note"],[3,"usersChange","isValid","users"],[3,"usersChange",
"isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],["for","edit-bookmark-group-items-container"],["role","region","aria-label","Selected items","id","edit-bookmark-group-items-container",1,"keep-focus-ring","edit-bookmark-group-items-container"],[1,"bv2-bookmark-item-chip"],[1,"edit-bookmark-group-edit-items-pane"],[1,"edit-bookmark-group-hotlist-picker"],["for","hotlist-picker-button"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices",
"checkEditAcl"],[1,"edit-bookmark-group-hotlist-search"],["for","hotlist-search-input-box"],[3,"itemSelect","showGroups","allowStarring"],[1,"edit-bookmark-group-saved-search-picker"],[1,"bv2-saved-search-chip","b-chip","yellow","split"],[1,"edit-bookmark-group-none-select"],[3,"removeHotlist","id"],[1,"left","interactive",3,"href","matTooltip"],["role","button","tabindex","0",1,"right","interactive",3,"click","keydown.enter","keydown.space","matTooltip"],["for","add-from-saved-searches-button"],
["type","button","id","add-from-saved-searches-button","mat-button","","aria-describedby","select-from-saved-searches-button",1,"medium","primary",3,"matMenuTriggerFor"],["id","select-from-saved-searches-button"],"iconPositionEnd  svgIcon arrow-dropdown color primary".split(" "),["matMenuContent",""],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],[1,"edit-bookmark-group-view-items"],[3,"href"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],
["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",3)(1,"div",4)(2,"div",5)(3,"button",6),N("click",function(){return b.back()}),M(4,"mat-icon",7),L(),F(5,v7b,2,1,"button",8),F(6,w7b,2,1,"button",8),L()()(),K(7,"div",9),F(8,W7b,46,35),L());a&2&&(B(5),G(b.isAdmin&&!b.isArchived()?5:-1),B(),G(b.isAdmin&&b.isArchived()?6:-1),B(2),G(!b.isLoading&&b.bookmarkGroup.bookmarkGroupId?8:-1))},dependencies:[Dy,oK,iA,gB,cB,eB,wL,rL,sL,G4,QZ,x3,w2,yj,$D,
sE,gE,OJ,YG,WG,XG,aH,KW],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 K0d=["savedSearchNameInput"],b8b=function(a){return{displayText:"Admins",values:a}},a8b=function(a){return[a]},E7=function(){Z.call(this);var a=this;this.routeParams=p(rS);this.location=p(ZT);this.accessPolicyApi=p(FO);this.savedSearchApi=p(jP);this.paths=p(mW);this.appHistory=p(I2);this.butterBar=p(QN);this.pageTitle=p(m2);this.documentationLinks=p(YR);this.userAccess=p(yP);this.errorHandler=p(kO);this.snackBar=p(nB);this.confirmationDialog=p(ZR);this.cdr=p(YP,{self:!0});this.appEvents=p(PO);
this.activeSession=p(qu);this.checkBeforeExit=p(uY);this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.accessPolicyUnderEdit=is();this.flattenedAccessPolicy=is();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(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1))};Y(E7,Z);E7.\u0275dir=Z.\u0275dir;h=E7.prototype;h.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};h.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};
h.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=pm(b.savedSearch);b.pageTitle.setTitle("Saved search: "+c.name)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.cdr.detectChanges()})};
h.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=js(c);b.accessPolicyUnderEdit=pm(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.loadUserAccess=function(a){var b=this;return zP(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h.isSaving=function(){return this.isUpdating||this.isDeleting};h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.back=function(){J2(this.appHistory)};h.revertMetadataChanges=function(){this.savedSearchUnderEdit=pm(this.savedSearch);this.error=""};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=pm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.hasUnsavedMetadataChanges=function(){return!mm(this.savedSearch,this.savedSearchUnderEdit)};
h.hasUnsavedAccessPolicyChanges=function(){return!mm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
h.saveMetadata=function(){var a=this;this.validate()&&(this.snackBar.open("Save saved search ID "+this.savedSearchUnderEdit.searchId,"dismiss",{duration:0}),this.isUpdating=!0,this.savedSearchApi.update(this.savedSearchUnderEdit.searchId,this.savedSearchUnderEdit).then(function(b){a.snackBar.open("Saved search ID "+b.searchId+' was saved as "'+b.name+'"',"dismiss",{duration:0});a.savedSearch=b;a.savedSearchUnderEdit=pm(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};h.validate=function(){if(this.savedSearchUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change saved search admins",content:Bh("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=ks(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=js(c);a.accessPolicyUnderEdit=pm(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(Sp(c),0)}).finally(function(){a.isUpdating=!1})};h.delete=function(){var a=this;this.confirmationDialog.open({title:"Delete saved search",content:Bh("Do you want to delete this saved search?"),isDestructive:!0,onConfirm:function(){a.doDelete()}})};
h.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});Prd(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
E7.\u0275fac=function(a){return new (a||E7)};
E7.\u0275cmp=D({type:E7,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(hg(K0d,5),hg(rL,5,Jd));if(a&2){var c;lg(c=mg())&&(b.savedSearchName=c.first);lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Gg([YP]),Gf],decls:9,vars:3,consts:[["savedSearchNameInput",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["type","button","mat-button",
"","color","primary","matTooltip","Delete saved search",3,"disabled"],[1,"bv2-view"],[1,"edit-resource-header"],["type","button","mat-button","","color","primary","matTooltip","Delete saved search",3,"click","disabled"],[1,"edit-resource-header-link",3,"href"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field"],["for","saved-search-name",1,"required"],[1,"edit-field-header"],
["type","text","id","saved-search-name","required","","aria-required","true",3,"ngModelChange","ngModel","disabled"],["for","saved-search-description"],["id","saved-search-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","bv2-edit-resource-readonly"],["for","saved-search-query"],[1,"edit-field-note"],[1,"edit-saved-search-query-container","codefont"],[1,"edit-button-row"],["id","access","label","Access Control"],["for","saved-search-acl-admins"],[3,"usersChange","isValid","users"],
["for","saved-search-acl-readers"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),N("click",function(){return b.back()}),M(4,"mat-icon",5),L(),F(5,X7b,2,1,"button",6),L()()(),K(6,"div",7),F(7,Y7b,3,0,"div",
8),F(8,c8b,50,34),L());a&2&&(B(5),G(b.isAdmin?5:-1),B(2),G(b.isLoading||b.savedSearch?-1:7),B(),G(!b.isLoading&&b.savedSearch?8:-1))},dependencies:[Dy,oK,iA,gB,cB,eB,wL,rL,sL,G4,yj,$D,sE,gE,KW],encapsulation:2});var L0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L0d,W);L0d.prototype.getSloId_asLegacyNumberOrString=function(){return Ep(this,1)};L0d.prototype.getSloId_asString=function(){return un(this,1)};L0d.prototype.setSloId=function(a){return Ko(this,1,a)};var M0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(M0d,W);h=M0d.prototype;h.getAuthor=function(){return X(this,Fm,1)};h.setAuthor=function(a){Ni(this,Fm,1,a)};h.hasAuthor=function(){return yi(this,Fm,1)};h.getTimestamp=function(){return X(this,Ti,2)};h.setTimestamp=function(a){return Ni(this,Ti,2,a)};h.hasTimestamp=function(){return yi(this,Ti,2)};h.getAdd=function(){return X(this,wr,3)};h.setAdd=function(a){return Ni(this,wr,3,a)};
h.getRemove=function(){return X(this,wr,4)};h.setRemove=function(a){return Ni(this,wr,4,a)};h.getAddMask=function(){return X(this,Dq,5)};h.getMutableAddMask=function(){return Ji(this,Dq,5)};h.setAddMask=function(a){return Ni(this,Dq,5,a)};h.getRemoveMask=function(){return X(this,Dq,6)};h.getMutableRemoveMask=function(){return Ji(this,Dq,6)};h.setRemoveMask=function(a){return Ni(this,Dq,6,a)};h.getFieldUpdatesList=function(){return Ci(this,Rfd,7,Di())};var N0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N0d,W);var O0d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,O0d.messageId)};Y(O0d,W);O0d.prototype.getIt=function(){return X(this,N0d,1,jb)};O0d.prototype.setIt=function(a){return Ni(this,N0d,1,a,jb)};O0d.messageId="b.ListSloUpdatesResponse";var F7=function(){this.executor=p(dO);this.bCacheFactory=p(WO);this.sloHistories=this.bCacheFactory.get("slo_histories-second-level-cache")||this.bCacheFactory.create("slo_histories-second-level-cache",{capacity:25})};F7.prototype.get=function(a){var b=this.sloHistories.get(String(a));return b!==void 0?b:this.sloHistories.put(String(a),P0d(this,a))};
var P0d=function(a,b){var c=(new L0d).setSloId(Number(b));return a.executor.post({url:"action/slos/"+b+"/updates",body:c,responseConstructor:O0d}).then(function(d){d=d.getIt();return{updates:Ci(d,M0d,1,Di()).map(qXa)}})};F7.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};F7.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};F7.\u0275fac=function(a){return new (a||F7)};F7.\u0275prov=Fc({token:F7,factory:F7.\u0275fac,providedIn:"root"});var m8b=function(a){return{displayText:"Admins",values:a}},l8b=function(a){return[a]},G7=function(){var a=p(qu),b=p(uY);Z.call(this);var c=this;this.routeParams=p(rS);this.bLocation=p(ZT);this.appHistory=p(I2);this.butterBar=p(QN);this.pageTitle=p(m2);this.documentationLinks=p(YR);this.userAccess=p(yP);this.accessPolicyApi=p(FO);this.sloApi=p(FQ);this.sloUpdatesApi=p(F7);this.sloUpdatesService=p(wWd);this.errorHandler=p(kO);this.matDialogService=p(QA);this.analytics=p(aQ);this.confirmationDialogService=
p(ZR);this.appEvents=p(PO);this.editableAccessPolicy=is();this.flattenedAccessPolicy=is();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(vY(b,function(){return c.hasUnsavedChanges()},!1));b=this.routeParams.sloId;this.resourceName=fq("SLO",
sm(b));if(this.sloEnabled=a.isInternalSession())Q0d(this,b),this.loadUserAccess(b),this.loadAccessPolicy(b),R0d(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(G7,Z);G7.\u0275dir=Z.\u0275dir;
G7.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)};G7.prototype.ngOnInit=function(){this.bLocation.hash()==="access"&&(this.selectedTabIndex=1)};G7.prototype.updateCollection=function(a){this.editableCopy&&(this.editableCopy.elements=a)};
var Q0d=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=pm(a.slo);a.pageTitle.setTitle("SLO: "+c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
G7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=js(c);b.editableAccessPolicy=pm(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var S0d=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return yWd(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};h=G7.prototype;
h.loadUserAccess=function(a){var b=this;zP(this.userAccess,"admin",fq("SLO",sm(a))).then(function(c){b.isAdminInternal=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};h.hasUnsavedMetadataChanges=function(){return!mm(this.slo,this.editableCopy)};h.hasUnsavedAccessPolicyChanges=function(){return!mm(this.flattenedAccessPolicy,this.editableAccessPolicy)};
h.saveMetadata=function(){var a=this;T0d(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:Dh([Bh("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."),Eh("br"),Eh("br"),Bh("Please combine changes into as few updates as possible.")]),onConfirm:function(){a.save()},onDismiss:LB})};
var g8b=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Bh("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:LB}):c()}},T0d=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};
G7.prototype.save=function(){var a=this,b=this.editableCopy;Pr(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.';T0d(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");Pr(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=pm(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})};G7.prototype.saveAccessPolicy=function(){var a=this;this.isRevokingAdmin()?this.confirmationDialogService.open({title:"Change SLO admins",content:Bh("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:LB}):this.doSaveAccessPolicy()};
G7.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=ks(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;Pr(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){Pr(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=js(c);a.editableAccessPolicy=pm(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent("editSlo",
"updateAccessPolicy")},function(c){a.butterBar.showWarning(Sp(c),0)}).finally(function(){a.isUpdating=!1})};G7.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var R0d=function(a,b){S0d(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&xm(c.author)==="buganizer-system@google.com"&&(a.isImportedFromBugScope=!0);d.author&&xm(d.author)==="buganizer-system@google.com"&&(a.isUneditedFromBugScope=!0)}})};h=G7.prototype;
h.isRevokingDirectAdmin=function(){if(mm(this.flattenedAccessPolicy.admins,this.editableAccessPolicy.admins))return!1;var a="USER:"+this.currentUserEmail;return this.flattenedAccessPolicy.admins.includes(a)&&!this.editableAccessPolicy.admins.includes(a)};
h.revertMetadataChanges=function(){var a=this;T0d(this.slo.elements,this.editableCopy.elements)?this.editableCopy=pm(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:Dh([Bh("Revert all changes to this SLO?")]),onConfirm:function(){a.editableCopy=pm(a.slo)},onDismiss:LB})};h.revertAccessPolicyChanges=function(){this.editableAccessPolicy=pm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.isSaving=function(){return this.isUpdating};
h.back=function(){J2(this.appHistory)};h.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};h.isAdmin=function(){return this.isAdminInternal};h.showUpdateHistoryModal=function(){var a=this;S0d(this,this.slo.sloId).then(function(){a.matDialogService.open(Q6,{width:"600px",data:{updateDiffs:a.historyDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("editSlo","viewHistory")})};G7.\u0275fac=function(a){return new (a||G7)};
G7.\u0275cmp=D({type:G7,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&hg(rL,5,Jd);if(a&2){var c;lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Gf],decls:7,vars:2,consts:[["sloBasicsForm","ngForm"],[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"bv2-view-loading"],[1,"edit-resource-header"],[1,"vertical-centered"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndexChange",
"selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel","edit-slo-basics-form"],["name","sloBasicsForm"],[1,"edit-field"],["for","slo-name",1,"required"],[1,"edit-field-header"],["type","text","id","slo-name","name","slo-name",3,"ngModelChange","required","ngModel","disabled"],["for","slo-description"],["id","slo-description","name","slo-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","permission-toggle",3,"bv2-edit-resource-readonly"],["id","bs-warning"],
[3,"onCollectionUpdate","onValidation","isDisabled","collection"],["id","bv2-slo-edit-buttons"],[1,"edit-button-row"],[1,"edit-button-group"],["title","View history for 'Basic Information'",3,"onAction"],["id","access","label","Access Control"],[1,"edit-resource-panel"],["name","accessControlForm","novalidate",""],["for","slo-acl-admins"],[1,"edit-field-note"],[3,"usersChange","isValid","users"],["for","slo-acl-readers"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],
["target","_blank",3,"href"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],[3,"change","checked","disabled"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank","href","https://goto.google.com/buganizer-bugscope-slo-sync"],["format","fill","tooltip","Save any changes to the SLO",3,"onAction","disabled"],["tooltip","Discard any changes",3,"onAction","disabled"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled"],
["tooltip","Unarchive the SLO and allow new usages",3,"disabled"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"onAction","disabled"],["tooltip","Unarchive the SLO and allow new usages",3,"onAction","disabled"],["format","fill",3,"onAction","disabled"],[3,"onAction"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2)(2,"b-button",3),N("onAction",function(){return b.back()}),M(3,"b-icon",4),L()()(),K(4,"div",5),F(5,d8b,2,0,"div",6),F(6,n8b,55,37,"div"),L());a&2&&(B(5),G(b.isLoading?
5:-1),B(),G(!b.isLoading&&b.slo&&b.slo.sloId&&b.editableCopy?6:-1))},dependencies:[MU,hE,yj,$D,aE,sE,gE,eE,pT,wL,rL,sL,KW,fL,aI,I5,$T],encapsulation:2});var H7=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=p(TQ);this.issueFullFridge=p(cQ);this.issuePicker=p(XX);this.snackBar=p(nB);this.imageUrls=p(YV);this.TEA_DARK=this.imageUrls.TEA_DARK;this.TEA_LIGHT=this.imageUrls.TEA_LIGHT;this.getStatus=function(b){return b.snapshot[0].status};this.id$=this.contextSensitiveRegistry.getIssueId();this.searchUrl$=this.id$.pipe(A(function(b){return{path:"/issues",params:{q:"blockedbyid:"+b}}}));this.issue$=this.id$.pipe(Af(function(b){return b?
a.issueFullFridge.watch(b):ee(void 0)}));this.blockingIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(Af(function(b){return a.issueFullFridge.watchSet(b)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(A(function(b){return b.filter(ko)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(A(function(b){return b.map(function(c){return String(c.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(A(function(b){return b.filter(function(c){return CUa(c)})}));
this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(A(function(b){return b.map(function(c){return String(c.issueId)})}));this.thinking$=this.issueFullFridge.thinking$;this.getMenuItems=function(b){return[{type:"action",label:"Remove this relationship",action:function(){U0d(a,b)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.id$),2);c=d.yieldResult;return c==null?d.return():z(d,a.issueFullFridge.addBlocking(c,
b).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Sp(b)||"Error with network request","close",{panelClass:"error"})}};Y(H7,Z);H7.\u0275dir=Z.\u0275dir;var o8b=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)},U0d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,ie(a.id$),2);c=d.yieldResult;return c==null?d.return():z(d,a.issueFullFridge.removeBlocking(c,[String(b)]).catch(a.gotErr),0)})};
H7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(H7)))(b||H7)}}();
H7.\u0275cmp=D({type:H7,selectors:[["ng-component"]],standalone:!1,features:[Gf],decls:5,vars:6,consts:[[1,"carded","bg-main"],[1,"pos-tr","padded"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",1,"light-only",3,"src"],["aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/block-issue","target","_blank",1,"nowrap"],["type","button","mat-flat-button","","color","primary","matTooltip",
"Add something this issue is blocking",1,"small",3,"click"],[1,"margin-s-top","flex-kids-x","gap-s"],["mat-button","","color","primary",1,"small",3,"routerLink","queryParams"],[1,"section-heading","muted"],[1,"muted","margin-bottom"],[3,"issueIds","menuItemFactory"],[1,"unstyled","reverse-padded-sides"],[1,"padded-x",3,"routerLink"],[1,"right"],["type","button","mat-icon-button","","aria-label","",1,"invisible"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,C8b,2,1),T(2,"async"),L(),F(3,D8b,
2,0,"aside",1),T(4,"async"));if(a&2){var c;B();G((c=U(2,2,b.blockingIds$))?1:-1,c);B(2);G(U(4,4,b.thinking$)?3:-1)}},dependencies:[$E,gB,cB,eB,oK,iA,$T,$Z,Lx],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 V0d=function(){};V0d.\u0275fac=function(a){return new (a||V0d)};V0d.\u0275mod=cf({type:V0d});V0d.\u0275inj=Hc({imports:[RO,By,nI,xE,yE,iB,yL,pK,AX,MK,uU,bU,Z0]});var I7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,I7.messageId)};Y(I7,W);I7.prototype.getIssueId=function(){return pn(this,1,void 0,jb)};I7.prototype.getIssueId_asString=function(){return nn(this,1,void 0,jb)};I7.prototype.setIssueId=function(a){return Kn(this,1,a,void 0,jb)};I7.messageId="b.MonorailIssueRedirectRequest";var J7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,J7.messageId)};Y(J7,W);J7.prototype.getUrl=function(){return X(this,hm,1,jb)};J7.prototype.setUrl=function(a){return Ni(this,hm,1,a,jb)};J7.prototype.hasUrl=function(){return yi(this,hm,1,jb)};J7.messageId="b.MonorailIssueRedirectResponse";var W0d=function(){this.executor=p(ZN)},X0d=function(a,b){b=(new I7).setIssueId(b);return a.executor.post({url:"action/monorailIssueRedirect",body:b,responseConstructor:J7}).pipe(A(function(c){return ZEa(c.getUrl())}),jf(function(){return ee(null)}))};W0d.\u0275fac=function(a){return new (a||W0d)};W0d.\u0275prov=Fc({token:W0d,factory:W0d.\u0275fac,providedIn:"root"});var M8b=function(a,b){return b.issueId},Y0d={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},K7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(cQ);this.router=p(YE);this.STATUS_JS_TERSE=Lcd;this.ListIssuesHovercardMode=Y0d;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new wf(1);this.init=new wf(1);this.issues$=this.issueIds$.pipe(we(Qm),Af(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return a.mode==="parent"?b.filter(FUa):b.filter(ko)}))};
Y(K7,Z);K7.\u0275dir=Z.\u0275dir;K7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var J8b=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=m(c.entries()),f=e.next();!f.done;f=e.next()){var g=m(f.value);f=g.next().value;g=g.next().value;d+=g;d=f<c.length-1?d+"|":d+")"}c={q:d};a.router.navigate([ps.listIssues.makeHref()],{queryParams:c})})};
K7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(Bf(this.destroyed$)).subscribe(function(){a.init.next()})};da.Object.defineProperties(K7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});K7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(K7)))(b||K7)}}();
K7.\u0275cmp=D({type:K7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},standalone:!1,features:[Gf],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,N8b,8,4,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.issues$))?0:-1,c)}},dependencies:[Dy,$E,gB,cB,Lx],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 L7=function(){this.issueFullFridge=p(cQ);this.paths=p(mW);this.cdr=p(ux);this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=Y0d;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};L7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&Z0d(this).then(function(c){b.issueIdToTitle=c;b.cdr.markForCheck()})};L7.prototype.getIssueLink=function(a){return rs(a)};
var Z0d=function(a){var b,c,d;return y(function(e){a.reorderedAncestors=[];for(b=a.issueId;;)if(c=a.ancestors.get(b))if(c.sourceIssueIds.length===1)b=c.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIssueIds=c.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();d=vq(a.reorderedAncestors);return d.length===0?e.return(new Map):e.return(ie(le(d.map(function(f){return a.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(Qm)}),A(function(f){var g=new Map;f=m(f);
for(var k=f.next();!k.done;k=f.next())k=k.value,g.set(k.issueId,k.snapshot[0].title);return g}))))})};L7.\u0275fac=function(a){return new (a||L7)};
L7.\u0275cmp=D({type:L7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},standalone:!1,features:[bx],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,Q8b,6,5),Of(2,R8b,3,5,null,null,Nf));a&2&&(B(),G(b.multiParentIssueIds.length>1?1:-1),B(),Pf(b.reorderedAncestors))},dependencies:[Dy,IR,DK,EK,LK,FK,K7],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%]     a{color:#202124;color:var(--text-default);line-height:22px;vertical-align:middle}[_nghost-%COMP%]     a.muted{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]     a:hover, [_nghost-%COMP%]     a:focus{color:#1a73e8;color:var(--link);text-decoration:underline}.chevron[_ngcontent-%COMP%]{width:18px}.chevron.last[_ngcontent-%COMP%]{margin-right:-3px}"],
changeDetection:0});var M7=function(){var a=this;this.issueFullFridge=p(cQ);this.hotlistFridge=p(gP);this.hotlistPicker=p(IY);this.issueId$=new wf(1);this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.hotlistsOnIssue$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.count$=this.hotlistsOnIssue$.pipe(A(function(b){return b==null?void 0:b.length}),zf(0));this.label$=this.count$.pipe(A(function(b){return b>0?"Hotlists ("+b+")":
"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;this.HOTKEYS=Vr};M7.prototype.onClick=function(){FCd(this.hotlistPicker,this.issue$)};da.Object.defineProperties(M7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});M7.\u0275fac=function(a){return new (a||M7)};
M7.\u0275cmp=D({type:M7,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&&(K(0,"button",0),T(1,"async"),N("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),Q(2),T(3,"async"),L());a&2&&(I("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",U(1,3,b.isDisabled$)),B(2),S(" ",U(3,5,b.label$),"\n"))},dependencies:[mU,
gB,cB,Lx],encapsulation:2});var $0d=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()}}}},a1d=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},b1d=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)}}},c1d=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()}}},d1d=function(a,b){var c=b.isArchived;var d=b.isInternal;var e=b.isDeleted;if(!c&&!e&&d&&b.enableIrmIntegrationMenu)return{type:"action",label:"Create incident from bug...",title:"Create incident from bug... (requires Edit Issues permission)",
icon:"new_releases_24px",disabled:!b.permissions.writer,action:function(){a.escalateToIncident()}}};var e1d=function(a){return{isDupe:a}},N7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(cQ);this.permissionsFridge=p(yQ);this.issuePicker=p(XX);this.snackBar=p(nB);this.eventsForIssueFridge=p(IP);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 wf(1);this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.isDupe$=this.issue$.pipe(A(function(b){var c;
return!!(b==null?0:(c=b.snapshot[0])==null?0:c.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(Af(function(b){return a.permissionsFridge.watch(eq(b))}));this.canEdit$=this.permissions$.pipe(A(function(b){return!(b==null||!b.writer)}),zf(!0));this.didChooseCanonical=function(b){return function(c){(c=c[0])&&Fhd(a.issueFullFridge,c,b).then(function(){a.eventsForIssueFridge.poke(b)}).catch(a.gotErr)}};this.gotErr=function(b){a.snackBar.open(Sp(b)||"Error with network request","close",{panelClass:"error"})}};
Y(N7,Z);N7.\u0275dir=Z.\u0275dir;
var S8b=function(a){var b,c,d;return y(function(e){switch(e.nextAddress){case 1:return a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)?e.return():z(e,ie(a.canEdit$),2);case 2:return(b=e.yieldResult)?z(e,ie(a.isDupe$),3):e.return();case 3:return c=e.yieldResult,z(e,ie(a.issue$),4);case 4:d=e.yieldResult;if(d==null)return e.return();c?f1d(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));ce(e)}})},f1d=function(a,b){var c=b.snapshot[0].duplicateOfIssueId;c!=null&&a.issueFullFridge.removeDuplicate(c,b.issueId).then(function(){a.eventsForIssueFridge.poke(b.issueId)}).catch(a.gotErr)};da.Object.defineProperties(N7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});N7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(N7)))(b||N7)}}();
N7.\u0275cmp=D({type:N7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},standalone:!1,features:[Gf],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,T8b,3,5,"button",0),T(1,"async"));if(a&2){var c;G((c=Ig(3,e1d,U(1,1,b.isDupe$)))?0:-1,c)}},dependencies:[gB,cB,Lx],encapsulation:2});var O7=function(){this.label=""};O7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};O7.\u0275fac=function(a){return new (a||O7)};
O7.\u0275cmp=D({type:O7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&hg(LK,5);if(a&2){var c;lg(c=mg())&&(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&&(K(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",
2),F(4,V8b,1,1,"ng-container"),L()()(),M(5,"mat-icon",3));a&2&&(a=qg(1),B(2),Kf("aria-label",b.label),B(2),G(b.content?4:-1),B(),I("onedevHovercardTrigger",a))},dependencies:[Kx,Dy,DK,LK],encapsulation:2});var g1d=function(){};g1d.\u0275fac=function(a){return new (a||g1d)};g1d.\u0275mod=cf({type:g1d});g1d.\u0275inj=Hc({imports:[RO,MK]});var $8b=function(a,b){return b.label},P7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.activeSession=p(qu);this.appEvents=p(PO);this.issueArchiveService=p(t1);this.domSafe=p(iR);this.editIssueService=p(DS);this.matDialogService=p(QA);this.analytics=p(aQ);this.issueId$=new wf(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=Vr;this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));
this.issueDerivedProperties$=this.issue$.pipe(A(function(b){var c,d,e,f,g,k,l;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:(l=b==null?void 0:(e=b.aggregatedData)==null?void 0:e.voteCount)!=null?l:0,notificationSubscription:Pm(b==null?void 0:(f=b.userData)==null?void 0:f.notificationSubscription),retentionState:b==
null?void 0:(g=b.aggregatedData)==null?void 0:g.retentionState}}));this.menuItems$=h1d(this);this.state$=le([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return Object.assign({},{issueId:b},d,{menuItems:c})}))};Y(P7,Z);P7.\u0275dir=Z.\u0275dir;h=P7.prototype;h.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,ns(0),2);a.action(b);ce(c)})};
h.updateSubscription=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,ie(b.issueId$),2);if(d.nextAddress!=3)return(c=d.yieldResult)?z(d,b.editIssueService.updateSubscription(c,a),3):d.return();b.analytics.trackEvent("editIssue","updateSubscription",a);ce(d)})};h.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};
h.showIndefiniteRetentionDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():z(d,ie(OA(b.matDialogService.open(Kvd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
h.showComponentRetentionDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():z(d,ie(OA(b.matDialogService.open(Gvd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
h.showFlagAsSpamDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?z(d,ie(OA(b.matDialogService.open(Jvd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,rod(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var h1d=function(a){var b={escalateToIncident:function(){var c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.issueId$),2);c=d.yieldResult;if(!c)return d.return();var e=a.domSafe,f=e.openInNewTab;var g=ws(a.activeSession)?"http://irm/?create-fron-bug="+c:"http://irm-dev/?create-fron-bug="+c;f.call(e,g);ce(d)})},requestIssueDeletion:function(){a.domSafe.openInNewTab(Agb(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c;return y(function(d){return d.nextAddress==
1?z(d,ie(a.issueId$),2):(c=d.yieldResult)?z(d,a.showIndefiniteRetentionDialog(c),0):d.return()})},showComponentRetentionDialog:function(){var c;return y(function(d){return d.nextAddress==1?z(d,ie(a.issueId$),2):(c=d.yieldResult)?z(d,a.showComponentRetentionDialog(c),0):d.return()})},submitArchivalState:function(c){var d;return y(function(e){return e.nextAddress==1?z(e,ie(a.issueId$),2):(d=e.yieldResult)?z(e,a.issueArchiveService.submitArchivalState(d,c),0):e.return()})},showFlagAsSpamDialog:function(){var c;
return y(function(d){return d.nextAddress==1?z(d,ie(a.issueId$),2):(c=d.yieldResult)?z(d,a.showFlagAsSpamDialog(c),0):d.return()})}};return le([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(A(function(c){var d=m(c);c=d.next().value;var e=d.next().value;var f;d={permissions:d.next().value,accessLevel:d6a(c),isArchived:(f=c==null?void 0:c.isArchived)!=null?f:!1,isDeleted:b6a(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,
retentionOverride:g6a(c),retentionState:j6a(c),enableIrmIntegrationMenu:a.activeSession.getFlag("enableIrmIntegrationMenu")};return[d1d(b,d),b1d(b,d),c1d(b,d),a1d(b,d),$0d(b,d)].filter(Qm)}))};da.Object.defineProperties(P7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});P7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(P7)))(b||P7)}}();
P7.\u0275cmp=D({type:P7,selectors:[["issue-header-actions"]],viewQuery:function(a,b){a&1&&hg(O7,5);if(a&2){var c;lg(c=mg())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[Gf],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,a9b,14,11),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.state$))?0:-1,c)}},dependencies:[OW,Dy,O7,mU,gB,eB,OJ,YG,WG,aH,oK,iA,x5,w4,v4,N7,M7,Lx],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 Q7=function(){Z.call(this);var a=this;this.issueDetailsBrain=p(UQ);this.issuePagination=p(l2);this.issueInteractionsTracking=p(zS);this.bLocation=p(ZT);this.paths=p(mW);this.refreshMonitor=p(QP);this.butterBar=p(QN);this.internalSearchResults$=new Nj(null);this.searchResults$=this.internalSearchResults$.pipe(pf(),Af(function(b){return b?b.changed$:ee(null)}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=this.searchResults$.pipe(A(function(b){var c;return(c=b==null?void 0:b.totalText)!=
null?c:""}));this.backNavigationLabel$=this.searchResults$.pipe(A(function(b){return(b==null?0:b.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=le([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;return(d=c&&(b==null?void 0:HOd(b,c)))!=null?d:-1}));this.hasPreviousIssue$=le([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=HOd(b,c),b=c==
null||c===-1?!1:c>b.startIndex||b.params.page>1),d=b;return!!d}));this.hasNextIssue$=le([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=HOd(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(){i1d(a)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(b){a.issueId=b;i1d(a)}))};Y(Q7,Z);
Q7.\u0275dir=Z.\u0275dir;
var j1d=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)},e9b=function(a){var b=zr(a.hasNextIssue$),c=zr(a.issueIndex$);b&&c&&k1d(a,c+1)},d9b=function(a){var b=zr(a.hasPreviousIssue$),c=zr(a.issueIndex$);b&&c&&k1d(a,c-1)},i1d=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return z(e,POd(a.issuePagination).catch(b9b),2);b=e.yieldResult;
a.internalSearchResults$.next((c=b)!=null?c:null);if(!b||!a.issueId)return e.return();d=HOd(b,a.issueId);return d===-1?e.jumpTo(0):z(e,ROd(a.issuePagination,d).catch(b9b),0)})},k1d=function(a,b){ROd(a.issuePagination,b).then(function(c){a.bLocation.setUrl(rs(c))},function(){a.butterBar.showWarning("Can't find issue id for index '"+b+"'")})};Q7.\u0275fac=function(a){return new (a||Q7)};Q7.\u0275prov=Fc({token:Q7,factory:Q7.\u0275fac,providedIn:"root"});var l1d=function(){this.currentSearchResults=p(Q7);this.HOTKEYS=Vr};l1d.\u0275fac=function(a){return new (a||l1d)};
l1d.\u0275cmp=D({type:l1d,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,
f9b,8,13),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.currentSearchResults.issueIndex$))?0:-1,c)}},dependencies:[Dy,mU,gB,eB,oK,iA,Lx],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 m1d=function(){var a=this;this.brain=p(UQ);this.accessIndicatorService=p(MW);this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(we(Qm));this.retentionState$=this.issue$.pipe(A(function(b){var c;return(c=b.aggregatedData)==null?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(A(function(b){var c;return((c=b.aggregatedData)==null?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),we(Qm));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return(c=
b.accessLimit)==null?void 0:c.accessLevel}),we(Qm));this.issueAccessLimitLevel$=this.issue$.pipe(A(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.issueId$=this.issue$.pipe(A(function(b){return b.issueId}));this.hasAccessIndicator$=this.issue$.pipe(Af(function(b){return Dxd(a.accessIndicatorService,b.issueId)}),A(function(b){return b.type!=="no_indicator"}));this.state$=le([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.issueId$,this.brain.componentId$,le([this.accessLevel$,
this.hasAccessIndicator$])]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=m(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:PTb(b),isShowingPublicPartner:c!=="INTERNAL",modifiedTime:e,accessLevel:c,issueId:f,componentId:g,issueAccessLimitLevel:d,
hasAccessIndicator:k}}))};m1d.\u0275fac=function(a){return new (a||m1d)};m1d.\u0275cmp=D({type:m1d,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,k9b,1,1),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.state$))?0:-1,c)}},dependencies:[r0,x4,NW,Lx],encapsulation:2});var n1d=function(){this.teamsService=p(KQ);this.onTeamLoaded=new wf(1);this.teamName$=new Nj("");this.isTeamLoaded=!1};n1d.prototype.ngOnChanges=function(a){var b=this;a.teamId&&this.teamId!==null&&(this.teamId?LQ(this.teamsService,this.teamId).pipe(nf(1),A(function(c){return c.name})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}):(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)))};n1d.\u0275fac=function(a){return new (a||n1d)};
n1d.\u0275cmp=D({type:n1d,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},standalone:!1,features:[bx],decls:7,vars:6,consts:[["card","onedevHovercard"],[3,"isReady"],[1,"b-chip","squared","s",3,"onedevHovercardTrigger"],[3,"componentId","teamId"],["svgIcon","supervisor_account_24px",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",1),F(1,l9b,4,4,"div",2),T(2,"async"),L(),K(3,"onedev-hovercard",null,0),Uf(5),
M(6,"b-team-card",3),Vf(),L());if(a&2){I("isReady",b.isTeamLoaded);B();G(U(2,4,b.teamName$)?1:-1);B(5);var c;I("componentId",b.componentId||void 0)("teamId",(c=b.teamId==null?null:b.teamId.toString())!=null?c:"0")}},dependencies:[Dy,rW,DK,LK,BV,Lx],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});var R7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.router=p(YE);this.refreshMonitor=p(QP);this.currentSearchResults=p(Q7);this.trackerHelpers=p(fS);this.eventsForIssueFridge=p(IP);this.cdr=p(ux);this.starToggleDisabled=!1;this.issueId$=new wf(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=Y0d;this.blockedIdsToUrlQuery=function(b){if(!(b.length<2))return{q:"blockingid:"+a.issueId}};this.HOTKEYS=Vr;this.issue$=
this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.issueTitle$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].title}));this.starred$=this.issue$.pipe(A(function(b){var c,d;return(d=b==null?void 0:(c=b.userData)==null?void 0:c.starred)!=null?d:!1}));this.componentId$=this.issue$.pipe(A(function(b){return Pm(b==null?void 0:b.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(A(function(b){return Pm(b==null?void 0:b.ancestors)}));this.hasAncestors$=
this.ancestors$.pipe(A(function(b){return!!(b&&b.size>0)}));this.teamId$=this.issue$.pipe(A(function(b){var c;return Pm(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.teamId)}));this.blockedByids$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(Af(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return b.filter(ko)}),A(function(b){return b.length}));this.blockedByids$.pipe(A(v9b));
this.blockedByids$.pipe(A(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(A(function(b){return a.computeStatusCssClass(b)}));this.prettyStatus$=this.status$.pipe(we(Qm),A(function(b){var c;return(c=Am.get(b))!=null?c:""}));this.statusIsFeatured$=this.status$.pipe(A(function(b){return!!Ncd[b]}));
this.toggleStar=function(){var b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.starred$),2);b=c.yieldResult;a.starToggleDisabled=!0;Bhd(a.issueFullFridge,a.issueId,!b).pipe(rf(),Bf(a.destroyed$)).subscribe(function(){a.starToggleDisabled=!1;a.cdr.markForCheck()});ce(c)})};this.toggleStarDebounced=MB(this.toggleStar,1E3)};Y(R7,Z);R7.\u0275dir=Z.\u0275dir;R7.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};R7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};
da.Object.defineProperties(R7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});R7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(R7)))(b||R7)}}();
R7.\u0275cmp=D({type:R7,selectors:[["issue-header"]],inputs:{issueId:"issueId"},standalone:!1,features:[Gf],decls:39,vars:49,consts:[["withAncestorsBreadcrumbs",""],["card","onedevHovercard"],["cardBody",""],[1,"padded-s","border-bottom"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"row","row-1","flex-kids-x","space-between"],[1,"left","flex-kids-x","flex-wrap","gap-s"],[1,"right"],[1,"row","row-2","flex-kids-x","margin-s-top"],[1,"left","flex-kids-x","align-items-top"],[1,"nowrap"],
["type","button","mat-icon-button","",1,"small","back-btn",3,"onHotkey","click","hotkey","matTooltip"],["svgIcon","arrow-backward",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"small",3,"onHotkey","click","hotkey"],["svgIcon","refresh",1,"icon-s"],[3,"starClicked","onHotkey","starred","disabled","hotkey"],[3,"titleChanged","title","componentId","issueId","hasAclToEdit"],[1,"b-chip","squared","bad","xs","margin-xs-left",3,"onedevHovercardTrigger"],
[4,"onedevHovercardLazyBody"],[1,"float-right",3,"issueId"],[4,"ngTemplateOutlet"],[3,"onTeamLoaded","componentId","teamId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"componentId","compactMode","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[3,"onedevIsHovercardReady",
"hovercardInstance","currentIssueId","issueIds","mode"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3);T(1,"async");T(2,"async");T(3,"async");M(4,"aside",4);T(5,"async");T(6,"async");K(7,"div",5)(8,"div",6);F(9,n9b,1,1,"ng-container");T(10,"async");Lf(11,p9b,4,7);E(12,s9b,4,7,"ng-template",null,0,Mg);L();K(14,"div",7);M(15,"b-pagination-one-issue");L()();K(16,"div",8)(17,"div",9)(18,"div",10)(19,"button",11);T(20,"async");T(21,"async");N("onHotkey",function(){u(c);return v(j1d(b.currentSearchResults))})("click",
function(){u(c);return v(j1d(b.currentSearchResults))});M(22,"mat-icon",12);L();K(23,"button",13);N("onHotkey",function(){u(c);return v(b.refresh())})("click",function(){u(c);return v(b.refresh())});M(24,"mat-icon",14);L();K(25,"b-star-toggle",15);T(26,"async");N("starClicked",function(){u(c);return v(b.toggleStar())})("onHotkey",function(){u(c);return v(b.toggleStarDebounced())});L()();M(27,"issue-chip-indicators");L();K(28,"div",7)(29,"issue-title",16);T(30,"async");T(31,"async");T(32,"async");
N("titleChanged",function(){u(c);b.eventsForIssueFridge.poke(b.issueId);b.cdr.markForCheck();return v()});L();F(33,t9b,3,2,"div",17);T(34,"async");K(35,"onedev-hovercard",null,1);E(37,u9b,4,7,"ng-container",18);L();M(38,"issue-header-actions",19);L()()()}if(a&2){var d;xg(U(1,23,b.statusCssClass$));wg("overline",U(2,25,b.statusIsFeatured$))("color-field",U(3,27,b.statusIsFeatured$));B(4);I("title",Fg("[",U(5,29,b.prettyStatus$),"] ",U(6,31,b.issueTitle$)));B(5);G(U(10,33,b.hasAncestors$)?9:11);B(10);
var e;I("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",(e=U(20,35,b.currentSearchResults.backNavigationLabel$))!=null?e:"");Kf("aria-label",U(21,37,b.currentSearchResults.backNavigationLabel$));B(4);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);B(2);var f;I("starred",(f=U(26,39,b.starred$))!=null?f:!1)("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(4);I("title",U(30,41,b.issueTitle$))("componentId",U(31,43,b.componentId$))("issueId",b.issueId)("hasAclToEdit",U(32,45,b.issuePermissionService.hasAclToEdit$));
B(4);G((d=U(34,47,b.issuesBlockedByCount$))?33:-1,d);B(5);I("issueId",b.issueId)}},dependencies:[L7,Kx,Dy,AY,mU,DK,EK,LK,FK,wW,UZ,K7,gB,eB,oK,iA,FY,n1d,l1d,P7,m1d,Lx],styles:[".row-1[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{align-items:flex-start}.row-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{flex-grow:1}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}b-pagination-one-issue[_ngcontent-%COMP%]{margin-left:8px;height:22px;margin-top:-5px}[_nghost-%COMP%]     .b-chip{margin-right:0;max-width:100%}[_nghost-%COMP%]     issue-title, [_nghost-%COMP%]     issue-title h3{display:inline}[_nghost-%COMP%]     b-app-vote-button .gmat-mdc-button:not([disabled]):not([aria-pressed=true]), [_nghost-%COMP%]     smart-dupe-btn .mat-mdc-outlined-button:not([disabled]), [_nghost-%COMP%]     hotlist-picker-btn .mat-mdc-outlined-button:not([disabled]){background-color:#fff;background-color:var(--background)}"],
changeDetection:0});var S7=function(){Z.apply(this,arguments);this.data=p(PA)};Y(S7,Z);S7.\u0275dir=Z.\u0275dir;S7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(S7)))(b||S7)}}();
S7.\u0275cmp=D({type:S7,selectors:[["b-tailwind-info-dialog"]],standalone:!1,features:[Gf],decls:14,vars:1,consts:[["matDialogTitle",""],["tabindex","0"],[1,"flex-kids-y","gap"],[1,"prompt-container","bg-off-main","carded"],[1,"prompt-header","heading-xs"],[1,"prompt-text","overflow","pre-line"],[1,"step-container","carded","flex-kids-y","gap"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"step-number","muted"],[1,"step-header","heading-xs"],[1,"step-text","pre-line","break-word"],[1,
"step-text","bg-off-main","carded","overflow","codefont"],[1,"bold-text"],[1,"key-text"],[1,"value-text"],[1,"output-text","overflow","pre-line"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"AI suggested fix steps"),L(),K(2,"mat-dialog-content",1)(3,"div",2)(4,"div",3)(5,"h3",4),Q(6,"Prompt:"),L(),K(7,"p",5),Q(8),L()(),Of(9,E9b,5,3,"div",6,Nf),L()(),K(11,"mat-dialog-actions",7)(12,"button",8),Q(13,"Close"),L()());a&2&&(B(8),S(" ",b.data.prompt," "),B(),Pf(b.data.steps))},dependencies:[gB,cB,RA,
TA,VA,UA,Qx],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 T7=function(){var a=this;this.formatter=p(bR);this.llmSuggestedBugFixService=p(DZ);this.analytics=p(aQ);this.domSafe=p(iR);this.dialog=p(QA);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.runResults$=this.llmSuggestedBugFixService.runForCurrentIssue$.pipe(A(function(b){return b==null?void 0:b.results}));this.trajectory$=this.runResults$.pipe(A(function(b){return b==null?void 0:b.trajectory}));this.problemIdentification$=this.runResults$.pipe(Af(function(b){var c,d,
e,f;return y(function(g){return g.nextAddress==1?z(g,o1d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.problemIdentificationSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.solution$=this.runResults$.pipe(Af(function(b){var c,d,e,f;return y(function(g){return g.nextAddress==1?z(g,o1d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.solutionSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.codeChange$=this.runResults$.pipe(Af(function(b){var c,
d,e,f;return y(function(g){return g.nextAddress==1?z(g,o1d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.codeChangeSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.vm$=le({runResults:this.runResults$,problemIdentificationSummaries:this.problemIdentification$,solutionSummaries:this.solution$,codeChangeSummaries:this.codeChange$,trajectory:this.trajectory$})},o1d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){f=a.formatter.format({comment:f,
formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"bug2code"}).pipe(A(function(g){var k,l;return(l=g==null?void 0:(k=g.markdownFormat)==null?void 0:k.content)!=null?l:null}));return ie(f)}),z(e,Promise.all(c),2);d=e.yieldResult;return e.return(d.filter(Qm))})};T7.prototype.handleViewInCritique=function(a){a&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+a),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId))};
T7.prototype.openTailwindInfoDialog=function(a){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);this.dialog.open(S7,Object.assign({},{data:a},this.dialogConfig))};T7.\u0275fac=function(a){return new (a||T7)};
T7.\u0275cmp=D({type:T7,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&&(K(0,"div",0),F(1,P9b,4,4),T(2,"async"),L());if(a&2){var c;B();G((c=U(2,1,b.vm$))?1:-1,c)}},dependencies:[Dy,gB,cB,iA,Lx],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 p1d=["container"],U7=function(){this.appEvents=p(PO);this.analytics=p(aQ);this.contextSensitiveRegistry=p(TQ);this.containerScrolled=!1;this.issueId$=this.contextSensitiveRegistry.getIssueId()};U7.prototype.ngOnInit=function(){var a=this;return y(function(b){a.analytics.trackEvent("tailwind","open");ce(b)})};U7.prototype.closeSidebar=function(){var a=this;return y(function(b){a.appEvents.closeIssueDetailsPageSidebar.next();a.analytics.trackEvent("tailwind","close");ce(b)})};
U7.\u0275fac=function(a){return new (a||U7)};
U7.\u0275cmp=D({type:U7,selectors:[["tailwind-sidebar"]],viewQuery:function(a,b){a&1&&hg(p1d,5);if(a&2){var c;lg(c=mg())&&(b.container=c.first)}},standalone:!1,decls:14,vars:8,consts:[["container",""],[1,"container",3,"scroll"],[1,"flex-kids-x","space-between","tailwind-header","padded-s"],[1,"flex-kids-x","align-items-center"],["svgIcon","spark_24px",1,"ai-icon"],[1,"heading-m","margin-s-left"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip",
"Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[3,"issueId"],[1,"no-issue-selected"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});K(2,"header",2)(3,"div",3);M(4,"mat-icon",4);K(5,"span",5);Q(6,"AI generated fix");L()();K(7,"div",6)(8,"button",7);N("click",function(){u(c);return v(b.closeSidebar())});M(9,"mat-icon",8);L()()();F(10,Q9b,1,1,"b-bug2code-sidebar",9);T(11,
"async");F(12,R9b,2,0,"div",10);T(13,"async");L()}if(a&2){var d;B(2);wg("elevated",b.containerScrolled);B(8);G((d=U(11,4,b.issueId$))?10:-1,d);B(2);G(U(13,6,b.issueId$)?-1:12)}},dependencies:[T7,Dy,gB,eB,iA,Lx],styles:[".container[_ngcontent-%COMP%]{display:block;width:400px;height:100%;overflow-y:scroll}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2}.tailwind-header[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:#9334e6;color:var(--purple-text)}"]});var q1d=function(){var a=this;this.trackerHelpers=p(fS);this.trackerFridge=p(RQ);this.activeSession=p(qu);this.issueTrackerId$=new Nj(void 0);var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.showTrackerBanner$=this.issueTrackerId$.pipe(A(function(c){return!a.currentTrackerId&&!!c}));this.tracker$=this.issueTrackerId$.pipe(Af(function(c){return c?a.trackerFridge.watch(c):ee(void 0)}));this.trackerRedirectUrl$=this.tracker$.pipe(A(function(c){return dt(a.trackerHelpers,
String(a.issueId),c)}))};da.Object.defineProperties(q1d.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(a||void 0)}}});q1d.\u0275fac=function(a){return new (a||q1d)};
q1d.\u0275cmp=D({type:q1d,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,S9b,7,6,"div",0),T(1,"async"),T(2,"async"));if(a&2){var c;G((c=U(1,1,b.showTrackerBanner$)&&U(2,3,b.tracker$))?0:-1,c)}},dependencies:[gB,cB,Lx],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 V7=function(){var a=this;this.trackerHelpers=p(fS);this.trackerFridge=p(RQ);this.activeSession=p(qu);this.imageUrls=p(YV);this.activatedRoute=p(Mj);this.trackerId$=new Nj(void 0);this.tracker$=this.trackerId$.pipe(Af(function(b){return b?a.trackerFridge.watch(b):ee(void 0)}));this.trackerName$=this.tracker$.pipe(A(function(b){return b?b.name:a.activeSession.getAppName()}));this.currentTrackerLogo$=ee(this.getLogoUrl(this.activeSession.getTracker()));this.trackerLogo$=this.tracker$.pipe(A(function(b){return a.getLogoUrl(b)}));
this.trackerRedirectUrl$=le([this.tracker$,this.activatedRoute.fragment]).pipe(A(function(b){var c=m(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?dt(a.trackerHelpers,c,b)+d:hnd(a.trackerHelpers,c)+d}))};
V7.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:""};V7.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId);a.component&&this.component&&this.trackerId$.next(this.component.trackerId)};
da.Object.defineProperties(V7.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 zm((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=Am.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}}});V7.\u0275fac=function(a){return new (a||V7)};
V7.\u0275cmp=D({type:V7,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},standalone:!1,features:[bx],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,
U9b,15,13,"div",0);a&2&&G(b.showResourceContainer?0:-1)},dependencies:[Dy,gB,cB,oK,iA,Lx],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 W7=function(){this.dynamicScrollIntoView=p(LZ);this.paths=p(mW);this.routeParams=p(rS);this.baseIssueReferenceResolver=p(R6);this.destroyed$=new wf(1);var a;this.issueId=(a=this.routeParams.issueId)!=null?a:""};
W7.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(LFd(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Bf(this.destroyed$)).subscribe(),history&&history.pushState(null,"",rs(this.issueId)+"#"+a.elementId))};W7.prototype.ngOnDestroy=function(){this.destroyed$.next()};
W7.\u0275fac=function(a){return new (a||W7)};W7.\u0275prov=Fc({token:W7,factory:W7.\u0275fac});var r1d=function(){Z.call(this);var a=this;this.el=p(Jd);this.router=p(YE);this.router.events.pipe(we(H3a),Bf(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(we(G3a),Bf(this.destroyed$)).subscribe(function(b){V9b(a.el.nativeElement,["scrollY",a.rememberScroll,b.url].join("-"))})};
Y(r1d,Z);r1d.\u0275fac=function(a){return new (a||r1d)};r1d.\u0275dir=df({type:r1d,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},standalone:!1,features:[Gf]});var s1d=function(){};s1d.\u0275fac=function(a){return new (a||s1d)};s1d.\u0275mod=cf({type:s1d});s1d.\u0275inj=Hc({imports:[RO]});var Z9b=function(a){return{monorailRedirectUrl:a}},y$b=function(){return{exact:!0}},X7=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=p(TQ);this.issueFullFridge=p(cQ);this.activeSession=p(qu);this.permissions=p(WQ);this.editIssueService=p(DS);this.counts=p(J1);this.appEvents=p(PO);this.issueInteractionsTracking=p(zS);this.checkBeforeExit=p(uY);this.butterBar=p(QN);this.routerEvents=p($P);this.refreshMonitor=p(QP);this.eventsForIssueFridge=p(IP);this.currentUserBookmarksFridge=
p(lP);this.permissionsFridge=p(yQ);this.issueRelationshipsFridge=p(iQ);this.issueService=p(NP);this.errorHandler=p(kO);this.monorailIssueRedirectApi=p(W0d);this.domSafe=p(iR);this.llmSuggestedBugFixService=p(DZ);this.llmChatService=p(xZ);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(we(Qm));this.issue$=this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.readyForView$=bia(this.issue$.pipe(A(function(b){return{success:!!b}})),this.issueFullFridge.error$.pipe(Ef(this.id$),
we(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),A(function(){return{success:!1}})));this.mainIssueLoadError$=this.issueFullFridge.error$.pipe(Ef(this.id$),we(function(b){var c=m(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),Af(function(b){b=m(b);var c=b.next().value;b=b.next().value;switch(c.status){case 403:return ee({status:c.status});case 404:return X0d(a.monorailIssueRedirectApi,b).pipe(A(function(d){return{status:c.status,monorailRedirectUrl:d==
null?void 0:d.toString()}}));default:return ee({status:c.status})}}),xf({refCount:!0,bufferSize:1}));this.issueTrackerId$=this.issue$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.issueTrackerId$.pipe(A(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.snapshot$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0]}));this.archived$=this.snapshot$.pipe(A(function(b){return b==null?void 0:b.isArchived}));
this.deleted$=this.snapshot$.pipe(A(function(b){return b==null?void 0:b.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(A(function(b){return b?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.isArchived)&&!(b==null?0:b.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(we(Qm),
A(function(b){var c;return(c=Am.get(b))!=null?c:""}));this.isInactive$=this.status$.pipe(A(function(b){return b==="INACTIVE"}));this.title$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].title)!=null?c:""}));this.issuesBeingBlocked$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),of(1E3),Af(function(b){return a.issueFullFridge.watchSet(b)}));this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=
null?c:[]}),of(1E3),Af(function(b){return a.issueFullFridge.watchSet(b)}));this.issueMetadata$=pe(function(){return a.id$}).pipe(we(Qm),Af(function(b){return a.issueService.getMetadata(b)}),xf({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(q(this.activeSession.getFlag("enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]),[{link:"./insights",title:"Insights",count$:this.counts.countInsightsDisplay$}]);this.isIssueDetailsPageSidebarOpen$=ve(this.appEvents.openIssueDetailsPageSidebar.pipe(A(function(){return!0})),this.appEvents.closeIssueDetailsPageSidebar.pipe(A(function(){return!1}))).pipe(zf(!1));
this.issueDetailsOptions$=le({isTailwindEnabledForCurrentIssue:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,isLlmChatEnabled:this.llmChatService.isLlmChatEnabled$,isIssueDetailsPageSidebarOpen:this.isIssueDetailsPageSidebarOpen$}).pipe(A(function(b){return{enableTailwindSidebar:b.isTailwindEnabledForCurrentIssue,enableLlmChat:b.isLlmChatEnabled,isIssueDetailsPageSidebarOpen:b.isIssueDetailsPageSidebarOpen}}),xf({bufferSize:1,refCount:!0}))};Y(X7,Z);X7.\u0275dir=Z.\u0275dir;
X7.prototype.ngAfterViewInit=function(){var a=this;this.issueDetailsOptions$.pipe(Bf(this.destroyed$)).subscribe(function(b){if((b.enableTailwindSidebar||b.enableLlmChat)&&b.isIssueDetailsPageSidebarOpen){var c;(c=a.matSideNav)==null||c.open()}else{var d;(d=a.matSideNav)==null||d.close()}})};
X7.prototype.ngOnInit=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ie(a.id$),2);b=c.yieldResult;a.appEvents.issueViewed.next(b);Pnd(a.issueInteractionsTracking,b);a.subscriptions.add(a.mainIssueLoadError$.subscribe(function(d){return y(function(e){if(e.nextAddress==1)return d.status===403?e.return():d.monorailRedirectUrl?z(e,ns(1E3),3):e.jumpTo(2);if(e.nextAddress!=2)return Skd(a.domSafe,d.monorailRedirectUrl),e.return();a.errorHandler.errorHandler(null,d);ce(e)})}));
a.subscriptions.add(vY(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(we(Qm),nf(1)).subscribe(function(d){dQ(a.issueFullFridge,[d.issueId],{userActivityType:"VIEW"})}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke(eq(b));
a.issueRelationshipsFridge.poke(b);a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);a.currentUserBookmarksFridge.pokeAll();dQ(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;Qnd(d,f,"idp-time-on-page",e.variations);d.onUserActiveStatusUpdate(b,!1);d.issueToTrackingState.delete(b);d.stopActivityTracking$.next();a.editIssueService.clear(b)});
ce(c)})};X7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(X7)))(b||X7)}}();
X7.\u0275cmp=D({type:X7,selectors:[["issue-details-wrapper"]],viewQuery:function(a,b){a&1&&hg(sM,5);if(a&2){var c;lg(c=mg())&&(b.matSideNav=c.first)}},standalone:!1,features:[Gg([YP,FS,{provide:HR,useClass:W7}]),Gf],decls:17,vars:7,consts:[["mainContent",""],["sidebarContent",""],["showIssueDetails",""],["showMonorailRedirect",""],["showNoAccessScreen",""],["tabPanel",""],["rla","routerLinkActive"],[1,"a11y-only"],["hasBackdrop","false","autosize","true",1,"overflow-on-print-media"],[1,"overflow-on-print-media"],
[3,"ngTemplateOutlet"],["mode","side","position","end",3,"autoFocus","disableClose"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-y","pos-fill",3,"issue-editor-false"],[1,"bv2-limited-issue-view"],[1,"flex-kids-y","pos-fill"],[1,"border-bottom",3,"messageType","format","iconOverride"],["messageType","caution",1,"border-bottom",3,"format","iconOverride"],["messageType","error","format","app",1,"border-bottom"],["messageType","info",1,"border-bottom",3,"format"],[1,"issue-header"],
[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],["role","main","rememberScroll","center","cdkScrollable","",1,"flex-1","pos-rel","bg-off-main","overflow","overflow-on-print-media"],[3,"issueId"],["href","http://go/buganizer-issue-archive","target","_blank"],"type;button;mat-button;;aria-label;Unarchive issue".split(";"),["type","button","mat-button","","aria-label","Unarchive issue",3,"click"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],
["href","http://go/issue-retention","target","_blank"],["type","button","mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled"],["type","button","mat-button","","aria-label","Undelete issue",3,"click","matTooltip","disabled"],["href","http://go/buganizer/concepts/issues#major-updates","target","_blank"],["href","https://developers.google.com/issue-tracker/concepts/issues#major_edits","target","_blank"],["href","http://go/b-inactive-issues","target","_blank"],[3,"issueId","trackerId"],
["mat-tab-nav-bar","","gmat-tabs","",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions"],[2,"margin-left","4px"],[3,"issue"],["target","_self",3,"href"],["data-test-id","internal-access-denied",3,"issueMetadata"],["data-test-id","public-access-denied"]],template:function(a,b){a&1&&(F(0,W9b,2,1,"h2",7),T(1,"async"),K(2,"mat-sidenav-container",8)(3,"mat-sidenav-content",9),Wf(4,10),L(),K(5,"mat-sidenav",11),Wf(6,10),L()(),E(7,d$b,2,3,"ng-template",
null,0,Mg)(9,i$b,2,3,"ng-template",null,1,Mg)(11,E$b,3,3,"ng-template",null,2,Mg)(13,F$b,4,2,"ng-template",null,3,Mg)(15,I$b,3,1,"ng-template",null,4,Mg));if(a&2){var c;a=qg(8);var d=qg(10);G((c=U(1,5,b.id$))?0:-1,c);B(4);I("ngTemplateOutlet",a);B();I("autoFocus",!0)("disableClose",!0);B();I("ngTemplateOutlet",d)}},dependencies:[SWd,Kx,KE,$E,aF,AU,BU,qz,U7,R7,h5,RLd,gB,cB,sM,tM,rM,xL,tL,x$c,uL,oK,iA,r1d,q1d,V7,Lx],styles:["[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px;border-bottom:1px solid var(--divider)}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]{height:100%;--mat-sidenav-content-background-color: transparent;--mat-sidenav-container-divider-color: var(--divider)}[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});var Y7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(cQ);this.butterBar=p(QN);this.duplicateIssueIds$=new Nj([]);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(Y7,Z);Y7.\u0275dir=Z.\u0275dir;
Y7.prototype.ngOnInit=function(){};Y7.prototype.removeDuplicate=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return Yd(d,2),z(d,b.issueFullFridge.removeDuplicate(b.issueId,a),4);if(d.nextAddress!=2)return bt(d,0);c=be(d);b.butterBar.showWarning("Could not remove duplicate "+a+". "+c);ce(d)})};da.Object.defineProperties(Y7.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((a!=null?a:[]).map(function(b){return String(b)}))}}});
Y7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(Y7)))(b||Y7)}}();Y7.\u0275cmp=D({type:Y7,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},standalone:!1,features:[Gf],decls:2,vars:3,consts:[[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(F(0,J$b,1,4,"b-issues-table",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.duplicateIssueIds$))?0:-1,c)}},dependencies:[$Z,Lx],encapsulation:2,changeDetection:0});var Z7=function(){Z.apply(this,arguments);var a=this;this.paramsService=p(SQ);this.issueFullFridge=p(cQ);this.issuePicker=p(XX);this.snackBar=p(nB);this.counts=p(J1);this.imageUrls=p(YV);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.paramsService.issueId$;this.dupeUrl$=this.id$.pipe(A(function(b){return{path:"/issues",params:{q:"canonicalid:"+b}}}));this.issue$=this.id$.pipe(we(Qm),Af(function(b){return a.issueFullFridge.watch(b)}));this.duplicateIds$=this.issue$.pipe(A(function(b){var c;
return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}));this.duplicatesCount$=this.duplicateIds$.pipe(Af(function(b){return b.length===0?ee(0):a.counts.duplicatesDualCount$.pipe(A(function(c){return c.total.count}))}));this.showTable$=this.duplicatesCount$.pipe(A(function(b){return b>0}),zf(!0));this.didChooseDupes=function(b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,ie(a.id$),2);c=e.yieldResult;if(c==null)return e.return();d=b[0];return z(e,Fhd(a.issueFullFridge,
c,d).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Sp(b)||"Error with network request","close",{panelClass:"error"})}};Y(Z7,Z);Z7.\u0275dir=Z.\u0275dir;Z7.prototype.isThinking=function(){return this.issueFullFridge.isThinking()};var K$b=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};Z7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(Z7)))(b||Z7)}}();
Z7.\u0275cmp=D({type:Z7,selectors:[["b-issue-duplicates"]],standalone:!1,features:[Gf],decls:4,vars:4,consts:[[1,"carded","bg-main"],[1,"pos-tr","padded"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/duplicate-issue",1,"nowrap"],["type","button","mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"small",3,"click"],[1,"section-heading",
"muted"],["type","button","mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"small","add",3,"click"],[3,"issueId","duplicateIds"],[1,"margin-s-top","flex-kids-x","gap-s"],["mat-button","","color","primary",1,"small",3,"routerLink","queryParams"]],template:function(a,b){a&1&&(K(0,"section",0),F(1,P$b,3,3),T(2,"async"),L(),F(3,Q$b,2,0,"aside",1));if(a&2){var c;B();G((c=U(2,2,b.duplicateIds$))?1:-1,c);B(2);G(b.isThinking()?3:-1)}},dependencies:[$E,gB,cB,oK,
iA,$T,Y7,Lx],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 t1d=function(){};t1d.\u0275fac=function(a){return new (a||t1d)};t1d.\u0275mod=cf({type:t1d});t1d.\u0275inj=Hc({imports:[RO,By,nI,xE,yE,iB,yL,pK,MK,AX,uU,bU,Z0]});var $7=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=p(cQ);this.issueTypeToDisplay=zm;this.STATUS_JS_FULL_TEXT=Am;this.STATUS_JS_TERSE=Lcd;this.DUPLICATE="DUPLICATE";this.id$=new wf(1);this.issue$=this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.priority$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].priority)||void 0}));this.type$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].type)!=null?c:void 0}));this.canonicalId$=
this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusForChip$=this.status$.pipe(A(function(b){return Ncd[b]?b:void 0}));this.statusCssClass$=this.status$.pipe(A(function(b){return a.computeStatusCssClass(b)}))};Y($7,Z);$7.\u0275dir=Z.\u0275dir;$7.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};
da.Object.defineProperties($7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});$7.\u0275fac=function(){var a;return function(b){return(a||(a=Hd($7)))(b||$7)}}();
$7.\u0275cmp=D({type:$7,selectors:[["issue-description-area"]],inputs:{id:"id"},standalone:!1,features:[Gf],decls:13,vars:12,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],[1,"flex-kids-x","gap-s"],[1,"chip-container","shrink-0","border-right","padded-s-right"],[3,"class"],[3,"issuePriority"],[3,"issueId"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"title"],[1,"type-s","nowrap"],[3,"routerLink","onedevHovercardTrigger"],[3,"onedevIsHovercardReady",
"issueId"]],template:function(a,b){a&1&&(K(0,"div",2)(1,"div",3),F(2,S$b,6,10,"div"),T(3,"async"),F(4,T$b,2,4,"span",4),T(5,"async"),M(6,"b-issue-priority-display",5),T(7,"async"),L(),F(8,U$b,1,1,"b-issue-hotlists",6),T(9,"async"),L(),K(10,"onedev-hovercard",null,0),E(12,V$b,3,4,"b-issue-card",7),L());if(a&2){var c,d,e;B(2);G((c=U(3,4,b.statusForChip$))?2:-1,c);B(2);G((d=U(5,6,b.type$))?4:-1,d);B(2);I("issuePriority",U(7,8,b.priority$));B(2);G((e=U(9,10,b.id$))?8:-1,e)}},dependencies:[$E,DK,EK,LK,
FK,PW,TZ,yW,Lx],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 u1d=function(){this.message=p(jB);this.snackbarRef=p(kB);this.DEFAULT_MESSAGE="New data is available. Click to refresh."};u1d.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};u1d.\u0275fac=function(a){return new (a||u1d)};
u1d.\u0275cmp=D({type:u1d,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&&(K(0,"div",0),N("click",
function(){return b.snackbarRef.dismissWithAction()}),M(1,"mat-icon",1),K(2,"p",2),Q(3),L()(),K(4,"button",3),N("click",function(c){return b.onDismiss(c)}),M(5,"mat-icon",4),L());a&2&&(B(3),S(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[Dy,gB,eB],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 v1d=function(){this.snackbar=p(nB)},w1d=function(a){var b=Vr.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(u1d,c);return a.currentSnackBar};v1d.\u0275fac=function(a){return new (a||v1d)};v1d.\u0275prov=Fc({token:v1d,factory:v1d.\u0275fac,providedIn:"root"});var a8=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=p(IP);this.issueFullFridge=p(cQ);this.preferences=p(dR);this.commentHistoryDialogService=p(TY);this.issueDetailsBrain=p(UQ);this.errorHandler=p(kO);this.refreshDataNotification=p(v1d);this.eventsForIssueWatcher=p(nY);this.analytics=p(aQ);this.appEvents=p(PO);this.id$=new wf(1);this.events$=this.id$.pipe(Af(function(b){return a.eventsForIssue.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.issue$=
this.id$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(A(Boolean),zf(!0))};Y(a8,Z);a8.\u0275dir=Z.\u0275dir;
a8.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=zr(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(QBd(this.eventsForIssueWatcher,zr(this.id$)).subscribe(function(){x1d(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()}));this.destroyed$.pipe(nf(1)).subscribe(function(){var b;(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()})};
var x1d=function(a){a.analytics.trackEvent("pushUpdate","display","comment");w1d(a.refreshDataNotification).afterDismissed().subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent("pushUpdate","fetchResource","comment"),a.issueFullFridge.poke(zr(a.id$)),a.eventsForIssue.poke(zr(a.id$)),a.appEvents.scrollToCommentBox.next()):a.analytics.trackEvent("pushUpdate","dismiss","comment")})};da.Object.defineProperties(a8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
a8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(a8)))(b||a8)}}();
a8.\u0275cmp=D({type:a8,selectors:[["issue-event-list"]],inputs:{id:"id"},standalone:!1,features:[Gf],decls:6,vars:15,consts:[[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(M(0,"b-event-stream",0),T(1,"async"),T(2,"async"),T(3,"async"),T(4,"async"),T(5,"async"));a&2&&(I("issueId",U(1,5,b.id$))("events",U(2,7,b.events$))("issueAccessLevel",U(3,9,b.accessLevel$))("showFullHistory",U(4,11,b.preferences.showFullHistory$)),Kf("data-will-inline-screenshots",U(5,
13,b.enableInlineScreenshots$)?!0:null))},dependencies:[MZ,Lx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var X$b=function(a){return{data:a}},y1d=function(){this.dialogRef=p(NA);this.data=p(PA);this.userInstructions=""};y1d.\u0275fac=function(a){return new (a||y1d)};
y1d.\u0275cmp=D({type:y1d,selectors:[["b-retry-run-dialog"]],standalone:!1,decls:24,vars:5,consts:[["tailwindInfo",""],[1,"dialog"],["mat-dialog-title",""],["tabindex","0"],[1,"flex-kids-y","gap"],["appearance","outline",1,"retry-instructions","w-100"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMaxRows","10","placeholder","e.g. a different root cause, a specific code path, or a similar fixed bug.",3,"ngModelChange","ngModel"],[1,"mat-elevation-z0","bg-secondary","bordered"],["align","end"],
["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium",3,"mat-dialog-close","disabled"],["matExpansionPanelContent",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-y","gap","tailwind-info"],[1,"prompt-container","bg-off-main","carded"],[1,"prompt-header","heading-xs"],[1,"prompt-text","overflow","pre-line"],[1,"step-container","carded","flex-kids-y","gap"],[1,"step-number","muted"],[1,"step-header",
"heading-xs"],[1,"step-text","pre-line","break-word"],[1,"step-text","bg-off-main","carded","overflow","codefont"],[1,"bold-text"],[1,"key-text"],[1,"value-text"],[1,"output-text","overflow","pre-line"]],template:function(a,b){if(a&1){var c=t();K(0,"article",1)(1,"h2",2);Q(2," Retry AI fix ");L();K(3,"mat-dialog-content",3)(4,"div",4)(5,"p");Q(6," Please review the details and summary of the last run. If available, use the ");K(7,"b");Q(8,"View Steps Taken");L();Q(9," button for more context before providing additional instructions. ");
L();K(10,"p");Q(11," For example, your instructions could address a different root cause, a specific code path, or a past, similar bug, with linked CLs. ");L();K(12,"mat-form-field",5)(13,"mat-label");Q(14,"Provide instructions (Optional)");L();K(15,"textarea",6);Cg("ngModelChange",function(d){u(c);Bg(b.userInstructions,d)||(b.userInstructions=d);return v(d)});L()();F(16,Y$b,5,4,"mat-expansion-panel",7);L()();K(17,"mat-dialog-actions",8)(18,"button",9);Q(19," Cancel ");L();K(20,"button",10);Q(21,
" Retry ");L()()();E(22,hac,8,1,"ng-template",11,0,Mg)}a&2&&(B(15),Ag("ngModel",b.userInstructions),B(),G(b.data.trajectory?16:-1),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",b.userInstructions)("disabled",!b.userInstructions))},dependencies:[Kx,yj,$D,gE,gB,cB,RA,TA,VA,UA,BD,MD,ED,PD,zE,SD,DL,EL,FL,CL,Qx],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 b8=function(){},z1d=function(a){var b=uo("buganizer-homepage-tailwind-runs")();b||(b=[]);b.includes(a)||b.push(a);vo("buganizer-homepage-tailwind-runs")(b)},A1d=function(){var a=uo("buganizer-homepage-tailwind-runs")()||[];return Array.isArray(a)?[].concat(q(a)):[]},Bac=function(a){var b=A1d();b.includes(a)&&(b.splice(b.indexOf(a),1),vo("buganizer-homepage-tailwind-runs")(b))};b8.\u0275fac=function(a){return new (a||b8)};b8.\u0275prov=Fc({token:b8,factory:b8.\u0275fac,providedIn:"root"});var iu=function(a){return{status:a}},c8=function(){this.destroyRef=p(Ee);this.errorHandler=p(kO);this.llmSuggestedBugFixService=p(DZ);this.refreshMonitor=p(QP);this.activeSession=p(qu);this.analytics=p(aQ);this.appEvents=p(PO);this.domSafe=p(iR);p(b8);this.tasksService=p(vQ);this.dialog=p(QA);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.issueId="";this.status$=new Nj(7);this.ignored$=new Nj(!1);this.showLlmSuggestion$=le({isEnabled:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,
ignored:this.ignored$}).pipe(A(function(a){var b=a.isEnabled;a=a.ignored;return b&&!a}));this.statusMessage$=this.status$.pipe(A(function(a){return pFd[a].message}));this.isInternalSession=this.activeSession.isInternalSession();this.LlmSuggestionStatus=oFd;this.enableTailwindMissionControl=this.activeSession.getFlag("enableTailwindMissionControl")};
c8.prototype.ngOnInit=function(){var a=this;this.refreshMonitor.getObservable().pipe(zf(null)).pipe(Af(function(){return sFd(a.llmSuggestedBugFixService,a.issueId)}),Uj(this.destroyRef)).subscribe(function(b){a.status$.next(b)});this.showLlmSuggestion$.pipe(we(Boolean),nf(1),Uj(this.destroyRef)).subscribe(function(){a.analytics.trackEvent("tailwind","view",a.issueId)})};
var xac=function(a){a.analytics.trackEvent("tailwind","generate",a.issueId);a.status$.next(1);a.enableTailwindMissionControl&&(z1d(a.issueId),B1d(a,a.issueId));a.llmSuggestedBugFixService.createRun(a.issueId).pipe(Uj(a.destroyRef),Af(function(b){return b.runId?rFd(a.llmSuggestedBugFixService,b.runId):(a.status$.next(4),ee(4))})).subscribe(function(b){a.status$.next(b)})};
c8.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),Bac(this.issueId))};c8.prototype.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};
c8.prototype.ignore=function(){var a=this.llmSuggestedBugFixService,b=this.issueId;isNaN(Number(b))||(lFd(a.ignoredIssuesCache,b),pdd("llm_suggested_bug_fix_ignored_issues")(mFd(a.ignoredIssuesCache)));this.ignored$.next(!0)};
c8.prototype.openTailwindInfoDialog=function(){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);var a,b;this.dialog.open(S7,Object.assign({},{data:(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory},this.dialogConfig));Bac(this.issueId)};
var Fac=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},Hac=function(a){var b,c=(b=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:b.metadata,d,e;OA(a.dialog.open(y1d,Object.assign({},{data:Fac(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 g;a.llmSuggestedBugFixService.retryRun(a.issueId,f,(g=c==null?void 0:c.runId)!=null?g:"").pipe(Uj(a.destroyRef),Af(function(k){return k.runId?rFd(a.llmSuggestedBugFixService,k.runId):(a.status$.next(4),ee(4))})).subscribe(function(k){a.status$.next(k)})}})},B1d=function(a,b){b="b/"+b;var c=new bo;c.setSeconds(c.getSeconds()+6);gjd(a.tasksService,[b],{seconds:c.getTime()/1E3,nanos:0}).pipe(Uj(a.destroyRef),of(3E3)).subscribe(function(){},function(d){return void a.errorHandler.errorHandler(null,
d)})};c8.prototype.ignore=c8.prototype.ignore;c8.\u0275fac=function(a){return new (a||c8)};
c8.\u0275cmp=D({type:c8,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&&($f(0),T(1,"async"),F(2,wac,21,6,"div",6),T(3,"async"),E(4,yac,4,0,"ng-template",null,0,Mg)(6,zac,0,0,"ng-template",null,1,Mg)(8,Cac,5,4,"ng-template",null,2,Mg)(10,Gac,2,5,"ng-template",null,3,Mg)(12,Jac,1,1,"ng-template",null,4,Mg));a&2&&(a=ag(U(1,1,b.status$)),B(2),G(b.isInternalSession&&
U(3,4,b.showLlmSuggestion$)&&a!==b.LlmSuggestionStatus.HIDDEN?2:-1))},dependencies:[Kx,Dy,gB,cB,iA,RV,eL,Lx],styles:['.bg-main[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.ai-highlighted[_ngcontent-%COMP%]{background:var(--purple-bg);position:relative}.ai-highlighted[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;border-radius:4px 0 0 4px;background:-webkit-linear-gradient(315deg,var(--insights-purple) 0,var(--insights-pink) 100%);background:linear-gradient(135deg,var(--insights-purple) 0,var(--insights-pink) 100%)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:var(--purple-text)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon-wrapper[_ngcontent-%COMP%]{margin-right:.5em}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]{position:absolute;top:-.1em;left:-.1em;width:2.1em;height:2.1em;border-radius:50%;-webkit-animation:_ngcontent-%COMP%_rotate 1s linear infinite;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]:before{content:"";-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;inset:0;border-radius:50%;border:2px solid var(--purple-text);-webkit-animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate;animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate}@-webkit-keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}@keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}.ai-highlighted[_ngcontent-%COMP%]   button[mat-stroked-button][_ngcontent-%COMP%]{background:var(--background)}.generate[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.generate[_ngcontent-%COMP%]:hover{color:var(--blue-800);background:-webkit-linear-gradient(315deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;background:linear-gradient(135deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;-webkit-animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}[_nghost-%COMP%]     .llm-dialog{padding:10px}[_nghost-%COMP%]     .feedback-button{padding-left:8px;text-align:center;text-decoration:none}[_nghost-%COMP%]     .feedback-icon{color:var(--mat-icon-color)}  .tailwind-info-dialog p{font-weight:500}  .tailwind-info-dialog .bold-text{font-weight:700}  .tailwind-info-dialog .step-number{font-weight:700;font-size:.8em;text-transform:uppercase}  .tailwind-info-dialog .value-text{color:var(--green-text)}  .tailwind-info-dialog .key-text{color:var(--purple-text)}'],
changeDetection:0});var d8=function(){this.issueReferenceResolver=p(HR);this.userToLossyEmail=xm};d8.prototype.ngOnInit=function(){};d8.prototype.getCommentNumberLink=function(a){return B5a(this.issueId,{comment:a})};d8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};d8.\u0275fac=function(a){return new (a||d8)};
d8.\u0275cmp=D({type:d8,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&&Of(0,Oac,5,3,"span",1,Nf);a&2&&Pf(b.comments)},dependencies:[QO,DK,LK,eT,lX],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 e8=function(){Z.apply(this,arguments);this.ngZone=p(Rg)};Y(e8,Z);e8.\u0275dir=Z.\u0275dir;var C1d=function(a,b){return(new Vd(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(Bf(a.destroyed$))};e8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(e8)))(b||e8)}}();e8.\u0275prov=Fc({token:e8,factory:e8.\u0275fac,providedIn:"root"});var D1d=["imagesSummaryWidget"],f8=function(){var a=this;this.resizeService=p(e8);this.router=p(YE);this.route=p(Mj);this.imageLinks$=new wf(1);this.paginate=!1;this.container$=new wf(1);this.containerResize$=this.container$.pipe(A(function(b){return b.nativeElement}),Af(function(b){return C1d(a.resizeService,b)}));this.issueId$=new wf(1);this.lastRenderedImageIndex$=new Nj(0);this.allImages$=this.imageLinks$.pipe(A(function(b){b=b.map(function(c){if(c.comment){var d=X8a(c.href);if(d)return{src:d,
comment:c.comment}}}).filter(Qm);return Wac(b)}));this.maxImagesInOneRow$=this.containerResize$.pipe(A(function(b){return Math.floor((b.width-16)/216)}),xf({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(A(function(b){return b*(a.paginate?4:2)}));this.imagesToRender$=le([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.paginate?d.slice(0,c||
b):d.slice(0,b)}),A(function(b){return b.map(function(c){var d;return Object.assign({},c,{srcCorp:(d=X8a(c.src,!0))!=null?d:""})})}),pf())},Qac=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ie(a.maxImagesInOneRow$),2);if(c=g.yieldResult)d=Math.floor(b/c),e=d+4,f=e*c,a.lastRenderedImageIndex$.next(f);ce(g)})};f8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};f8.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};
f8.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};da.Object.defineProperties(f8.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return zr(this.imageLinks$)}}});f8.\u0275fac=function(a){return new (a||f8)};
f8.\u0275cmp=D({type:f8,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&hg(D1d,7);if(a&2){var c;lg(c=mg())&&(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&&(K(0,"div",null,0),F(2,Vac,2,3),T(3,"async"),L());if(a&2){var c;B(2);G((c=U(3,1,b.allImages$))?2:-1,c)}},dependencies:function(){return[d8,gB,cB,hT,Lx,E1d]},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 E1d=function(){};E1d.prototype.transform=function(a){return a.split(".png")[0]};E1d.\u0275fac=function(a){return new (a||E1d)};E1d.\u0275pipe=ef({name:"removePngExtension",type:E1d,pure:!0,standalone:!1});var F1d={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"},$bc=[].concat(q(Object.values(F1d)));var G1d=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=uVa(function(d){c.analytics.trackEvent("editIssue","click",d)});this.recordImpressionOnce=uVa(function(){c.analytics.trackEvent("editIssue","view","SW")})},vbc=function(a,b,c){a.recordInteractionOnce(c);ju(a.issueInteractionsTracking,b,c+"-content-interacted");ju(a.issueInteractionsTracking,b,"SW-content-interacted")};var g8=function(){this.activeSession=p(qu);this.trackerHelpers=p(fS);this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.issueId=this.originalHref=this.redirectedHref=""};
g8.prototype.ngOnChanges=function(){var a;a:{var b=(a=this.sourceComment)==null?void 0:a.formattedComment;if(b){if(b.markdownFormat){a=cbc(b.markdownFormat.content);break a}if(b.literalFormat){a=cbc(b.literalFormat.content);break a}if(b.plainFormat){a=document.createElement("div");b=m(b.plainFormat.plainSection);for(var c=b.next();!c.done;c=b.next())(c=c.value.content)&&a.appendChild(cbc(c));break a}}a=void 0}if(a=a&&H1d(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(I1d.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(I1d.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="",Or(this.relatedLink)?c=b=this.relatedLink.href:Y8a(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?DRa(dt(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 H1d=function(a,b){if(a.relatedLink){if(Y8a(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(q(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(Or(a.relatedLink)){var d=a.relatedLink;return[].concat(q(b.querySelectorAll("a"))).find(function(e){a:{var f=d.href;if(e.innerText===f)e=!0;else{try{f=(new URL(f)).href}catch(g){e=!1;break a}e=e.href===f||e.href.replace("https://cl.corp.google.com/","https://critique.corp.google.com/")===f?!0:!1}}return e})}}};
g8.prototype.getIssueUrl=function(a){return dt(this.trackerHelpers,a)};g8.\u0275fac=function(a){return new (a||g8)};
g8.\u0275cmp=D({type:g8,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},standalone:!1,features:[bx],decls:7,vars:3,consts:[[1,"wrapper"],["aria-hidden","true",1,"muted","margin-xs-right","left-justify-parent"],[3,"href","originalHref"],["aria-hidden","true",1,"muted","margin-xs-left","right"],[1,"left-justify-child"],[3,"href","issueId"],["target","_blank",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(K(0,"div",0),Q(1," \u201c "),
F(2,Xac,3,1,"span",1),F(3,Yac,2,3,"b-external-hyperlink-widget",2)(4,abc,2,1),F(5,bbc,2,1,"span",3),Q(6," \u201d\n"),L());a&2&&(B(2),G(b.leftText?2:-1),B(),G(b.isExternalLink?3:4),B(2),G(b.rightText?5:-1))},dependencies:[GR,IR],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 I1d=new Set(["BR"]);var h8=function(){var a=this;this.activeSession=p(qu);this.issueFullFridge=p(cQ);this.router=p(YE);this.route=p(Mj);this.issueReferenceResolver=p(HR);this.issueReferences$=new wf(1);this.currentIssueId$=new wf(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new Nj(10);this.issuesMap$=this.issueReferences$.pipe(we(Qm),Af(function(b){var c=vq(b.map(function(d){return d.issueId}));return a.issueFullFridge.watchSet(c).pipe(A(function(d){return new Map(d.map(function(e){return[e==null?void 0:
e.issueId.toString(),e]}))}),A(function(d){return new Map(c.map(function(e){return[e,d.get(e)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(we(Qm),A(function(b){var c=new Map;b=m(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$=le([this.issueReferencesMap$,this.issuesMap$]).pipe(A(function(b){b=m(b);var c=b.next().value;b=b.next().value;return[].concat(q(b)).filter(function(d){return m(d).next().value!==
a.issueId}).map(function(d){var e=m(d);d=e.next().value;e=e.next().value;var f=c.get(d),g=f==null?void 0:f.map(function(k){var l,r,w=(l=k.comment)==null?void 0:(r=l.userPerformingActionUser)==null?void 0:r.emailAddress;return{commentNumber:k.sourceCommentNumber,author:(w==null?void 0:w.split("@")[0])+"@",issueEvent:k.comment}});return{hasViewAccess:!!e,issueId:d,shortIssueUrl:DRa(a.activeSession.getAppBaseUrl(),d),sourceComments:g,title:e==null?void 0:e.snapshot[0].title,priority:e?e.snapshot[0].priority:
null,relatedLinks:f}})}));this.mentionedIssuesToRender$=le([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return a.paginate?b.slice(0,c):b.slice(0,5)}))};h8.prototype.getCommentNumberLink=function(a){return B5a(this.issueId,{comment:a})};h8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
h8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};da.Object.defineProperties(h8.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}}});h8.\u0275fac=function(a){return new (a||h8)};
h8.\u0275cmp=D({type:h8,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,jbc,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedIssuesToRender$))?0:-1,c)}},dependencies:function(){return[yW,gB,cB,oK,iA,g8,d8,Lx,J1d]},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 J1d=function(){};J1d.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(Qm)};J1d.\u0275fac=function(a){return new (a||J1d)};J1d.\u0275pipe=ef({name:"toComments",type:J1d,pure:!0,standalone:!1});var obc=function(a,b){return b[0].href},i8=function(){var a=this;this.router=p(YE);this.route=p(Mj);this.allLinks$=new wf(1);this.issueId$=new wf(1);this.lastRenderedRelatedLinkIndex$=new Nj(10);this.paginate=!1;this.allLinkGroups$=this.allLinks$.pipe(A(function(b){return C_a(b,function(c){return c.href})}));this.linkGroupsToRender$=le([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return a.paginate?sbc(b,c):b.length===6?sbc(b,
6):sbc(b,5)}))};i8.prototype.ngOnInit=function(){};i8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};da.Object.defineProperties(i8.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("yg");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return zr(this.issueId$)}}});i8.\u0275fac=function(a){return new (a||i8)};
i8.\u0275cmp=D({type:i8,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,qbc,2,3),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.allLinkGroups$))?0:-1,c)}},dependencies:function(){return[d8,gB,cB,g8,Lx,K1d]},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 rbc=gn(function(a){return Math.min.apply(Math,q(a.map(function(b){return b.sourceCommentNumber})))},hn),K1d=function(){};K1d.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(Qm)};K1d.\u0275fac=function(a){return new (a||K1d)};K1d.\u0275pipe=ef({name:"toComments",type:K1d,pure:!0,standalone:!1});var wbc=function(){return[]},j8=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(qu);this.userPreferencesManager=p(dR);this.issueInteractionsTracking=p(zS);this.issueFullFridge=p(cQ);this.analytics=p(aQ);this.eventsForIssueFridge=p(IP);this.similarIssuesApi=p(pW);this.issueEnrichmentFridge=p(MP);this.issuePermissionService=p(WQ);this.issueRecommendationFridge=p(eQ);this.recommendationTriggerService=p(ZQ);this.TabKeys=F1d;this.issueId$=new wf(1);this.alwaysStartCollapsed=!1;this.issue$=
this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}),we(Qm),xf({bufferSize:1,refCount:!0}));this.commentNumberToEventMap$=this.issueId$.pipe(Af(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}),A(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}),xf({bufferSize:1,refCount:!0}));this.relatedLinks$=le([this.issue$,this.commentNumberToEventMap$]).pipe(A(function(b){var c=
m(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)})}))||[]}),xf({bufferSize:1,refCount:!0}));this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(U8a)}),xf({bufferSize:1,refCount:!0}));this.distinctImageLinksCount$=this.imageLinks$.pipe(A(function(b){return uq(b,function(c){return X8a(c.href)})}),A(function(b){return b.length}),xf({bufferSize:1,refCount:!0}));this.shouldShowImages$=
this.imageLinks$.pipe(A(function(b){return a.activeSession.isInternalSession()&&L1d(a,b)}),xf({bufferSize:1,refCount:!0}));this.issues$=this.relatedLinks$.pipe(A(function(b){return b.filter(Y8a)}));this.distinctIssuesCount$=this.issues$.pipe(A(function(b){return b.filter(function(c){return c.issueId!==a.issueId})}),A(function(b){return uq(b,function(c){return c.issueId})}),A(function(b){return b.length}));this.shouldShowIssues$=this.distinctIssuesCount$.pipe(A(Boolean));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(Z8a)}),
xf({bufferSize:1,refCount:!0}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(A(function(b){return uq(b,function(c){return c.href})}),A(function(b){return b.length}),xf({bufferSize:1,refCount:!0}));this.shouldShowLinks$=this.otherLinks$.pipe(A(function(b){return a.shouldShowLinks(b)}),xf({bufferSize:1,refCount:!0}));this.similarIssueIds$=this.issueId$.pipe(we(Qm),Af(function(b){return Xvd(a.similarIssuesApi,{issueId:Number(b),embeddingType:2})}),A(function(b){return b.similarIssues}),A(function(b){return b.map(function(c){return c.issueId})}),
xf({bufferSize:1,refCount:!0}));this.similarIssuesEnrichments$=(this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession())?this.issueId$.pipe(Af(function(b){return a.issueEnrichmentFridge.watch(b)}),A(function(b){var c;return((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){var e,f;return((f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]).length>0})}),xf({bufferSize:1,refCount:!0})):ee([]);this.shouldShowSimilarIssues$=le([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){var c=
m(b);b=c.next().value;c=c.next().value;return b.length>0||c.length>0}));this.dedupeCanonicalRecommendation$=this.issueId$.pipe(Af(function(b){return kkd(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(Af(function(b){return lkd(a.recommendationTriggerService,b)}),xf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=le([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=m(b);b=c.next().value;
c=c.next().value;return b!=null?b:c}),xf({bufferSize:1,refCount:!0}));this.shouldShowDupeSuggestions$=this.dedupeRecommendation$.pipe(A(Boolean));this.enableNeedsInfoUi=this.activeSession.getFlag("enableNeedsInfoUi");this.assignToReporterRecommendation$=this.issueId$.pipe(Af(function(b){return mkd(a.recommendationTriggerService,b)}));this.shouldShowAssignToReporterSuggestion$=this.assignToReporterRecommendation$.pipe(A(Boolean));this.componentRoutingRecommendation$=this.issueId$.pipe(Af(function(b){return nkd(a.recommendationTriggerService,
b)}));this.shouldShowComponentRoutingSuggestion$=this.componentRoutingRecommendation$.pipe(A(Boolean));this.tabKeys$=le([this.shouldShowAssignToReporterSuggestion$.pipe(A(function(b){return{show:b,key:"SW-assign-to-reporter"}})),this.shouldShowComponentRoutingSuggestion$.pipe(A(function(b){return{show:b,key:"SW-component-routing"}})),this.shouldShowDupeSuggestions$.pipe(A(function(b){return{show:b,key:"SW-dupes"}})),this.shouldShowSimilarIssues$.pipe(A(function(b){return{show:b,key:"SW-similar-issues"}})),
this.shouldShowImages$.pipe(A(function(b){return{show:b,key:"SW-images"}})),this.shouldShowIssues$.pipe(A(function(b){return{show:b,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(A(function(b){return{show:b,key:"SW-links"}}))]).pipe(A(function(b){return b.filter(function(c){return c.show}).map(function(c){return c.key})}));this.shouldShowSummaryCard$=this.tabKeys$.pipe(A(function(b){return!!b.length}),of(0,Br));this.initiallyExpandedTabs=$bc.map(function(b){return Lkd(a.userPreferencesManager,
b)?void 0:b}).filter(Qm);this.onTabExpanded$=new XP;this.issueSummaryTracking=new G1d(this.issueInteractionsTracking,this.analytics)};Y(j8,Z);j8.\u0275dir=Z.\u0275dir;
j8.prototype.ngOnInit=function(){var a=this;this.alwaysStartCollapsed&&(this.initiallyExpandedTabs=[]);this.subscriptions.add(this.onTabExpanded$.pipe(lf(1E3),Af(function(b){var c=b.allTabKeys;var d=b.expandedTabKeys;return Kkd(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=m(b),f=e.next();!f.done;f=e.next())ju(c.issueInteractionsTracking,
d,f.value+"-available");b.size>0&&ju(c.issueInteractionsTracking,d,"SW-available")}))};j8.prototype.shouldShowLinks=function(a){return a.length===0||a.every(function(b){return b.sourceCommentNumber===1})?!1:!0};var L1d=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 eR(a.userPreferencesManager).showInlineImages&&b?!1:!0};
da.Object.defineProperties(j8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return zr(this.issueId$)}}});j8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(j8)))(b||j8)}}();
j8.\u0275cmp=D({type:j8,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId",alwaysStartCollapsed:"alwaysStartCollapsed"},standalone:!1,features:[Gf],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&&(K(0,"h3",0),Q(1,"Issue summary"),L(),F(2,acc,21,11,"expandable-tabs",1),T(3,"async"));if(a&2){var c;B(2);G((c=U(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[Dy,eZ,bZ,cZ,dZ,fZ,f8,h8,i8,a_,i_,Lx],styles:["[_nghost-%COMP%]{display:block}.chip-container[_ngcontent-%COMP%]{display:flex}issue-summary-chip[_ngcontent-%COMP%]{margin:0 4px}inline-images-summary[_ngcontent-%COMP%]{display:block}inline-images-summary.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     expandable-tabs .expandable-tabs-contents .SW-similar-issues{border-bottom:0;padding-bottom:8px}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"],
changeDetection:0});var k8=function(){this.matDialog=p(QA)};k8.prototype.show=function(a){this.dialog=this.matDialog.open(l8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return ie(OA(this.dialog))};k8.\u0275fac=function(a){return new (a||k8)};k8.\u0275prov=Fc({token:k8,factory:k8.\u0275fac,providedIn:"root"});var l8=function(){Z.apply(this,arguments);this.data=p(PA);this.dialogService=p(k8);this.dialogRef=p(NA);this.statusUpdates=this.data.statusUpdates};Y(l8,Z);l8.\u0275dir=Z.\u0275dir;
l8.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Bf(this.destroyed$)).subscribe(function(b){if(b.key==="Escape"){var c;(c=a.dialogService.dialog)==null||c.close()}});this.dialogRef.backdropClick().pipe(Bf(this.destroyed$)).subscribe(function(){var b;(b=a.dialogService.dialog)==null||b.close()})};l8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(l8)))(b||l8)}}();
l8.\u0275cmp=D({type:l8,selectors:[["ng-component"]],standalone:!1,features:[Gf],decls:9,vars:1,consts:[["mat-dialog-title",""],["tabindex","0","mat-dialog-content",""],[1,"history-list"],[1,"version"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"version-header"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],[1,"muted","float-right","float-clear"],[1,"type-xs"],[1,"update-email"],
[3,"email"]],template:function(a,b){a&1&&(K(0,"h1",0),Q(1,"History for Status Update"),L(),K(2,"section",1)(3,"ul",2),Of(4,bcc,19,12,"li",3,Nf),L()(),K(6,"footer",4)(7,"button",5),Q(8," Close "),L()());a&2&&(B(4),Pf(b.statusUpdates),B(3),I("mat-dialog-close",void 0))},dependencies:[sV,gB,cB,RA,TA,VA,UA,dT,bV,$U,CS,WU],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 M1d=["noteContainer"],occ=function(a){return[a]},N1d={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},m8=function(){Z.apply(this,arguments);var a=this;this.activeSession=p(qu);this.analytics=p(aQ);this.confirmationDialogService=p(ZR);this.currentUser=p(M2);this.editStatusUpdateDialogService=p(f4);this.statusUpdateFactory=p(h4);this.errorHandler=p(kO);this.issueFullFridge=p(cQ);this.issuePermissionService=p(WQ);this.statusUpdateService=p(e4);this.statusUpdateHistoryDialogService=p(k8);this.userPreferencesManager=
p(dR);this.log=p(iO);this.Freshness=N1d;this.UiState=O1d;this.FormattingMode=Um;this.issueId$=new wf(1);this.issue$=this.issueId$.pipe(Af(function(b){return a.issueFullFridge.watch(b)}));this.componentId$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:
c.teamId}));this.isCollapsed=!1;this.statusUpdate$=this.issue$.pipe(A(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateAsNote$=this.statusUpdate$.pipe(we(Qm),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(A(function(b){var c;return(c=Y7a(b==null?void 0:b.updateText))!=null?c:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(A(function(b){return((b==null?void 0:b.updateText)||"").trim()===""}));
this.freshnessIndicator$=le([this.statusIsEmpty$,this.statusUpdate$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;if(b)return 2;var d;b=(c==null?void 0:(d=c.updateTime)==null?void 0:d.seconds)||0;return Date.now()/1E3-b<86400?0:1}));this.uiState$=this.statusIsEmpty$.pipe(A(function(b){return b?1:2}),zf(0));this.formattingModeOverride$=new Nj(void 0);this.formattingMode$=le([this.statusUpdate$,this.formattingModeOverride$]).pipe(A(function(b){var c=m(b);b=c.next().value;return(c=
c.next().value)?c:(b==null?void 0:b.formattingMode)||"PLAIN"}));this.menuItems$=le([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToEdit$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(A(function(b){var c=m(b);var d=c.next().value;var e=c.next().value;b=c.next().value;var f=c.next().value;c=c.next().value;var g=e!=null;e=e&&(e==null?void 0:e.updateText)!=="";var k=[];e&&k.push({type:"submenu",label:"View as",className:"view-as-format",items:[{type:"select",
label:"Classic",action:function(){a.formattingModeOverride$.next("PLAIN")},selected:c==="PLAIN"},{type:"select",label:"Markdown",action:function(){a.formattingModeOverride$.next("MARKDOWN")},selected:c==="MARKDOWN"},{type:"select",label:"Source",action:function(){a.formattingModeOverride$.next("LITERAL")},selected:c==="LITERAL"}]});b&&k.push({type:"action",label:"Edit Status Update",action:function(){a.editStatusUpdate()}});g&&k.push({type:"action",label:"Show editing history",action:function(){P1d(a,
d)}});e&&f&&k.push({type:"action",label:"Delete Status Update",action:function(){a.confirmationDialogService.open({title:"Delete Status Update?",content:Bh("\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(Q1d);return k}));this.showEditButton$=this.issuePermissionService.hasAclToEdit$};Y(m8,Z);m8.\u0275dir=Z.\u0275dir;
m8.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.uiState$.pipe(we(function(e){return e!==0}))),2);b=d.yieldResult;c=qcc(b);a.analytics.trackEvent("issue","statusUpdateDisplay",c);ce(d)})},1E3)};m8.prototype.ngAfterViewInit=function(){var a;((a=this.noteContainer)==null?void 0:a.nativeElement.scrollHeight)>84&&(this.isCollapsed=!0)};
m8.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return z(x,ie(a.issueId$),2);case 2:return b=x.yieldResult,z(x,ie(a.componentId$),3);case 3:return c=x.yieldResult,z(x,ie(a.statusUpdate$),4);case 4:if((d=x.yieldResult)!=null){e=d;x.jumpTo(5);break}return z(x,ATd(a.statusUpdateFactory,b),6);case 6:e=x.yieldResult;case 5:return f=e,z(x,ie(a.accessLevel$),7);case 7:return g=x.yieldResult,k=g==="INTERNAL"?"INTERNAL":"EXTERNAL",z(x,
a.editStatusUpdateDialogService.show(f,k,c),8);case 8:l=x.yieldResult;if(l==null)return x.return();Yd(x,9);return z(x,ie(a.statusUpdateService.update(l)),11);case 11:r=x.yieldResult;a.didSave(b,r);bt(x,0);break;case 9:w=be(x),Rp(w)?a.errorHandler.errorHandler(null,w):a.log.warn(w),ce(x)}})};
var ecc=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return z(d,ie(a.issueId$),2);if(d.nextAddress!=3)return b=d.yieldResult,z(d,ie(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)});ce(d)})};m8.prototype.didSave=function(a,b){this.issueFullFridge.manualUpdate(a,function(c){c.statusUpdate=b});this.issueFullFridge.poke(a)};
var P1d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,ie(yTd(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);ce(d)})};m8.prototype.doDelete=function(){var a=this,b;y(function(c){if(c.nextAddress==1)return z(c,ie(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)});ce(c)})};
da.Object.defineProperties(m8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});m8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(m8)))(b||m8)}}();
m8.\u0275cmp=D({type:m8,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&hg(M1d,5);if(a&2){var c;lg(c=mg())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[Gf],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,pcc,5,13,"div",2),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.uiState$))?0:-1,c)}},dependencies:[QY,eU,Dy,sV,DK,LK,eT,gB,cB,oK,iA,Lx,lX],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 O1d={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},Q1d={type:"action",label:"Using the Status Update field...",action:function(){oi(window,"https://developers.google.com/issue-tracker/concepts/status-update","_blank")},icon:"help-outline",className:"border-top"};var n8=function(){Z.apply(this,arguments);var a=this;this.brain=p(UQ);this.preferences=p(dR);this.scrollTiming=p(S2);this.analytics=p(aQ);this.element=p(Jd);this.editIssueService=p(DS);this.appEvents=p(PO);this.routePerformance=p(M1);this.clearcut=p(UP);this.activeSession=p(qu);this.id$=this.brain.id$;this.enableTailwind=this.activeSession.getFlag("enableTailwind")&&this.activeSession.isInternalSession();this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(we(Qm),Af(function(b){return a.editIssueService.issueCommentDraft(b).comment$}));
this.finishedRendering$=le([this.brain.eventsJs$.pipe(of(0)),wZa("#AddCommentBox textarea",this.element.nativeElement)]).pipe(nf(1))};Y(n8,Z);n8.\u0275dir=Z.\u0275dir;
n8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(we(Qm),Bf(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){R1d(a)});wZa("#comment1 .critical-feature",this.element.nativeElement).pipe(Bf(this.destroyed$)).subscribe(function(){var b=function(){dOd(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.brain.eventsJs$.pipe(rf()).subscribe(function(b){S1d(a,
b)}));this.subscriptions.add(this.finishedRendering$.pipe(Ef(this.comment$)).subscribe(function(b){b=m(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var S1d=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")},R1d=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);VP(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};n8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(n8)))(b||n8)}}();
n8.\u0275cmp=D({type:n8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("unload",function(){R1d(b)},Ld)},standalone:!1,features:[Gf],decls:7,vars:10,consts:[["insightsCard",""],["issueSummaryCard",""],["id","bv2-edit-issue-details-scroll","tabindex","-1",1,"bv2-edit-issue-details-scroll",3,"bFocus"],[1,"carded","margined-s","bg-main",3,"issueId","hidden"],[1,"carded","margined-s","bg-main",3,"recent-first"],[1,"margin-s-sides","margin-s-top","padded-left",3,"id"],[1,"margin-s-sides",
"margin-s-bottom"],[3,"issueId"],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","highlighted-left",3,"id"],[1,"carded","margined-s","bg-main",3,"issueId"],[1,"carded","margined-s","bg-main"],[3,"id"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,scc,8,8),T(2,"async"),F(3,tcc,3,5,"issue-summary-card",3),T(4,"async"),F(5,wcc,5,5,"div",4),T(6,"async"),L());if(a&2){var c,d,e;I("bFocus",!0);B();G((c=U(2,4,b.id$))?1:-1,c);B(2);G((d=U(4,6,b.id$))?3:-1,d);B(2);G((e=U(6,8,b.id$))?5:-1,e)}},dependencies:[NZ,
AW,k4,$7,GZ,a8,j8,s0,m8,c8,Lx],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var T1d=function(){};T1d.\u0275fac=function(a){return new (a||T1d)};T1d.\u0275mod=cf({type:T1d});T1d.\u0275inj=Hc({imports:[RO,bK,MJ,gL,iB,iK,yU,xE,yE,X1,pK,xz]});var o8=function(){Z.apply(this,arguments);this.prefs=p(dR)};Y(o8,Z);o8.\u0275dir=Z.\u0275dir;o8.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(Bf(this.destroyed$)).subscribe()};o8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(o8)))(b||o8)}}();
o8.\u0275cmp=D({type:o8,selectors:[["b-toggle-code-font"]],standalone:!1,features:[Gf],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"change","checked"]],template:function(a,b){a&1&&(cg(),K(0,"mat-slide-toggle",0),T(1,"async"),N("change",function(c){return b.onChange(c)}),dg(2),L());a&2&&I("checked",U(1,1,b.prefs.codeFont$))},dependencies:[OU,sT,oK,iA,Lx],styles:["mat-slide-toggle[_ngcontent-%COMP%] {font-size: 14px; }"],changeDetection:0});var p8=function(){};p8.\u0275fac=function(a){return new (a||p8)};p8.\u0275mod=cf({type:p8});p8.\u0275inj=Hc({imports:[RO,iB,gL,MJ,PU,yU,pK,bU]});var U1d=function(){};U1d.\u0275fac=function(a){return new (a||U1d)};U1d.\u0275mod=cf({type:U1d});U1d.\u0275inj=Hc({providers:[IY],imports:[RO,pX,iB,pK,T1d,I_,MK,AX,V0,IX,BX,W0,p8,X1]});var V1d=function(){};V1d.\u0275fac=function(a){return new (a||V1d)};V1d.\u0275mod=cf({type:V1d});V1d.\u0275inj=Hc({imports:[RO,iB,yU]});var W1d=function(){};W1d.\u0275fac=function(a){return new (a||W1d)};W1d.\u0275mod=cf({type:W1d});W1d.\u0275inj=Hc({imports:[zU,RO,T0,Q0,IX,W0,iB,pK,bU,X1,V1d,iV,yU]});var q8=function(){};q8.\u0275fac=function(a){return new (a||q8)};q8.\u0275mod=cf({type:q8});q8.\u0275inj=Hc({imports:[RO,xE,iB,MJ,OD,BE,HL,jA,oX,IV]});var r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=cf({type:r8});r8.\u0275inj=Hc({imports:[RO,MK,gU,nX]});var s8=function(){};s8.\u0275fac=function(a){return new (a||s8)};s8.\u0275mod=cf({type:s8});s8.\u0275inj=Hc({imports:[r8,RO,MK,gU,iB,nX,uU]});var t8=function(){};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275mod=cf({type:t8});t8.\u0275inj=Hc({imports:[zU,RO,gV]});var u8=function(){};u8.\u0275fac=function(a){return new (a||u8)};u8.\u0275mod=cf({type:u8});u8.\u0275inj=Hc({imports:[RO,BX,iB,pK,t8,fU,r8]});var v8=function(){};v8.\u0275fac=function(a){return new (a||v8)};v8.\u0275mod=cf({type:v8});v8.\u0275inj=Hc({imports:[r8,RO,iB,t8]});var X1d=function(){};X1d.\u0275fac=function(a){return new (a||X1d)};X1d.\u0275mod=cf({type:X1d});X1d.\u0275inj=Hc({imports:[RO,E0,s8,u8,v8,a1,b1]});var Y1d=function(){};Y1d.\u0275fac=function(a){return new (a||Y1d)};Y1d.\u0275mod=cf({type:Y1d});Y1d.\u0275inj=Hc({imports:[MJ,gL,RO,Qz,iB,zU,F_]});var w8=function(){};w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275mod=cf({type:w8});w8.\u0275inj=Hc({imports:[zU,RO]});var Z1d=function(){};Z1d.\u0275fac=function(a){return new (a||Z1d)};Z1d.\u0275mod=cf({type:Z1d});Z1d.\u0275inj=Hc({imports:[RO,xV,iB,MJ,Qz,fU,nX,w8,iV]});var $1d=function(){};$1d.\u0275fac=function(a){return new (a||$1d)};$1d.\u0275mod=cf({type:$1d});$1d.\u0275inj=Hc({imports:[FZ,zU,RO,xV,Y1d,MK,gU,iB,pK,nX,Z1d,w8]});var a2d=function(){};a2d.\u0275fac=function(a){return new (a||a2d)};a2d.\u0275mod=cf({type:a2d});a2d.\u0275inj=Hc({imports:[RO,nI,By,xE,iB,MJ,yL,yE,U0,BW,a5,U1d,Q0,W1d,X1d,u8,z0,uU,$1d,iV,bU,q8]});var b2d=function(){var a=this;this.activeSession=p(qu);this.issueFullFridge=p(cQ);this.issueDetailsBrain=p(UQ);this.eventsForIssueFridge=p(IP);this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(Af(function(b){return b?a.issueFullFridge.watch(b):ee(void 0)}),we(Qm));this.commentNumberToEventMap$=this.issue$.pipe(A(function(b){return b.issueId}),Af(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:
b.events)!=null?c:[]}),A(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=le([this.issue$,this.commentNumberToEventMap$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}));this.issueReferences$=this.relatedLinks$.pipe(A(function(b){return b.filter(Y8a)}));
this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(U8a)}));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(Z8a)}))};b2d.\u0275fac=function(a){return new (a||b2d)};
b2d.\u0275cmp=D({type:b2d,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&&(K(0,"section",0),F(1,Ecc,6,9),T(2,"async"),L());if(a&2){var c;B();G((c=U(2,1,b.issue$))?1:-1,c)}},dependencies:[Dy,
h8,f8,i8,Lx],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var c2d=function(){};c2d.\u0275fac=function(a){return new (a||c2d)};c2d.\u0275mod=cf({type:c2d});c2d.\u0275inj=Hc({imports:[RO,u8,s8,v8]});var x8=function(){var a=this;this.brain=p(UQ);this.codeMentions=p(A1);this.imageUrls=p(YV);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.brain.id$.pipe(we(Qm));this.codeMentionsState$=this.id$.pipe(Af(function(b){return KNd(a.codeMentions,b)}))};x8.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};x8.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};x8.\u0275fac=function(a){return new (a||x8)};
x8.\u0275cmp=D({type:x8,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&&(K(0,"section",0),F(1,Jcc,2,3),T(2,"async"),L());if(a&2){var c;
B();G((c=U(2,1,b.id$))?1:-1,c)}},dependencies:[pZd,Lx],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 y8=function(){this.cdr=p(YP,{self:!0});this.errorHandler=p(kO);this.currentUserBookmarksFridge=p(lP);this.isLoading=!1;this.hotlists=[];this.createHotlistPath=ps.createHotlist.makeHref()};y8.prototype.ngOnInit=function(){this.fetchUserHotlists()};y8.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;ie(mP(this.currentUserBookmarksFridge)).then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
y8.\u0275fac=function(a){return new (a||y8)};
y8.\u0275cmp=D({type:y8,selectors:[["list-hotlists-page"]],standalone:!1,features:[Gg([YP])],decls:8,vars:2,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"no-visited-no-active",3,"href"],[1,"bv2-view"],[3,"large"],[3,"hotlists"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Browse Hotlists"),L(),K(2,"div",1)(3,"a",2),Q(4," Create Hotlist "),L()(),K(5,"div",3),F(6,Kcc,1,1,"b-spinner",4)(7,Lcc,1,1,"b-hotlist-grid",5),L());a&2&&(B(3),I("href",b.createHotlistPath,Pe),B(3),
G(b.isLoading?6:7))},dependencies:[K4,$T,gB,cB],encapsulation:2});var d2d=new Set(["issueId","modifiedTime","createdTime"]),z8=function(){Z.call(this);var a=this;this.cdr=p(YP);this.routerEvents=p($P);this.window=p(hR);this.bLocation=p(ZT);this.$log=p(iO);this.issueApi=p(HP);this.hotlistApi=p(bP);this.activeSession=p(qu);this.butterBar=p(QN);this.analytics=p(aQ);this.appSearchState=p(oT);this.issuePagination=p(l2);this.userPreferencesManager=p(dR);this.urlPreferences=p(M4);this.gridPreferencesFetcher=p(O4);this.paths=p(mW);this.timeout=p(jO);this.errorHandler=p(kO);
this.statusMessages=p(eS);this.domSafe=p(iR);this.appEvents=p(PO);this.hotlistFridge=p(gP);this.issueFullFridge=p(cQ);this.batchIssueRelationshipsService=p(Q5);this.componentFridge=p(MO);this.currentUserBookmarksFridge=p(lP);this.implicitTriageService=p(OR);this.clearcut=p(UP);this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.searchResults=null;this.hotlistChoices=[];this.hotlistMap={};this.customFieldMap={};this.gridControls=
this.cachedSort=null;this.issueColumnsInternal=[];this.metaColumns=[];this.sortPreferences=[];this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue",onPress:function(){var b;(b=a.resultsGrid)==null||QTb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var b;(b=a.resultsGrid)==null||RTb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||nUd(b)}},{keys:["s"],
displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||qUd(b)}},{keys:[Tr("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var b;(b=a.resultsGrid)==null||rUd(b,!0)}},{keys:[Tr("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.resultsGrid)==null||rUd(b,!1)}},{keys:[Ur("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||
b.selectAll()}},{keys:[Ur("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||kUd(b)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var b;(b=a.gridControls)==null||NRd(b,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var b;(b=a.gridControls)==null||NRd(b,NRa,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var b;(b=a.gridControls)==
null||b.openHotlistPicker()}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var b;(b=a.gridControls)==null||SRd(b)}},{keys:["u",Tr("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return a.refreshResults()}},{keys:[Ur("p","0"),Ur("p","1"),Ur("p","2"),Ur("p","3"),Ur("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(b){a.resultsGrid&&a.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+
b}],issueIds:a.resultsGrid.getSelectedIssues().map(function(c){return c.issueId})}])}},{keys:[e$a("ENTER")],displayAs:"Ctrl+Enter",description:"Open current issue in new tab",onPress:function(){var b=a.window.document.activeElement;if(b.tagName==="A"){var c=a.paths.getBaseUrl();if(b.href&&!b.href.startsWith(c)){a.domSafe.openInNewTab(b.href);return}}var d;(d=a.resultsGrid)==null||oUd(d,{openInNewTab:!0})}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(b){var c=
a.window.document.activeElement,d;if(c){var e=(d=ppa(y4))==null?void 0:d.selector;d=e?(c==null?void 0:c.closest(e))!=null:!1}else d=!1;if(b===1&&c.tagName==="A")if(c.href)b=a.paths.getBaseUrl(),c.href.startsWith(b)?a.bLocation.setUrl(c.href.slice(b.length)):a.domSafe.openInNewTab(c.href);else{var f;(f=a.resultsGrid)==null||oUd(f)}else if(b===2){var g;(g=a.resultsGrid)==null||oUd(g,{openInNewTab:!0})}else if(d){var k;(k=a.resultsGrid)==null||oUd(k)}}},{keys:[Tr("o"),Tr("ENTER")],displayAs:"Shift+o / Shift+Enter",
description:"Toggle current issue in sidebar",onPress:function(b){var c=a.window.document.activeElement;b===1&&c.tagName==="A"&&c.href?Cr(a.domSafe,c.href):(b=a.resultsGrid)!=null&&(b.isIssueSidebarOpen=!b.isIssueSidebarOpen,b.cdr.detectChanges())}}]};Y(z8,Z);
z8.prototype.ngOnInit=function(){var a=this;e2d(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(Bf(this.destroyed$)).subscribe(function(){e2d(a)})};var f2d=function(a){var b=[].concat(q(WSd));a.activeSession.isInternalSession()&&(a=b.indexOf("issueId"),b.splice(a,0,"minSlo"));return b.map(Jt).filter(Qm)};
z8.prototype.fetchUserHotlists=function(){var a=this;ie(mP(this.currentUserBookmarksFridge)).then(function(b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.hotlistMap[c.hotlistId];mm(d,c)||(d&&La(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var e2d=function(a){return g2d(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(a.subscribeToIssueChanges(a.searchResults.issues),h2d(a,a.searchResults.startIndex,a.searchResults.endIndex)):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})};
z8.prototype.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new Rd;a=m(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(we(Qm),Bf(this.destroyed$)).subscribe(function(d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(!b.searchResults){g.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;g.jumpTo(3);break}return z(g,ie(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=g.yieldResult;case 3:f=e;if(!f||!b.searchResults)return g.return();IOd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),ce(g)}})}))};
var i2d=function(a){return a.window.document.activeElement!=null&&a.window.document.activeElement!==a.window.document.body},g2d=function(a){var b=ro();i2d(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},h2d=function(a,b,c){var d=ro();i2d(a)||j2d(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},k2d=function(a,b){if(b.maySkipResults){b=Dh(["Too many matching results. Some issues may be omitted.",Eh("br"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "]);
var c={};c=Eh("a",(c.href="http://go/buganizer-faq#restrict-search",c),"go/buganizer-faq");c=Dh([Eh("br"),"See ",c," for more details."]);b=a.activeSession.isInternalSession()?Ch([b,c]):b;kdd(a.butterBar,b)}};h=z8.prototype;
h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Jt(a);if(d){var e=new Lt(d,b==="ASC"?"ASCENDING":"DESCENDING");wba(this.sortPreferences,function(f){return mm(f.fieldId,e.fieldId)});!c||d2d.has(a)?this.sortPreferences=[e]:this.sortPreferences=[e].concat(this.sortPreferences.slice(0,2));this.saveSortColumns(this.sortPreferences)}else this.$log.warn("WARNING: Invalid field name specified "+a)};
h.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type==="CUSTOM_FIELD"?String(a.fieldId.customFieldId):vRa(a.fieldId.type),direction:a.direction==="ASCENDING"?"ASC":"DESC"};mm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.saveSortColumns=function(a){N4(this.urlPreferences,{sortColumns:a,page:1})};
h.initColumns=function(a,b){var c=this;b=b===void 0?z8.DEFAULT_META_COLUMNS:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(q(b),q(pPb(d)));c.cdr.detectChanges()})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return Jt(b.name)});N4(this.urlPreferences,{displayColumns:this.displayColumns})};
h.goToIssue=function(a,b,c){var d;c&&((d=c.target)==null?void 0:d.tagName)==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=rs(a),c&&(c.ctrlKey||c.metaKey||c.button===1)?this.domSafe.openInNewTab(a):c&&c.shiftKey?Cr(this.domSafe,a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.bLocation.search("p",a)};var ku=function(a,b,c){b!==void 0&&a.goToPage(b+c)};z8.prototype.refreshResults=function(){QOd(this.issuePagination);return e2d(this)};
z8.prototype.hasResults=function(){return this.searchResults&&this.searchResults.issues.length>0};
z8.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=m(a[0].issueIds);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=void 0;(f=this.searchResults)==null||JOd(f,e,d)}this.cdr.detectChanges();Pr(this.butterBar,"Saving changes...",0);return dQ(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(l){for(var r=m(a[0].issueIds),
w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0,C=void 0;(x=c.searchResults)==null||JOd(x,w,void 0,(C=l)!=null?C:null)}Pr(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(l){for(var r=m(a[0].issueIds),w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0;(x=c.searchResults)==null||JOd(x,w)}c.errorHandler.errorHandler(null,l)}).finally(function(){c.cdr.detectChanges()})}e=x7a(a).map(function(l){return l.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"bulkEdit",e.join(","));var g={bulkEditOps:a};Pr(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(l){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=m(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=m(w.value);w=x.next().value;x=x.next().value;l.finishedIssues[x.issueId]&&(w=c.searchResults.issues[w],OAb(w,l.finishedIssues[x.issueId],
null),c.loadHotlists(w),Object.assign(c.customFieldMap,w.customFieldMap))}c.cdr.detectChanges()}x=a[0];r=l.notFinishedIssueIds;w=String(x.actions[0].value);x=x.actions[0].actionType;if(x!=="ADD"&&x!=="REMOVE")throw Error("qg");r.length?(c.butterBar.showWarning("Failed to update issue(s) "+r.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+r.length)):Pr(c.butterBar,(x==="ADD"?"Added child issue(s) to parent ["+w+"]":"Removed child issue(s) from parent ["+w+"]")+" on "+
String(Object.keys(l.finishedIssues).length)+" issues.");c.cdr.detectChanges()}).catch(function(l){c.errorHandler.errorHandler(null,l)});var k=new Date;return this.issueApi.issueBulkEdit(g,b).then(function(l){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=m(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=m(w.value);w=x.next().value;x=x.next().value;if(l.affectedIssues[x.issueId]){x=l.affectedIssues[x.issueId];var C=Ia(x.snapshot).componentId;w=c.searchResults.issues[w];
OAb(w,x,C?l.componentMap[C]:void 0);c.loadHotlists(w);Object.assign(c.customFieldMap,w.customFieldMap)}}c.cdr.detectChanges()}l2d(c,g,l,k);r=new Map;w=m(g.bulkEditOps);for(x=w.next();!x.done;x=w.next()){x=x.value;C=m(x.issueIds);for(var H=C.next();!H.done;H=C.next()){H=H.value;var J=void 0,O=(J=r.get(H))!=null?J:[];O.push.apply(O,q(x.actions));r.set(H,O)}}var R;l=m((R=l.errors)!=null?R:[]);for(R=l.next();!R.done;R=l.next())r.delete(R.value.issueId);R=m(r.entries());for(l=R.next();!l.done;l=R.next())r=
m(l.value),l=r.next().value,r=r.next().value,Yld(c.implicitTriageService,l,r);c.cdr.detectChanges()}).catch(function(l){c.errorHandler.errorHandler(null,l)})};
var l2d=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&&VP(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-hotlistEditTime");c.errors&&c.errors.length?(b="Failed to update issue(s) "+(dVa(c.errors)+"."),a.butterBar.showWarning(b),a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"bulkEditError",""+c.errors.length)):(c=dnd(a.statusMessages,b,a.customFieldMap))?(d&&
VP(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-fromIssueListPage"),Pr(a.butterBar,c)):Pr(a.butterBar,"Saved "+y7a(b.bulkEditOps).length+" issue(s).")};h=z8.prototype;
h.loadHotlists=function(a){var b=this;a=m(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=m(c.hotlistId);for(var d=c.next();!d.done;d=c.next())d=d.value,this.hotlistMap[d]||this.hotlistApi.get(d).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e)}).catch(function(){})}};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Pr(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Pr(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Pr(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};h.exportCsv=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"exportCsv");Skd(this.domSafe,this.getCsvUrl())};
h.saveResultsPerPage=function(a){var b=this;this.userPreferencesManager.save({resultsPerPage:a}).pipe(Bf(this.destroyed$)).subscribe(function(){b.resultsPerPage=a;N4(b.urlPreferences,{page:1});b.analytics.trackEvent(b.ANALYTICS_CATEGORY,"resultsPerPageSave",a.toString());b.refreshResults();b.cdr.detectChanges()},function(c){Vm(c)})};
var j2d=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{SOd(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");e&&(e.scrollTop=0)}a.cdr.detectChanges()})};z8.prototype.onColumnsChange=function(){m2d()};var m2d=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
da.Object.defineProperties(z8.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){mm(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",J3a(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)))}}});z8.DEFAULT_META_COLUMNS=[sUd,uUd,vUd];
z8.\u0275fac=function(a){return new (a||z8)};z8.\u0275dir=df({type:z8,features:[Gf]});var Pcc=function(){return{q:"status:open"}},A8=function(){z8.apply(this,arguments);this.hotkeys=p(kU);this.pageTitle=p(m2);this.routePerformance=p(M1);this.element=p(Jd);this.imageUrls=p(YV);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 sf};Y(A8,z8);A8.\u0275dir=z8.\u0275dir;h=A8.prototype;
h.ngOnInit=function(){var a=this;z8.prototype.ngOnInit.call(this);this.subscriptions.add(lU(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
h.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),this.butterBar.showWarning(b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",Xqd(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,N4(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);Xqd(this.appSearchState,
this.query);b=ard(this.appSearchState);if(b>0)return Prd(this.bLocation,ps.viewHotlist.makeHref(b)),N4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);if(b=brd(this.appSearchState))return Prd(this.bLocation,this.paths.viewSavedSearch(b)),N4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add(oe(te(0).pipe(gla()),wZa("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){dOd(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().then(function(c){c&&(a.isLoading=!1,a.cdr.detectChanges())}).catch(function(){a.isLoading=!1;a.cdr.detectChanges()})};
h.doSearch=function(){var a=this;this.cancelConcurrentlyRunningSearches$.next(new n2d);var b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:f2d(this)}),c=Promise.race([b.searchPreferences.then(function(f){f=pm(f);f.query=a.query;f.returnUrl=a.bLocation.getUrl();f.trackerIds=a.appSearchState.currentTrackerScope;return NOd(a.issuePagination,f)}),ie(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 n2d||k2d(a,f)}).catch(function(f){typeof f==="number"?N4(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return ms({searchResultsPage:c,displayColumns:b}).then(function(f){var g=f.searchResultsPage;if(g instanceof n2d)return!1;a.searchResults=g;a.page=g.params.page;a.sortPreferences=
g.params.sortColumns||[];a.loadHotlists();a.cdr.detectChanges();a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+")");return!0})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return Jt(b.name)});Mkd(this.userPreferencesManager,qPb(a)).pipe(Bf(this.destroyed$)).subscribe()};
h.setPageTitle=function(){this.appSearchState.currentQuery===Yqd(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===$qd(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
h.saveSortColumns=function(a){var b=this,c=this.bLocation.search(),d=a.map(function(e){return{column:e.fieldId,order:e.direction}});this.userPreferencesManager.saveSortColumns(d).pipe(Bf(this.destroyed$)).subscribe(function(){N4(b.urlPreferences,{sortColumns:a,page:1});m2d();var e=b.bLocation.search();mm(c,e)&&b.refreshResults()})};h.getCsvUrl=function(){return ugb(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
A8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(A8)))(b||A8)}}();
A8.\u0275cmp=D({type:A8,selectors:[["list-issues-page"]],standalone:!1,features:[Gg([YP]),Gf],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view"],[1,"bv2-view-loading"],["id","no-results","tabindex","-1",1,"bv2-view-loading","layout-centered-column","gap",3,"bFocus"],[1,"bv2-grid-container"],
["aria-hidden","true","alt","",1,"empty-state-img",3,"src"],["routerLink","/issues",3,"queryParams"],["href","https://developers.google.com/issue-tracker/concepts/searches","target","_blank"],[3,"init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Issue search results"),L(),K(2,"div",1)(3,"b-grid-controls",2),N("init",function(c){return b.gridControls=
c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),L(),K(4,"div",3)(5,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return b.saveResultsPerPage(c.option)}),L()()(),K(6,"div",5),F(7,Mcc,4,1,"div",
6),F(8,Scc,6,4,"div",7),F(9,Tcc,2,6,"div",8),L());a&2&&(B(3),I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),I("searchResults",b.searchResults),B(),Kf("aria-busy",b.isLoading),B(),G(b.isLoading?7:-1),B(),G(b.isLoading||b.hasResults()?-1:8),B(),G(!b.isLoading&&b.hasResults()?9:-1))},dependencies:[B4,n5,y4,$E,$T,AW],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});
var n2d=function(){},o2d=function(){};o2d.\u0275fac=function(a){return new (a||o2d)};o2d.\u0275mod=cf({type:o2d});o2d.\u0275inj=Hc({imports:[J4,o5,l5,CU,RO,bU,BW,xE,pU,U1,k1]});var p2d=function(){this.cdr=p(YP,{self:!0});this.sloApi=p(FQ);this.errorHandler=p(kO);this.activeSession=p(qu);this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=ps.createSlo.makeHref();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};p2d.prototype.ngOnInit=function(){this.sloEnabled&&q2d(this)};
var q2d=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)})};p2d.\u0275fac=function(a){return new (a||p2d)};
p2d.\u0275cmp=D({type:p2d,selectors:[["list-slos-page"]],standalone:!1,features:[Gg([YP])],decls:7,vars:3,consts:[[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"no-visited-no-active",3,"href"],[1,"bv2-view"],[1,"padded-sides"],[3,"large"],[1,"muted"],[3,"slos"],[1,"slos-note"],["type","button",1,"unstyled-button","clickable-row",2,"width","100%",3,"click"],[1,"margined"],[1,"icon-s","vertical-centered",3,"svgIcon"],[1,"conditional-slo-grid"],[1,"muted","padded"]],template:function(a,b){a&1&&(K(0,
"div",0)(1,"a",1),Q(2," Create SLO "),L()(),K(3,"div",2),F(4,Ucc,5,0,"div",3),F(5,Vcc,1,1,"b-spinner",4)(6,adc,7,6),L());a&2&&(B(),I("href",b.createSloPath,Pe),B(3),G(b.sloEnabled?4:-1),B(),G(b.isLoading?5:6))},dependencies:[Dy,gB,cB,N5,$T],encapsulation:2});var $Za=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($Za,W);h=$Za.prototype;h.getAuthor=function(){return X(this,Fm,1)};h.setAuthor=function(a){Ni(this,Fm,1,a)};h.hasAuthor=function(){return yi(this,Fm,1)};h.getTimestamp=function(){return X(this,Ti,2)};h.setTimestamp=function(a){return Ni(this,Ti,2,a)};h.hasTimestamp=function(){return yi(this,Ti,2)};h.getAdd=function(){return X(this,oq,3)};h.setAdd=function(a){return Ni(this,oq,3,a)};
h.getRemove=function(){return X(this,oq,4)};h.setRemove=function(a){return Ni(this,oq,4,a)};h.getAddMask=function(){return X(this,Dq,5)};h.getMutableAddMask=function(){return Ji(this,Dq,5)};h.setAddMask=function(a){return Ni(this,Dq,5,a)};h.getRemoveMask=function(){return X(this,Dq,6)};h.getMutableRemoveMask=function(){return Ji(this,Dq,6)};h.setRemoveMask=function(a){return Ni(this,Dq,6,a)};var r2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(r2d,W);var s2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,s2d.messageId)};Y(s2d,W);s2d.prototype.getIt=function(){return X(this,r2d,2,jb)};s2d.prototype.setIt=function(a){return Ni(this,r2d,2,a,jb)};s2d.messageId="b.ComponentHistory";var B8=function(){this.executor=p(dO);this.bCacheFactory=p(WO);this.componentHistoriesCache=this.bCacheFactory.get("component_histories-second-level-cache")||this.bCacheFactory.create("component_histories-second-level-cache",{capacity:25})};B8.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:s2d}).then(a_a))};
B8.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};B8.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(a)};B8.\u0275fac=function(a){return new (a||B8)};B8.\u0275prov=Fc({token:B8,factory:B8.\u0275fac,providedIn:"root"});var t2d=["nameInput"],u2d=function(){return["delimiter"]},fdc=function(a,b){return b.key},v2d={type:"delimiter",text:"Fields inherited from parent components"},w2d={type:"delimiter",text:"Shared Custom fields"},C8=function(){this.constants=p(bS);this.fb=(new wE).nonNullable;this.issueTypeToDisplay=zm;this.displayedColumns="visibility name id type description required default".split(" ");this.trackBy=function(a,b){return b.type==="customField"?""+b.customField.customFieldId:b.text};this.isDelimiterRow=
function(a,b){return b.type==="delimiter"};this.isCustomFieldRow=function(a,b){return b.type==="customField"};this.existingConfiguredIssueTypes=new Set;this.onSave=new XP;this.onCancel=new XP;this.conflictingIssueTypes$=ee("")};
C8.prototype.ngOnInit=function(){var a=this,b,c;this.owningComponentId=(c=(b=this.configUnderEdit)==null?void 0:b.componentId)!=null?c:this.currentComponentId;this.customFieldsMap=new Map(this.customFields.map(function(f){return[f.customFieldId,f]}));this.hideIssueTypes=this.disallowIssueTypes||this.configUnderEdit!==void 0&&this.configUnderEdit.issueTypes.size===0;var d,e;this.nameForm=this.fb.control((e=(d=this.configUnderEdit)==null?void 0:d.name)!=null?e:"",[wj]);this.issueTypesForms=x2d(this);
y2d(this);this.validationForm=this.fb.group({name:this.nameForm,issueTypes:this.fb.array(Array.from(this.issueTypesForms.values())),customFieldConfigs:this.fb.array(this.customFieldRows.map(function(f){return f.formControl}))},{validators:[function(f){return a.hideIssueTypes||f.get("issueTypes").controls.some(function(g){return g.value})?null:{missingRequiredIssueTypes:!0}}]});this.partialVisibilityState$=new Nj(this.getVisibilityState(this.validationForm.controls.customFieldConfigs.value));this.validationForm.controls.customFieldConfigs.valueChanges.subscribe(function(f){a.partialVisibilityState$.next(a.getVisibilityState(f))});
this.isReadOnly?this.validationForm.disable():this.conflictingIssueTypes$=this.validationForm.controls.issueTypes.valueChanges.pipe(zf(this.issueTypesForms),A(function(){return Array.from(a.issueTypesForms.entries()).filter(function(f){var g=m(f);f=g.next().value;return g.next().value.value&&a.existingConfiguredIssueTypes.has(f)}).map(function(f){f=m(f).next().value;return zm(f)}).join(", ")}))};C8.prototype.ngAfterViewInit=function(){this.isReadOnly||this.nameInput.nativeElement.focus()};
C8.prototype.getVisibilityState=function(a){var b=a.some(function(c){return c});a=a.some(function(c){return!c});return b&&a?"some":b?"all":"none"};
var z2d=function(a){return{name:a.nameForm.value,issueTypes:new Set([].concat(q(a.issueTypesForms.entries())).filter(function(b){b=m(b);b.next();return b.next().value.value}).map(function(b){return m(b).next().value})),customFieldConfigs:new Map(a.customFieldRows.map(function(b){return[b.customField.customFieldId,b.formControl.value]}))}},y2d=function(a){var b,c,d=(c=(b=a.configUnderEdit)==null?void 0:b.customFieldConfigs)!=null?c:new Map;a.customFieldRows=a.customFields.filter(function(f){return a.customFieldsMap.has(f.customFieldId)}).map(function(f){var g;
return{type:"customField",customField:f,formControl:a.fb.control((g=d.get(f.customFieldId))!=null?g:!0)}});var e=function(f,g){return f.customField.name.localeCompare(g.customField.name)};b=a.customFieldRows.filter(function(f){return f.customField.shared}).sort(e);c=a.customFieldRows.filter(function(f){return!f.customField.shared&&f.customField.componentId===a.owningComponentId}).sort(e);e=a.customFieldRows.filter(function(f){return!f.customField.shared&&f.customField.componentId!==a.owningComponentId}).sort(e);
a.tableRows=[].concat(q(c),q(e.length>0?[v2d]:[]),q(e),q(b.length>0?[w2d]:[]),q(b))},x2d=function(a){var b,c,d=(c=(b=a.configUnderEdit)==null?void 0:b.issueTypes)!=null?c:new Set;return new Map(a.constants.editIssueTypes.map(function(e){var f;return[e,a.fb.control((f=d.has(e))!=null?f:!1)]}))};C8.prototype.cancel=function(){this.onCancel.emit()};C8.prototype.save=function(){this.onSave.emit(z2d(this))};C8.\u0275fac=function(a){return new (a||C8)};
C8.\u0275cmp=D({type:C8,selectors:[["b-field-configuration-editor"]],viewQuery:function(a,b){a&1&&hg(t2d,5);if(a&2){var c;lg(c=mg())&&(b.nameInput=c.first)}},inputs:{currentComponentId:"currentComponentId",customFields:"customFields",disallowIssueTypes:"disallowIssueTypes",configUnderEdit:"configUnderEdit",isReadOnly:"isReadOnly",existingConfiguredIssueTypes:"existingConfiguredIssueTypes"},outputs:{onSave:"onSave",onCancel:"onCancel"},standalone:!1,decls:41,vars:15,consts:[["nameInput",""],[1,"top-row"],
["appearance","outline","subscriptSizing","dynamic",1,"field-configuration-name-field"],["matInput","","type","text","required","","aria-required","true","autocomplete","off",3,"formControl"],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","save",3,"disabled"],[1,"custom-field-selections"],["mat-table","",3,"dataSource","trackBy"],["matColumnDef","delimiter"],["mat-cell","",4,"matCellDef"],["matColumnDef","visibility"],
["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","name"],["matColumnDef","id"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","required"],["matColumnDef","default"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"disabled-field",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["type","button","mat-flat-button","","color","primary",1,"medium","save",3,"click","disabled"],["messageType","caution"],
[1,"issue-type-header"],[1,"issue-type-description"],[1,"issue-type-checkboxes"],[3,"formControl"],[1,"flex-kids-x","align-items-center","gap-s"],[1,"icon-s","muted",3,"svgIcon"],["mat-cell",""],["mat-header-cell",""],["aria-label","All Fields Visibility",1,"all-visibility-checkbox",3,"change","disabled","checked","indeterminate"],["aria-label","Field visibility",1,"visibility-checkbox",3,"formControl"],[3,"customFieldValue"],["mat-header-row",""],["mat-row",""]],template:function(a,b){if(a&1){var c=
t();K(0,"div")(1,"div",1)(2,"mat-form-field",2)(3,"mat-label");Q(4," Configuration name ");L();M(5,"input",3,0);L();K(7,"button",4);N("click",function(){u(c);return v(b.cancel())});Q(8);L();F(9,bdc,2,1,"button",5);L();F(10,gdc,10,5);$f(11);T(12,"async");K(13,"div",6)(14,"table",7);Uf(15,8);E(16,hdc,3,2,"td",9);Vf();Uf(17,10);E(18,idc,3,3,"th",11)(19,jdc,2,1,"td",9);Vf();Uf(20,12);E(21,kdc,2,0,"th",11)(22,ldc,2,1,"td",9);Vf();Uf(23,13);E(24,mdc,2,0,"th",11)(25,ndc,3,1,"td",9);Vf();Uf(26,14);E(27,odc,
2,0,"th",11)(28,pdc,3,3,"td",9);Vf();Uf(29,15);E(30,qdc,2,0,"th",11)(31,rdc,2,1,"td",9);Vf();Uf(32,16);E(33,sdc,2,0,"th",11)(34,tdc,3,3,"td",9);Vf();Uf(35,17);E(36,udc,2,0,"th",11)(37,vdc,2,1,"td",9);Vf();E(38,wdc,1,0,"tr",18)(39,xdc,1,2,"tr",19)(40,ydc,1,0,"tr",20);L()()()}a&2&&(B(5),I("formControl",b.nameForm),B(3),S(" ",b.isReadOnly?"Close":"Cancel"," "),B(),G(b.isReadOnly?-1:9),B(),G(b.hideIssueTypes?-1:10),B(),ag(U(12,11,b.partialVisibilityState$)),B(3),I("dataSource",b.tableRows)("trackBy",
b.trackBy),B(24),I("matHeaderRowDef",b.displayedColumns),B(),I("matRowDefColumns",b.displayedColumns)("matRowDefWhen",b.isCustomFieldRow),B(),I("matRowDefColumns",Hg(14,u2d))("matRowDefWhen",b.isDelimiterRow))},dependencies:[Dy,AU,BU,r3,yj,$D,sE,gB,cB,fL,aI,PD,zE,MD,ED,BD,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,mE,cV,eV,Lx,Qx],styles:[".issue-type-checkboxes[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-columns:1fr 1fr 1fr 1fr;margin:16px}.field-configuration-name-field[_ngcontent-%COMP%]{width:100%;margin:16px 0px}.issue-type-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);margin-bottom:8px}.top-row[_ngcontent-%COMP%]{width:100%;display:flex;gap:8px;align-items:center}.top-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex-grow:4}.top-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:200px}tr.disabled-field[_ngcontent-%COMP%]{opacity:.6}"],
changeDetection:0});var A2d=function(){this.dialogData=p(PA);this.dialogRef=p(NA);this.originalItems=this.dialogData.configs.map(function(a){return{name:a.name,data:a}});this.items=[].concat(q(this.originalItems));this.hasChanges=!1};A2d.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};A2d.\u0275fac=function(a){return new (a||A2d)};
A2d.\u0275cmp=D({type:A2d,selectors:[["b-field-configuration-reorder-dialog"]],standalone:!1,decls:11,vars:2,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"margin-none"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,"click","disabled"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1)(1,"h1",2);Q(2," Reorder Field Configurations ");L()();K(3,"div",3)(4,"b-reorder-items",4,0);N("items",function(d){u(c);return v(b.items=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=d)});L()();K(6,"div",5)(7,"button",6);N("click",function(){u(c);return v(b.dialogRef.close())});Q(8," Cancel ");L();K(9,"button",7);N("click",function(){u(c);return v(b.onClose())});Q(10," Save ");L()()}a&2&&(B(4),I("originalItems",b.originalItems),B(5),I("disabled",!b.hasChanges))},dependencies:[gB,
cB,TA,VA,UA,VZ],encapsulation:2,changeDetection:0});var mec=function(){return["section-title"]},Odc=function(a){return{row:a}},B2d={text:"Typed configurations inherited by this component",rowType:"sectionTitle"},C2d={text:"Default configurations inherited by this component",rowType:"sectionTitle"},D2d={text:"Default configuration owned by this component",rowType:"sectionTitle"},E2d=function(){this.matDialog=p(QA);this.confirmationDialog=p(ZR);this.fieldConfigService=p(y6);this.butterBar=p(QN);this.appEvents=p(PO);this.constants=p(bS);this.documentationLinks=
p(YR);this.activeSession=p(qu);this.isInternalSession=this.activeSession.isInternalSession();this.ROUTES=ps;this.issueTypeToDisplay=zm;this.componentIds=[];this.componentIdsToPaths={};this.currentComponentConfigs=[];this.ownDefaultFieldConfig=void 0;this.ownTypedFieldConfigs=[];this.customFields=[];this.allTableRows$=new Nj([]);this.state$=new Nj({view:"list"});this.displayedColumns=["name","types","inherited-from","actions"];this.isSectionTitleRow=function(a,b){return b.rowType==="sectionTitle"}};
E2d.prototype.ngOnInit=function(){var a;this.componentIds=[].concat(q((a=this.componentPathInfo.componentPathId)!=null?a:[])).reverse();this.currentComponentId=this.componentIds[0];var b;this.customFields=(b=this.componentPathInfo.allCustomField)!=null?b:[];a=this.componentPathInfo;b={};var c=[],d,e=(d=a.componentPathId)!=null?d:[];for(d=0;d<e.length;d++){var f=e[d];c.push(a.componentPathName[d]);b[f]=c.join(" > ")}this.componentIdsToPaths=b;var g;a=(g=this.componentPathInfo.fieldConfigsV2Map.get(this.currentComponentId))!=
null?g:[];F2d(this,a)};
var F2d=function(a,b){a.currentComponentConfigs=b;a.ownDefaultFieldConfig=void 0;var c=[];b=[];for(var d=[],e=m(a.componentIds),f=e.next();!f.done;f=e.next()){f=f.value;var g=f===a.currentComponentId?a.currentComponentConfigs:a.componentPathInfo.fieldConfigsV2Map.get(f);if(g)if(f===a.currentComponentId)for(f=m(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?b.push(g):a.ownDefaultFieldConfig=g;else for(f=m(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?d.push(g):c.push(g)}e=
[];b.length>0&&e.push.apply(e,q(G2d(a,b)));d.length>0&&(e.push(B2d),e.push.apply(e,q(G2d(a,d))));a.ownDefaultFieldConfig&&(e.push(D2d),e.push.apply(e,q(G2d(a,[a.ownDefaultFieldConfig]))));c.length>0&&(e.push(C2d),e.push.apply(e,q(G2d(a,c))));c=new Set;d=e.filter(function(l){return l.rowType==="fieldConfig"});d=m(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,f.issueTypes&&f.effectiveIssueTypes){g=m(f.issueTypes);for(var k=g.next();!k.done;k=g.next())k=k.value,c.has(k)&&f.effectiveIssueTypes.delete(k),
c.add(k)}a.ownTypedFieldConfigs=b;a.allTableRows$.next(e)},Bdc=function(a,b){return new Set(a.ownTypedFieldConfigs.filter(function(c){return c!==b}).flatMap(function(c){return[].concat(q(c.issueTypes))}))},zdc=function(a,b,c){var d=Array.from(a.currentComponentConfigs,function(e){return e===b?c:e});H2d(a,d)},kec=function(a,b,c){a.state$.next({view:"create",config:b,disallowIssueTypes:!!c})},Fdc=function(a,b){b.componentId=a.currentComponentId;H2d(a,[].concat(q(a.currentComponentConfigs),[b]))},Adc=
function(a){a.state$.next({view:"list"})},cec=function(a,b){a.confirmationDialog.open({title:"Delete field configuration?",content:Bh("Are you sure you want to delete the "+b.name+"? This cannot be undone."),onConfirm:function(){H2d(a,a.currentComponentConfigs.filter(function(c){return c!==b}))}})},lec=function(a){return OA(a.matDialog.open(A2d,{width:"500PX",autoFocus:!1,data:{configs:a.ownTypedFieldConfigs}})).subscribe(function(b){b&&(a.ownDefaultFieldConfig&&b.push(a.ownDefaultFieldConfig),H2d(a,
b))})},H2d=function(a,b){a.state$.next({view:"list"});if(a.currentComponentId){var c=a.currentComponentId;IYd(a.fieldConfigService,c,b).subscribe(function(d){a.appEvents.componentModified.next(c);F2d(a,d);Pr(a.butterBar,"Field configurations saved",3E3)},function(){a.butterBar.showWarning("Saving field configurations failed, please refresh the page.",5E3)})}},Ddc=function(a,b){return a.customFields.filter(function(c){return b.customFieldConfigs.has(c.customFieldId)})},G2d=function(a,b){return b.map(function(c){var d;
return{inherited:c.componentId!==a.currentComponentId,name:c.name,isDefault:!((d=c.issueTypes)==null?0:d.size),issueTypes:c.issueTypes,effectiveIssueTypes:new Set(c.issueTypes),owningComponentId:c.componentId,rowType:"fieldConfig",data:c}})};E2d.\u0275fac=function(a){return new (a||E2d)};
E2d.\u0275cmp=D({type:E2d,selectors:[["b-field-configuration"]],inputs:{componentPathInfo:"componentPathInfo",isAdmin:"isAdmin"},standalone:!1,decls:3,vars:4,consts:[["deleteDialog",""],["actionButtons",""],["issueTypes",""],["card","onedevHovercard"],["cardBody",""],[3,"currentComponentId","customFields","configUnderEdit","isReadOnly","existingConfiguredIssueTypes"],[3,"currentComponentId","customFields","configUnderEdit","isReadOnly"],[3,"currentComponentId","customFields","disallowIssueTypes",
"configUnderEdit","existingConfiguredIssueTypes"],[3,"onSave","onCancel","currentComponentId","customFields","configUnderEdit","isReadOnly","existingConfiguredIssueTypes"],[3,"onCancel","currentComponentId","customFields","configUnderEdit","isReadOnly"],[3,"onSave","onCancel","currentComponentId","customFields","disallowIssueTypes","configUnderEdit","existingConfiguredIssueTypes"],[1,"component-banner","config-help-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline",
"keep-focus-ring",3,"href"],["mat-table","",3,"dataSource"],["matColumnDef","section-title"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","types"],["matColumnDef","inherited-from"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","section-title-row",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"no-custom-fields-message"],[1,"edit-button-row"],
["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"create-new-configuration",3,"click","disabled"],["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"create-new-default-configuration",3,"click","disabled"],["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"reorder-button",3,"click","disabled"],["mat-cell",""],["mat-header-cell",""],[1,"flex-kids-x","align-items-center",
"gap-s"],["svgIcon","help-outline",1,"icon-s","muted",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"config-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"section-title-row"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button",
"",1,"medium","cancel",3,"mat-dialog-close"],["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"],[1,"action-buttons-row"],["type","button","mat-button","","aria-label","View configuration",1,"view-configuration"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration",3,"click"],["type","button",
"mat-button","","aria-label","Edit configuration",1,"edit-configuration",3,"click"],["type","button","mat-button","","aria-label","Delete configuration",1,"delete-configuration",3,"click"],["type","button","mat-button","","aria-label","View configuration",1,"view-configuration",3,"click"],[1,"issue-types-cell"],[1,"icon-s","muted",3,"svgIcon","non-applicable"],[1,"icon-s","muted",3,"svgIcon"]],template:function(a,b){a&1&&($f(0),T(1,"async"),F(2,oec,4,1));a&2&&(a=ag(U(1,1,b.state$)),B(2),G(a?2:-1))},
dependencies:[Kx,Dy,TV,gB,cB,RA,VA,UA,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,aK,DK,EK,LK,FK,C8,Lx],styles:[".edit-button-row[_ngcontent-%COMP%]{padding:10px 0}.mat-column-types[_ngcontent-%COMP%]{white-space:pre-line}table[_ngcontent-%COMP%]{margin-top:10px}.section-title-row[_ngcontent-%COMP%]{height:32px}th.mat-mdc-header-cell[_ngcontent-%COMP%], td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td[_ngcontent-%COMP%]   .config-row-name[_ngcontent-%COMP%]{padding:8px}td[_ngcontent-%COMP%]   .action-buttons-row[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:row}th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}.example-custom-placeholder[_ngcontent-%COMP%]{background:#ccc;border:dotted 3px #999;min-height:40px;width:100%}.mat-column-name[_ngcontent-%COMP%]{width:300px}.mat-column-types[_ngcontent-%COMP%]{width:200px}.mat-column-inherited-from[_ngcontent-%COMP%]{width:300px}.mat-column-actions[_ngcontent-%COMP%]{width:300px}.issue-types-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.non-applicable[_ngcontent-%COMP%]{color:var(--text-disabled);text-decoration:line-through}"],
changeDetection:0});var I2d=function(){};I2d.prototype.ngOnInit=function(){};I2d.\u0275fac=function(a){return new (a||I2d)};I2d.\u0275cmp=D({type:I2d,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,pec,3,1),F(1,qec,3,1));a&2&&(G(b.teamPath?0:-1),B(),G(b.componentPath?1:-1))},dependencies:[UV,t5],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var J2d={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",FIELD_VISIBILITY:"fieldVisibility",TEMPLATES:"templates",ACCESS:"access"},K2d={},L2d=(K2d[0]="access",K2d[1]="access_permissions",K2d),D8=function(){Z.call(this);var a=this;this.bLocation=p(ZT);this.route=p(Mj);this.TAB_LIST="basic customFields fieldOrdering fieldVisibility templates access".split(" ");this.Tab=J2d;this.selectedTabIndex=this.tabIndex("basic");this.selectedAccessSubTabIndex=0;this.componentReady$=new sf;
this.componentReady$.subscribe(function(){a.selectedTabIndex=a.tabIndex("basic");a.route.fragment.pipe(Bf(a.destroyed$)).subscribe(function(b){if(b==="basic")a.selectedTabIndex=a.tabIndex("basic");else if(b==="customFields")a.selectedTabIndex=a.tabIndex("customFields");else if(b==="fieldOrdering")a.selectedTabIndex=a.tabIndex("fieldOrdering");else if(b==="templates")a.selectedTabIndex=a.tabIndex("templates");else if(b==="fieldVisibility")a.selectedTabIndex=a.tabIndex("fieldVisibility");else if(b===
"access"||b==="access"||b==="access_permissions")a.selectedTabIndex=a.tabIndex("access"),b==="access_permissions"&&(a.selectedAccessSubTabIndex=1),xgc(a)})})};Y(D8,Z);D8.\u0275dir=Z.\u0275dir;D8.prototype.tabIndex=function(a){a=this.TAB_LIST.indexOf(a);return a!==-1?a:0};
D8.prototype.tabChange=function(a){if(a===this.tabIndex("access")&&this.selectedAccessSubTabIndex>0){var b,c=(b=L2d[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 xgc=function(a){a.selectedAccessSubTabIndex===1?a.bLocation.hash("access_permissions",!0):a.selectedAccessSubTabIndex===0&&a.bLocation.hash("access",!0)};D8.\u0275fac=function(a){return new (a||D8)};
D8.\u0275prov=Fc({token:D8,factory:D8.\u0275fac,providedIn:"root"});var vec=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vec,W);var M2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,M2d.messageId)};Y(M2d,W);M2d.messageId="b.BatchGroupMetadataResult";var F8=function(){var a=this;this.groupMetadataResources=p(E8);this.bulkGetter=p(wP).adapt(function(b){return a.groupMetadataResources.bulkGet(b).then(function(c){var d=rec(c);return sxc(b,function(e){return d[e]||null})})})};F8.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"}})};F8.\u0275fac=function(a){return new (a||F8)};
F8.\u0275prov=Fc({token:F8,factory:F8.\u0275fac,providedIn:"root"});var E8=function(){this.executor=p(dO)};E8.prototype.bulkGet=function(a){a=[].concat(q(new Set(a)));a=Up(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:M2d}).then(wec)};E8.\u0275fac=function(a){return new (a||E8)};E8.\u0275prov=Fc({token:E8,factory:E8.\u0275fac,providedIn:"root"});var xec=[{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 G8=function(){var a=this;this.activeSession=p(qu);this.confirmationDialogService=p(ZR);this.documentationLinks=p(YR);this.groupMetadata=p(F8);this.componentReaders=[];this.enableRostersChecks=this.activeSession.getFlag("enableRostersChecks");this.enableComponentAutomationCheck=this.activeSession.getFlag("enableComponentAutomationCheck");this.isPublic=function(){return lt(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:Bh("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:Bh('"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){Hec(a.activeSession.getUserEmail(),
a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Bh("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){Gec(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Bh("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=Edb(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=vq([].concat(q(tm(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy.admins)),q(tm(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy.admins)),q(tm(a.issueDefaultAccessPolicyUnderEdit.editors,a.issueDefaultFlattenedAccessPolicy.editors)),q(tm(a.issueDefaultAccessPolicyUnderEdit.appenders,
a.issueDefaultFlattenedAccessPolicy.appenders)),q(tm(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy.readers)),q(tm(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy.restrictedReaders)),q(tm(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=Bec(b);b=Fec(b);if(c.size===0&&b.size===0)return Promise.resolve(!0);var d=Cec(c.size,b.size);c=Dec(c);b=Eec(b);var e=Dh([c,c===tj?tj:Eh("br"),b]);c={};e=Dh([e,Eh("p",{},Dh(["Please review the ",Eh("a",(c.href=Gmd(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()&&Aec(a.issueDefaultAccessPolicyUnderEdit,a.issueDefaultFlattenedAccessPolicy)){var c={};c=Dh([Eh("p",{},"You are about to give a broad category of users permissions on a public component."),Eh("p",{},Dh(["Please review the ",Eh("a",(c.href=Fmd(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=Eh("a",(b.href=ls(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:Ch(["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:Ch(["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(q(yec(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)),q(yec(a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit))),c=new Set;b=m(b);for(var d=b.next();!d.done;d=b.next()){d=m(d.value.addedPrincipals);for(var e=d.next();!e.done;e=d.next())e=Edb(e.value),(ERa(e)?cUa(e.user.emailAddress):e.group!==void 0&&cUa(e.group.emailAddress))&&c.add(e)}return[].concat(q(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=Eh("a",(d.href=Dmd(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",content:Dh([Bh("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"),Eh("wbr"),d,Bh("."),Eh.apply(null,["ol",{}].concat(q(b.map(function(e){if(ERa(e)){var f;
return Eh("li",{},Bh((f=e.user.emailAddress)!=null?f:""))}if(e.group!==void 0){var g;return Eh("li",{},Bh((g=e.group.emailAddress)!=null?g:""))}throw Error("zg`"+JSON.stringify(e));})))),Eh("br",{}),Bh("Are you sure you wish to allow automation to access data in this component?")]),onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}})}else c(!0)})};this.runValidation=function(b){var c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=m(b),d=c.next();case 2:if(d.done){f.jumpTo(4);break}e=
d.value;return z(f,e(),5);case 5:if(!f.yieldResult)return f.return(!1);d=c.next();f.jumpTo(2);break;case 4:return f.return(!0)}})}},N2d=function(a,b){var c=b.component;var d=b.originalComponent;var e=b.componentReaders;var f=b.componentAccessPolicyUnderEdit;var g=b.componentFlattenedAccessPolicy;var k=b.issueDefaultAccessPolicyUnderEdit;var l=b.issueDefaultFlattenedAccessPolicy;var r,w;return y(function(x){if(x.nextAddress==1)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=
f,a.componentFlattenedAccessPolicy=g,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=l,r=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],z(x,a.runValidation(r),2);w=x.yieldResult;return x.return(w)})};G8.\u0275fac=function(a){return new (a||G8)};
G8.\u0275prov=Fc({token:G8,factory:G8.\u0275fac});var H8=function(){Z.apply(this,arguments);this.principalTypes=p(AQ);this.componentReaders=[];this.templates=[]};Y(H8,Z);H8.\u0275dir=Z.\u0275dir;
H8.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(q(this.componentReaders))),d=new Set([].concat(q(a.admins),q(a.inheritedAdmins)));a=new Set([].concat(q(d),q(a.appenders)));var e=new Set([].concat(q(b.admins))),f=new Set([].concat(q(e),q(b.editors))),g=new Set([].concat(q(f),q(b.appenders))),k=new Set([].concat(q(b.restrictedPlusReaders))),l=new Set([].concat(q(k),q(b.restrictedReaders)));b=new Set([].concat(q(l),q(g),q(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(q(d)).map(lu)},{permission:"Create Issues",principals:[].concat(q(a)).map(lu)},{permission:"Admin Issues",principals:[].concat(q(e)).map(lu)},{permission:"Edit Issues",principals:[].concat(q(f)).map(lu)},{permission:"Comment on Issues",principals:[].concat(q(g)).map(lu)},{permission:"View Issues",principals:[].concat(q(b)).map(lu)},{permission:"View Components",principals:[].concat(q(c)).map(lu)},{permission:"View Restricted",principals:[].concat(q(l)).map(lu)},
{permission:"View Restricted+",principals:[].concat(q(k)).map(lu)}];O2d(this,this.templates)};
var O2d=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next()){c=m(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":BQ(a.principalTypes,e.principal$jscomp$15.value,!0).then(function(f){return function(g){f.principal$jscomp$15.detailedUserType=g.detailedUserType}}(e))}};
H8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(H8)))(b||H8)}}();
H8.\u0275cmp=D({type:H8,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},standalone:!1,features:[Gf,bx],decls:8,vars:0,consts:[[1,"permissions-column-headers"],["scope","col"],[1,"permission-row"],["scope","row"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,b){a&1&&(K(0,"table")(1,"tr",0)(2,"th",1),Q(3,"Permission"),
L(),K(4,"th",1),Q(5,"Users With Permission"),L()(),Of(6,Jec,6,1,"tr",2,Nf),L());a&2&&(B(6),Pf(b.templates))},dependencies:[tX],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 P2d=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"}),I8={},Q2d=(I8.issueAdmin=new Set(["issueEditor"]),I8.issueEditor=new Set(["issueAppender"]),I8.issueAppender=new Set(["issueReader"]),I8.issueRestrictedReader=
new Set(["issueReader"]),I8.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),I8.issueReader=new Set(["componentReader"]),I8.componentAdmin=new Set(["componentAppender"]),I8.componentAppender=new Set(["componentReader"]),I8.componentReader=new Set,I8),Uec=kUa(P2d,function(a){return Q2d[a]}),Sec=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"}),J8={},R2d=(J8.componentAdmin=new Set(["componentAdmin","issueAdmin"]),J8.issueAdmin=new Set(["issueAdmin","componentAppender"]),J8.issueEditor=new Set(["issueEditor","componentAppender"]),J8.issueContributor=new Set(["issueAppender","componentAppender"]),J8.componentAdminOnly=new Set(["componentAdmin"]),
J8.issueCreator=new Set(["componentAppender"]),J8.issueAdminOnly=new Set(["issueAdmin"]),J8.issueEditorExisting=new Set(["issueEditor"]),J8.issueCommenter=new Set(["issueAppender"]),J8.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),J8.restrictedViewer=new Set(["issueRestrictedReader"]),J8.issueViewer=new Set(["issueReader"]),J8),Rec=kUa(Sec,function(a){return R2d[a]}),S2d=Vec(),Qec=kUa(Sec,function(a){a=[].concat(q(Rec.get(a))).flatMap(function(b){return[].concat(q(S2d.get(b)))});return new Set(a)}),
Tec=kUa(Sec,function(a){return new Set(Sec.filter(function(b){return b!==a&&jRa(Qec.get(b),Qec.get(a))}))});var Yec={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},T2d={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var K8=function(){var a=this;this.accessPolicyApi=p(FO);this.errorHandler=p(kO);this.butterBar=p(QN);this.userAccess=p(yP);this.componentActions=p(WV);this.componentValidator=p(G8);this.analytics=p(aQ);this.isAdmin=!1;this.rolesMap=Yec;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=m(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=T2d;this.componentAccessPolicyUnderEdit=is();this.issueDefaultAccessPolicyUnderEdit=is()};
K8.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var U2d=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;Pr(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Rp(b)&&(c+=Sp(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};K8.prototype.updateComponentAndOriginalComponent=function(a){this.component=pm(a);this.originalComponent=pm(a)};
K8.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)})};K8.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)})};
K8.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=js(c);b.componentAccessPolicyUnderEdit=pm(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
js(c);b.issueDefaultAccessPolicyUnderEdit=pm(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var V2d=function(a){a.rolesMap=Zec({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},W2d=function(a,b){var c=a.issueDefaultAccessPolicyUnderEdit,d=a.issueDefaultFlattenedAccessPolicy;return d&&afc(d,c)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},X2d=function(a){var b=$ec(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy);var c=a.issueDefaultAccessPolicyUnderEdit;a=a.issueDefaultFlattenedAccessPolicy;
c=!(!a||!afc(a,c));return b||c},Y2d=function(a,b){return $ec(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=js(c);if($ec(d,a.componentAccessPolicyUnderEdit)){if($ec(d,a.componentFlattenedAccessPolicy))return Promise.reject(new Bdd("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)};K8.prototype.loadUserAccess=function(a){var b=this;return zP(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):zP(b.userAccess,"writer","components/"+a)}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
K8.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=ks(this.componentAccessPolicyUnderEdit);var c=ks(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(X2d(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,Pr(this.butterBar,"Saving access settings...",0),W2d(this,c).then(function(d){d&&(b.readers=[].concat(q(d.admins||[]),q(d.editors||[]),q(d.appenders||[]),
q(d.readers||[]),q(d.restrictedPlusReaders||[]),q(d.restrictedReaders||[])));return Y2d(a,b).catch(function(e){var f;return y(function(g){if(g.nextAddress==1)return f=ks(a.issueDefaultFlattenedAccessPolicy),z(g,W2d(a,f),2);throw e;})})}).then(function(){return U2d(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;V2d(a);var e=a.rolesMap;var f={componentAdminOnly:d.componentAdminOnly,issueAdminOnly:d.issueAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,
createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},g={componentAdminOnly:e.componentAdminOnly,issueAdminOnly:e.issueAdminOnly,viewer:e.viewer,editExistingIssuesOnly:e.editExistingIssuesOnly,createIssuesOnly:e.createIssuesOnly,commentOnly:e.commentOnly,viewRestricted:e.viewRestricted,viewRestrictedPlus:e.viewRestrictedPlus};d=bfc({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=bfc(f,g);switch(d&&f?2:d?0:f?1:3){case 0:a.analytics.trackEvent("roleBasedPermissions","update","roles:standard");break;case 1:a.analytics.trackEvent("roleBasedPermissions","update","roles:advanced");break;case 2:a.analytics.trackEvent("roleBasedPermissions","update","roles:both");break;default:a.analytics.trackEvent("roleBasedPermissions","update","roles:neither")}Pr(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(Sp(d),0)}).finally(function(){return y(function(d){if(d.nextAddress==1)return z(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;ce(d)})});V2d(this);return U2d(this)};
var Z2d=function(a,b){b=Wec(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},nfc=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(Z2d(a,b),N2d(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();Pr(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
da.Object.defineProperties(K8.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){mm(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=Xec({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){mm(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=Xec({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});K8.\u0275fac=function(a){return new (a||K8)};K8.\u0275prov=Fc({token:K8,factory:K8.\u0275fac});var L8=function(){this.activeSession=p(qu);this.documentationLinks=p(YR);this.rolesEditor=p(K8);this.AccessLevelStrings=Ebd};L8.prototype.getRecentIssuesLink=function(){return xr(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};L8.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!esb(this.rolesEditor.parentComponent))};
L8.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!lt(this.rolesEditor.parentComponent))};L8.\u0275fac=function(a){return new (a||L8)};
L8.\u0275cmp=D({type:L8,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,gfc,18,7,"div",
0),K(1,"div",1)(2,"p"),Q(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),K(4,"a",2),Q(5,"Learn more"),L()()());if(a&2){a:if(b.activeSession.isExternalSession())a=!1;else{if(b.rolesEditor.component)if(b.rolesEditor.component.parentComponentId){if(b.rolesEditor.parentComponent){a=kt(b.rolesEditor.parentComponent)||kt(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}G(a?0:-1);B(4);I("href",Eg("",ls(b.documentationLinks),
"#recommended-role-based-permissions-configurations"),Pe)}},dependencies:[yj,jE,$D,gE],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 M8=function(){this.documentationLinks=p(YR);this.rolesEditor=p(K8)};M8.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};M8.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};M8.\u0275fac=function(a){return new (a||M8)};
M8.\u0275cmp=D({type:M8,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&&(K(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),N("change",function(c){return b.setImplicitAccess(c.checked)}),L()(),K(3,"div",3)(4,"strong",4),Q(5,"Expanded access"),L(),K(6,"div",5),Q(7," When checked, assignees, verifiers, and collaborators can edit issues for this component, and CC'd users can add comments. "),K(8,"a",6),Q(9,"Learn more"),L()()()());a&2&&(wg("bv2-edit-resource-readonly",b.isAccessEditDisabled()),
B(2),I("checked",b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),B(6),I("href",Eg("",ls(b.documentationLinks),"#expanded-access"),Pe))},dependencies:[fL,aI],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 hfc=function(){return{}},jfc=function(a,b){return{displayText:a,values:b}},ifc=function(a){return[a]},kfc=function(){return[]},N8=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new XP;this.formIsValid=new XP;this.aclFormValidity=new Map};N8.prototype.getIconName=function(a,b){switch(a.grantedPermissions[b]){case "inherited":return"issue-status-verified";case !0:return"done";default:return"issue-status-wont-fix"}};
N8.prototype.getTooltip=function(a,b){return a.grantedPermissions[b]==="inherited"?"The permission is granted to this component and inherited by all child components.":""};N8.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};N8.\u0275fac=function(a){return new (a||N8)};
N8.\u0275cmp=D({type:N8,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",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","matTooltipPosition","after",3,"name","matTooltip"],["size","large",3,"name"]],template:function(a,b){a&1&&(K(0,"table")(1,"thead")(2,"tr")(3,"th",0),Q(4,"Role Assignments"),L(),K(5,"th",0)(6,"h6"),Q(7,"Admin Components"),L()(),K(8,"th",0)(9,"h6"),Q(10,"Create Issues"),L()(),K(11,"th",0)(12,"h6"),Q(13,"Admin Issues"),L()(),K(14,"th",0)(15,"h6"),Q(16,"Edit Issues"),L()(),K(17,"th",0)(18,"h6"),Q(19,"Comment on Issues"),L()(),K(20,"th",0)(21,"h6"),
Q(22,"View Issues"),L()(),K(23,"th",0)(24,"h6"),Q(25,"View Restricted"),L()(),K(26,"th",0)(27,"h6"),Q(28,"View Restricted+"),L()()()(),K(29,"tbody"),Of(30,lfc,25,31,"tr",null,Nf),L()());a&2&&(B(30),Pf(b.rolesTableData))},dependencies:[Dy,KW,pT,gB,eB,oK,iA],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 $2d=function(){this.rolesMap=Yec;this.isSaving=!1;this.saveRolesMap=new XP;this.rolesUnderEdit=Yec;this.formIsValid=!0;this.standardRolesTableData=[];this.advancedRolesTableData=[]},a3d=function(a){var b=a.rolesUnderEdit,c;var d=[{ariaLabel:"Component Admin role",label:"Component Admins",users:b==null?void 0:b.componentAdmin,roleType:"componentAdmin",grantedPermissions:{componentAdmin:"inherited",createIssues:"inherited",issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,
restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Component Admins are granted all the permissions to manage the component and all issues in this component. They can't view restricted content. Typical Component Admins are team leads."},{ariaLabel:"Issue Admin role",label:"Issue Admins",users:b==null?void 0:b.issueAdmin,roleType:"issueAdmin",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,
restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Issue Admins are granted all permissions to manage issues, but can't edit component settings. They can't view restricted content. Typical Issue Admins are team members."},{ariaLabel:"Issue Editor role",label:"Issue Editors",users:b==null?void 0:b.editor,roleType:"editor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},
includeAliases:((c=a.component.accessLimit)==null?void 0:c.accessLevel)!=="EXTERNAL_PUBLIC",includeViewAliases:!1,tooltip:"Issue Editors are granted all issue-related permissions except for admin permissions such as delete an issue or comment, or change restrictions. They can't view restricted content. Typical Issue Editors are collaborating team members."},{ariaLabel:"Issue Contributor role",label:"Issue Contributors",users:b==null?void 0:b.contributor,roleType:"contributor",grantedPermissions:{componentAdmin:!1,
createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Issue Contributors can read, comment, and create issues, but they can't edit issues. They can't view restricted content. Typical Issue Contributors are external partners or public users."}];a.standardRolesTableData=d;b=a.rolesUnderEdit;var e,f;d=[{ariaLabel:"Component Admin Only role",label:"Component Admins Only",users:b==null?
void 0:b.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:"inherited",createIssues:"inherited",issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Component Admin Only role can edit the component settings and create issues, but otherwise have no issue-related permissions.",chips:{displayText:"Inherited Admins",values:(f=b.inheritedComponentAdmin)!=
null?f:[]}},{ariaLabel:"Issue Creators Only role",label:"Issue Creators Only",users:b==null?void 0:b.createIssuesOnly,roleType:"createIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the issue Issue Creators Only role can create issues, but have no other permissions. For example, they are not able to view issues they have created."},
{ariaLabel:"Issue Admin Only role",label:"Issue Admins Only",users:b==null?void 0:b.issueAdminOnly,roleType:"issueAdminOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Issue Admin Only role have all issue permissions but cannot create new issues."},{ariaLabel:"Issue Editors (existing issues only) role",label:"Issue Editors (existing issues only)",
users:b==null?void 0:b.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:((e=a.component.accessLimit)==null?void 0:e.accessLevel)!=="EXTERNAL_PUBLIC",includeViewAliases:!1,tooltip:"Issue Editors (existing issues only) have the issue editor's permission on existing issues, but they can't create new issues in this component."},
{ariaLabel:"Issue Commenter Only role",label:"Issue Commenter Only",users:b==null?void 0:b.commentOnly,roleType:"commentOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the Issue Commenter Only role may view and comment on issues on this component"},{ariaLabel:"Restricted Plus Content Viewer role",label:"Restricted+ Content Viewer",
users:b==null?void 0:b.viewRestrictedPlus,roleType:"viewRestrictedPlus",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!0},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted+ Content Viewers can view Restricted+ content on an issue.",customValidators:a.rolesEditor.restrictedPlusReadersValidators},{ariaLabel:"Restricted Content Viewer role",label:"Restricted Content Viewer",users:b==
null?void 0:b.viewRestricted,roleType:"viewRestricted",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted Content Viewers can view restricted content on an issue."},{ariaLabel:"Issue Viewer role",label:"Issue Viewers",users:b==null?void 0:b.viewer,roleType:"viewer",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,
issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!0,tooltip:"Issue Viewers can only view issues in this component, but can't comment or edit issues."}];a.advancedRolesTableData=d},b3d=function(a){return a.advancedRolesTableData.some(function(b){return b.users.length>0})},c3d=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};h=$2d.prototype;h.ngOnInit=function(){c3d(this);a3d(this)};
h.ngOnChanges=function(a){a.rolesMap&&c3d(this);a3d(this)};h.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};h.getComponentAccessLevel=function(){if(this.component.accessLimit)return this.component.accessLimit.accessLevel};h.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};h.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
h.canSave=function(){return this.canEdit()&&(!mm(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};$2d.\u0275fac=function(a){return new (a||$2d)};
$2d.\u0275cmp=D({type:$2d,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},standalone:!1,features:[bx],decls:12,vars:9,consts:[[3,"rolesMapUpdated","formIsValid","rolesTableData","canEdit","accessLevel"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["type","button","mat-raised-button","","aria-label","Update","color","primary",3,"click","disabled"],["type","button","mat-raised-button",
"","aria-label","Revert Changes",3,"click","disabled"]],template:function(a,b){a&1&&(M(0,"access-limit-settings"),K(1,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),L(),K(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),Q(5," Advanced Roles "),L()(),K(6,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=
c}),L()(),M(7,"expanded-access-settings"),K(8,"button",2),N("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),Q(9,"Update"),L(),K(10,"button",3),N("click",function(){c3d(b);a3d(b)}),Q(11," Revert Changes\n"),L());a&2&&(B(),I("rolesTableData",b.standardRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(),I("expanded",b3d(b)),B(4),I("rolesTableData",b.advancedRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(2),
I("disabled",!b.canSave()),B(2),I("disabled",!!mm(b.rolesMap,b.rolesUnderEdit)))},dependencies:[DL,EL,FL,gB,cB,N8,L8,M8],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 O8=function(){Z.apply(this,arguments);this.rolesEditor=p(K8);this.route=p(Mj);this.tabIndex=0;this.onTabChange=new XP;this.selectedTabIndex=this.tabIndex};Y(O8,Z);O8.\u0275dir=Z.\u0275dir;O8.prototype.ngOnChanges=function(a){var b;a=(b=a.tabIndex)==null?void 0:b.currentValue;a!=null&&(this.selectedTabIndex=a)};
O8.prototype.ngOnInit=function(){var a=this;this.selectedTabIndex=this.tabIndex;this.route.paramMap.pipe(A(function(b){return b.get("componentId")}),we(Qm),Af(function(b){return a.rolesEditor.initialize(b)}),Bf(this.destroyed$)).subscribe(function(){V2d(a.rolesEditor)})};
O8.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)};O8.prototype.isSaving=function(){return this.rolesEditor.isSaving};O8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(O8)))(b||O8)}}();
O8.\u0275cmp=D({type:O8,selectors:[["role-based-permissions"]],viewQuery:function(a,b){a&1&&hg(rL,5,Jd);if(a&2){var c;lg(c=mg())&&(b.tabs=c)}},inputs:{tabIndex:"tabIndex"},outputs:{onTabChange:"onTabChange"},standalone:!1,features:[Gg([K8,G8]),Gf,bx],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,mfc,2,0,"div",0),F(1,ofc,7,9,"div"));a&2&&(G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?-1:0),B(),G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?1:-1))},dependencies:[wL,rL,sL,$T,H8,$2d],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var d3d=["archiveDialog"],e3d=["archiveButton"],f3d=["metadataForm"],P8=function(){Z.apply(this,arguments);var a=this;this.cdr=p(YP,{self:!0});this.routeParams=p(rS);this.bLocation=p(ZT);this.templatesApi=p(OO);this.paths=p(mW);this.appHistory=p(I2);this.butterBar=p(QN);this.pageTitle=p(m2);this.activeSession=p(qu);this.documentationLinks=p(YR);this.matDialogService=p(QA);this.analytics=p(aQ);this.checkBeforeExit=p(uY);this.userAccess=p(yP);this.componentActions=p(WV);this.errorHandler=p(kO);this.componentUpdates=
p(zQd);this.componentUpdatesApi=p(B8);this.confirmationDialogService=p(ZR);this.appEvents=p(PO);this.teamsService=p(KQ);this.sloApi=p(EQ);this.sloService=p(FQ);this.trackerHelpers=p(fS);this.tabsService=p(D8);this.customFieldHelper=p(uS);this.componentId$=new wf(1);this.componentListRoute=E5a;this.showSloInheritancePath=!1;this.component$=new Nj(null);this.componentTrackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.componentTrackerId$.pipe(A(function(b){var c,
d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.parentComponent$=new Nj(null);this.componentTeam$=new Nj(null);this.team$=this.componentTeam$.pipe(Af(function(b){return(b=b==null?void 0:b.id)&&b!=="0"?LQ(a.teamsService,b):ee(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(Af(function(b){var c;return(b=b==null?void 0:(c=b.team)==null?void 0:c.id)&&b!=="0"?LQ(a.teamsService,b):ee(null)}));this.inheritedSloMetadata$=le([this.component$,this.parentComponent$,
this.team$]).pipe(A(function(b){var c=m(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(pf(),Af(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}}):ee({id:"0"})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(pf(),Af(function(b){if(!b)return ee({name:"None",type:"none"});b=Igc(b);var c=b.sourceTeamId,d=b.sourceComponentId;return c&&c!=="0"?a.teamsService.getTeam(c).pipe(A(function(e){var f;return{name:(f=e==null?void 0:e.name)!=null?f:c,type:"team",link:{path:"/teams/"+c+"/edit",fragment:"slo"}}})):d?a.componentActions.get(d).then(function(e){var f;
return{name:(f=e.name)!=null?f:d,type:"component",link:{path:"/components/"+d+"/edit"}}}):ee(null)}));this.policySourcePath$=le([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(A(function(b){var c=m(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=Igc(c);c=f.sourceComponentId;d=Kgc(d,f.sourceTeamId,b.team,e);return c===null?{componentPath:null,teamPath:d}:{componentPath:Jgc(b,c),
teamPath:d}}));this.component=null;this.orderedCustomFields=[];this.parentComponent=null;this.descendants=[];this.isLoading=this.hasInitialized=!1;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent=this.originalComponent=null;this.isAdminInternal=this.isUpdating=this.isArchiving=!1;this.metadataForm=null;this.error="";this.isComponentSloEditor=this.isEditorInternal=!1;this.updateDiffs=void 0;this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=
!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=this.activeSession.getFlag("enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(we(Boolean),Af(function(b){return a.sloApi.executor.get({url:"action/components/"+b+"/slo_edit_policy",responseConstructor:Djd}).pipe(A(n5a))}));this.getSloManagementLink=F5a};Y(P8,Z);P8.\u0275dir=Z.\u0275dir;
P8.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(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);g3d(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();h3d(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.orderedCustomFields=
Lgc(b)}));this.hasInitialized=!0;this.tabsService.componentReady$.next()};var h3d=function(a){a=[i3d(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)];return Promise.all(a).then(function(){})};h=P8.prototype;h.isAdmin=function(){return this.isAdminInternal};h.isSaving=function(){return this.isUpdating||this.isArchiving};h.isArchived=function(){return this.component?this.component.archived:!1};h.isPublic=function(){return lt(this.component)};h.isExternal=function(){return kt(this.component)};
h.isParentPublic=function(){return!(!this.parentComponent||!lt(this.parentComponent))};h.isParentPartner=function(){return!(!this.parentComponent||!esb(this.parentComponent))};var Zfc=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};P8.prototype.hasUnsavedMetadataChanges=function(){return!(mm(this.component,this.originalComponent)&&mm(this.parentComponent,this.originalParentComponent))};
P8.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var j3d=function(a){var b=ro();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:Bh("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},k3d=function(a){var b=ro();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:Dh([Bh('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.'),Eh("br",{}),Eh("br",{}),Bh('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.'),
Eh("br",{}),Eh("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};P8.prototype.saveMetadata=function(){var a=this;return l3d(this)?k3d(this).then(function(b){return b?j3d(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return h3d(a)})}):Promise.resolve()};
P8.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;Pr(this.butterBar,"Saving changes ...",0);return m3d(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return n3d(a)}).then(function(){return o3d(a)}).then(function(){return p3d(a)}).then(function(){Pr(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var m3d=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)},n3d=function(a){return a.component.slo&&!mm(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)},o3d=function(a){return a.component.team&&!mm(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)},p3d=function(a){return q3d(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)},q3d=function(a){var b=pm(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!mm(a.originalComponent,b)},l3d=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};P8.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};var i3d=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
P8.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=pm(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled=this.component.commentEditState=="ENABLED"};var ogc=function(a){a.componentActions.getUncached(a.componentId).then(function(b){b=vS(a.customFieldHelper,b);a.orderedCustomFields=Lgc(b)})};
P8.prototype.loadComponent=function(a){var b=this;this.isLoading=!0;return this.componentActions.getUncached(a).then(function(c){b.updateComponentAndOriginalComponent(c);b.currentName=c.name;c.parentComponentId&&b.loadParentComponent(c.parentComponentId);var d=vS(b.customFieldHelper,c);b.orderedCustomFields=Lgc(d);b.pageTitle.setTitle("Component: "+c.name);b.archiveAction=c.archived?"Unarchive":"Archive";b.commentEditsEnabled=c.commentEditState=="ENABLED";b.component.parentComponentId||(b.isParentComponentRequired=
!1)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.hasInitialized&&b.cdr.detectChanges()})};P8.prototype.loadUserAccess=function(a){var b=this,c=fq("COMPONENT",a);zP(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:zP(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var g3d=function(a){zP(a.userAccess,"writer",fq("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},Bfc=function(a){var b,c=fu(a.trackerHelpers,(b=a.parentComponent)==null?void 0:b.componentPathInfo);return qs(a.activeSession)&&(!c||!c.componentPathId||c.componentPathId.length===0)},jgc=function(a){return a.isSaving()||!a.isEditorInternal};h=P8.prototype;h.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};
h.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent=pm(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.getRecentIssuesLink=function(){var a=this.isArchived();return xr(this.componentId,{includeArchived:a})};h.componentPermissions=function(a){return{path:"/components/"+a,fragment:this.tabsService.Tab.ACCESS}};
h.createIssue=function(){this.trackClick("createIssue");var a={};this.bLocation.setUrl(this.paths.createIssue((a.component=String(this.component.componentId),a)))};h.createChild=function(){this.bLocation.setUrl(ps.createComponent.makeHref(this.component.componentId))};h.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var pfc=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,Pr(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;OA(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(Bf(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.")};
P8.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 eUa(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:wb(b,"unexpected value "+b+"!")}};
P8.prototype.archive=function(){var a=this;this.isArchiving=!0;Pr(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);Pr(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;Pr(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Rp(b)?Sp(b):b));a.isArchiving=!1})};
P8.prototype.loadTemplates=function(a){var b=this;return this.templatesApi.query(a).then(function(c){b.templates=c.map(function(d){var e=d.name;e||(e=d.default?"(default template)":"(unnamed template)");var f=b.paths.getBaseUrl(),g={};g=b.paths.createIssue((g.component=a||void 0,g.template=d.templateId?String(d.templateId):void 0,g));return{name:e,description:d.description||"",url:f+g}})}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
P8.prototype.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};
var r3d=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=rLb(d.addMask.paths),g=rLb(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},l=d.add;d=d.remove;for(var r=m(new Set([].concat(q(f),q(g)))),w=r.next();!w.done;w=r.next()){var x=w.value;if(w=xQd.get(x))if(x==="name"){var C=Nt(g,x,d.name);x=Nt(f,x,l.name);k.diffs.push(Ot(w,C,x))}else if(x==="description")C=
Nt(g,x,d.description),x=Nt(f,x,l.description),k.diffs.push(Ot(w,C,x));else if(x==="parentComponentId")C=Nt(g,x,String(d.parentComponentId)),x=Nt(f,x,String(l.parentComponentId)),k.diffs.push(Ot(w,C,x));else if(x==="isArchived")C=Nt(g,x,String(d.archived)),x=Nt(f,x,String(l.archived)),k.diffs.push(Ot(w,C,x));else if(x==="commentEditState"){var H=yQd.get(d.commentEditState);C=yQd.get(l.commentEditState);H&&C&&(H=Nt(g,x,H),x=Nt(f,x,C),k.diffs.push(Ot(w,H,x)))}else x==="defaultTemplateId"?(C=Nt(g,x,String(d.defaultTemplateId)),
x=Nt(f,x,String(l.defaultTemplateId)),k.diffs.push(Ot(w,C,x))):x==="slo"?e.sessionIsInternal&&(C=Nt(g,x,xLb(d.slo)),x=Nt(f,x,xLb(l.slo)),k.diffs.push(Ot(w,C,x))):x==="team"?e.sessionIsInternal&&(C=Nt(g,x,yLb(d.team)),x=Nt(f,x,yLb(l.team)),k.diffs.push(Ot(w,C,x))):x==="retentionSettings"?(C=Nt(g,x,vLb(d.retentionSettings)),x=Nt(f,x,vLb(l.retentionSettings)),k.diffs.push(Ot(w,C,x))):e.$log.error("Unsupported diff field "+x)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject(Error())};P8.prototype.showUpdateHistoryModal=function(){var a=this;r3d(this,this.componentId).then(function(){a.matDialogService.open(Q6,{width:"600px",data:{updateDiffs:a.updateDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("component","viewHistory")})};P8.prototype.onSloChange=function(a){a?this.component.slo.id=a.sloId:this.component.slo.id=void 0;a&&s3d(this)};
var Vfc=function(a){var b=!!a.parentComponent,c=a.component.team.id!=="0";return a.isComponentSloEditor&&(c||b)},agc=function(a){var b=!a.component.team||a.component.team.id==="0",c=!a.parentComponent;return a.isComponentSloEditor&&(!a.component.slo.inherit||c&&b)},Ffc=function(a){var b,c,d,e;y(function(f){b=!a.component.parentComponentId;c=a.component.team.id!=="0";return(a.component.parentComponentId?!a.component.team.inherit&&a.component.team.id!=="0":a.component.team.id!=="0")||b&&c?z(f,ie(a.team$.pipe(A(function(g){a.component.slo.id=
g.slo.sloId;s3d(a)}))),0):(d=t3d(a),e=d.id,a.component.slo.id=e,s3d(a),f.jumpTo(0))})},$fc=function(a){var b=a.parentComponent||a.isParentComponentRequired;return a.component.team.id!=="0"||b?!0:!1},t3d=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}},lgc=function(a,b){Pr(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;Pr(a.butterBar,((f=a.component.effortSpec)==null?void 0:f.name)+" saved")}else Pr(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};
P8.prototype.updateComponentAndOriginalComponent=function(a){this.component=pm(a);this.component$.next(this.component);this.originalComponent=pm(a);var b;this.componentTeam$.next((b=this.component.team)!=null?b:null);s3d(this)};P8.prototype.back=function(){J2(this.appHistory)};var s3d=function(a){var b;((b=a.component)==null?0:b.slo)?a.isEnableSloChecked=a.component.slo.id!==void 0:a.isEnableSloChecked=!1};P8.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(P8)))(b||P8)}}();
P8.\u0275cmp=D({type:P8,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(hg(d3d,5),hg(e3d,5),hg(f3d,5));if(a&2){var c;lg(c=mg())&&(b.confirmArchiveDialog=c.first);lg(c=mg())&&(b.archiveButton=c.first);lg(c=mg())&&(b.metadataForm=c.first)}},standalone:!1,features:[Gg([YP]),Gf],decls:3,vars:3,consts:[["archiveDialog",""],["archiveButton",""],["basic",""],["customFields",""],["fieldOrdering",""],["fieldVisibility",""],["templatesList",""],["access",""],["metadataForm",""],[1,"bv2-limited-issue-view"],
[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["format","icon","size","large","tooltip","Go back","ariaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-view-loading"],["mat-button","",3,"routerLinkObj"],["format","flat",3,"disabled"],["format","flat",3,"tooltip","disabled"],["format","flat",3,"onAction","disabled"],["format","flat",3,"onAction","tooltip","disabled"],[1,"edit-resource-header"],[1,"resource-archived"],[1,"keep-focus-ring",
"margin-s-right",3,"click","routerLinkObj"],[3,"accessLevel"],[3,"trackerId"],[1,"component-hierarchy-container"],["componentPathsLinkTo","settings",3,"componentPathInfo","isArchived","label"],[1,"float-clear"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndexChange","selectedIndex"],["label","Basic Information",3,"id"],[4,"ngTemplateOutlet"],[3,"id","label"],["label","Field Ordering",3,"id"],["label","Field Visibility",3,"id"],["label","Templates",3,"id"],["label","Access Control",3,"id"],[1,"edit-resource-panel"],
["name","metadataForm"],[3,"error"],["aria-label","Name",1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","name","name","required","","id","component-name",3,"ngModelChange","ngModel","disabled"],["aria-label","Description",1,"edit-field"],["tabindex","0",1,"field-label-with-help","keep-focus-ring"],["aria-describedby","component-description-bubble","for","component-description",1,"help-label"],[1,"help-container"],["id","component-description-bubble",1,
"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["name","description","aria-describedby","component-description-bubble","id","component-description",3,"ngModelChange","ngModel","disabled"],["tabindex","0","aria-label","Parent component",1,"edit-field"],["role","region","aria-label","Editable Comments",1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabelledby","editable-comments-label permission-toggle-help",
3,"change","checked","disabled"],["id","editable-comments-label",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about editable comments",1,"keep-underline","keep-focus-ring",3,"href"],["role","region","aria-label","Retention Settings",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region",
"tabindex","0","aria-label","SLO Configuration",1,"edit-field",3,"bv2-edit-resource-readonly"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",3,"checked","disabled"],[1,"edit-button-row"],[1,"edit-button-group"],["format","hairline","title","View history for 'Basic Information'"],[1,"edit-field","bv2-edit-resource-readonly"],[3,"children"],["aria-describedby","edit-parent-help-bubble","for","component-parent-id",1,"help-label"],["id","edit-parent-help-bubble",
1,"help-bubble","jfk-bubble"],["id","component-parent-id",3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],["role","region","aria-label","Retention Settings",1,"edit-field"],["for","retention-settings",1,"required"],[1,"edit-field-help"],["target","_blank","aria-label","Learn more about choosing a period of time to retain the data stored in this component.",1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"modelChange","validChange","issueRetentionDisabled",
"isExternal","componentPathInfo","componentId","initialModel"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field"],["for","team-picker"],["id","team-picker"],[3,"modelChange","isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["aria-describedby","edit-slo-help-bubble",1,"help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],
[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-admins-link"],[1,"lock-state"],[1,"edit-field","less-margin"],[3,"routerLinkObj"],[1,"keep-focus-ring","slo-inheritance-link",3,"routerLinkObj"],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"slo-inheritance-path","small",3,"click"],[1,"slo-breadcrumbs"],[3,"componentPath","teamPath"],["target","_blank",1,"keep-focus-ring",3,"routerLinkObj"],["svgIcon","lock-outline"],["svgIcon","lock-open"],
["gmat-checkbox","",1,"slo-override",3,"change","checked","disabled"],[1,"edit-field","component-slo-justification-text"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModelChange","change","ngModel","disabled"],[1,"edit-field","component-slo-id-select"],["for","component-slo-id"],["id","component-slo-id","aria-describedby","edit-slo-help-bubble","tabindex","-1",1,"bv2-slo-picker","bv2-picker",3,"onSloSelect","bv2Disabled","boundId","bv2Placeholder"],["mat-icon-button","","aria-label",
"Go to SLO management page","matTooltip","Go to SLO management page.",1,"small",3,"routerLinkObj","target"],["for","component-slo-justification","id","component-settings-slo-justification-label",1,"required"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","matTooltip","Justification is required to override the org SLO.","aria-label","Justification is required to override the org SLO.",1,"slo-info","icon-s","valign-middle"],["name","comment","aria-labelledby","component-settings-slo-justification-label",
"required","",3,"ngModelChange","ngModel","disabled"],["svgIcon","pop-out",1,"icon-s"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",3,"change","checked","disabled"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"onVisit","children"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"updateComponent","effortSpec",
"parentEffortSpec","disabled"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[3,"editMode","isSaving","component","parentComponent"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"onReload","fields","componentId","fieldOrdering","isAdmin"],[3,"isAdmin","componentPathInfo"],[3,"componentId","supportCustomFields"],[1,"component-field"],[3,"href"],[3,"onTabChange",
"tabIndex"],["mat-dialog-title",""],[1,"b-archive-component-list"],["type","button","mat-button","","mat-dialog-close","","aria-label","Click to close the dialog without archiving the component",3,"click"],["type","button","mat-flat-button","","mat-dialog-close","","aria-label","Click to archive the component","color","warn",3,"click"],["aria-label","Learn more about archiving components","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["aria-label","Learn more about buganizer retention",
"target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["aria-label","Learn more on how to recursively unarchive subcomponents","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"component"]],template:function(a,b){a&1&&(F(0,Ggc,11,3),T(1,"async"),Lf(2,Hgc,2,1,"div",9));a&2&&G(U(1,1,b.showTrackerRedirect$)?2:0)},dependencies:[MU,Kx,Dy,QO,SV,UV,EQd,A6,YYd,G6,Q3,G4,eZd,E2d,hE,yj,$D,aE,sE,gE,eE,pT,gB,cB,eB,fL,aI,RA,TA,VA,UA,qz,OU,sT,wL,rL,sL,oK,iA,B5,O8,I2d,z5,$T,iW,$V,V7,
Lx,Nx],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 u3d=["deleteTriageDialog"],Lhc=function(a){return{value:a}},jhc=function(a){return[a]},khc=function(){return[]},v3d={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping",TRIAGE:"triage",ACCESS:"accessControl"},Q8=function(){Z.call(this);var a=this;this.activeSession=p(qu);this.accessPolicyApi=p(FO);this.appHistory=p(I2);this.butterBar=p(QN);this.checkBeforeExit=p(uY);this.componentActions=p(WV);this.errorHandler=p(kO);this.location=p(ZT);this.matDialogService=p(QA);this.pageTitle=p(m2);this.routeParams=
p(rS);this.teamsService=p(KQ);this.userAccess=p(yP);this.starredTeamsService=p(QR);this.sloApi=p(EQ);this.sloService=p(FQ);this.triageViewConfigDialogService=p(c1);this.destroyRef=p(Ee);this.tableColumns=["starred","name","actions"];this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new Nj("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new wf(1);this.teamSlo$=
this.team$.pipe(A(function(b){return b.slo}));this.isEscalationOwnerValid=!1;this.escalationOwnerInvalidErrorMessage="";this.escalationOwnerEmail$=new Nj("");this.escalationOwner$=new Nj("");this.escalationOwnerUserValidators={escalationOwnerNotUser:function(b){if(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("USER:"))return!1}return!0}};this.escalationOwnerGooglerValidators={escalationOwnerNotGoogler:function(b){if(b){b=m(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("UNRESTRICTED_GOOGLER:"))return!1}return!0}};
this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.teamAdmins$=Xd(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(A(function(b){return b.admins.filter(ERa).map(ds)}));this.teamLeads$=this.team$.pipe(A(function(b){return b.members.filter(function(c){return c.isLead}).map(function(c){var d,e;return"USER:"+((e=(d=c.user)==null?void 0:d.emailAddress)!=null?e:"")})}));this.adminsAndLeads$=le([this.teamAdmins$,this.teamLeads$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=
c.next().value;var d=new Set(b);c=c.filter(function(e){return!d.has(e)});return[].concat(q(b),q(c))}));this.originalSloDelegates$=new Nj([]);this.sloDelegates$=pe(function(){return a.accessPolicyApi.get("TEAM_SLO",a.teamId)}).pipe(A(function(b){return b.admins.map(ds)}));this.sloDelegates=[];this.associatedComponents$=Xd(this.componentActions.search("overrideteamid:"+this.teamId));this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(A(function(b){return b.values().next().value}));
this.teamPath$=this.team$.pipe(A(function(b){var c=b.pathNames;return b.pathIds.map(function(d,e){return{id:d,name:c[e]}})}));this.isRootTeam$=this.teamPath$.pipe(A(function(b){return b.length<=1?!0:!1}));this.parentTeam$=le([this.isRootTeam$,this.teamPath$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b?ee(null):a.teamsService.getTeam(c[c.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(Af(function(b){var c=b==null?void 0:b.slo.sloId;return c&&
c!=="0"?a.sloService.get(c).then(function(d){return{id:c,link:F5a(c),slo:d}}):ee({id:"0"})}));this.sloPolicySource$=le([this.parentTeam$,this.teamPath$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;var d=b==null?void 0:b.slo.sourceTeamId;b=c.find(function(e){return e.id===d});return d&&b?{name:b.name,link:{path:"/teams/"+d+"/edit",fragment:"slo"}}:null}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:Ejd}).pipe(A(m5a));
this.Tab=v3d;this.enableSloLockingUi=this.activeSession.getFlag("enableSloLockingUi");this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.enableTeamAdmin=this.activeSession.getFlag("enableTeamAdmin")&&this.activeSession.isInternalSession();this.isSloInheritEnabled$=new Nj(!0);this.isOwnerInheritEnabled$=new Nj(!0);this.sloId$=new Nj("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new Nj(!1);this.hasSloReadAccess$=this.sloId$.pipe(Af(function(b){return zP(a.userAccess,
"reader","slos/"+b)}),zf(!1));this.sloPickerLink$=le([this.sloId$,this.hasSloReadAccess$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b&&Number(b)>0&&c?F5a(b):null}));this.hasUnsavedChanges$=le([this.team$,this.sloId$,this.isSloInheritEnabled$,this.isOwnerInheritEnabled$,this.sloLocked$,this.sloJustification$,this.escalationOwnerEmail$]).pipe(A(function(b){var c=m(b);var d=c.next().value;b=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=
c.next().value;c=c.next().value;var l=d.slo,r,w;d=(r=d.extra)==null?void 0:(w=r.escalationOwnerOverride)==null?void 0:w.emailAddress;var x;return l.inherit!==e||l.sloId!==b||g!==a.originalSloLock||l.comment!==k||d!==((x=f?void 0:{emailAddress:c})==null?void 0:x.emailAddress)}));this.hasUnsavedChanges=!1;this.teamExperiments={id:this.teamId,triage:[{id:0}],playbooks:[]};this.hasTeamEditAccess=this.hasSloEditAccess=!1;this.starInProgress={};this.team$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.pageTitle.setTitle("Team: "+
b.name)});zP(this.userAccess,"writer","teams/"+this.teamId+"/slo").then(function(b){a.hasSloEditAccess=b});zP(this.userAccess,"writer","teams/"+this.teamId).then(function(b){a.hasTeamEditAccess=b});this.hasUnsavedChanges$.pipe(Uj(this.destroyRef)).subscribe(function(b){a.hasUnsavedChanges=b});this.subscriptions.add(vY(this.checkBeforeExit,function(){return a.hasUnsavedChanges},!1))};Y(Q8,Z);Q8.\u0275dir=Z.\u0275dir;
Q8.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return b=a.location.hash(),b==="basic"?a.selectedTabIndex=0:b==="slo"?a.selectedTabIndex=1:b==="componentMapping"?a.selectedTabIndex=2:b==="triage"&&a.enableTeamScope?a.selectedTabIndex=3:b==="accessControl"&&(a.selectedTabIndex=4),Yd(k,2),z(k,ie(a.teamsService.get(a.teamId)),4);case 4:c=k.yieldResult;bt(k,3);break;case 2:return be(k),a.butterBar.showWarning("Unable to fetch team ID '"+a.teamId+
"'"),k.return();case 3:return a.team$.next(c),nhc(a),d=a.originalSloDelegates$,e=d.next,z(k,ie(a.sloDelegates$),5);case 5:return e.call(d,k.yieldResult),a.sloDelegates=a.originalSloDelegates$.getValue(),z(k,ie(a.parentTeam$),6);case 6:a.parentTeam=k.yieldResult||null;if(!a.enableTeamScope){k.jumpTo(0);break}return z(k,ie(Wjd(a.teamsService,a.teamId)).catch(function(){}),8);case 8:f=k.yieldResult,a.teamExperiments=(g=f)!=null?g:{id:a.teamId,triage:[{id:0}],playbooks:[]},ce(k)}})};
Q8.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};Q8.prototype.onSloChange=function(a){a&&(this.sloId=a.sloId)};
var mhc=function(a,b){var c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:if(!a.validate())return r.return();Pr(a.butterBar,"Saving changes...",0);Yd(r,2);if(((c=b.extra)==null?void 0:(d=c.escalationOwner)==null?void 0:d.emailAddress)===a.escalationOwnerEmail){r.jumpTo(4);break}var w,x;var C=a.teamsService.updateTeam(Object.assign({},b,{extra:{escalationOwner:{emailAddress:a.escalationOwnerEmail},defaultEscalationOwner:{emailAddress:(w=b.extra)==null?void 0:(x=w.defaultEscalationOwner)==
null?void 0:x.emailAddress},escalationOwnerOverride:a.isOwnerInheritEnabled?void 0:{emailAddress:a.escalationOwnerEmail}}}));return z(r,ie(C),5);case 5:e=r.yieldResult,a.team$.next(e);case 4:if(a.sloLocked===a.originalSloLock){r.jumpTo(6);break}C=a.sloApi;w=a.teamId;x=a.sloLocked;var H=new Bjd;x=Im(H,2,x?1:2).setTeamId(Number(w));C=C.executor.post({url:"action/teams/"+w+"/slo_edit_policy",responseConstructor:Hjd,body:x}).pipe(A(m5a));return z(r,ie(C),7);case 7:f=r.yieldResult,a.originalSloLock=f;
case 6:g=b.slo;if(g.inherit===a.isSloInheritEnabled&&g.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&g.comment===a.sloJustification){r.jumpTo(8);break}x={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?"":a.sloJustification$.getValue(),sourceTeamId:"0"};C=a.teamsService;w=a.teamId;x=(new Ujd).setIt(OZa(x));C=C.executor.post({url:"/action/teams/"+w+"/update_slo",body:x,responseConstructor:HQ}).pipe(A(u5a));return z(r,ie(C),9);case 9:k=r.yieldResult,a.team$.next(k);case 8:Pr(a.butterBar,
"Save complete.");bt(r,0);break;case 2:l=be(r),mO(a.errorHandler,l),ce(r)}})},w3d=function(a){var b,c;y(function(d){if(d.nextAddress==1)return Pr(a.butterBar,"Saving changes...",0),z(d,ie(Xjd(a.teamsService,a.teamExperiments)),2);b=d.yieldResult;Pr(a.butterBar,"Save complete.");a.teamExperiments=(c=b)!=null?c:{id:a.teamId,triage:[{id:0}],playbooks:[]};ce(d)})},Ihc=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1){try{b=ks(is()),b.admins=hs(a.sloDelegates)}catch(f){return c="An unknown problem occurred",
f instanceof Error&&(c=f.message),a.butterBar.showWarning(c),e.return()}Pr(a.butterBar,"Saving changes...",0);Yd(e,2);return z(e,a.accessPolicyApi.update("TEAM_SLO",a.teamId,b).then(function(){Pr(a.butterBar,"Save complete.");a.originalSloDelegates$.next(a.sloDelegates)}),4)}if(e.nextAddress!=2)return bt(e,0);d=be(e);a.butterBar.showWarning(Sp(d));return e.return()})},Jhc=function(a){return y(function(b){a.sloDelegates=a.originalSloDelegates$.getValue();ce(b)})};
Q8.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};Q8.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a.toString()&&d.teamId===b})};
var hhc=function(a){var b;y(function(c){if(c.nextAddress==1)return z(c,a.getDefaultEscalationOwner(),2);b=c.yieldResult;a.escalationOwner=b?"USER:"+b:"";ce(c)})},x3d=function(a){var b,c,d,e,f,g,k,l,r,w,x,C;y(function(H){if(H.nextAddress==1)return z(H,ie(a.team$),2);b=H.yieldResult;c=b.extra;f=(d=c)==null?void 0:(e=d.escalationOwner)==null?void 0:e.emailAddress;l=(g=c)==null?void 0:(k=g.escalationOwnerOverride)==null?void 0:k.emailAddress;w=(r=l)!=null?r:f;a.escalationOwner=w?"USER:"+w:"";a.isOwnerInheritEnabled=
((x=c)==null?void 0:x.escalationOwnerOverride)===void 0;a.isOwnerInheritEnabled||l===""||f===l||(a.escalationOwnerInvalidErrorMessage="Selected owner is invalid, falling back to default owner: "+((C=f)!=null?C:""));ce(H)})};
Q8.prototype.getDefaultEscalationOwner=function(){var a=this,b,c,d,e,f,g,k,l,r;return y(function(w){if(w.nextAddress==1)return z(w,ie(a.team$),2);if(w.nextAddress!=3)return b=w.yieldResult,(e=(c=b.extra)==null?void 0:(d=c.defaultEscalationOwner)==null?void 0:d.emailAddress)?w.return(e):z(w,ie(a.parentTeam$),3);f=w.yieldResult;return w.return((r=(g=f)==null?void 0:(k=g.extra)==null?void 0:(l=k.escalationOwner)==null?void 0:l.emailAddress)!=null?r:"")})};
var y3d=function(a){ie(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},z3d=function(a){ie(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},nhc=function(a){a.error="";x3d(a);y3d(a);a.enableSloLockingUi&&z3d(a)};Q8.prototype.back=function(){J2(this.appHistory)};Q8.prototype.getTriageLink=function(a,b){return ps.viewTriage.makeHref(b,a)};
Q8.prototype.toggleStar=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return z(e,$ld(c.starredTeamsService,a.toString(),b),3)}c.starInProgress[d]=!1;ce(e)})};
var Bhc=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){d=a.teamExperiments.triage.find(function(l){return l.id===b});if(!d)return k.return();e={teamExperiments:a.teamExperiments,teamName:c.name,triage:d};return z(k,ie(ee(a.triageViewConfigDialogService.show(e))),2)}if(k.nextAddress!=3)return(f=k.yieldResult)?z(k,ie(Wjd(a.teamsService,a.teamId)),3):k.return();if(g=k.yieldResult)a.teamExperiments=g;ce(k)})},Fhc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return c=
{teamExperiments:a.teamExperiments,teamName:b.name},z(f,ie(ee(a.triageViewConfigDialogService.show(c))),2);if(f.nextAddress!=3)return(d=f.yieldResult)?z(f,ie(Wjd(a.teamsService,a.teamId)),3):f.return();if(e=f.yieldResult)a.teamExperiments=e;ce(f)})},A3d=function(a,b){var c=a.teamExperiments.triage.findIndex(function(d){return d.id===b});c!==-1&&(a.teamExperiments.triage.splice(c,1),w3d(a))},zhc=function(a,b){OA(a.matDialogService.open(a.deleteTriageDialog,{data:b})).pipe(Uj(a.destroyRef)).subscribe(function(c){c&&
A3d(a,b.id)})};
da.Object.defineProperties(Q8.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()}}});Q8.\u0275fac=function(a){return new (a||Q8)};
Q8.\u0275cmp=D({type:Q8,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&(hg(u3d,5),hg(rL,5,Jd));if(a&2){var c;lg(c=mg())&&(b.deleteTriageDialog=c.first);lg(c=mg())&&(b.tabs=c)}},standalone:!1,features:[Gf],decls:10,vars:3,consts:[["deleteTriageDialog",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","aria-label","Go back","color","primary","matTooltip","Go back",1,"large",3,"click"],["svgIcon","arrow-backward",1,"icon-m"],["cdkScrollable",
"",1,"bv2-view"],[1,"edit-resource-header"],["target","_blank",3,"href"],["svgIcon","pop-out",1,"icon-s"],[1,"team-hierarchy-container"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["label","Basic Information",3,"id"],[1,"edit-resource-panel"],[1,"edit-field"],[1,"field-label"],[1,"edit-field-header"],[1,"description"],[1,"field-label-with-help"],[1,"help-label"],[1,"help-container"],[1,"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],
[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],[3,"users"],["label","Team SLO",3,"id"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-inheritance-link",3,"routerLinkObj"],[1,"lock-state"],[3,"error"],[1,"edit-button-row"],["label","Component mapping",3,"id"],["label","Triage",3,"id"],["label","Access Control",3,"id"],["idForInputBox","Users who can manage SLO associations on teams and associated components",
"ariaLabel","SLO delegates",3,"usersChange","users","includeAliases","includeViewAliases"],[3,"teamPath"],[3,"routerLink"],[3,"routerLinkObj"],["svgIcon","lock-outline"],["svgIcon","lock-open"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"override-slo",3,"change","disabled","checked"],[1,"edit-field","slo-justification"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModelChange","change","ngModel","disabled"],[1,"team-slo-id-select",3,"onSloSelect","boundId","bv2Disabled",
"bv2Placeholder"],["mat-icon-button","","matTooltip","Go to SLO management page",1,"small","slo-link",3,"routerLinkObj","target"],["id","team-slo-justification-label",1,"required"],["svgIcon","help-outline",1,"icon-s","valign-middle",3,"matTooltip"],["aria-labelledby","team-slo-justification-label","required","",1,"slo-justification-text",3,"ngModelChange","ngModel","disabled"],["gmat-checkbox","",1,"slo-lock",3,"change","checked","disabled"],["idForInputBox","team-owner","ariaLabel","Escalation owner email",
3,"usersChange","isValid","users","customValidators","detailedUserValidators","maxUserAllowed"],[1,"owner-invalid-error-message"],["gmat-checkbox","",1,"override-owner",3,"change","checked","disabled"],[1,"edit-button-group"],["type","button","gmat-mdc-button","","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","gmat-mdc-button","","mat-stroked-button","","color","primary",3,"click","disabled"],["mat-table","",1,"full-width",3,"dataSource"],["matColumnDef","starred"],
["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","triage-name",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["type","button","mat-button","","color","primary",3,"click","disabled"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","-1",3,"starClicked","starred","starMessage","unStarMessage"],["mat-cell","",1,"triage-name"],
[1,"hover-link",3,"href"],[1,"flex-kids-x"],["type","button","aria-label","Edit","mat-icon-button","",3,"click","disabled"],["svgIcon","edit-outline"],[1,"space-placeholder"],["type","button","mat-icon-button","","aria-label","Remove",3,"disabled"],["type","button","mat-icon-button","","aria-label","Remove",3,"click","disabled"],["svgIcon","delete"],["mat-header-row",""],["mat-row",""],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],
["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4);N("click",function(){u(c);return v(b.back())});M(4,"mat-icon",5);L()()()();K(5,"div",6);F(6,Mhc,111,50);T(7,"async");L();E(8,Nhc,7,3,"ng-template",null,0,Mg)}if(a&2){var d;B(6);G((d=U(7,1,b.team$))?6:-1,d)}},dependencies:[Dy,$E,QO,G4,yj,$D,sE,gE,gB,cB,eB,fL,aI,RA,VA,UA,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,wL,rL,sL,
oK,iA,qz,OU,sT,KW,z5,FY,t5,Lx],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 B3d=["content"],C3d=["task_input"],Uhc=function(a,b){return b.id},D3d=new RegExp(/b-qa\/(\d+)|b-qa.corp.google.com\/issues\/(\d+)/,"i"),E3d=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"),F3d=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"),G3d=new RegExp(/docs.google.com\/(?:document|spreadsheets|presentation)\/d\/([^\/]+)|drive.google.com\/file\/d\/([^\/]+)/,"i"),H3d=new RegExp(/([^\/]+)-review.staging-git.corp.google.com\/c\/(.+)\/\+\/(\d+)|([^\/]+)-review.git.corp.google.com\/c\/(.+)\/\+\/(\d+)/,"i"),I3d=new RegExp(/irm\/(\w+)|irm\.corp\.google\.com\/incidents\/(\w+)/,"i"),R8=function(){Z.call(this);var a=this;this.destroyRef=p(Ee);this.window=p(hR);this.activeSession=p(qu);this.errorHandler=p(kO);this.butterBar=p(QN);this.focusEscapeNotifierFactory=
p(jV);this.tasksService=p(vQ);this.analytics=p(aQ);this.isInternalSession=this.activeSession.isInternalSession();this.cancelClicked=new XP;this.saveClicked=new XP;this.focusEscaped=new XP;this.addTasksForm=new fE("",[wj,function(b){var c;(c=b.value==="")||(b=b.value,c=(ws(a.activeSession)?E3d:D3d).test(b)||F3d.test(b)||G3d.test(b)||H3d.test(b)||I3d.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?ljd(this.tasksService).pipe(Uj(this.destroyRef),jf(function(b){console.error("Error fetching task list:",b);return ee([])})):ee([]);this.saving=!1;this.validationErrorMessage="";this.fb=p(wE);this.gTaskForm=this.fb.group({title:["",wj],details:[""],date:[null],taskListId:["",wj]});this.urlPlaceholder="ex: "+this.window.location.origin+"/issues/123456";this.dynamicBuganizerUrlPattern=new RegExp(Xr(this.window.location.hostname)+
"\\/(?:issues\\/)?(\\d+)","i")};Y(R8,Z);R8.\u0275dir=Z.\u0275dir;R8.prototype.ngAfterViewInit=function(){var a=this;this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Bf(this.destroyed$)).subscribe(function(b){if(b===0){var c;(c=a.focusEscapeNotifier)==null||ICc(c)}else{var d;(d=a.focusEscapeNotifier)==null||My(d)}});this.analytics.trackEvent("taskDialog","open","addTaskDialog")};
R8.prototype.saveChanges=function(){var a=this;this.saving=!0;this.analytics.trackEvent("manualSignal","add","dialog");var b=this.parseUrl(this.addTasksForm.value),c=J3d(this,this.addTasksForm.value)?3E3:0;fjd(this.tasksService,[b],!0).pipe(of(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 J3d=function(a,b){return a.activeSession.isInternalSession()&&(ws(a.activeSession)?E3d:D3d).test(b)||a.dynamicBuganizerUrlPattern.test(b)?!0:!1};
R8.prototype.parseUrl=function(a){if(this.activeSession.isInternalSession()){var b=ws(this.activeSession)?E3d:D3d;if(b.test(a))return"b/"+a.match(b).slice(1).find(function(c){return!!c})}if(F3d.test(a))return"cl/"+a.match(F3d).slice(1).find(function(c){return!!c});if(G3d.test(a))return"drive/"+a.match(G3d).slice(1).find(function(c){return!!c});if(H3d.test(a))return a=a.match(H3d),a[1]?"gerrit/"+a[1]+"."+a[2]+"~"+a[3]:"gerrit/"+a[4]+"."+a[5]+"~"+a[6];if(I3d.test(a))return"irm/"+a.match(I3d).slice(1).find(function(c){return!!c});
if(J3d(this,a)&&(a=a.match(this.dynamicBuganizerUrlPattern),a!=null))return"b/"+a.slice(1).find(function(c){return!!c});throw Error("Ag");};
R8.prototype.saveGTask=function(a){var b=this;this.saving=!0;this.tasksService.saveGTask(a).pipe(Uj(this.destroyRef),Af(function(c){return fjd(b.tasksService,[c],!0)}),qf(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)}})};
R8.prototype.onSubmit=function(){if(this.gTaskForm.valid){var a,b=(new Date((a=this.gTaskForm.value.date)!=null?a:0)).getTime();this.saveGTask({title:this.gTaskForm.value.title,details:this.gTaskForm.value.details,taskListId:this.gTaskForm.value.taskListId,dueDateMs:b})}else this.butterBar.showWarning("Invalid data. Please check the information provided.",this.gTaskForm.value.title)};
da.Object.defineProperties(R8.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")}}});R8.\u0275fac=function(a){return new (a||R8)};
R8.\u0275cmp=D({type:R8,selectors:[["b-add-task-dialog"]],viewQuery:function(a,b){a&1&&(hg(B3d,7),hg(C3d,5));if(a&2){var c;lg(c=mg())&&(b.content=c.first);lg(c=mg())&&(b.taskInput=c.first)}},outputs:{cancelClicked:"cancelClicked",saveClicked:"saveClicked",focusEscaped:"focusEscaped"},standalone:!1,features:[Gf],decls:8,vars:1,consts:[["content",""],["urlTabContent",""],["googleTasksTabContent",""],["task_input",""],["detailsInput",""],["picker",""],[1,"container"],"gmat-tabs  matAlignTabs start matStretchTabs false preserveContent ".split(" "),
[1,"add-task-help-text"],"href;http://go/b-home#manual-alerts;target;_blank;aria-label;Link to user guide for manual signals".split(";"),["appearance","outline"],["type","url","matInput","","aria-label","Enter task URL","required","",1,"task-input",3,"formControl","placeholder"],[1,"actions"],[1,"b-add-task-button-row"],["type","button","mat-button","",1,"cancel",3,"click"],["type","button","mat-button","",1,"save",3,"click","disabled"],[1,"google-tasks-tab-content"],[1,"g-task-form",3,"ngSubmit",
"formGroup"],["appearance","outline",1,"input-form","hard-padding"],"type;text;matInput;;aria-label;Title;placeholder;Enter title;formControlName;title;maxlength;1024;required;".split(";"),["align","end"],"matInput;;formControlName;details;resize;none;cdkAutosizeMinRows;4;cdkAutosizeMaxRows;4;placeholder;Add details;aria-label;Details;maxlength;8192".split(";"),["appearance","outline",1,"hard-padding"],["svgIcon","google-tasks-logo","matIconPrefix",""],["formControlName","taskListId","placeholder",
"Select a task list"],["aria-label","Task list",3,"value"],[1,"error-message"],["appearance","outline",1,"calendar-width"],["matPrefix","",3,"for"],["matInput","","placeholder","Select a date","formControlName","date","aria-label","Date","readonly","",3,"click","matDatepicker"],[1,"button-container"],["mat-button","","type","submit",3,"disabled"],["label","URL"],[4,"ngTemplateOutlet"],["label","Google Tasks"]],template:function(a,b){a&1&&(K(0,"div",6,0),E(2,Qhc,14,5,"ng-template",null,1,Mg)(4,Vhc,
30,10,"ng-template",null,2,Mg),F(6,Yhc,5,2,"mat-tab-group",7)(7,$hc,1,1,"ng-container"),L());a&2&&(B(6),G(b.isInternalSession?6:7))},dependencies:[Kx,Dy,gB,cB,ER,CR,DR,hE,yj,$D,aE,sE,tE,mE,oE,nE,MD,DD,CD,FD,vU,MH,cA,BD,zE,wL,rL,sL,Lx],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 K3d=[{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"}],S8=function(){Z.call(this);var a=this;this.overlay=p(Nz);this.element=p(Jd);this.openOnEnter=this.openOnClick=!0;this.taskAdded=new XP;this.onClose=new XP;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==
null||b.dispose()})};Y(S8,Z);h=S8.prototype;h.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};h.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};h.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};h.close=function(){if(this.opened){var a;(a=this.overlayRef)==null||a.dispose();this.overlayRef=void 0;this.opened=!1;this.onClose.emit()}};
h.onHostTab=function(a){this.opened&&this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(My(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};h.onHostShiftTab=function(a){this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(ICc(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-add-task-dialog-backdrop",panelClass:"b-add-task-dialog-popup"});a.overlayElement.setAttribute("role","dialog");a.overlayElement.setAttribute("title","Add Task By URL");return a};
h.attach=function(){var a=this,b=new Hz(R8),c;this.addTaskContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;setTimeout(function(){a.connectValues();var d;(d=a.addTaskContent)==null||d.taskInput.nativeElement.focus();var e;(e=a.overlayRef)==null||e.updatePosition()})};h.getPositionStrategy=function(){return zz(Az(Bz(Fz(this.overlay.position(),this.element)),8),K3d)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h.connectValues=function(){var a=this;if(this.addTaskContent&&this.overlayRef){var b=ve(this.overlayRef._detachments,this.destroyed$);this.addTaskContent.saveClicked.pipe(Bf(b)).subscribe(function(){a.taskAdded.emit()});ve(this.addTaskContent.saveClicked,this.addTaskContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(we(function(c){return c.code==="Escape"}))).pipe(Bf(b)).subscribe(function(){a.close()})}};S8.\u0275fac=function(a){return new (a||S8)};
S8.\u0275dir=df({type:S8,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&&Kf("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter"},outputs:{taskAdded:"taskAdded",onClose:"onClose"},
exportAs:["bAddTaskDialogToggle"],standalone:!1,features:[Gf]});var L3d=function(){};L3d.prototype.transform=function(a){var b=a.comeBackTimestamp;return"Upcoming out of office starting "+M3d.format(new Date(a.futureOooTimestamp.seconds*1E3))+" - back on "+M3d.format(new Date(b.seconds*1E3))};L3d.\u0275fac=function(a){return new (a||L3d)};L3d.\u0275pipe=ef({name:"futureAvailability",type:L3d,pure:!0,standalone:!1});var M3d=new nl(VF.WEEKDAY_MONTH_DAY_MEDIUM);var T8=function(){this.activeSession=p(qu);this.hovercardReady$=new wf(1);this.environmentType=this.activeSession.getEnvironmentType()};T8.prototype.ngOnInit=function(){this.hovercardReady$.next()};T8.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};T8.\u0275fac=function(a){return new (a||T8)};
T8.\u0275cmp=D({type:T8,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,aic,13,7,"div",0);
a&2&&G(b.iteration?0:-1)},dependencies:[Dy,sV],encapsulation:2});var U8=function(){this.analytics=p(aQ);this.domSafe=p(iR);this.activeSession=p(qu);this.environmentType=this.activeSession.getEnvironmentType()};U8.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","iteration-chip")};U8.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};U8.\u0275fac=function(a){return new (a||U8)};
U8.\u0275cmp=D({type:U8,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,cic,5,1);a&2&&G(b.iteration?0:-1)},dependencies:[T8,DK,EK,LK,FK],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 ou=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"]]),Zic=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"]]),N3d=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 nu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nu,W);h=nu.prototype;h.getId=function(){return pn(this,1)};h.getId_asLegacyNumberOrString=function(){return Ep(this,1)};h.getId_asString=function(){return un(this,1)};h.setId=function(a){return Ko(this,1,a)};h.getFrequency=function(){return xi(this,2)};h.setFrequency=function(a){return Im(this,2,a)};h.getOrdinal=function(){return Cm(this,3)};h.setOrdinal=function(a){return an(this,3,a)};
h.getTimeZone=function(){return X(this,qr,4)};h.setTimeZone=function(a){return Ni(this,qr,4,a)};h.hasTimeZone=function(){return yi(this,qr,4)};h.getTimeOfDay=function(){return X(this,rr,5)};h.setTimeOfDay=function(a){return Ni(this,rr,5,a)};h.getDisplayName=function(){return vi(this,6)};h.setDisplayName=function(a){return Gm(this,6,a)};h.getQuery=function(){return vi(this,7)};h.setQuery=function(a){return Gm(this,7,a)};h.clearQuery=function(){Aw(this,7)};
h.getLastUpdatedTimestamp=function(){return X(this,Ti,12)};var V8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,V8.messageId)};Y(V8,W);V8.prototype.getSubscription=function(){return X(this,nu,1,jb)};V8.prototype.setSubscription=function(a){return Ni(this,nu,1,a,jb)};V8.messageId="b.ConfigurableAlertSubscriptionRequest";var W8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,W8.messageId)};Y(W8,W);W8.prototype.getSubscription=function(){return X(this,nu,1,jb)};W8.prototype.setSubscription=function(a){return Ni(this,nu,1,a,jb)};W8.messageId="b.ConfigurableAlertSubscriptionResponse";var O3d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,O3d.messageId)};Y(O3d,W);O3d.prototype.getSubscriptionsList=function(){return Ci(this,nu,1,Di(),jb)};O3d.messageId="b.ListConfigurableAlertSubscriptionsResponse";var X8=function(){this.executor=p(ZN)};h=X8.prototype;h.create=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions",body:(new V8).setSubscription(oic(a)),responseConstructor:W8}).pipe(A(function(b){if(b=b.getSubscription())return nic(b);throw Error("Cg");}))};h.list=function(){return this.executor.get({url:"action/configurable_alert_subscriptions",responseConstructor:O3d}).pipe(A(function(a){return a.getSubscriptionsList().map(nic)}))};
h.get=function(a){return this.executor.get({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:W8}).pipe(A(function(b){if(b=b.getSubscription())return nic(b);throw Error("Dg");}))};h.update=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions/"+a.id,body:(new V8).setSubscription(oic(a)),responseConstructor:W8}).pipe(A(function(b){if(b=b.getSubscription())return nic(b);throw Error("Cg");}))};
h.delete=function(a){return this.executor.delete({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:rO}).pipe(A(function(){}))};X8.\u0275fac=function(a){return new (a||X8)};X8.\u0275prov=Fc({token:X8,factory:X8.\u0275fac,providedIn:"root"});var Y8=function(){pO.call(this,{freshUntil:36E5,ancientAfter:2592E5});var a=this;this.api=p(X8);this.recordType="configurable_alert";this.idForRecord=function(d){return d.id};this.isEqual=mm;var b=p(QP),c=p(Ee);b.getObservable().pipe(Uj(c)).subscribe(function(){a.invalidate()})};Y(Y8,pO);h=Y8.prototype;h.fetchOne=function(a){return this.api.get(a)};h.list=function(){return this.api.list()};h.create=function(a){return this.api.create(a)};h.update=function(a){var b=this;return this.api.update(a).pipe(Cf(function(c){b.invalidate(c.id)}))};
h.delete=function(a){var b=this;return this.api.delete(a).pipe(Cf(function(){b.invalidate(a)}))};Y8.\u0275fac=function(a){return new (a||Y8)};Y8.\u0275prov=Fc({token:Y8,factory:Y8.\u0275fac,providedIn:"root"});var qic=function(a){return{subscriptionId:a}},pic=function(a){return{path:"/settings/configurable-alerts",queryParams:a}},sic=function(a){return{q:a,s:"modified_time:desc"}},ric=function(a){return{path:"/issues",queryParams:a}},P3d=function(){var a=this;this.fridge=p(Y8);this.subscriptionId$=new wf(1);this.data$=this.subscriptionId$.pipe(Af(function(b){return a.fridge.watch(b)}),we(Qm));this.contentReady$=this.data$.pipe(A(function(){}))};
da.Object.defineProperties(P3d.prototype,{subscriptionId:{configurable:!0,enumerable:!0,set:function(a){this.subscriptionId$.next(a)}}});P3d.\u0275fac=function(a){return new (a||P3d)};
P3d.\u0275cmp=D({type:P3d,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,tic,11,12,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.data$))?0:-1,c)}},dependencies:[QO,gB,cB,
Lx],styles:["[_nghost-%COMP%]{display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto;background:var(--surface-default)}"],changeDetection:0});var Z8=function(){var a=this;this.tasksApi=p(vQ);this.analytics=p(aQ);this.fileId$=new wf(1);this.commentId$=new wf(1);this.mentionedDriveComment$=le([this.fileId$,this.commentId$]).pipe(Af(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=a.tasksApi;var e=new zid;b=Gm(e,1,b).setCommentId(d);return c.executor.post({url:"action/tasks/latest_drive_mention",responseConstructor:oQ,body:b}).pipe(A(V4a))}),Cf(function(){a.contentReady$.next()}));this.contentReady$=new wf(1)};
Z8.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};da.Object.defineProperties(Z8.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)}}});Z8.\u0275fac=function(a){return new (a||Z8)};
Z8.\u0275cmp=D({type:Z8,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,wic,11,4,"div",0),
T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedDriveComment$))?0:-1,c)}},dependencies:[sV,$U,Lx],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 Bic=function(a,b){return b.commentNumber},$8=function(){var a=this;this.issueCommentsBatchApi=p(JP);this.analytics=p(aQ);this.activeSession=p(qu);this.issueId$=new Nj("");this.commentNumbers$=new Nj([]);this.mentionedComments$=le([this.issueId$,this.commentNumbers$]).pipe(Af(function(b){var c=m(b);b=c.next().value;c=c.next().value;return a.issueCommentsBatchApi.batchGet(b,c)}),Cf(function(){a.contentReady$.next()}));this.contentReady$=new wf(1);this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=
!1};$8.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};$8.prototype.getCommentNumberLink=function(a,b){return B5a(a,{comment:b})};$8.prototype.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","accept",Q3d(this))};$8.prototype.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","reject",Q3d(this))};
var Q3d=function(a){return JSON.stringify({id:a.issueId$.value,commentNumber:a.commentNumbers$.value})};da.Object.defineProperties($8.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)}}});$8.\u0275fac=function(a){return new (a||$8)};
$8.\u0275cmp=D({type:$8,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,Cic,5,0,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.mentionedComments$))?0:-1,c)}},dependencies:[Dy,QO,$U,sV,eU,Lx],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 Eic=function(a){return{signal:a}},Pic=function(){return[]},Hic=function(a,b){return b.type},R3d=function(){this.activeSession=p(qu);this.signals=[];this.SIGNAL_TO_DISPLAY_TEXT=ou;this.SIGNAL_TO_ACTION_TEXT=N3d;this.getSignalUrgency=lic;this.getHighestPrioritySignal=mic;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl")},Kic=function(a,b){return a.filter(function(c){return c!==
b}).map(function(c){return ou.get(c.type)}).join("; ")},Wic=function(a,b){return(b.type==="MENTIONED_NEEDS_RESPONSE"||b.type==="COMMENT_MENTIONS_ME")&&b.commentNumbers!=null&&b.commentNumbers.length>0&&a.issueId!=null},Xic=function(a){return a.type==="TAGGED_IN_COMMENT"&&a.driveFileId!=null&&a.driveCommentId!=null},Yic=function(a){return!(a.type!=="CONFIGURABLE_ALERT"||!a.configurableAlertSubscriptionId)};R3d.\u0275fac=function(a){return new (a||R3d)};
R3d.\u0275cmp=D({type:R3d,selectors:[["needs-attention-signals-cell"]],inputs:{issueId:"issueId",signals:"signals",tailwindRunStatus:"tailwindRunStatus"},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,Iic,3,0,"div",4)(1,Mic,1,1),E(2,$ic,10,12,"ng-template",null,0,Mg));a&2&&G(b.signals.length<3?0:1)},dependencies:[Kx,oK,iA,DK,EK,LK,FK,$8,Z8,P3d],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 S3d=function(){this.tasksService=p(vQ);this.okrIds=[];this.hovercardReady$=new wf(1);this.teamObjectives$=ee([])};S3d.prototype.ngOnInit=function(){this.teamObjectives$=kjd(this.tasksService,T3d(this.okrIds));this.hovercardReady$.next()};
var T3d=function(a){a=a.map(function(b){return b.includes("/keyResults")?b.substring(0,b.indexOf("/keyResults")):b});return[].concat(q(new Set(a)))},djc=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},ejc=function(a,b){if(b.includes("/keyResults")){var c,d;return(c=djc(a,b))==null?void 0:(d=c.keyResults)==null?void 0:
d.find(function(e){return b.indexOf(e.keyResultId)>0})}},ajc=function(a){return a&&a!=="RATING_UNSPECIFIED"?" \u2022 "+a:""};S3d.\u0275fac=function(a){return new (a||S3d)};
S3d.\u0275cmp=D({type:S3d,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,gjc,4,0,"div",0),T(1,"async"));if(a&2){var c;G((c=U(1,1,b.teamObjectives$))?0:-1,c)}},dependencies:[Lx],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 U3d=function(){this.analytics=p(aQ);this.okrIds=[]};U3d.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","okr-chip")};U3d.\u0275fac=function(a){return new (a||U3d)};
U3d.\u0275cmp=D({type:U3d,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,ijc,5,1);a&2&&G(b.okrIds&&b.okrIds.length>0?0:-1)},dependencies:[S3d,DK,EK,LK,FK],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 V3d=function(){this.hovercardReady$=new wf(1)};V3d.prototype.ngOnInit=function(){this.hovercardReady$.next()};V3d.\u0275fac=function(a){return new (a||V3d)};
V3d.\u0275cmp=D({type:V3d,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,jjc,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 W3d=function(){this.hovercardConfig={showDelay:250,hideDelay:250,position:[M8c,O8c],triggerKey:[]}};W3d.\u0275fac=function(a){return new (a||W3d)};
W3d.\u0275cmp=D({type:W3d,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&&(Uf(0),K(1,"div",
2),M(2,"mat-icon",3),Q(3),L(),K(4,"onedev-hovercard",null,0),E(6,kjc,2,2,"stale-task-card",4),L(),Vf());a&2&&(a=qg(5),B(),I("onedevHovercardTrigger",a)("onedevHovercardConfig",b.hovercardConfig),B(2),b=b.lastAlertTimestamp?(b=Zr(b.lastAlertTimestamp.seconds,!0))?b+", respond?":"":"",S(" ",b," "))},dependencies:[Dy,DK,EK,LK,FK,V3d],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 X3d=["menuTrigger"],a9=function(){this.SIGNAL_TO_DISPLAY_TEXT=ou;this.DEFINITIONS=qjd;this.analytics=p(aQ);this.signalFilterKeys=[];this.selectedSignals=[];this.source="BUGANIZER";this.changeFilteredSignals=new XP;this.chipSelectionStateChanged=new XP};a9.prototype.ngOnInit=function(){this.currentSelectedSignals=new Set(this.selectedSignals);this.selectAllToggle=b9(this)};a9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
a9.prototype.signalFilterChange=function(){var a=[].concat(q(this.currentSelectedSignals));this.changeFilteredSignals.emit(a);Y3d(this,new Set(this.selectedSignals),new Set(a))};var Z3d=function(a){return[].concat(q(a.signalFilterKeys)).sort(function(b,c){var d,e;return((d=ou.get(b))!=null?d:"").localeCompare((e=ou.get(c))!=null?e:"")})},b9=function(a){return a.currentSelectedSignals.size===a.signalFilterKeys.length};
a9.prototype.onCheckboxChange=function(a){this.currentSelectedSignals.has(a)?this.currentSelectedSignals.delete(a):this.currentSelectedSignals.add(a);this.selectAllToggle=b9(this);this.chipSelectionStateChanged.emit(this.currentSelectedSignals.size>0&&!b9(this)||b9(this))};var Y3d=function(a,b,c){a.signalFilterKeys.forEach(function(d){b.has(d)!==c.has(d)&&a.analytics.trackEvent("needsAttention","toggle",a.source+"-"+ou.get(d)+"-"+(c.has(d)?"checked":"unchecked"))})};
a9.\u0275fac=function(a){return new (a||a9)};
a9.\u0275cmp=D({type:a9,selectors:[["signal-list-dropdown"]],viewQuery:function(a,b){a&1&&hg(X3d,5);if(a&2){var c;lg(c=mg())&&(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();K(0,"button",2,0);N("keydown.enter",function(d){u(c);return v(d.stopPropagation())})("keydown.space",function(d){u(c);return v(d.stopPropagation())})("keyup.enter",function(){u(c);return v(b.openMenu())})("keyup.space",function(){u(c);
return v(b.openMenu())})("click",function(d){u(c);return v(d.stopPropagation())});M(2,"mat-icon",3);L();K(3,"mat-menu",4,1);N("closed",function(){u(c);return v(b.signalFilterChange())});K(5,"button",5);N("click",function(d){u(c);b.selectAllToggle=!b.selectAllToggle;b.currentSelectedSignals=b.selectAllToggle?new Set(b.signalFilterKeys):new Set;b.chipSelectionStateChanged.emit(b.currentSelectedSignals.size>0&&!b9(b)||b9(b));return v(d.stopPropagation())});K(6,"mat-checkbox",6);Q(7," Select all alerts ");
L()();M(8,"mat-divider");Of(9,ljc,3,2,"button",7,Nf);L()}a&2&&(a=qg(4),I("matTooltip","Filter "+qjd[b.source].displayName+" alerts")("matMenuTriggerFor",a),Kf("aria-label",qjd[b.source].displayName+" dropdown"),B(6),I("indeterminate",b.currentSelectedSignals.size>0&&!b9(b))("checked",b9(b)),B(3),Pf(Z3d(b)))},dependencies:[Dy,oK,iA,OJ,YG,WG,aH,fL,aI,gB,eB,aK],encapsulation:2});var $3d=["menuTrigger"],c9=function(){this.filteredSignalsSource=p(p1);this.activeSession=p(qu);this.DEFINITIONS=qjd;this.SIGNAL_TO_DISPLAY_TEXT=ou;this.FILTERED_SIGNALS=pm(this.filteredSignalsSource.activeSession.isInternalSession()?rjd:sjd);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 XP;this.changeSourceFilter=new XP;this.signals={};this.chipsSelected={}};
c9.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")};
c9.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})};
c9.prototype.sourceFilterChange=function(a){this.chipsSelected[a]=!this.chipsSelected[a];a=[];for(var b=m(this.sourceFilterKeys),c=b.next();!c.done;c=b.next())c=c.value,this.chipsSelected[c]&&a.push(c);this.changeSourceFilter.emit(a)};c9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
var ojc=function(a,b){var c;return(c=a.signals[b])!=null?c:[]},njc=function(a,b){switch(b){case "BUGANIZER":return[].concat(q(a.FILTERED_SIGNALS.buganizerSignals));case "DRIVE":return[].concat(q(a.FILTERED_SIGNALS.driveSignals));case "GERRIT":return[].concat(q(a.FILTERED_SIGNALS.gerritSignals));case "GOOGLE_TASKS":return[].concat(q(a.FILTERED_SIGNALS.googleTasksSignals));case "CRITIQUE":return[].concat(q(a.FILTERED_SIGNALS.changelistSignals));case "IRM":return[].concat(q(a.FILTERED_SIGNALS.irmSignals));
default:return[]}};c9.\u0275fac=function(a){return new (a||c9)};
c9.\u0275cmp=D({type:c9,selectors:[["signal-filter-chips"]],viewQuery:function(a,b){a&1&&hg($3d,5);if(a&2){var c;lg(c=mg())&&(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&&(K(0,"div",0),Of(1,qjc,1,1,null,null,Nf),L());a&2&&(B(),Pf(b.sourceFilterKeys))},dependencies:[Dy,oK,iA,gB,cB,a9],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 a4d=["menuTrigger"],b4d={label:"Last 1 day",numberOfDays:1},c4d={label:"Last 7 days",numberOfDays:7},d4d={label:"Last 30 days",numberOfDays:30},e4d={label:"Last 90 days",numberOfDays:90},f4d=[b4d,c4d,d4d,e4d],g4d={1:b4d,7:c4d,30:d4d,90:e4d},d9=function(){this.timeBoundaries=f4d;this.change=new XP};d9.prototype.getLabel=function(a){if(a==null)return"";var b,c;return(c=(b=g4d[a])==null?void 0:b.label)!=null?c:""};d9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
d9.\u0275fac=function(a){return new (a||d9)};
d9.\u0275cmp=D({type:d9,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&hg(a4d,5);if(a&2){var c;lg(c=mg())&&(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();K(0,"mat-chip-listbox",2)(1,"mat-chip-option",3,0);N("keyup.enter",function(){u(c);return v(b.openMenu())})("keyup.space",function(){u(c);return v(b.openMenu())});Q(3);M(4,"mat-icon",4);L()();K(5,"mat-menu",
5,1);Of(7,rjc,2,2,"button",6,Nf);L()}a&2&&(a=qg(6),I("selectable",!1),B(),I("matMenuTriggerFor",a),B(2),S(" ",b.getLabel(b.selectedTimeBoundary)," "),B(4),Pf(b.timeBoundaries))},dependencies:[Dy,NK,VK,UK,TK,OJ,YG,WG,aH],encapsulation:2});var h4d=function(){return{originX:"start",originY:"bottom",overlayX:"end",overlayY:"top"}},i4d=function(a){return[a]},e9=function(){this.isSnoozed=!0;this.snooze=new XP;this.unsnooze=new XP;this.isOpen=new XP;this.currentPickerDateTime=this.tomorrow;this.timePickerOpen=!1};e9.prototype.stopPropagation=function(a){a.stopPropagation()};e9.prototype.onOpen=function(a){this.isOpen.emit(a)};var j4d=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
da.Object.defineProperties(e9.prototype,{datePickerOrigin:{configurable:!0,enumerable:!0,get:function(){return this.datePickerAnchor._elementRef}},now:{configurable:!0,enumerable:!0,get:function(){return new bo}},laterToday:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.getHours()>=12?a.add(new PF("h",3)):j4d(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new PF("d",1));j4d(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=
this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);j4d(a,8);return a}},nextMonth:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new PF("d",30));j4d(a,8);return a}}});e9.\u0275fac=function(a){return new (a||e9)};
e9.\u0275cmp=D({type:e9,selectors:[["snooze-menu"]],viewQuery:function(a,b){a&1&&hg(YG,7);if(a&2){var c;lg(c=mg())&&(b.menu=c.first)}},inputs:{isSnoozed:"isSnoozed",datePickerAnchor:"datePickerAnchor"},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();K(0,"mat-menu",1);N("closed",function(d){u(c);if(d!=="click")b.onOpen(!1);return v()});K(1,"span",2);N("click",function(d){u(c);return v(b.stopPropagation(d))});Q(2," Snooze until... ");L();K(3,"div",3)(4,"button",4);N("click",function(){u(c);var d=b.laterToday;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(5," Later today ");K(6,"span",5);M(7,"b-formatted-date-time",
6);L()();K(8,"button",4);N("click",function(){u(c);var d=b.tomorrow;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(9," Tomorrow ");K(10,"span",5);M(11,"b-formatted-date-time",6);L()();K(12,"button",4);N("click",function(){u(c);var d=b.nextWeek;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(13," Next week ");K(14,"span",5);M(15,"b-formatted-date-time",6);L()();K(16,"button",4);N("click",function(){u(c);var d=b.nextMonth;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(17," Next Month ");K(18,"span",
5);M(19,"b-formatted-date-time",6);L()()();K(20,"div",7);F(21,sjc,3,0,"button",8);K(22,"button",9,0);N("keydown.enter",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()})("keydown.space",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()})("click",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()});M(24,"mat-icon",10);Q(25," Pick date & time ");L()()();E(26,tjc,2,5,"ng-template",11)}a&2&&(B(7),I("date",b.laterToday),B(4),I("date",b.tomorrow),B(4),I("date",b.nextWeek),
B(4),I("date",b.nextMonth),B(2),G(b.isSnoozed?21:-1),B(5),I("cdkConnectedOverlayOrigin",b.datePickerOrigin)("cdkConnectedOverlayOpen",b.timePickerOpen)("cdkConnectedOverlayPositions",Ig(9,i4d,Hg(8,h4d))))},dependencies:[Dy,kV,sV,YG,WG,Pz,Oz,D_],styles:[".date[_ngcontent-%COMP%]{padding-left:20px;float:right}.title[_ngcontent-%COMP%]{padding:15px;font-size:.8rem;font-weight:700}"],changeDetection:0});var k4d=[5433823,5418819,5421028,5122552,5422257];var l4d=function(){this.DMA_TOOLTIP_TEXT="Issues related to DMA are part of a code red at Google, see go/dma52-cy";this.hotlistIds=null;this.onChipClicked=new Ui},m4d=function(a){return k4d.some(function(b){var c;return(c=a.hotlistIds)==null?void 0:c.includes(b)})};l4d.\u0275fac=function(a){return new (a||l4d)};
l4d.\u0275cmp=D({type:l4d,selectors:[["onedev-dma-chip"]],inputs:{hotlistIds:"hotlistIds"},outputs:{onChipClicked:"onChipClicked"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"chip",3,"matTooltip"],[1,"content"],["href","http://go/dma","target","_blank",3,"click"]],template:function(a,b){a&1&&E(0,ujc,5,1,"ng-container",0);a&2&&I("ngIf",m4d(b))},dependencies:[Fx,FX],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 f9=function(){Z.call(this);var a=this;this.errorHandler=p(kO);this.tasksService=p(vQ);this.missionControlPrefs=p(q1);this.domSafe=p(iR);this.router=p(YE);this.appEvents=p(PO);this.analytics=p(aQ);this.clipboard=p(kR);this.activeSession=p(qu);this.needsAttentionTaskFridge=p(xQ);this.butterBar=p(QN);p(b8);this.tailwindApi=p(BZ);this.OPTIONAL_SOURCE_FILTERS=["GERRIT","GOOGLE_TASKS","IRM"];this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS=[].concat(q(njd),q(this.OPTIONAL_SOURCE_FILTERS));this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS=
ojd;this.SOURCE_FILTERS=this.activeSession.isInternalSession()?this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS:this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS;this.ALL_FILTERED_SIGNALS=rjd;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl");this.refreshTable=new sf;this.SIGNAL_TO_DISPLAY_TEXT=ou;this.SIGNAL_TO_ACTION_TEXT=N3d;this.TaskResourceType=ucd;this.SignalStatus=Hgd;this.sources$=
this.missionControlPrefs.needsAttentionSources$;this.filteredSignals$=this.missionControlPrefs.needsAttentionFilteredSignals$;this.timeBoundary$=this.missionControlPrefs.prefs$.pipe(A(function(b){var c;return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.signalStatusFilter$=new Nj(0);this.allNeedsAttention$=new Nj([]);this.tasksQuery$=le([this.timeBoundary$,this.sources$,this.signalStatusFilter$,this.filteredSignals$]).pipe(Bf(this.destroyed$),pf(function(b,c){return mm(b,c)}),Af(function(b){var c=
m(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 pr(f)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:e,filterSignals:c})}),xf({bufferSize:1,refCount:!0}));this.workItems$=this.tasksQuery$.pipe(Af(function(b){return a.activeSession.isExternalSession()?ee([]):jjd(a.tasksService,Akc(b.results)).pipe(jf(function(c){a.errorHandler.errorHandler(null,c);return ee([])}))}));this.liteTasks$=le([this.tasksQuery$,
this.workItems$,this.filteredSignals$]).pipe(A(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=ykc(d);d=zkc(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 jic(b,(f=a.signalStatusFilter$.getValue())!=null?f:0,e,d,c)}));this.liteTasksWithTailwindInfo$=this.liteTasks$.pipe(Af(function(b){if(!a.enableTailwindMissionControl)return ee(b);
var c=new Set(A1d());if(!c.size)return ee(b);var d=b.filter(function(f){return Bkc(f,c)}).map(function(f){return f.issueId}).filter(function(f){return!!f});if(!d.length)return ee(b);b=b.map(function(f){return f.issueId?d.includes(f.issueId)?Object.assign({},f,{action:"View Issue",tailwindRunStatus:"RUN_STATUS_UNSPECIFIED"}):f:f});var e=jFd(a.tailwindApi,d).pipe(A(function(f){return f.issueRunStatuses})).pipe(A(function(f){return f.map(function(g){a:switch(g.runStatus){case "RUN_STATUS_SUCCESS":var k=
"View AI fix";break a;case "RUN_STATUS_FAILURE":k="Retry AI fix";break a;default:k="View Issue"}return{issueId:g.issueId,status:g.runStatus,action:k}})}));return qe([e,ee(b)]).pipe(A(function(f){var g=m(f);f=g.next().value;g=g.next().value;var k=new Map(f.map(function(l){return[l.issueId,l]}));return g.map(function(l){var r=l.issueId?k.get(l.issueId):void 0;return r&&r.action?Object.assign({},l,{action:r.action,tailwindRunStatus:r.status}):l})}),zf(b))}),xf({bufferSize:1,refCount:!0}));this.dismissButtonLabel$=
this.signalStatusFilter$.pipe(A(function(b){return b===1?"Un-dismiss":"Dismiss"}));this.dismissButtonTooltip$=this.signalStatusFilter$.pipe(A(function(b){return b===1?"Un-dismiss a work item to move it back to the Active tab":"Dismiss a work item to hide it from the table"}));this.snoozeButtonLabel$=this.signalStatusFilter$.pipe(A(function(b){return b===2?"Snooze Options":"Snooze"}));this.snoozeButtonTooltip$=this.signalStatusFilter$.pipe(A(function(b){return b===2?"Snooze Options":"Snooze a work item to hide it from the table"}));
this.loading$=this.needsAttentionTaskFridge.thinking$;this.tabData=[{signalStatusFilter:0,label:"Active",description:"Shows tasks with at least 1 active signal"},{signalStatusFilter:2,label:"Snoozed",description:"Shows tasks that are snoozed"},{signalStatusFilter:1,label:"Dismissed",description:"Shows tasks with at least 1 dismissed signal"}];this.displayedColumns="selection type description timestamp signal action buttons".split(" ");this.selection=new rz(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=
10;this.getSignalUrgency=lic;this.getHighestPrioritySignal=mic;le([this.liteTasksWithTailwindInfo$]).pipe(A(function(b){b=m(b).next().value;b.sort(function(c,d){return ao(d.lastAlertTimestamp)-ao(c.lastAlertTimestamp)});return b}),Bf(this.destroyed$)).subscribe(function(b){a.allNeedsAttention$.next(b)});le([this.timeBoundary$,this.sources$,this.filteredSignals$]).pipe(pf(function(b,c){return mm(b,c)}),Af(function(b){var c=m(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=d.map(function(e){return pr(e)});
return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:0,filterSignals:c})}),Bf(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(Bf(this.destroyed$)).subscribe(function(b){a.errorHandler.errorHandler(null,b)})};Y(f9,Z);
f9.\u0275dir=Z.\u0275dir;f9.prototype.ngOnInit=function(){this.refreshTable.pipe(Bf(this.destroyed$)).subscribe(this.refreshTaskData.bind(this))};
f9.prototype.refreshTaskData=function(){var a=this,b,c,d,e,f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return z(r,ie(a.timeBoundary$),2);case 2:return c=(b=r.yieldResult)!=null?b:0,z(r,ie(a.sources$),3);case 3:return e=((d=r.yieldResult)!=null?d:[]).map(function(w){return pr(w)}),z(r,ie(a.signalStatusFilter$),4);case 4:return g=(f=r.yieldResult)!=null?f:0,z(r,ie(a.filteredSignals$),5);case 5:return l=(k=r.yieldResult)!=null?k:a.ALL_FILTERED_SIGNALS,z(r,hed(a.needsAttentionTaskFridge,
{maxTaskAgeDays:c,sources:e,signalFilter:g,filterSignals:l}),0)}})};f9.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,q(a)))};f9.prototype.dismissAlert=function(a){Gjc(this,[a.id]);if(this.enableTailwindMissionControl&&a.issueId){var b=a.tailwindRunStatus;a.issueId&&(b!=="RUN_STATUS_SUCCESS"&&b!=="RUN_STATUS_FAILURE"||Bac(a.issueId))}};
var Jjc=function(a,b,c){!c||c.getTime()>(new Date).getTime()?(gjd(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)}),n4d(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")},kkc=function(a){if(a=Cab(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"}};
f9.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=mt(b.id),b=ps.viewIssue.makeHref(b),dq(a)?this.domSafe.openInNewTab(b):(a==null?0:a.shiftKey)?Cr(this.domSafe,b):Ct(this.router,b);else{var e;this.domSafe.openInNewTab((e=b.lastMentionLink)!=null?
e:b.link)}}};
f9.prototype.sendClickAnalytics=function(a,b){this.analytics.trackEvent("missionControl","navigate","needsAttention-"+a.type+"-"+a.signals.map(function(e){return e.type}).join(","));var c=m(xkc(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);o4d(this,a,b);this.analytics.trackEvent("missionControl","click",a.isStaleTask?"click-stale-yes":"click-stale-no");a=b.filter(function(e){return e.isStaleTask}).length;this.analytics.trackEvent("missionControl",
"display","num-stale-task",a);this.analytics.trackEvent("missionControl","display","num-fresh-tasks",b.length-a)};f9.prototype.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
var Mjc=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},Gjc=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return z(e,ie(a.signalStatusFilter$),
2);c=e.yieldResult;ejd(a.tasksService,b,c!==1).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});d=new Set(b);return z(e,n4d(a,d),0)})},Ljc=function(a){var b=a.selection.selected,c=Mjc(a);a.analytics.trackEvent("manualSignal",c?"add":"remove","bulkControls",b.length);fjd(a.tasksService,b,c).subscribe(function(){a.refreshTaskData()},function(d){return void a.errorHandler.errorHandler(null,d)});a.selection.clear()};
f9.prototype.copyIdOrLink=function(a){a.type==="ISSUE"?(a=mt(a.id))&&this.clipboard.copy(a):this.clipboard.copy(a.link)};f9.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};f9.prototype.extractLastDigits=function(a){var b;return(b=mt(a))!=null?b:""};var Vjc=function(a){return a.type==="ISSUE"?"/issues/"+a.issueId:a.lastMentionLink?a.lastMentionLink:a.link};
f9.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)};f9.prototype.hasFutureAvailability=function(a){var b,c;return!!(((b=a.futureAvailability)==null?0:b.futureOooTimestamp)&&((c=a.futureAvailability)==null?0:c.comeBackTimestamp))};
var n4d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.allNeedsAttention$.getValue(),a.allNeedsAttention$.next(c.filter(function(f){return!b.has(f.id)})),z(e,ie(a.signalStatusFilter$),2);d=e.yieldResult;d===0&&a.appEvents.missionControlTaskCount.next(c.filter(function(f){return!b.has(f.id)}).length);ce(e)})},o4d=function(a,b,c){p4d(a,b,c);q4d(a,b,c)},p4d=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)},q4d=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)};f9.\u0275fac=function(a){return new (a||f9)};
f9.\u0275cmp=D({type:f9,selectors:[["b-needs-attention-table"]],inputs:{refreshTable:"refreshTable"},standalone:!1,features:[Gf],decls:15,vars:13,consts:[["pickerToggle","bAddTaskDialogToggle"],["bulkSnoozeButton",""],["snoozeMenu",""],["snoozeButton",""],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],[1,"flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"heading-s"],[1,"border-left","padded-s-left","padded-s-right",
3,"selectedTimeBoundary"],[1,"border-left","padded-s-left"],[1,"text-center","border-bottom","padded-s-y"],["mat-tab-label",""],[1,"tab-label",3,"matTooltip"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources","selectedSignals"],[1,"padded-s-x",3,"changeSourceAndFilteredSignals","changeSourceFilter","sourceFilterKeys","selectedSources","selectedSignals"],[1,"border-left","padded-s-left","padded-s-right",3,"change","selectedTimeBoundary"],["mat-button","","type","button","bAddTaskDialogToggle",
"",1,"add-task-button",3,"taskAdded"],[1,"muted","border-bottom","padded-s-y"],["mat-table","","aria-label","Table of alerts",1,"full-width",3,"dataSource"],["matColumnDef","selection"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","timestamp"],["matColumnDef","signal"],["matColumnDef","action"],["matColumnDef","buttons"],["mat-header-cell","","class","border-bottom",4,"matHeaderCellDef"],["mat-header-row",
"",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["class","mat-row padded-y",4,"matNoDataRow"],["type","button","mat-button","",1,"margin-s-top"],["mat-header-cell",""],["aria-label","Select all alerts",3,"change","checked","indeterminate"],["mat-cell",""],["aria-label","Select alert",3,"click","change","checked"],["role","img","aria-hidden","false","matTooltipPosition","left",3,"matTooltip","svgIcon"],["type","button","mat-button","",1,"bulk-dismiss"],
["type","button","mat-button","",1,"bulk-manual-signal"],["type","button","mat-button","",1,"bulk-dismiss",3,"click"],["mat-button","",1,"bulk-snooze",3,"matMenuTriggerFor"],[3,"snooze","unsnooze","isSnoozed","datePickerAnchor"],["type","button","mat-button","",1,"bulk-manual-signal",3,"click"],[1,"flex-kids-x","align-items-center"],[1,"italic"],[3,"issueId"],[3,"okrIds"],[3,"iteration"],[1,"going-ooo",3,"matTooltip"],["matTooltip","Estimated review time (visible only to you)",1,"review-estimate"],
[1,"margin-s-right",3,"issuePriority"],["tabindex","0","role","link",1,"subtle-link","break-word","grow-1",3,"auxclick","href"],[3,"onChipClicked","hotlistIds"],["svgIcon","event_upcoming_24px"],[3,"click","taskId","lastAlertTimestamp"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],[3,"issueId","signals","tailwindRunStatus"],["mat-button","","tabindex","0","role","link",1,"primary","action-button",3,"href"],["mat-header-cell","",1,"border-bottom"],[1,"snooze-time"],[1,"buttons-container"],
["type","button","mat-icon-button","",1,"copy-btn","xs",3,"click","matTooltip"],["svgIcon","copy","color","primary",1,"copy-icon"],["type","button","mat-icon-button","",1,"dismiss-btn","xs",3,"click","ariaLabel","matTooltip"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],["type","button","mat-icon-button","",1,"snooze-btn","xs",3,"click","ariaLabel","matTooltip","matMenuTriggerFor"],["svgIcon","time-24px","color","primary",1,"snooze-icon"],["mat-header-row",""],["mat-row",
"",1,"clickable",3,"click"],[1,"mat-row","padded-y"],["colspan","7",1,"mat-cell","type-l","text-center","padded-top"],["type","button","mat-button","",1,"margin-s-top",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],[3,"ariaLabel"]],template:function(a,b){a&1&&(K(0,"mat-tab-group",4),N("selectedIndexChange",function(e){return b.onTabIndexChange(e)}),Of(1,wjc,2,0,"mat-tab",null,Nf),L(),K(3,"div",5)(4,"span",6),Q(5,"Sources"),L(),F(6,yjc,2,3),T(7,"async"),F(8,zjc,1,1,"time-boundary-filter",
7),T(9,"async"),F(10,Ajc,4,0,"div",8),L(),F(11,vkc,2,3),T(12,"async"),T(13,"async"),Lf(14,wkc,2,1,"div",9));if(a&2){var c,d;I("selectedIndex",0);B();Pf(b.tabData);B(5);G((c=U(7,5,b.sources$))?6:-1,c);B(2);G((d=U(9,7,b.timeBoundary$))?8:-1,d);B(2);G(b.signalStatusFilter$.getValue()===b.SignalStatus.ACTIVE?10:-1);B();G(U(12,9,b.liteTasksWithTailwindInfo$)&&!U(13,11,b.loading$)?11:14)}},dependencies:[Dy,sV,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,VT,wL,qL,rL,sL,fL,aI,oK,iA,gB,cB,eB,c9,e9,d9,$T,yW,l4d,NW,R3d,
W3d,aH,U3d,U8,S8,Lx,Rx,L3d],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 g9=function(){Z.call(this);var a=this;this.prefsService=p(q1);this.appEvents=p(PO);this.analytics=p(aQ);this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.refreshData=new sf;this.numNeedsAttentionTasks$.pipe(we(Qm),nf(1),Bf(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(q(njd));var d;b=(d=this.prefsService.prefs.needsAttentionDaysOld)!=null?d:30;this.analytics.trackEvent("missionControl","view","needsAttention-sources-"+c.join(",")+"-"+b)};Y(g9,Z);g9.\u0275dir=Z.\u0275dir;g9.prototype.isCollapsed=function(){return this.prefsService.isCollapsed("needs-attention-wrapper")};g9.prototype.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand needs attention section":"Collapse needs attention section"};
g9.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("needs-attention-wrapper")};g9.\u0275fac=function(a){return new (a||g9)};
g9.\u0275cmp=D({type:g9,selectors:[["needs-attention-wrapper"]],inputs:{refreshData:"refreshData"},standalone:!1,features:[Gf],decls:10,vars:7,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Work items which require actions from you","matTooltip","Work items which require actions from you",1,"info","margin-s-left"],["type","button","mat-icon-button","",1,"small","collapse-btn",
"margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],[1,"alert-count-badge","b-chip"],[1,"main-content"],[1,"alert-count"],[3,"refreshTable"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Needs attention "),L(),M(4,"mat-icon",3),K(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),L(),F(7,Ckc,3,1,"div",6),T(8,"async"),L(),F(9,Dkc,2,1,"div",7),L());if(a&2){var c;wg("collapsed",b.isCollapsed());B(5);Kf("aria-label",b.ariaLabelForToggleButton());
B(2);G((c=U(8,5,b.numNeedsAttentionTasks$))?7:-1,c);B(2);G(b.isCollapsed()?-1:9)}},dependencies:[Dy,gB,eB,f9,oK,iA,Lx],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 r4d=function(){this.DEFINITIONS=qjd;this.sourceFilterKeys=[];this.selectedSources=[];this.change=new XP};r4d.prototype.sourceFilterChange=function(a){this.selectedSources=a.value;this.change.emit(a.value)};r4d.\u0275fac=function(a){return new (a||r4d)};
r4d.\u0275cmp=D({type:r4d,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&&(K(0,"mat-chip-listbox",0),N("change",function(c){return b.sourceFilterChange(c)}),Of(1,Fkc,1,1,null,null,Nf),L());a&2&&(B(),Pf(b.sourceFilterKeys))},
dependencies:[NK,VK,UK,oK,iA],encapsulation:2});var ulc=function(){return[]},vlc=function(){return["moreRows"]},h9=function(){Z.call(this);var a=this;this.prefsService=p(q1);this.issueFridge=p(TP);this.router=p(YE);this.domSafe=p(iR);this.analytics=p(aQ);this.errorHandler=p(kO);this.activeSession=p(qu);this.clipboard=p(kR);this.myTasksFridge=p(wQ);this.tasksService=p(vQ);this.isInternalSession=this.activeSession.isInternalSession();this.OPTIONAL_SOURCE_FILTERS=["GERRIT","IRM"];this.MY_TASK_DEFAULT_FILTERS=[].concat(q(pjd),q(this.OPTIONAL_SOURCE_FILTERS));
this.ONLY_OWNED_TASK_FILTERS=[].concat(q(this.MY_TASK_DEFAULT_FILTERS),["GOOGLE_TASKS"]);this.TaskResourceType=ucd;this.taskResourceTypeToIcon=X2a;this.extractLastDigits=mt;this.tableColumns=[].concat(q(pGd));this.tableOptions=Object.assign({},sGd,{showActiveIndicator:!1,rowLimit:10});this.refreshData=new sf;this.manualSignalTriggered=new XP;this.sources$=this.prefsService.myTasksSources$;this.timeBoundary$=this.prefsService.prefs$.pipe(A(function(e){var f;return(f=e==null?void 0:e.myTasksDaysOld)!=
null?f:7}));var b;this.INITIAL_TAB_INDEX=(b=BMd(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 Nj([]),loading:!0},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",liteTasks:new Nj([]),loading:!0},{label:"Following",description:"Tasks you're tracking or have recent activities on",
liteTasks:new Nj([]),loading:!0},Gkc(this.issueFridge,(c=this.activeSession.getTracker())==null?void 0:c.trackerId)].filter(Qm);this.myTasks$=le([this.timeBoundary$,this.sources$]).pipe(Bf(this.destroyed$),pf(function(e,f){return e[0]===f[0]&&mm(e[1],f[1])}),Af(function(e){var f=m(e);e=f.next().value;f=f.next().value;var g=new Set(f.map(function(k){return pr(k)}));return a.myTasksFridge.watchMany({maxTaskAgeDays:e,sources:Array.from(g),issueFilter:Hkc(f)})}));this.displayColumns="type title modified role created options".split(" ");
this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.myTasks$.pipe(Bf(this.destroyed$)).subscribe(function(e){var f=e.results;e=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="OWNER"}).length>0}).sort(Clc);var g=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="COLLABORATOR"}).length>0}).sort(Clc);f=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="FOLLOWING"}).length>
0}).sort(Clc);var k;(k=a.tabData[0].liteTasks)==null||k.next(e);var l;(l=a.tabData[1].liteTasks)==null||l.next(g);var r;(r=a.tabData[2].liteTasks)==null||r.next(f);a.tabData[0].loading=!1;a.tabData[1].loading=!1;a.tabData[2].loading=!1});var d;this.analytics.trackEvent("missionControl","display","my-tasks-"+((d=this.tabData[this.INITIAL_TAB_INDEX])==null?void 0:d.label));this.myTasksFridge.error$.pipe(Bf(this.destroyed$)).subscribe(function(e){a.errorHandler.errorHandler(null,e)})};Y(h9,Z);
h9.\u0275dir=Z.\u0275dir;h=h9.prototype;h.ngOnInit=function(){var a=this;this.refreshData.pipe(Bf(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 pr(e)}));a.myTasksFridge.watchMany({maxTaskAgeDays:c,sources:Array.from(d),issueFilter:Hkc(b)})})};h.toggleCollapsed=function(){this.prefsService.toggleCollapsed("mc-my-tasks")};h.isCollapsed=function(){return this.prefsService.isCollapsed("mc-my-tasks")};
h.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand recent items section":"Collapse recent items section"};h.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};h.onTabIndexChange=function(a){DHb(this.prefsService,"mc-my-tasks",a);this.numDisplayedRows=10;var b;this.analytics.trackEvent("missionControl","view",(b=this.tabData[a])==null?void 0:b.label);this.MY_TASK_FILTERS=a===0?this.ONLY_OWNED_TASK_FILTERS:this.MY_TASK_DEFAULT_FILTERS};
h.navigateToResource=function(a,b){if(!(a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)){this.sendClickAnalytics(b);var c;a&&((c=a.target)==null?void 0:c.tagName)==="A"||(b.taskResourceType==="ISSUE"?(b=mt(b.taskId),b=ps.viewIssue.makeHref(b),dq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Cr(this.domSafe,b):Ct(this.router,b)):this.domSafe.openInNewTab(b.externalLink))}};
h.copyIdOrLink=function(a){a.taskResourceType==="ISSUE"?(a=mt(a.taskId),this.clipboard.copy(a)):this.clipboard.copy(a.externalLink)};var jlc=function(a,b){a.isSavingManualSignal=!0;a.analytics.trackEvent("manualSignal","add","myTasksRow");var c=b.taskResourceType==="ISSUE"?3E3:0;fjd(a.tasksService,[b.taskId],!0).pipe(of(c)).subscribe(function(){a.manualSignalTriggered.emit(b);a.isSavingManualSignal=!1},function(d){a.errorHandler.errorHandler(null,d);a.isSavingManualSignal=!1})};
h9.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)};h9.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};h9.prototype.getIds=function(a){return a.map(function(b){return b.issueId})};
var Wkc=function(a){return a==="P0"||a==="P1"};h9.\u0275fac=function(a){return new (a||h9)};
h9.\u0275cmp=D({type:h9,selectors:[["my-tasks"]],inputs:{refreshData:"refreshData"},outputs:{manualSignalTriggered:"manualSignalTriggered"},standalone:!1,features:[Gf],decls:8,vars:4,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Recent items helps you quickly find your active tasks and docs organized by your relation to them","matTooltip","Recent items helps you quickly find your active tasks and docs organized by your relation to them",
1,"info","margin-s-left"],["type","button","mat-icon-button","",1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],[1,"main-content","margin-s-top"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"tab-filters","flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"text-center","border-bottom","padded-s-y"],[1,"tab-label",3,"matTooltip"],[1,"border-left",
"padded-s-left",3,"selectedTimeBoundary"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources"],[1,"padded-s-x",3,"change","sourceFilterKeys","selectedSources"],[1,"border-left","padded-s-left",3,"change","selectedTimeBoundary"],[3,"issueIds","tableColumns","options"],["mat-table","",3,"dataSource","class"],[1,"muted","border-bottom","padded-s-y"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],
["matColumnDef","modified"],["matColumnDef","role"],["matColumnDef","created"],["matColumnDef","options"],["mat-header-cell","","class","options-column border-bottom",4,"matHeaderCellDef"],["mat-cell","","class","options-column",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","moreRows"],["mat-footer-cell","","colspan","2",4,"matFooterCellDef"],["mat-footer-row","",3,"hidden",4,"matFooterRowDef"],
["class","mat-row padded-y",4,"matNoDataRow"],["mat-header-cell",""],["mat-cell",""],["matTooltipPosition","left",3,"matTooltip","svgIcon"],[1,"italic"],[3,"issueId","compactMode"],[1,"margin-xs-right",3,"issuePriority"],[1,"subtle-link","break-word",3,"auxclick","href"],[3,"hotlistIds"],[3,"onChipClicked","hotlistIds"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],["mat-header-cell","",1,"options-column","border-bottom"],["mat-cell","",1,"options-column"],[1,"buttons-container"],["type",
"button","mat-icon-button","","aria-label","Trigger a needs attention alert on this task",1,"manual-signal-btn","xs",3,"click","disabled","matTooltip"],["svgIcon","label_important_outline_24px","color","primary",1,"manual-signal-icon"],["type","button","mat-icon-button","",1,"copy-btn","xs",3,"click","matTooltip"],["svgIcon","copy","color","primary",1,"copy-icon"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],["mat-footer-cell","","colspan","2"],["type","button","mat-button","",1,"margin-s-top"],
["type","button","mat-button","",1,"margin-s-top",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],["mat-footer-row","",3,"hidden"],[1,"mat-row","padded-y"],["colspan","5",1,"mat-cell","type-l","text-center","padded-top"],[3,"ariaLabel"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Recent items "),L(),M(4,"mat-icon",3),K(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),L()(),F(7,Blc,4,1,"div",6),L());a&2&&(wg("collapsed",
b.isCollapsed()),B(5),Kf("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.isCollapsed()?-1:7))},dependencies:[Dy,yW,$T,r4d,d9,sV,l4d,NW,$Z,gB,cB,eB,wL,qL,rL,sL,XW,WT,JT,PT,LT,IT,RT,KT,QT,MT,OT,NT,ST,UT,TT,VT,oK,iA,Lx],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.carded.collapsed[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.time-boundary-listbox[_ngcontent-%COMP%]   mat-chip-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}mat-header-row[_ngcontent-%COMP%], mat-row[_ngcontent-%COMP%]{min-height:2rem}mat-header-cell[_ngcontent-%COMP%]{font-weight:500}.mat-mdc-cell[_ngcontent-%COMP%], .mat-mdc-header-cell[_ngcontent-%COMP%]{padding:0 .75rem}.mat-column-type[_ngcontent-%COMP%]{width:4%;min-width:45px;text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.mat-column-created[_ngcontent-%COMP%], .mat-column-modified[_ngcontent-%COMP%]{min-width:180px;width:12%}.mat-column-role[_ngcontent-%COMP%]{min-width:100px;width:10%}.options-column[_ngcontent-%COMP%]{width:64px;text-align:center}.mat-column-moreRows[_ngcontent-%COMP%]{border:none}.product-icon.critique-logo[_ngcontent-%COMP%]{max-width:20px}.product-icon.drive-doc[_ngcontent-%COMP%]{color:#1967d2}.product-icon.drive-sheet[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive-slide[_ngcontent-%COMP%]{color:#f9ab00}.product-icon.gerrit-logo[_ngcontent-%COMP%]{max-width:20px}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.tab-label[_ngcontent-%COMP%]{cursor:pointer}.buttons-container[_ngcontent-%COMP%]{width:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}button.manual-signal-btn[disabled][_ngcontent-%COMP%]{opacity:.35}.copy-icon[_ngcontent-%COMP%], .manual-signal-icon[_ngcontent-%COMP%]{color:#fff;color:var(--background);margin-bottom:1px;max-width:20px}.copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%], .copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .manual-signal-icon[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .manual-signal-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .buttons-container[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .manual-signal-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .buttons-container[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .manual-signal-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--primary);background-color:unset}[_nghost-%COMP%]     .copy-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .manual-signal-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple{--mat-icon-button-focus-state-layer-opacity:0}\n/*# sourceMappingURL=my_tasks.css.map */"]});var o9=function(){Z.call(this);var a=this;this.hostElement=p(Jd);this.analytics=p(aQ);this.userFeedback=p(PY);this.prefsService=p(q1);this.hatsService=p(WX);this.appSearchState=p(oT);this.activeSession=p(qu);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=Vr;this.refreshAllMissionControlData=new sf;this.refreshNeedsAttentionData=new sf;this.captureAnyClick=function(b){b=xZa(b);for(var c=m(Object.entries(s4d)),d=c.next();!d.done;d=c.next()){var e=m(d.value);d=e.next().value;
e=e.next().value;if(b.includes(d)){a.analytics.trackEvent("missionControl","click",e);break}}};this.refreshAllMissionControlData.pipe(Bf(this.destroyed$)).subscribe(function(){a.refreshNeedsAttentionData.next()})};Y(o9,Z);o9.\u0275dir=Z.\u0275dir;
o9.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()});this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var b=m(t4d(this)),c=b.next().value;b=b.next().value;this.analytics.trackEvent("missionControl","sections-on-load",c,b);Oyd(this.hatsService,"u5xoTzKbb0g6pPHSLo10WcCoiLmK").pipe(Bf(this.destroyed$)).subscribe()};
o9.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};var t4d=function(a){a=[a.prefsService.isCollapsed("needs-attention-wrapper")?"-":"a",a.prefsService.isCollapsed("mc-my-tasks")?"-":"t",a.prefsService.isCollapsed("work-areas-wrapper-card")?"-":"w"];var b=a.filter(function(c){return c!=="-"}).length;return[a.join(""),b]};o9.prototype.refresh=function(){this.refreshAllMissionControlData.next()};
o9.\u0275fac=function(a){return new (a||o9)};
o9.\u0275cmp=D({type:o9,selectors:[["ng-component"]],standalone:!1,features:[Gf],decls:10,vars:5,consts:[[1,"a11y-only"],["cdkScrollable","",1,"padded-s","flex-kids-y","gap-s","pos-fill","bg-off-main","overflow","overflow-on-print-media",3,"onHotkey","hotkey"],["class","flex-kids-x align-items-center justify-flex-end info-row",4,"ngIf"],[1,"a"],[3,"refreshData"],[1,"t"],[3,"manualSignalTriggered","refreshData"],[1,"w"],[1,"flex-kids-x","align-items-center","justify-flex-end","info-row"],["type","button",
"mat-stroked-button","",1,"small",3,"click"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1,"Mission Control"),L(),K(2,"div",1),N("onHotkey",function(){return b.refresh()}),E(3,Elc,3,0,"div",2),K(4,"section",3),M(5,"needs-attention-wrapper",4),L(),K(6,"section",5)(7,"my-tasks",6),N("manualSignalTriggered",function(){return b.refreshNeedsAttentionData.next()}),L()(),K(8,"section",7),M(9,"work-areas-wrapper-card",4),L()());a&2&&(B(2),I("hotkey",b.HOTKEYS.REFRESH_ISSUE_LIST),B(),I("ngIf",b.isInternalSession),
B(2),I("refreshData",b.refreshNeedsAttentionData),B(2),I("refreshData",b.refreshAllMissionControlData),B(2),I("refreshData",b.refreshAllMissionControlData))},dependencies:[Fx,gB,cB,qz,T1,g9,h9,mU],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 s4d={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","MY-TASKS-V1":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var u4d=function(){this.timeZones=p(aS);this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new XP;this.timeZoneOptions$=Omd(this.timeZones).pipe(A(function(a){return a.sort(Glc)}))};u4d.\u0275fac=function(a){return new (a||u4d)};
u4d.\u0275cmp=D({type:u4d,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&&(K(0,"mat-form-field",0)(1,"mat-label"),Q(2),L(),K(3,"mat-select",1),N("ngModelChange",function(c){b.timezoneId!==c&&(b.timezoneId=c,b.timezoneIdChange.emit(b.timezoneId))}),
Of(4,Flc,2,2,"mat-option",2,Nf),T(6,"async"),L()());a&2&&(wg("full-width",b.fullWidth),B(2),S(" ",b.label," "),B(),I("disabled",b.disabled)("ngModel",b.timezoneId),B(),Pf(U(6,5,b.timeZoneOptions$)))},dependencies:[vU,MD,ED,MH,cA,BD,$D,gE,Lx],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var p9=function(){var a=this;this.dateFormatter=p(qS);this.destroyRef=p(Ee);this.frequency$=new Nj("weekly");this.ordinal$=new Nj(1);this.timeZoneId$=new Nj("America/Los_Angeles");this.timeOfDay$=new Nj({hours:9,minutes:0,seconds:0,nanos:0});this.ordinalOrZero$=le([this.frequency$,this.ordinal$]).pipe(A(function(b){var c=m(b);b=c.next().value;c=c.next().value;return b==="daily"?0:c}));this.frequencyChange=new XP;this.ordinalChange=new XP;this.timeOfDayChange=new XP;this.timeZoneIdChange=new XP;this.frequencyOptions=
v4d;this.repeatOnOptions=new Map([["daily",[]],["weekly",w4d],["monthly",x4d]]);this.DAILY="daily";this.repeatAtOptions=y4d.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=Olc};
p9.prototype.ngOnInit=function(){var a=this;this.frequency$.pipe(pf(),yf(1),Uj(this.destroyRef)).subscribe(function(b){a.frequencyChange.emit(b)});this.ordinal$.pipe(pf(),yf(1),we(function(b){return b!==0}),Uj(this.destroyRef)).subscribe(function(b){a.ordinalChange.emit(b)});this.timeOfDay$.pipe(pf(Olc),yf(1),Uj(this.destroyRef)).subscribe(function(b){a.timeOfDayChange.emit(b)});this.timeZoneId$.pipe(pf(),yf(1),Uj(this.destroyRef)).subscribe(function(b){a.timeZoneIdChange.emit(b)})};
da.Object.defineProperties(p9.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)}}});p9.\u0275fac=function(a){return new (a||p9)};
p9.\u0275cmp=D({type:p9,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,Ilc,7,1,"div"),T(1,"async"),F(2,Klc,7,1,"div"),T(3,"async"),F(4,Mlc,7,2,"div"),T(5,"async"),F(6,Nlc,2,2,"div"),T(7,"async"));if(a&2){var c,d,e,f;G((c=U(1,4,b.frequency$))?0:-1,c);B(2);G((d=U(3,6,b.ordinalOrZero$))?2:-1,d);B(2);G((e=U(5,8,b.timeOfDay$))?4:-1,e);B(2);G((f=U(7,10,b.timeZoneId$))?6:-1,f)}},dependencies:[$D,gE,vU,MD,ED,MH,cA,BD,u4d,Lx],encapsulation:2,changeDetection:0});
var v4d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],w4d=[{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"}],x4d=[].concat(q(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"}}),y4d=[].concat(q(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 z4d=["dialogContent"],q9=function(){var a=this;this.matDialog=p(QA);this.fridge=p(Y8);this.confirmationDialogService=p(ZR);this.destroyRef=p(Ee);this.init$=new Nj(!1);this.columnsToDisplay=["name","overflow-warning","actions"];this.refreshOwnedSubscriptions$=new Nj(void 0);this.ownedSubscriptions$=this.refreshOwnedSubscriptions$.pipe(Af(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 Nj(!1);var b=p(Mj);this.init$.pipe(we(function(c){return c}),Af(function(){return b.queryParams}),we(function(c){return c.subscriptionId}),Af(function(c){return a.fridge.watch(c.subscriptionId,{trustMemory:!1,trustUncertainMemory:!1})}),Uj(this.destroyRef)).subscribe(function(c){c&&a.openDialog(c)})};q9.prototype.ngOnInit=function(){this.init$.next(!0)};q9.prototype.openDialog=function(a){this.dialogRef=this.matDialog.open(this.dialogContent,{data:a,width:"500px"})};
q9.prototype.setFrequency=function(a,b){a.frequency=b;a.ordinal=b==="daily"?0:1};q9.prototype.save=function(a){var b=this;this.isSaving$.next(!0);(a.id==="0"?this.fridge.create(a):this.fridge.update(a)).pipe(nf(1),Uj(this.destroyRef)).subscribe(function(c){b.isSaving$.next(!1);b.refreshOwnedSubscriptions$.next();if(c.isOverflowing)A4d(b,c);else{var d;(d=b.dialogRef)==null||d.close()}})};
var A4d=function(a,b){b.query.endsWith(" created:30d")?a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Bh("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:Bh('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()}})};q9.prototype.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a configurable alert",content:Bh("Delete `"+a.displayName+"`?"),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){b.fridge.delete(a.id).pipe(Uj(b.destroyRef)).subscribe(function(){b.refreshOwnedSubscriptions$.next()})}})};
q9.\u0275fac=function(a){return new (a||q9)};
q9.\u0275cmp=D({type:q9,selectors:[["b-configurable-alert-settings"]],viewQuery:function(a,b){a&1&&hg(z4d,7);if(a&2){var c;lg(c=mg())&&(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();K(0,"div",3)(1,"div",4)(2,"p",5);Q(3,"Subscriptions");L()();K(4,"div");E(5,Plc,1,0,"ng-container",
6);K(6,"div")(7,"button",7);N("click",function(){u(c);return v(b.openDialog({id:"0",frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:{hours:9,minutes:0,seconds:0,nanos:0},displayName:"New configurable alert",query:"assignee:me status:open created:30d",sendEmail:!0,showInBuganizerHome:!1,baselineIssueIds:[],isOverflowing:!1,lastUpdated:{seconds:0,nanos:0}}))});Q(8," Create configurable alert ");L()()()();E(9,Zlc,13,3,"ng-template",null,0,Mg)(11,fmc,29,14,"ng-template",null,
1,Mg)}a&2&&(a=qg(10),B(5),I("ngTemplateOutlet",a))},dependencies:[Kx,Dy,QO,yj,$D,gE,gB,cB,eB,RA,TA,VA,UA,MD,ED,BD,PD,zE,OU,sT,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,OJ,YG,WG,aH,oK,iA,aK,$T,p9,Lx],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 B4d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};B4d.prototype.shouldDisplay=function(){return!0};B4d.prototype.hasOptions=function(){return!1};B4d.prototype.getDefaultOptionId=function(){return null};var C4d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};C4d.prototype.shouldDisplay=function(){return this.options.length>0};C4d.prototype.hasOptions=function(){return this.options.length>0};
C4d.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var D4d=function(a,b){this.id=a;this.name=b},F4d=function(a,b,c,d,e){var f=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.selectedOptionId=null;this.subscriptions=new Rd;this.missionControlMainOption=new B4d("Home","MISSION_CONTROL");this.assignedToMeMainOption=new B4d("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new C4d("Hotlist","HOTLIST");this.savedSearchMainOption=new C4d("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=
new C4d("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[this.assignedToMeMainOption,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption,this.missionControlMainOption];a={};this.resourceMainOptions=(a.MISSION_CONTROL=this.missionControlMainOption,a.ASSIGNED_TO_ME=this.assignedToMeMainOption,a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];E4d(this);
this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){E4d(f);f.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(g){g.homepagePreferences&&(g=g.homepagePreferences,g.resourceType?f.selectedMainOption=f.resourceMainOptions[g.resourceType]||f.mainOptions[0]:f.selectedMainOption=f.missionControlMainOption,f.selectedOptionId=g.resourceId||null,E4d(f))}))};F4d.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var jmc=function(a){Pr(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);Jkd(a.userPreferencesManager,b).subscribe(function(){Pr(a.butterBar,"Preferences saved.",4E3)})},E4d=function(a){function b(c){return new D4d(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 D4d(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};var r9=function(){Z.call(this);this.cdr=p(YP,{self:!0});this.userPreferencesManager=p(dR);this.butterBar=p(QN);this.activeSession=p(qu);this.documentationLinks=p(YR);this.analytics=p(aQ);this.sidebar=p(s2);this.appEvents=p(PO);this.constants=p(bS);this.dateFormats=[{value:"MMM d, yyyy",label:"Dec 31, 2015"},{value:"EE MMM dd, yyyy",label:"Thu Dec 31, 2015"},{value:"yyyy-MM-dd",label:"2015-12-31"},{value:"MM/dd/yyyy",label:"12/31/2015"},{value:"dd-MM-yyyy",label:"31-12-2015"},{value:"dd.MM.yyyy",label:"31.12.2015"}];
this.timeFormats=[{value:"hh:mma",label:"01:00PM"},{value:"h:mma",label:"1:00PM"},{value:"HH:mm",label:"13:00"},{value:"HH:mm:ss",label:"13:00:01"}];this.timeZones=[];this.showForcePlainTextSettings=this.activeSession.isInternalSession();this.appName=this.activeSession.getAppName();this.timeZones.push.apply(this.timeZones,q(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(r9,Z);r9.\u0275dir=Z.\u0275dir;r9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;(b=a.preferredHomepage)==null||b.destroy()});this.preferredHomepage=new F4d(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
r9.prototype.save=function(a,b,c){var d=this;Pr(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Pr(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};
var pmc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL_FORMATTING_MODE"},qmc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentCreateOverride)==="LITERAL_FORMATTING_MODE"};r9.prototype.getShowInlineImages=function(){var a;return(a=this.userPreferences.showInlineImages)!=null?a:!1};
da.Object.defineProperties(r9.prototype,{hideBadgeInNav:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.userPreferences)==null?0:(b=a.missionControlPreferences)==null?0:b.hideBadgeInNav)}}});r9.\u0275fac=function(a){return new (a||r9)};
r9.\u0275cmp=D({type:r9,selectors:[["b-general-settings"]],standalone:!1,features:[Gg([YP]),Gf],decls:74,vars:12,consts:[[1,"flex-kids-x","gap-l","margin-bottom"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-s"],["target","_blank",3,"href"],["appearance","outline"],["matTooltip","Current selection for preferred homepage"],["id","bv2-homepage-pref-selection",3,"ngModelChange","selectionChange","ngModel"],["id","hide-nav-badge",3,"change","checked"],[1,"margin-y"],["id",
"bv2-datetime-pref-date-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for calendar dates."],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["id","bv2-datetime-pref-time-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-timezone","appearance","outline"],["matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-enable-all-hotkeys",
3,"change","checked"],[1,"margin-bottom"],["id","bv2-force-code-font"],[1,"bv2-settings-preferred-homepage-main-option-select-item",3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],["id","bv2-show-inline-images",3,"change","checked"],["id","bv2-force-display-plain-text",3,"change","checked"],["id","bv2-force-create-plain-text",3,"change","checked"],["id",
"bv2-bug-screensaver",3,"change","checked"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),Q(4,"Preferred homepage"),L(),K(5,"p",3),Q(6," Select your preferred homepage when first opening the app. "),K(7,"a",4),Q(8," Learn more "),L()()(),K(9,"div")(10,"div")(11,"mat-form-field",5)(12,"mat-label",6),Q(13," Current selection "),L(),K(14,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.preferredHomepage.selectedMainOption,c)||(b.preferredHomepage.selectedMainOption=c);return c}),
N("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();jmc(c);c.cdr.detectChanges()}),Of(15,hmc,1,1,null,null,Nf),L()(),F(17,kmc,4,1,"mat-form-field",5),L(),K(18,"div")(19,"mat-slide-toggle",8),N("change",function(c){c=c.checked;if(b.userPreferences){var d;b.userPreferences.missionControlPreferences=(d=b.userPreferences.missionControlPreferences)!=null?d:{};d=!c;b.userPreferences.missionControlPreferences.hideBadgeInNav=d;b.save("hideBadgeInNav",
String(d))}}),Q(20,' Show red "attention" badge in left navigation '),L()()()(),M(21,"hr",9),K(22,"div",0)(23,"div",1)(24,"p",2),Q(25,"Date/time formatting settings"),L(),K(26,"p",3),Q(27," Select how you want dates and times to be formatted. "),K(28,"a",4),Q(29," Learn more "),L()()(),K(30,"div")(31,"div")(32,"mat-form-field",10)(33,"mat-label",11),Q(34," Dates "),L(),K(35,"mat-select",12),Cg("ngModelChange",function(c){Bg(b.userPreferences.dateTimePreferences.calendarFormat,c)||(b.userPreferences.dateTimePreferences.calendarFormat=
c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Of(36,lmc,2,2,"mat-option",13,Nf),L()()(),K(38,"div")(39,"mat-form-field",14)(40,"mat-label",15),Q(41," Times "),L(),K(42,"mat-select",12),Cg("ngModelChange",function(c){Bg(b.userPreferences.dateTimePreferences.timeFormat,c)||(b.userPreferences.dateTimePreferences.timeFormat=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Of(43,mmc,2,2,"mat-option",13,Nf),L()()(),K(45,"div")(46,
"mat-form-field",16)(47,"mat-label",17),Q(48," Time Zones "),L(),K(49,"mat-select",12),Cg("ngModelChange",function(c){Bg(b.userPreferences.dateTimePreferences.timeZone,c)||(b.userPreferences.dateTimePreferences.timeZone=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Of(50,nmc,2,2,"mat-option",13,Nf),L()()()()(),M(52,"hr",9),K(53,"div",0)(54,"div",1)(55,"p",2),Q(56,"Keyboard settings"),L()(),K(57,"div")(58,"div")(59,"mat-slide-toggle",18),N("change",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=
c.checked;return b.save("saveKeyboardPreferences")}),Q(60," Enable all hotkeys "),L()()()(),M(61,"hr",9),K(62,"div",0)(63,"div",1)(64,"p",2),Q(65,"Display settings"),L()(),K(66,"div")(67,"div",19)(68,"b-toggle-code-font",20),Q(69," Force comments to display with code font "),L()(),F(70,omc,3,1,"div",19),L()(),F(71,rmc,12,2),M(72,"hr",9),F(73,smc,8,1,"div",0),L());a&2&&(B(7),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Pe),B(7),Ag("ngModel",b.preferredHomepage.selectedMainOption),
B(),Pf(b.preferredHomepage.mainOptions),B(2),G(b.preferredHomepage.selectedMainOption.hasOptions()?17:-1),B(2),I("checked",!b.hideBadgeInNav),B(9),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Pe),B(7),Ag("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(),Pf(b.dateFormats),B(6),Ag("ngModel",b.userPreferences.dateTimePreferences.timeFormat),B(),Pf(b.timeFormats),B(6),Ag("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(),Pf(b.timeZones),
B(9),I("checked",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(11),G(b.showInlineImagesSetting?70:-1),B(),G(b.showForcePlainTextSettings?71:-1),B(2),G(b.showBugScreensaverSetting?73:-1))},dependencies:[$D,gE,vU,MD,ED,MH,cA,BD,OU,sT,oK,iA,o8],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 s9=function(){Z.call(this);var a=this;this.userPreferencesManager=p(dR);this.butterBar=p(QN);this.documentationLinks=p(YR);this.analytics=p(aQ);this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(Bf(this.destroyed$)).subscribe(function(b){a.userPreferences=b})};Y(s9,Z);s9.\u0275dir=Z.\u0275dir;
s9.prototype.save=function(a,b,c){var d=this;Pr(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Pr(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};s9.\u0275fac=function(a){return new (a||s9)};
s9.\u0275cmp=D({type:s9,selectors:[["b-notification-settings"]],standalone:!1,features:[Gf],decls:54,vars:8,consts:[[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-ss"],["target","_blank",3,"href"],["appearance","outline","id","bv2-notification-pref-assigned"],["matTooltip","Notification level - issues for which you are the assignee"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["appearance","outline","id","bv2-notification-pref-reported"],
["matTooltip","Notification level - issues for which you are the reporter"],["appearance","outline","id","bv2-notification-pref-verified"],["matTooltip","Notification level - issues for which you are the verifier"],["appearance","outline","id","bv2-notification-pref-collaborator"],["matTooltip","Notification level - issues for which you are the collaborator"],["appearance","outline","id","bv2-notification-pref-ccd"],["matTooltip","Notification level - issues on which you are CC'd"],["appearance",
"outline","id","bv2-notification-pref-starred"],["matTooltip","Notification level - issues that you have starred"],["id","bv2-exclude-changes-by-me",3,"change","checked"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"p",2),Q(3,"Notification settings"),L(),K(4,"p",3),Q(5," Select the level of email you want to receive for each issue role. "),K(6,"a",4),Q(7," Learn more "),L()()(),K(8,"div")(9,"div")(10,"mat-form-field",5)(11,"mat-label",6),Q(12," Assignee "),L(),K(13,"mat-select",7),Cg("ngModelChange",
function(c){Bg(b.userPreferences.notificationPreferences.assignedPriority,c)||(b.userPreferences.notificationPreferences.assignedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Of(14,tmc,3,4,"mat-option",8,Nf),L()()(),K(16,"div")(17,"mat-form-field",9)(18,"mat-label",10),Q(19," Reporter "),L(),K(20,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.reportedPriority,c)||(b.userPreferences.notificationPreferences.reportedPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Of(21,umc,3,4,"mat-option",8,Nf),L()()(),K(23,"div")(24,"mat-form-field",11)(25,"mat-label",12),Q(26," Verifier "),L(),K(27,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.verifiedPriority,c)||(b.userPreferences.notificationPreferences.verifiedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Of(28,vmc,3,4,"mat-option",
8,Nf),L()()(),K(30,"div")(31,"mat-form-field",13)(32,"mat-label",14),Q(33," Collaborator "),L(),K(34,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.collaboratorPriority,c)||(b.userPreferences.notificationPreferences.collaboratorPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Of(35,wmc,3,4,"mat-option",8,Nf),L()()(),K(37,"div")(38,"mat-form-field",15)(39,"mat-label",16),Q(40," CC'd "),L(),K(41,"mat-select",
7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.ccdPriority,c)||(b.userPreferences.notificationPreferences.ccdPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Of(42,xmc,3,4,"mat-option",8,Nf),L()()(),K(44,"div")(45,"mat-form-field",17)(46,"mat-label",18),Q(47," Starred "),L(),K(48,"mat-select",7),Cg("ngModelChange",function(c){Bg(b.userPreferences.notificationPreferences.starredPriority,c)||(b.userPreferences.notificationPreferences.starredPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Of(49,ymc,3,4,"mat-option",8,Nf),L()()(),K(51,"div")(52,"mat-slide-toggle",19),N("change",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c.checked;return b.save("saveNotificationPreferences")}),Q(53," Exclude edits made by you "),L()()()());a&2&&(B(6),I("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Pe),B(7),Ag("ngModel",b.userPreferences.notificationPreferences.assignedPriority),
B(),Pf(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(),Pf(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),B(),Pf(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),B(),Pf(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(),Pf(b.priorities),B(6),Ag("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(),Pf(b.priorities),
B(3),I("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[$D,gE,vU,MD,ED,MH,cA,BD,OU,sT,oK,iA,Lsd],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 G4d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,G4d.messageId)};Y(G4d,W);G4d.prototype.getSubscriptionsList=function(){return Ci(this,tr,1,Di(),jb)};G4d.messageId="b.ListSloReportSubscriptionsResponse";var t9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,t9.messageId)};Y(t9,W);t9.prototype.getSubscription=function(){return X(this,tr,1,jb)};t9.prototype.setSubscription=function(a){return Ni(this,tr,1,a,jb)};t9.messageId="b.SloReportSubscriptionRequest";var u9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,0,u9.messageId)};Y(u9,W);u9.prototype.getSubscription=function(){return X(this,tr,1,jb)};u9.prototype.setSubscription=function(a){return Ni(this,tr,1,a,jb)};u9.messageId="b.SloReportSubscriptionResponse";var v9=function(){this.executor=p(ZN)};h=v9.prototype;h.get=function(a){return this.executor.get({url:"action/slo_report_subscriptions/"+a,responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return p5a(b);throw Error("Eg");}))};h.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:G4d}).pipe(A(function(a){return a.getSubscriptionsList().map(p5a)}))};
h.create=function(a){if(a.id!==0)throw Error("Fg");return this.executor.post({url:"action/slo_report_subscriptions",body:(new t9).setSubscription(q5a(a)),responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return p5a(b);throw Error("Cg");}))};
h.update=function(a){if(a.id===0)throw Error("Gg");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new t9).setSubscription(q5a(a)),responseConstructor:u9}).pipe(A(function(b){if(b=b.getSubscription())return p5a(b);throw Error("Cg");}))};h.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:rO}).pipe(A(function(){}))};v9.\u0275fac=function(a){return new (a||v9)};v9.\u0275prov=Fc({token:v9,factory:v9.\u0275fac,providedIn:"root"});var H4d=["sloSubscriptionDialog"],w9=function(){Z.apply(this,arguments);var a=this;this.dateFormatter=p(qS);this.api=p(v9);this.currentUser=p(M2);this.dialog=p(QA);this.timeZones=p(aS);this.confirmationDialogService=p(ZR);this.principalTypes=p(AQ);this.analytics=p(aQ);this.butterBar=p(QN);this.constants=p(bS);this.activeSession=p(qu);this.subscriptions$=new Nj([]);this.isBasicMode$=this.subscriptions$.pipe(A(function(b){return b.length===0||b.length===1&&b[0].lead.emailAddress===a.currentUser.email}));
this.userSubscription$=this.subscriptions$.pipe(A(function(b){b=m(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:I4d[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}}));this.isThinking$=new Nj(!1);this.inputHasFocus=!1;this.repeatAtOptions$=
le(I4d.map(function(b){return ee(a.dateFormatter.format("HH:mma",void 0,b.date)).pipe(A(function(c){return{timeOfDay:b.timeOfDay,display:c}}))}));this.ceoSelected=this.dialogInvalidEmailFormat=!1;this.emailToUser=ym;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(J4d.map(function(b){return[b.frequency,b.display]}));this.timeZoneDisplayMap$=Omd(this.timeZones).pipe(nf(1),A(function(b){return new Map(b.map(function(c){return[c.id,c.displayName]}))}),xf({bufferSize:1,refCount:!0}));
this.hourOfDayDisplayMap$=this.repeatAtOptions$.pipe(nf(1),A(function(b){return new Map(b.map(function(c){return[c.timeOfDay.hours,c.display]}))}),xf({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(w9,Z);w9.\u0275dir=Z.\u0275dir;w9.prototype.ngOnInit=function(){K4d(this)};
var Hmc=function(a){a.userSubscription$.pipe(nf(1),Af(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(){K4d(a)})},K4d=function(a){a.isThinking$.next(!0);a.api.list().pipe(nf(1)).subscribe(function(b){a.isThinking$.next(!1);for(var c=m(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)})},pu=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");K4d(a);a.newSloId=void 0},function(c){c.status===404&&(a.butterBar.showWarning("Subscription does not exist"),K4d(a))})},L4d=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent("sloReports","deleteSubscription");K4d(a)})};h=w9.prototype;
h.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a subscription",content:Bh("You will no longer receive reports from '"+a.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){L4d(b,a)}})};h.setFrequency=function(a,b){b.frequency=a;a!=="daily"?b.ordinal=1:delete b.ordinal;pu(this,b)};h.setTimeZone=function(a,b){pu(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
h.setDaysRemaining=function(a){if(this.inputDaysRemaining!==a.daysRemaining){var b;pu(this,Object.assign({},a,{daysRemaining:(b=this.inputDaysRemaining)!=null?b:0}))}};h.setIssueType=function(a,b){pu(this,Object.assign({},b,{types:a}))};
var Fmc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&pu(a,Object.assign({},b,{sloIds:[].concat(q(b.sloIds),[a.newSloId])}))},Cmc=function(a,b,c){if(b.sloIds.includes(c)){var d=b.sloIds.filter(function(e){return e!==c});pu(a,Object.assign({},b,{sloIds:d}))}},anc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&(b.sloIds.push(a.newSloId),a.newSloId=void 0)},Ymc=function(a,b){if(a.sloIds.includes(b)){var c=a.sloIds.filter(function(d){return d!==b});a.sloIds=c}};
w9.prototype.openDialog=function(a){this.sloSubscriptionDialog&&(a||(a={id:0,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:I4d[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:pm(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var bnc=function(a,b){return y(function(c){if(c.nextAddress==1)return a.dialogRef&&b.lead!==void 0?z(c,M4d(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");K4d(a)}):pu(a,b);a.dialogRef.close();ce(c)})},M4d=function(a,
b){var c;return y(function(d){if(d.nextAddress==1)return $n(b)?z(d,a.principalTypes.get(b),2):d.return(Promise.resolve(!1));c=d.yieldResult;return c.principalType!=="USER"?d.return(Promise.resolve(!1)):d.return(Promise.resolve(!0))})};w9.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(w9)))(b||w9)}}();
w9.\u0275cmp=D({type:w9,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&hg(H4d,7);if(a&2){var c;lg(c=mg())&&(b.sloSubscriptionDialog=c.first)}},standalone:!1,features:[Gf],decls:22,vars:14,consts:[["sloSubscriptionDialog",""],["subscriptionMenu","matMenu"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],["id","advanced-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby advanced-settings-note".split(" "),
[1,"full-width"],[1,"margin-bottom"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["mat-table","","aria-label","SLO reports subscriptions",1,"bordered","full-width",3,"dataSource"],["id","frequency-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby frequency-settings-note".split(" "),[1,"margin-y"],["id","isSubscribedCheckbox",1,"margin-s-right",3,"change","disabled","checked"],["appearance","outline",1,"full-width"],
["matInput","","readonly","",3,"focus","blur","ngModel"],[3,"frequencyChange","ordinalChange","timeOfDayChange","timeZoneIdChange","frequency","ordinal","timeOfDay","timeZoneId"],["appearance","outline"],["matInput","","type","number",3,"ngModelChange","blur","keydown.enter","ngModel"],["multiple","",3,"ngModelChange","ngModel"],[3,"value"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","type","number",3,"ngModelChange","keydown.enter","blur","ngModel"],[1,"flex-kids-x","space-between",
"margin-xs-y"],[1,"muted","type-s"],[1,"subtle-link",3,"href"],["type","button","mat-icon-button","","aria-label","Remove SLO ID",1,"xs",3,"click","matTooltip"],["svgIcon","clear"],["matColumnDef","scope"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","frequency"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button",
"","aria-label","Show actions for this subscription",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","","aria-label","View and edit subscription attributes",3,"click"],["type","button","mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0"],["matDialogTitle",""],[1,"type-l","margin-bottom"],["appearance","outline","floatLabel","always",1,"full-width"],[3,"emailChange","asMatInput","email","required","placeholder"],["matInput",
"","type","number",3,"ngModelChange","ngModel"],["appearance","outline","subscriptSizing","dynamic",1,"full-width"],["id","new-subscription-note",1,"italic"],"href http://go/issue-slo-reports target _blank aria-describedby new-subscription-note".split(" "),"type button mat-button  color primary matDialogClose ".split(" ")],template:function(a,b){if(a&1){var c=t();F(0,Jmc,11,3);T(1,"async");K(2,"div",2)(3,"div",3)(4,"p",4);Q(5,"Advanced settings");L();K(6,"p",5);Q(7," Add subscriptions to receive other user's reports. ");
K(8,"a",6);Q(9,"Learn more");L()()();K(10,"div",7)(11,"div",8)(12,"button",9);T(13,"async");N("click",function(){u(c);return v(b.openDialog())});Q(14," Create subscription ");L()();F(15,Kmc,1,0,"b-spinner");T(16,"async");F(17,Umc,12,3,"table",10);T(18,"async");T(19,"async");L()();E(20,cnc,42,16,"ng-template",null,0,Mg)}a&2&&(G(U(1,4,b.isBasicMode$)?0:-1),B(12),I("disabled",U(13,6,b.isThinking$)),B(3),G(U(16,8,b.isThinking$)?15:-1),B(2),G(U(18,10,b.isBasicMode$)||U(19,12,b.isThinking$)?-1:17))},dependencies:[Dy,
yj,iE,$D,gE,gB,cB,eB,RA,TA,VA,UA,vU,MD,ED,DD,CD,MH,cA,BD,PD,zE,OU,sT,XW,WT,JT,PT,LT,IT,RT,MT,OT,ST,UT,OJ,YG,WG,aH,oK,iA,$T,N_,p9,Lx],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 J4d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],Omc=[{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"}],I4d=[].concat(q(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 x9=function(){this.activeSession=p(qu);this.location=p(ZT);this.routeParams=p(rS);this.isInternalSession=this.activeSession.isInternalSession();this.selectedTabIndex=0};x9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=N4d(this,this.routeParams.settingsTab)};x9.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(ps.settingsTab.makeHref(d)):this.location.setUrl(ps.settings.makeHref())}};
var N4d=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.id===b});return a<0?0:a};x9.\u0275fac=function(a){return new (a||x9)};
x9.\u0275cmp=D({type:x9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&hg(rL,5);if(a&2){var c;lg(c=mg())&&(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&&(K(0,"p",0),Q(1,"Settings"),
L(),K(2,"mat-tab-group",1),N("selectedIndexChange",function(c){return b.tabChange(c)}),K(3,"mat-tab",2),E(4,dnc,2,0,"ng-template",3),L(),K(5,"mat-tab",4),E(6,enc,2,0,"ng-template",3),L(),K(7,"mat-tab",5),E(8,fnc,2,0,"ng-template",3),L(),F(9,hnc,2,0,"mat-tab",6),L());a&2&&(B(2),I("selectedIndex",b.selectedTabIndex),B(7),G(b.isInternalSession?9:-1))},dependencies:[wL,nL,rL,sL,r9,s9,w9,q9],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 O4d=function(){this.activatedRoute=p(Mj);this.routeParams=p(rS);this.issueId=this.routeParams.issueId;this.attachmentId=this.routeParams.attachmentId;this.mimeType=T9a(this.activatedRoute.snapshot.queryParamMap).mimeType};O4d.\u0275fac=function(a){return new (a||O4d)};
O4d.\u0275cmp=D({type:O4d,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:[ZY],encapsulation:2});var y9=function(){Z.apply(this,arguments);this.cdr=p(YP,{self:!0});this.routeParams=p(rS);this.bLocation=p(ZT);this.pageTitle=p(m2);this.userApi=p(fP);this.bookmarkGroupsApi=p(xO);this.paths=p(mW);this.appEvents=p(PO);this.activeSession=p(qu);this.isStarred=!1;this.userEmail=this.activeSession.getUserEmail();this.bookmarkGroup=null};Y(y9,Z);y9.\u0275dir=Z.\u0275dir;h=y9.prototype;
h.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsAdmin=c.adminUsers.some(function(d){return d.emailAddress===a.userEmail});a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(c){c&&a.bookmarkGroup&&
c.bookmarkGroupId==a.bookmarkGroup.bookmarkGroupId&&a.bookmarkGroupsApi.get(a.routeParams.groupId).then(b)}))};h.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.addUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b):this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};
h.openEditBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};h.getUserEmail=function(){return this.userEmail};h.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsAdmin};h.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return ps.viewHotlist.makeHref(a.hotlistId);default:throw Error("Hg`"+a.resourceType);}};
h.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:throw Error("Hg`"+a.resourceType);}};y9.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(y9)))(b||y9)}}();
y9.\u0275cmp=D({type:y9,selectors:[["view-bookmark-group-page"]],standalone:!1,features:[Gg([YP]),Gf],decls:5,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-view"],[1,"bv2-view-bookmark-group-title"],[1,"bv2-view-bookmark-group-header"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"starMessage","unStarMessage","starred"],[1,"bv2-view-bookmark-group-title-text"],["type","button","aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon",
"bv2-view-resource-edit-button",3,"click"],[1,"bv2-view-bookmark-group-description"],[1,"bv2-view-bookmark-group-hotlists"],[3,"starClicked","starMessage","unStarMessage","starred"],[3,"href"]],template:function(a,b){a&1&&(K(0,"h2",0),Q(1),L(),M(2,"div",1),K(3,"div",2),F(4,lnc,13,3,"div"),L());a&2&&(B(),S("View Bookmark Group ",b.bookmarkGroup==null?null:b.bookmarkGroup.name),B(2),Kf("aria-busy",!b.bookmarkGroup),B(),G(b.bookmarkGroup?4:-1))},dependencies:[FY,oK,iA],encapsulation:2});var P4d=function(){};
P4d.\u0275fac=function(a){return new (a||P4d)};P4d.\u0275mod=cf({type:P4d});P4d.\u0275inj=Hc({imports:[RO,X1,pK]});var z9=function(){z8.apply(this,arguments);this.ngZone=p(Rg);this.userApi=p(fP);this.hotlists=p(m5);this.hotkeys=p(kU);this.pageTitle=p(m2);this.userAccess=p(yP);this.routeParams=p(rS);this.mcPrefs=p(q1);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(z9,z8);z9.\u0275dir=z8.\u0275dir;
z9.prototype.ngOnInit=function(){var a=this;z8.prototype.ngOnInit.call(this);this.subscriptions.add(lU(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(q(this.BASE_HOTKEYS),[{keys:[Tr("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){Q4d(a,1)}},{keys:[Tr("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){Q4d(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&b.origin!=="view-hotlist"&&R4d(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)};
z9.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)}};
z9.prototype.loadUserAccess=function(a){var b=this;zP(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});zP(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
z9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;Xqd(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):R4d(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var R4d=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};
z9.prototype.doSearch=function(a){var b=this,c=WSd.map(Jt).filter(Qm),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=pm(f);f.query=d;f.returnUrl=b.bLocation.getUrl();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;return NOd(b.issuePagination,f)});a.then(function(f){k2d(b,
f)}).catch(function(f){typeof f==="number"?N4(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return ms({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,S4d(b)?z9.META_COLUMNS_DRAGGABLE:z9.META_COLUMNS);b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
var S4d=function(a){return a.sortPreferences.length===0||a.sortPreferences.length===1&&a.sortPreferences[0].fieldId.type==="POSITION"};z9.prototype.getCsvUrl=function(){var a=this.appSearchState.currentTrackerScope,b=this.displayColumns,c=this.showHotlists,d="action/hotlists/"+this.hotlistId+"/issues/csv",e=rgb(this.sortPreferences);(b=sgb(b))&&(b="position,"+b);return tgb(d,"trackerIds",a,"s",e,"c",b,"h",c)};
z9.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 Q4d=function(a,b){if(a.searchResults&&!a.repositioning&&S4d(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||QTb(f)}else if(b===-1){var g;(g=a.resultsGrid)==null||RTb(g)}a.repositionIssue(e,c,!0)}}};h=z9.prototype;
h.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=J3a(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}});Pr(this.butterBar,"Saving changes to hotlist...");T4d(this,b).then(function(e){Pr(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');N4(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams",d)})}};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");N4(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};h.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
h.isEditable=function(){return this.hotlist!=null&&this.isAdmin};h.isDirectAdmin=function(){return this.hotlist?vm(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};h.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?z8.prototype.setSort.call(this,a,b,!1):z8.prototype.setSort.call(this,a,b)};
var T4d=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;U4d(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},U4d=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
z9.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=wo(this.hotlistId),c=function(){U4d(a,b)};this.isStarred?this.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c):this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c)};z9.prototype.openEditHotlist=function(){this.bLocation.setUrl(ps.editHotlist.makeHref(this.hotlistId))};z9.prototype.addToMissionControl=function(a){a!=null&&(this.mcPrefs.addHotlist(a),this.bLocation.setUrl(this.paths.home()))};
z9.prototype.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasHotlist(this.hotlistId);return b&&a&&c};z9.META_COLUMNS=[sUd,uUd,vUd,wUd];z9.META_COLUMNS_DRAGGABLE=[sUd,tUd,uUd,vUd,wUd];z9.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(z9)))(b||z9)}}();
z9.\u0275cmp=D({type:z9,selectors:[["view-hotlist-page"]],standalone:!1,features:[Gg([YP]),Gf],decls:10,vars:12,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices","showHotlistButtons","currentHotlistId","isHotlistAdmin"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-loading"],
["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this hotlist like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this hotlist like trending issues, collaborators, and recent activity.",1,"medium",
"gmat-mdc-button","reverse-margin-left",3,"click"],[3,"starMessage","unStarMessage","starred"],[3,"starMessage","unStarMessage","starred","disabled"],[1,"bv2-view-hotlist-title-text"],["tabindex","-1",3,"bFocus"],[1,"bv2-view-hotlist-save-form"],[3,"starClicked","keydown.space","keydown.enter","starMessage","unStarMessage","starred"],["role","heading","aria-level","3"],[3,"matTooltip"],[1,"hotlist-archived"],[1,"button-container"],["type","button","aria-label","Hotlist settings","matTooltip","Hotlist settings",
1,"bv2-edit-button","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences have changed"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences",1,"medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences",1,"medium",3,"click"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onRowDragDrop","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns",
"enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"b-grid-controls",1),N("init",function(d){return b.gridControls=d})("onRefresh",function(){return b.refreshResults()})("onSave",function(d){return b.sendBulkEditRequest(d.bulkEditOps)})("onCreateHotlist",function(d){return b.createHotlist(d)})("onLoadHotlist",function(d){return b.loadHotlist(d)})("onExportCsv",function(){return b.exportCsv()}),L(),F(2,nnc,1,1),K(3,"div",2)(4,"b-pagination",3),N("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),L()()(),K(5,"div",4),F(6,xnc,9,7,"div",5),F(7,ync,4,1,"div",6),F(8,Bnc,3,2,"div",7),F(9,Cnc,2,6,"div",8),L());if(a&2){var c;B();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin);B();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);B(2);I("searchResults",b.searchResults);
B();Kf("aria-busy",b.isLoading);B();G(b.isInitializing?-1:6);B();G(b.isLoading?7:-1);B();G(b.isLoading||b.hasResults()?-1:8);B();G(!b.isLoading&&b.hasResults()?9:-1)}},dependencies:[B4,n5,FY,y4,oK,iA,$T,AW,gB,cB],encapsulation:2});var V4d=function(){};V4d.\u0275fac=function(a){return new (a||V4d)};V4d.\u0275mod=cf({type:V4d});V4d.\u0275inj=Hc({imports:[J4,o5,X1,l5,pK,RO,bU,BW,iB,xE,pU,U1,k1]});var A9=function(){z8.apply(this,arguments);this.savedSearchApi=p(jP);this.hotkeys=p(kU);this.pageTitle=p(m2);this.userAccess=p(yP);this.routeParams=p(rS);this.mcPrefs=p(q1);this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearchId=this.routeParams.savedSearchId;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1};Y(A9,z8);A9.\u0275dir=z8.\u0275dir;h=A9.prototype;
h.ngOnInit=function(){var a=this;z8.prototype.ngOnInit.call(this);this.subscriptions.add(lU(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&b.savedSearchId===a.savedSearchId&&(b.action==="delete"?(a.savedSearch=null,a.searchResults=null,a.appSearchState.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));
this.subscriptions.add(drd(this.appSearchState,function(b){a.savedSearch?N4(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.setUrl(b))}));this.loadUserAccess(this.savedSearchId)};h.loadUserAccess=function(a){var b=this;zP(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h.loadSavedSearch=function(){var a=this;this.savedSearch=null;var b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.savedSearch=c;a.pageTitle.setTitle(c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c);a.savedSearch=null}).finally(function(){a.cdr.detectChanges()});return b};
h.getIssues=function(){var a=this,b=this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId;Xqd(this.appSearchState,b);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
h.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:f2d(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;Xqd(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=pm(d);d.returnUrl=b.bLocation.getUrl();d.trackerIds=
b.appSearchState.currentTrackerScope;return NOd(b.issuePagination,d)});c.then(function(d){k2d(b,d)}).catch(function(d){typeof d==="number"?N4(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return ms({searchResultsPage:c,displayColumns:a.displayColumns}).then(function(d){d=d.searchResultsPage;b.searchResults=d;b.page=d.params.page;b.sortPreferences=d.params.sortColumns||[];b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
h.isEditable=function(){return!!this.savedSearch&&this.isAdmin};h.getCsvUrl=function(){return ugb(this.searchParams.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
h.save=function(){var a=this,b=this.urlPreferences.getDisplayColumns();b&&(this.savedSearch.displayColumn=b);if(b=this.urlPreferences.getSortColumns())this.savedSearch.sortOrder=b.map(function(c){return{direction:c.direction,field:c.fieldId}});this.savedSearch.query=this.urlPreferences.getQuery()||this.savedSearch.query;Pr(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){Pr(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;N4(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");N4(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
h.hasParamChanges=function(){return this.savedSearch?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!==this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};h.openEditSavedSearch=function(){this.bLocation.setUrl(this.paths.editSavedSearch(this.savedSearchId))};h.addToMissionControl=function(a){a!=null&&(DMd(this.mcPrefs,hvb(a)),this.bLocation.setUrl(this.paths.home()))};
h.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasSavedSearch(this.savedSearchId);return b&&a&&c};A9.\u0275fac=function(){var a;return function(b){return(a||(a=Hd(A9)))(b||A9)}}();
A9.\u0275cmp=D({type:A9,selectors:[["view-saved-search-page"]],standalone:!1,features:[Gg([YP]),Gf],decls:10,vars:8,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],[1,"bv2-view-savedsearch-save-form"],
["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this Saved Search like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this Saved Search like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left",3,"click"],["role",
"heading","aria-level","3"],[3,"matTooltip"],["type","button","aria-label","Saved search settings","matTooltip","Saved search settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences or search query have changed"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,"medium"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences and search query",1,"medium",
3,"click"],[1,"bv2-view-savedsearch-exit-link"],["matTooltip","Show this search with your default display preferences",3,"click","href"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,"medium",3,"click"],[1,"bv2-view-loading"],[1,"bv2-grid-container"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns",
"enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"b-grid-controls",1),N("init",function(d){return b.gridControls=d})("onRefresh",function(){return b.refreshResults()})("onSave",function(d){return b.sendBulkEditRequest(d.bulkEditOps)})("onCreateHotlist",function(d){return b.createHotlist(d)})("onLoadHotlist",function(d){return b.loadHotlist(d)})("onExportCsv",function(){return b.exportCsv()}),L(),F(2,Enc,1,1),K(3,"div",2)(4,"b-pagination",3),N("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),L()()(),K(5,"div",4)(6,"div",5),F(7,Knc,3,1,"div",6),F(8,Mnc,7,2,"div",7),L(),F(9,Snc,3,1,"div"),L());if(a&2){var c;B();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices);B();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);B(2);I("searchResults",b.searchResults);B();Kf("aria-busy",b.isLoading);B(2);G(b.isInitializing?-1:7);B();G(b.hasParamChanges()?8:-1);B();
G(b.savedSearch?9:-1)}},dependencies:[B4,n5,y4,oK,iA,$T,AW,gB,cB],encapsulation:2});var W4d=function(){};W4d.\u0275fac=function(a){return new (a||W4d)};W4d.\u0275mod=cf({type:W4d});W4d.\u0275inj=Hc({imports:[J4,o5,l5,RO,pK,bU,BW,iB,xE,pU,U1,k1]});var X4d={path:ps.viewIssue.routeDeclarationPath,component:X7,children:[{path:"",pathMatch:"full",component:n8},{path:"dependencies",component:P1},{path:"dupes",component:Z7},{path:"blocking",component:H7},{path:"resources",component:b2d}].concat(q(Unc("enableCodeMentionsUi",{path:"todos",component:x8})),q(Tnc(function(){var a=Xn();return UTa(a)==="INTERNAL"},{path:"insights",component:jZd})))},Y4d=[{path:"",component:X6,canActivateGuards:[c7]},{title:Mt("Issues"),path:ps.listIssues.routeDeclarationPath,
component:A8},{title:Mt("New issue"),path:ps.createIssue.routeDeclarationPath,component:A7,canActivateGuards:[n7]}].concat(q(Tnc(function(){var a;if(a=IVa("enableChromeWizard")){var b;a=((b=Xn().tracker)==null?void 0:b.trackerId)==="157"}return a},{title:Mt("New issue"),path:ps.createIssueChromeWizard.routeDeclarationPath,component:x_d})),[X4d,{title:Mt("Browse All Components"),path:ps.listComponentsGlobal.routeDeclarationPath,component:nZd},{title:Mt("Browse Components"),path:ps.listComponents.routeDeclarationPath,
component:o7},{title:Mt("Create component"),path:ps.createComponent.routeDeclarationPath,component:q7},{title:Mt("Component"),path:ps.editComponent.routeDeclarationPath,component:P8},{path:"components/:componentId/manage",redirectTo:ps.editComponent.routeDeclarationPath},{path:"components/:componentId",redirectTo:ps.editComponent.routeDeclarationPath}],q(Unc("enableTeamScope",{title:Mt("Triage"),path:ps.viewTriage.routeDeclarationPath,component:V1})),q(Unc("enableTeamScope",{title:Mt("Triage"),path:ps.viewTriageDashboard.routeDeclarationPath,
component:vMd})),q(Unc("enableTeamScope",{title:Mt("Issue Themes"),path:ps.viewIssueThemes.routeDeclarationPath,component:h1})),q(Unc("enableTeamScope",{title:Mt("Triage"),path:ps.triageSettings.routeDeclarationPath,component:Z1})),[{title:Mt("Team"),path:ps.editTeam.routeDeclarationPath,component:Q8},{path:"teams/:teamId",redirectTo:ps.editTeam.routeDeclarationPath},{title:Mt("Create Bookmark Group"),path:ps.createBookmarkGroup.routeDeclarationPath,component:p7},{title:Mt("Bookmark Group"),path:ps.viewBookmarkGroup.routeDeclarationPath,
component:y9},{title:Mt("Bookmark Group"),path:ps.editBookmarkGroup.routeDeclarationPath,component:D7},{title:Mt("Create Hotlist"),path:ps.createHotlist.routeDeclarationPath,component:r7},{title:Mt("Hotlist"),path:ps.viewHotlist.routeDeclarationPath,component:z9},{title:Mt("Edit Hotlist"),path:ps.editHotlist.routeDeclarationPath,component:IUd},{title:Mt("Create SLO"),path:ps.createSlo.routeDeclarationPath,component:o0d},{title:Mt("SLO"),path:ps.viewSlo.routeDeclarationPath,component:G7},{title:Mt("SLO"),
path:ps.editSlo.routeDeclarationPath,component:G7},{title:Mt("Saved search"),path:ps.editSavedSearch.routeDeclarationPath,component:E7},{title:Mt("All of my hotlists"),path:ps.listHotlists.routeDeclarationPath,component:y8},{title:Mt("Manage SLOs"),path:ps.listSlos.routeDeclarationPath,component:p2d},{title:Mt("Saved search"),path:ps.viewSavedSearch.routeDeclarationPath,component:A9},{title:Mt("Dashboard"),path:ps.viewDashboard.routeDeclarationPath,component:C7},{title:Mt("Settings"),path:ps.settingsTab.routeDeclarationPath,
component:x9},{title:Mt("Settings"),path:ps.settings.routeDeclarationPath,component:x9},{title:Mt("View Attachment"),path:ps.viewAttachment.routeDeclarationPath,component:O4d,hideAppChrome:!0},{title:Mt("Home"),path:ps.home.routeDeclarationPath,component:o9,canActivateGuards:[b7]},{path:"**",component:X6,canActivateGuards:[c7]}]);var B9=function(){};B9.\u0275fac=function(a){return new (a||B9)};B9.\u0275mod=cf({type:B9});B9.\u0275inj=Hc({imports:[RO,BX,iB]});var Z4d=function(){};Z4d.\u0275fac=function(a){return new (a||Z4d)};Z4d.\u0275mod=cf({type:Z4d});Z4d.\u0275inj=Hc({imports:[RO,zU,MK,AX,B9]});var $4d=function(){};$4d.\u0275fac=function(a){return new (a||$4d)};$4d.\u0275mod=cf({type:$4d});$4d.\u0275inj=Hc({imports:[RO,nU,iB,MJ]});var a5d=function(){};a5d.\u0275fac=function(a){return new (a||a5d)};a5d.\u0275mod=cf({type:a5d});a5d.\u0275inj=Hc({imports:[zX,RO,g1d,nU,iB,bK,PJ,pK,y5,k5,p8,$4d]});var b5d=function(){};b5d.\u0275fac=function(a){return new (a||b5d)};b5d.\u0275mod=cf({type:b5d});b5d.\u0275inj=Hc({imports:[RO,nU,iB,pK]});var c5d=function(){};c5d.\u0275fac=function(a){return new (a||c5d)};c5d.\u0275mod=cf({type:c5d});c5d.\u0275inj=Hc({imports:[x0,RO,pK,gL,PU,iB,bU,pX,k5,yX]});var d5d=function(){};d5d.\u0275fac=function(a){return new (a||d5d)};d5d.\u0275mod=cf({type:d5d});d5d.\u0275inj=Hc({imports:[RO,KX,MK,CV]});var e5d=function(){};e5d.\u0275fac=function(a){return new (a||e5d)};e5d.\u0275mod=cf({type:e5d});e5d.\u0275inj=Hc({imports:[Z4d,KX,RO,G_,R0,nU,MK,IX,W0,B9,iB,bK,pK,X1,CV,d5d,b5d,a5d,c5d]});var f5d=function(){};f5d.\u0275fac=function(a){return new (a||f5d)};f5d.\u0275mod=cf({type:f5d});f5d.\u0275inj=Hc({imports:[q8,RO,bU,iB,CU,jA]});var g5d=function(){};g5d.\u0275fac=function(a){return new (a||g5d)};g5d.\u0275mod=cf({type:g5d});g5d.\u0275inj=Hc({imports:[RO,iB]});var C9=function(){};C9.\u0275fac=function(a){return new (a||C9)};C9.\u0275mod=cf({type:C9});C9.\u0275inj=Hc({imports:[RO,xV,iB,pK]});var D9=function(){};D9.\u0275fac=function(a){return new (a||D9)};D9.\u0275mod=cf({type:D9});D9.\u0275inj=Hc({imports:[X5,nI,By,RO,CU,wz,zU,pX,xE,f5d,e5d,i5,P0,iB,MJ,uM,yL,pK,yE,s1d,k5,uU,g5d,C9]});var h5d=function(){};h5d.\u0275fac=function(a){return new (a||h5d)};h5d.\u0275mod=cf({type:h5d});h5d.\u0275inj=Hc({imports:[RO,M6]});var i5d=function(){};i5d.\u0275fac=function(a){return new (a||i5d)};i5d.\u0275mod=cf({type:i5d});i5d.\u0275inj=Hc({imports:[RO,By,nI,xE,yE,iB,yL,uU,zX,D9,a2d,Q1,V0d,t1d,h5d,c2d]});var j5d=Y4d.map(function(a){var b=a.redirectTo?void 0:[Z6,a7].concat(q(a.canActivateGuards||[])),c;return{title:a.title,path:a.path,redirectTo:a.redirectTo,component:a.component,canDeactivate:[uY],canActivate:b,children:a.children,isRootRoute:!0,hideAppChrome:(c=a.hideAppChrome)!=null?c:!1}});j5d.push({path:"**",canActivate:["dontActivate"],component:X6,isRootRoute:!0,hideAppChrome:!1});
var k5d=Xn().appBaseHref,l5d,E9={initialNavigation:"disabled"},m5d=(E9==null?0:E9.errorHandler)?{provide:jRc,useValue:E9.errorHandler}:[],n5d={provide:PE,useValue:E9?E9:{}},o5d=(E9==null?0:E9.useHash)?{provide:by,useClass:dy}:{provide:by,useClass:cy},p5d={provide:QRc,useFactory:function(){var a=p(jBc),b=p(PE);b.scrollOffset&&lBc(a,b.scrollOffset);return new cF(b)}},q5d=(E9==null?0:E9.preloadingStrategy)?Fya(0,[{provide:WRc,useExisting:bF},{provide:MRc,useExisting:E9.preloadingStrategy}]).\u0275providers:
[],r5d;
(E9==null?0:E9.initialNavigation)?r5d=[E9.initialNavigation==="disabled"?Fya(3,[Qka(function(){DRc(p(YE))}),{provide:VRc,useValue:2}]).\u0275providers:[],E9.initialNavigation==="enabledBlocking"?Fya(2,[{provide:izc,useValue:!0},{provide:VRc,useValue:0},Qka(function(){var a=p(Ae);return a.get(fBc,Promise.resolve()).then(function(){return new Promise(function(b){var c=a.get(YE),d=a.get(URc);Eya(c,function(){b(!0)});a.get(TE).afterPreactivation=function(){b(!0);return d.closed?ee(void 0):d};c.initialNavigation()})})})]).\u0275providers:[]]:
r5d=[];var s5d=r5d,t5d=(E9==null?0:E9.bindToComponentInputs)?Fya(8,[LE,{provide:HQc,useExisting:LE}]).\u0275providers:[],u5d;if(E9==null?0:E9.enableViewTransitions){ze("NgRouterViewTransitions");var v5d=[{provide:hRc,useValue:Dya},{provide:Bya,useValue:Object.assign({},{skipNextTransition:!1},void 0)}];u5d=Fya(9,v5d).\u0275providers}else u5d=[];
l5d={ngModule:dF,providers:[XRc,[],{provide:zya,multi:!0,useValue:[]},[],m5d,n5d,o5d,p5d,q5d,s5d,t5d,u5d,[{provide:YRc,useFactory:function(){var a=p(Ae);return function(b){var c=a.get(Wg);if(b===c.components[0]){b=a.get(YE);var d=a.get(URc);a.get(VRc)===1&&b.initialNavigation();var e;(e=a.get(WRc,null,{optional:!0}))==null||NRc(e);var f;(f=a.get(QRc,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:kAc,multi:!0,useExisting:YRc}]]};var w5d=function(){var a=p(YE),b=p(SQ);a.config=j5d.map(yxa);a.navigated=!1;a.initialNavigation();fkd(b)};w5d.\u0275fac=function(a){return new (a||w5d)};w5d.\u0275mod=cf({type:w5d});w5d.\u0275inj=Hc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:UE,useExisting:Y6},{provide:iBc,useValue:k5d},a7,Z6],imports:[l5d,RZd,i5d,dF]});var x5d=new fd("Environment");var y5d=new fd("Worktracker API Key");var z5d=new fd("G3C API Keys");var A5d=function(){};A5d.\u0275fac=function(a){return new (a||A5d)};A5d.\u0275mod=cf({type:A5d});A5d.\u0275inj=Hc({providers:[{provide:x5d,useFactory:Vnc},{provide:z5d,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:y5d,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var F9=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1},Ysc=function(a){return new F9(a)};F9.prototype.getId=function(){return this.lookupId_};F9.prototype.setDisplayName=function(a){this.displayName_=a;return this};F9.prototype.getDisplayName=function(){return this.displayName_};var Zsc=function(a,b){a.forceDisplayNameOverride_=b;return a};F9.prototype.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
F9.prototype.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};var Wnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wnc,W);Wnc.prototype.setEnabled=function(a,b){return zc(this,1,Cb,b,a,Db,void 0,1)};Wnc.prototype.setDisabled=function(a,b){zc(this,2,Cb,b,a,Db,void 0,1)};var B5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(B5d,W);h=B5d.prototype;h.getEnableClearcut=function(){return Gi(this,1)};h.setEnableClearcut=function(a){return Pi(this,1,a)};h.getClientId=function(){return xi(this,2)};h.setClientId=function(a){return Hn(this,2,a)};h.getSocialApplication=function(){return xi(this,3)};h.getSocialApplicationOrUndefined=function(){return xp(this,3)};h.getComponentFlow=function(){return xi(this,4)};
h.setComponentFlow=function(a){return Hn(this,4,a)};h.getInterfaceType=function(){return xi(this,5)};h.setInterfaceType=function(a){return Hn(this,5,a)};var G9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G9,W);G9.prototype.getEnableAutocompleteLegalese=function(){return Gi(this,11)};var H9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H9,W);H9.prototype.getApplication=function(){return xi(this,1)};H9.prototype.setApplication=function(a){return Hn(this,1,a)};H9.prototype.getApplicationOrUndefined=function(){return xp(this,1)};H9.prototype.getIsEnabled=function(){return Gi(this,2)};var C5d=[0,pA,-16];var D5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D5d,W);h=D5d.prototype;h.getClearcut=function(){return X(this,B5d,1)};h.setClearcut=function(a){Ni(this,B5d,1,a)};h.hasClearcut=function(){return yi(this,B5d,1)};h.getExperiments=function(){return X(this,H9,2)};h.setExperiments=function(a){return Ni(this,H9,2,a)};h.hasExperiments=function(){return yi(this,H9,2)};h.getEnableAutocompleteLegalese=function(){return Gi(this,13,!0)};var E5d=cta(D5d);var F5d;var G5d=function(){var a=gsc(F5d||(F5d=E5d('[[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 B5d);a.hasExperiments()||a.setExperiments(new H9);this.internal=a};var H5d=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};
H5d.prototype.create=function(a){for(var b=this,c=m(this.coreTypeOrder.filter(function(g){var k=b.configurationKey;return b.container.configurations.hasCoreType(g,k===void 0?"\ud83c\udf68":k)})),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.container.getCoreFactory(d),f=void 0;if((f=e)==null?0:f.shouldCreate(a))return c=void 0,this.extractor(this.decorate((c=e)==null?void 0:c.create(a),d,a))}throw Error("Ig");};
H5d.prototype.decorate=function(a,b,c){var d=this,e,f=(e=this.getCompatibleTypes(b))!=null?e:new Set;return this.decoratorTypeOrder.filter(function(g){var k=d.configurationKey;return d.container.configurations.hasDecoratorType(g,k===void 0?"\ud83c\udf68":k)&&f.has(g)}).map(function(g){return d.container.getDecoratorFactory(g)}).filter(function(g){return g==null?void 0:g.shouldCreate(c)}).reduce(function(g,k){return k.create(c,g)},a)};var I5d=function(){this.core=new Set;this.decorators=new Set};I5d.prototype.addCoreType=function(a){this.core.add(a)};I5d.prototype.addDecoratorType=function(a){this.decorators.add(a)};I5d.prototype.hasCoreType=function(a){return this.core.has(a)};I5d.prototype.hasDecoratorType=function(a){return this.decorators.has(a)};var J5d=function(){this.configurations=new Map};h=J5d.prototype;h.addCoreType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new I5d);this.configurations.get(b).addCoreType(a)};
h.addDecoratorType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new I5d);this.configurations.get(b).addDecoratorType(a)};h.hasCoreType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasCoreType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasCoreType(a)))};h.hasDecoratorType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasDecoratorType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasDecoratorType(a)))};
h.clear=function(){this.configurations.clear()};var K5d=function(){this.core=new Map;this.decorator=new Map};h=K5d.prototype;h.addCoreFactory=function(a,b){this.core.has(a)||this.core.set(a,b)};h.addDecoratorFactory=function(a,b){this.decorator.has(a)||this.decorator.set(a,b)};h.getCoreFactory=function(a){return this.core.get(a)};h.getDecoratorFactory=function(a){return this.decorator.get(a)};h.clear=function(){this.core.clear();this.decorator.clear()};
var I9=function(a){var b=this;var c=a.coreTypeOrder;var d=a.decoratorTypeOrder;var e=a.extractor;a=a.getCompatibleTypes;this.configurations=new J5d;this.factories=new K5d;this.coreTypeOrder=c;this.decoratorTypeOrder=d;this.extractor=e;this.getCompatibleTypes=a;L5d.set(this,function(){b.configurations.clear();b.factories.clear()})};
I9.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)};I9.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)};I9.prototype.getCoreFactory=function(a){return this.factories.getCoreFactory(a)};
I9.prototype.getDecoratorFactory=function(a){return this.factories.getDecoratorFactory(a)};var qpc=function(a,b){b=b===void 0?"\ud83c\udf68":b;return new H5d(a.coreTypeOrder,a.decoratorTypeOrder,a.getCompatibleTypes,a,a.extractor,b===void 0?"\ud83c\udf68":b)},L5d=new Map;var xu=new I9({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 M5d={},N5d={},O5d={},P5d={},Q5d={},J9=function(){throw Error("Jg");};J9.prototype.contentDir=null;J9.prototype.getContent=function(){return this.content};J9.prototype.toString=function(){return this.content};J9.prototype.toSafeHtml=function(){if(this.contentKind!==M5d)throw Error("Kg");return ph(this.toString())};var R5d=function(){J9.call(this)};rw(R5d,J9);R5d.prototype.contentKind=M5d;var S5d=function(){J9.call(this)};rw(S5d,J9);S5d.prototype.contentKind=N5d;S5d.prototype.contentDir=1;var T5d=function(a){if(a!=null)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},jv=function(a){return K9(a,M5d)?a:a instanceof oh?lv(rh(a).toString()):lv(String(String(a)).replace(U5d,V5d),T5d(a))},lv=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}}(R5d),W5d=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return new b(String(c))}}(S5d),
M9=function(a){return a instanceof L9?X5d(a)?!0:!!a.getContent():a instanceof J9?!!a.getContent():!!a},Qsc=function(a){return jv(a)},pv=function(a){return K9(a,M5d)?a:lv(Y5d(a,Z5d),T5d(a))},$5d=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),Y5d=function(a,b){if(!b)return $nc(String(a),function(){return""}).replace(a6d,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=$nc(a,function(f,g){if(g&&(g=g.toLowerCase(),b.hasOwnProperty(g)&&
b[g])){var k=c.length,l="</",r="";if(f.charAt(1)!=="/"){l="<";for(var w;w=b6d.exec(f);)if(w[1]&&w[1].toLowerCase()==="dir"){if(f=w[2]){if(f.charAt(0)==="'"||f.charAt(0)==='"')f=f.substr(1,f.length-2);f=f.toLowerCase();if(f==="ltr"||f==="rtl"||f==="auto")r=' dir="'+f+'"'}break}b6d.lastIndex=0}c[k]=l+g+">";d[k]=r;return"["+k+"]"}return""});a=String(a).replace(c6d,V5d);var e=d6d(c);a=a.replace(/\[(\d+)\]/g,function(f,g){return d[g]&&c[g]?c[g].substr(0,c[g].length-1)+d[g]+">":c[g]});return a+e},Ync=RegExp.prototype.hasOwnProperty("sticky"),
Znc=new RegExp((Ync?"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))",Ync?"gy":"g"),e6d=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},d6d=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]="":$5d.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},iv=function(a){K9(a,M5d)?(a=Y5d(a.getContent()),a=String(a).replace(c6d,V5d)):a=String(a).replace(U5d,V5d);return a},f6d=function(a){K9(a,P5d)&&(a=a.getContent());return(a&&!a.startsWith(" ")?" ":"")+a},i6d=function(a){return String(a).replace(g6d,h6d)},kv=function(a){K9(a,N5d)||K9(a,O5d)?a=String(a).replace(g6d,h6d):xh(a)?a=i6d(Oqa(a)):a instanceof th?a=i6d(vh(a).toString()):(a=String(a),a=j6d.test(a)?a.replace(g6d,h6d):"about:invalid#zSoyz");return a},
l6d=function(a){K9(a,N5d)||K9(a,O5d)?a=String(a).replace(g6d,h6d):xh(a)?a=i6d(Oqa(a)):a instanceof th?a=i6d(vh(a).toString()):(a=String(a),a=k6d.test(a)?a.replace(g6d,h6d):"about:invalid#zSoyz");return a},N9=function(a){return K9(a,Q5d)?e6d(a.getContent(),!1):a==null?"":e6d(String(a),!0)},K9=function(a,b){return a!=null&&a.contentKind===b},L9=function(){J9.call(this)};Y(L9,R5d);
var mv=function(a,b){a.parts!==void 0?a.parts.push(b):a.content+=b;return a},ov=function(a,b){a.parts!==void 0?a.parts.push(b):b instanceof L9?b.content!==void 0?a.content+=b.getContent():(a.parts=[a.content,b],a.content=void 0):a.content+=b;return a};L9.prototype.getContent=function(){if(this.content!==void 0)return this.content;for(var a="",b=m(this.parts),c=b.next();!c.done;c=b.next())a+=c.value;return a};L9.prototype.toString=function(){return this.getContent()};
var X5d=function(a){var b;a=m((b=a.parts)!=null?b:[]);for(b=a.next();!b.done;b=a.next())if(b=b.value,b instanceof L9&&X5d(b))return!0;return!1},nv=function(){function a(){this.content=""}a.prototype=L9.prototype;return function(){return new a}}(),m6d={"\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;"},V5d=function(a){return m6d[a]},n6d={"\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"},h6d=function(a){return n6d[a]},U5d=/[\x00\x22\x26\x27\x3c\x3e]/g,c6d=/[\x00\x22\x27\x3c\x3e]/g,g6d=/[\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,j6d=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,k6d=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,o6d=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,
p6d=function(a){a=String(a);return o6d.test(a)?a:"zSoyz"},a6d=/</g,Z5d={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},b6d=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var aoc={};var ioc=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;a=mv(nv(),'<div class="'+iv("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+iv(N9(d))+"px; height: "+iv(N9(d))+'px"><div peoplekit-id="'+iv("YLEF4c")+'" class="'+iv("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+iv(N9(d))+"px; height: "+iv(N9(d))+'px">');b=b.length===1?mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsAvatarImplContainer")+'">'),O9(b[0],c,d,e,f)),"</div>"):b.length===
2?mv(ov(mv(ov(mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+iv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[0],c,d,e,f)),"</div>"),q6d()),'<div class="'+iv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[1],c,d,e,f)),"</div></div>"):b.length===3?mv(ov(mv(ov(mv(ov(mv(ov(mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+iv("peoplekitComponentsAvatarImplColumn")+'">'),O9(b[0],c,d,e,f)),"</div>"),q6d()),'<div class="'+
iv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+iv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[1],c,Math.round(d*.5),e,f)),"</div>"),q6d()),'<div class="'+iv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[2],c,Math.round(d*.5),e,f)),"</div></div></div>"):mv(ov(mv(ov(mv(ov(mv(ov(mv(ov(mv(ov(mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+iv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+iv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[0],
c,Math.round(d*.5),e,f)),"</div>"),q6d()),'<div class="'+iv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[2],c,Math.round(d*.5),e,f)),"</div></div>"),q6d()),'<div class="'+iv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+iv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[1],c,Math.round(d*.5),e,f)),"</div>"),q6d()),'<div class="'+iv("peoplekitComponentsAvatarImplRow")+'">'),O9(b[3],c,Math.round(d*.5),e,f)),"</div></div></div>");b=ov(nv(),b);return mv(ov(mv(ov(a,b),'</div><div peoplekit-id="'+
iv("Btuy5e")+'" class="'+iv("peoplekitComponentsAvatarImplAvatarBadge")+'">'),lv('<img class="'+iv("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+iv("m6fZne")+'" draggable="false" alt="">')),"</div></div>")},O9=function(a,b,c,d,e){var f=mv(nv(),'<div peoplekit-id="'+iv("IHgMKc")+'" class="'+iv("peoplekitComponentsAvatarImplImageRoot")+'">'),g=kv(Bqd(a,c,c,e));g=W5d(g);a=kv(Bqd(a,d,d,e));a=W5d(a);b=kv(Bqd(b,c,c,e));b=W5d(b);g=mv(f,'<img peoplekit-id="'+iv("HiaYvf")+'" class="'+iv("peoplekitComponentsAvatarImplImage")+
'" style="width: '+iv(N9(c))+"px; height: "+iv(N9(c))+'px;" data-preload-src="'+iv(a)+'" data-src="'+iv(g)+'" data-backup-src="'+iv(b)+'" draggable="false" alt="">');c=lv('<svg xmlns="http://www.w3.org/2000/svg" height="'+iv(c)+'px" viewBox="0 0 24 24" width="'+iv(c)+'px" class="'+iv("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>');
mv(ov(g,c),"</div>");return f},q6d=function(){return lv('<div class="'+iv("peoplekitComponentsAvatarImplDivider")+'"></div>')};var r6d=new Map([[0,"light_theme"],[1,"dark_theme"]]);var doc=!Ku&&!gba();var s6d=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),t6d=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),koc=function(a,b){this.appearance=b;this.root=a;u6d(this)};h=koc.prototype;
h.setBadge=function(a){var b=su(this.root,"Btuy5e");if(a.badgeType===0)b.classList.remove("visible");else{var c=s6d.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(r6d.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=t6d.get(a.badgeType)||"";d=su(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};h.getAllIds=function(){return[]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};
h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};
var u6d=function(a){a=m(boc(a.root,"IHgMKc"));for(var b=a.next(),c={};!b.done;c={img$jscomp$13:void 0,src$jscomp$70:void 0,imageRoot:void 0,backupSrc:void 0},b=a.next())c.imageRoot=b.value,c.img$jscomp$13=su(c.imageRoot,"HiaYvf"),b=foc(c.img$jscomp$13,"preloadSrc"),c.src$jscomp$70=foc(c.img$jscomp$13,"src"),c.backupSrc=foc(c.img$jscomp$13,"backupSrc"),goc(c.src$jscomp$70)?c.img$jscomp$13.src=c.src$jscomp$70:goc(b)?(c.img$jscomp$13.src=b,Gs(function(d){return function(){d.img$jscomp$13.src=d.src$jscomp$70}}(c),
0)):(c.imageRoot.classList.add("isLoading"),c.img$jscomp$13.onload=function(d){return function(){d.imageRoot.classList.remove("isLoading")}}(c),c.img$jscomp$13.onerror=function(d){return function(){d.img$jscomp$13.getAttribute("src")===d.backupSrc?(d.img$jscomp$13.onerror=null,d.imageRoot.classList.remove("isLoading"),d.imageRoot.classList.add("isNotLoaded")):d.img$jscomp$13.src=d.backupSrc}}(c),c.img$jscomp$13.src=c.src$jscomp$70)};var hoc=function(){this.style=this.theme=this.density=0};h=hoc.prototype;h.getDensity=function(){return this.density};h.setDensity=function(a){this.density=a};h.getTheme=function(){return this.theme};h.setTheme=function(a){this.theme=a};h.getStyle=function(){return this.style};h.setStyle=function(a){this.style=a};var toc=Lu.getInstance();var voc=function(a){a=a.memberCount;return(new Tl("{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 Aoc=Lu.getInstance();var Coc=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=su(this.root,"bxvLg");this.eventHandler=wu(this);this.eventHandler.listen(this.deleteButton,"click",function(){d.onDeleteButtonClick()})};h=Coc.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};
h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};
h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};h.edit=function(){};h.unedit=function(){};h.dispose=function(){this.eventHandler.removeAll()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};
h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var v6d=function(a,b,c,d,e,f,g,k,l,r){d=d?iv(d):e?iv("isWarning"):"";return mv(ov(mv(ov(mv(ov(mv(nv(),'<div role="option" class="'+iv("peoplekitComponentsChipChip")+" "+d+" "+(f?iv("isDeletionDisabled"):"")+" "+(g?iv(g):"")+'" id="'+iv(a)+'" peoplekit-id="'+iv("XPtOyb")+'" data-hovercard-id="'+iv(c)+'" data-name="'+iv(b)+'"'+(f?"":' aria-describedby="'+iv(a)+'-db"')+'><div class="'+iv("peoplekitComponentsChipChipRow")+" "+iv("peoplekitComponentsChipChipContainer")+'"><div class="'+iv("peoplekitComponentsChipLeft")+
'">'),jv(k)),'</div><div class="'+iv("peoplekitComponentsChipCenter")+'">'),jv(l)),'</div><div class="'+iv("peoplekitComponentsChipRight")+'">'),jv(r)),'</div></div><div peoplekit-id="'+iv("QL45qe")+'"></div></div>')},w6d=function(a){return mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsChipAvatar")+'"><div class="'+iv("peoplekitComponentsChipAvatarContainer")+'" peoplekit-id="'+iv("d6MZcd")+'"></div>'),M9(a)?jv(a):""),"</div>")},x6d=function(a){var b=nv();a=mv(nv(),'<div class="'+iv("peoplekitComponentsChipAvatarExclamationOverlay")+
" "+(a?iv(a):"")+'"><div class="'+iv("peoplekitComponentsChipExclamationIcon")+" "+(a?iv(a):"")+'">');var c=lv('<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M11 14V5h2v9Zm0 5v-2h2v2Z"/></svg>');return ov(b,w6d(mv(ov(a,c),"</div></div>")))},y6d=function(a){return lv('<div class="'+iv("peoplekitComponentsChipLabelContainer")+'"><div class="'+iv("peoplekitComponentsChipLabel")+" "+iv("peoplekitComponentsChipLabelRow")+'"><div class="'+iv("peoplekitComponentsChipDisplayLabel")+
'" translate="no">'+Qsc(pv(a))+'</div><div class="'+iv("peoplekitComponentsChipDisambiguationLabel")+'" peoplekit-id="'+iv("hyPgpe")+'" translate="no"></div></div></div>')},z6d=function(a){var b=nv();a=mv(b,'<div id="'+iv(a)+'-db" peoplekit-id="'+iv("bxvLg")+'" class="'+iv("peoplekitComponentsChipDeleteButton")+'" aria-hidden="true" aria-label="'+iv("Press delete to remove this chip")+'">');var c=lv('<svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" class="'+(iv("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>'));mv(ov(a,c),"</div>");return b};var Boc=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,g=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return ov(nv(),v6d(b,d,e,f,g,k,a,ov(nv(),f?x6d(f):w6d()),ov(nv(),y6d(c)),ov(nv(),z6d(b))))};var Goc=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=su(this.root,"bxvLg");this.eventHandler=wu(this);this.eventHandler.listen(this.deleteButton,"click",function(){return d.onDeleteButtonClick()})};h=Goc.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};h.toggleSelection=function(){};
h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};
h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};h.edit=function(){};h.unedit=function(){};h.dispose=function(){this.eventHandler.removeAll()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(){};h.onKeyDown=function(){};
h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var Foc=function(a){var b=a.id,c=a.hovercardId,d=a.name,e=a.label,f=a.avatarSize;a=a.isDeletionDisabled;return ov(nv(),v6d(b,d,c,"",!1,a,void 0,lv('<div class="'+iv("peoplekitComponentsChipPlaceholderAvatarPlaceholder")+" "+iv("peoplekitComponentsChipPlaceholderShimmer")+'" style="width: '+iv(N9(f))+"px; height: "+iv(N9(f))+'px;"></div>'),ov(nv(),e?y6d(e):'<div class="'+iv("peoplekitComponentsChipPlaceholderLabelPlaceholder")+" "+iv("peoplekitComponentsChipPlaceholderShimmer")+'"></div>'),ov(nv(),
z6d(b))))};var P9=function(a){this.delegate=a};h=P9.prototype;h.toggleSelection=function(){this.delegate.toggleSelection()};h.activate=function(){this.delegate.activate()};h.deactivate=function(){this.delegate.deactivate()};h.isActive=function(){return this.delegate.isActive()};h.spotlight=function(){this.delegate.spotlight()};h.unspotlight=function(){this.delegate.unspotlight()};h.disable=function(){this.delegate.disable()};h.enable=function(){this.delegate.enable()};h.isDisabled=function(){return this.delegate.isDisabled()};
h.drag=function(){this.delegate.drag()};h.undrag=function(){this.delegate.undrag()};h.edit=function(){this.delegate.edit()};h.unedit=function(){this.delegate.unedit()};h.dispose=function(){this.delegate.dispose()};h.getRoot=function(){return this.delegate.getRoot()};h.getSelection=function(){return this.delegate.getSelection()};h.setDisambiguationLabel=function(a){this.delegate.setDisambiguationLabel(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};
h.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};h.getAllIds=function(){return this.delegate.getAllIds()};h.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};h.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};h.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};h.initializeIntelligence=function(){this.delegate.initializeIntelligence()};var A6d=Object.freeze(new Au(NaN,NaN)),B6d=Object.freeze(new Du(NaN,NaN,NaN,NaN)),Fu=function(a,b){this.root=a;this.options=b;this.lastPosition=A6d;this.lastBounds=B6d;this.anchorUpdateTimer=new FC(15);this.eventHandler=wu(this);this.attach()};Fu.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return C6d(a)})};Fu.prototype.isShown=function(){return this.root.style.display!="none"};Fu.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
Fu.prototype.show=function(a){this.anchor=a;this.lastPosition=A6d;this.lastBounds=B6d;zt(this.root,!0);C6d(this);this.anchorUpdateTimer.start()};
var C6d=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(yu(a.anchor)))){b=a.lastBounds;var c=Poc(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=Poc(c),b=(c=Qoc(c))?b.intersection(Roc(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;Eu(b,"","");b.style.height=EId("",!0);var g=Woc(c,e,b,f,d);c=Woc(c,e^1,b,f^1,d);
g.height>=c.height||!d?Xoc(b,g):Xoc(b,c);a.lastPosition=yu(a.anchor);a.lastBounds=Poc(a.root)}};Fu.prototype.hide=function(){this.root.style.cssText="";zt(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=A6d;this.lastBounds=B6d};var $oc=function(a,b,c){this.tooltip=a;this.showDelayMs=b;this.hideDelayMs=c;this.displayed=!1;this.eventHandler=wu(this)};$oc.prototype.showTooltip=function(){D6d(this);if(!this.isDisplayed()&&this.anchor){this.displayed=!0;var a;(a=this.showCallback)==null||a.call(this);Q9(this)}};$oc.prototype.hideTooltip=function(){Q9(this);if(this.isDisplayed()&&this.anchor){this.displayed=!1;var a;(a=this.hideCallback)==null||a.call(this);D6d(this)}else Q9(this)};$oc.prototype.isDisplayed=function(){return this.displayed};
var E6d=function(a,b){a.hideCallback=b.hideTooltipCallback;a.showCallback=b.showTooltipCallback},I6d=function(a,b){if(a.anchor)throw Error("Lg");a.anchor=b;F6d(a);G6d(a);H6d(a)},J6d=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)},K6d=function(a){D6d(a);Q9(a);a.showTimeout=setTimeout(function(){a.showTooltip()},a.showDelayMs)},L6d=function(a){D6d(a);Q9(a);a.hideTimeout=
setTimeout(function(){a.hideTooltip()},a.hideDelayMs)},F6d=function(a){if(!a.anchor)throw Error("Mg");a.eventHandler.listen(a.anchor,"mouseover",function(){a.isDisplayed()?a.showTooltip():K6d(a)});a.eventHandler.listen(a.anchor,"touchstart",function(){K6d(a)});a.eventHandler.listen(a.anchor,"focusin",function(b){a.tooltip.contains(b.relatedTarget)||K6d(a)});a.eventHandler.listen(a.anchor,"touchend",function(){Q9(a)});a.eventHandler.listen(a.anchor,"touchcancel",function(){Q9(a)});a.eventHandler.listen(a.anchor,
"mouseout",function(){L6d(a)});a.eventHandler.listen(a.anchor,"focusout",function(){a.hideTooltip()})},G6d=function(a){a.eventHandler.listen(a.tooltip,"mouseover",function(){K6d(a)});a.eventHandler.listen(a.tooltip,"mouseout",function(){L6d(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()})},H6d=function(a){a.eventHandler.listen(window,"touchmove",function(){L6d(a)});a.eventHandler.listen(window,
"focus",function(b){b.target!==a.anchor&&L6d(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()})},Q9=function(a){clearTimeout(a.showTimeout);a.showTimeout=void 0},D6d=function(a){clearTimeout(a.hideTimeout);a.hideTimeout=void 0};var apc=function(a,b){this.tooltip=a;this.tooltipEventTracker=b;this.popupService=Yoc(this.tooltip,{anchorCorner:3,popupCorner:2})},fpc=function(a,b){I6d(a.tooltipEventTracker,b);E6d(a.tooltipEventTracker,{showTooltipCallback:function(){a.showTooltipCallback()},hideTooltipCallback:function(){a.hideTooltipCallback()}})};h=apc.prototype;h.showTooltip=function(){this.tooltipEventTracker.showTooltip()};h.hideTooltip=function(){this.tooltipEventTracker.hideTooltip()};h.getRoot=function(){return this.tooltip};
h.isDisplayed=function(){return this.tooltipEventTracker.isDisplayed()};h.showTooltipCallback=function(){this.popupService.show(this.tooltipEventTracker.anchor)};h.hideTooltipCallback=function(){this.popupService.hide()};var Zoc=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes;return lv('<div id="'+iv(a.id)+'" peoplekit-id="'+iv("suEOdc")+'" class="'+iv("peoplekitComponentsTooltipImplTooltip")+(d?" "+iv(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+iv(c)+'"':"")+(M9(e)?f6d(K9(e,P5d)?e.getContent():p6d(e)):"")+">"+jv(b)+"</div>")};var Gu=function(a,b,c){this.delegate=a;var d=a.getRoot();/-[a-z]/.test("hovercardId")||(doc&&d.dataset?(/-[a-z]/.test("hovercardId")?0:doc&&d.dataset?"hovercardId"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+eoc("hovercardId")):d.getAttribute("data-"+eoc("hovercardId")))&&delete d.dataset.hovercardId:d.removeAttribute("data-"+eoc("hovercardId")));d="tt-"+a.getSelection().id().toString();this.tooltip=bpc(a.getRoot(),d,{label:b,ariaLabel:c});fpc(this.tooltip,a.getRoot())};Y(Gu,P9);
Gu.prototype.dispose=function(){J6d(this.tooltip.tooltipEventTracker);P9.prototype.dispose.call(this)};Gu.prototype.spotlight=function(){P9.prototype.spotlight.call(this);this.tooltip.showTooltip()};Gu.prototype.unspotlight=function(){P9.prototype.unspotlight.call(this);this.tooltip.hideTooltip()};Gu.prototype.drag=function(){P9.prototype.drag.call(this);this.tooltip.hideTooltip()};var Ju=new I9({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 gpc=function(a,b,c,d,e,f){var g=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableDomNavigation=e;this.internalIsDisabled=!1;this.eventHandler=wu(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var l;(l=g.onClick)==null||l.call(g,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){g.activate()}),this.eventHandler.listen(this.root,"blur",function(){g.deactivate()}))};h=gpc.prototype;
h.getRoot=function(){return this.root};h.enable=function(){this.root.disabled=!1;var a=this.root.querySelector("img");a&&(a.src=this.enabledIcon);this.internalIsDisabled=!1};h.disable=function(){this.root.disabled=!0;var a=this.root.querySelector("img");a&&this.disabledIcon&&(a.src=this.disabledIcon);this.internalIsDisabled=!0};h.isDisabled=function(){return this.internalIsDisabled};h.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0;this.tooltip&&J6d(this.tooltip.tooltipEventTracker)};
h.activate=function(){this.root.classList.add("isFocused");this.tooltip&&this.tooltip.showTooltip()};h.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&this.tooltip.hideTooltip()};h.isActive=function(){return this.root.classList.contains("isFocused")};var M6d=0;var epc=function(a){var b=a.icon,c=a.tooltipLabel,d=a.ariaLabel;a=nv();c=(c=c?"tt-c"+M6d++:"")?' data-tooltip-id="'+iv(c)+'" aria-labelledby="'+iv(c)+'"':d?' aria-label="'+iv(d)+'"':"";mv(ov(mv(a,'<button class="'+iv("peoplekitComponentsButtonIconIconButton")+'"'+c+">"),lv('<span><img src="'+iv(l6d(b))+'" draggable="false" aria-hidden="true" alt="" class="'+iv("peoplekitComponentsButtonIconAdaptableIcon")+'"/></span>')),"</button>");return a};var R9=function(a){this.delegate=a};h=R9.prototype;h.getAllIds=function(){return this.delegate.getAllIds()};h.toggleSelection=function(){this.delegate.toggleSelection()};h.activate=function(){this.delegate.activate()};h.deactivate=function(){this.delegate.deactivate()};h.spotlight=function(){this.delegate.spotlight()};h.unspotlight=function(){this.delegate.unspotlight()};h.getRoot=function(){return this.delegate.getRoot()};h.getSelection=function(){return this.delegate.getSelection()};
h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};h.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};h.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};h.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};h.initializeIntelligence=function(){this.delegate.initializeIntelligence()};h.addTag=function(a){this.delegate.addTag(a)};
h.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};h.dispose=function(){this.delegate.dispose()};var rsc=new Map([["pcw-select",3],["pcw-deselect",3],["pcw-click",3],["pcw-input",15]]);var ipc=function(a,b,c,d){this.delegate=a;var e=this;this.secondaryActionConfig=c;for(var f=su(a.getRoot(),"QChpEe");f.firstChild;)f.removeChild(f.firstChild);this.secondaryActionButton=hpc(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&&bsd(this.buttonRoot,"menuitem");Hu({element:this.buttonRoot,veid:163534,actions:["impression",
"pcw-click"],componentId:"peoplekitweb"});this.secondaryActionButton.onClick=function(g){var k;(k=c.onClick)==null||k.call(c,g);e.buttonRoot.dispatchEvent(Iu(e.buttonRoot))};this.eventHandler=wu(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};Y(ipc,R9);h=ipc.prototype;h.activate=function(){this.getRoot().classList.add("isActive");this.displaySecondaryActionButton()};
h.deactivate=function(){this.getRoot().classList.remove("isActive");this.secondaryActionButton.deactivate();this.hideSecondaryActionButton()};
h.onKeyDown=function(a){var b=a.event.keyCode===13,c=b&&a.event.platformModifierKey;if(this.secondaryActionConfig.disableDomNavigation){var d=a.event.keyCode===9;!d||a.event.shiftKey||this.secondaryActionButton.isActive()?d&&this.secondaryActionButton.isActive()&&(this.secondaryActionButton.deactivate(),iU(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),iU(this.buttonRoot,"hidden","false"),a.stopPropagation(),a.preventDefault())}if(c||
b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};h.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();R9.prototype.dispose.call(this)};h.displaySecondaryActionButton=function(){this.buttonRoot.style.display=""};h.hideSecondaryActionButton=function(){this.getRoot().classList.contains("isActive")||(this.buttonRoot.style.display="none")};var N6d=function(){this.label="";this.type=0};h=N6d.prototype;h.getAutocompleteGroupingType=function(){return this.type};h.setAutocompleteGroupingType=function(a){this.type=a};h.getAutocompleteGroupingLabel=function(){return this.label};h.setAutocompleteGroupingLabel=function(a){this.label=a};h.getAutocompleteCustomGrouping=function(){return this.customGrouping};var O6d=function(){this.warnForExternalSelections=!1;this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};h=O6d.prototype;h.getAllowResultDeselection=function(){return!1};h.getWarnForExternalSelections=function(){return this.warnForExternalSelections};h.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};h.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};
h.setResultCustomizationCallback=function(a){this.resultCustomizationCallback=a};var P6d=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 N6d;this.result=new O6d;this.appearance=new hoc};h=P6d.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.getAutocompleteHeader=function(){return this.header};
h.setAutocompleteHeader=function(a){this.header=a};h.getShowSuggestions=function(){return this.showSuggestions};h.setShowSuggestions=function(a){this.showSuggestions=a};h.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};
h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};h.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};h.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};h.getAutoActivateFirstSearchResult=function(){return this.autoActivateFirstSearchResult};h.setAutoActivateFirstSearchResult=function(a){this.autoActivateFirstSearchResult=a};h.setEntryPoint=function(a){this.entryPoint=a};
h.getEntryPoint=function(){return this.entryPoint};h.getNoResultsMessage=function(){return this.noResultsMessage};h.setNoResultsMessage=function(a){this.noResultsMessage=a};h.getUseTabForResultSelection=function(){return!0};h.getClearSelectionsOnSearch=function(){return this.clearSelectionsOnSearch};h.setClearSelectionsOnSearch=function(a){this.clearSelectionsOnSearch=a};h.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};h.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};
h.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};h.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};h.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};
h.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.result.getResultCustomizationCallback()};h.setResultCustomizationCallback=function(a){this.result.setResultCustomizationCallback(a)};h.getDensity=function(){return this.appearance.getDensity()};h.setDensity=function(a){this.appearance.setDensity(a)};h.getTheme=function(){return this.appearance.getTheme()};h.setTheme=function(a){this.appearance.setTheme(a)};
h.getStyle=function(){return this.appearance.getStyle()};h.setStyle=function(a){this.appearance.setStyle(a)};var Q6d=function(a){this.environmentConfig=a;this.autocomplete=new P6d(a);this.autocomplete.setClearSelectionsOnSearch(!0)};h=Q6d.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};h.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};h.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};h.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
h.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
h.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};h.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};h.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};h.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};h.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};h.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};
h.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};h.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};h.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};h.getClearSelectionsOnSearch=function(){return this.autocomplete.getClearSelectionsOnSearch()};h.setClearSelectionsOnSearch=function(a){this.autocomplete.setClearSelectionsOnSearch(a)};h.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
h.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};h.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};h.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
h.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};h.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};h.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};h.getDensity=function(){return this.autocomplete.getDensity()};h.setDensity=function(a){this.autocomplete.setDensity(a)};
h.getTheme=function(){return this.autocomplete.getTheme()};h.setTheme=function(a){this.autocomplete.setTheme(a)};h.getStyle=function(){return this.autocomplete.getStyle()};h.setStyle=function(a){this.autocomplete.setStyle(a)};var tpc=function(a){this.onHide=a;this.menuItemConfigs=[]};tpc.prototype.isSupported=function(a){return R6d(this,a).length>0};
tpc.prototype.configure=function(a){var b=this,c=a.contextMenu,d=a.selection,e=a.activatableRoot,f=new Map;a=m(R6d(this,d.result()));for(var g=a.next();!g.done;g=a.next()){g=g.value;var k=g.getContextMenuItemOptions();c.append(k);f.set(k.id,g)}S6d(c,function(l){f.get(l.id).onContextMenuItemClick({options:l,selection:d,activatableRoot:e})});T6d(c,function(){var l;(l=b.onHide)==null||l.call(b)})};var R6d=function(a,b){return a.menuItemConfigs.filter(function(c){return c.isSupported(b)})};var rpc=new I9({coreTypeOrder:[0],decoratorTypeOrder:[0],extractor:function(a){return a},getCompatibleTypes:function(){return new Set([0])}});var wpc=function(){this.groupingDecorators=[]};var upc=function(a){this.contextMenuConfigurator=a;this.resultCustomizationDecorators=[]};var Apc=function(a){this.root=a;this.length=0;this.isInteractive=!0};h=Apc.prototype;h.getItems=function(){return Array.from(this.root.childNodes)};h.append=function(a){this.root.appendChild(a);++this.length};h.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Og");if(a===this.length)this.append(b);else{var c=this.getItems();this.root.insertBefore(b,c[a]);++this.length}};
h.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Og");var b=this.getItems();this.root.removeChild(b[a]);--this.length};h.clear=function(){vC(this.root);this.length=0};h.getRoot=function(){return this.root};var ypc=function(a){return lv('<ul id="'+iv(a.id)+'" peoplekit-id="'+iv("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+iv("peoplekitComponentsListImplList")+'"></ul>')};var zpc=Lu.getInstance();var U6d=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(q([]));this.shouldWrap=!!a.shouldWrap;this.activeItems=new Set([]);this.hideContextMenu=function(){}};h=U6d.prototype;
h.remove=function(a,b){var c=-1;a=m(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c=this.list.indexOf(d),this.list.splice(c,1),this.activeItems.delete(d),b||(c<this.spotlightIndex?--this.spotlightIndex:c===this.spotlightIndex&&this.reset());c>=0&&b&&(this.isActive=!1,this.goToIndex(c,0))};
h.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(q(b)));c?(V6d(this),W6d(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):a>=0&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};h.size=function(){return this.list.length};
h.prev=function(a){var b=this.spotlightIndex===0&&(!this.shouldWrap||a===1);!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=b>=0?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};h.next=function(a){var b=this.spotlightIndex===this.list.length-1&&(!this.shouldWrap||a===1);if(!this.list.length||b)a=!1;else{var c;this.isActive?c=(this.spotlightIndex+1)%this.list.length:c=0;a=this.goToIndex(c,a)}return a};
h.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
h.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||a===void 0||a<0)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive&&this.list[c].unspotlight();this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:V6d(this);X6d(this);break;case 3:X6d(this);break;case 1:a=mpc(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=mpc(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);W6d(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};
h.activateAll=function(){if(!(this.list.length<=0)){var a=this.spotlightIndex>=0?this.spotlightIndex:this.list.length-1;V6d(this);for(var b=m(this.list),c=b.next();!c.done;c=b.next())c=c.value,c.activate(),this.activeItems.add(c);this.goToIndex(a,2)}};h.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};h.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
h.getItem=function(a){for(var b=m(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};h.getIndexOf=function(a){return this.list.indexOf(a)};h.clear=function(){this.reset();this.list.length=0};h.reset=function(){this.hideContextMenu();V6d(this);var a=this.getSpotlitItem();a&&a.unspotlight();this.spotlightIndex=-1;this.isActive=!1};h.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
h.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(q(this.secondaryEventTargets));b=m(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value)==null||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};h.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var X6d=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},V6d=function(a){for(var b=m(a.activeItems),c=b.next();!c.done;c=b.next())c=c.value,c.deactivate(),c.unspotlight();a.activeItems.clear()},W6d=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 Fpc=function(a){this.delegate=a};h=Fpc.prototype;h.prev=function(a){a=this.delegate.prev(a);Y6d(this);return a};h.next=function(a){a=this.delegate.next(a);Y6d(this);return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);Y6d(this);return a};h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);Y6d(this);return a};h.activateAll=function(){this.delegate.activateAll()};h.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};
h.getActiveItems=function(){return this.delegate.getActiveItems()};h.getItem=function(a){return this.delegate.getItem(a)};h.getIndexOf=function(a){return this.delegate.getIndexOf(a)};h.clear=function(){this.delegate.clear()};h.reset=function(){this.delegate.reset()};h.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};
h.remove=function(a,b){this.delegate.remove(a,b)};h.insert=function(a,b,c){this.delegate.insert(a,b,c)};var Y6d=function(a){(a=a.delegate.getSpotlitItem())&&Epc(a.getRoot())};var S9=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.collapsibleConfig=d;this.items=[];this.isCollapsed=!1};S9.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)};S9.prototype.getItems=function(){return this.isCollapsed?[]:this.items};
S9.prototype.dispose=function(){for(var a=m(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.items=[]};var Z6d=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",Epc(c));a.isCollapsed=b}};var dqc=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.resultListItemFactory=d};h=dqc.prototype;h.append=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};h.getOrCreateSection=function(){this.section||(this.section=new S9(this.list,this.navigatable,this.intelligentCollection));return this.section};
h.clear=function(){var a;(a=this.section)==null||a.dispose();this.section=void 0;this.list.clear();this.navigatable.clear();this.intelligentCollection.clear()};h.reset=function(){this.navigatable.reset()};h.getItems=function(){var a,b;return(b=(a=this.section)==null?void 0:a.getItems())!=null?b:[]};h.done=function(){};var $6d=function(a,b){this.itemsSection=a;this.groupingHeader=b};$6d.prototype.append=function(a){this.itemsSection.append(a)};$6d.prototype.getItems=function(){return this.itemsSection.getItems()};$6d.prototype.dispose=function(){this.groupingHeader.dispose();this.itemsSection.dispose()};var a7d=function(a){var b=a.listId;return lv('<div id="'+iv(a.id)+'" peoplekit-id="'+iv("E9WxSb")+'" role="listitem"><div role="group"><div peoplekit-id="'+iv("Bm3u4d")+'"></div><div id="'+iv(b)+'" role="region" class="'+iv("peoplekitComponentsResultListCoreGroupSectionListContainer")+'" peoplekit-id="'+iv("tjneg")+'"></div></div></div>')};var T9=function(a){this.delegate=a};h=T9.prototype;h.getRoot=function(){return this.delegate.getRoot()};h.getHeader=function(){return this.delegate.getHeader()};h.getActionItems=function(){return this.delegate.getActionItems()};h.dispose=function(){this.delegate.dispose()};h.setCollapsible=function(a){this.delegate.setCollapsible(a)};h.getCollapsible=function(){return this.delegate.getCollapsible()};h.getActivatable=function(){return this.delegate.getActivatable()};var b7d=function(a){var b=a.id,c=a.groupName;a=a.classes;return lv('<div class="'+iv("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+iv(a):"")+'" peoplekit-id="'+iv("wgPSWd")+'" id="'+iv(b)+'" role="button" aria-expanded="false" aria-label="'+iv("To expand "+c+" group, press enter")+'"><svg class="'+iv("peoplekitComponentsGroupingHeaderCollapsibleChevron")+'" viewBox="0 0 24 24" height="24" width="24" aria-hidden="true"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>')},
c7d=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var Mu=function(a,b){this.delegate=a;var c=this;this.isCollapsed=b;this.eventHandler=wu(this);this.chevron=ru(b7d,{id:uu(Lu.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);su(this.getRoot(),"QChpEe").appendChild(this.chevron);b||(this.chevron.classList.toggle("rotate"),iU(this.chevron,"expanded",!0),dsd(this.chevron,c7d({groupName:this.getHeader(),action:"collapse"})))};Y(Mu,T9);Mu.prototype.getActionItems=function(){return this.groupingHeaderActionItems};Mu.prototype.dispose=function(){this.eventHandler.removeAll();T9.prototype.dispose.call(this)};
Mu.prototype.setCollapsible=function(a){T9.prototype.setCollapsible.call(this,a);Z6d(a,this.isCollapsed);this.chevron.setAttribute("aria-controls",a.collapsibleConfig.resultListContainer.id);d7d(this)};Mu.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");Z6d(this.getCollapsible(),this.isCollapsed);d7d(this)};
var d7d=function(a){var b=a.isCollapsed?"expand":"collapse";iU(a.chevron,"expanded",!a.isCollapsed);dsd(a.chevron,c7d({groupName:a.getHeader(),action:b}))};var Ipc=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=wu(this);this.eventHandler.listen(this.root,"click",function(c){var d;(d=b.onClick)==null||d.call(b,c)})};h=Ipc.prototype;h.getRoot=function(){return this.root};h.enable=function(){this.root.classList.remove("isDisabled");this.root.disabled=!1;this.root.setAttribute("aria-disabled","false");this.internalIsDisabled=!1};
h.disable=function(){this.root.classList.add("isDisabled");this.root.disabled=!0;this.root.setAttribute("aria-disabled","true");this.internalIsDisabled=!0};h.isDisabled=function(){return this.internalIsDisabled};h.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0};var Hpc=function(a){a=a.label;return lv('<button class="'+iv("peoplekitComponentsButtonLabelLabelButton")+'">'+jv(a)+"</button>")};var Rsc=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=wu(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=su(this.root,"Sx9Kwc");this.startFocusableElement=su(this.root,"tYwGbe");this.endFocusableElement=su(this.root,"dYgZK");this.eventHandler.listen(this.root,"click",function(){return d.onScrimClick()});this.eventHandler.listen(this.dialog,
"click",function(e){return d.onDialogClick(e)});this.eventHandler.listen(this.dialog,"keydown",function(e){return d.onDialogKeyDown(e)});this.eventHandler.listen(this.startFocusableElement,"focus",function(){return d.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){return d.onEndFocusableElementFocus()});this.eventHandler.listen(this.root,"keydown",function(e){e.stopPropagation()});this.eventHandler.listen(this.root,"keyup",function(e){e.stopPropagation()});
this.eventHandler.listen(this.root,"keypress",function(e){e.stopPropagation()});this.focusFirstFocusableElement()};h=Rsc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.dispatchAction=function(a){var b=this.actionButtons.get(a);if(b&&!b.isDisabled()){for(var c=m(this.actionListeners),d=c.next();!d.done;d=c.next())d=d.value,d(a);a=b.getRoot();a.dispatchEvent(Iu(a))}};h.disableAction=function(a){(a=this.actionButtons.get(a))&&a.disable()};
h.enableAction=function(a){(a=this.actionButtons.get(a))&&a.enable()};h.getRoot=function(){return this.root};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(0),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=coc(this.dialog);a.length&&a[0].focus()};
h.focusLastFocusableElement=function(){var a=coc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(0)};h.dispose=function(){this.eventHandler.removeAll();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.actionListeners.length=0;for(var a=m(this.actionButtons.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.actionButtons.clear()};var Opc=function(a){var b=a.content,c=a.header,d=a.confirmAction;a=a.labelId;return mv(ov(ov(mv(ov(mv(ov(mv(nv(),'<div peoplekit-id="'+iv("GGAcbc")+'" class="'+iv("peoplekitComponentsDialogImplScrim")+'"><div peoplekit-id="'+iv("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+iv("Sx9Kwc")+'" class="'+iv("peoplekitComponentsDialogImplDialog")+'" tabindex="-1" role="dialog" aria-modal="true"'+(a?' aria-labelledby="'+iv(a)+'"':"")+">"),M9(c)?jv(c):""),'<div class="'+iv("peoplekitComponentsDialogImplContent")+
'">'),jv(b)),'</div><div class="'+iv("peoplekitComponentsDialogImplActions")+'">'),ov(nv(),e7d("IbE0S"))),d?ov(ov(nv(),lv('<div class="'+iv("peoplekitComponentsDialogImplActionDivider")+'"></div>')),ov(nv(),e7d("McfNlf"))):""),'</div></div><div peoplekit-id="'+iv("dYgZK")+'" tabindex="0" role="application"></div></div>')},e7d=function(a){return lv('<div peoplekit-id="'+iv(a)+'"></div>')},f7d=function(a){a=a.header;return lv('<div class="'+iv("peoplekitComponentsDialogImplTextHeader")+'">'+jv(a)+"</div>")};var Ppc=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=wu(this);this.dialog=su(this.root,"Sx9Kwc");this.startFocusableElement=su(this.root,"tYwGbe");this.endFocusableElement=su(this.root,"dYgZK");b.onClick=function(){c.dispatchAction(2)};this.eventHandler.listen(this.root,"click",function(){c.onScrimClick()});this.eventHandler.listen(this.dialog,"click",function(d){c.onDialogClick(d)});this.eventHandler.listen(this.dialog,"keydown",function(d){c.onDialogKeyDown(d)});
this.eventHandler.listen(this.startFocusableElement,"focus",function(){c.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){c.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};h=Ppc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.dispatchAction=function(a){if(!this.closeButton.isDisabled()&&a===2)for(var b=m(this.actionListeners),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.disableAction=function(){this.closeButton.disable()};
h.enableAction=function(){this.closeButton.enable()};h.getRoot=function(){return this.root};h.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(2),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};
h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=coc(this.dialog);a.length&&a[0].focus()};h.focusLastFocusableElement=function(){var a=coc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(2)};var Kpc=new Map([[0,"peoplekitStyleLegacy"],[1,"peopleKitStyleGm3"]]);var Mpc=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var g7d=function(a){var b=a.learnMoreLinkUrl,c=a.learnMoreLinkText;return lv("<div>"+jv(a.description)+'  <a href="'+iv(kv(b))+'" target="_blank" class="'+iv("peoplekitComponentsGroupingHeaderInfoLearnMoreLink")+'" peoplekit-id="'+iv("lh87ke")+'">'+jv(c)+"</a></div>")},h7d=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return lv('<div class="'+iv("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+iv(a):"")+'" peoplekit-id="'+iv("CLghmc")+'" id="'+iv(b)+'" aria-label="'+iv(c)+'" role="button"><svg class="'+
iv("peoplekitComponentsGroupingHeaderInfoInfoIcon")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg></div>')};var Tpc=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=ru(h7d,{id:uu(Lu.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});su(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);this.infoGroupingHeaderVeIds.infoIconVeId!==void 0&&Hu({element:this.infoIcon,veid:this.infoGroupingHeaderVeIds.infoIconVeId,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
this.eventHandler=wu(this);this.eventHandler.listen(this.infoIcon,"click",function(){i7d(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&&(i7d(e),f.stopPropagation(),f.preventDefault())}})};Y(Tpc,T9);
var i7d=function(a){a.infoIcon.dispatchEvent(Iu(a.infoIcon));var b=f7d({header:a.infoGroupConfig.infoDialogHeader}),c=g7d({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=a.getRoot().closest('[class~="aU4VQc"]'),f=Qpc(e,c,a.appearanceConfig,b),g=su(f.getRoot(),"lh87ke");a.infoGroupingHeaderVeIds.learnMoreLinkVeId!==void 0&&Hu({element:g,veid:a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
actions:["impression","pcw-click"],componentId:"peoplekitweb"});a.eventHandler.listen(g,"click",function(){g.dispatchEvent(Iu(g))});f.subscribeToAction(function(k){k===2&&(f.dispose(),d&&d.focus())})};Tpc.prototype.getActionItems=function(){return this.groupingHeaderActionItems};Tpc.prototype.dispose=function(){this.eventHandler.removeAll();T9.prototype.dispose.call(this)};var Spc=function(a,b){this.root=a;this.header=b};h=Spc.prototype;h.getHeader=function(){return this.header};h.getActionItems=function(){return[]};h.dispose=function(){};h.getRoot=function(){return this.root};h.setCollapsible=function(a){this.collapsible=a};h.getCollapsible=function(){return this.collapsible};h.getActivatable=function(){};var Rpc=function(a){var b=a.id,c=a.header;a=nv();b=lv('<div class="'+iv("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+iv(b)+'" peoplekit-id="'+iv("XLuqBd")+'"><div class="'+iv("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+iv("peoplekitComponentsGroupingHeaderHeader")+'">'+jv(c)+'</div><div class="'+iv("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+iv("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+iv("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+iv("xiK4Cd")+'"></div><div class="'+iv("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+iv("QChpEe")+'"></div></div></div></div></div>');return ov(a,b)};var Upc=function(a){this.delegate=a};Y(Upc,T9);h=Upc.prototype;h.activate=function(){};h.deactivate=function(){};h.getSelection=function(){throw Error("Pg");};h.toggleSelection=function(){};h.onContextMenu=function(){return function(){}};h.spotlight=function(){var a=this.getActionItems();a.length&&(this.activeActionItemIndex=0,a[this.activeActionItemIndex].focus())};
h.unspotlight=function(){this.activeActionItemIndex!==void 0&&(this.getActionItems()[this.activeActionItemIndex].unfocus(),this.activeActionItemIndex=void 0)};
h.onKeyDown=function(a){if(this.activeActionItemIndex!==void 0){var b=this.getActionItems(),c=b[this.activeActionItemIndex];c.onKeyDown(a);if(!a.hasStoppedPropagationInternal)switch(a.event.keyCode){case 9:c.unfocus(),this.activeActionItemIndex=(this.activeActionItemIndex+1)%b.length,b[this.activeActionItemIndex].focus(),a.stopPropagation(),a.preventDefault()}}};h.getActivatable=function(){return this};var j7d=function(a,b,c,d,e,f){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.appearanceConfig=d;this.resultListItemFactory=e;this.grouping=f;this.sections=[]};h=j7d.prototype;h.append=function(a,b){a=m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};
h.getOrCreateSection=function(a){var b=this.grouping.getGroupId(a);if(this.sections.find(function(d){return d.groupId===b}))return this.sections.at(-1).section;var c;a=(c=this.grouping.groupConfigs[b])!=null?c:{};c=Vpc(a,this.appearanceConfig);c=this.createSection(c);this.sections.push({section:c,groupId:b});return c};h.getItems=function(){return k7d(this).flatMap(function(a){return a.getItems()})};h.reset=function(a){this.grouping.reset(a);this.navigatable.reset()};
h.clear=function(){var a=k7d(this);a=m(a);for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.list.clear();this.navigatable.clear();this.intelligentCollection.clear();this.sections.length=0};h.done=function(){};var k7d=function(a){a=new Set(a.sections.map(function(b){return b.section}));return[].concat(q(a.values()))};var Wpc=function(){j7d.apply(this,arguments)};Y(Wpc,j7d);
Wpc.prototype.createSection=function(a){var b=uu(Lu.getInstance()),c=uu(Lu.getInstance()),d=ru(a7d,{id:b,listId:c});this.list.append(d);var e=su(d,"tjneg");b=Bpc(e);if(a){su(d,"Bm3u4d").appendChild(a.getRoot());c=this.navigatable;var f=this.intelligentCollection;e={collapsibleResultListContainer:e,collapsibleSectionRoot:d};d=a.getActivatable();var g;d&&(c.insert(c.size(),[d],!1),e&&(g={sectionRoot:e.collapsibleSectionRoot,resultListContainer:e.collapsibleResultListContainer,before:d}));b=new S9(b,
c,f,g);g&&d&&d.setCollapsible(b);return new $6d(b,a)}return new S9(b,this.navigatable,this.intelligentCollection)};var cqc=function(a,b){this.delegate=a;this.grouping=b;this.demotedResults=new Map};h=cqc.prototype;h.append=function(a,b){var c=[];a=m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=this.grouping,f=e.getGroupId(d);Ypc(e.groupConfigs[f])?(e=this.grouping.getGroupId(d),f=this.demotedResults.get(e)||[],f.push({result:d,resultContext:b}),this.demotedResults.set(e,f)):c.push(d)}c.length>0&&this.delegate.append(c,b)};h.getItems=function(){return this.delegate.getItems()};
h.clear=function(){this.delegate.clear();this.demotedResults.clear()};h.reset=function(a){this.delegate.reset(a)};h.done=function(){for(var a=m(this.demotedResults.values()),b=a.next();!b.done;b=a.next()){b=m(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 Zpc=function(){j7d.apply(this,arguments)};Y(Zpc,j7d);Zpc.prototype.createSection=function(a){this.section||(this.section=new S9(this.list,this.navigatable,this.intelligentCollection));a&&this.list.append(a.getRoot());return this.section};Zpc.prototype.clear=function(){j7d.prototype.clear.call(this);this.section=void 0};var l7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l7d,W);l7d.prototype.getEnablePersonalizedQueryMatching=function(){return Gi(this,7)};var Su=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Su,W);Su.prototype.getRequestType=function(){return xi(this,1)};Su.prototype.setRequestType=function(a){return Hn(this,1,a)};var m7d=[0,TEc,99,[0,pA,GEc],[0],[0],[0,pA,-8],[0,pA],[0,pA,oA],C5d,[0,pA],[0,pA,-1]];var n7d=function(){var a=new Su,b=new G9;this.experimentFlags_=Ni(a,G9,107,b)};n7d.prototype.getExperimentFlags=function(){return this.experimentFlags_};n7d.prototype.getExperimentIds=function(){return[]};var lsc=function(a,b){this.cache=b;this.overriddenExperiments=X(a,G9,3)||new G9};lsc.prototype.getExperiments=function(){var a,b=((a=this.cache.getExperimentFlags())==null?void 0:X(a,G9,107))||new G9;a=this.overriddenExperiments;Fi(a,3)&&(a=Gi(a,3),Pi(b,3,a));return b};lsc.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var o7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(o7d,W);h=o7d.prototype;h.getCacheStaleSec=function(){return Cm(this,4,14400)};h.getCacheExpiredSec=function(){return Cm(this,5,63158400)};h.getRpcTimeoutSec=function(){return Cm(this,7,60)};h.getApiKey=function(){return vi(this,8)};h.setApiKey=function(a){return pj(this,8,a)};h.getEnableClearcut=function(){return Gi(this,13,!0)};h.setEnableClearcut=function(a){return Pi(this,13,a)};var isc=cta(o7d);var hsc;var p7d=function(){};p7d.prototype.getExperimentFlags=function(){return new Su};p7d.prototype.getExperimentIds=function(){return[]};var Zu=function(){};Zu.prototype.prefetch=function(){};Zu.prototype.loadExperiments=function(){return new p7d};var U9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(U9,W);U9.prototype.getVersion=function(){return pn(this,1)};U9.prototype.setVersion=function(a){return wn(this,1,a)};U9.prototype.getVersionOrUndefined=function(){return Qb(fm(this,1))};U9.prototype.getVersionOrUndefined_asString=function(){return Ew(this,1)};var V9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(V9,W);h=V9.prototype;h.getApplication=function(){return xi(this,1)};h.setApplication=function(a){return Hn(this,1,a)};h.getApplicationOrUndefined=function(){return xp(this,1)};h.getVersion=function(){return pn(this,2)};h.setVersion=function(a){return wn(this,2,a)};h.getVersionOrUndefined=function(){return Qb(fm(this,2))};h.getVersionOrUndefined_asString=function(){return Ew(this,2)};var q7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q7d,W);h=q7d.prototype;h.getRequestType=function(){return xi(this,1)};h.setRequestType=function(a){return Hn(this,1,a)};h.getProfileId=function(){return vi(this,2)};h.getProfileId_legacyNullable=function(){return Dl(this,2)};h.setProfileId=function(a){return pj(this,2,a)};h.hasProfileId=function(){return im(this,2)};h.getCaller=function(){return X(this,U9,3)};h.setCaller=function(a){return Ni(this,U9,3,a)};
h.getInstanceId=function(){return vi(this,4)};h.setInstanceId=function(a){return pj(this,4,a)};h.clearInstanceId=function(){Aw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Lw(this,4)};h.getClient=function(){return X(this,V9,5)};h.setClient=function(a){return Ni(this,V9,5,a)};h.hasClient=function(){return yi(this,V9,5)};var Qu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Qu,W);h=Qu.prototype;h.getErrorType=function(){return xi(this,2,1)};h.setErrorType=function(a){return Hn(this,2,a)};h.hasErrorType=function(){return jm(this,2)};h.getErrorMessage=function(){return vi(this,3)};h.setErrorMessage=function(a){pj(this,3,a)};h.getStatusCode=function(){return xi(this,4)};h.setStatusCode=function(a){Hn(this,4,a)};h.hasStatusCode=function(){return jm(this,4)};var Eqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eqc,W);h=Eqc.prototype;h.getExperimentFlags=function(){return X(this,Su,1)};h.setExperimentFlags=function(a){return Ni(this,Su,1,a)};h.hasExperimentFlags=function(){return yi(this,Su,1)};h.getError=function(){return X(this,Qu,2)};h.setError=function(a){Ni(this,Qu,2,a)};h.hasError=function(){return yi(this,Qu,2)};h.getSource=function(){return xi(this,3)};h.setSource=function(a){return Hn(this,3,a)};
h.hasSource=function(){return jm(this,3)};h.getSourceOrUndefined=function(){return xp(this,3)};h.getInstanceId=function(){return vi(this,4)};h.setInstanceId=function(a){return pj(this,4,a)};h.clearInstanceId=function(){Aw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Lw(this,4)};h.getExperimentIdsList=function(a){return Em(this,5,Di(a))};h.setExperimentIdsList=function(a){return xc(this,5,a,Eb)};h.getExperimentIds=function(){return Mw(this,5)};
h.setExperimentIds=function(a){zc(this,5,Eb,void 0,a,Fb,void 0,1)};var jqc=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,hqc=/([#].*?&|[#])authuser=([^&#]*)\b/,iqc=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var r7d=function(a,b){this.client_=a;this.runtime_=b;pqc();this.apiKey_=a.getApiKey();this.apiRoot_=vi(this.client_,10)||oqc("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};r7d.prototype.getClient=function(){return this.client_};r7d.prototype.getApiKey=function(){return this.apiKey_};var W9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(W9,W);h=W9.prototype;h.getExperimentFlags=function(){return X(this,Su,1)};h.setExperimentFlags=function(a){return Ni(this,Su,1,a)};h.hasExperimentFlags=function(){return yi(this,Su,1)};h.getObfuscatedGaiaId=function(){return Dl(this,2)};h.getObfuscatedGaiaId_legacyNullable=function(){return Dl(this,2)};h.setObfuscatedGaiaId=function(a){return pj(this,2,a)};h.getExperimentIdsList=function(a){return Em(this,3,Di(a))};
h.setExperimentIdsList=function(a){return xc(this,3,a,Eb)};h.getExperimentIds=function(){return Mw(this,3)};h.setExperimentIds=function(a){zc(this,3,Eb,void 0,a,Fb,void 0,1)};var s7d=wi(W9);var t7d=[0,m7d,qA,IEc];var u7d=function(a){var b=void 0;b=b===void 0?Date.now:b;this.clientConfig_=a;this.now_=b},v7d=function(a,b,c){a=a.now_()-c*1E3;return b>a};u7d.prototype.getCacheState=function(a){var b=this.clientConfig_.getClient();b=Cm(b,3,1800);if(v7d(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(v7d(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return v7d(this,a,b)?3:4};var w7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(w7d,W);h=w7d.prototype;h.getExperiments=function(){return X(this,W9,2)};h.setExperiments=function(a){return Ni(this,W9,2,a)};h.hasExperiments=function(){return yi(this,W9,2)};h.getInstanceId=function(){return vi(this,4)};h.setInstanceId=function(a){return pj(this,4,a)};h.clearInstanceId=function(){Aw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Lw(this,4)};var x7d=[0,qA,t7d,GEc,qA];var y7d=Zsa(w7d,x7d),z7d=function(a){return function(b){var c=new $sa;Msa(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Jsa(a));return Xba(ata(c))}}(x7d);var X9=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(X9,Error);var Ru=function(a,b,c){b=b===void 0?2:b;X9.call(this,b,c===void 0?"{errorType: "+a+", statusCode: "+b+"}":c);this.name="ExperimentsError";this.type=a};Y(Ru,X9);var A7d=new Ru(6);var B7d=function(){};var C7d=function(){};rw(C7d,B7d);C7d.prototype.getCount=function(){for(var a=0,b=m(this),c=b.next();!c.done;c=b.next())a++;return a};C7d.prototype[Symbol.iterator]=function(){return gfd(this.__iterator__(!0)).toEs6()};C7d.prototype.clear=function(){var a=Array.from(this);a=m(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};rw(tqc,C7d);h=tqc.prototype;h.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var a=this.storage_;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
h.set=function(a,b){Y9(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};h.get=function(a){Y9(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};h.remove=function(a){Y9(this);this.storage_.removeItem(a)};h.getCount=function(){Y9(this);return this.storage_.length};
h.__iterator__=function(a){Y9(this);var b=0,c=this.storage_,d=new dfd;d.next=function(){if(b>=c.length)return efd;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};h.clear=function(){Y9(this);this.storage_.clear()};h.key=function(a){Y9(this);return this.storage_.key(a)};var Y9=function(a){if(a.storage_==null)throw Error("Qg");a.isAvailable()||sa(Error("Qg"))};rw(uqc,tqc);rw(Pu,C7d);Pu.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};Pu.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};Pu.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
Pu.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new dfd;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 vqc=["PeopleStackExperiments"],D7d=new Set([4,0]),Jqc=function(a,b){b=b===void 0?new uqc:b;this.clientConfig_=a;this.transformer_=new u7d(this.clientConfig_);this.localStorage_=b;this.storage_=new Pu(this.localStorage_,"pse/591286274")};Jqc.prototype.set=function(a,b){var c=sqc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw A7d;var d=new w7d;b=pj(d,1,c).setExperiments(b);d=Date.now();a=wn(b,3,d).setInstanceId(a.getInstanceId());this.storage_.set(c,Fda(z7d(a)));return c};
Jqc.prototype.get=function(a){a=sqc(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;a=E7d(a);if(a&&this.transformer_.getCacheState(Ym(pn(a,3)))!==4){var b=this.transformer_,c;var d={keyPath:vi(a,1),experiments:(c=a.getExperiments())!=null?c:new W9,lastUpdated:new Date(Ym(pn(a,3))),state:b.getCacheState(Ym(pn(a,3))),instanceId:a.getInstanceId()}}else d=null;return d};var E7d=function(a){if(!a)return null;try{return y7d(a)}catch(b){return null}};
Jqc.prototype.delete=function(a){this.storage_.remove(a);return!0};
Jqc.prototype.clean=function(){for(var a=[].concat(q(this.storage_)),b=m(a),c=b.next();!c.done;c=b.next()){c=c.value;var d=D7d,e=d.has,f;a:{if(c&&(f=E7d(this.storage_.get(c)))&&on(f,3)){f=this.transformer_.getCacheState(Ym(pn(f,3)));break a}f=0}e.call(d,f)&&this.delete(c)}a:{if(a.length>10)try{this.storage_.set("__sak","1"),this.storage_.remove("__sak")}catch(g){if(g==="Storage mechanism: Quota exceeded"){a=!0;break a}}a=!1}a&&this.storage_.clear();a=m(wqc(this.localStorage_));for(b=a.next();!b.done;b=
a.next())b.value.clear()};var Kqc=function(a){var b=void 0;b=b===void 0?new Map:b;this.clientConfig_=a;this.transformer_=new u7d(this.clientConfig_);this.cache_=b};Kqc.prototype.set=function(a,b){var c=sqc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw A7d;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
Kqc.prototype.get=function(a){a=sqc(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};Kqc.prototype.delete=function(a){this.cache_.delete(a);return!0};Kqc.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){a.transformer_.getCacheState(b.lastUpdated.getTime())===4&&a.cache_.delete(c)})};var F7d=function(){};h=F7d.prototype;h.start=function(){};h.stop=function(){};h.count=function(){};h.latency=function(){};h.error=function(){};h.status=function(){};h.logError=function(){};var G7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G7d,W);h=G7d.prototype;h.getCaller=function(){return X(this,U9,1)};h.setCaller=function(a){return Ni(this,U9,1,a)};h.getClient=function(){return X(this,V9,2)};h.setClient=function(a){return Ni(this,V9,2,a)};h.hasClient=function(){return yi(this,V9,2)};var H7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H7d,W);h=H7d.prototype;h.getRequestType=function(){return xi(this,1)};h.setRequestType=function(a){return Hn(this,1,a)};h.setProperties=function(a){return Ni(this,G7d,3,a)};h.getInstanceId=function(){return vi(this,4)};h.setInstanceId=function(a){return pj(this,4,a)};h.clearInstanceId=function(){Aw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Lw(this,4)};var I7d=new qB("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",H7d,W9,function(a){return a.serialize()},s7d);var J7d=function(a){this.client_=new yIc({format:"jspb"});this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};J7d.prototype.getExperimentFlags=function(a,b){return $B(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},I7d)};var K7d=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new F7d};K7d.prototype.getMetric=function(){return this.metric_};K7d.prototype.send=function(a){var b=this,c;return y(function(d){var e=(new G7d).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new H7d).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
K7d.prototype.close=function(){};K7d.prototype.processResponse=function(a){return a};var L7d=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 M7d=function(a,b){X9.call(this,a,b===void 0?"RpcError ("+a+")":b)};Y(M7d,X9);var N7d=function(a,b){this.config_=a;this.request_=b;this.resolver_=new KKc;this.state_=0};h=N7d.prototype;h.resultPromise=function(){return this.resolver_.promise};h.isPending=function(){return this.state_===1};h.cancel=function(){switch(this.state_){case 1:this.state_=2;this.onError_("CANCELLED");break;case 0:this.state_=3;var a=new M7d(1,"CANCELLED");this.resolver_.reject(a.statusCode)}};
h.send=function(){var a=this;if(this.state_!==0)return this.resultPromise();var b=nqc(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);Bqc(b,this.config_.timeoutSec*1E3).finally(function(){a.state_=2}).then(function(c){a:{if(a.state_!==3)if(c){try{var d=a.request_.processResponse(c)}catch(e){a.onError_(e,2);c=void 0;break a}try{a.resolver_.resolve(d),a.request_.close(0)}finally{a.state_=3}}else a.onError_(c);
c=void 0}return c},function(c){return a.onError_(c)});return this.resultPromise()};
h.onError_=function(a,b){b=b===void 0?0:b;if(this.state_!==3){if(a==="TIMEOUT")a=new M7d(4,"TIMEOUT");else if(a==="CANCELLED")a=new M7d(1,"CANCELLED");else if(!(a instanceof X9)){var c=2;if(Oa(a)){var d;isFinite((d=a.code)!=null?d:NaN)&&(c=a.code);c===2&&(c=Ou("result.error.code",a)||a.status,c=Number(c),c=L7d.has(c)?L7d.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 M7d(c)}try{var e=a instanceof
X9?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 O7d=Symbol("Sg"),P7d=function(){};P7d.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[O7d]=d)}return c})};var Q7d=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};Q7d.prototype.getMetric=function(){return this.metric_};Q7d.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
Q7d.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[O7d]||0}};Q7d.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 R7d=function(a){this.config_=a;this.pendingRpcs_=new Set},T7d=function(a,b){b=new Q7d(b);b=new N7d(a.config_,b);a.pendingRpcs_.add(b);S7d(a,b);return b.resultPromise()},S7d=function(a,b){y(function(c){if(c.nextAddress==1)return Yd(c,2,3),z(c,b.send(),3);if(c.nextAddress!=2)return Zd(c),a.pendingRpcs_.delete(b),ae(c,0);be(c);return c.jumpTo(3)})};var Hqc=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new R7d(a);this.rpcClient_=new J7d(this.clientConfig_.apiRoot_)},V7d=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var l=U7d(b);if(c=a.inflightRequests_.get(l)||null)return k.return(c);d=new K7d(b,a.rpcClient_);Yd(k,2,3);e=T7d(a.dispatcher_,d);l=U7d(b);a.inflightRequests_.set(l,
e);return z(k,e,5);case 5:return f=k.yieldResult,k.return(f);case 3:Zd(k);l=U7d(b);a.inflightRequests_.delete(l);ae(k,0);break;case 2:g=be(k);if(Number.isFinite(g))throw new Ru(7,g);throw new Ru(7);}})},U7d=function(a){a=rqc(a);if(!a)throw A7d;return a};var W7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(W7d,W);var xvc=function(a){var b=new W7d;return pj(b,1,a)};h=W7d.prototype;h.getLogSource=function(){return xi(this,2,-1)};h.setLogSource=function(a){return Hn(this,2,a)};h.getApplication=function(){return xi(this,3)};h.setApplication=function(a){return Hn(this,3,a)};h.getApplicationOrUndefined=function(){return xp(this,3)};h.getVersion=function(){return vi(this,4)};h.setVersion=function(a){return pj(this,4,a)};
h.getVersionOrUndefined=function(){return Lw(this,4)};h.getBaselineCl=function(){return Cm(this,5)};h.setBaselineCl=function(a){return Fn(this,5,a)};h.hasBaselineCl=function(){return kn(this,5)};h.getBaselineClOrUndefined=function(){return Kw(this,5)};h.getEnableClearcut=function(){return Gi(this,6)};h.setEnableClearcut=function(a){return Pi(this,6,a)};var wvc=function(a,b){return xc(a,7,b,Eb)};h=W7d.prototype;h.setClientAgent=function(a){return Hn(this,8,a)};
h.getClientAgentOrUndefined=function(){return xp(this,8)};h.setEventSource=function(a){Hn(this,9,a)};h.getEventSourceOrUndefined=function(){return xp(this,9)};h.setEventSourceId=function(a){Fn(this,14,a)};h.getEventSourceIdOrUndefined=function(){return Kw(this,14)};h.getClearcutUrl=function(){return vi(this,10)};h.setClearcutUrl=function(a){pj(this,10,a)};h.setEnvironment=function(a){return Hn(this,11,a)};h.getEnvironmentOrUndefined=function(){return xp(this,11)};
h.getPeoplekitEntryPoint=function(){return xi(this,12)};h.setPeoplekitEntryPoint=function(a){return Hn(this,12,a)};h.getPeoplekitEntryPointOrUndefined=function(){return xp(this,12)};h.setSharekitEntryPoint=function(a){Hn(this,13,a)};h.getSharekitEntryPointOrUndefined=function(){return xp(this,13)};var X7d,Y7d=(X7d=window)==null?void 0:X7d.performance,Z7d,$7d=Y7d==null?void 0:(Z7d=Y7d.timing)==null?void 0:Z7d.navigationStart,Kwd=$7d&&Y7d?function(){var a;return $7d+((a=Y7d==null?void 0:Y7d.now())!=null?a:0)}:function(){return Date.now()};var a8d=function(a){this.start_=a;this.end_=NaN};a8d.prototype.duration=function(){return this.end_-this.start_};a8d.prototype.stop=function(a){this.end_=a;return this.duration()};var Z9=function(a){var b=b===void 0?Kwd:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};Z9.prototype.source=function(){return this.source_};var b8d=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
Z9.prototype.duration=function(a){a=b8d(this,a===void 0?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var c8d=function(a,b){return Cqc(a.duration(b===void 0?"":b))};Z9.prototype.toString=function(a,b){b=b===void 0?1:b;return this.duration(a===void 0?"":a).toFixed(b)};Z9.prototype.start=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=b8d(this,a);this.durations_.set(a,new a8d(b));return this};
Z9.prototype.stop=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=b8d(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};Z9.prototype.clear=function(){this.durations_.clear();return this};var d8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d8d,W);var qvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qvc,W);h=qvc.prototype;h.getQueryId=function(){return Qw(this,1)};h.setQueryId=function(a){return wn(this,1,a)};h.setSelectionId=function(a){return wn(this,2,a)};h.getInstanceId=function(){return Dl(this,4)};h.setInstanceId=function(a){return pj(this,4,a)};h.clearInstanceId=function(){Aw(this,4)};h.hasInstanceId=function(){return im(this,4)};h.getInstanceIdOrUndefined=function(){return Lw(this,4)};
h.getAffinityVersion=function(){return Pw(this,5)};h.setAffinityVersion=function(a){Fn(this,5,a)};h.getAffinityVersionOrUndefined=function(){return Kw(this,5)};var e8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e8d,W);h=e8d.prototype;h.getQueryLength=function(){return Pw(this,1)};h.setQueryLength=function(a){return Fn(this,1,a)};h.hasQueryLength=function(){return kn(this,1)};h.getQuery=function(){return Dl(this,2)};h.setQuery=function(a){return pj(this,2,a)};h.clearQuery=function(){Aw(this,2)};h.hasQuery=function(){return im(this,2)};var f8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f8d,W);f8d.prototype.setLatencyUsec=function(a){Fn(this,1,a)};var $9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($9,W);h=$9.prototype;h.getColumn=function(){return Pw(this,2)};h.setColumn=function(a){return Fn(this,2,a)};h.getType=function(){return Ov(this,3)};h.setType=function(a){return Hn(this,3,a)};h.hasType=function(){return jm(this,3)};var a$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(a$,W);a$.prototype.getExistingSelectionsCount=function(){return Pw(this,1)};a$.prototype.setExistingSelectionsCount=function(a){Fn(this,1,a)};a$.prototype.getPosition=function(){return X(this,$9,2)};a$.prototype.setPosition=function(a){return Ni(this,$9,2,a)};var b$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(b$,W);h=b$.prototype;h.setDevice=function(a){return Hn(this,1,a)};h.getApplication=function(){return xi(this,2)};h.setApplication=function(a){return Hn(this,2,a)};h.getApplicationOrUndefined=function(){return xp(this,2)};h.setPlatform=function(a){Hn(this,3,a)};var c$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(c$,W);h=c$.prototype;h.setEventSource=function(a){Hn(this,2,a)};h.getEventSourceOrUndefined=function(){return xp(this,2)};h.setEventSourceId=function(a){Fn(this,15,a)};h.getEventSourceIdOrUndefined=function(){return Kw(this,15)};h.getSocialClient=function(){return X(this,b$,3)};h.setSocialClient=function(a){return Ni(this,b$,3,a)};h.setVersionName=function(a){return pj(this,5,a)};
h.getBaselineCl=function(){return Qw(this,7)};h.setBaselineCl=function(a){return wn(this,7,a)};h.hasBaselineCl=function(){return on(this,7)};h.getBaselineClOrUndefined=function(){return Qb(fm(this,7))};h.setClientAgent=function(a){return Hn(this,9,a)};h.getClientAgentOrUndefined=function(){return xp(this,9)};h.getPeoplekitEntryPoint=function(){return Ov(this,11)};h.setPeoplekitEntryPoint=function(a){return Hn(this,11,a)};h.getPeoplekitEntryPointOrUndefined=function(){return xp(this,11)};
h.setEnvironment=function(a){return Hn(this,13,a)};h.getEnvironmentOrUndefined=function(){return xp(this,13)};h.setSharekitEntryPoint=function(a){Hn(this,14,a)};h.getSharekitEntryPointOrUndefined=function(){return xp(this,14)};var d$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(d$,W);h=d$.prototype;h.getType=function(){return Ov(this,5)};h.setType=function(a){return Hn(this,5,a)};h.hasType=function(){return jm(this,5)};h.getEmail=function(){return Dl(this,1)};h.getEmail_legacyNullable=function(){return Dl(this,1)};h.setEmail=function(a){return pj(this,1,a)};h.hasEmail=function(){return im(this,1)};h.getPhone=function(){return Dl(this,2)};
h.getPhone_legacyNullable=function(){return Dl(this,2)};h.setPhone=function(a){return pj(this,2,a)};h.getObfuscatedGaiaId=function(){return Dl(this,3)};h.getObfuscatedGaiaId_legacyNullable=function(){return Dl(this,3)};h.setObfuscatedGaiaId=function(a){return pj(this,3,a)};h.getContactId=function(){return Qw(this,4)};h.setContactId=function(a){return wn(this,4,a)};h.getGroupId=function(){return Dl(this,6)};h.setGroupId=function(a){pj(this,6,a)};h.hasGroupId=function(){return im(this,6)};var e$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(e$,W);e$.prototype.getName=function(){return Dl(this,1)};e$.prototype.setName=function(a){return pj(this,1,a)};e$.prototype.hasName=function(){return im(this,1)};e$.prototype.getNameOrUndefined=function(){return Lw(this,1)};var f$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(f$,W);h=f$.prototype;h.getPosition=function(){return X(this,$9,1)};h.setPosition=function(a){return Ni(this,$9,1,a)};h.getProvenance=function(){return Ow(this,3)};h.setProvenance=function(a){return zc(this,3,Cb,void 0,a,Db,void 0,1)};h.getIsBoosted=function(){return Gv(this,6)};h.setIsBoosted=function(a){Pi(this,6,a)};h.getIsPlaceholder=function(){return Gv(this,7)};h.setIsPlaceholder=function(a){Pi(this,7,a)};
h.getIsSelf=function(){return Gv(this,11)};h.getQueryId=function(){return Qw(this,15)};h.setQueryId=function(a){return wn(this,15,a)};h.setSelectionId=function(a){return wn(this,16,a)};var g8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g8d,W);h=g8d.prototype;h.getLoggingId=function(){return Dl(this,1)};h.setLoggingId=function(a){pj(this,1,a)};h.getMetadata=function(){return X(this,f$,3)};h.getMutableMetadata=function(){return Ji(this,f$,3)};h.setMetadata=function(a){Ni(this,f$,3,a)};h.hasMetadata=function(){return yi(this,f$,3)};var g$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(g$,W);g$.prototype.getAffinityVersion=function(){return Pw(this,2)};g$.prototype.setAffinityVersion=function(a){Fn(this,2,a)};g$.prototype.getAffinityVersionOrUndefined=function(){return Kw(this,2)};var h8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(h8d,W);h=h8d.prototype;h.getEventType=function(){return Ov(this,1)};h.getEventType_legacyNullable=function(){return Ov(this,1)};h.setEventType=function(a){return Hn(this,1,a)};h.getMetadata=function(){return X(this,g$,4)};h.getMutableMetadata=function(){return Ji(this,g$,4)};h.setMetadata=function(a){Ni(this,g$,4,a)};h.hasMetadata=function(){return yi(this,g$,4)};
h.getClientInterface=function(){return X(this,c$,5)};h.setClientInterface=function(a){return Ni(this,c$,5,a)};var i8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(i8d,W);h=i8d.prototype;h.getInstanceId=function(){return vi(this,1)};h.setInstanceId=function(a){return pj(this,1,a)};h.clearInstanceId=function(){Aw(this,1)};h.hasInstanceId=function(){return im(this,1)};h.getInstanceIdOrUndefined=function(){return Lw(this,1)};h.getRequestId=function(){return vi(this,2)};h.getRequestType=function(){return xi(this,4)};h.setRequestType=function(a){return Hn(this,4,a)};
h.getSourceType=function(){return xi(this,6)};h.setSourceType=function(a){return Hn(this,6,a)};h.getClient=function(){return xi(this,7)};h.setClient=function(a){return Hn(this,7,a)};h.hasClient=function(){return jm(this,7)};h.getErrorType=function(){return xi(this,8)};h.setErrorType=function(a){return Hn(this,8,a)};h.hasErrorType=function(){return jm(this,8)};h.getStatusCode=function(){return xi(this,10)};h.setStatusCode=function(a){Hn(this,10,a)};h.hasStatusCode=function(){return jm(this,10)};var Iqc=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=xvc("PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(828123362).setEnableClearcut(b.getEnableClearcut())};h=Iqc.prototype;h.getLogContext=function(){return this.logContext_};h.createCountMetric=function(){throw Error("yg");};h.createStatusMetric=function(){throw Error("yg");};h.createErrorMetric=function(){throw Error("yg");};
h.createLatencyMetric=function(a,b){a=b.source();b=Math.round(b.duration()*1E3);wn(a,3,b);return a};var j8d=function(){return aba&&Ca?!Ca.mobile&&(Da("iPad")||Da("Android")||Da("Silk")):Da("iPad")||Da("Android")&&!Da("Mobile")||Da("Silk")};var dsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dsc,W);var csc=function(a,b){return xc(a,3,b,Eb)};var k8d=jj(function(a,b,c,d,e,f){f=f===void 0?"":f;a=new ZC(a,b);f&&(a.destinationUrl=f);d&&BMc(a,function(){return nqc().Authorization});a.setProductID(e||109303191);if(c==null?0:c.length)c=csc(new dsc,c),a.setClearExperimentIds(c);return a.build()});var l8d=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=mba()||Da("iPod")?4:Da("iPad")?5:lba()?j8d()?3:2:(aba&&Ca?Ca.mobile:!j8d()&&(Da("iPod")||Da("iPhone")||Da("Android")||Da("IEMobile")))||j8d()?0:1},m8d=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()){var d,e;c=b.getLogSource();var f=kqc();var g=Em(b,7,Di(Km));c=k8d(c,f,g,(e=(d=IW.clearcut)==null?void 0:d.preferOauth)!=null?e:!1,Cm(b,15),b.getClearcutUrl())}return new l8d(c,a)},n8d=function(a){var b=a.logContextFactory_.getLogContext(),
c=new b$;c.setApplication(b.getApplicationOrUndefined());c.setDevice(a.device_);a=new c$;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},o8d=function(a,b){var c=new IC;HLc(c,b.serialize());a.clearcut_&&a.clearcut_.dispatch(c)};var p8d=function(a,b){this.clearcut_=a;this.logEventFactory_=b},Urc=function(a){return new p8d(m8d(a),a)};p8d.prototype.logError=function(a){var b=n8d(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&o8d(this.clearcut_,a)};var Trc=function(a){this.clearcut_=a};h=Trc.prototype;h.start=function(a,b){a.start(b);return this};h.stop=function(a,b){a.stop(b);return this};h.count=function(a,b){var c=this.clearcut_;b=b===void 0?1:b;var d=n8d(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&o8d(c.clearcut_,a);return this};h.status=function(a,b){var c=this.clearcut_,d=n8d(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&o8d(c.clearcut_,a);return this};
h.latency=function(a){var b=this.clearcut_,c=n8d(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&o8d(b.clearcut_,a);return this};h.error=function(a){this.clearcut_.logError(a);return this};h.logError=function(){};h.logInfo=function(){return this};var q8d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.label_="total";this.source=b};q8d.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};q8d.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var Lqc=function(a,b,c){this.worker_=a;this.metrics_=new Trc(Urc(b));this.runtimeConfig_=c},r8d=function(a,b,c){var d,e,f=new i8d,g=pqc();f=pj(f,2,g).setRequestType(b.getRequestType());b=Hn(f,5,c).setClient((e=(d=b.getClient())==null?void 0:d.getApplicationOrUndefined())!=null?e:0);return Hn(b,9,a.runtimeConfig_.getPeopleApiEnv())},s8d=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())};Lqc.prototype.updateExperimentsCache=function(a,b){b=b===void 0?2:b;var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return d=r8d(c,a,b),e=new q8d(c.metrics_,d),e.start(),z(g,c.worker_.updateExperimentsCache(a,b),2);f=g.yieldResult;s8d(f,d);e.stop();return g.return(f)})};
Lqc.prototype.getCachedExperiments=function(a,b){b=b===void 0?0:b;var c=r8d(this,a,b),d=new q8d(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);s8d(a,c);d.stop();return a};var t8d=function(a){this.timer=a;this.count=0},Nqc=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;a=this.clientConfig_.getClient();this.refreshRateMs_=Cm(a,11,14400)*1E3;this.eventHandler_=new vu(this)};Nqc.prototype.updateExperimentsCache=function(a,b){try{return u8d(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(Fqc(c))}};Nqc.prototype.getCachedExperiments=function(a,b){try{return u8d(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return Fqc(c)}};
var u8d=function(a,b){var c=rqc(b);if(!c)throw new Ru(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new FC(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=Cm(f,12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new t8d(d))}a.refreshers_.get(c)};var v8d=function(){},Mqc=function(a,b){this.cache_=a;this.loader_=b};
Mqc.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1){e=d=null;try{d=w8d(c,a)}catch(x){e=x}if(d&&d.state!==3)return k.return(c.getCachedExperiments(a,b));Yd(k,3);return z(k,x8d(c,a),5)}if(k.nextAddress!=3){f=k.yieldResult;var l=k.return,r=f,w=e;w=w===void 0?null:w;r=(new Eqc).setExperimentFlags(r.getExperimentFlags()).setExperimentIdsList(r.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());w&&r.setError(Dqc(w));
return l.call(k,r)}g=be(k);return k.return(Fqc(g))})};Mqc.prototype.getCachedExperiments=function(a){try{var b=w8d(this,a);if(b){var c=(new Eqc).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);b.state!==1&&x8d(this,a).catch(v8d);return c}x8d(this,a).catch(v8d);return Fqc()}catch(d){return Fqc(d)}};
var w8d=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof Ru)throw d;throw new Ru(3);}},x8d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Yd(e,2),b.hasInstanceId()||b.setInstanceId(pqc()),z(e,V7d(a.loader_,b),4);if(e.nextAddress!=2)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=be(e);if(d instanceof Ru)throw d;throw new Ru(2);})};var Gqc;var y8d=function(a){this.clientConfig_=a;this.worker_=Oqc(this.clientConfig_)};y8d.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var ksc=function(){this.peopleApiEnv_=4};ksc.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};ksc.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var z8d=function(a,b){this.client_=a;this.request_=b;this.response_=null};z8d.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};z8d.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList(Km)};var jsc=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=828123362};jsc.prototype.prefetch=function(a){var b=new r7d(this.clientConfig_,new ksc);a=A8d(this,a,"");Oqc(b).updateExperimentsCache(a,2)};jsc.prototype.loadExperiments=function(a,b,c){var d=new r7d(this.clientConfig_,b),e=A8d(this,a,c);Oqc(d).updateExperimentsCache(e,2);b=new r7d(this.clientConfig_,b);b=new y8d(b);a=A8d(this,a,c);return new z8d(b,a)};
var A8d=function(a,b,c){var d=(new U9).setVersion(a.version_);b=(new V9).setApplication(b);return(new q7d).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var Rqc=new lsc(new H9,new n7d);var Sqc=Lu.getInstance();var Tqc=Lu.getInstance();var B8d=new nl(VF.WEEKDAY_MONTH_DAY_MEDIUM),C8d=new nl(7);new nl(VF.WEEKDAY_MONTH_DAY_MEDIUM);var D8d=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var E8d=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText,e=a.styleClass,f=a.fontIcon,g=a.customTagClass,k=a.tooltipLabel;a=nv();e=g||e;g=k?"tt-c"+M6d++:"";e=mv(a,'<div class="'+iv("peoplekitComponentsTagTag")+" "+(e?iv(e):"")+'" peoplekit-id="'+iv("mQXP")+'"'+(g?' data-tooltip-id="'+iv(g)+'" aria-labelledby="'+iv(g)+'"':"")+">");M9(b)||M9(f)?(g=nv(),b=M9(b)?'<img class="'+iv("peoplekitComponentsTagIcon")+'" src="'+iv(l6d(b))+'" alt="'+iv(c)+'">':M9(f)?'<span class="google-symbols '+iv("peoplekitComponentsTagIcon")+
'">'+jv(f)+"</span>":"",b=lv(b),c=mv(ov(g,b),"<div"+(d?"":' class="'+iv("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+iv("peoplekitComponentsTagText")+'">'+jv(c)+"</div></div>")):c='<div class="'+iv("peoplekitComponentsTagText")+'">'+jv(c)+"</div>";mv(ov(e,c),"</div>");return a};var F8d=function(a,b){a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}this.tagElement=ru(E8d,Object.assign({},a,{styleClass:c}));a.tooltipLabel&&(c=this.tagElement.getAttribute("data-tooltip-id")||"",this.tooltip=bpc(b,c,{label:a.tooltipLabel}),fpc(this.tooltip,this.tagElement))};F8d.prototype.getRoot=function(){return this.tagElement};F8d.prototype.dispose=function(){this.tooltip&&J6d(this.tooltip.tooltipEventTracker)};var h$=function(a,b,c,d,e,f,g){var k=this;this.root=a;this.avatar=e;this.features=f;this.popupsContainer=g;this.isIntelligenceInitialized=this.isOutOfOffice=!1;this.tags=[];G8d(this,{tags:d});opc(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(l){G8d(k,l)})};h=h$.prototype;h.getAllIds=function(){return[]};h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive")};h.deactivate=function(){this.root.classList.remove("isActive")};
h.spotlight=function(){};h.unspotlight=function(){};h.getRoot=function(){return this.root};h.getSelection=function(){throw Error("Pg");};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};
h.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=su(this.root,"Z306Oe");if(this.isOutOfOffice=a.getCurrentStatus()===4){if(a.getCurrentStatus()!==4)throw Error("Tg");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 "+C8d.format(c):"Out of office - back on "+B8d.format(c);XJc(b,String(c));this.root.classList.add("isOutOfOffice")}else XJc(b,
""),this.root.classList.remove("isOutOfOffice")}};h.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:D8d.get(a.getType()||0)||2})};h.getSupportedIntelligenceFeatures=function(){return this.features};h.addTag=function(a){var b=su(this.root,"x00ATb"),c=this.popupsContainer.get("jGsbz");a=new F8d(a,c);this.tags.push(a);b.appendChild(a.getRoot())};
h.setMetaIcon=function(a){var b=boc(this.root,"SC3Htd")[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var G8d=function(a,b){for(var c=m(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};h$.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};h$.prototype.dispose=function(){this.tags.forEach(function(a){a.dispose()})};var H8d=function(a,b,c,d){this.loggingToken=d;this.lookupWithOverride=Zsc(Ysc(a).setDisplayName(b),c)};H8d.prototype.getLoggingToken=function(){return this.loggingToken};var I8d=function(){};I8d.prototype.getDisplayNameMatches=function(){return[]};I8d.prototype.getDisplayValueMatches=function(){return[]};I8d.prototype.getGivenNameMatches=function(){return[]};var J8d=new I8d;var Vqc=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};h=Vqc.prototype;h.getResultType=function(){return this.resultType_};h.getTargetList=function(){return this.targets_};h.getMemberList=function(){return[]};h.getTotalMemberCount=function(){return this.memberCount_};h.getPrimaryTarget=function(){throw Error("Ug");};h.getDisplayName=function(){return""};h.getDisplayValue=function(){return""};h.getDescription=function(){return""};h.getPhotoUrl=function(){return""};
h.getIsBoosted=function(){return!1};h.getMatchInfo=function(){return J8d};h.getExtendedData=function(){return null};var K8d=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 L8d=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_=this.canonicalValue_="";this.name_=null;this.photo_=xv(this.id_)?Pwd:Owd;this.tags_=[];this.sourceIds_=Ovc.includes(this.id_.getType())?[this.id_]:[];this.id_.getType()===8&&this.sourceIds_.push(Otc(this.id_.getOriginalValue()));this.isMe_=this.id_.getType()===17;this.dataSource_=0;this.resultType_=K8d.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=
this.reachabilityInfo_=this.originatingField_=this.emailSecurityInfo_=null};h=L8d.prototype;h.getId=function(){return this.id_};h.getTargetType=function(){return this.id_.getType()};h.getValue=function(){return this.value_};h.setValue=function(a){this.value_=Tu(a);return this};h.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return Tu(a&&a.getValue());case 1:case 2:case 6:case 7:return this.getValue();default:return""}};
h.getCanonicalValue=function(){return this.canonicalValue_||this.value_};h.setCanonicalValue=function(a){this.canonicalValue_=Tu(a);return this};h.getName=function(){return this.name_};h.setName=function(a){this.name_=a;return this};h.getDescription=function(){return this.description_};h.setDescription=function(a){this.description_=Tu(a);return this};h.getPhoto=function(){return this.photo_};h.setPhoto=function(a){a&&a.getUrl()&&a.getType()!==1?this.photo_=a:this.photo_=xv(this.id_)?Pwd:Owd};
h.getTagList=function(){return this.tags_};h.setTagList=function(a){this.tags_=a||[]};h.getSourceIdList=function(){return this.sourceIds_};h.getProfileId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===3}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};h.getContactId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===4}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};h.getLoggingToken=function(){return new Uv};
h.getIsMe=function(){return this.isMe_};h.setIsMe=function(a){this.isMe_=a;return this};h.getDataSource=function(){return this.dataSource_};h.setDataSource=function(a){this.dataSource_=a;return this};h.getResultType=function(){return this.resultType_};h.setResultType=function(a){this.resultType_=a;return this};h.getFieldLoggingId=function(){return this.fieldLoggingId_};h.setFieldLoggingId=function(a){this.fieldLoggingId_=Tu(a)};h.getPersonLoggingId=function(){return this.personLoggingId_};
h.setPersonLoggingId=function(a){this.personLoggingId_=Tu(a)};h.getOrgState=function(){return this.orgState_};h.setOrgState=function(a){this.orgState_=a};h.getOriginatingField=function(){return this.originatingField_};var vuc=function(a,b){a.originatingField_=b;return a};h=L8d.prototype;h.getEmailSecurityInfo=function(){return this.emailSecurityInfo_};h.setEmailSecurityInfo=function(a){this.emailSecurityInfo_=a};h.getReachabilityInfo=function(){return this.reachabilityInfo_};
h.setReachabilityInfo=function(a){this.reachabilityInfo_=a};h.getExtendedData=function(){return this.extendedData_};h.setExtendedData=function(a){this.extendedData_=a};var Rv=function(a){return new L8d(a)};var Xqc=function(a,b,c,d){this.internalId=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=Rv(this.internalId).setDataSource(3);this.internalResult=ys(Wqc(0,[a]));this.internalSelectionToken=new H8d(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=Xqc.prototype;h.id=function(){return this.internalId};h.selectionToken=function(){return this.internalSelectionToken};h.result=function(){return this.internalResult};h.getDisplayNameOverride=function(){return this.displayNameOverride};
h.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};h.getDisplayNameWithOverrideApplied=function(){return this.displayNameOverride};h.isPlaceholder=function(){return!0};var M8d=function(a,b,c,d,e,f){this.delegate=new h$(a,b,c,d,e,[2],f);this.id=b.getPrimaryTarget().getId();this.selection=Yqc(Ev)};Y(M8d,R9);M8d.prototype.getAllIds=function(){return[this.id]};M8d.prototype.getSelection=function(){return this.selection};var N8d=function(a,b,c,d,e,f,g,k){d=d===void 0?"":d;e=e===void 0?!1:e;return mv(ov(mv(ov(mv(ov(mv(nv(),'<div role="option" class="'+iv("peoplekitComponentsResultlistitemResultListItem")+" "+iv(d)+'" id="'+iv(a)+'" peoplekit-id="'+iv(a)+'" aria-disabled="'+iv(e)+'" aria-selected="false"><div class="'+iv("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+iv("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+iv(b)+'" data-name="'+iv(pv(c))+'">'),jv(f)),'</div><div class="'+
iv("peoplekitComponentsResultlistitemCenter")+'">'),jv(g)),'</div><div class="'+iv("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+iv("QChpEe")+'">'),jv(k)),'</div></div><div peoplekit-id="'+iv("Z306Oe")+'" class="'+iv("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},O8d=function(a,b,c){return lv('<div class="'+iv("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+iv("peoplekitComponentsResultlistitemLabel")+" "+iv("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+iv("peoplekitComponentsResultlistitemLabelText")+'" data-name="'+iv(pv(a))+'" translate="no">'+Qsc(pv(a))+'</div><div peoplekit-id="'+iv("x00ATb")+'" class="'+iv("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(b?'<div class="'+iv("peoplekitComponentsResultlistitemSublabel")+" "+iv("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+iv("peoplekitComponentsResultlistitemSublabelText")+'" data-name="'+iv(pv(a))+'"'+(c?"":' translate="no"')+">"+Qsc(pv(b))+"</div></div>":
"")+"</div>")},P8d=function(a){return mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+iv("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+iv("d6MZcd")+'"></div>'),M9(a)?jv(a):""),"</div>")},Q8d=function(){var a=nv(),b=mv(nv(),'<div class="'+iv("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+iv("peoplekitComponentsResultlistitemWhiteCheck")+'">');var c=lv('<svg viewBox="0 0 24 24" class="'+(iv("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 ov(a,P8d(mv(ov(b,c),"</div></div>")))},R8d=function(){return lv('<img class="'+iv("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+iv("SC3Htd")+'" alt="" src=""/>')};var S8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass,g=a.disableReason;a=a.allowSublabelTranslation;return ov(nv(),N8d(b,c,d,"isDisabled "+f,!0,ov(nv(),P8d()),ov(nv(),O8d(d,e,a)),mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'),jv(g)),"</div>")))},T8d=function(){var a=nv(),b='<div class="'+iv("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="';a=mv(a,b+iv(". Already selected")+'">');b=
lv('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(iv("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 mv(ov(a,b),"</div>")};var $qc=function(a){this.delegate=a;var b=this;this.eventHandler=wu(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};Y($qc,R9);$qc.prototype.onClick=function(){this.toggleSelection()};var brc=function(a,b,c,d){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Vg");this.target=a;d=d||this.target.getLoggingToken();a=this.target.getId();this.internalSelectionToken=new H8d(a,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=brc.prototype;h.id=function(){return this.target.getId()};h.selectionToken=function(){return this.internalSelectionToken};h.result=function(){return this.internalResult};
h.getDisplayNameOverride=function(){return this.displayNameOverride};h.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};h.getDisplayNameWithOverrideApplied=function(){return this.forceDisplayNameOverride?this.displayNameOverride:this.displayNameOverride||this.internalResult.getDisplayName()};h.isPlaceholder=function(){return!1};var U8d=function(a){this.groupLoggingToken=a.getPrimaryTarget().getLoggingToken();this.explodedMembers=a.getMemberList().map(function(b){return crc(b)})};U8d.prototype.getLoggingToken=function(){return this.groupLoggingToken};var V8d=function(a,b,c,d,e,f,g){this.delegate=new h$(a,b,d,e,f,[],g);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=Yqc(Ev)};Y(V8d,R9);V8d.prototype.getAllIds=function(){return[this.id]};V8d.prototype.toggleSelection=function(){var a=new U8d(this.result);this.selectionsState.selectExplodingGroup(a,1);this.root.dispatchEvent(yoc("pcw-select",this.root))};V8d.prototype.getSelection=function(){return this.selection};var W8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return ov(nv(),N8d(b,c,d,f,void 0,ov(nv(),P8d()),ov(nv(),O8d(d,e,a)),ov(nv(),R8d())))};var Y8d=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&X8d(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){X8d(c,d)};i$(this.selectionsState,this.onDeselectionCallback);j$(this.selectionsState,this.onSelectionCallback)};Y(Y8d,R9);
Y8d.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=yoc("pcw-deselect",a)}else a=this.getRoot(),a=yoc("pcw-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var X8d=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};Y8d.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var Z8d=function(a,b,c,d,e,f,g,k){this.delegate=new h$(a,b,d,e,f,[2],k);this.selectionsState=c;this.clientConfig=g;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||crc(b,b.getDisplayName())};Y(Z8d,R9);Z8d.prototype.onContextMenu=function(a,b){Gi(this.clientConfig.internal,7)&&a.preventDefault();return R9.prototype.onContextMenu.call(this,a,b)};Z8d.prototype.getAllIds=function(){return[this.id]};Z8d.prototype.getSelection=function(){return this.selection};var $8d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return ov(nv(),N8d(b,c,d,f,void 0,ov(nv(),Q8d()),ov(nv(),O8d(d,e,a)),ov(nv(),R8d())))};var a9d=function(a,b,c,d,e,f,g,k){this.delegate=new h$(a,b,d,e,f,[],k);this.selectionsState=c;this.clientConfig=g;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||crc(b)};Y(a9d,R9);a9d.prototype.onContextMenu=function(a,b){Gi(this.clientConfig.internal,7)&&a.preventDefault();return R9.prototype.onContextMenu.call(this,a,b)};a9d.prototype.getAllIds=function(){return[this.id]};a9d.prototype.getSelection=function(){return this.selection};var b9d=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return ov(nv(),N8d(b,c,d,f,void 0,ov(nv(),Q8d()),ov(nv(),O8d(d,e,a)),ov(nv(),R8d())))};Ju.addCoreFactory({type:0,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,g=a.clientConfig,k=a.popupsContainer;a=Qqc(a);var l=ru($8d,a);Hu({element:l,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[drc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=su(l,"d6MZcd"),w=fqc(e.getDensity()),x;d=(x=d.backupAvatarUrl)!=null?x:"";e=tu(r,a.photos,w,w,e,d);b=new Z8d(l,b,f,c,a.tags,
e,g,k);return arc(new Y8d(b,f))},shouldCreate:function(){return!0}},configurationKey:void 0});
Ju.addCoreFactory({type:1,factory:{create:function(a){var b=Zqc(a),c=a.result,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomizationConfig,g=a.popupsContainer,k=c.getPrimaryTarget().getId();a=xv(k)||Ewd(k)?Uqc(a):Qqc(a);k=Object;var l=k.assign;a:switch(b){case 1:var r=T8d();break a;case 2:r=f.showSelectedIndicatorForDisabled?T8d():lv("");break a;default:r='<div class="'+iv("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',r=lv(r+"DISABLED</div>")}k=ru(S8d,l.call(k,{},a,{disableReason:r}));
(b===1||b===2&&f.showSelectedIndicatorForDisabled)&&k.setAttribute("aria-selected","true");b=su(k,"d6MZcd");l=fqc(e.getDensity());var w;f=(w=f.backupAvatarUrl)!=null?w:"";e=tu(b,a.photos,l,l,e,f);return new M8d(k,c,d,a.tags,e,g)},shouldCreate:function(a){return Zqc(a)!==0}},configurationKey:void 0});
Ju.addCoreFactory({type:2,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.appearanceConfig,e=a.resultCustomizationConfig,f=a.clientConfig,g=a.selectionsState,k=a.popupsContainer;a=Uqc(a);var l=ru(b9d,a);Hu({element:l,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[drc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=su(l,"d6MZcd"),w=fqc(d.getDensity()),x;e=(x=e.backupAvatarUrl)!=null?x:"";d=tu(r,a.photos,w,w,d,e);b=new a9d(l,b,g,c,a.tags,
d,f,k);return arc(new Y8d(b,g))},shouldCreate:function(a){return xv(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});
Ju.addCoreFactory({type:3,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,g=a.popupsContainer;a=Uqc(a);var k=ru(W8d,a);Hu({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[drc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var l=su(k,"d6MZcd"),r=fqc(e.getDensity()),w;d=(w=d.backupAvatarUrl)!=null?w:"";e=tu(l,a.photos,r,r,e,d);return arc(new V8d(k,b,f,c,a.tags,e,g))},
shouldCreate:function(a){return Ewd(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});var erc=function(a,b,c,d,e,f,g,k,l){this.selectionsState=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.isRightToLeft=f;this.interactions=g;this.ariaParent=k;this.popupsContainer=l};
erc.prototype.create=function(a,b){var c=this.selectionsState,d=this.resultConfig,e=this.appearanceConfig,f=this.clientConfig,g=this.isRightToLeft(),k=this.interactions,l=this.injectableResultConfig,r=this.resultConfig.getResultCustomizationCallback()(a,b);l=m(l.resultCustomizationDecorators);for(var w=l.next();!w.done;w=l.next())w=w.value,w=w(r,a,b),r=Object.assign({},r,w);a={result:a,selectionsState:c,resultConfig:d,appearanceConfig:e,clientConfig:f,isRightToLeft:g,interactions:k,resultCustomizationConfig:r,
ariaParent:this.ariaParent,popupsContainer:this.popupsContainer,contextMenuConfigurator:this.injectableResultConfig.contextMenuConfigurator};b=Xnc(this.clientConfig);return qpc(Ju,b).create(a)};var grc=function(a,b,c,d,e,f,g,k,l,r,w){var x=this;this.list=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.selectionsState=f;this.interactions=g;this.ariaParent=l;this.popupsContainer=r;this.grouping=w;this.navigatable=Gpc(new U6d({shouldWrap:!0}));this.intelligentComponentCollection=k.create();this.sectionController=eqc(this.list,this.navigatable,this.intelligentComponentCollection,this.appearanceConfig,frc(this.selectionsState,this.resultConfig,
this.injectableResultConfig,this.appearanceConfig,this.clientConfig,function(){return zu(x.list.getRoot())},this.interactions,this.ariaParent,this.popupsContainer),this.grouping)};h=grc.prototype;h.append=function(a,b){this.sectionController.append(a,b)};h.clear=function(){this.sectionController.clear();this.popupsContainer.clear()};h.reset=function(a){this.sectionController.reset(a)};h.getNavigatable=function(){return this.navigatable};h.getResultListItems=function(){return this.sectionController.getItems()};
h.done=function(){this.sectionController.done()};var prc=function(a,b,c){this.delegate=a;this.interactions=b;this.health=c};h=prc.prototype;h.append=function(a,b){try{for(var c=m(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,Vu(f)),f;}};h.clear=function(){try{this.delegate.clear()}catch(a){throw this.health.createError(4,Vu(a)),a;}};h.reset=function(a){try{this.delegate.reset(a)}catch(b){throw this.health.createError(5,Vu(b)),b;}};
h.getNavigatable=function(){return this.delegate.getNavigatable()};h.getResultListItems=function(){return this.delegate.getResultListItems()};h.done=function(){this.delegate.done()};var orc=function(a){a=a.header;return lv('<div peoplekit-id="'+iv("aittld")+'">'+(a.length>0?'<div class="'+iv("peoplekitUiResultlistHeader")+'">'+jv(a)+"</div>":"")+'<div peoplekit-id="'+iv("tjneg")+'"></div></div>')};var Ytc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ytc,W);var Ztc=new rA(417869137,Hv,Ytc);var c9d=function(){return"Google makes suggestions based on your interactions."};var d9d=function(a){this.labels=a;this.isSuggest=!1;this.hiddenSuggestionsLabel=lv("Hidden suggestions").toString();a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:c9d(),learnMoreUrl:irc(),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)};d9d.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(Ztc))==null?void 0:xp(c,1))===1?"HIDDEN":"SEARCH"}b=a}return b};d9d.prototype.reset=function(a){this.isSuggest=!a.trim()};var jrc=[d9d];var lrc=function(){this.isSuggest=!1;var a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:c9d(),learnMoreUrl:irc(),learnMoreLinkText:"Learn more about suggestions."},b={};this.groupConfigs=(b.SUGGEST={headerText:"Suggestions",infoGroupConfig:a},b.SEARCH={headerText:"Search Results",infoGroupConfig:a},b)};lrc.prototype.getGroupId=function(a){return a.getResultType()===7?"CUSTOM":this.isSuggest?"SUGGEST":"SEARCH"};lrc.prototype.reset=function(a){this.isSuggest=!a.trim()};var mrc=function(a){this.label=a;a={};this.groupConfigs=(a.directory={headerText:this.label},a.non_directory={},a)};mrc.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return b.getDataSource()!==2})?"non_directory":"directory"};mrc.prototype.reset=function(){};var nrc=function(a){this.label=a;a={};this.groupConfigs=(a.suggestions={headerText:this.label},a)};nrc.prototype.getGroupId=function(a){return a.getResultType()!==7?"suggestions":"non_suggestions"};nrc.prototype.reset=function(){};var Wu=function(a,b){this.ariaParent=a;this.delegate=b};h=Wu.prototype;h.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),jU(this.ariaParent,a)):jU(this.ariaParent,null)};h.prev=function(a){a=this.delegate.prev(a);this.update();return a};h.next=function(a){a=this.delegate.next(a);this.update();return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};h.activateAll=function(){this.delegate.activateAll()};h.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};h.getActiveItems=function(){return this.delegate.getActiveItems()};h.getItem=function(a){return this.delegate.getItem(a)};h.getIndexOf=function(a){return this.delegate.getIndexOf(a)};h.clear=function(){this.delegate.clear();this.update()};h.reset=function(){this.delegate.reset();this.update()};
h.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};h.remove=function(a,b){this.delegate.remove(a,b);this.update()};h.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};var e9d=function(a,b){Wu.call(this,a,b)};Y(e9d,Wu);e9d.prototype.tabUpdate=function(){var a=this.getSpotlitItem();if(a){a=a.getRoot();var b=this.ariaParent;var c=csd(b,"activedescendant");b=Cu(b).getElementById(c);(c=a.querySelector('[id="'+(a.id+'-2ab"]')))?jU(this.ariaParent,b===c?a:c):trc(a)&&(a=Array.from(a.querySelectorAll('[class~="TdcT2c"]')),b=b?a.indexOf(b):-1,b!==-1&&jU(this.ariaParent,a[(b+1)%a.length]))}};
e9d.prototype.onKeyDown=function(a){a.event.keyCode===9&&this.tabUpdate();Wu.prototype.onKeyDown.call(this,a)};e9d.prototype.next=function(a){a=Wu.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),trc(b)&&f9d(this,b));return a};e9d.prototype.prev=function(a){a=Wu.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),trc(b)&&f9d(this,b));return a};var f9d=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&jU(a.ariaParent,b)};var uv=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};uv.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};uv.prototype.preventDefault=function(){this.event.preventDefault()};var urc=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=wu(this)};h=urc.prototype;
h.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new uv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new uv(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};h.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
h.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case this.nextKeyCode:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(0);a.stopPropagation();a.preventDefault();break;case 36:if(!this.options.shouldReactToHomeEnd)break;this.navigatable.goToIndex(0,0);a.stopPropagation();a.preventDefault();break;case 35:this.options.shouldReactToHomeEnd&&
(this.navigatable.goToIndex(this.navigatable.size()-1,0),a.stopPropagation(),a.preventDefault())}};h.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};h.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};h.reset=function(){this.navigatable&&this.navigatable.reset()};h.onBlur=function(){this.reset()};var g9d=new DB;g9d.altKey=!0;g9d.keyCode=39;(new DB).keyCode=13;var h9d=function(){BB.call(this)};Y(h9d,BB);h9d.prototype.init=function(){};new h9d;var i9d=ra.URL,j9d;try{new i9d("http://example.com"),j9d=!0}catch(a){j9d=!1}
var k9d=j9d,l9d=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("&")},n9d=function(a){var b=Ws(document,"A");try{$ra(b,new wh(a));var c=b.protocol}catch(e){throw Error("Zg`"+a);}if(c===""||c===":"||c[c.length-1]!=":")throw Error("Zg`"+a);if(!m9d.has(c))throw Error("Zg`"+a);if(!b.hostname)throw Error("Zg`"+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}};m9d.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},o9d=function(a){if(k9d){try{var b=new i9d(a)}catch(d){throw Error("Zg`"+a);}var c=m9d.get(b.protocol);if(!c)throw Error("Zg`"+a);if(!b.hostname)throw Error("Zg`"+
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=n9d(a);return b},m9d=new Map([["http:","80"],["https:","443"],["ws:","80"],["wss:","443"],["ftp:","21"]]),p9d=function(a){var b=o9d("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("$g");c.hash&&c.hash[0]!="#"&&(c.hash="#"+c.hash);a.search?a.search[0]!="?"&&(c.search="?"+a.search):a.searchParams&&(c.search="?"+l9d(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 o9d(a)};var dw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(dw,W);var k$=function(a,b){return Pi(a,1,b)};h=dw.prototype;h.getProvenance=function(){return xi(this,2)};h.setProvenance=function(a){return Hn(this,2,a)};h.getCode=function(){return xi(this,3)};h.setCode=function(a){return Hn(this,3,a)};h.getCodeOrUndefined=function(){return xp(this,3)};var l$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(l$,W);l$.prototype.getSource=function(){return X(this,dw,1)};l$.prototype.setSource=function(a){return Ni(this,dw,1,a)};l$.prototype.hasSource=function(){return yi(this,dw,1)};l$.prototype.getSourceOrUndefined=function(){return yyc(this,dw,1)};var m$=function(a,b){return Hn(a,2,b)},n$=function(a,b){return Hn(a,3,b)};var q9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q9d,W);h=q9d.prototype;h.getQuery=function(){return vi(this,1)};h.setQuery=function(a){return pj(this,1,a)};h.clearQuery=function(){Aw(this,1)};h.hasQuery=function(){return im(this,1)};h.getIsFirstCallback=function(){return Gi(this,2)};h.setIsFirstCallback=function(a){return Pi(this,2,a)};h.getIsLastCallback=function(){return Gi(this,3)};h.setIsLastCallback=function(a){return Pi(this,3,a)};
h.setCallbackNumber=function(a){return Fn(this,4,a)};h.getNextPageToken=function(){return vi(this,5)};h.getCode=function(){return xi(this,6,2)};h.setCode=function(a){return Hn(this,6,a)};h.getCodeOrUndefined=function(){return xp(this,6)};h.getCacheState=function(){return X(this,l$,7)};h.setCacheState=function(a){return Ni(this,l$,7,a)};h.hasCacheState=function(){return yi(this,l$,7)};var yrc=function(a,b,c,d,e,f,g,k){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=g;this.clientConfig=k;this.attached=!1;this.resultsLoadingCompleteListeners=[];this.inputFocusListeners=[];this.inputBlurListeners=[];this.navigatable=new e9d(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=vrc({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},
{shouldReactToHomeEnd:!1});this.eventHandler=wu(this);npc(this.root,0)};h=yrc.prototype;
h.search=function(a,b,c,d){var e=this;this.currentSearchState={query:a,anchor:b,showSuggestions:c,listener:d};this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.showLoadingIndicator();npc(this.root,1);if(a){var f=r9d(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var g=r9d(this.health);g.start();this.session.suggest(function(k){e.update(k,d,g,!1)})}};h.focus=function(){var a;(a=this.navigationInput)==null||a.focus()};
h.hasFocus=function(){return this.navigationInput===this.navigationInput.ownerDocument.activeElement};h.refresh=function(){if(this.currentSearchState){var a=this.currentSearchState;this.search(a.query,a.anchor,a.showSuggestions,a.listener)}return!!this.currentSearchState};
h.attach=function(){var a=this;this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(b){b.preventDefault();b.stopPropagation()}),Gi(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 uv(b),function(){}))}),this.eventHandler.listen(this.navigationInput,
"focus",function(b){b={event:b};for(var c=m(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=m(a.inputBlurListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}))};h.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();npc(this.root,0)};h.isShown=function(){return!0};h.canHide=function(){return!1};
h.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
h.update=function(a,b,c,d){this.hideLoadingIndicator();var e=a.getResults();a=a.getMetadata();var f=a.getQuery(),g=a.getIsLastCallback();this.resultList.append(e,{query:f});g&&this.resultList.done();e=this.resultList.getResultListItems();this.attach();var k=!1;e.length>0||this.navigatable.size()?(k=!0,this.root.classList.remove("noResults")):g&&(k=this.noResultsMessage.update({query:f}),this.root.classList.add("noResults"));b({count:e.length,hasContent:k});(d&&this.config.getAutoActivateFirstSearchResult()||
!d&&this.config.getAutoActivateFirstSuggestion())&&!this.navigatable.getSpotlitItem()&&(e.length?this.navigatable.goToItem(e[0],0):this.navigatable.size()&&this.navigatable.goToIndex(0,0));g?(npc(this.root,a.getCode()===0?2:3,a.getCode()),b={query:f,resultCount:e.length,results:e.map(function(l){return l.getSelection().result()})},s9d(this,b)):npc(this.root,4);c.stop()};
h.onKeyDown=function(a){var b=a.event.keyCode===9&&!a.event.shiftKey,c=a.event.keyCode===13;if(Gi(this.clientConfig.internal,9)&&rrc(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=m(b);for(c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}}else a.event.keyCode!==40||this.navigatable.getSpotlitItem()||
(b=this.resultList.getResultListItems(),b.length&&(this.navigatable.goToItem(b[0],0),a.preventDefault(),a.stopPropagation()))};h.getNavigatable=function(){return this.navigatable};h.getRoot=function(){return this.root};var s9d=function(a,b){a=m(a.resultsLoadingCompleteListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};yrc.prototype.showLoadingIndicator=function(){this.getRoot().classList.add("isLoading")};yrc.prototype.hideLoadingIndicator=function(){this.getRoot().classList.remove("isLoading")};var t9d=function(a){return mv(ov(mv(nv(),'<div tabindex="-1" class="'+iv("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+iv("I8ejUe")+'">'),jv(a)),"</div>")};var Drc=function(){var a=mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+iv("yDHfq")+'"><div class="'+iv("peoplekitComponentsAutocompleteInlineListContainer")+'">'),t9d(lv('<div peoplekit-id="'+iv("tjneg")+'"></div>'))),'</div><div class="'+iv("peoplekitComponentsAutocompleteInlineCircularProgress")+'">');var b='<div class="'+iv("peoplekitComponentsCircularprogressCircularProgress")+(" "+iv("isActive"))+'" data-loadingmessage="'+iv("Loading...")+
'" data-active="true"'+(M9()?f6d(K9(void 0,P5d)?(void 0).getContent():p6d()):"")+'><div class="'+iv("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+iv("vyyg5")+'">'+jv("Loading...")+'</div><div class="'+iv("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+iv("peoplekitComponentsCircularprogressColorOne")+" "+iv("exportColorOne")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+
" "+iv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+" "+iv("peoplekitComponentsCircularprogressRight")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+
" "+iv("exportCircle")+'"></div></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+iv("peoplekitComponentsCircularprogressColorTwo")+" "+iv("exportColorTwo")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+" "+iv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+" "+iv("peoplekitComponentsCircularprogressRight")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+iv("peoplekitComponentsCircularprogressColorThree")+" "+iv("exportColorThree")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+
" "+iv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+" "+iv("peoplekitComponentsCircularprogressRight")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+
" "+iv("exportCircle")+'"></div></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+iv("peoplekitComponentsCircularprogressColorFour")+" "+iv("exportColorFour")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+" "+iv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div><div class="'+iv("peoplekitComponentsCircularprogressCircleClipper")+" "+iv("peoplekitComponentsCircularprogressRight")+'"><div class="'+iv("peoplekitComponentsCircularprogressCircle")+" "+iv("exportCircle")+'"></div></div></div></div></div>';b=lv(b);return mv(ov(a,b),'</div><div peoplekit-id="'+iv("i2HSVe")+'"></div></div>')},Frc=function(){return lv('<div class="'+iv("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var Arc=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+iv("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+iv(a)+'"':"")+'><p class="'+iv("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+jv(b):a+"No results";a+="</p>";if(c||d)a+='<p class="'+iv("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?jv(c)+(d?" ":""):""),d&&(a+='<a jsname="'+iv("viORvd")+'" class="'+iv("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+iv(kv(d))+'">',a=e?a+jv(e):a+"Learn more",a+="</a>"),a+="</p>";return lv(a+"</div>")};var Grc=function(a,b){this.parent=a;this.config=b};Grc.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=ru(Arc,a);this.parent.appendChild(this.root);return!0};var Hrc=function(){};Hrc.prototype.update=function(){return!1};var Brc=function(){};Brc.prototype.update=function(){return!0};var u9d=function(){return lv('<div peoplekit-id="'+iv("i2HSVe")+'"></div>')},v9d=function(a){return lv('<div peoplekit-id="'+iv(a.id)+'"></div>')};var Erc=function(a){this.parent=a;this.root=ru(u9d);this.parent.appendChild(this.root)};Erc.prototype.get=function(a){if(boc(this.root,a).length===0){var b=ru(v9d,{id:a});this.root.appendChild(b)}return su(this.root,a)};Erc.prototype.clear=function(){this.root.replaceChildren()};Erc.prototype.dispose=function(){this.root.remove()};Erc.prototype.getRoot=function(){return this.root};rpc.addCoreFactory({type:0,factory:{create:function(a){return{injectableResultConfig:a.injectableResultConfig,injectableAutocompleteGrouping:a.injectableAutocompleteGrouping}},shouldCreate:function(){return!0}},configurationKey:void 0});var Krc=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=Yoc(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=wu(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.onSelectAttempt()};
this.attach()};h=Krc.prototype;h.search=function(a,b,c,d){var e=this;this.hide();this.inlineAutocomplete.search(a,b,c,function(f){e.anchor=b;e.update(f);d(f)})};h.attach=function(){var a=this;j$(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);this.eventHandler.listen(this.root,"mouseover",function(b){Date.now()-a.lastShowTime<100&&(b.preventDefault(),b.stopPropagation())})};h.onSelect=function(){this.hide()};
h.onSelectAttempt=function(){this.hide()};h.onKeyDown=function(a){this.isShown()&&a.event.keyCode===27&&(this.hide(),a.preventDefault(),a.stopPropagation())};h.detach=function(){this.hide()};h.isShown=function(){return this.popup.isShown()};h.canHide=function(){return!0};
h.dispose=function(){this.detach();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};h.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};h.getRoot=function(){return this.root};h.hasFocus=function(){return this.inlineAutocomplete.hasFocus()};
h.focus=function(){this.inlineAutocomplete.focus()};h.refresh=function(){return this.inlineAutocomplete.refresh()};h.showLoadingIndicator=function(){this.inlineAutocomplete.showLoadingIndicator()};h.hideLoadingIndicator=function(){this.inlineAutocomplete.hideLoadingIndicator()};h.update=function(a){a.hasContent&&this.show()};
h.show=function(){this.navigationInput.setAttribute("aria-expanded","true");this.lastShowTime=Date.now();var a=this.navigationInput.clientWidth;a:{var b=this.config.getDensity();switch(b){case 0:b=300;break a;case 1:b=300;break a;case 2:b=240;break a;default:throw Error("Ng`"+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("Ng`"+c);}}this.root.style.width=EId(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("Ng`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.popup.show(this.anchor)};h.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};var Jrc=function(){return lv('<div class="'+iv("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+iv("noeiCf")+'" style="display: none;"></div>')};var w9d=function(){this.batches=new Map};w9d.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 Mrc=function(a,b){this.service=a;this.resolveComponents=b};
Mrc.prototype.update=function(a){var b=this;a=m([].concat(q(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=m(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){x9d(b,f.values,function(g,k,l){l.updateWaldo(k,g)})});break;case 2:c=c.withHubAvailabilityDot(function(f){x9d(b,f.values,function(g,k,l){l.updateHubAvailabilityDot(k,g)})})}c.execute()}}};
var x9d=function(a,b,c){b=m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=m(a.resolveComponents(e)),g=f.next();!g.done;g=f.next())c(e,d,g.value)}};var y9d=new Set([1,3,20]),z9d=function(a){var b=this;this.idToComponent=new Map;this.updater=Nrc(a,function(c){return b.resolveComponents(c)})};h=z9d.prototype;
h.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(g){return y9d.has(g.getType())})});a=[];b=m(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=m(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
h.remove=function(a){a=m(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$147:void 0},b=a.next()){c.component$jscomp$147=b.value;b=m(c.component$jscomp$147.getAllIds());for(var d=b.next();!d.done;d=b.next()){d=String(d.value);var e=this.idToComponent.get(d);e&&this.idToComponent.set(d,e.filter(function(f){return function(g){return g!==f.component$jscomp$147}}(c)))}}};h.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};
h.refresh=function(a){var b=new w9d;a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=m(d);for(var e=d.next();!e.done;e=d.next())b.add(c,e.value.getSupportedIntelligenceFeatures())}this.updater.update(b)};h.clear=function(){this.idToComponent.clear()};var A9d=function(){};A9d.prototype.append=function(){};A9d.prototype.remove=function(){};A9d.prototype.refresh=function(){};A9d.prototype.clear=function(){};var qsc=function(a){this.peopleIntelligence=a};qsc.prototype.create=function(){return this.peopleIntelligence?new z9d(this.peopleIntelligence):new A9d};var B9d=Object.freeze(new Map([[5,1]]));var C9d=function(){this.entryPoint_=0};C9d.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};C9d.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};C9d.prototype.serialize=function(){return[this.entryPoint_].toString()};var D9d=Object.freeze(new C9d);var E9d=function(){this.originator_=0};E9d.prototype.setOriginator=function(a){this.originator_=a;return this};E9d.prototype.getOriginator=function(){return this.originator_};var Qrc=function(a,b,c){var d=this;this.reporter=a.getReporter((new C9d).setPeoplekitEntryPoint(c));j$(b,function(e,f,g){d.select(e,g)},0);i$(b,function(e,f,g){d.deselect(e,g)},0);F9d(b,function(e,f,g,k){d.replace(e,k)},0);G9d(b,function(e,f){d.selectExplodingGroup(e,f)})};Qrc.prototype.display=function(a){this.reporter.reportDisplay(Orc(a.getTargetList()))};Qrc.prototype.select=function(a,b){a.isPlaceholder()||H9d(this,Xu([a]),b)};
Qrc.prototype.selectExplodingGroup=function(a,b){H9d(this,[a.getLoggingToken()],b)};var H9d=function(a,b,c){switch(c){case 1:case 12:case 5:a.reporter.reportSelect(b,(new E9d).setOriginator(B9d.get(c)||0));break;case 6:a.reporter.reportExternalSelect(b)}};h=Qrc.prototype;h.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(Xu([a]))}};h.dismiss=function(a){this.reporter.reportDismiss(Xu(a))};h.save=function(a){this.reporter.reportSave(Xu(a))};
h.send=function(a){this.reporter.reportSend(Xu(a))};h.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var I9d=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};I9d.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=Gs(function(){b.isBatchingInternal=!1;a()},d>100?0:100)}};I9d.prototype.cancel=function(){ra.clearTimeout(this.timerId);this.isBatchingInternal=!1};var ssc=function(a,b,c,d,e,f){var g=this;this.root=a;this.autocomplete=b;this.selectionsState=c;this.interactions=d;this.tracker=e;this.config=f;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new I9d;j$(this.selectionsState,function(){g.notifySelectionChanged(!1)});i$(this.selectionsState,function(){g.notifySelectionChanged(!0)})};h=ssc.prototype;
h.search=function(a,b){this.config.getClearSelectionsOnSearch()&&this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){d.count>0&&!c&&(c=!0)})};h.select=function(a){this.selectionsState.select(a)};h.deselect=function(a){this.selectionsState.deselect(a)};h.isShown=function(){return this.autocomplete.isShown()};h.report=function(a){var b=b===void 0?[]:b;b=b.length?b:this.selectionsState.asArray();Prc(this.interactions,a,b)};h.cancel=function(){this.autocomplete.detach()};
h.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push({listener:a,listenToDeselections:!1})};
h.notifySelectionChanged=function(a){var b=this;this.selectionChangedAutoBatcher.call(function(){for(var c=b.selectionsState.asArray(),d=m(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 psc=function(a){a=a||{};a=a.classes;return lv('<div peoplekit-id="'+iv("nVhUhf")+'"'+(a?' class="'+iv(a)+'"':"")+"></div>")};var J9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J9d,W);h=J9d.prototype;h.getClientId=function(){return xi(this,1)};h.setClientId=function(a){return Hn(this,1,a)};h.getEntryPoint=function(){return xi(this,5)};h.setEntryPoint=function(a){return Hn(this,5,a)};h.getSocialClient=function(){return X(this,b$,2)};h.setSocialClient=function(a){return Ni(this,b$,2,a)};h.setVersionName=function(a){return pj(this,3,a)};h.getBaselineCl=function(){return pn(this,4)};
h.setBaselineCl=function(a){return wn(this,4,a)};h.hasBaselineCl=function(){return on(this,4)};h.getBaselineClOrUndefined=function(){return Qb(fm(this,4))};h.getComponentFlow=function(){return xi(this,7)};h.setComponentFlow=function(a){return Hn(this,7,a)};var o$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(o$,W);var K9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K9d,W);K9d.prototype.getLabel=function(){return xi(this,1)};K9d.prototype.setLabel=function(a){return Hn(this,1,a)};K9d.prototype.hasLabel=function(){return jm(this,1)};K9d.prototype.setCause=function(a){Hn(this,2,a)};var L9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L9d,W);h=L9d.prototype;h.getLabel=function(){return xi(this,1)};h.setLabel=function(a){return Hn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getValue=function(){return pn(this,2,mb(1))};h.setValue=function(a){return wn(this,2,a)};h.hasValue=function(){return on(this,2)};var p$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p$,W);p$.prototype.getLabel=function(){return vi(this,1)};p$.prototype.setLabel=function(a){return pj(this,1,a)};p$.prototype.hasLabel=function(){return im(this,1)};p$.prototype.setCause=function(a){pj(this,2,a)};var q$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q$,W);q$.prototype.getLabel=function(){return xi(this,1)};q$.prototype.setLabel=function(a){return Hn(this,1,a)};q$.prototype.hasLabel=function(){return jm(this,1)};q$.prototype.setLatencyUsec=function(a){wn(this,2,a)};var M9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(M9d,W);M9d.prototype.getInterfaceType=function(){return xi(this,1)};M9d.prototype.setInterfaceType=function(a){return Hn(this,1,a)};var N9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N9d,W);h=N9d.prototype;h.getCount=function(){return X(this,L9d,3)};h.getMutableCount=function(){return Ji(this,L9d,3)};h.setCount=function(a){return Ni(this,L9d,3,a)};h.getMutableLatency=function(){return Ji(this,q$,4)};h.setLatency=function(a){Ni(this,q$,4,a)};h.getError=function(){return X(this,p$,5)};h.setError=function(a){Ni(this,p$,5,a)};h.hasError=function(){return yi(this,p$,5)};var O9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O9d,W);h=O9d.prototype;h.getClientInterface=function(){return X(this,J9d,3)};h.setClientInterface=function(a){return Ni(this,J9d,3,a)};h.getMetadata=function(){return X(this,o$,4)};h.getMutableMetadata=function(){return Ji(this,o$,4)};h.setMetadata=function(a){Ni(this,o$,4,a)};h.hasMetadata=function(){return yi(this,o$,4)};var Src=function(a,b){this.entryPoint=b;this.logContext=wvc(xvc("peoplekit.health").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(828123362).setEnableClearcut(a.getEnableClearcut()),Rqc.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};h=Src.prototype;h.getLogContext=function(){return this.logContext};
h.createCountMetric=function(a,b,c){b.source().getMutableCount().setValue(c);return P9d(this,a,b)};h.createStatusMetric=function(){throw Error("yg");};h.createLatencyMetric=function(a,b){b.source().getMutableLatency().setLatencyUsec(c8d(b,"total"));return P9d(this,a,b)};h.createErrorMetric=function(a,b){return P9d(this,a,b)};
var P9d=function(a,b,c){a=(new O9d).setClientInterface((new J9d).setClientId(a.clientId).setSocialClient(b.getSocialClient()).setVersionName(a.getLogContext().getVersionOrUndefined()).setBaselineCl(a.getLogContext().getBaselineClOrUndefined()).setComponentFlow(a.componentFlow).setEntryPoint(a.entryPoint));c=c.source();return Ni(a,N9d,2,c)};var Q9d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b};Q9d.prototype.increment=function(a){this.metrics_.count(this.state_,a===void 0?1:a)};var R9d=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b};R9d.prototype.report=function(){this.metrics_.error(this.state_)};var Wrc=function(a,b){this.metrics=a;this.userInterfaceType=b};Wrc.prototype.createCount=function(a,b){a=S9d(this,a,3);a.getMutableCount().setLabel(b);return new Q9d(this.metrics,a)};Wrc.prototype.createError=function(a,b,c){a=S9d(this,a,5);Ji(a,K9d,8).setLabel(b).setCause(c);return new R9d(this.metrics,a)};var S9d=function(a,b,c){var d=new N9d;c=Hn(d,1,c);a=(new M9d).setInterfaceType(a.userInterfaceType);b=Hn(a,2,b);return Ni(c,M9d,2,b)};var Vrc=function(a){this.trackers=a},r9d=function(a){a=a.trackers;var b=S9d(a,2,4);b.getMutableLatency().setLabel(8);return new q8d(a.metrics,b)};Vrc.prototype.createCount=function(a,b){return this.trackers.createCount(b===void 0?0:b,a)};Vrc.prototype.createError=function(a,b,c){return this.trackers.createError(c===void 0?0:c,a,b===void 0?0:b)};var r$=function(){this.itemsByPriority=[]};r$.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};r$.prototype.remove=function(a){for(var b=m(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};r$.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(q(a))})};var av=function(){this.selectionCallbacks=new r$;this.deselectionCallbacks=new r$;this.selectionReplacedCallbacks=new r$;this.selectionAttemptedCallbacks=new r$;this.explodingGroupSelectionCallbacks=new r$;this.selectionsState=[]};
av.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 Yrc(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;b>=0?(this.selectionsState.splice(b,0,a),Yrc(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),Yrc(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
av.prototype.selectExplodingGroup=function(a,b){b=b===void 0?0:b;var c=this.explodingGroupSelectionCallbacks.asArray(),d;c=m(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=m(a.explodedMembers);for(d=a.next();!d.done;d=a.next())this.select(d.value)};av.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),Yrc(a,d,b,this.deselectionCallbacks.asArray()))};
av.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 j$=function(a,b,c){a.selectionCallbacks.add(b,c===void 0?2:c)},i$=function(a,b,c){a.deselectionCallbacks.add(b,c===void 0?2:c)},F9d=function(a,b,c){a.selectionReplacedCallbacks.add(b,c===void 0?2:c)},G9d=function(a,b){a.explodingGroupSelectionCallbacks.add(b,0)};h=av.prototype;
h.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};h.at=function(a){return this.selectionsState[a]};h.replace=function(a,b,c){c=c===void 0?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(e<0||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;Zrc(b,e,a,c,this.selectionReplacedCallbacks.asArray());return!0};
h.pop=function(a){a=a===void 0?0:a;var b=this.selectionsState.pop();if(b)return Yrc(b,this.selectionsState.length,a,this.deselectionCallbacks.asArray()),b};h.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};h.asArray=function(){return this.selectionsState.slice()};h.size=function(){return this.selectionsState.length};h.clear=function(){for(;this.selectionsState.length>0;)this.deselect(this.selectionsState[0])};var T9d=function(a){DC.call(this,a)};Y(T9d,DC);var $rc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y($rc,W);h=$rc.prototype;h.getClientId=function(){return xi(this,1)};h.setClientId=function(a){return Hn(this,1,a)};h.getEntryPoint=function(){return xi(this,2)};h.setEntryPoint=function(a){return Hn(this,2,a)};h.getApplication=function(){return xi(this,3)};h.setApplication=function(a){return Hn(this,3,a)};h.getApplicationOrUndefined=function(){return xp(this,3)};h.setVersionName=function(a){return pj(this,4,a)};
h.getBaselineCl=function(){return pn(this,5)};h.setBaselineCl=function(a){return wn(this,5,a)};h.hasBaselineCl=function(){return on(this,5)};h.getBaselineClOrUndefined=function(){return Qb(fm(this,5))};h.getMetadata=function(){return X(this,o$,6)};h.getMutableMetadata=function(){return Ji(this,o$,6)};h.setMetadata=function(a){Ni(this,o$,6,a)};h.hasMetadata=function(){return yi(this,o$,6)};h.setSharekitEntryPoint=function(a){Hn(this,7,a)};
h.getSharekitEntryPointOrUndefined=function(){return xp(this,7)};var bsc=function(a){this.context_=a};bsc.prototype.createNewTag=function(a){return new T9d(a)};bsc.prototype.addEventMetadata=function(a){HLc(a,this.context_.serialize())};var asc=function(a,b,c,d,e,f,g,k,l,r,w,x,C){e=e===void 0?!1:e;l=l===void 0?!1:l;k||(b=new ZC(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());GC.call(this,a,g||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:l},r,w,x);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0;C&&this.clearcut_.setProductID(C)};Y(asc,GC);
asc.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};asc.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};asc.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var U9d=function(a){this.tracker=a};var V9d=function(a,b){this.root=a;this.handler=b;this.eventHandler=new vu(this)};
V9d.prototype.observe=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(c){c=m(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="childList"){d=m(d.addedNodes);for(var e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&(e.querySelectorAll("[jsLog]").length||e.getAttribute("jsLog"))&&b.handler.tracker.logImpressions()}}),this.observer.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,a,function(c){b.handler.tracker.logEvent(c.type,
c.target);c.stopPropagation()}))};V9d.prototype.dispose=function(){var a;(a=this.observer)==null||a.disconnect();this.eventHandler.removeAll()};var esc=function(a,b){this.root=a;this.tracker=b;this.observer=new V9d(this.root,new U9d(this.tracker))};esc.prototype.start=function(a){FLc(this.tracker,this.root);for(var b=m(a),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;HC(this.tracker,c,d)}this.observer.observe([].concat(q(a.keys())))};esc.prototype.stop=function(a){this.observer.dispose();a&&(a=this.tracker,a.transport&&a.transport.flush());this.tracker.dispose()};var W9d=function(){this.queryScope_=0;this.targetCount_=1;this.displayNameWithOverrideApplied_=null},X9d=function(a,b){a.displayNameWithOverrideApplied_=b;return a},Y9d=function(a,b){a.targetCount_=b;return a};W9d.prototype.getTargetCount=function(){return this.targetCount_};W9d.prototype.getQueryScope=function(){return this.queryScope_};W9d.prototype.setQueryScope=function(a){this.queryScope_=a;return this};W9d.prototype.getDisplayNameWithOverrideApplied=function(){return this.displayNameWithOverrideApplied_};var Z9d=function(){this.code_=2;this.cacheState_=new l$;this.similarIds_=[]};h=Z9d.prototype;h.getCode=function(){return this.code_};h.getCacheState=function(){return this.cacheState_};h.getSimilarIds=function(){return this.similarIds_};h.setCode=function(a){this.code_=a;return this};h.setCacheState=function(a){this.cacheState_=a;return this};var $9d=function(a,b){this.disambiguationLabel_=a;this.metadata_=b};$9d.prototype.getDisambiguationLabel=function(){return this.disambiguationLabel_};$9d.prototype.getMetadata=function(){return this.metadata_};var ytc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};h=ytc.prototype;h.getFilter=function(){return this.filter_};h.setFilter=function(a){this.filter_=a;return this};h.getQueryScope=function(){return this.queryScope_};h.setQueryScope=function(a){this.queryScope_=a;return this};h.getOriginator=function(){return this.originator_};h.setOriginator=function(a){this.originator_=a;return this};h.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue_};
h.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue_=a;return this};h.clone=function(){return(new ytc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope()).setUseOriginalDisplayValue(this.getUseOriginalDisplayValue())};var a$d=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new l$};h=a$d.prototype;h.getIsFirstCallback=function(){return this.isFirstCallback_};h.getIsLastCallback=function(){return this.isLastCallback_};h.getCode=function(){return this.code_};h.getCacheState=function(){return this.cacheState_};h.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};h.setIsLastCallback=function(a){this.isLastCallback_=a;return this};
h.setCallbackNumber=function(){return this};h.setCode=function(a){this.code_=a;return this};h.setCacheState=function(a){this.cacheState_=a;return this};var b$d=function(a,b){this.results_=a;this.metadata_=b};b$d.prototype.getResults=function(){return this.results_};b$d.prototype.getMetadata=function(){return this.metadata_};var s$=function(a,b){this.results_=a;this.metadata_=b};s$.prototype.getResults=function(){return this.results_};s$.prototype.getMetadata=function(){return this.metadata_};var c$d={create:function(a,b,c,d,e){e=e===void 0?new $u:e;return osc(a,b,c,d,new G5d,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=e===void 0?{}:e;return osc(a,b,c,d,new G5d,e)},createConfig:function(a){a=a===void 0?new Xwd(IW.apiEnv,new Ywd(IW.userProfileId)):a;return new Q6d(a)}};var d$d=function(){this.warnForExternalSelections=!1;this.allowContactMethodEditing=!0;this.chipCustomizationCallback=function(){return{}}};h=d$d.prototype;h.getWarnForExternalSelections=function(){return this.warnForExternalSelections};h.getAllowDisplayNameEditing=function(){return!1};h.getAllowContactMethodEditing=function(){return this.allowContactMethodEditing};h.setAllowContactMethodEditing=function(a){this.allowContactMethodEditing=a};h.getAllowChipDeletion=function(){return!0};
h.getShouldDisplayExternalSelectionIcon=function(){return!0};h.getAllowChipDragAndDrop=function(){return!0};h.getChipCustomizationCallback=function(){return this.chipCustomizationCallback};h.getAllowChipDisambiguation=function(){return!0};var e$d=function(a){this.entryPoint=0;this.environmentConfig=a;this.appearance=new hoc;this.chip=new d$d;this.chip.setAllowContactMethodEditing(!1);this.useOriginalDisplayValue=!1};h=e$d.prototype;h.setEntryPoint=function(a){this.entryPoint=a};h.getEntryPoint=function(){return this.entryPoint};h.getEnvironmentConfig=function(){return this.environmentConfig};h.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue};
h.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue=a};h.getWarnForExternalSelections=function(){return this.chip.getWarnForExternalSelections()};h.getAllowDisplayNameEditing=function(){return this.chip.getAllowDisplayNameEditing()};h.getAllowContactMethodEditing=function(){return this.chip.getAllowContactMethodEditing()};h.setAllowContactMethodEditing=function(a){this.chip.setAllowContactMethodEditing(a)};h.getAllowChipDeletion=function(){return this.chip.getAllowChipDeletion()};
h.getShouldDisplayExternalSelectionIcon=function(){return this.chip.getShouldDisplayExternalSelectionIcon()};h.getAllowChipDragAndDrop=function(){return this.chip.getAllowChipDragAndDrop()};h.getChipCustomizationCallback=function(){return this.chip.getChipCustomizationCallback()};h.getAllowChipDisambiguation=function(){return this.chip.getAllowChipDisambiguation()};h.getDensity=function(){return this.appearance.getDensity()};h.setDensity=function(a){this.appearance.setDensity(a)};h.getTheme=function(){return this.appearance.getTheme()};
h.setTheme=function(a){this.appearance.setTheme(a)};h.getStyle=function(){return this.appearance.getStyle()};h.setStyle=function(a){this.appearance.setStyle(a)};var f$d=function(a){this.entryPoint=0;this.helpText="";this.shouldAutofocus=!1;this.environmentConfig=a;this.autocomplete=new P6d(this.environmentConfig);this.chipsBar=new e$d(this.environmentConfig);this.chipsBar.setAllowContactMethodEditing(!0)};h=f$d.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.setEntryPoint=function(a){this.entryPoint=a};h.getEntryPoint=function(){return this.entryPoint};h.getWarnForExternalSelections=function(){return this.chipsBar.getWarnForExternalSelections()};
h.getAllowDisplayNameEditing=function(){return this.chipsBar.getAllowDisplayNameEditing()};h.getAllowContactMethodEditing=function(){return this.chipsBar.getAllowContactMethodEditing()};h.setAllowContactMethodEditing=function(a){this.chipsBar.setAllowContactMethodEditing(a)};h.getAllowChipDeletion=function(){return this.chipsBar.getAllowChipDeletion()};h.getShouldDisplayExternalSelectionIcon=function(){return this.chipsBar.getShouldDisplayExternalSelectionIcon()};h.getAllowChipDragAndDrop=function(){return this.chipsBar.getAllowChipDragAndDrop()};
h.getChipCustomizationCallback=function(){return this.chipsBar.getChipCustomizationCallback()};h.getAllowChipDisambiguation=function(){return this.chipsBar.getAllowChipDisambiguation()};h.getUseOriginalDisplayValue=function(){return this.chipsBar.getUseOriginalDisplayValue()};h.setUseOriginalDisplayValue=function(a){this.chipsBar.setUseOriginalDisplayValue(a)};h.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};h.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};
h.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};h.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};h.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};
h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};h.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};h.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};h.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};h.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};
h.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};h.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};h.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};h.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};h.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};h.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};
h.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};h.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};
h.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};h.getDensity=function(){return this.autocomplete.getDensity()};h.setDensity=function(a){this.autocomplete.setDensity(a)};h.getTheme=function(){return this.autocomplete.getTheme()};h.setTheme=function(a){this.autocomplete.setTheme(a)};h.getStyle=function(){return this.autocomplete.getStyle()};h.setStyle=function(a){this.autocomplete.setStyle(a)};var ttc=function(a){var b=a.multiSelectable,c=a.orientation,d=a.isKeyboardFocusable;a=a.ariaLabel;return lv('<div class="'+iv("peoplekitComponentsArialistboxAriaListBox")+'" peoplekit-id="'+iv("pQPeT")+'" tabindex="'+iv(d?0:-1)+'" role="listbox" aria-multiselectable="'+iv(b)+'" aria-orientation="'+iv(c)+'" aria-label="'+iv(a)+'"></div>')};var g$d=function(a){X9.call(this,9,a);this.name="LookupSelectorError"};Y(g$d,X9);var h$d=new Map([[5,12],[12,8],[11,13],[13,14],[2,15],[6,7]]);var vv=function(a,b,c,d){this.selectionsState=a;this.peopleStore=b;this.lookupOptions=c;this.health=d;this.disposed=!1};vv.prototype.select=function(a,b,c){var d=this;c=c===void 0?-1:c;return this.disposed?Promise.reject(new g$d("LookupSelector is disposed.")):new Promise(function(e){i$d(d,a,b,c,e)})};
var i$d=function(a,b,c,d,e){var f=[],g=[];d=d>=0?d:a.selectionsState.size();b=m(b);for(var k=b.next();!k.done;k=b.next()){var l=j$d(k.value);k=l.lookupId;l=Yqc(k,l.displayNameOverride,l.forceDisplayNameOverride,l.loggingTokenOverride);a.selectionsState.select(l,d,c)&&(f.push(k),d++)}d=a.lookupOptions.clone().setOriginator(B9d.get(c)||0);a.peopleStore.lookup(f,function(r){k$d(a,r,g,c,e)},d)},k$d=function(a,b,c,d,e){if(a.disposed)e([]);else{var f=b.getResults(),g=0,k=0;f=m(f.entries());for(var l=f.next();!l.done;l=
f.next()){var r=m(l.value);l=r.next().value;var w=r=r.next().value,x=a.selectionsState.get(l);x&&(r=x.getDisplayNameOverride(),w=crc(w,r,x.getForceDisplayNameOverride(),x.selectionToken().getLoggingToken()),a.selectionsState.replace(l,w,d),r&&g++,w.getDisplayNameWithOverrideApplied()&&k++)}g=k-g;g>0&&(k=a.health,f=k.createCount,l=6,l=l===void 0?0:l,d=h$d.get(d)||l,f.call(k,53,d).increment(g));b=b.getMetadata();c.push.apply(c,q(b.notFoundIdList_));b.getIsLastCallback()&&(a.deselect(c),e(c))}};
vv.prototype.deselect=function(a){a=m(a);for(var b=a.next();!b.done;b=a.next())(b=this.selectionsState.get(b.value))&&this.selectionsState.deselect(b)};vv.prototype.replace=function(a,b){var c=this;return this.disposed?Promise.reject(new g$d("LookupSelector is disposed.")):new Promise(function(d){l$d(c,a,b,d)})};
var l$d=function(a,b,c,d){var e=[],f=[];b=m(b.entries());for(var g=b.next();!g.done;g=b.next()){var k=m(g.value);g=k.next().value;k=k.next().value;var l=j$d(k);k=l.lookupId;l=Yqc(k,l.displayNameOverride,l.forceDisplayNameOverride,l.loggingTokenOverride);a.selectionsState.replace(g,l)&&f.push(k)}a.peopleStore.lookup(f,function(r){k$d(a,r,e,c,d)},a.lookupOptions)};vv.prototype.dispose=function(){this.disposed=!0};
var j$d=function(a){if(a instanceof H8d){var b=a.lookupWithOverride.getId();var c=a.lookupWithOverride.getDisplayName();var d=a.lookupWithOverride.getForceDisplayNameOverride();a=a.getLoggingToken()}else a instanceof F9?(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 ktc=function(a,b,c,d,e,f){var g=this;this.chipSet=a;this.selectionsState=b;this.undoRedoStack=c;this.lookupSelector=new vv(b,d,e,f);this.onSelectionCallback=function(k,l,r){g.onSelect(r)};this.onSelectionReplacedCallback=function(k,l,r,w){w===9&&g.undoRedoStack.push()};this.onDeselectionCallback=function(k,l,r){g.onDeselect(r)};this.attach()};h=ktc.prototype;
h.attach=function(){j$(this.selectionsState,this.onSelectionCallback);F9d(this.selectionsState,this.onSelectionReplacedCallback);i$(this.selectionsState,this.onDeselectionCallback)};h.select=function(a){a=this.lookupSelector.select(a,6);this.undoRedoStack.push();return a};h.deselect=function(a){this.lookupSelector.deselect(a);this.undoRedoStack.push()};h.replace=function(a){a=this.lookupSelector.replace(a,6);this.undoRedoStack.push();return a};h.focusLastChip=function(){return this.chipSet.focusLastChip()};
h.activateAllChips=function(){this.chipSet.activateAllChips()};h.dispose=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.lookupSelector.dispose();this.chipSet.dispose()};h.onSelect=function(a){a===1&&this.undoRedoStack.push()};h.onDeselect=function(a){switch(a){case 1:case 8:this.undoRedoStack.push()}};var Fsc=function(a){this.root=a;this.length=0;a=this.root;if(a.firstElementChild!==void 0)a=a.firstElementChild;else for(a=a.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;this.marker=a};h=Fsc.prototype;h.append=function(a){this.root.insertBefore(a,this.marker);++this.length};h.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Og");a===this.length?this.append(b):(this.root.insertBefore(b,this.root.childNodes[a]),++this.length)};
h.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Og");this.removeItem(this.root.childNodes[a])};h.removeItem=function(a){try{this.root.removeChild(a),--this.length}catch(b){}};h.clear=function(){for(;this.root.firstChild&&this.root.firstChild!==this.marker;)this.root.removeChild(this.root.firstChild);this.length=0};h.getRoot=function(){return this.root};h.getItems=function(){return Array.from(this.root.childNodes)};var Csc=function(a,b){this.root=a;this.options=b};h=Csc.prototype;h.activate=function(){this.root.classList.add("isActive")};h.deactivate=function(){this.root.classList.remove("isActive")};h.spotlight=function(){};h.unspotlight=function(){};h.getRoot=function(){return this.root};h.getSelection=function(){return Yqc(Nvc(this.options.id))};h.toggleSelection=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};var Bsc=function(a){var b=a.iconUrl,c=a.label,d=a.keyboardShortcut,e=a.densityClass,f=a.ariaLabel;a='<div role="menuitem" id="'+iv(a.id)+'" peoplekit-id="'+iv("UhZROb")+'" class="'+iv("peoplekitComponentsContextmenuitemImplMenuItem")+" "+iv(e)+'"'+(f?' aria-label="'+iv(f)+'"':"")+'><div class="'+iv("peoplekitComponentsContextmenuitemImplRow")+'">'+(M9(b)?'<img class="'+iv("peoplekitComponentsContextmenuitemImplIcon")+" "+iv("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+iv(l6d(b))+'" draggable="false" alt=""/>':
"")+'<div class="'+iv("peoplekitComponentsContextmenuitemImplLabel")+" "+iv("peoplekitComponentsContextmenuitemImplCenter")+'">'+jv(c)+"</div>";d.length>0&&(a+='<div class="'+iv("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+iv("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">',a+=jv(d.join("+"))+"</span></div>");return lv(a+"</div></div>")};var bv=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 dv=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=Yoc(this.root,{});this.navigatable=src(c,new U6d({shouldWrap:!0}));this.navigationEventHandler=vrc({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=wu(this);this.eventHandler.listen(this.root,"mouseover",function(f){f.stopPropagation()});
this.eventHandler.listen(this.root,"mouseout",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mouseenter",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mousedown",function(f){f.preventDefault()});this.hide()};
dv.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=Dsc(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(Iu(e))}d.stopPropagation();m$d(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
dv.prototype.show=function(){for(var a=m(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)};dv.prototype.hide=function(){this.popup.hide();this.navigatable.reset();this.navigationEventHandler.detach();for(var a=m(this.afterHideCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b()};
dv.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(Iu(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);m$d(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var S6d=function(a,b){a.itemSelectedCallbacks.add(b)},T6d=function(a,b){a.afterHideCallbacks.add(b)},m$d=function(a,b){a=m(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};dv.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 Esc=function(){return lv('<div peoplekit-id="'+iv("xl07Ob")+'" class="'+iv("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var n$d=function(a,b,c,d,e,f,g){this.delegate=a;this.ariaParent=b;this.actionRequestCallbacks=c;this.chipConfig=d;this.appearanceConfig=e;this.clientConfig=f;this.chipCustomization=g;this.contextMenuContainer=su(P9.prototype.getRoot.call(this),"QL45qe");a=P9.prototype.getRoot.call(this).parentElement;P9.prototype.getRoot.call(this).removeChild(this.contextMenuContainer);a.appendChild(this.contextMenuContainer)};Y(n$d,P9);h=n$d.prototype;h.deactivate=function(){P9.prototype.deactivate.call(this);t$(this)};
h.drag=function(){t$(this);P9.prototype.drag.call(this)};h.dispose=function(){t$(this);P9.prototype.dispose.call(this)};h.onKeyDown=function(a){var b;(b=this.contextMenu)==null||b.onKeyDown(a);P9.prototype.onKeyDown.call(this,a)};
h.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.isActive()?this.actionRequestCallbacks.spotlight():this.actionRequestCallbacks.activate();this.contextMenu&&t$(this);this.contextMenu=Gsc(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(vsc(a));Gi(this.clientConfig.internal,4)&&o$d(this,a);this.chipConfig.getAllowChipDeletion()&&this.contextMenu.append(wsc(a));var d;!this.chipConfig.getAllowDisplayNameEditing()||
((d=this.chipCustomization.chipAction)==null?0:d.disableDisplayNameEditing)||this.contextMenu.append(xsc(a));Fwd(this.getSelection().id())&&this.chipConfig.getAllowContactMethodEditing()&&this.contextMenu.append(ysc(a));wrc(this.getRoot())&&this.contextMenu.append(zsc(a));S6d(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("bh`"+e.id);}t$(c)});T6d(this.contextMenu,function(){t$(c);b()});this.contextMenu.show();return function(){t$(c)}};
var o$d=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();Bwd.includes(a.getType())?(b=bv.get(b),c=Object.freeze({id:"RkeQbd",iconUrl:b==null?void 0:b.get("RkeQbd"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816})):(b=bv.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)}}};
n$d.prototype.showHovercard=function(){this.isActive();this.getRoot();this.getSelection()};var t$=function(a){var b;(b=a.contextMenu)==null||b.dispose();a.contextMenu=void 0};var p$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(p$d,W);var q$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(q$d,W);q$d.prototype.getGroupIdHex=function(){return vi(this,1)};var r$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(r$d,W);r$d.prototype.getGroupIdHex=function(){return vi(this,1)};var gv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gv,W);h=gv.prototype;h.getGivenName=function(){return vi(this,1)};h.setGivenName=function(a){return Gm(this,1,a)};h.getFamilyName=function(){return vi(this,2)};h.setFamilyName=function(a){return Gm(this,2,a)};h.getEmailList=function(){return Dm(this,3,Di())};h.setEmailList=function(a){return Hm(this,3,a)};h.addEmail=function(a){return Cq(this,3,a)};
h.removeEmail=function(a){return zc(this,3,Sb,void 0,a,Tb,void 0,1,!1,!0)};h.getEmail=function(){return Nw(this,3)};h.setEmail=function(a){return Vw(this,3,a)};var s$d=function(a){return Dm(a,4,Di())},Nsc=function(a,b){return Hm(a,4,b)};gv.prototype.getPhone=function(){return Nw(this,4)};gv.prototype.setPhone=function(a){return Vw(this,4,a)};var u$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u$,W);var Ksc=function(a){var b=new u$;return Gm(b,1,a)};u$.prototype.getEdit=function(){return Gi(this,2)};u$.prototype.setEdit=function(a){return $o(this,2,a)};u$.prototype.getIncludeTrash=function(){return Gi(this,3)};var ev=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ev,W);h=ev.prototype;h.getObfuscatedGaiaId=function(){return vi(this,1)};h.setObfuscatedGaiaId=function(a){return Gm(this,1,a)};h.getEdit=function(){return Gi(this,2)};h.setEdit=function(a){return $o(this,2,a)};h.getIncludeTrash=function(){return Gi(this,3)};var v$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(v$,W);v$.prototype.getEdit=function(){return Gi(this,2)};v$.prototype.setEdit=function(a){return $o(this,2,a)};v$.prototype.getIncludeTrash=function(){return Gi(this,3)};var t$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(t$d,W);t$d.prototype.getQuery=function(){return vi(this,1)};t$d.prototype.setQuery=function(a){return Gm(this,1,a)};t$d.prototype.clearQuery=function(){Aw(this,1)};var u$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(u$d,W);u$d.prototype.getQuery=function(){return vi(this,1)};u$d.prototype.setQuery=function(a){return Gm(this,1,a)};u$d.prototype.clearQuery=function(){Aw(this,1)};var fv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fv,W);var Jsc=function(){var a=new fv;return Co(a,1,v$d,"0")};fv.prototype.getAuthUser=function(){return zo(this,17,v$d)};var Msc=function(a,b){return Yo(a,3,w$,b)},Lsc=function(a,b){return Yo(a,9,w$,b)},Isc=function(a,b){return Yo(a,10,w$,b)};fv.prototype.getSearchParams=function(){return $l(this,t$d,13,w$)};fv.prototype.setSearchParams=function(a){Yo(this,13,w$,a)};
var v$d=[1,17],w$=[2,3,4,5,6,7,8,9,10,11,13,14,15,16];var Hsc=function(a){switch(xo(a,w$)){case 2:var b=$l(a,p$d,2,w$);b=Gi(b,1);return x$(a,"",b?[["multisend_welcome","1"]]:null);case 3:return w$d(a);case 4:return x$(a,"/frequent");case 5:return x$(a,"/other");case 6:return x$(a,"/directory");case 7:return x$(a,"/label/"+y$($l(a,r$d,7,w$).getGroupIdHex(),"GroupParams.GroupIdHex"));case 8:b=$l(a,v$,8,w$);b=vi(b,1);b="/person/"+y$(b,"PersonByPersonIdParams.PersonId");var c=$l(a,v$,8,w$).getEdit()?[["edit","1"]]:$l(a,v$,8,w$).getIncludeTrash()?[["includeTrash",
"1"]]:[];return x$(a,b,c);case 9:return b="/p/"+y$($l(a,ev,9,w$).getObfuscatedGaiaId(),"PersonByObfuscatedGaiaIdParams.ObfuscatedGaiaId"),c=$l(a,ev,9,w$).getEdit()?[["edit","1"]]:$l(a,ev,9,w$).getIncludeTrash()?[["includeTrash","1"]]:[],x$(a,b,c);case 10:return b=$l(a,u$,10,w$),b=vi(b,1),b="/contact/"+y$(b,"PersonByContactIdParams.ContactIdHex"),c=$l(a,u$,10,w$).getEdit()?[["edit","1"]]:$l(a,u$,10,w$).getIncludeTrash()?[["includeTrash","1"]]:[],x$(a,b,c);case 11:return b="/group/"+y$($l(a,q$d,11,
w$).getGroupIdHex(),"DelegatedContactListParams.GroupIdHex")+"/",c=$l(a,q$d,11,w$),c=vi(c,2),x$(a,b+y$(c,"DelegatedContactListParams.SyntheticGroupId"));case 13:return x$(a,"/search/"+y$(a.getSearchParams().getQuery(),"SearchParams.Query"));case 14:return x$(a,"/trash");case 15:return x$(a,"/trashsearch/"+y$($l(a,u$d,15,w$).getQuery(),"TrashSearchParams.Query"));case 16:return x$(a,"/suggestions");default:throw Error("ch`"+xo(a,w$));}},w$d=function(a){var b=[],c=Kt($l(a,gv,3,w$).getGivenName());ya(c)||
b.push(["givenname",c]);c=Kt($l(a,gv,3,w$).getFamilyName());ya(c)||b.push(["familyname",c]);c=$l(a,gv,3,w$).getEmailList().filter(function(d){return!ya(d)}).toString();ya(c)||b.push(["email",c]);c=s$d($l(a,gv,3,w$)).filter(function(d){return!ya(d)}).toString();ya(c)||b.push(["phone",c]);return x$(a,"/new",b)},y$=function(a,b){if(ya(Kt(a)))throw Error("dh`"+b);return a},x$=function(a,b,c){b=b===void 0?"":b;var d=Kt(a.getAuthUser()).trim(),e=d||ya(Kt(zo(a,1,v$d)))||zo(a,1,v$d)==="0"?"":"/u/"+zo(a,1,
v$d),f=[];d&&f.push(["authuser",d]);(a=xi(a,18))&&f.push(["bdSource",a]);c&&c.length>0&&f.push.apply(f,q(c));return(f.length>0?p9d({searchParams:f,pathname:e+b}):p9d({pathname:e+b})).href.substring(0,16384)};var Usc=function(a,b){var c=this;this.dialog=a;this.textField=b;this.textField.checkValidity=Psc;this.textField.onValidityChanged=function(d){return c.onValidityChanged(d)};this.textField.onInput=function(){c.nameLabel.textContent=c.textField.getValue()};this.nameLabel=su(this.dialog.getRoot(),"E0kCZc");this.eventHandler=wu(this);this.textField.focus();this.textField.select();x$d(this.textField);this.eventHandler.listen(this.textField.input,"keydown",function(d){switch(d.keyCode){case 13:c.dialog.dispatchAction(1),
d.stopPropagation(),d.preventDefault()}})};h=Usc.prototype;h.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};h.dispatchAction=function(a){this.dialog.dispatchAction(a)};h.enableAction=function(a){this.dialog.enableAction(a)};h.disableAction=function(a){this.dialog.disableAction(a)};h.getRoot=function(){return this.dialog.getRoot()};h.dispose=function(){this.dialog.dispose();this.textField.dispose();this.eventHandler.removeAll()};
h.onValidityChanged=function(a){a?this.dialog.enableAction(1):this.dialog.disableAction(1)};var qv=function(a){var b=this;this.root=a;this.input=su(this.root,"YPqjbf");this.invalidMessage=su(this.root,"kyLNld");this.eventHandler=wu(this);this.eventHandler.listen(this.input,"input",function(c){var d;(d=b.onInput)==null||d.call(b,c);x$d(b)})};qv.prototype.getRoot=function(){return this.root};qv.prototype.focus=function(){this.input.focus()};qv.prototype.select=function(){this.input.select()};qv.prototype.getValue=function(){return this.input.value};
var x$d=function(a){if(a.checkValidity){var b=a.checkValidity(a.input.value);a.updateValidity(b)}};qv.prototype.updateValidity=function(a){a.isValid?this.validate():this.invalidate(a.errorMessage||"")};qv.prototype.validate=function(){this.root.classList.remove("isInvalid");this.invalidMessage.textContent="";var a;(a=this.onValidityChanged)==null||a.call(this,!0)};
qv.prototype.invalidate=function(a){this.root.classList.add("isInvalid");this.invalidMessage.textContent=a;var b;(b=this.onValidityChanged)==null||b.call(this,!1)};qv.prototype.dispose=function(){this.eventHandler.removeAll();this.onInput=this.onValidityChanged=this.checkValidity=void 0};var Ssc=function(a){var b=a.label,c=a.initialValue;a=a.id;return lv('<div class="'+iv("peoplekitComponentsTextfieldImplTextField")+'"><div class="'+iv("peoplekitComponentsTextfieldImplInputContainer")+'"><label class="'+iv("peoplekitComponentsTextfieldImplLabel")+'" for="'+iv(a)+'">'+jv(b)+'</label><input peoplekit-id="'+iv("YPqjbf")+'" id="'+iv(a)+'" class="'+iv("peoplekitComponentsTextfieldImplInput")+'" value="'+iv(c)+'" autocomplete="off" spellcheck="false"></div><div peoplekit-id="'+iv("kyLNld")+
'" class="'+iv("peoplekitComponentsTextfieldImplInvalidMessage")+'" role="alert"></div></div>')};var Tsc=Lu.getInstance();var y$d=function(a,b,c,d,e,f){var g=this;this.root=a;this.selection=b;this.selectionsState=c;this.actionRequestCallbacks=d;this.appearanceConfig=e;this.chipCustomization=f;this.isDisabledInternal=!1;this.nameEditDialog=null;this.deleteButton=su(this.root,"bxvLg");this.eventHandler=wu(this);this.eventHandler.listen(this.deleteButton,"click",function(){return g.onDeleteButtonClick()})};h=y$d.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};
h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};
h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};
h.edit=function(){var a=this;this.nameEditDialog&&this.nameEditDialog.dispose();var b=this.root.classList.contains("isActive"),c;this.nameEditDialog=Vsc(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=crc(a.selection.result(),((e=a.nameEditDialog)==null?void 0:e.textField.getValue().trim())||"",!0);a.selectionsState.replace(d.id(),
d,9)}a.unedit();b&&a.actionRequestCallbacks.activate()})};h.unedit=function(){this.nameEditDialog&&(this.nameEditDialog.dispose(),this.nameEditDialog=null)};h.dispose=function(){this.eventHandler.removeAll();this.unedit()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(a){var b=boc(this.root,"hyPgpe")[0];b&&(a?(b.classList.add("hasDisambiguationLabel"),XJc(b,"("+a+")")):b.classList.remove("hasDisambiguationLabel"))};
h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var z$d=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,g=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return ov(nv(),v6d(b,d,e,f,g,k,a,ov(nv(),f?x6d(f):w6d()),ov(nv(),y6d(c)),ov(nv(),z6d(b))))};xu.addCoreFactory({type:2,factory:{create:function(a){var b=uoc(a.selection,a.chipConfig,a.chipCustomization),c=ru(z$d,b);tu(su(c,"d6MZcd"),b.photos,a.avatarSize,a.resultListItemAvatarSize,a.appearanceConfig);a.parent.appendChild(c);return{chip:new y$d(c,a.selection,a.selectionsState,a.actionRequestCallbacks,a.appearanceConfig,a.chipCustomization),root:c,state:0}},shouldCreate:function(){return!0}},configurationKey:void 0});
xu.addDecoratorFactory({type:2,configurationKey:void 0,factory:{create:function(a,b){return{chip:new n$d(b.chip,a.ariaParent,a.actionRequestCallbacks,a.chipConfig,a.appearanceConfig,a.clientConfig,a.chipCustomization),root:b.root,state:b.state}},shouldCreate:function(){return!0}}});
xu.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("ah`"+c);}}Hu({element:a,veid:c,actions:["impression"],componentId:"peoplekitweb"});return b},shouldCreate:function(){return!0}}});var B$d=function(){return mv(ov(mv(nv(),'<div draggable="true" peoplekit-id="'+iv("Svajxe")+'" class="'+iv("peoplekitComponentsChipsetImplDraggableChip")+'">'),A$d()),"</div>")},C$d=function(){return mv(ov(mv(nv(),'<div draggable="false" peoplekit-id="'+iv("shtr1e")+'" class="'+iv("peoplekitComponentsChipsetImplNonDraggableChip")+'">'),A$d()),"</div>")},D$d=function(a){a=a.height;return lv('<div peoplekit-id="'+iv("tozrW")+'" class="'+iv("peoplekitComponentsChipsetImplDropMarker")+'" style="height: '+
iv(N9(a))+'px"></div>')},E$d=function(){return lv('<div peoplekit-id="'+iv("DOyw7")+'" class="'+iv("peoplekitComponentsChipsetImplDraggedChips")+'"></div>')},A$d=function(){return lv('<div peoplekit-id="'+iv("ubaLBe")+'" class="'+iv("peoplekitComponentsChipsetImplChipContainer")+'"></div>')};var btc=function(a,b,c,d,e,f,g,k,l,r){this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.dragImageRenderSandbox=d;this.navigatable=e;this.chipDropCallback=k;this.appearanceConfig=l;this.draggedChipsContainer=document.createElement("div");this.currentDropIndex=-1;this.draggedLookupIds=[];this.chipControllers=new Map;this.chipEventHandlers=new Map;this.eventHandler=wu(this);this.lookupSelector=new vv(a,f,g,r);this.dropMarker=ru(D$d,{height:usc(this.appearanceConfig.getDensity())});this.attach()};
btc.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=F$d(a,a.chipControllers.size);z$(a);G$d(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"),z$(a),b.stopPropagation(),b.preventDefault())});this.eventHandler.listen(this.container.getRoot(),"drop",function(b){H$d(a,b)});Npc(this.draggedChipsContainer,this.appearanceConfig.getTheme());this.dragImageRenderSandbox.appendChild(this.draggedChipsContainer)};
btc.prototype.listen=function(a,b,c){var d=this,e=String(a.id()),f=wu(c);f.listen(b,"dragstart",function(g){I$d(d,a,g)});f.listen(b,"dragend",function(g){J$d(d,g)});f.listen(b,"dragover",function(g){d.container.getRoot().classList.add("isDraggedOver");g=g.event_;if(g.dataTransfer.types.includes("text/lookupids")){var k=d.selectionsState.indexOf(a.id());var l=su(g.currentTarget,"ubaLBe").clientWidth,r=zu(d.container.getRoot());k=F$d(d,g.offsetX<l/2?r?k+1:k:r?k:k+1);z$(d);G$d(d,k);g.stopPropagation();
g.preventDefault()}d.container.getRoot()});f.listen(b,"drop",function(g){K$d(d,g)});this.chipEventHandlers.set(e,f);this.chipControllers.set(e,c)};btc.prototype.unlisten=function(a){a=String(a);this.chipEventHandlers.get(a).removeAll();this.chipEventHandlers.delete(a);this.chipControllers.delete(a)};
var I$d=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 atc(f.getSelection())}):a.draggedLookupIds=[atc(b)];a.draggedChips=ru(E$d);b=m(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();vC(a.draggedChipsContainer);a.draggedChipsContainer.appendChild(a.draggedChips);
c.dataTransfer.setDragImage(a.draggedChips,0,0);c.dataTransfer.setData("text/lookupids",Xsc(a.draggedLookupIds));c.dataTransfer.effectAllowed="move";xrc(a.container.getRoot())},J$d=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=m(a.draggedLookupIds);for(var c=b.next();!c.done;c=b.next())a.chipControllers.get(String(c.value.getId())).enable()}z$(a);vC(a.draggedChipsContainer);
a.container.getRoot().classList.remove("isDraggedOver")},F$d=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},G$d=function(a,b){b!==a.currentDropIndex&&(a.container.insert(b,a.dropMarker),a.currentDropIndex=b)},z$=function(a){a.container.removeItem(a.dropMarker);a.currentDropIndex=-1},K$d=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");b=b.event_;var c=b.dataTransfer.getData("text/lookupids");
if(c){c=$sc(c);a.draggedLookupIds=[];for(var d=a.currentDropIndex,e=m(c),f=e.next();!f.done;f=e.next())f=a.selectionsState.indexOf(f.value.getId()),f>=0&&f<a.currentDropIndex&&d--;z$(a);a.lookupSelector.deselect(c.map(function(g){return g.getId()}));a.lookupSelector.select(c,2,d);b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="move";a.currentDropIndex=-1;a.undoRedoStack.push()}else z$(a);vC(a.draggedChipsContainer);a.chipDropCallback()},H$d=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");
b=b.event_;var c=b.dataTransfer.getData("text/lookupids");c&&(c=$sc(c),a.draggedLookupIds=[],z$(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());vC(a.draggedChipsContainer);a.chipDropCallback()};
btc.prototype.dispose=function(){this.eventHandler.removeAll();this.draggedChipsContainer.parentNode&&this.draggedChipsContainer.parentNode.removeChild(this.draggedChipsContainer);this.lookupSelector.dispose()};var L$d=function(){};L$d.prototype.listen=function(){};L$d.prototype.unlisten=function(){};L$d.prototype.dispose=function(){};var M$d=function(){this.listeners=new Map},A$=function(a,b,c){b=JSON.stringify(b);var d=a.listeners.get(b)||[];a.listeners.set(b,[].concat(q(d),[c]))};M$d.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=m(this.listeners.get(JSON.stringify(c))||[]);for(c=b.next();!c.done;c=b.next())c=c.value,c(a)};M$d.prototype.dispose=function(){this.listeners.clear()};var tv=function(a,b,c,d,e,f,g,k,l,r,w){var x=this;this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.peopleStore=d;this.appearanceConfig=f;this.chipConfig=g;this.clientConfig=k;this.callbacks=l;this.chipElements=new Map;this.chips=new Map;this.chipCustomizations=new Map;this.navigatable=src(c.getRoot(),Gpc(new U6d({shouldWrap:!1})));this.navigatable.setSecondaryEventTargets([this]);this.eventHandler=wu(this);this.chipEventHandlers=new Map;this.intelligentCollection=e.create();this.keyboardShortcutHandler=
new M$d;N$d(this);this.dragonDropHandler=this.chipConfig.getAllowChipDragAndDrop()?ctc(a,b,c,this.container.getRoot().ownerDocument.body,this.navigatable,d,r,this.callbacks.chipDrop,this.appearanceConfig,w):new L$d;this.eventHandler.listen(c.getRoot(),"keyup",function(C){C.keyCode!==9||C.target!==x.container.getRoot()||x.navigatable.getSpotlitItem()||(C.shiftKey?x.navigatable.prev(0):x.navigatable.next(0))});this.onSelectionCallback=function(C,H){x.insert(C,H)};this.onDeselectionCallback=function(C){x.remove(C.id())};
this.onSelectionReplacedCallback=function(C,H,J){x.replace(C,H,J)};j$(this.selectionsState,this.onSelectionCallback);i$(this.selectionsState,this.onDeselectionCallback);F9d(this.selectionsState,this.onSelectionReplacedCallback)},N$d=function(a){A$(a.keyboardShortcutHandler,[512,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyMethod(d);a.navigatable.goToItem(d,2);c.stopPropagation()});A$(a.keyboardShortcutHandler,[18,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyContactMethod(d);
a.navigatable.goToItem(d,2);c.stopPropagation()});A$(a.keyboardShortcutHandler,[512,88],function(c){a.chipConfig.getAllowChipDeletion()&&(a.cut(a.navigatable.getSpotlitItem(),3),c.stopPropagation())});A$(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()}};A$(a.keyboardShortcutHandler,[16,69],b);A$(a.keyboardShortcutHandler,[113],b);A$(a.keyboardShortcutHandler,[16,70],function(c){a.chipConfig.getAllowContactMethodEditing()&&(c.stopPropagation(),c.preventDefault(),O$d(a))});b=function(c){if(a.chipConfig.getAllowChipDeletion()){c.stopPropagation();c.preventDefault();c=m(a.navigatable.getActiveItems());for(var d=
c.next();!d.done;d=c.next())a.selectionsState.deselect(d.value.getSelection(),7);a.undoRedoStack.push()}};A$(a.keyboardShortcutHandler,[46],b);A$(a.keyboardShortcutHandler,[8],b);A$(a.keyboardShortcutHandler,[13],function(c){c.stopPropagation();c.preventDefault();a.callbacks.chipContextMenu(a.navigatable.getSpotlitItem(),c.event)})};tv.prototype.insert=function(a,b){var c=String(a.id());this.chipElements.has(c)||P$d(this,a,b)};
tv.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()}};tv.prototype.replace=function(a,b,c){this.remove(c);P$d(this,a,b)};
var P$d=function(a,b,c){var d=String(b.id()),e=a.chipConfig.getAllowChipDragAndDrop()?ru(B$d):ru(C$d);a.container.insert(c,e);a.chipElements.set(d,e);var f=su(e,"ubaLBe"),g=a.chipConfig.getChipCustomizationCallback()(b.result());a.chipCustomizations.set(d,g);var k=Wsc(f,a.container.getRoot(),b,a.selectionsState,{activate:function(){var l=b.id();l=a.chips.get(String(l));a.container.getRoot().focus();a.navigatable.goToItem(l,0)},spotlight:function(){var l=b.id();l=a.chips.get(String(l));a.container.getRoot().focus();
a.navigatable.goToItem(l,2)},copyMethod:function(l){a.copyMethod(l)},copyContactMethod:function(l){a.copyContactMethod(l)},cut:function(l){a.cut(l,4)},editContactMethod:function(){O$d(a)}},a.appearanceConfig,a.chipConfig,a.clientConfig,g,zu(a.container.getRoot()));f=wu(k);a.dragonDropHandler.listen(b,e,k);f.listen(e,"click",function(l){a.callbacks.chipClick(k,l)});f.listen(e,"dblclick",function(l){a.callbacks.chipContextMenu(k,l)});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(),X9d(Y9d(new W9d,a.selectionsState.size()),b.getDisplayNameWithOverrideApplied())).then(function(l){k.setDisambiguationLabel(l.getDisambiguationLabel())})})};tv.prototype.getNavigatable=function(){return this.navigatable};
tv.prototype.focusLastChip=function(){this.container.getRoot().focus();return this.navigatable.goToIndex(this.navigatable.size()-1,0)};tv.prototype.activateAllChips=function(){this.navigatable.activateAll()};
tv.prototype.dispose=function(){this.eventHandler.removeAll();for(var a=m(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 Q$d=function(a,b){return a.navigatable.getActiveItems().includes(b)?a.navigatable.getActiveItems().map(function(c){return c.getSelection()}):[b.getSelection()]};tv.prototype.copyMethod=function(a){a=Q$d(this,a);gtc(a,this.container.getRoot())};tv.prototype.copyContactMethod=function(a){a=a.getSelection();a.result().getDisplayValue()&&ftc(a.result().getDisplayValue(),this.container.getRoot())};
tv.prototype.cut=function(a,b){a=Q$d(this,a);gtc(a,this.container.getRoot());a=m(a);for(var c=a.next();!c.done;c=a.next())this.selectionsState.deselect(c.value,b);this.undoRedoStack.push()};var O$d=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())};
tv.prototype.onKeyDown=function(a){a.event.target===this.container.getRoot()&&this.navigatable.getSpotlitItem()&&(this.keyboardShortcutHandler.handleEvent(a),this.undoRedoStack.onKeyDown(a))};var htc=function(a,b){this.delegate=a;this.health=b};h=htc.prototype;h.insert=function(a,b){try{this.delegate.insert(a,b)}catch(c){throw this.health.createError(6,Vu(c)),c;}};h.remove=function(a){try{this.delegate.remove(a)}catch(b){throw this.health.createError(7,Vu(b)),b;}};h.replace=function(a,b,c){try{this.delegate.replace(a,b,c)}catch(d){throw this.health.createError(8,Vu(d)),d;}};h.getNavigatable=function(){return this.delegate.getNavigatable()};h.focusLastChip=function(){return this.delegate.focusLastChip()};
h.activateAllChips=function(){this.delegate.activateAllChips()};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.dispose=function(){try{this.delegate.dispose()}catch(a){throw this.health.createError(9,Vu(a)),a;}};var jtc=function(a){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.eventHandler=wu(this)};h=jtc.prototype;
h.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new uv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new uv(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};h.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
h.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal)){var b=R$d(a);switch(a.event.keyCode){case this.nextKeyCode:this.navigatable&&!this.navigatable.next(b)&&(this.navigatable.getActiveItems().length<2||b!==1)&&this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(b);a.stopPropagation();a.preventDefault();break;case 36:case 38:this.navigatable.goToIndex(0,b);a.stopPropagation();
a.preventDefault();break;case 35:case 40:this.navigatable.goToIndex(this.navigatable.size()-1,b);a.stopPropagation();a.preventDefault();break;case 65:a.event.platformModifierKey&&(this.navigatable.activateAll(),a.stopPropagation(),a.preventDefault());break;case 32:var c=this.navigatable.getSpotlitItem();c&&(this.navigatable.goToItem(c,b===2?3:b),a.stopPropagation(),a.preventDefault())}}};
h.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,R$d(b));b.stopPropagation();return!0};h.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};h.reset=function(){this.navigatable&&this.navigatable.reset()};var R$d=function(a){return a.event.shiftKey?1:a.event.platformModifierKey?a.event.type==="keydown"?2:3:0};jtc.prototype.onBlur=function(a){this.navigatable&&(this.navigatable.reset(),a.stopPropagation())};var S$d=function(){};S$d.prototype.call=function(a){a()};S$d.prototype.cancel=function(){};var ntc=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"),T$d=RegExp("^([\\s\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]*)+","g"),U$d=Object.freeze({startIndex:0,length:0,value:""});var stc=function(a){a=a||{};a=a.max_height;var b=nv(),c;a&&a>0?c=mv(ov(mv(nv(),'<div class="'+iv("peoplekitComponentsSearchbarImplSearchBarContainer")+'" style="max-height: '+iv(N9(a))+'px">'),t9d(lv('<div peoplekit-id="'+iv("kE8AEc")+'"></div>'))),"</div>"):c=lv('<div class="'+iv("peoplekitComponentsSearchbarImplSearchBarContainer")+'"><div peoplekit-id="'+iv("kE8AEc")+'"></div></div>');return ov(b,c)},utc=function(a){var b=a.id,c=a.ariaLabel,d=a.helpText,e=a.shouldAutofocus,f=a.height;a=a.densityClass;
return lv('<div class="'+iv("peoplekitComponentsSearchbarImplSearchInputContainer")+'" style="height: '+iv(N9(f))+'px" role="presentation"><input id="'+iv(b)+'" class="'+iv("peoplekitComponentsSearchbarImplSearchInput")+" "+iv(a)+'" peoplekit-id="'+iv("BbVjBd")+'" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" aria-label="'+iv(c)+'" aria-autocomplete="list" aria-haspopup="listbox" aria-expanded="false" placeholder="'+iv(d)+'" size="'+iv(d.length)+'" type="text" role="combobox"'+
(e?" autofocus":"")+'><span class="'+iv("peoplekitComponentsSearchbarImplSearchInputWidthMeasurer")+" "+iv(a)+'" peoplekit-id="'+iv("nl4wje")+'"></span></div>')};var V$d=[[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]],wv=function(a,b,c,d,e,f,g,k,l,r){var w=this;this.searchBarElement=a;this.chipsBar=b;this.inputContainer=c;this.autocomplete=d;this.selectionsState=e;this.undoRedoStack=f;this.config=l;this.prevQueryValue="";this.isDisposed=
!1;this.pasteLookupNotFoundListeners=[];this.manualLookupNotFoundListeners=[];this.inputElement=su(c,"BbVjBd");this.inputWidthMeasurer=su(c,"nl4wje");this.scrollBarElement=a.querySelector('[peoplekit-id="I8ejUe"]');this.updateMinWidthBatcher=new I9d;this.autocompleteBatcher=new S$d;this.lookupSelector=new vv(this.selectionsState,g,k,r);this.eventHandler=wu(this);this.keyboardShortcutHandler=new M$d;this.enterKeyDownListeners=[];this.query=U$d;this.onSelectionCallback=function(){w.onSelect()};this.onSelectionAttemptedCallback=
function(){w.onSelectAttempt()};this.onDeselectionCallback=function(){w.onDeselect()};this.attach();B$(this);W$d(this)};h=wv.prototype;h.select=function(a){return this.chipsBar.select(a)};h.deselect=function(a){this.chipsBar.deselect(a)};h.replace=function(a){return this.chipsBar.replace(a)};h.focus=function(){this.inputElement.focus()};
h.dispose=function(){this.detach();this.autocomplete.dispose();this.chipsBar.dispose();this.lookupSelector.dispose();this.updateMinWidthBatcher.cancel();this.autocompleteBatcher.cancel();this.keyboardShortcutHandler.dispose();this.enterKeyDownListeners.length=0;this.isDisposed=!0};var X$d=function(a,b){a=m(a.pasteLookupNotFoundListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};wv.prototype.search=function(){C$(this,!1,!0)};
wv.prototype.attach=function(){var a=this;j$(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);i$(this.selectionsState,this.onDeselectionCallback);this.eventHandler.listen(this.inputElement,"keydown",function(b){b=new uv(b);a.keyboardShortcutHandler.handleEvent(b);if(!a.inputElement.value)a.undoRedoStack.onKeyDown(b)});this.eventHandler.listen(this.inputElement,"keyup",function(b){a.onKeyUp(b)});this.eventHandler.listen(this.inputElement,
"input",function(){a.onInput()});this.eventHandler.listen(this.inputElement,"paste",function(b){Y$d(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(){C$(a)});this.eventHandler.listen(this.searchBarElement,"click",function(){a.inputElement.focus()});Z$d(this)};
wv.prototype.detach=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.eventHandler.removeAll()};
var C$=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;a.autocompleteBatcher.call(function(){a.query=ptc(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(){})})},aae=function(a){var b=a.inputElement.value;a.inputElement.value="";$$d(a);var c=hv(b);c=Ysc(Av(c.address)).setDisplayName(c.getName());a.lookupSelector.select([c],
13).then(function(d){if(!a.isDisposed){if(d.length){a.inputElement.value=b;d={notFoundIds:d};for(var e=m(a.manualLookupNotFoundListeners),f=e.next();!f.done;f=e.next())f=f.value,f(d)}a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length);B$(a);C$(a)}});a.undoRedoStack.push()};wv.prototype.onInput=function(){B$(this);C$(this)};
var bae=function(a,b){if(Ku)return a.searchBarElement.ownerDocument.defaultView.clipboardData;a=b.event_;return a.type==="paste"?a.clipboardData:null},Y$d=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=bae(a,b))==null?void 0:e.getData("text"))||"";e=otc(c);var f=new Map;e=e.map(function(g){var k=hv(g.value),l=k.address?k.getName():"";k=k.address||k.getName();k=k.includes("@")?Av(k):Jtc(k);l=Ysc(k).setDisplayName(l);
f.set(String(k),g);return l});b.preventDefault();b.stopPropagation();a.lookupSelector.select(e,5).then(function(g){a.isDisposed||(a.inputElement.value=g.map(function(k){var l;return((l=f.get(String(k)))==null?void 0:l.value.trim())||""}).join(", "),g.length&&X$d(a,{notFoundIds:g}),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),B$(a),C$(a))});a.undoRedoStack.push()}};wv.prototype.onInputFocus=function(){C$(this)};wv.prototype.onInputBlur=function(){$$d(this)};
var B$=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"})},Z$d=function(a){var b=zu(a.searchBarElement)?39:37,c=function(d){!a.inputElement.value&&a.selectionsState.size()>0&&(a.chipsBar.focusLastChip(),d.stopPropagation())};A$(a.keyboardShortcutHandler,[8],c);A$(a.keyboardShortcutHandler,
[b],c);A$(a.keyboardShortcutHandler,[16,b],c);A$(a.keyboardShortcutHandler,[512,16,b],c);A$(a.keyboardShortcutHandler,[18,16,b],c);A$(a.keyboardShortcutHandler,[512,65],function(d){a.inputElement.value||(a.chipsBar.focusLastChip(),a.chipsBar.activateAllChips(),d.preventDefault(),d.stopPropagation())});A$(a.keyboardShortcutHandler,[40],function(d){a.inputElement.value||a.autocomplete.isShown()||(C$(a,!0),d.preventDefault(),d.stopPropagation())});A$(a.keyboardShortcutHandler,[13],function(d){if(a.inputElement.value){var e=
a.inputElement.value;e=e==null?!1:hv(e).isValid();var f=!a.autocomplete.getNavigatable().size();e&&f&&(aae(a),d.preventDefault(),d.stopPropagation())}else if(!a.autocomplete.getNavigatable().getActiveItems().length){e=a.selectionsState.asArray();f=m(a.enterKeyDownListeners);for(var g=f.next();!g.done;g=f.next())g=g.value,g(e);d.preventDefault();d.stopPropagation()}});b=m(V$d);for(c=b.next();!c.done;c=b.next())A$(a.keyboardShortcutHandler,c.value,function(d){d.stopPropagation()})};
wv.prototype.onKeyUp=function(a){a.keyCode!==37&&a.keyCode!==39||C$(this)};var $$d=function(a){a.autocompleteBatcher.cancel();a.autocomplete.canHide()&&(a.autocomplete.detach(),a.prevQueryValue="")};
wv.prototype.onSelect=function(){cae(this);W$d(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(T$d,"");this.inputElement.setSelectionRange(this.query.startIndex,this.query.startIndex);
C$(this,!1,!1);B$(this)}};wv.prototype.onSelectAttempt=function(){this.onSelect()};wv.prototype.onDeselect=function(){this.autocomplete.isShown()&&C$(this,!1,!1);cae(this);W$d(this);B$(this);this.selectionsState.size()<=0&&this.inputElement.focus()};
var cae=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,B$(a))},W$d=function(a){var b=a.inputElement,c=b.setAttribute;a=a.selectionsState.size();c.call(b,"aria-description",(a===0?"None":""+a)+" selected")};var rtc=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=Bca(fm(c.internal,3)))!=null?d:a;this.push()};rtc.prototype.push=function(){var a=this.selectionsState.asArray().map(atc),b=!1;this.undoStack.length!==0&&qtc(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};
rtc.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};rtc.prototype.clear=function(){this.undoStack.length=0;this.push()};
rtc.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 vtc=Lu.getInstance();var ztc=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 I9d;j$(this.selectionsState,function(){f.notifySelectionChanged()});i$(this.selectionsState,function(){f.notifySelectionChanged()});F9d(this.selectionsState,function(){f.notifySelectionChanged()})};h=ztc.prototype;h.select=function(a){return this.searchBar.select(a)};h.deselect=function(a){this.searchBar.deselect(a)};
h.replace=function(a){return this.searchBar.replace(a)};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push(a)};h.notifySelectionChanged=function(){var a=this;this.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=m(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};h.focus=function(){this.searchBar.focus()};h.report=function(a){var b=this.selectionsState.asArray();Prc(this.interactionReporter,a,b)};
h.dispose=function(){this.searchbarTracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.searchBar.dispose()};var xtc=function(a){a=a||{};a=a.classes;return lv('<div peoplekit-id="'+iv("P3anae")+'"'+(a?' class="'+iv(a)+'"':"")+"></div>")};var dae={create:function(a,b,c,d){d=d===void 0?new $u:d;return Ctc(a,b,c,new G5d,{sessionOptions:d})},createWith:function(a,b,c,d){d=d===void 0?{}:d;return Ctc(a,b,c,new G5d,d)},createConfig:function(a){a=a===void 0?new Xwd(IW.apiEnv,new Ywd(IW.userProfileId)):a;return new f$d(a)}};var eae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(eae,W);h=eae.prototype;h.getEnableClearcut=function(){return Gi(this,1)};h.setEnableClearcut=function(a){return Pi(this,1,a)};h.getSocialApplication=function(){return xi(this,2)};h.getSocialApplicationOrUndefined=function(){return xp(this,2)};h.setEventSources=function(a){zw(this,5,aw,a)};var D$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(D$,W);D$.prototype.getApplication=function(){return xi(this,1)};D$.prototype.setApplication=function(a){return Hn(this,1,a)};D$.prototype.getApplicationOrUndefined=function(){return xp(this,1)};D$.prototype.getIsEnabled=function(){return Gi(this,2)};var fae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fae,W);h=fae.prototype;h.getSuggestMaxResults=function(){return Cm(this,1,10)};h.getSearchMaxResults=function(){return Cm(this,2,10)};h.getCacheStaleSec=function(){return em(this,4,86400)};h.getCacheExpiredSec=function(){return em(this,5,1209600)};h.getRpcTimeoutSec=function(){return em(this,12,60)};h.getSuggestFormat=function(){return xi(this,15,1)};h.getSearchFormat=function(){return xi(this,16,1)};
h.getEnablePersonalizedQueryMatching=function(){return Gi(this,35)};var E$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(E$,W);E$.prototype.getApiKey=function(){return vi(this,1)};E$.prototype.setApiKey=function(a){return pj(this,1,a)};var F$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(F$,W);F$.prototype.getClientId=function(){return vi(this,1,"CLIENT_UNSPECIFIED")};F$.prototype.setClientId=function(a){return pj(this,1,a)};F$.prototype.setAffinityType=function(a){return pj(this,4,a)};var gae=function(a){return xi(a,5)};F$.prototype.setPhoneCanonicalizationInference=function(a){return Hn(this,19,a)};F$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return xp(this,19)};var hae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hae,W);h=hae.prototype;h.getClient=function(){return X(this,fae,1)};h.setClient=function(a){return Ni(this,fae,1,a)};h.hasClient=function(){return yi(this,fae,1)};h.getGapi=function(){return X(this,E$,2)};h.getPeopleApi=function(){return X(this,F$,3)};h.getClearcut=function(){return X(this,eae,4)};h.setClearcut=function(a){Ni(this,eae,4,a)};h.hasClearcut=function(){return yi(this,eae,4)};
h.getExperiments=function(){return X(this,D$,5)};h.setExperiments=function(a){return Ni(this,D$,5,a)};h.hasExperiments=function(){return yi(this,D$,5)};var iae=cta(hae);var jae;var kae=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new fxd;a=this.getPeopleApi();xn(a,7,Di()).length||Ww(a,7,[2,8,1,7,10,11]);Dm(a,8,Di()).length||Hm(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=m(Dm(a,8,Di()));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":Cq(a,8,c+".metadata.verified")}};
kae.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new fae);return this.delegate_.getClient()};kae.prototype.getGapi=function(){if(!yi(this.delegate_,E$,2)){var a=this.delegate_,b=new E$;Ni(a,E$,2,b)}return this.delegate_.getGapi()};kae.prototype.getPeopleApi=function(){if(!yi(this.delegate_,F$,3)){var a=this.delegate_,b=new F$;Ni(a,F$,3,b)}return this.delegate_.getPeopleApi()};
kae.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new eae);return this.delegate_.getClearcut()};var lae=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new D$);return a.delegate_.getExperiments()};kae.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var mae=function(a){a=a.getClient();return Cm(a,6,500)?Math.min(Math.round(Cm(a,6,500)/4),500):500};var nae;var $v=null;var oae=function(){};oae.prototype.processItem=function(){};var pae=new oae;var Etc=new Set([10,11]);var qae=function(a){this.interleaveGroups_=Gi(a,33)},rae=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=Ftc(d,e,f,!0);break a;default:d=Gtc(d,e,f)}}return d}).map(function(d){return String(d.id)})};var G$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(G$,W);G$.prototype.setPhoneCanonicalizationInference=function(a){return Hn(this,1,a)};G$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return xp(this,1)};var H$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(H$,W);H$.prototype.setDevice=function(a){return Hn(this,1,a)};var sae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(sae,W);var tae=function(){var a=new sae;return Hn(a,1,1)},uae=function(a,b){return pj(a,2,b)};var vae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(vae,W);h=vae.prototype;h.setAffinityType=function(a){return Hn(this,1,a)};h.getQuery=function(){return Dl(this,2)};h.setQuery=function(a){return pj(this,2,a)};h.clearQuery=function(){Aw(this,2)};h.hasQuery=function(){return im(this,2)};h.setClientInformation=function(a){Ni(this,H$,3,a)};h.setMaxResults=function(a){return Fn(this,4,a)};h.setFormattingOptions=function(a){Ni(this,G$,5,a)};
h.setDelegation=function(a){Ni(this,sae,6,a)};var wae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(wae,W);var xae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xae,W);h=xae.prototype;h.getAffinityVersion=function(){return Pw(this,1)};h.setAffinityVersion=function(a){Fn(this,1,a)};h.getAffinityVersionOrUndefined=function(){return Kw(this,1)};h.setFeature=function(a){return zw(this,3,wae,a)};h.setAffinityType=function(a){return pj(this,4,a)};var auc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,4)};Y(auc,W);var I$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(I$,W);I$.prototype.getValue=function(){return Dl(this,1)};I$.prototype.getValue_legacyNullable=function(){return Dl(this,1)};I$.prototype.setValue=function(a){return pj(this,1,a)};I$.prototype.hasValue=function(){return im(this,1)};var yae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(yae,W);h=yae.prototype;h.getLoggingId=function(){return fm(this,1,void 0,Qv,uc)};h.setLoggingId=function(a){Kr(this,1,gb(a,!1,!0))};h.getValue=function(){return Rw(this,2)};h.getValue_legacyNullable=function(){return Rw(this,2)};h.setValue=function(a){return Sw(this,2,a)};h.hasValue=function(){return fm(this,2,void 0,void 0,xb)!=null};var zae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(zae,W);h=zae.prototype;h.getValue=function(){return Dl(this,1)};h.getValue_legacyNullable=function(){return Dl(this,1)};h.setValue=function(a){return pj(this,1,a)};h.hasValue=function(){return im(this,1)};h.getGivenName=function(){return Dl(this,2)};h.setGivenName=function(a){return pj(this,2,a)};h.hasGivenName=function(){return im(this,2)};h.getFamilyName=function(){return Dl(this,3)};
h.setFamilyName=function(a){return pj(this,3,a)};h.hasFamilyName=function(){return im(this,3)};h.getSourceType=function(){return Ov(this,4)};h.setSourceType=function(a){return Hn(this,4,a)};var Aae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Aae,W);h=Aae.prototype;h.getUrl=function(){return Dl(this,1)};h.setUrl=function(a){return pj(this,1,a)};h.hasUrl=function(){return im(this,1)};h.getType=function(){return Ov(this,2)};h.setType=function(a){return Hn(this,2,a)};h.hasType=function(){return jm(this,2)};h.getGlyph=function(){return Dl(this,3)};h.setGlyph=function(a){return pj(this,3,a)};var J$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(J$,W);h=J$.prototype;h.getPhoto=function(){return X(this,Aae,1)};h.setPhoto=function(a){Ni(this,Aae,1,a)};h.hasPhoto=function(){return yi(this,Aae,1)};h.getName=function(){return X(this,zae,2)};h.setName=function(a){return Ni(this,zae,2,a)};h.hasName=function(){return yi(this,zae,2)};h.getNameOrUndefined=function(){return yyc(this,zae,2)};h.getAffinity=function(){return X(this,yae,3)};
h.hasAffinity=function(){return yi(this,yae,3)};var K$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(K$,W);K$.prototype.getStatus=function(){return Ov(this,2)};K$.prototype.setStatus=function(a){return Hn(this,2,a)};K$.prototype.hasStatus=function(){return jm(this,2)};var Bae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Bae,W);var nuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(nuc,W);nuc.prototype.getState=function(){return Ov(this,2)};nuc.prototype.setState=function(a){return Hn(this,2,a)};var Cae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Cae,W);Cae.prototype.getApplication=function(){return xi(this,1)};Cae.prototype.setApplication=function(a){return Hn(this,1,a)};Cae.prototype.getApplicationOrUndefined=function(){return xp(this,1)};var L$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(L$,W);L$.prototype.getValue=function(){return Dl(this,1)};L$.prototype.getValue_legacyNullable=function(){return Dl(this,1)};L$.prototype.setValue=function(a){return pj(this,1,a)};L$.prototype.hasValue=function(){return im(this,1)};var Ktc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ktc,W);h=Ktc.prototype;h.getProfileId=function(){return Dl(this,1)};h.getProfileId_legacyNullable=function(){return Dl(this,1)};h.setProfileId=function(a){return pj(this,1,a)};h.hasProfileId=function(){return im(this,1)};h.getEmail=function(){return Tv(this,2,Dv)};h.getEmail_legacyNullable=function(){return Tv(this,2,Dv)};h.setEmail=function(a){return Co(this,2,Dv,a)};
h.hasEmail=function(){return mr(this,2,Dv)!=null};h.getPhone=function(){return Tv(this,3,Dv)};h.getPhone_legacyNullable=function(){return Tv(this,3,Dv)};h.setPhone=function(a){return Co(this,3,Dv,a)};h.getClientData=function(){return Dl(this,4)};h.hasClientData=function(){return im(this,4)};var Dv=[2,3];var Dae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Dae,W);h=Dae.prototype;h.getDisplayValue=function(){return Dl(this,1)};h.getCanonicalValue=function(){return Dl(this,2)};h.setCanonicalValue=function(a){return pj(this,2,a)};h.hasCanonicalValue=function(){return im(this,2)};h.getOriginalValue=function(){return Dl(this,3)};var Eae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Eae,W);var Fae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Fae,W);h=Fae.prototype;h.getStatus=function(){return Ov(this,1)};h.setStatus=function(a){return Hn(this,1,a)};h.hasStatus=function(){return jm(this,1)};h.getClientData=function(){return Dl(this,2)};h.hasClientData=function(){return im(this,2)};var Ntc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Ntc,W);h=Ntc.prototype;h.getIdCase=function(){return xo(this,M$)};h.getProfileId=function(){return Tv(this,1,M$)};h.getProfileId_legacyNullable=function(){return Tv(this,1,M$)};h.setProfileId=function(a){return Co(this,1,M$,a)};h.hasProfileId=function(){return mr(this,1,M$)!=null};h.getContactId=function(){return Tv(this,2,M$)};h.setContactId=function(a){return Co(this,2,M$,a)};var M$=[1,2];var Gae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Gae,W);h=Gae.prototype;h.getValueCase=function(){return xo(this,Bv)};h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return yi(this,J$,1)};h.getEmail=function(){return $l(this,L$,2,Bv)};h.setEmail=function(a){return Yo(this,2,Bv,a)};h.hasEmail=function(){return Ri(this,L$,2,Bv)};h.getPhone=function(){return $l(this,Dae,3,Bv)};h.setPhone=function(a){return Yo(this,3,Bv,a)};
h.getIsSelf=function(){return Gv(this,6)};h.getTypeLabel=function(){return Dl(this,10)};h.getDisambiguationLabel=function(){return X(this,I$,14)};h.setDisambiguationLabel=function(a){Ni(this,I$,14,a)};var Bv=[2,3,4];var Hae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Hae,W);h=Hae.prototype;h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return yi(this,J$,1)};h.getMembersList=function(){return Ci(this,Gae,2,Di())};h.setMembersList=function(a){return Oi(this,2,a)};h.getLabelId=function(){return Dl(this,3)};var Fv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a,5)};Y(Fv,W);Fv.prototype.getIsPlaceholder=function(){return Gi(this,2)};Fv.prototype.setIsPlaceholder=function(a){Pi(this,2,a)};Fv.prototype.getContactId=function(){return pn(this,4)};Fv.prototype.setContactId=function(a){return wn(this,4,a)};var Iae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Iae,W);Iae.prototype.getAffinity=function(){return X(this,yae,2)};Iae.prototype.hasAffinity=function(){return yi(this,yae,2)};var xuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xuc,W);xuc.prototype.getIdCase=function(){return xo(this,yuc)};var yuc=[1,2];var Jae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jae,W);h=Jae.prototype;h.getDisplayInfo=function(){return X(this,J$,1)};h.hasDisplayInfo=function(){return yi(this,J$,1)};h.getMembersList=function(){return Ci(this,Iae,2,Di())};h.setMembersList=function(a){return Oi(this,2,a)};h.getGroupId=function(){return Dl(this,4)};h.setGroupId=function(a){pj(this,4,a)};h.hasGroupId=function(){return im(this,4)};var N$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(N$,W);N$.prototype.getDataCase=function(){return xo(this,Kae)};N$.prototype.clearData=function(){return Bw(this,Kae)};N$.prototype.getGroup=function(){return $l(this,Jae,2,Kae)};N$.prototype.setGroup=function(a){Yo(this,2,Kae,a)};var Kae=[1,2,3];var Lae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Lae,W);var Mae=new qB("/peoplestack.PeopleStackAutocompleteService/Autocomplete",vae,Lae,function(a){return a.serialize()},wi(Lae));var Nae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Nae,W);h=Nae.prototype;h.setAffinityType=function(a){return Hn(this,1,a)};h.setClientInformation=function(a){Ni(this,H$,2,a)};h.getName=function(){return Dl(this,3)};h.setName=function(a){return pj(this,3,a)};h.hasName=function(){return im(this,3)};h.getNameOrUndefined=function(){return Lw(this,3)};var Oae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Oae,W);Oae.prototype.getGroup=function(){return X(this,Jae,1)};Oae.prototype.setGroup=function(a){Ni(this,Jae,1,a)};var Pae=new qB("/peoplestack.PeopleStackAutocompleteService/CreateGroup",Nae,Oae,function(a){return a.serialize()},wi(Oae));var Mv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Mv,W);h=Mv.prototype;h.getIdCase=function(){return xo(this,Nv)};h.getEmail=function(){return Tv(this,1,Nv)};h.getEmail_legacyNullable=function(){return Tv(this,1,Nv)};h.setEmail=function(a){return Co(this,1,Nv,a)};h.hasEmail=function(){return mr(this,1,Nv)!=null};h.getPhone=function(){return Tv(this,2,Nv)};h.getPhone_legacyNullable=function(){return Tv(this,2,Nv)};h.setPhone=function(a){return Co(this,2,Nv,a)};
h.getProfileId=function(){return Tv(this,3,Nv)};h.getProfileId_legacyNullable=function(){return Tv(this,3,Nv)};h.setProfileId=function(a){return Co(this,3,Nv,a)};h.hasProfileId=function(){return mr(this,3,Nv)!=null};h.getContactId=function(){return Tv(this,5,Nv)};h.setContactId=function(a){return Co(this,5,Nv,a)};var Nv=[1,2,3,4,5];var O$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(O$,W);O$.prototype.setAffinityType=function(a){return Hn(this,1,a)};O$.prototype.setClientInformation=function(a){Ni(this,H$,2,a)};var Qae=function(a,b){Oi(a,3,b)};O$.prototype.setIds=function(a){return zw(this,3,Mv,a)};O$.prototype.setFormattingOptions=function(a){Ni(this,G$,4,a)};O$.prototype.setDelegation=function(a){Ni(this,sae,5,a)};var Rae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Rae,W);Rae.prototype.clearResult=function(){return Bw(this,Sae)};Rae.prototype.getId=function(){return X(this,Mv,1)};Rae.prototype.setId=function(a){return Ni(this,Mv,1,a)};var Sae=[2,3];var Tae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Tae,W);var Uae=new qB("/peoplestack.PeopleStackAutocompleteService/Lookup",O$,Tae,function(a){return a.serialize()},wi(Tae));var Vae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Vae,W);Vae.prototype.setAffinityType=function(a){return Hn(this,1,a)};Vae.prototype.setClientInformation=function(a){Ni(this,H$,2,a)};Vae.prototype.setDelegation=function(a){Ni(this,sae,3,a)};var Wae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Wae,W);var Xae=new qB("/peoplestack.PeopleStackAutocompleteService/Warmup",Vae,Wae,function(a){return a.serialize()},wi(Wae));var Yae=function(a){var b={unaryInterceptors:[new P7d]};b=b||{};b.format="jspb";this.client_=new yIc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};Yae.prototype.autocomplete=function(a,b,c){return $B(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},Mae,c)};Yae.prototype.lookup=function(a,b,c){return $B(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},Uae,c)};
Yae.prototype.createGroup=function(a,b,c){return $B(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},Pae,c)};var Yv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Yv,W);h=Yv.prototype;h.getTimestamp=function(){return pn(this,1)};h.setTimestamp=function(a){return wn(this,1,a)};h.hasTimestamp=function(){return on(this,1)};h.getAffinityVersion=function(){return Cm(this,2)};h.setAffinityVersion=function(a){Fn(this,2,a)};h.getAffinityVersionOrUndefined=function(){return Kw(this,2)};h.getNextPageToken=function(){return vi(this,4)};var P$=function(a){return Pi(a,5,!0)};
Yv.prototype.getCode=function(){return xi(this,6)};Yv.prototype.setCode=function(a){return Hn(this,6,a)};Yv.prototype.getCodeOrUndefined=function(){return xp(this,6)};var Xtc=new rA(417869898,Hv,Fv);var buc=new rA(417866180,Hv,auc);var Zae=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},Vtc=function(a){if(!a)return 0;a=Array.from(a).map(Zae);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var Htc=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 $ae=function(a){this.leanResponseProcessorConfig_=a},abe=function(a,b,c,d){d=d===void 0?!1:d;for(var e=[],f=$tc(b),g=[],k=m(Ci(b,Gae,1,Di())),l=k.next();!l.done;l=k.next()){l=l.value;var r=Mtc(l);if(r.equals(Ev)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;r=Wtc(l);if(!r)continue;r=Nvc(r)}g.push(String(r));var w=void 0,x=void 0;r={id:r,containerIds:Qtc(l),coalescedKeys:g,isMe:!!l.getIsSelf(),dataSource:Rtc(b,l),provenance:c,isPrimary:Utc((w=l.getDisplayInfo())!=null?w:null),
itemAffinity:Ttc(b),fieldAffinity:Stc((x=l.getDisplayInfo())!=null?x:null),contactMethod:l,person:b};f&&(r.resultExtendedData=f);if(w=cuc(l))r.targetExtendedData=w;l=Ci(l,Eae,15,Di());l.length>0&&(r.preferredSearchTerms=l.map(function(C){return Dl(C,1)}));e.push(r)}e.length&&e.every(function(C){return!C.isPrimary})&&(e[0].isPrimary=!0);return e},bbe=function(a,b,c){var d=Mvc(Itc(Dl(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(l){return abe(a,l,8,!0)}),f=e.filter(function(l){return l&&
l.length}).map(function(l){return String(l[0].id)}),g,k;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:(g=Kw(b,3))!=null?g:void 0,provenance:c,isPrimary:!0,itemAffinity:Stc((k=b.getDisplayInfo())!=null?k:null),fieldAffinity:-Infinity,group:b}];b=m(e);for(c=b.next();!c.done;c=b.next())d.push.apply(d,q(c.value));return d},cbe=function(a,b){var c=Gwd(a.getLabelId()||""),d=a.getMembersList().map(function(g){if(g.hasEmail()&&g.getEmail().getValue()){var k,l;var r={id:Av(g.getEmail().getValue()),
containerIds:Qtc(g),contactMethod:g,provenance:8,isMe:!1,dataSource:1,isPrimary:Utc((k=g.getDisplayInfo())!=null?k:null),itemAffinity:-Infinity,fieldAffinity:Stc((l=g.getDisplayInfo())!=null?l:null)};if(g=cuc(g))r.targetExtendedData=g}else r=null;return r}).filter(Boolean),e=d.map(function(g){return String(g.id)}),f;return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:Stc((f=a.getDisplayInfo())!=null?f:null),fieldAffinity:-Infinity,
isMe:!1,contactLabel:a}].concat(q(d))},dbe=function(a,b,c){switch(b.getDataCase()){case 1:return abe(a,$l(b,Iae,1,Kae),c);case 2:return bbe(a,b.getGroup(),c);case 3:return cbe($l(b,Hae,3,Kae),c);default:return[]}},ebe=function(a,b,c){return Ci(b,N$,1,Di()).flatMap(function(d){return dbe(a,d,c)})};var Zv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Zv,W);Zv.prototype.getSessionState=function(){return X(this,DW,1)};Zv.prototype.setSessionState=function(a){return Ni(this,DW,1,a)};Zv.prototype.hasSessionState=function(){return yi(this,DW,1)};var Kv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kv,W);Kv.prototype.hasNoChanges=function(){return Fi(this,12)};var Jv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Jv,W);Jv.prototype.getEventType=function(){return xi(this,1)};Jv.prototype.setEventType=function(a){return Hn(this,1,a)};var Lv=function(a,b){return Hn(a,2,b)},duc=function(a,b){return Hn(a,3,b)};h=Jv.prototype;h.getErrorType=function(){return xi(this,6)};h.setErrorType=function(a){return Hn(this,6,a)};h.hasErrorType=function(){return jm(this,6)};h.getIdType=function(){return xi(this,8)};
h.setIdType=function(a){Hn(this,8,a)};h.getResultIndex=function(){return Cm(this,9)};h.setResultIndex=function(a){Fn(this,9,a)};h.getToken=function(){return vi(this,10)};h.setToken=function(a){pj(this,10,a)};h.hasToken=function(){return im(this,10)};h.getCacheState=function(){return X(this,l$,11)};h.setCacheState=function(a){return Ni(this,l$,11,a)};h.hasCacheState=function(){return yi(this,l$,11)};h.getQueryLength=function(){return Cm(this,14)};h.setQueryLength=function(a){return Fn(this,14,a)};
h.hasQueryLength=function(){return kn(this,14)};h.getItemCount=function(){return Cm(this,15)};h.setItemCount=function(a){return Fn(this,15,a)};h.hasItemCount=function(){return kn(this,15)};h.getLookupInfo=function(){return X(this,Kv,16)};h.getMutableLookupInfo=function(){return Ji(this,Kv,16)};h.setLookupInfo=function(a){return Ni(this,Kv,16,a)};h.hasLookupInfo=function(){return yi(this,Kv,16)};h.getQueryScope=function(){return xi(this,17)};h.setQueryScope=function(a){return Hn(this,17,a)};
h.hasQueryScope=function(){return jm(this,17)};var fuc=new Map([[0,1],[1,2],[2,3],[3,4]]);var fbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(fbe,W);h=fbe.prototype;h.getLabel=function(){return Ov(this,1)};h.setLabel=function(a){return Hn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getItemCount=function(){return Pw(this,2)};h.setItemCount=function(a){return Fn(this,2,a)};h.hasItemCount=function(){return kn(this,2)};h.getLookupInfo=function(){return X(this,Kv,3)};h.getMutableLookupInfo=function(){return Ji(this,Kv,3)};
h.setLookupInfo=function(a){return Ni(this,Kv,3,a)};h.hasLookupInfo=function(){return yi(this,Kv,3)};h.getQueryLength=function(){return Pw(this,4)};h.setQueryLength=function(a){return Fn(this,4,a)};h.hasQueryLength=function(){return kn(this,4)};h.getQueryScope=function(){return xi(this,5)};h.setQueryScope=function(a){return Hn(this,5,a)};h.hasQueryScope=function(){return jm(this,5)};var gbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(gbe,W);var hbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(hbe,W);h=hbe.prototype;h.getLabel=function(){return Ov(this,1)};h.setLabel=function(a){return Hn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getStatus=function(){return Ov(this,2)};h.setStatus=function(a){return Hn(this,2,a)};h.hasStatus=function(){return jm(this,2)};h.setLatencyUsec=function(a){wn(this,3,a)};h.getResultIndex=function(){return Pw(this,4)};h.setResultIndex=function(a){Fn(this,4,a)};
h.getDataSource=function(){return Ov(this,7)};h.setDataSource=function(a){return Hn(this,7,a)};h.hasDataSource=function(){return jm(this,7)};h.getItemCount=function(){return Pw(this,8)};h.setItemCount=function(a){return Fn(this,8,a)};h.hasItemCount=function(){return kn(this,8)};h.getResources=function(){return X(this,gbe,9)};h.getLookupInfo=function(){return X(this,Kv,10)};h.getMutableLookupInfo=function(){return Ji(this,Kv,10)};h.setLookupInfo=function(a){return Ni(this,Kv,10,a)};
h.hasLookupInfo=function(){return yi(this,Kv,10)};h.getStatusCode=function(){return xi(this,11,2)};h.setStatusCode=function(a){Hn(this,11,a)};h.hasStatusCode=function(){return jm(this,11)};h.getQueryLength=function(){return Pw(this,13)};h.setQueryLength=function(a){return Fn(this,13,a)};h.hasQueryLength=function(){return kn(this,13)};h.getQueryScope=function(){return xi(this,14)};h.setQueryScope=function(a){return Hn(this,14,a)};h.hasQueryScope=function(){return jm(this,14)};var ibe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(ibe,W);h=ibe.prototype;h.getDataSource=function(){return Ov(this,3)};h.setDataSource=function(a){return Hn(this,3,a)};h.hasDataSource=function(){return jm(this,3)};h.getType=function(){return Ov(this,4)};h.setType=function(a){return Hn(this,4,a)};h.hasType=function(){return jm(this,4)};h.getValue=function(){return pn(this,2,mb(1))};h.setValue=function(a){return wn(this,2,a)};
h.hasValue=function(){return on(this,2)};h.getLabel=function(){return Dl(this,1)};h.setLabel=function(a){return pj(this,1,a)};h.hasLabel=function(){return im(this,1)};var jbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(jbe,W);h=jbe.prototype;h.getStatusCode=function(){return xi(this,5,2)};h.setStatusCode=function(a){Hn(this,5,a)};h.hasStatusCode=function(){return jm(this,5)};h.getLabel=function(){return Dl(this,1)};h.setLabel=function(a){return pj(this,1,a)};h.hasLabel=function(){return im(this,1)};h.setCause=function(a){pj(this,2,a)};h.getType=function(){return Ov(this,3)};h.setType=function(a){return Hn(this,3,a)};
h.hasType=function(){return jm(this,3)};var kbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(kbe,W);h=kbe.prototype;h.getType=function(){return Ov(this,3)};h.setType=function(a){return Hn(this,3,a)};h.hasType=function(){return jm(this,3)};h.setLatencyUsec=function(a){wn(this,2,a)};h.getLabel=function(){return Dl(this,1)};h.setLabel=function(a){return pj(this,1,a)};h.hasLabel=function(){return im(this,1)};var lbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(lbe,W);lbe.prototype.getLabel=function(){return Ov(this,1)};lbe.prototype.setLabel=function(a){return Hn(this,1,a)};lbe.prototype.hasLabel=function(){return jm(this,1)};var mbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(mbe,W);h=mbe.prototype;h.getLabel=function(){return Ov(this,1)};h.setLabel=function(a){return Hn(this,1,a)};h.hasLabel=function(){return jm(this,1)};h.getStatus=function(){return Ov(this,2)};h.setStatus=function(a){return Hn(this,2,a)};h.hasStatus=function(){return jm(this,2)};h.setLatencyUsec=function(a){wn(this,3,a)};h.hasErrorCode=function(){return on(this,4)};h.getStatusCode=function(){return xi(this,7,2)};
h.setStatusCode=function(a){Hn(this,7,a)};h.hasStatusCode=function(){return jm(this,7)};var svc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(svc,W);h=svc.prototype;h.getClientInterface=function(){return X(this,c$,1)};h.setClientInterface=function(a){return Ni(this,c$,1,a)};h.getEventType=function(){return Ov(this,3)};h.getEventType_legacyNullable=function(){return Ov(this,3)};h.setEventType=function(a){return Hn(this,3,a)};h.getCount=function(){return X(this,ibe,4)};h.getMutableCount=function(){return Ji(this,ibe,4)};
h.setCount=function(a){return Ni(this,ibe,4,a)};h.getMutableLatency=function(){return Ji(this,kbe,5)};h.setLatency=function(a){Ni(this,kbe,5,a)};h.getError=function(){return X(this,jbe,6)};h.setError=function(a){Ni(this,jbe,6,a)};h.hasError=function(){return yi(this,jbe,6)};var nbe=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;e?a=euc(e):(a=new Jv,duc(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=gae(c.getPeopleApi());this.searchMaxResults_=c.getClient().getSearchMaxResults();d=c.getClient();this.cacheSize_=Cm(d,3,500);this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var f;this.delegatorId_=(f=c.runtimeConfig_.delegatorId_)!=
null?f:""};nbe.prototype.getMetric=function(){return obe(this.trackers_,this.sourceInfo_)};
nbe.prototype.send=function(a){var b=new vae;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new H$).setDevice(1));this.query_.length?b.setMaxResults(this.searchMaxResults_):b.setMaxResults(this.cacheSize_);this.phoneCanonicalizationInference_!=null&&b.setFormattingOptions((new G$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&b.setDelegation(uae(tae(),this.delegatorId_));return this.grpcClient_.autocomplete(b,a)};
nbe.prototype.processResponse=function(a){var b=ebe(this.leanResponseProcessor_,a,this.provenance_),c=new Yv;yi(a,xae,2)&&c.setAffinityVersion(X(a,xae,2).getAffinityVersion());return{data:b,metadata:c}};nbe.prototype.close=function(){};var pbe=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;a=new Jv;duc(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=gae(c.getPeopleApi());this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var g;this.delegatorId_=(g=c.runtimeConfig_.delegatorId_)!=null?g:""};pbe.prototype.getMetric=function(){return obe(this.trackers_,this.sourceInfo_)};
pbe.prototype.send=function(a){var b=this,c=new O$;c.setAffinityType(this.affinity_).setClientInformation((new H$).setDevice(1));Qae(c,this.keys_.map(function(d){return muc(b.type_,d)}).filter(function(d){return!!d}));this.phoneCanonicalizationInference_!=null&&c.setFormattingOptions((new G$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&c.setDelegation(uae(tae(),this.delegatorId_));return this.grpcClient_.lookup(c,a)};
pbe.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=m(Ci(a,Rae,1,Di()));for(var e=a.next();!e.done;e=a.next()){var f=e.value;if(Ri(f,N$,2,Sae))switch(e=dbe(b,$l(f,N$,2,Sae),c),f.getId().getIdCase()){case 1:d.set(f.getId().getEmail_legacyNullable(),e);break;case 2:d.set(f.getId().getPhone_legacyNullable(),e);break;case 3:d.set(f.getId().getProfileId_legacyNullable(),e);break;case 4:var g=d,k=g.set;f=f.getId();f=Tv(f,4,Nv);k.call(g,f,e);break;case 5:d.set(f.getId().getContactId(),
e)}}return{data:d,metadata:new Yv}};pbe.prototype.close=function(){};var qbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(qbe,W);var rbe=new rA(342338249,bxd,qbe);var sbe=function(){};sbe.prototype.write=function(a,b){var c=new qbe;b=Ni(c,Lae,1,b);Iv(a,rbe,b)};sbe.prototype.read=function(a){return(a=a.getExtension(rbe))?X(a,Lae,1):null};var tbe=function(a,b,c){this.grpcClient_=a;this.clientConfig_=b;this.sourceInfo_=euc("");this.trackers_=c;this.affinity_=gae(b.getPeopleApi());var d;this.delegatorId_=(d=b.runtimeConfig_.delegatorId_)!=null?d:""};tbe.prototype.getMetric=function(){return obe(this.trackers_,this.sourceInfo_)};
tbe.prototype.send=function(a){var b=new Vae;b.setAffinityType(this.affinity_).setClientInformation((new H$).setDevice(1));this.delegatorId_&&b.setDelegation(uae(tae(),this.delegatorId_));var c=this.grpcClient_;return $B(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Xae)};tbe.prototype.processResponse=function(){return{data:[],metadata:new Yv}};tbe.prototype.close=function(){};var ube=new mGc;var Q$=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};Q$.prototype.send=function(a){var b=this;return y(function(c){return b.runtimeConfig_.isOffline_()?c.return(ube):c.return(b.delegate_.send(a))})};Q$.prototype.getMetric=function(){return this.delegate_.getMetric()};Q$.prototype.processResponse=function(a){return a===ube?this.offlineResponse_:this.delegate_.processResponse(a)};Q$.prototype.close=function(a){this.delegate_.close(a)};
var vbe={data:[],metadata:P$(new Yv).setCode(14)},wbe={data:new Map,metadata:P$(new Yv).setCode(14)};P$(new Yv).setCode(14);P$(new Yv).setCode(14);P$(new Yv).setCode(14);P$(new Yv).setCode(14);P$(new Yv).setCode(14);P$(new Yv).setCode(14);var xbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(xbe,W);h=xbe.prototype;h.getTimestamp=function(){return pn(this,1)};h.setTimestamp=function(a){return wn(this,1,a)};h.hasTimestamp=function(){return on(this,1)};h.getOwner=function(){return vi(this,2)};h.setOwner=function(a){return pj(this,2,a)};var ybe=new rA(342656659,bxd,xbe);var zbe=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};zbe.prototype.store_=function(a,b){var c=new bxd;Iv(c,ybe,(new xbe).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Abe=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return Yd(d,2),z(d,a.offlineStorage_.fetch(),4);if(d.nextAddress!=2){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(ybe);c=a.offlineMetadata_?rv(a.offlineMetadata_.getOwner()):Ev;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}be(d);return d.return(null)})};
zbe.prototype.send=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return Yd(k,2),z(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==ube){k.jumpTo(5);break}return z(k,Abe(b),6);case 6:return e=k.yieldResult,k.return(e||ube);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=be(k),z(k,Abe(b),7);case 7:return(g=k.yieldResult)?k.return(g):k.return(Promise.reject(f))}})};
zbe.prototype.getMetric=function(){return this.delegate_.getMetric()};zbe.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(Ym(this.offlineMetadata_.getTimestamp()));return a};zbe.prototype.close=function(a){this.delegate_.close(a)};var Bbe=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=vi(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 R7d(b);b=oqc("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new Yae(b);this.offlineDataTransformer_=
new sbe;a=a.getClient();a=Gi(a,22);this.leanResponseProcessor_=new $ae({allowEmptyTargets:a})};
Bbe.prototype.loadRankedItems=function(){var a=new nbe(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new Q$(a,this.config_.runtimeConfig_,vbe);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=Av(e),b=b.getPeopleApi(),b=Cm(b,14,5E3),a=new zbe(a,d,c,e,b))}return T7d(this.dispatcher_,a)};
Bbe.prototype.warmUpServer=function(){var a=new tbe(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new Q$(a,this.config_.runtimeConfig_,vbe);return T7d(this.dispatcher_,a)};Bbe.prototype.loadAutocompleteItems=function(a){var b=this.leanResponseProcessor_;var c=this.grpcPeopleStackClient_,d=this.config_,e=this.trackers_;a=a.getPrefix();b=new nbe(b,c,d,e,a);b=new Q$(b,this.config_.runtimeConfig_,vbe);return T7d(this.dispatcher_,b)};
Bbe.prototype.loadLookupItems=function(a,b){a=new pbe(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new Q$(a,this.config_.runtimeConfig_,wbe);return T7d(this.dispatcher_,a)};var Cbe=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Cbe.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||a.setOrgState(0)};var ouc=new Map([[1,1],[2,2]]);var Dbe=function(a,b,c){this.encryptionSupport_=a;this.certificateStatus_=b;this.certificateExpirySec_=c};Dbe.prototype.getEncryptionSupport=function(){return this.encryptionSupport_};Dbe.prototype.getCertificateStatus=function(){return this.certificateStatus_};Dbe.prototype.getCertificateExpirySec=function(){return this.certificateExpirySec_};var Rvc=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 Dbe(a===4?c?4:3:c?2:1,a,b)};var Svc=function(a,b){this.reachabilityStatus=a;this.clientData=b};Svc.prototype.getReachabilityStatus=function(){return this.reachabilityStatus};Svc.prototype.getClientData=function(){return this.clientData};var ew=function(){this.iconUrl_=this.altText_=""};ew.prototype.getAltText=function(){return this.altText_};ew.prototype.setAltText=function(a){this.altText_=a||"";return this};ew.prototype.getIconUrl=function(){return this.iconUrl_};ew.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var tuc=new Map([[3,3],[1,2],[2,1]]),Ebe=new Map([[2,1],[4,2],[3,3],[1,4]]),Fbe=function(a){this.delegate_=a};
Fbe.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=Pv(b.getValue()),d=a.id.normalizedValue_;c=Rv(a.id).setValue(c).setCanonicalValue(d);if(Ci(b,K$,2,Di()).length||yi(b,Bae,3)){d=1;var e=0;if(Ci(b,K$,2,Di()).length){var f=Ci(b,K$,2,Di())[0],g=Qb(fm(f,1));e=(g==null?null:Ym(g))||e;d=Ebe.get(f.getStatus())||d}if(f=yi(b,Bae,3))f=X(b,Bae,3),f=!!Gv(f,1);d=Rvc(d,e,f)}else d=null;d&&c.setEmailSecurityInfo(d);
yi(b,Cae,4)&&(b=puc(X(b,Cae,4)),c.setOrgState(b));Gv(a.contactMethod,7)&&c.setResultType(2);b=c;break;case 3:c=a.contactMethod.getPhone();b=Pv(c.getCanonicalValue());c=Pv(c.getOriginalValue())||Pv(c.getDisplayValue())||b;b=Rv(a.id).setValue(c).setCanonicalValue(b);break;case 4:b=$l(a.contactMethod,Ktc,4,Bv);b=wuc(a,b);break;default:b=Rv(a.id||Ev)}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=Wsa(fm(e,1,void 0,Qv,uc)),d.call(c,quc(e||"")));a.contactMethod.hasDisplayInfo()&&uuc(b,a.contactMethod.getDisplayInfo());im(a.contactMethod,10)&&b.setTagList([(new ew).setAltText(a.contactMethod.getTypeLabel())]);if(yi(a.contactMethod,Fae,13)){d=X(a.contactMethod,Fae,13);switch(d.getStatus()){case 1:c=1;break;default:c=0}d=d.hasClientData()?d.getClientData():void 0;b.setReachabilityInfo(new Svc(c,d))}a.targetExtendedData&&b.setExtendedData(a.targetExtendedData);a.target=
b}else a.group?zuc(a,a.group.getDisplayInfo()):a.contactLabel&&zuc(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 Gbe=function(a,b){this.metrics_=a;this.state_=new Z9(b);this.source=b;this.label_="total"};Gbe.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};Gbe.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var Hbe=function(a,b){this.metrics_=a;this.state_=new Z9(b)};h=Hbe.prototype;h.start=function(a){this.metrics_.start(this.state_,a)};h.stop=function(a){this.metrics_.stop(this.state_,a)};h.count=function(){this.metrics_.count(this.state_)};h.latency=function(){this.metrics_.latency(this.state_)};h.error=function(){this.metrics_.error(this.state_)};
h.status=function(a,b,c){b=b===void 0?0:b;c=c===void 0?0:c;if(b){var d=this.state_.source();Hn(d,13,b)}c&&(b=this.state_.source(),Fn(b,12,c));this.metrics_.status(this.state_,a)};h.logError=function(a,b){this.metrics_.logError(a,b)};var Ibe=function(a){this.getSessionState=a};Ibe.prototype.attach=function(a,b){var c,d;b=(new Zv).setSessionState((d=b==null?void 0:(c=X(b,Zv,18))==null?void 0:c.getSessionState())!=null?d:this.getSessionState().clone());Ni(a,Zv,18,b);return a};var Jbe=function(){};Jbe.prototype.attach=function(a){return a};var Kbe=new Jbe;var Lbe=function(a,b){b=b===void 0?Kbe:b;this.metrics_=a;this.sessioninfo_=b};Lbe.prototype.error=function(a,b,c){var d=this.metrics_,e=this.sessioninfo_,f=e.attach,g=new Jv;a=g.setEventType(3).setErrorType(a);Hn(a,7,b);return new R9d(d,f.call(e,g,c))};Lbe.prototype.latency=function(a,b){var c=this.metrics_,d=this.sessioninfo_,e=d.attach,f=new Jv,g=f.setEventType(2);Hn(g,5,a);return new q8d(c,e.call(d,f,b))};
Lbe.prototype.count=function(a){var b=this.metrics_,c=this.sessioninfo_,d=c.attach,e=new Jv,f=e.setEventType(1);Hn(f,4,a);return new Q9d(b,d.call(c,e))};Lbe.prototype.api=function(a){return new Gbe(this.metrics_,this.sessioninfo_.attach(a))};var obe=function(a,b){return new Hbe(a.metrics_,a.sessioninfo_.attach(b))},Mbe=function(a,b){return new Lbe(a.metrics_,b)};var Nbe=function(a,b){var c=a.getClient();this.ranker_=new qae(c);this.loader_=new Bbe(a,b);b=pae;b=b===void 0?pae:b;this.targetFactory_=new Cbe(a,new Fbe(b))};var Obe=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var Pbe=function(){this.bits_=[]};h=Pbe.prototype;h.and=function(a){for(var b=new Pbe,c=m(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};h.or=function(a){for(var b=new Pbe,c=m(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=m(a);for(c=a.next();!c.done;c=a.next())b.bits_[c.value]=!0;return b};h.get=function(a){return!!this.bits_[a]};h.set=function(a){this.bits_[a]=!0};h.setAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!0};
h.clear=function(a){this.bits_[a]=!1};h.clearAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!1};Pbe.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 Qbe=function(a,b){this.key=a;this.terms=b};var R$=function(a,b,c){b=b===void 0?"":b;c=c===void 0?new Pbe:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_=b==="\u2026"},Rbe=function(a){return a.items_.map(function(b){return b.key})};R$.prototype.cloneNode=function(a){for(var b=[],c=m(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new R$(b)};
var S$=function(a,b){for(var c=[],d=m(a.prefix_?a.matchIndices_:Cuc(a.items_.length)),e=d.next();!e.done&&(e=b.loadOrSkip(a.items_[e.value].key),e==null||(c.push(e),!b.isDone()));e=d.next());return c};
R$.prototype.search=function(a){var b=this;return a.length?a.map(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e),g=d;if(!g.isExpanded_){for(var k=m(g.prefix_?g.matchIndices_:Cuc(g.items_.length)),l=k.next();!l.done;l=k.next()){var r=g;l=l.value;for(var w=r.prefix_+"\ufdc7",x=m(r.items_[l].terms),C=x.next();!C.done;C=x.next())C=C.value,C.length<=r.prefix_.length||C<r.prefix_||C>w||(C=C.charAt(r.prefix_.length),r.childNodes_[C]||(r.childNodes_[C]=new R$(r.items_,r.prefix_+C)),r.childNodes_[C].matchIndices_.set(l))}g.isExpanded_=
!0}d=d.childNodes_[f]||T$;if(d===T$)break}return d}).reduce(function(c,d){return c.and(d)}):this};var Sbe=function(a){a.isExpanded_=!1;for(var b=m(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&Sbe(c)};R$.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new R$(this.items_,"\u2026",a)};R$.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new R$(this.items_,"\u2026",a)};var T$=new R$([]);
T$.isExpanded_=!0;var Tbe=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};Tbe.prototype.getExpiry=function(){return this.expiry_};Tbe.prototype.getValue=function(){return this.value_};Tbe.prototype.isExpired=function(){return this.expiry_<Date.now()};Tbe.prototype.isStale=function(){return this.stale_<Date.now()};var Ube=function(a){this.shouldEvictItem_=a;this.items_=new Map};h=Ube.prototype;h.size=function(){return this.items_.size};h.clear=function(){this.items_.clear()};h.has=function(a){return this.items_.has(a)};h.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
h.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=m(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};h.delete=function(a){return this.items_.delete(a)};h.compact=function(){for(var a=0,b=m(this.items_),c=b.next();!c.done;c=b.next()){var d=m(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var Vbe=function(){var a=new Ube(function(){return a.size()>1E3});return a};var Wbe=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new Ube(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};h=Wbe.prototype;h.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};h.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};h.has=function(a){return!!this.get(a)};h.size=function(){return this.delegate_.size()};h.clear=function(){this.delegate_.clear()};
h.delete=function(a){return this.delegate_.delete(a)};h.compact=function(){return this.delegate_.compact()};var Xbe=function(a,b){return new Wbe(a,function(c){var d=Date.now()+b;return new Tbe(d,c,d)})};var Duc=function(a){this.delegate_=a};Y(Duc,EW);Duc.prototype.getIsBoosted=function(){return!0};var Ybe=function(a){this.keys_=new Set(a)};Ybe.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};Ybe.prototype.isDone=function(){return!this.keys_.size};var Zbe=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new Ybe(a)};Zbe.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};Zbe.prototype.isDone=function(){return this.delegate_.isDone()};var $be=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var ace=new dw,bce=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=Xbe(Cm(c,31,5),em(c,32,3600)*1E3)};h=bce.prototype;h.getCacheType=function(){return 2};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d,e,f;return y(function(g){if(g.nextAddress==1){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return g.return(ace);d=c.ids.map(function(k){var l=rv(k);return Dwd.includes(l.getType())?k:(l=cce(b.itemResolver_,k))?String(l.id):k});e=new Zbe(d);return z(g,dce(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=g.yieldResult;b.indexes_.set(c.cacheKey,f);return g.return(ace)})};
h.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return S$((this.indexes_.get(b.cacheKey)||T$).search(a.getTerms()),a.getCollector()).map(Euc)};h.index=function(){};h.getName=function(){};var ece=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};ece.prototype.getErrorType=function(){return this.errorType_};var U$=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};h=U$.prototype;h.getCacheType=function(){return this.delegate_.getCacheType()};h.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};h.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
h.index=function(a,b,c){var d=this.trackers_.latency(this.indexingLabel_);d.start();try{this.delegate_.index(a,b,c)}catch(e){throw this.trackers_.error(this.errorLabel_,10).report(),e;}finally{d.stop()}};h.search=function(a){var b=this.trackers_.latency(this.searchLabel_);b.start();try{return this.delegate_.search(a)}catch(c){throw this.trackers_.error(this.errorLabel_,13).report(),c;}finally{b.stop()}};h.getName=function(){return this.delegate_.getName()};var fce=new ece(60,61,34);var gce=function(){};gce.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();Gi(a,30)&&(b=new bce(b,d,a),c=new U$(b,c,fce),e.unshift(c))};var hce=function(){return Date.now()},ice=function(a,b,c){this.staleMillis_=a*1E3;this.expiredMillis_=b*1E3;this.nowFn_=c;this.timestamp_=0};h=ice.prototype;h.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};h.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};h.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};h.getTimestamp=function(){return this.timestamp_};h.setTimestamp=function(a){this.timestamp_=a};
h.markAsFresh=function(){this.timestamp_=this.nowFn_()};var Guc=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),Fuc=new Map([[1,7],[2,5]]);var jce=function(a,b){this.delegate_=a;this.extendedData_=b};Y(jce,EW);jce.prototype.getExtendedData=function(){return this.extendedData_};var kce=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=Ewd(this.group_.getId())?this.members_.length:c;this.resultType_=K8d.get(this.group_.getTargetType())||0};h=kce.prototype;h.getResultType=function(){return this.resultType_};h.getTargetList=function(){return[this.group_]};h.getMemberList=function(){return this.members_};h.getTotalMemberCount=function(){return this.totalMemberCount_};h.getPrimaryTarget=function(){throw Error("Ug");};h.getDisplayName=function(){return""};
h.getDisplayValue=function(){return""};h.getDescription=function(){return""};h.getPhotoUrl=function(){return""};h.getIsBoosted=function(){return!1};h.getMatchInfo=function(){return J8d};h.getExtendedData=function(){return null};var Iuc=function(a,b){this.delegate_=a;this.loggingToken_=b};Y(Iuc,Mwd);Iuc.prototype.getLoggingToken=function(){return this.loggingToken_};var lce=function(a){this.itemResolver_=a};lce.prototype.create=function(a,b){var c=this,d=rv(a);a=cce(this.itemResolver_,a);if(!a)return null;if(xv(d))return d=(a.memberKeys||[]).map(function(g){return c.create(g,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=b===2&&((e=a.coalescedKeys)==null?void 0:e.length)>1?a.coalescedKeys.map(function(g){return cce(c.itemResolver_,g)}).filter(Boolean):[a];return mce(f,d,b)};
var mce=function(a,b,c){var d=[],e=0,f=null,g=null;a=m(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var l=k.target,r=l.getId().equals(b);if(!e||r)e=l.getResultType();l=Juc(l,k.provenance,c);r?(g=void 0,f=(g=k.totalMemberCount)!=null?g:null,d.unshift(l),g=k.resultExtendedData):d.push(l)}b=Wqc(e,d,f);return g?new jce(b,g):b};
lce.prototype.createGroup=function(a,b,c){c=Juc(a.target,a.provenance,c);var d,e=(d=a.totalMemberCount)!=null?d:null;b=ys(new kce(c,b!=null?b:[],e!=null?e:null));return(a=a.resultExtendedData)?new jce(b,a):b};var Kuc=[1,2,3,4,5,6,9,7,8],nce=function(a,b){this.targetFactory_=a;this.resultFactory_=new lce(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=d===void 0?hce:d;this.expiry_=new ice(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=Xbe(Cm(b,6,500),Cm(b,7,43200)*1E3);d=Set;b=xn(b,25,Di());this.idTypes_=new d(b)};nce.prototype.load=function(a,b){var c;return(c=this.resultFactory_.create(a,b))!=null?c:null};
var cce=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};h=nce.prototype;h.getExpiry=function(){return this.expiry_};h.getAffinityVersion=function(){return this.affinityVersion_};h.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(Ym(a.getTimestamp())):this.expiry_.markAsFresh();this.lruStorage_.compact()};
h.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};h.storeItems=function(a,b,c,d){c=c===void 0?!1:c;if(d=d===void 0?"":d){var e=b.findIndex(function(g){return String(g.id)===d});if(e>0){var f=b[e];b.splice(e,1);b.unshift(f)}}c&&b.reverse();b=m(b);for(e=b.next();!e.done;e=b.next())this.store_(a,e.value,c,d)};
h.store_=function(a,b,c,d){if(!this.idTypes_.size||!Dwd.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),g=(b.containerIds||[]).map(String),k=oce(this,a,f);pce(this,a,f,b,c)&&(k(f,b),e=!0);g=m(g);for(var l=g.next();!l.done;l=g.next())l=l.value,pce(this,a,l,b,c)&&(k(l,b),e=!0);b.isMe&&(g=String(Hwd),pce(this,a,g,b,c)&&(k(g,b),e=!0));d&&f!==d&&pce(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var pce=function(a,b,c,d,e){var f=cce(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)?Muc(d)&&!Muc(f)||qce(a,f)<qce(a,d)||Luc(d)<Luc(f)||d.id.getType()===18&&f.id.getType()===18||Nuc(d)>Nuc(f)?!0:!1:String(d.id)===c},qce=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},oce=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 rce=new dw,sce=function(a){this.trieFactory=a;this.root=T$};h=sce.prototype;h.getCacheType=function(){return 2};h.flush=function(){this.root=T$};h.fetch=function(){var a=this;return y(function(b){if(a.root!==T$)return b.return(rce);var c=a.trieFactory,d,e,f=(e=(d=c.trieRoots_.get(1))==null?void 0:Rbe(d))!=null?e:[];c=tce(c,f,!0);a.root=new R$(c);return b.return(rce)})};h.index=function(){};
h.search=function(a){if(a.isSuggestQuery())return[];this.root===T$&&this.fetch(a);return S$(this.root.search(a.getTerms()),a.getCollector()).map(Euc)};h.getName=function(){};var uce=new ece(60,61,34);var vce=function(){};vce.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;if(a=a.clientConfig.getClient().getEnablePersonalizedQueryMatching())$v?(a=$v.getExperimentFlags(),a=X(a,l7d,104)||new l7d):a=new l7d,a=a.getEnablePersonalizedQueryMatching();a&&(b=new U$(new sce(c),b,uce),d.unshift(b))};var Ouc=function(a,b){this.delegate_=a;this.displayValue_=b};Y(Ouc,Mwd);Ouc.prototype.getDisplayValue=function(){return this.displayValue_};var Quc=function(){};Quc.prototype.createFromLookupId=function(a){if(a.getType()!==1||!wwd(a.getOriginalValue()))return null;a=Rv(a).setValue(a.getOriginalValue()).setDataSource(3);return Wqc(a.getResultType(),[a],null)};var wce=function(){};wce.prototype.createFromLookupId=function(){return null};var Ruc=new wce;var xce=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=Suc(e.getClient())};h=xce.prototype;h.isCancelled=function(){return!1};h.getFormat=function(){return this.format};h.getOptions=function(){return this.options};h.queryScope=function(){return this.options.getQueryScope()};
h.getResultFilter=function(){return this.options.getFilter()};h.isDone=function(){return this.remainingIds.size===0};var yce=function(a){return Array.from(a.remainingIds.values())};xce.prototype.hasError=function(){return this.hasErrorCode};
xce.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||Tuc(c.getCode())){var d=new Map,e=this.getResultFilter();a=m(a);for(var f=a.next();!f.done;f=a.next()){var g=m(f.value);f=g.next().value;g=g.next().value;this.notNotifiedIds.delete(String(f));(g=e?e.filterResult(g):g)&&g.getTargetList().length&&(d.set(f,g),this.remainingIds.delete(String(f)))}a=[];b=m(b);for(f=b.next();!f.done;f=b.next())f=f.value,this.notNotifiedIds.delete(String(f)),this.remainingIds.delete(String(f)),(g=this.placeholderFactory.createFromLookupId(f))&&
e&&(g=e.filterResult(g)),g&&g.getTargetList().length?d.set(f,g):a.push(f);d=Puc(d,this.options);Tuc(c.getCode())&&(this.hasErrorCode=!0);e=(new a$d).setCallbackNumber(this.callbackNumber).setIsFirstCallback(this.callbackNumber===0).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new b$d(d,e);this.callbackNumber++;this.listener(d,c)}};var zce=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};zce.prototype.flush=function(){this.indexer.flush()};
zce.prototype.lookup=function(a,b,c,d){var e=this,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:(f=d.getFilter())==null||f.reset(""),g=new xce(a,b,c,d,e.clientConfig),k=new Set,g.queryScope()!==1&&g.queryScope()!==2||k.add(2),g.queryScope()===3&&k.add(1),l=m(e.stages),r=l.next();case 2:if(r.done){x.jumpTo(4);break}w=r.value;if(g.isDone()||g.isCancelled()){x.jumpTo(4);break}if(k.has(w.getStageType())){x.jumpTo(3);break}return z(x,w.lookup(g),3);case 3:r=l.next();x.jumpTo(2);break;case 4:if(!g.isDone()){if(g.queryScope()===
0&&!g.hasError()){var C=e.indexer,H=Array.from(g.notNotifiedIds.values());H=m(H);for(var J=H.next();!J.done;J=H.next())J=String(J.value),C.notFoundIds.set(J,J)}g.notify(new Map,yce(g),k$((new dw).setProvenance(10),!1).setCode(0))}e.indexer.compact();return x.return()}})};var Ace=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=Xbe(Cm(a,10,500),em(a,11,600)*1E3)};h=Ace.prototype;h.compact=function(){this.notFoundIds.compact()};h.flush=function(){this.notFoundIds.clear()};h.store=function(a,b,c,d){if(!Gi(c,5))for(P$(c),b=m(b),c=b.next();!c.done;c=b.next()){var e=m(c.value);c=e.next().value;e=e.next().value;c=String(Mvc(a,String(c)));this.storeItems(e,d,c)}};h.storeItems=function(a,b,c){this.storage.storeItems(2,a,b,c)};
h.load=function(a,b,c){b=this.storage.load(String(a),b);c&&b&&(b=khb(a).filterResult(b));return b};var Bce={ids:[],cacheKey:"",primingTimeoutMillis:0};var Cce=function(){};Cce.prototype.loadOrSkip=function(){return null};Cce.prototype.resultCount=function(){return 0};Cce.prototype.isDone=function(){return!0};var Dce=new Cce;var Ece=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Dce;this.boostKey_=Bce;this.listener_=function(){}};h=Ece.prototype;h.getPrefix=function(){return this.prefix_};h.getTerms=function(){return this.terms_};h.getFormat=function(){return this.format_};h.getCollector=function(){return this.collector_};h.getBoostKey=function(){return this.boostKey_};h.getListener=function(){return this.listener_};h.isDone=function(){return!0};h.isCancelled=function(){return!0};
h.isSuggestQuery=function(){return!0};h.isEmailAddress=function(){return!1};h.queryScope=function(){return 0};h.getResultFilter=function(){return null};h.shouldSkipCache=function(){return!1};var Fce=new Ece;var Gce=function(){this.fetchDone_=Promise.resolve((new dw).setCode(0))};h=Gce.prototype;h.getCacheType=function(){return 0};h.flush=function(){};h.fetch=function(){return this.fetchDone_};h.index=function(){};h.search=function(){return[]};h.getName=function(){};var Hce=new Gce;var Ice=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return b.getCacheType()===1})||Hce;this.prefetched_=a.filter(function(b){return b.getCacheType()===2||b.getCacheType()===1});this.lazyLoaded_=a.filter(function(b){return b.getCacheType()===3})};
Ice.prototype.prefetch=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,b.primary_.fetch(a),2);if(k.nextAddress!=3){c=k.yieldResult;if(c.getCode()!==0)return k.return(c);d=m(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();g=b.prefetched_.filter(function(l){return l!==b.primary_}).map(function(l){l.flush();return l.fetch(a)});return g.length?z(k,Promise.all(g),3):k.jumpTo(3)}return k.return(c)})};
Ice.prototype.warmUpSession=function(a){var b=this;if(a.queryScope()===1)return Promise.resolve([(new dw).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});a.queryScope()!==2&&c.push.apply(c,q(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Jce=function(a){var b=[a.primary_].concat(q(a.prefetched_.filter(function(d){return d!==a.primary_})),q(a.lazyLoaded_)).reverse();b=m(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Kce=function(a,b){var c=[];a=m(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,q(d.search(b)))}return c},Mce=function(a,b,c){var d,e,f,g,k;return y(function(l){if(l.nextAddress==1){if(b.queryScope()===2)return l.return();
d=a.lazyLoaded_.filter(function(r){return!b.shouldSkipCache(r.getName())});e=d[d.length-1];f=m(d);g=f.next()}if(l.nextAddress!=3){if(g.done)return l.jumpTo(0);k=g.value;return b.isDone()||b.isCancelled()?l.return():z(l,Lce(k,b,c,e===k),3)}g=f.next();return l.jumpTo(2)})},Lce=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return b.queryScope()===1?(e=k$((new dw).setProvenance(6).setCode(0),!1),g.jumpTo(2)):z(g,a.fetch(b),3);g.nextAddress!=2&&(e=g.yieldResult);if(b.isCancelled())return g.return();
f=a.search(b);c(f,e,d);ce(g)})};var Nce=function(a,b,c,d,e){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=e;this.lookupCache_=d;this.prefixSearch_=c;this.sessionWarming_=this.cacheWarming_=null};h=Nce.prototype;h.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};h.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
h.warmUpCache=function(a){Oce(this,Fce);return this.cacheWarming_&&(a||this.storage_.getExpiry().isExpired())?this.cacheWarming_:Promise.resolve(n$(m$((new l$).setSource(k$(new dw,!1).setProvenance(1).setCode(0)),V$(this)),V$(this)))};
h.warmUpSession=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:c=m$(new l$,V$(b));Oce(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return z(k,b.cacheWarming_,2);case 2:return Yd(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),z(k,b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(l){return l.getProvenance()===2})||(new dw).setProvenance(2).setCode(0),k.return(n$(c.setSource(e),V$(b)));case 5:Zd(k);b.sessionWarming_=
null;ae(k,0);break;case 4:return f=be(k),g=f instanceof dw?f:(new dw).setProvenance(2).setCode(13),k.return(Promise.reject(n$(c.setSource(g),V$(b))))}})};
h.search=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:Pce(b);Yd(k,2);d=V$(b);Oce(b,a);if(!a.isSuggestQuery()){k.jumpTo(4);break}if(!b.cacheWarming_){k.jumpTo(5);break}e=b.storage_.getExpiry().isExpired();if(!e){k.jumpTo(5);break}return z(k,b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return z(k,b.sessionWarming_,4);case 4:return c||(c=n$(m$((new l$).setSource(k$(new dw,!1).setProvenance(1).setCode(0)),d),V$(b)),Oce(b,
a)),z(k,Qce(b,a,c),10);case 10:bt(k,0);break;case 2:f=be(k);if(a.isCancelled())return k.return();f instanceof l$?c=f:(g=f instanceof dw?f:(new dw).setCode(13),n$(c.setSource(g),V$(b)));a.getListener()(new s$([],(new q9d).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));ce(k)}})};
var Qce=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){if(b.isCancelled())return k.return();d=Kce(a.prefixSearch_,b);e=(new q9d).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new s$(d,e));if(e.getIsLastCallback())return k.return();f=!1;return z(k,Mce(a.prefixSearch_,b,function(l,r,w){r=(new q9d).setIsLastCallback(w).setQuery(b.getPrefix()).setCode(r.getCode()).setCacheState(n$(m$((new l$).setSource(r),
xp(c,2)),V$(a)));b.getListener()(new s$(l,r));r.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(g=(new q9d).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(n$(m$((new l$).setSource((new dw).setProvenance(10).setCode(0)),xp(c,2)),V$(a))),b.getListener()(new s$([],g)));ce(k)})};
Nce.prototype.lookup=function(a,b,c){var d=this;Pce(this);Oce(this,Fce);var e=m$(new l$,V$(this));this.lookupCache_.lookup(a,xi(this.clientInfo_,17,1),function(f,g){e.setSource(g);n$(e,V$(d));f.getMetadata().setCacheState(e);b(f)},c)};
var Oce=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&Rce(a),!a.cacheWarming_)){var c=V$(a);a.cacheWarming_=new Promise(function(d,e){var f,g,k,l;return y(function(r){switch(r.nextAddress){case 1:return f=m$(new l$,c),Yd(r,2,3),z(r,a.prefixSearch_.prefetch(b),5);case 5:g=r.yieldResult,n$(f,V$(a)).setSource(g),d(f);case 3:Zd(r);a.cacheWarming_=null;ae(r,0);break;case 2:k=be(r),l=k instanceof dw?k:(new dw).setCode(13),
n$(f,V$(a)).setSource(l),e(f),r.jumpTo(3)}})})}},V$=function(a){return a.storage_.getExpiry().getStatus()},Rce=function(a){Jce(a.prefixSearch_);a.lookupCache_.flush();a.storage_.flush()},Pce=function(a){var b=V$(a)===1?1:2;a.trackers_.count(b).increment()};var Yuc={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"};var $uc=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),Zuc=/^[<"']|[>"']$/g,Wuc=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"),Sce=/[^a-z0-9]+/gi,Xuc=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var Tce=function(a){this.itemResolver_=a},Vce=function(a,b){if(!b.preferredSearchTerms)return[];a=avc(Uce(a,b));var c=avc(b.preferredSearchTerms);return a.filter(function(d){return c.some(function(e){return d.startsWith(e)})})},Uce=function(a,b,c){c=c===void 0?[]:c;var d=b.target,e=d.getName();e&&(c.push(e.getDisplayName()),c.push(e.getGivenName()),c.push(e.getFamilyName()));if(e=d.getDisplayValue())switch(d.getTargetType()){case 2:case 7:var f=c.push,g=f.apply,k=e.split(Sce).filter(Boolean),l=k.length-
1;if(l>0){var r=k.join(".");k.push(k.join("-"));for(k.push(r);l>0;l--)k[l-1]+=k[l]}k.push(e);k.push(e.replace($uc,""));e[0]==="+"&&k.push("+"+k[0]);g.call(f,c,q(k));break;default:c.push(e)}b.preferredSearchTerms&&c.push.apply(c,q(b.preferredSearchTerms));if(!c.length&&b.memberKeys&&b.memberKeys.length&&d.getTargetType()!==10)for(b=m(b.memberKeys),d=b.next();!d.done;d=b.next())(d=cce(a.itemResolver_,d.value))&&Uce(a,d,c);return c};var Wce=new ytc,Xce=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new Tce(a);this.trieRoots_=new Map},dce=function(a,b,c,d){var e=(a.trieRoots_.get(c)||T$).cloneNode(b);if(b.isDone())return a.trackers_.count(120).increment(),Promise.resolve(e);var f=a.trackers_.latency(95);f.start();var g=new Promise(function(k){var l=$be(b).map(rv);a.lookupCache_.lookup(l,c,function(r){var w=Array.from(r.getResults().keys(),String);w=tce(a,w,!1);Array.prototype.push.apply(e.items_,
w);Sbe(e);r.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},Wce)});return Aqc(g,e,d)},Yce=function(a,b){a=tce(a,b,!1);return new R$(a)},tce=function(a,b,c){var d=[];b=m(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=cce(a.itemResolver_,e);if(f){if(c){if(f=Vce(a.indexer_,f),f.length<1)continue}else f=avc(Uce(a.indexer_,f));d.push(new Qbe(e,f))}}return d};var Zce=function(a,b){this.target_=a;this.displayName_=b;this.similarTargets_=[]};Zce.prototype.getSimilarIds=function(){return this.similarTargets_.map(function(a){return a.getId()})};
Zce.prototype.getDisambiguationLabel=function(){var a="";if(this.similarTargets_.length){var b=bvc(this.target_.getDisplayValue());a=this.similarTargets_.some(function(d){return bvc(d.getDisplayValue())===b});var c=this.similarTargets_.some(function(d){return bvc(d.getDisplayValue())!==b});a=a&&c?this.target_.getDisplayValue():c?b:cvc(this.target_.getDisplayValue())}return a};
Zce.prototype.filterResult=function(a){var b=this,c=Xv(this.target_.getDisplayValue());this.similarTargets_.push.apply(this.similarTargets_,q(a.getTargetList().filter(function(d){return d.getTargetType()===1&&Xv(d.getDisplayValue())!==c&&d.getName()&&Xv(d.getName().getDisplayName())===b.displayName_})));return null};Zce.prototype.reset=function(){this.similarTargets_=[]};var dvc=/\S+@\S+\.\S+/,evc=/<|>|\(|\)/g;var $ce=function(){this.queryId_=0};$ce.prototype.getQueryId=function(){return this.queryId_};var ade=function(a,b){var c=new $ce;this.cache_=a;this.queryFactory_=b;this.querySession_=c};
ade.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 $9d("",(new Z9d).setCode(0).setCacheState((new l$).setSource(k$(new dw,!1).setProvenance(8).setCode(0))))):b.getTargetCount()>25||fvc(e,a.getDisplayValue())?Promise.resolve(new $9d(a.getDisplayValue(),(new Z9d).setCode(0).setCacheState((new l$).setSource(k$(new dw,
!1).setProvenance(8).setCode(0))))):new Promise(function(f){var g=new Zce(a,Xv(e)),k=bde(c.queryFactory_,e,c.querySession_,(new $u).setFilter(g).setQueryScope(b.getQueryScope()),function(l){if(l.getMetadata().getIsLastCallback()){var r=g.getDisambiguationLabel(),w=new Z9d,x=g.getSimilarIds();w.similarIds_=x;f(new $9d(r,w.setCode(l.getMetadata().getCode()).setCacheState(l.getMetadata().getCacheState()||new l$)))}});c.cache_.search(k)})};var cde=function(a){this.delegate=a};h=cde.prototype;h.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};h.warmUpCache=function(a){return this.delegate.warmUpCache(a)};h.warmUpSession=function(a){var b=this;return y(function(c){return c.return(b.delegate.warmUpSession(a))})};h.search=function(a){var b=this;return y(function(c){return c.return(b.delegate.search(a))})};
h.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};var dde=function(){this.delegate=Rwd};dde.prototype.filterResult=function(a){return this.delegate.filterResult(a)};dde.prototype.reset=function(a){this.delegate.reset(a)};var ede=function(a,b){a.delegate=b!=null?b:Rwd};var fde=function(a){this.delegate=a};h=fde.prototype;h.getPrefix=function(){return this.delegate.getPrefix()};h.getTerms=function(){return this.delegate.getTerms()};h.getFormat=function(){return this.delegate.getFormat()};h.getCollector=function(){return this.delegate.getCollector()};h.getBoostKey=function(){return this.delegate.getBoostKey()};h.getListener=function(){return this.delegate.getListener()};h.isDone=function(){return this.delegate.isDone()};h.isCancelled=function(){return this.delegate.isCancelled()};
h.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};h.isEmailAddress=function(){return this.delegate.isEmailAddress()};h.queryScope=function(){return this.delegate.queryScope()};h.getResultFilter=function(){return this.delegate.getResultFilter()};h.shouldSkipCache=function(a){return this.delegate.shouldSkipCache(a)};var gde=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};gde.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};gde.prototype.resultCount=function(){return this.count_};gde.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var hde=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();c.limit>0&&(d=new gde(d,c.limit));this.collector=d;this.listener=function(g){var k=g.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(g)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?mhb.apply(null,q(d)):null;var f;this.scope=(f=c.scope)!=null?f:a.queryScope()};Y(hde,fde);h=hde.prototype;h.getCollector=function(){return this.collector};
h.getListener=function(){return this.listener};h.isDone=function(){return this.collector.isDone()};h.getResultFilter=function(){return this.resultFilter};h.queryScope=function(){return this.scope};var ide=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};Y(ide,cde);
ide.prototype.search=function(a){var b=this,c,d,e,f,g,k;return y(function(l){switch(l.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(r){return!c.has(r.visibility)}),e=d.map(function(r,w){return new hde(a,b.originalFilter,r,w===d.length-1)}),f=m(e),g=f.next();case 2:if(g.done){l.jumpTo(4);break}k=g.value;if(a.isCancelled()||a.isDone()){l.jumpTo(4);break}ede(b.filterInterceptor,k.getResultFilter());return z(l,b.delegate.search(k),
3);case 3:g=f.next();l.jumpTo(2);break;case 4:return l.return()}})};var jde=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=avc([b]);this.id_=Av(b);this.listener_=function(e){var f=e.getResults().map(function(g){if(d.id_.equals(g.getPrimaryTarget().getId())&&g.getDisplayName()!==c){var k=(new ruc).setDisplayName(c),l=g.getPrimaryTarget();g=ghb(g,new Nwd(l,k))}return g});e=new s$(f,e.getMetadata());a.getListener()(e)}};Y(jde,fde);jde.prototype.getPrefix=function(){return this.query_};jde.prototype.getTerms=function(){return this.terms_};
jde.prototype.getListener=function(){return this.listener_};var kde=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new $ce;this.clientInfo_=c};h=kde.prototype;h.warmUpSession=function(a){a=bde(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};h.suggest=function(a,b){a=bde(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
h.search=function(a,b,c){a=bde(this.queryFactory_,a,this.querySession_,c,b);Gi(this.clientInfo_,28)&&(b=a.getPrefix(),b.includes("<")&&(c=hv(b),c.isValid()||(c=hv(b+">")),a=c.isValid()&&c.getName()?new jde(a,c.address,c.getName()):a));this.cache_.search(a)};h.cancel=function(){++this.querySession_.queryId_};h.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
h.getReporter=function(){throw Error("yg");};h.getSessionState=function(){throw Error("yg");};var lde=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=Gi(c,34)?function(e){var f=d.cache_,g=e.slots_;if(g.length){var k=e.getFilter(),l=new dde;e.setFilter(l);e=new ide(f,g,l,k)}else e=f;return e}:function(){return d.cache_}};lde.prototype.warmUpCache=function(){return this.cache_.warmUpCache(!1)};lde.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
lde.prototype.disambiguate=function(a,b){return(new ade(this.cache_,this.queryFactory_)).disambiguate(a,b)};lde.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new kde(a,this.queryFactory_,this.clientInfo_)};var mde=function(){};h=mde.prototype;h.getCacheType=function(){return 3};h.flush=function(){};h.fetch=function(){return y(function(a){return a.return(k$(new dw,!1).setProvenance(12).setCode(0))})};h.index=function(){};h.search=function(a){return a.isEmailAddress()?(a=a.getCollector().loadOrSkip(String(Av(a.getPrefix()))))?[a]:[]:[]};h.getName=function(){};var nde=function(){};nde.prototype.configure=function(a){var b=a.prefixCaches;a=a.clientConfig.getClient();Gi(a,21)&&b.push(new mde)};var ode=function(a,b,c,d,e,f,g,k){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=g;this.listener_=gvc(this,f);this.isEmailAddress_=null;this.selectedCustomProviderNames_=k?new Set(k):null};h=ode.prototype;h.getPrefix=function(){return this.prefix_};h.getTerms=function(){return this.terms_};h.getFormat=function(){return this.delegate_.getFormat()};h.getCollector=function(){return this.collector_};h.getBoostKey=function(){return this.boostKey_};
h.getListener=function(){return this.listener_};h.isDone=function(){return this.collector_.isDone()};h.isCancelled=function(){return this.delegate_.isCancelled()};h.isSuggestQuery=function(){return!this.prefix_};h.isEmailAddress=function(){this.isEmailAddress_===null&&(this.isEmailAddress_=wwd(this.prefix_));return this.isEmailAddress_};h.queryScope=function(){return this.delegate_.queryScope()};h.getResultFilter=function(){return this.filter_};
h.shouldSkipCache=function(a){return!(!this.selectedCustomProviderNames_||!a||this.selectedCustomProviderNames_.has(a))};var pde=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};pde.prototype.getFormat=function(){return this.format_};pde.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};pde.prototype.queryScope=function(){return this.queryScope_};var qde=function(){this.foundKeys_=new Set};Y(qde,FW);qde.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};qde.prototype.has=function(a){return this.foundKeys_.has(a)};qde.prototype.add=function(a){this.foundKeys_.add(a)};qde.prototype.reset=function(){this.foundKeys_.clear()};var rde=function(a){this.delegate_=a;this.filter_=new qde};rde.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=m(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};rde.prototype.resultCount=function(){return this.delegate_.resultCount()};rde.prototype.isDone=function(){return this.delegate_.isDone()};var sde=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};sde.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};sde.prototype.resultCount=function(){return this.delegate_.resultCount()};sde.prototype.isDone=function(){return this.delegate_.isDone()};var tde=function(a,b){this.storage_=a;this.format_=b};tde.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};tde.prototype.resultCount=function(){return 0};tde.prototype.isDone=function(){return!1};var ude=[198,230,306,307,338,339],vde=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)"+Xr(b),"g")})},hvc=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=Xv(b),e=d.indexOf("@"),f=e<0?-1:d.indexOf(".",e);a=m(a.matchers_);for(var g=a.next();!g.done;g=a.next()){g=g.value;g.lastIndex=0;for(var k=g.exec(d);k;k=
g.exec(d)){k=k.index;if((e>0||e===0&&f>e)&&k>e)break;c.push([k,g.lastIndex])}}c.sort(function(l,r){return l[0]-r[0]});for(e=c.length-1;e>0;e--)f=c[e-1],a=c[e],f[1]>=a[0]&&(f[1]=a[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(f=0;f<b.length;f++)a=b.codePointAt(f),a>65535||a>=768&&a<=879?(d.push(f),f++):ude.includes(a)&&e.push(f);b=m(c);for(f=b.next();!f.done;f=b.next()){f=f.value;a=m(d);for(g=a.next();!g.done;g=a.next())g=g.value,g<f[0]&&f[0]++,g<f[1]&&f[1]++;a=m(e);for(g=a.next();!g.done;g=
a.next())g=g.value,g<f[0]&&f[0]--,g<f[1]&&f[1]--}}return c};var ivc=function(a,b){this.start_=a;this.end_=b};ivc.prototype.getStart=function(){return this.start_};ivc.prototype.getEnd=function(){return this.end_};var jvc=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};jvc.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};jvc.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};jvc.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var wde=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new wde(c,b)});this.matchInfo_=null};Y(wde,EW);wde.prototype.getMemberList=function(){return this.memberList_};wde.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=((a=this.getDelegate().getPrimaryTarget().getName())==null?void 0:a.getGivenName())||"";this.matchInfo_=kvc(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var xde=function(a,b){this.delegate_=a;this.matcher_=new vde(b)};xde.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new wde(a,this.matcher_):null};xde.prototype.resultCount=function(){return this.delegate_.resultCount()};xde.prototype.isDone=function(){return this.delegate_.isDone()};var yde=function(a){var b=new Quc;this.delegate=a;this.placeholderFactory=b};yde.prototype.loadOrSkip=function(a){var b;return(b=this.delegate.loadOrSkip(a))!=null?b:this.placeholderFactory.createFromLookupId(rv(a))};yde.prototype.resultCount=function(){return this.delegate.resultCount()};yde.prototype.isDone=function(){return this.delegate.isDone()};var zde=/\s+/g,Ade=function(a,b){this.clientInfo_=a;this.storage_=b},bde=function(a,b,c,d,e){var f=avc([b]);b=(b||"").replace(zde," ").trim();var g=!f.length;var k=a.clientInfo_;k=g?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();var l=a.clientInfo_;g=g?d.getSuggestMaxResults()||l.getSuggestMaxResults():d.getSearchMaxResults()||l.getSearchMaxResults();var r=d.boostIds_;l=d.primingTimeoutMillis_;if(r.length){r=r.map(String);var w=Vtc(r)+":"+r.length;l={ids:r,cacheKey:w,
primingTimeoutMillis:l}}else l=Bce;r=d.getFilter();w=b;var x=new tde(a.storage_,k);Gi(a.clientInfo_,21)&&wwd(w)&&(x=new yde(x));r&&(x=new sde(x,r,w));x=new rde(x);x=new gde(x,g);a=f.length?new xde(x,f):x;g=d.getQueryScope();c=new pde(k,c,g);return new ode(c,b,f,a,l,e,r,d.selectedCustomProviderNames_)};var Bde=function(a){this.fetcher=a};Bde.prototype.getStageType=function(){return 2};Bde.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:c=mvc(yce(a)),d=m(c),e=d.next();case 2:if(e.done){x.jumpTo(4);break}f=e.value;g=m(f);k=g.next().value;l=g.next().value;r=k;w=l;if(!r){x.jumpTo(3);break}return z(x,b.fetcher.fetch(w,r,a.getFormat(),function(C,H){a.notify(C,[],H)},a.getOptions()),3);case 3:e=d.next();x.jumpTo(2);break;case 4:return x.return()}})};var Cde=function(a,b){this.delegate=a;this.maxLookupChunkSize=mae(b)};Cde.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,l;return y(function(r){switch(r.nextAddress){case 1:var w=f.maxLookupChunkSize;if(a.length)if(a.length<=w)w=[a];else{for(var x=[],C=0;C<a.length;C+=w){var H=a.slice(C,C+w);H.length&&x.push(H)}w=x}else w=[];g=m(w);k=g.next();case 2:if(k.done){r.jumpTo(4);break}l=k.value;return z(r,f.delegate.fetch(l,b,c,d,e),3);case 3:k=g.next();r.jumpTo(2);break;case 4:return r.return()}})};var Dde=function(a){this.qos=a};Dde.prototype.getIndex=function(){return String(this.qos)};var Ede=new Dde(1),Fde=new Dde(2);var Gde=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Gde.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,l,r,w,x,C,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:return g=b===3?4:3,k=k$((new dw).setProvenance(g),!0).setCode(0),Yd(V,2),z(V,f.loader.loadLookupItems(b,a.map(function(ca){return ca.getOriginalValue()}),Fde),4);case 4:l=V.yieldResult;l.metadata.getCode()&&k.setCode(l.metadata.getCode());r=e.getQueryScope()===3;try{f.indexer.store(b,l.data,l.metadata,r)}catch(ca){f.trackers.error(21,10).report(),k.setCode(13)}bt(V,3);break;case 2:w=
be(V),x=Number(w),k.setCode(isFinite(x)&&x?x:13);case 3:C=new Map;H=m(a);for(J=H.next();!J.done;J=H.next())O=J.value,(R=f.indexer.load(O,c,e.getUseOriginalDisplayValue()))&&C.set(O,R);d(C,k);return V.return()}})};var Hde=function(a){this.indexer=a};Hde.prototype.getStageType=function(){return 1};Hde.prototype.lookup=function(a){var b=this,c,d,e,f,g,k;return y(function(l){c=new Map;d=[];e=m(yce(a));for(f=e.next();!f.done;f=e.next())if(g=f.value,k=b.indexer.load(g,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))c.set(g,k);else{var r=b.indexer;(Iwd(g)?r.notFoundIds.get(String(g)):1)&&d.push(g)}a.notify(c,d,k$((new dw).setProvenance(6),!1).setCode(0));return l.return()})};var Ide=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"),Jde=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.indexes_=Xbe(Cm(e,8,250),em(e,9,3600)*1E3);this.notFound_=Xbe(Cm(e,10,500),em(e,11,600)*1E3)};h=Jde.prototype;h.getCacheType=function(){return 3};h.flush=function(){this.indexes_.clear();this.notFound_.clear()};
h.fetch=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=k$(new dw,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(Ede).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(k$(c,!1));Yd(f,2);return z(f,b.loader_.loadAutocompleteItems(a,Fde),4);case 4:d=f.yieldResult;bt(f,3);break;case 2:return e=be(f),f.return(c.setCode(isFinite(e)?e:13));case 3:try{b.index(a,d.data,d.metadata)}catch(g){return f.return(c.setCode(13))}return f.return(c)}})};
h.search=function(a){if(a.isSuggestQuery())return[];var b=a.getPrefix(),c=this.indexes_.get(b);if(c)return S$(c.search([]),a.getCollector());if(this.notFound_.has(b)||a.queryScope()===3)return[];for(var d=b.length-1;!c&&d>0;d--){c=b.substr(0,d);if(this.notFound_.has(c))return[];c=this.indexes_.get(c)}return c?S$(c.search(a.getTerms()),a.getCollector()):[]};
h.index=function(a,b,c){if(!Gi(c,5))if(P$(c),b.length){c=rae(this.ranker_,b,1);var d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=Yce(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};h.canSkipFetch_=function(a){if(a.queryScope()===3)return!1;var b=a.getPrefix();if(this.indexes_.has(b)||this.notFound_.has(b))return!0;if(a.isEmailAddress())return!1;for(a=b.length-1;a>0;a--){var c=b.substr(0,a);if(c.match(Ide))break;if(this.notFound_.has(c))return!0}return!1};
h.getName=function(){};var Kde=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.coalescedSortOrder_=e;this.indexes_=new Map;this.trieFactory_.trieRoots_=this.indexes_};h=Kde.prototype;h.getCacheType=function(){return 1};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=k$(new dw,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?Fde:Ede,Yd(g,2),z(g,b.loader_.loadRankedItems(d),4);case 4:e=g.yieldResult;bt(g,3);break;case 2:return f=be(g),g.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return g.return(c)}})};
h.search=function(a){return a.isSuggestQuery()||a.getTerms().length?S$((this.indexes_.get(a.getFormat())||T$).search(a.getTerms()),a.getCollector()):[]};h.index=function(a,b,c){if(!Gi(c,5)){P$(c);a=this.coalescedSortOrder_!==1?rae(this.ranker_,b,this.coalescedSortOrder_):null;var d=rae(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=Yce(this.trieFactory_,d);c=a?Yce(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};
h.getName=function(){};var Lde=new ece(27,32,33),Mde=new ece(24,23,20);var Nde=function(){};Nde.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,g=a.prefixCaches,k=a.lookupStages,l=a.loaderFactory.ranker_,r=a.clientConfig.getClient();if(Cm(r,3,500)>0){var w=xi(r,19,1);w=new Kde(e,l,f,c,w);w=new U$(w,b,Mde);g.push(w)}k.push(new Hde(d));r.getSearchMaxResults()>0&&(c=new Jde(e,l,f,c,r),b=new U$(c,b,Lde),g.push(b));g=new Gde(a.trackers,a.loader,a.indexer);g=new Cde(g,a.clientConfig);k.push(new Bde(g))};var Ode=function(a){this.delegate=a};h=Ode.prototype;h.warmUpSession=function(a){return this.delegate.warmUpSession(a)};h.suggest=function(a,b){this.delegate.suggest(a,b)};h.search=function(a,b,c){this.delegate.search(a,b,c)};h.cancel=function(){this.delegate.cancel()};h.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};h.getReporter=function(a){return this.delegate.getReporter(a)};
h.getSessionState=function(){return this.delegate.getSessionState()};var Pde=function(a){this.delegate=a};Pde.prototype.warmUpCache=function(){return this.delegate.warmUpCache()};Pde.prototype.disambiguate=function(a,b){return this.delegate.disambiguate(a,b)};Pde.prototype.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};Pde.prototype.beginSession=function(a){return this.delegate.beginSession(a)};var Qde=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};Qde.prototype.getId=function(){return this.id_};Qde.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var Rde=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};h=Rde.prototype;h.getIds=function(){return this.ids_};h.getIdType=function(){return this.idType_};h.getOptions=function(){return this.options_};
h.getKeys=function(){var a=this;return this.getIds().map(function(b){return new Qde(a.getIdType(),b,a.getOptions())})};h.setIds=function(a){this.ids_=a;return this};h.setIdType=function(a){this.idType_=a};h.setOptions=function(a){this.options_=a;return this};h.clone=function(){var a=this.getIdType(),b=this.getIds(),c=this.getOptions();return new Rde(a,b,c)};var Sde=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new KKc;this.isSent_=!1};Sde.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)}};Sde.prototype.promise=function(){return this.resolver_.promise};
Sde.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=m(a.getIds());for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};var Tde=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=mae(c);this.lastRequestCreationTime_=0};
Tde.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 Sde(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Gs(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},d>30?0:30)}return this.batchedRequest_.promise()};var Ude=function(a,b){this.delegate_=a;this.inflightRequests_=Vbe();this.tracker_=b};
Ude.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=m(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.getIndex();this.inflightRequests_.has(g)?c.add(this.inflightRequests_.get(g)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=a.clone().setIds(d);var l=new Sde(this.delegate_,k);l.send();c.add(l);a=m(k.getKeys());for(d=a.next();!d.done;d=
a.next())this.inflightRequests_.set(d.value.getIndex(),l);l.promise().catch(function(){}).finally(function(){for(var r=m(k.getKeys()),w=r.next();!w.done;w=r.next())b.inflightRequests_.delete(w.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(r){return r.promise()})).then(function(r){return l?l.promise().then(function(w){return nvc(r,w.metadata)}):nvc(r)})};var Vde=function(a){this.peopleLoader_=a};Vde.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var Wde=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};Wde.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new Vde(this.peopleLoader_);b=new Tde(b,this.tracker_,this.clientConfig_);b=new Ude(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var Xde=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new Wde(this.delegate_,this.trackers_,c)},Yde=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),g.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);$d(g,2);return z(g,f,4)}if(g.nextAddress!=2)return g.return(g.yieldResult);Zd(g);a.searchRequests_.delete(e);return ae(g,0)})};
Xde.prototype.loadRankedItems=function(a){var b=this;return Yde(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};Xde.prototype.warmUpServer=function(a){var b=this;return Yde(this,82,"",function(){return b.delegate_.warmUpServer(a)})};Xde.prototype.loadAutocompleteItems=function(a,b){var c=this;return Yde(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};Xde.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new Rde(a,b,c))};var Zde=function(){return Date.now()},$de=function(a,b,c){this.delegate_=a;this.nowFn_=c;a=b.getClient();this.cacheFlushRateMillis_=em(a,14,300)*1E3;b=b.getClient();this.serverWarmupRateMillis_=em(b,13,60)*1E3;this.lastServerWarmup_=this.lastCacheFlush_=0};$de.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)};
$de.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)};$de.prototype.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};$de.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};var aee=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};aee.prototype.suggest=function(a){a=a===void 0?this.listener_:a;this.delegate_.suggest(a,this.options_);return this};aee.prototype.search=function(a,b){b=b===void 0?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};aee.prototype.cancel=function(){this.delegate_.cancel();return this};aee.prototype.getReporter=function(a){a=a===void 0?D9d:a;return this.delegate_.getReporter(a)};var bee=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=Ewd(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};Y(bee,EW);bee.prototype.getMemberList=function(){return this.members_};bee.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var cee=function(a,b){this.filter_=a;this.filterEmptyExplodingGroups_=b};cee.prototype.filterResult=function(a){var b=this;if(!Ewd(a.getPrimaryTarget().getId()))return a;var c=a.getMemberList().map(function(d){return b.filter_.filterResult(d)}).filter(Boolean);return this.filterEmptyExplodingGroups_&&c.length===0?null:a.getMemberList().every(function(d,e){return d===c[e]})?a:ys(new bee(a,c))};cee.prototype.reset=function(a){this.filter_.reset(a)};
var ovc=function(a,b){this.filter_=mhb(a,new cee(a,b))};ovc.prototype.filterResult=function(a){return this.filter_.filterResult(a)};ovc.prototype.reset=function(a){this.filter_.reset(a)};var dee=function(a){this.delegate_=a};dee.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof l$&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};dee.prototype.disambiguate=function(a,b){b=b===void 0?new W9d:b;return this.delegate_.disambiguate(a,b)};dee.prototype.lookup=function(a,b,c){c=c===void 0?new ytc:c;c.setFilter(pvc(c.getFilter(),!0));this.delegate_.lookup(a,b,c);return this};
dee.prototype.beginSession=function(a,b){b=b===void 0?new $u:b;b=b.clone();b.setFilter(pvc(b.getFilter(),b.filterEmptyExplodingGroups_));var c=this.delegate_.beginSession(b);return new aee(c,a,b)};var eee=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]]),fee=new Map([[2,13],[3,6]]),gee=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 uvc=new Map([[1,1],[2,3],[3,5]]),hee=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[12,21],[10,20]]),iee=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[12,21],[10,20]]),jee=function(a,b){this.logContext_=yvc(a,b)};h=jee.prototype;h.getLogContext=function(){return this.logContext_};
h.createCountMetric=function(a,b,c){var d=b.source();kee(d,a);var e=tvc(d);switch(d.getEventType()){case 1:d=e.setCount;b=b.source();b=xi(b,4);var f=new ibe;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=b.source();c=xi(c,3);d=new lbe;d.setLabel(c);Ni(e,lbe,7,d);e.setEventType(4);break;case 6:case 7:c=b.source();d=xi(c,2);b=new fbe;c.hasItemCount()&&b.setItemCount(c.getItemCount());c.hasQueryLength()&&b.setQueryLength(c.getQueryLength());c.hasLookupInfo()&&b.setLookupInfo(c.getLookupInfo());
c.hasQueryScope()&&b.setQueryScope(c.getQueryScope());b.setLabel(d);Ni(e,fbe,9,b);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
h.createStatusMetric=function(a,b,c){var d=b.source();kee(d,a);var e=tvc(d);switch(d.getEventType()){case 4:case 5:d=b.source();var f=xi(d,3);var g=xi(d,13)||0;g=fee.get(g)||eee.get(c)||0;var k=c8d(b,"blocked"),l=c8d(b,"network"),r=c8d(b,"processed");b=new mbe;b.setLabel(f);b.setStatus(g);wn(b,8,k);b.setLatencyUsec(l);wn(b,9,r);b.setStatusCode(c);Cm(d,12)&&(d=Cm(d,12),wn(b,6,d));Ni(e,mbe,8,b);e.setEventType(5);break;case 6:case 7:f=b.source();g=xi(f,2);d=new hbe;d.setLabel(g);d.setStatusCode(c);f.hasItemCount()&&
d.setItemCount(f.getItemCount());f.hasQueryLength()&&d.setQueryLength(f.getQueryLength());f.hasLookupInfo()&&d.setLookupInfo(f.getLookupInfo());f.hasQueryScope()&&d.setQueryScope(f.getQueryScope());c===0&&(b=c8d(b,"total"),d.setLatencyUsec(b));c=gee.get(c)||0;d.setStatus(c);c=f.getResultIndex();d.setResultIndex(c);if(b=f.getCacheState())c=vvc(Ov(b,2)),Hn(d,5,c),c=vvc(Ov(b,3)),Hn(d,6,c),c=d.setDataSource,f=b.getSource(),b=!Gi(f,1),f=f.getProvenance(),b=(b?iee.get(f):hee.get(f))||0,c.call(d,b);Ni(e,
hbe,10,d);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};h.createLatencyMetric=function(a,b){var c=b.source();kee(c,a);if(c.getEventType()!==2)return null;var d=tvc(c);d.setClientInterface(a);a=d.setLatency;var e=b.source();e=xi(e,5);b=c8d(b,"total");var f=new kbe;f.setType(e);f.setLatencyUsec(b);a.call(d,f);d.setEventType(c.getEventType());return d};
h.createErrorMetric=function(a,b){var c=b.source();kee(c,a);if(c.getEventType()!==3)return null;var d=tvc(c);d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=xi(e,7);var f=new jbe;f.setType(b);Hn(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var kee=function(a,b){var c,d,e;a=(c=X(a,Zv,18))==null?void 0:(d=c.getSessionState())==null?void 0:(e=X(d,aw,10))==null?void 0:xp(e,4);a!=null&&(b.setEventSource(a),b.setEventSourceId(a))};var lee=function(a,b){this.delegate_=a;this.trackers_=b};h=lee.prototype;h.reportDisplay=function(a){this.delegate_.reportDisplay(a)};h.reportSelect=function(a,b){b=b===void 0?new E9d:b;this.delegate_.reportSelect(a,b)};h.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};h.reportDeselect=function(a){this.delegate_.reportDeselect(a)};h.reportProceed=function(a){this.delegate_.reportProceed(a)};h.reportDismiss=function(){this.delegate_.reportDismiss();mee(this)};
h.reportSave=function(a){this.delegate_.reportSave(a);mee(this)};h.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);mee(this)};h.reportSend=function(a){this.delegate_.reportSend(a);mee(this)};var mee=function(a){a=a.trackers_;var b=a.api,c=new Jv;Lv(c.setEventType(6),3);b.call(a,c).call()};var zvc=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};Y(zvc,Ode);
zvc.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(luc(b.getQueryScope()));f.call();this.delegate_.suggest(function(g){var k=g.getMetadata(),l=k.getCacheState();f.source.setCacheState(l);f.source.setItemCount(g.getResults().length);f.result(l.getSource().getCode());k.getIsFirstCallback()&&(d&&k.getCode()===0&&c.trackers_.error(22,19,f.source).report(),d=!0);k.getIsLastCallback()&&(e&&k.getCode()===0&&c.trackers_.error(22,20,f.source).report(),e=!0);k=c.trackers_.latency(90,
f.source);k.start();try{a(g)}catch(r){throw c.trackers_.error(22,11,f.source).report(),r;}finally{k.stop()}},b)}catch(g){throw this.trackers_.error(22,1).report(),g;}};
zvc.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(kuc(a,c.getQueryScope()));g.call();this.delegate_.search(a,function(k){var l=k.getMetadata(),r=l.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().length);g.result(r.getSource().getCode());l.getIsFirstCallback()&&(e&&l.getCode()===0&&d.trackers_.error(23,19,g.source).report(),e=!0);l.getIsLastCallback()&&(f&&l.getCode()===0&&d.trackers_.error(23,20,g.source).report(),f=!0);l=d.trackers_.latency(91,
g.source);l.start();try{b(k)}catch(w){throw d.trackers_.error(23,11,g.source).report(),w;}finally{l.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};zvc.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new lee(a,this.trackers_)};var nee=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new Jv;Lv(c.setEventType(6),1);b.call(a,c).call()};Y(nee,Pde);
nee.prototype.warmUpCache=function(){var a=this,b=this.trackers_.api(huc());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof l$?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new l$).setSource((new dw).setCode(2)));return Promise.reject(c)})};
nee.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(guc(a,c.getQueryScope()));g.call();this.delegate_.lookup(a,function(k){var l=k.getMetadata(),r=l.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().size);for(var w=0,x=0,C=0,H=0,J=m(k.getResults().keys()),O=J.next();!O.done;O=J.next()){O=O.value;Fwd(O)?w++:Bwd.includes(O.getType())?x++:Cwd.includes(O.getType())&&C++;var R=void 0;((R=k.getResults().get(O))==null?0:R.getDisplayName())&&
H++}J=O=R=0;for(var V=m(l.notFoundIdList_),ca=V.next();!ca.done;ca=V.next())ca=ca.value,Fwd(ca)?R++:Bwd.includes(ca.getType())?O++:Cwd.includes(ca.getType())&&J++;V=g.source.getMutableLookupInfo();w=Fn(V,2,w);x=Fn(w,1,x);C=Fn(x,3,C);C=Fn(C,5,R);C=Fn(C,4,O);C=Fn(C,6,J);Fn(C,14,H);g.result(r.getSource().getCode());l.getIsFirstCallback()&&(e&&l.getCode()===0&&d.trackers_.error(8,19).report(),e=!0);l.getIsLastCallback()&&(f&&l.getCode()===0&&d.trackers_.error(8,20).report(),f=!0);l=d.trackers_.latency(89);
l.start();try{b(k)}catch(oa){throw d.trackers_.error(8,11).report(),oa;}finally{l.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};nee.prototype.disambiguate=function(a,b){var c=this.trackers_.api(juc());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})};
nee.prototype.beginSession=function(a){this.trackers_.api(iuc()).call();var b=this.delegate_.beginSession(a);return Avc(b,Mbe(this.trackers_,new Ibe(function(){return b.getSessionState()})))};var oee=function(a,b){this.clearcut_=a;this.logEventFactory_=b};oee.prototype.report=function(a){var b=n8d(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=m(a);for(b=a.next();!b.done;b=a.next())o8d(this.clearcut_,b.value)};var pee=function(a){this.clearcut_=a};pee.prototype.report=function(a){this.clearcut_.report(a)};var qee=function(a){this.writer_=a};var ree=function(){};
ree.prototype.create=function(a,b,c){var d=rvc(b),e=new e8d;Ni(e,qvc,3,d);c!==7&&b.hasQuery()&&(d=b.getQuery(),c===2&&e.setQuery(d),e.setQueryLength(d.length));var f=new f8d;d=Cqc(em(b,9)-em(b,8));Fn(f,2,d);d=new g$;Ni(d,e8d,1,e);Ni(d,f8d,6,f);e=new d8d;if(f=Ym(pn(b,6))){wn(e,3,f*1E3);var g=(Date.now()-f)*1E3;wn(e,2,g)}Pi(e,1,!!f);Ni(d,d8d,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new h8d;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var see=function(){};see.prototype.extractPersonEventSource=function(a){a=Bvc(a);return Ov(a,4)};see.prototype.extractFieldEventSource=function(a){a=Bvc(a);return Ov(a,3)};var tee=function(){};tee.prototype.extractPersonEventSource=function(a){var b=X(a,aw,10)||new aw;return(a.getQuery()||"").length?Ov(b,2):Ov(b,4)};tee.prototype.extractFieldEventSource=function(a){var b=X(a,aw,10)||new aw;return(a.getQuery()||"").length?Ov(b,1):Ov(b,3)};var uee=function(){};uee.prototype.extractPersonEventSource=function(a){a=Cvc(a);return Ov(a,4)};uee.prototype.extractFieldEventSource=function(a){a=Cvc(a);return Ov(a,3)};var Evc=new Set([8]);var vee=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var wee=new Map([[1,11],[2,12],[0,0]]),xee=function(){};xee.prototype.write=function(a,b,c){var d=new $9;Fn(d,1,c);c=new a$;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Ni(a,a$,8,c);b=wee.get(b.getContext());Ww(a,3,[b])};var yee=new Map([[1,5],[2,4],[3,6],[7,13]]),zee=function(){};zee.prototype.write=function(a,b,c,d){var e=new $9;Fn(e,1,c);a.setPosition(e);c=yee.get(b.getProvenance())||0;xi(b,4)===1?c=14:d?c=3:xi(b,4)===2?c=10:xi(b,4)===3&&(c=15);Ww(a,3,[c])};var Aee=new Set([9,1,2]),Bee=function(){};Bee.prototype.write=function(a,b,c,d,e){var f=a.getMutableMetadata();if(e===3||c===8||c===10||c===9||c===2&&Aee.has(d))c=new d$,Ov(b,7)!==1&&Ov(b,7)!==7||c.setEmail(Lw(b,3)),Ov(b,7)!==2&&Ov(b,7)!==5||c.setPhone(Lw(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Ni(a,d$,4,c),a=new e$,a.setName(b.getNameOrUndefined()),Ni(f,e$,2,a);f.setIsBoosted(b.getIsBoosted())};var Cee=function(a){var b=new Bee;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Dee=function(a){var b;return((b=a.getInfo())==null?0:b.getIsPlaceholder())?!0:!1};var Kvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=n(a)};Y(Kvc,W);h=Kvc.prototype;h.getEventType=function(){return xi(this,1)};h.getEventType_legacyNullable=function(){return Ov(this,1)};h.setEventType=function(a){return Hn(this,1,a)};h.getSessionState=function(){return X(this,DW,2)};h.setSessionState=function(a){return Ni(this,DW,2,a)};h.hasSessionState=function(){return yi(this,DW,2)};h.setEventSources=function(a){Ni(this,aw,4,a)};var Eee=function(){this.defaultEntityFactory_=new qee(new Cee(new zee));this.contextualEntityFactory_=new qee(new Cee(new xee));this.extensionFactory_=new ree;this.defaultEventSourceExtractor_=new tee;this.additionEventSourceExtractor_=new see;this.replacementEventSourceExtractor_=new uee};
Eee.prototype.create=function(a,b){var c=b.getSessionState()||new DW,d=b.getEventType_legacyNullable();b=Ci(b,Uv,3,Di(Km));var e=Gvc(b,Ivc);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(q(Gvc(f,Hvc).values())):[];b=b?[].concat(q(Gvc(b,Hvc).values())):[];e=e?[].concat(q(Gvc(e,Hvc).values())):[];e=new vee(f,b,e);b=[];f=m(e.defaultTokenGroups_);for(var g=f.next();!g.done;g=f.next())b.push.apply(b,q(Fee(this,a,d,g.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));f=m(e.additionTokenGroups_);
for(g=f.next();!g.done;g=f.next())b.push.apply(b,q(Fee(this,a,d,g.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));e=m(e.replacementTokenGroups_);for(f=e.next();!f.done;f=e.next())b.push.apply(b,q(Fee(this,a,d,f.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var Fee=function(a,b,c,d,e,f,g){var k=[];e=d[0].getSessionState()||e;var l=Dvc(d).map(function(r){var w=new g8d,x=g.writer_,C=w.getMetadata()||new f$;w.setMetadata(C);var H=Uu(r)||new Vv,J=r.getInfo()||new Wv;x.metadataStateWriter_.write(C,H,Cm(H,2)||0,Dee(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,xi(H,4)||0);w.setLoggingId(Lw(J,1));r=X(w,d$,4)||new d$;Ni(w,d$,4,r);r.setType(xp(J,8));return w});l.length&&k.push(Gee(a,b,c,f.extractPersonEventSource(e),l,e));d=Fvc(d).map(function(r){var w=
new g8d,x=g.writer_,C=w.getMetadata()||new f$;w.setMetadata(C);var H=Uu(r)||new Vv,J=r.getInfo()||new Wv;x.metadataStateWriter_.write(C,H,(Gi(J,9,!0)?Cm(H,2):Cm(H,1))||0,Dee(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,xi(H,4)||0);r=X(w,d$,4)||new d$;Ni(w,d$,4,r);X(w,d$,4).setType(xp(J,7));w.setLoggingId(Lw(J,2));return w});d.length&&k.push(Gee(a,b,c,f.extractFieldEventSource(e),d,e));return k},Gee=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);
a.getClientInterface().setEventSourceId(d);Oi(a,2,e);return a};var Hee=function(a,b){var c=xvc("PeopleStore.BigBug"),d=c.setLogSource;var e=a.getClearcut();e=xi(e,3,41);this.logContext_=wvc(d.call(c,e).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(828123362).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(q(a.runtimeConfig_.getExperiments().getExperimentIdsList()),q($v?$v.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);
this.eventsFactory_=new Eee};Hee.prototype.getLogContext=function(){return this.logContext_};var Iee=function(a){this.clientConfig_=a;this.reportingCache_=new Map};Iee.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new Hee(this.clientConfig_,a),a=new pee(new oee(m8d(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var Jee=function(a,b,c){this.reporting_=a;this.sharedSessionState_=b;this.peopleStore_=c};h=Jee.prototype;h.reportDisplay=function(a){W$(this,cw(a,1))};h.reportSelect=function(a,b){b=b===void 0?new E9d:b;if(b.getOriginator()!==0)for(var c=m(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!yi(d,Vv,2)){var e=d,f=new Vv;Ni(e,Vv,2,f)}d=Uu(d);Hn(d,4,b.getOriginator())}b=this.sharedSessionState_;c=Ym(pn(this.sharedSessionState_,4))+1;wn(b,4,c);W$(this,cw(a,2,this.sharedSessionState_))};
h.reportExternalSelect=function(a){for(var b=m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!yi(c,Vv,2)){var d=c,e=new Vv;Ni(d,Vv,2,e)}c=Uu(c);Hn(c,4,2)}b=this.sharedSessionState_;c=Ym(pn(this.sharedSessionState_,4))+1;wn(b,4,c);W$(this,cw(a,15,this.sharedSessionState_))};h.reportDeselect=function(a){W$(this,cw(a,17,this.sharedSessionState_))};h.reportProceed=function(a){W$(this,cw(a,10,this.sharedSessionState_))};
h.reportDismiss=function(){var a=this.sharedSessionState_,b=new Kvc;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(X(a,aw,10));W$(this,[b])};h.reportSave=function(a){W$(this,cw(a,9,this.sharedSessionState_))};h.reportSecondaryAction=function(a){W$(this,cw(a,19,this.sharedSessionState_))};h.reportSend=function(a){W$(this,cw(a,8,this.sharedSessionState_,!0))};var W$=function(a,b){b=m(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var Kee=function(a,b,c,d){this.delegate_=this.delegate=a;this.sharedSessionState_=c;wn(this.sharedSessionState_,5,Math.floor(Math.random()*9007199254740991));wn(this.sharedSessionState_,4,0);Jwd(this.sharedSessionState_,0);this.reportingFactory_=b;this.peopleStore_=d};Y(Kee,Ode);
Kee.prototype.suggest=function(a,b){var c=this,d=this.sharedSessionState_.clone();Jwd(this.sharedSessionState_,Ym(pn(this.sharedSessionState_,3))+1);d.setQuery("");Lwd(d);var e=0;this.delegate_.suggest(function(f){e=Lee(c,f.getResults(),Lvc(f),d,e);a(f)},b)};
Kee.prototype.search=function(a,b,c){var d=this,e=this.sharedSessionState_.clone();Jwd(this.sharedSessionState_,Ym(pn(this.sharedSessionState_,3))+1);e.setQuery(a);Lwd(e);var f=0;this.delegate_.search(a,function(g){f=Lee(d,g.getResults(),Lvc(g),e,f);b(g)},c)};Kee.prototype.getReporter=function(a){return new Jee(this.reportingFactory_.create(a),this.sharedSessionState_,this.peopleStore_)};Kee.prototype.getSessionState=function(){return this.sharedSessionState_};
var Lee=function(a,b,c,d,e){d=d.clone();var f=Kwd();Sw(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();wn(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=m(b);for(b=a.next();!b.done;b=a.next()){var g=b.value;b=g.getIsBoosted();f=0;g=m(g.getTargetList());for(var k=g.next();!k.done;k=g.next()){k=k.value.getLoggingToken();Ji(k,Wv,1).setIsBoosted(b);var l=Uu(k)||new Vv;l.getProvenance()!==7&&l.setProvenance(c.getProvenance());Fn(l,2,e);Fn(l,1,f);Ni(k,Vv,2,l);k.setSessionState(d);f++}e++}return e};var Mee=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=pqc();this.clearcutConfig_=c};Y(Mee,Pde);
Mee.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,g=d.getMetadata();g.getCacheState()&&(g=g.getCacheState(),g.hasSource()&&(f=g.getSource()));f=f||new dw;g=c.getOriginator();e=m(e);for(var k=e.next();!k.done;k=e.next()){k=m(k.value.getTargetList());for(var l=k.next();!l.done;l=k.next()){l=l.value.getLoggingToken();var r=Uu(l)||new Vv;r.getProvenance()!==7&&r.setProvenance(f.getProvenance());Hn(r,4,g);Ni(l,Vv,2,r)}}b(d)},c)};
Mee.prototype.beginSession=function(a){var b=new DW,c=Nee(this,a);Ni(b,aw,10,c);c=Oee(this,a);Ni(b,bw,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new Kee(a,this.reportingFactory_,b,this)};
var Nee=function(a,b){a=Ci(a.clearcutConfig_,aw,5,Di());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new aw},Oee=function(a,b){a=Ci(a.clearcutConfig_,bw,6,Di());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new bw};var Pee=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new qae(e);this.indexes_=Xbe(Cm(e,8,250),em(e,9,3600)*1E3);this.maxResults_=e.getSearchMaxResults()};h=Pee.prototype;h.getCacheType=function(){return 3};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:c=k$(new dw,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(k$(c,!1));Yd(e,2);return z(e,b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;bt(e,3);break;case 2:return be(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new Yv),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.canSkipFetch_=function(a){return a.isSuggestQuery()?!0:a.queryScope()===3?!1:this.indexes_.has(a.getPrefix())?!0:!1};h.index=function(a,b){for(var c=rae(this.ranker_,b,1),d=m(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=Yce(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)};h.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:S$(this.indexes_.get(a.getPrefix()).search([]),a.getCollector())};
h.getName=function(){return this.adapter_.getName()};var Qee=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};Qee.prototype.getStageType=function(){return 2};Qee.prototype.index_=function(a,b){for(var c=m(a),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.indexer_.storeItems(a,b)};
Qee.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,l,r,w;return y(function(x){switch(x.nextAddress){case 1:return c=new Map,d=k$(new dw,!0).setProvenance(7).setCode(0),e=a.queryScope()===3,f=yce(a),Yd(x,2),z(x,b.adapter_.lookup(f),4);case 4:g=x.yieldResult;bt(x,3);break;case 2:return be(x),d.setCode(13),a.notify(c,[],d),x.return();case 3:b.index_(g,e);k=m(f);for(l=k.next();!l.done;l=k.next())r=l.value,(w=b.indexer_.load(r,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))&&c.set(r,w);
a.notify(c,[],d);ce(x)}})};var Ree=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};Ree.prototype.search=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),Yd(e,2,3),z(e,b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:Zd(e);c.stop();ae(e,0);break;case 2:throw d=be(e),b.trackers_.error(36,11).report(),d;}})};
Ree.prototype.lookup=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),Yd(e,2,3),z(e,b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:Zd(e);c.stop();ae(e,0);break;case 2:throw d=be(e),b.trackers_.error(37,11).report(),d;}})};var See=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};See.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
See.prototype.warmUpCache=function(){var a=this,b,c;return y(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),Yd(d,2,3),z(d,a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:Zd(d);b.stop();ae(d,0);break;case 2:throw c=be(d),a.trackers_.error(35,11).report(),c;}})};See.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var Tee=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new qae(e);this.index_=T$};h=Tee.prototype;h.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};h.flush=function(){this.index_=T$};
h.fetch=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:c=k$(new dw,!0).setProvenance(7).setCode(0);if(b.index_!=T$&&!b.adapter_.needsWarmUp())return e.return(k$(c,!1));Yd(e,2);return z(e,b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;bt(e,3);break;case 2:return be(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new Yv),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.index=function(a,b){a=rae(this.ranker_,b,1);for(var c=m(b),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.storage_.storeItems(1,b);this.index_=Yce(this.trieFactory_,a)};h.search=function(a){var b=this;this.adapter_.needsWarmUp()&&Promise.resolve().then(function(){return b.fetch(a)});return S$(this.index_.search(a.getTerms()),a.getCollector())};h.getName=function(){return this.adapter_.getName()};var Uee=function(a,b){this.provider_=a;this.itemFactory_=b};Uee.prototype.search=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return b<1?e.return([]):z(e,c.provider_.search((new Zwd).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(Vee(d))})};Uee.prototype.lookup=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a.length?z(d,b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(Vee(c))})};Uee.prototype.getName=function(){return this.provider_.name};var Wee=function(a,b){this.provider_=a;this.itemFactory_=b};Wee.prototype.getPosition=function(){return this.provider_.getPosition()};Wee.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};Wee.prototype.warmUpCache=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(Vee(b))})};Wee.prototype.getName=function(){return this.provider_.name};var Xee=new ece(68,69,38);var Yee=function(){},Zee=function(a){var b=[];a=m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=m(c.getTargetList()),g=f.next();!g.done;g=f.next())g=Pvc(c,g.value,7),e.push(String(g.id)),g.coalescedKeys=e,d||(d=g),b.push(g);d&&xv(d.id)&&(e=void 0,d.totalMemberCount=(e=Kw(c,4))!=null?e:void 0,d.memberKeys=c.getMemberList().map(function(k){var l=m(k.getTargetList());for(l=l.next();!l.done;l=l.next())return k=Pvc(k,l.value,8),b.push(k),String(k.id)}))}return b},Vee=function(a){a=
Ci(a,tN,1,Di());return Zee(a)};var $ee=function(a){this.delegate_=a};$ee.prototype.processItem=function(a){a.target=Tvc(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var Uvc=function(){};
Uvc.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,g=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){var l=b.getClient(),r=new Yee;var w=w===void 0?pae:w;b=new Cbe(b,new $ee(w));w=[];for(var x=m(k.staticDataProviders_.reverse()),C=x.next();!C.done;C=x.next()){C=C.value;var H=c,J=C;J=new See(J,H);J=new Tee(new Wee(J,r),b,f,d,l);H=new U$(J,H,Xee);switch(C.getPosition()){case 1:w.push(H);break;case 2:g.push(H);
break;default:throw Error("eh");}}w.length&&g.splice.apply(g,[0,0].concat(q(w)));k=m(k.dynamicDataProviders_);for(w=k.next();!w.done;w=k.next())w=w.value,x=c,C=w,C=new Ree(C,x),C=new Pee(new Uee(C,r),b,f,d,l),x=new U$(C,x,Xee),g.push(x),w=new Ree(w,c),a.push(new Qee(new Uee(w,r),b,e))}};var afe={create:function(a){var b=gsc(jae||(jae=iae('[[15,15,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,true],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s","ANVavNKl4mkR3DMa8R68PqYrNFuTUEjFCzfJB_o"],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47],[true,740,null,null,[[180,181,178,179]]],[7,true]]')));a=new kae(b,a);a.runtimeConfig_.getExperiments().getProfileId()?lae(a).getIsEnabled()?(b=gsc(nae||(nae=isc('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),
b=new jsc(b,1)):b=new Zu:b=new Zu;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;$v=b.loadExperiments(lae(a).getApplication(),(new ksc).setPeopleApiEnv(d.getPeopleApiEnv()),c);b={};c=new Obe;d=m([Vvc]);for(var e=d.next();!e.done;e=d.next())e=e.value,c=e(c,b);c=c===void 0?new Obe:c;b=a.getClearcut();b=new jee(b,a.runtimeConfig_);b=new Trc(Urc(b));b=new Lbe(b);d=new Nbe(a,b);e=c;c=d.targetFactory_;var f=a.getClient();c=new nce(c,f);var g=g===void 0?Zde:g;g=
new $de(d.loader_,a,g);f=new Xde(g,b,a);var k=[new Nde,new vce,new gce].concat(q(e.cacheConfigurators_),[new nde]);e=[];var l=[],r=new Ace(c,a);g=new zce(l,r,a);d={clientConfig:a,trackers:b,storage:c,indexer:r,loader:f,loaderFactory:d,trieFactory:new Xce(c,g,b),prefixCaches:e,lookupStages:l};f=m(k);for(k=f.next();!k.done;k=f.next())k.value.configure(d);d=new Ice(e);g=new Nce(a,b,d,g,c);d=a.getClient();c=new Ade(d,c);d=a.getClient();g=new lde(g,c,d);c=new Iee(a);a=a.getClearcut();g=new Mee(g,c,a);
g=new nee(g,b);return new dee(g)}};var bfe=function(){};bfe.prototype.send=function(a,b){ava(a);return this.makeRequest(a).then(function(c){return b?Xua(b,c):c})};var cfe=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(cfe,bfe);h=cfe.prototype;h.getGapi=function(){var a=this;return(this.customGapiPromise||t8a()).then(function(b){b=b||window.gapi;a.setGapiConfig(b);return z8a(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
h.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return y(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):z(d,y8a(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request(b.createRequestParams(a))))})})};
h.createRequestParams=function(a){return{root:this.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||this.defaultApiId}};h.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(d.result===!1&&d.body!=null?{data:d.body}:d.result)},function(d){c(d.result===!1&&d.body!=null?{data:d.body}:d.result)})})};
h.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&w8a(a,b,this.gapiConfigUpdates[b])};cfe.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var dfe=function(){};dfe.\u0275fac=function(a){return new (a||dfe)};dfe.\u0275mod=cf({type:dfe});
dfe.\u0275inj=Hc({providers:[{provide:Rod,useFactory:function(){var a=new cfe("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}),b=Wvc();a.customGapiPromise=b;return new Zpd(a)}}],imports:[{ngModule:wX,providers:[JW,{provide:Swd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:afe,autocompleteFactory:c$d}}}]},{ngModule:P_,providers:[THd,
{provide:SHd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:afe,searchBarFactory:dae}}}]}]});var Zvc={os:1223084,version:1223033},Yvc={os:201569,version:201543};var ewc={unconfirmed:5437934,chromiumRegression:5438261},dwc={unconfirmed:1218157,chromiumRegression:1218155};var X$={},efe=(X$.NETWORK_DOWNLOADING=[{type:"INPUT",question:"What specific URL can reproduce the problem?",answerPrefix:"Example URL: "}],X$.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"}],X$.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?"}}]}],X$.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:Dh([Bh("What is the link to that software in "),Xvc("the Chrome Webstore","https://chrome.google.com/webstore"),Bh("?")]),answerPrefix:"WebStore page: "}],X$.WEBSTORE=[{type:"INPUT",question:"What is the URL of the Chrome WebStore page that had the problem?",answerPrefix:"Webstore page: "}],
X$.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"]}],X$.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"]}],X$.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"}}]}],X$.SECURITY=[{type:"INPUT",question:"For crashes, what type of crash [tab, browser, etc.]:",answerPrefix:"Type of crash: "},{type:"TEXT",question:Dh([Bh("For crashes, what was the crash state? [See "),
Xvc("Reporting Crash Bugs","https://www.chromium.org/Home/chromium-security/reporting-security-bugs/#reporting-crash-bugs"),Bh(", 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: "}],X$);var ffe=function(){};ffe.\u0275fac=function(a){return new (a||ffe)};ffe.\u0275mod=cf({type:ffe});ffe.\u0275inj=Hc({imports:[H_]});var gfe=function(){};gfe.\u0275fac=function(a){return new (a||gfe)};gfe.\u0275mod=cf({type:gfe});gfe.\u0275inj=Hc({providers:[Wz],imports:[Mz,l_d,Fy,dA,m7,k7,Ey]});var hfe=function(){};hfe.\u0275fac=function(a){return new (a||hfe)};hfe.\u0275mod=cf({type:hfe});hfe.\u0275inj=Hc({providers:[{provide:$Zd,useValue:efe},{provide:b_d,useFactory:$vc},{provide:a_d,useFactory:cwc},{provide:c_d,useFactory:fwc}],imports:[t0,RO,L5,xE,iB,ffe,gL,BE,EU,wU,gfe,y0]});var ife=function(){};ife.\u0275fac=function(a){return new (a||ife)};ife.\u0275mod=cf({type:ife});ife.\u0275inj=Hc({imports:[RO,iB,pK,yU,xE,yE,H4]});var jfe=function(){};jfe.\u0275fac=function(a){return new (a||jfe)};jfe.\u0275mod=cf({type:jfe});jfe.\u0275inj=Hc({imports:[NU,RO,H4,BW,xE,DU,pK,gL,C5,NX]});var kfe=function(){};kfe.\u0275fac=function(a){return new (a||kfe)};kfe.\u0275mod=cf({type:kfe});kfe.\u0275inj=Hc({imports:[RO,iB,pK,yU,xE,yE,H4]});var lfe=function(){};lfe.\u0275fac=function(a){return new (a||lfe)};lfe.\u0275mod=cf({type:lfe});lfe.\u0275inj=Hc({imports:[RO,iB,pK,HX]});var mfe=function(){};mfe.\u0275fac=function(a){return new (a||mfe)};mfe.\u0275mod=cf({type:mfe});mfe.\u0275inj=Hc({imports:[RO,iB,pK,bU,lfe,PJ]});var nfe=function(){};nfe.\u0275fac=function(a){return new (a||nfe)};nfe.\u0275mod=cf({type:nfe});nfe.\u0275inj=Hc({imports:[RO,bU,BX,AX,zX,Z0,pK,MK,iB]});var ofe=function(){};ofe.\u0275fac=function(a){return new (a||ofe)};ofe.\u0275mod=cf({type:ofe});ofe.\u0275inj=Hc({imports:[Yx,xE,TD,L_,yE]});var pfe=function(){};pfe.\u0275fac=function(a){return new (a||pfe)};pfe.\u0275mod=cf({type:pfe});pfe.\u0275inj=Hc({imports:[NU,u0,zU,X2,b5,OD,BW,xE,K_,E3,DU,S3,QV,iB,gL,wU,MJ,HL,PJ,PU,pK,b5,gV,nX,yE,ofe,NX,RO,xz,y0,v0,mfe,nfe,O_,P_,O_,bK]});var qfe=function(){};qfe.\u0275fac=function(a){return new (a||qfe)};qfe.\u0275mod=cf({type:qfe});qfe.\u0275inj=Hc({imports:[NU,RO,H4,BW,xE,DU,pK,M5]});var rfe=function(){};rfe.\u0275fac=function(a){return new (a||rfe)};rfe.\u0275mod=cf({type:rfe});rfe.\u0275inj=Hc({imports:[RO,pK,iB,yL,H4,K_,E3,C2,yU,xE,yE,PJ,xX]});var sfe=function(){};sfe.\u0275fac=function(a){return new (a||sfe)};sfe.\u0275mod=cf({type:sfe});sfe.\u0275inj=Hc({imports:[MJ,gL,RO,Qz,iB,zU,F_,y0]});var tfe=function(){};tfe.\u0275fac=function(a){return new (a||tfe)};tfe.\u0275mod=cf({type:tfe});tfe.\u0275inj=Hc({imports:[RO,pK,iB,yL,H4,yU,MJ,xE,yE,PJ,xX]});var ufe=function(){};ufe.\u0275fac=function(a){return new (a||ufe)};ufe.\u0275mod=cf({type:ufe});ufe.\u0275inj=Hc({imports:[NU,RO,H4,xE,DU,yL,pK,xX,gL,M5,bU]});var vfe=function(){};vfe.\u0275fac=function(a){return new (a||vfe)};vfe.\u0275mod=cf({type:vfe});vfe.\u0275inj=Hc({imports:[RO,L4,bU,iB]});var wfe=function(){};wfe.\u0275fac=function(a){return new (a||wfe)};wfe.\u0275mod=cf({type:wfe});wfe.\u0275inj=Hc({imports:[RO,iB,O5,bU]});var xfe=function(){};xfe.\u0275fac=function(a){return new (a||xfe)};xfe.\u0275mod=cf({type:xfe});xfe.\u0275inj=Hc({imports:[gV,RO,CU,R0,J6,s3,OV,xE,iB,gL,MJ,BE,wU,OX,pK,Fy,bK,MK,nX,yE,I6]});var yfe=function(){};yfe.\u0275fac=function(a){return new (a||yfe)};yfe.\u0275mod=cf({type:yfe});yfe.\u0275inj=Hc({imports:[RO,i3,u5]});var zfe=function(){};zfe.\u0275fac=function(a){return new (a||zfe)};zfe.\u0275mod=cf({type:zfe});zfe.\u0275inj=Hc({imports:[RO,pX,xE,yL,iV,xX,DU,HL,iB,gL,pK,MJ,bU]});var Afe=function(){};Afe.\u0275fac=function(a){return new (a||Afe)};Afe.\u0275mod=cf({type:Afe});Afe.\u0275inj=Hc({imports:[NU,RO,pX,i3,Z2,B6,F6,H6,T3,H4,K6,xfe,xE,DU,iB,gL,MJ,wU,PU,yL,pK,xX,C5,zfe,xz,yfe,A5,bU,NX,JX,C9]});var Bfe=function(){};Bfe.\u0275fac=function(a){return new (a||Bfe)};Bfe.\u0275mod=cf({type:Bfe});Bfe.\u0275inj=Hc({imports:[RO,H4,xE,iB,gL,MJ,OX,yL,pK,PU,xX,xz,A5,X1,WW,u5,bMd]});var Cfe=function(){};Cfe.\u0275fac=function(a){return new (a||Cfe)};Cfe.\u0275mod=cf({type:Cfe});Cfe.\u0275inj=Hc({imports:[RO,iB,FR,bK,Zy,nV,xE,yE,ND,wU,Fy,AE,yL]});var Dfe=function(){};Dfe.\u0275fac=function(a){return new (a||Dfe)};Dfe.\u0275mod=cf({type:Dfe});Dfe.\u0275inj=Hc({imports:[RO,xV]});var Efe=function(){};Efe.\u0275fac=function(a){return new (a||Efe)};Efe.\u0275mod=cf({type:Efe});Efe.\u0275inj=Hc({imports:[RO,Dfe,MK,pK]});var Ffe=function(){};Ffe.\u0275fac=function(a){return new (a||Ffe)};Ffe.\u0275mod=cf({type:Ffe});Ffe.\u0275inj=Hc({imports:[RO,iV,xV,zU,iB]});var Gfe=function(){};Gfe.\u0275fac=function(a){return new (a||Gfe)};Gfe.\u0275mod=cf({type:Gfe});Gfe.\u0275inj=Hc({imports:[RO,xV,iV]});var Hfe=function(){};Hfe.\u0275fac=function(a){return new (a||Hfe)};Hfe.\u0275mod=cf({type:Hfe});Hfe.\u0275inj=Hc({imports:[RO,iV,xV,zU]});var Ife=function(){};Ife.\u0275fac=function(a){return new (a||Ife)};Ife.\u0275mod=cf({type:Ife});Ife.\u0275inj=Hc({imports:[RO,pK,MK,Hfe,Gfe,Ffe]});var Jfe=function(){};Jfe.\u0275fac=function(a){return new (a||Jfe)};Jfe.\u0275mod=cf({type:Jfe});Jfe.\u0275inj=Hc({imports:[RO,MK]});var Kfe=function(){};Kfe.\u0275fac=function(a){return new (a||Kfe)};Kfe.\u0275mod=cf({type:Kfe});Kfe.\u0275inj=Hc({imports:[RO,Jfe,MK,pK]});var Lfe=function(){};Lfe.\u0275fac=function(a){return new (a||Lfe)};Lfe.\u0275mod=cf({type:Lfe});Lfe.\u0275inj=Hc({imports:[RO,MK]});var Mfe=function(){};Mfe.\u0275fac=function(a){return new (a||Mfe)};Mfe.\u0275mod=cf({type:Mfe});Mfe.\u0275inj=Hc({imports:[RO,pK,MK,Lfe]});var Nfe=function(){};Nfe.\u0275fac=function(a){return new (a||Nfe)};Nfe.\u0275mod=cf({type:Nfe});Nfe.\u0275inj=Hc({imports:[RO,YK,pK,PJ,gL,iB,bK]});var Y$=function(){};Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=cf({type:Y$});Y$.\u0275inj=Hc({imports:[RO,YK,PJ]});var Ofe=function(){};Ofe.\u0275fac=function(a){return new (a||Ofe)};Ofe.\u0275mod=cf({type:Ofe});Ofe.\u0275inj=Hc({imports:[RO,oV,xV,fB,Fy,bH,Qz,E_]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=cf({type:Z$});Z$.\u0275inj=Hc({imports:[Yx,GS,GX]});var Pfe=function(){};Pfe.\u0275fac=function(a){return new (a||Pfe)};Pfe.\u0275mod=cf({type:Pfe});Pfe.\u0275inj=Hc({imports:[RO,xV,oV,OX,yL,gL,pK,iB,Nfe,Ofe,Y$,bU,BX,pX,Z$,yX,Ife,Mfe,bH,Kfe,Efe,Cfe,Qz]});var Qfe=function(){};Qfe.\u0275fac=function(a){return new (a||Qfe)};Qfe.\u0275mod=cf({type:Qfe});Qfe.\u0275inj=Hc({imports:[RO,iB,Pfe,pK]});var Rfe=function(){};Rfe.\u0275fac=function(a){return new (a||Rfe)};Rfe.\u0275mod=cf({type:Rfe});Rfe.\u0275inj=Hc({imports:[RO,YK,pK]});var Sfe=function(){};Sfe.\u0275fac=function(a){return new (a||Sfe)};Sfe.\u0275mod=cf({type:Sfe});Sfe.\u0275inj=Hc({imports:[RO,BX,bU,Rfe,Y$,xV,pX,Z$,yX,Z0,iB,yL,OX,pK]});var Tfe=function(){};Tfe.\u0275fac=function(a){return new (a||Tfe)};Tfe.\u0275mod=cf({type:Tfe});Tfe.\u0275inj=Hc({imports:[RO,xE,iB,pK,yE,U1,Qfe,Sfe,nU,xz]});var Ufe=function(){};Ufe.\u0275fac=function(a){return new (a||Ufe)};Ufe.\u0275mod=cf({type:Ufe});Ufe.\u0275inj=Hc({imports:[wU,RO,xE]});var Vfe=function(){};Vfe.\u0275fac=function(a){return new (a||Vfe)};Vfe.\u0275mod=cf({type:Vfe});Vfe.\u0275inj=Hc({imports:[CU,RO,xE,gL,iB,MJ,wU,BE,PU,OX,PJ,yL,pK,RU,bK,gV,p8,Ufe,bU,Fy,O_]});var Wfe=function(){};Wfe.\u0275fac=function(a){return new (a||Wfe)};Wfe.\u0275mod=cf({type:Wfe});Wfe.\u0275inj=Hc({imports:[RO,yU,iB]});var Xfe={disableCheatSheet:!0};Xfe=Xfe===void 0?{}:Xfe;
var Yfe=[RO,rQd,TU,By,nI,V2,S3,oV,g2,DU,D2,RU,i2,C5,X1,E2,IX,NU,S4,q3,d2,u6,zZd,G0,rV,QV,x_,h3,zX,qfe,ufe,wfe,vfe,z0d,o2d,V4d,W4d,jfe,Afe,Bfe,P4d,L4,O5,T3,L6,M6,X4,VU,J4,H3,AZd,AYd,cZd,BYd,qZd,bZd,aZd,q5,s5,Mvd,o5,F3,H2,CU,zU,F_,sfe,Qyd,c2,w5,C2,GV,y5,zWd,j5,k5,oZd,n6,bU,sQd,FZ,CV,a2,H6,Wfe,K6,$Yd,X5,iV,pX,xV,Vfe,yV,fU,T4,Y4,M5,A5,U4,H4,w6,ife,kfe,E6,F5,o3,i3,TQd,Z2,V4,l5,s3,sX,c5,d5,E3,K5,e5,f5,F6,W2,vQd,xX,I4,u0,B6,rfe,p2,tfe,pfe,wQd,D9,RWd,A5d,Tfe,wOd,kZd,xsd,xy,{ngModule:RS,providers:[QS,{provide:Bpd,
useFactory:function(a){a=new Upd("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,Object.assign({},aqd,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly",clientId:a.clientId});return new Zpd(a)},deps:[$pd]},{provide:$pd,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",gapiConfig:{withCredentials:!0},clientId:"693999850130-un1os7r4h5lc2ujbjni9u6aqpvih8hde.apps.googleusercontent.com"}}}]},
{ngModule:Zrd,providers:[hU,{provide:Yrd,useValue:Xfe}]},dfe];IVa("enableChromeWizard")&&Yfe.push(hfe);
var Zfe=[Qka(function(){p($P)}),wfd,OWd,PWd,QWd,COd,thd,{provide:d$c,useValue:{animationDuration:"0ms",stretchTabs:!1}},{provide:zEd,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:jEc,useValue:{disableTooltipInteractivity:!0,showDelay:100,hideDelay:0}},{provide:Iyd,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:Lyd,useValue:"92912"},BZd,OZd,PZd,QZd],Bx=function(){};Bx.prototype.ngDoBootstrap=function(){Vm("bootstrapping AppModule")};
Bx.\u0275fac=function(a){return new (a||Bx)};Bx.\u0275mod=cf({type:Bx,bootstrap:[qQd,vZd]});Bx.\u0275inj=Hc({providers:[].concat(q(Zfe)),imports:[Yfe,w5d]});FB(document,"DOMContentLoaded",function(){JAc()});
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
